/* ponoapp.net: the home page, in Arabic (/) and English (/en/). No trackers, no cookies, no outside requests: the fonts
   and pictures are served from here. */
@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url("/fonts/cairo-arabic-wght-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url("/fonts/cairo-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root { --navy: #0a2a5e; --navy-2: #17448a; --gold: #f2b84b; --bg: #f3f5f9; --card: #ffffff; --ink: #12233f; --muted: #5a6880; --line: #dce2ec; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c1422; --card: #152136; --ink: #e6ecf6; --muted: #9aa8bf; --line: #2a3a55; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.75 "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo svg { height: 26px; width: auto; display: block; }
.top nav { display: flex; gap: 18px; align-items: center; font-size: 15px; }
.top nav a { text-decoration: none; opacity: 0.9; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
.lang { border: 1px solid rgb(255 255 255 / 0.35); border-radius: 99px; padding: 2px 12px; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* Hero */
.hero { background: radial-gradient(ellipse at 50% 30%, var(--navy-2), var(--navy) 70%); color: #fff; padding: 48px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: end; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.25; margin: 0 0 14px; font-weight: 800; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 19px; color: #c9d6ee; margin: 0 0 26px; max-width: 34em; }
.hero .copy { padding-bottom: 56px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; font-size: 14px; color: #c9d6ee; }
.badges span { border: 1px solid rgb(255 255 255 / 0.25); border-radius: 99px; padding: 4px 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; background: rgb(255 255 255 / 0.08); border: 1.5px solid rgb(255 255 255 / 0.35); border-radius: 14px; padding: 10px 20px; color: #fff; text-decoration: none; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 12px; color: #c9d6ee; line-height: 1.2; }
.store strong { font-size: 18px; line-height: 1.3; }
a.store:hover { background: rgb(255 255 255 / 0.14); border-color: var(--gold); }
.hero .phone { justify-self: center; width: min(300px, 70vw); margin-bottom: -60px; }
/* The getting-started video: a gold play button on the hero phone (wide screens), a small pill under the store button
   (phones, where the hero phone sits below the fold). Nothing loads until it's tapped; it plays in a box over the page. */
.hero .phone { position: relative; }
.play-dot { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 8px 24px rgb(0 0 0 / 0.35); flex: none; }
.play-dot::before { content: ""; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--navy); margin-inline-start: 5px; }
[dir="rtl"] .play-dot::before { margin-inline-start: 0; margin-inline-end: 5px; }
.phone-play { position: absolute; inset: 10px; border-radius: 28px; border: 0; background: rgb(10 42 94 / 0.55); color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; transition: background 0.2s; }
.phone-play:hover { background: rgb(10 42 94 / 0.4); }
.phone-play:hover .play-dot { transform: scale(1.08); }
.play-dot { transition: transform 0.2s; }
.phone-play-label { background: #fff; color: var(--navy); font-weight: 800; font-size: 15px; padding: 6px 16px; border-radius: 99px; white-space: nowrap; }
.howto { display: none; align-items: center; gap: 12px; margin: 14px auto 0; padding: 7px 18px 7px 7px; border-radius: 99px; background: rgb(255 255 255 / 0.08); border: 1.5px solid rgb(242 184 75 / 0.6); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
[dir="rtl"] .howto { padding: 7px 7px 7px 18px; }
.howto-thumb { position: relative; width: 44px; height: 60px; border-radius: 9px; overflow: hidden; flex: none; }
.howto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.howto-thumb .play-dot { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; box-shadow: none; }
.howto-thumb .play-dot::before { border-width: 6px 0 6px 9px; margin-inline-start: 2px; }
[dir="rtl"] .howto-thumb .play-dot::before { margin-inline-start: 0; margin-inline-end: 2px; }
.video-box { border: 0; padding: 0; background: transparent; overflow: visible; max-width: none; max-height: none; }
.video-box::backdrop { background: rgb(5 13 29 / 0.85); }
.video-box video { display: block; height: min(84vh, 177.78vw - 40px); aspect-ratio: 9 / 16; border-radius: 18px; background: var(--navy); box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); }
.video-close { position: absolute; top: -14px; inset-inline-end: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / 0.4); }
@media (max-width: 800px) {
  .phone-play { display: none; }
  .howto { display: inline-flex; }
  .video-close { top: 8px; inset-inline-end: 8px; }
}
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .badges { justify-content: center; }
  .hero .copy { padding-bottom: 8px; }
}

/* A phone around an app screen */
.phone { background: #0d1726; border: 2px solid #2c3f60; border-radius: 38px; padding: 10px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.35); }
.phone img { border-radius: 28px; width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }

/* Sections */
section { padding: 72px 0; }
.hero + section { padding-top: 110px; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.35; margin: 0 0 10px; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 36em; }

/* Features: a phone and words, side by side, swapping sides */
.feature { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; max-width: 820px; margin: 0 auto 56px; }
.feature:nth-child(even) { grid-template-columns: 1fr 260px; }
.feature:nth-child(even) .phone { order: 2; }
.feature h3 { font-size: 24px; margin: 0 0 8px; }
.feature h3 em { font-style: normal; color: var(--gold); }
.feature p { margin: 0; color: var(--muted); }
.feature ul { margin: 10px 0 0; padding-inline-start: 20px; color: var(--muted); }
@media (max-width: 700px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .feature .phone, .feature:nth-child(even) .phone { order: 0; width: 230px; margin: 0 auto; }
  .feature ul { text-align: start; display: inline-block; }
}

/* Privacy band */
.private { background: var(--navy); color: #fff; }
.private h2 span { color: var(--gold); }
.private .sub { color: #c9d6ee; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.14); border-radius: 18px; padding: 22px; }
.tile svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 8px; }
.tile h3 { font-size: 19px; margin: 0 0 6px; }
.tile p { margin: 0; color: #c9d6ee; font-size: 16px; }
.private .more { text-align: center; margin-top: 28px; }

/* Prices */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 820px; margin: 0 auto; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; text-align: center; }
.plan.best { border: 2.5px solid var(--gold); }
.plan .tag { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%); background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 800; border-radius: 99px; padding: 2px 12px; white-space: nowrap; }
[dir="ltr"] .plan .tag { transform: translateX(-50%); }
.plan h3 { margin: 0; font-size: 18px; color: var(--muted); font-weight: 600; }
.plan .price { font-size: 40px; font-weight: 800; line-height: 1.3; margin: 6px 0 0; }
.plan .price small { font-size: 16px; font-weight: 600; }
.plan .per { color: var(--muted); font-size: 15px; margin: 0; min-height: 1.6em; }
.trial { text-align: center; margin: 26px auto 0; color: var(--muted); max-width: 36em; }
.trial strong { color: var(--ink); }

/* Questions */
.faq { max-width: 760px; margin: 0 auto; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 14px; color: var(--muted); }

/* Footer */
footer { background: var(--navy); color: #c9d6ee; padding: 40px 0 28px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer .logo svg { height: 22px; margin-bottom: 10px; }
footer nav { display: flex; flex-direction: column; gap: 6px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; color: #fff; }
footer .tagline { color: var(--gold); font-weight: 700; margin: 0; }
footer .copy { width: 100%; border-top: 1px solid rgb(255 255 255 / 0.12); padding-top: 18px; font-size: 13px; }

/* The logo sits at the left in both languages, as in the app; the links keep the page's own reading order. */
.top .wrap, footer .wrap { direction: ltr; }
[dir="rtl"] .top nav, [dir="rtl"] footer nav, [dir="rtl"] footer .copy { direction: rtl; }
[dir="rtl"] footer nav { text-align: right; }
[dir="rtl"] footer .tagline { direction: rtl; text-align: left; }

/* The header stays at the top while the page scrolls. Its logo moves as the app's opening does (src/Opening.jsx), over
   and over, inside the logo's own width: the two gold bars cross each other, come back and meet as "=", slide to their
   place, then P O N O appear one by one; the logo holds, the letters fade, and it starts again (8 s). Still for anyone
   who asks for less motion. --u is one unit of the logo (168 wide). */
.top { position: sticky; top: 0; z-index: 20; overflow: hidden; box-shadow: 0 2px 12px rgb(0 0 0 / 0.18); }
.top .wrap { height: 76px; }
section, .hero { scroll-margin-top: 120px; }
.hlogo { --w: 190px; --u: calc(var(--w) / 168); position: relative; display: block; width: var(--w); height: calc(var(--u) * 23); }
.hlogo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hlogo .bar { position: absolute; left: var(--u); width: calc(var(--u) * 30); height: calc(var(--u) * 5.5); border-radius: calc(var(--u) * 2.75); background: var(--gold); }
.hlogo .bar-top { top: calc(var(--u) * 2.5); animation: hlogo-top 8s ease-in-out infinite; }
.hlogo .bar-bottom { top: calc(var(--u) * 15); animation: hlogo-bottom 8s ease-in-out infinite; }
.hlogo .letter { opacity: 0; animation: hlogo-letter 8s ease-out infinite both; }
.hlogo .letter:nth-child(1) { animation-delay: 2.9s; }
.hlogo .letter:nth-child(2) { animation-delay: 3.02s; }
.hlogo .letter:nth-child(3) { animation-delay: 3.14s; }
.hlogo .letter:nth-child(4) { animation-delay: 3.26s; }
/* The "=" never leaves: each round starts and ends with the bars at home. They only ever slide sideways, each on its own
   line as in the app: the top one runs right, then the two pass each other in opposite directions, meet in the
   middle as "=", slide home, and only then do the letters come; later the letters fade and the "=" waits for the next round. */
@keyframes hlogo-top {
  0% { transform: none; }
  10% { transform: translateX(calc(var(--u) * 136)); }
  18% { transform: none; }
  24%, 31% { transform: translateX(calc(var(--u) * 68)); }
  36%, 100% { transform: none; }
}
@keyframes hlogo-bottom {
  0%, 10% { transform: none; }
  18% { transform: translateX(calc(var(--u) * 136)); }
  24%, 31% { transform: translateX(calc(var(--u) * 68)); }
  36%, 100% { transform: none; }
}
@keyframes hlogo-letter {
  0% { opacity: 0; transform: translateY(1.5px); }
  3.1%, 52% { opacity: 1; transform: none; }
  57%, 100% { opacity: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hlogo .bar, .hlogo .letter { animation: none; opacity: 1; } }
@media (max-width: 640px) { .hlogo { --w: 150px; } .top .wrap { height: 64px; } }

/* The news bar under the header (ticker.js, lines in ticker.json): it stays with the header, moves left to right in
   Arabic and right to left in English, stops while hovered or touched, and stands still for less motion. */
.ticker { direction: ltr; background: #071f47; color: #ffffff; border-top: 1px solid rgb(242 184 75 / 0.6); border-bottom: 1px solid rgb(242 184 75 / 0.6); height: 28px; overflow: hidden; font-size: 13px; font-weight: 600; display: none; }
.ticker.ticker-on { display: block; }
.ticker-track { display: flex; width: max-content; height: 26px; align-items: center; direction: ltr; animation: ticker-left var(--ticker-time, 60s) linear infinite; }
.ticker-copy { display: flex; align-items: center; }
[dir="rtl"] .ticker-track { animation-name: ticker-right; }
.ticker:hover .ticker-track, .ticker:active .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-item { white-space: nowrap; padding: 0 6px; text-decoration: none; }
a.ticker-item:hover { text-decoration: underline; }
.ticker-mark { display: inline-block; width: 12px; height: 7px; margin: 0 14px; flex: none; background: linear-gradient(var(--gold) 0 2px, transparent 2px 5px, var(--gold) 5px 7px); border-radius: 1px; }
@keyframes ticker-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker-copy { display: none; }
}

/* Text pages (terms, support): Arabic, then the same in English below the logo. */
.doc { max-width: 780px; margin: 0 auto; padding: 32px 16px 56px; }
.doc article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; margin-bottom: 24px; }
.doc h1 { font-size: clamp(24px, 4vw, 30px); line-height: 1.4; margin: 0 0 4px; }
.doc h2 { font-size: 19px; text-align: start; margin: 28px 0 6px; }
.doc .date { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.doc .lead { font-size: 18px; }
.doc ul, .doc ol { padding-inline-start: 22px; margin: 6px 0; }
.doc li { margin: 5px 0; }
.doc .note { color: var(--muted); font-size: 15px; }
.doc .path { background: rgb(242 184 75 / 0.16); border-radius: 6px; padding: 1px 7px; font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.doc article { overflow-wrap: anywhere; }
.doc [lang="en"] { direction: ltr; text-align: left; }
.doc h2[id], .doc .en-head { scroll-margin-top: 130px; }
.en-head { background: var(--navy); border-radius: 18px; padding: 28px 16px; margin: 8px 0 16px; display: flex; justify-content: center; }
.en-head svg { height: 28px; width: auto; display: block; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; font-size: 14px; text-decoration: none; background: var(--bg); }
.btn-gold { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800; text-decoration: none; border-radius: 99px; padding: 10px 26px; margin: 8px 0; }
.btn-gold:hover { filter: brightness(1.05); }

/* The header's links (site.js opens them as a menu on phones), the gold "Get Pono" button and Facebook. */
.top { overflow: visible; }
.top .nav { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.top .links { display: flex; align-items: center; gap: 16px; }
.top .links a { text-decoration: none; opacity: 0.9; white-space: nowrap; }
.top .links a:hover { opacity: 1; text-decoration: underline; }
.top .fb { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.35); }
.top .fb:hover { text-decoration: none !important; background: rgb(255 255 255 / 0.1); }
.top .get { background: var(--gold); color: var(--navy); font-weight: 800; text-decoration: none; border-radius: 99px; padding: 6px 16px; white-space: nowrap; }
.top .get:hover { filter: brightness(1.06); }
.menu-btn { display: none; background: none; border: 1px solid rgb(255 255 255 / 0.35); color: #fff; border-radius: 10px; width: 40px; height: 36px; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .top .links { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 6px 16px 14px; box-shadow: 0 12px 24px rgb(0 0 0 / 0.3); z-index: 30; }
  .top .links.open { display: flex; }
  .top .links a { padding: 11px 4px; border-bottom: 1px solid rgb(255 255 255 / 0.1); font-size: 16px; }
  .top .links .fb, .top .links .lang { align-self: flex-start; margin-top: 10px; border-bottom: 1px solid rgb(255 255 255 / 0.35); }
  .top .links .fb { width: 36px; height: 36px; padding: 0; }
  .top .links .lang { padding: 4px 14px; }
}
@media (max-width: 400px) { .top .get { padding: 5px 12px; font-size: 14px; } .hlogo { --w: 130px; } }

/* The opening on the home pages (site.js), as in the app: units of --u are the logo's own. When it ends, the big logo
   flies up into the header's logo and becomes it, while the navy screen fades and the page shows behind it. The header's
   own logo waits, still and whole, until the big one has landed on it. The scrollbar's place is kept throughout, so the
   page doesn't jump sideways when it can scroll again. */
.opening-on body { overflow: hidden; }
html.opening-on, html.opening-reveal { scrollbar-gutter: stable; }
html.opening-on { background: var(--navy); } /* the kept scrollbar place, under the opening */
.opening-on .hlogo, .opening-flying .hlogo { visibility: hidden; }
.opening-on .hero, .opening-on .ticker { opacity: 0; }
.opening-reveal .hero, .opening-reveal .ticker { transition: opacity 600ms ease 150ms; }
#opening { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; background: var(--navy); overflow: hidden; transition: background-color 600ms ease; cursor: pointer; }
#opening.opening-leave { background-color: rgb(10 42 94 / 0); pointer-events: none; }
#opening.opening-leave .opening-sound { opacity: 0; transition: opacity 200ms ease; }
.opening-logo { --w: min(72vw, 300px); --u: calc(var(--w) / 168); position: relative; width: var(--w); height: calc(var(--u) * 23); transition: transform 750ms cubic-bezier(0.65, 0, 0.25, 1); will-change: transform; }
.opening-logo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.opening-bar { position: absolute; left: var(--u); width: calc(var(--u) * 30); height: calc(var(--u) * 5.5); border-radius: calc(var(--u) * 2.75); background: var(--gold); }
.opening-bar-top { top: calc(var(--u) * 2.5); animation: opening-top 2.45s ease-in-out both; }
.opening-bar-bottom { top: calc(var(--u) * 15); animation: opening-bottom 2.45s ease-in-out both; }
.opening-letter { opacity: 0; animation: opening-letter 250ms ease-out both; }
.opening-letter:nth-child(1) { animation-delay: 2.45s; }
.opening-letter:nth-child(2) { animation-delay: 2.57s; }
.opening-letter:nth-child(3) { animation-delay: 2.69s; }
.opening-letter:nth-child(4) { animation-delay: 2.81s; }
@keyframes opening-top {
  0% { transform: translate(calc(var(--u) * 84 + 50vw), -14vh); }
  26.5% { transform: translate(calc(var(--u) * 52 - 50vw), -14vh); }
  46.9%, 49% { transform: translate(calc(var(--u) * 68), -14vh); }
  59.2%, 85.7% { transform: translate(calc(var(--u) * 68), 0); }
  100% { transform: translate(0, 0); }
}
@keyframes opening-bottom {
  0% { transform: translate(calc(var(--u) * 52 - 50vw), 14vh); }
  26.5% { transform: translate(calc(var(--u) * 84 + 50vw), 14vh); }
  46.9%, 49% { transform: translate(calc(var(--u) * 68), 14vh); }
  59.2%, 85.7% { transform: translate(calc(var(--u) * 68), 0); }
  100% { transform: translate(0, 0); }
}
@keyframes opening-letter { from { opacity: 0; transform: translateY(1.5px); } to { opacity: 1; transform: none; } }
.opening-sound { position: absolute; bottom: 28px; background: rgb(255 255 255 / 0.08); color: #fff; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 99px; padding: 6px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.opening-sound:hover { background: rgb(255 255 255 / 0.16); }

/* The language switch, first on the right in both languages: Egypt's flag for Arabic, the US flag for English. The
   language in use has the gold frame, as every choice in Pono does. */
.langs { display: flex; gap: 4px; background: rgb(255 255 255 / 0.06); border-radius: 99px; padding: 3px; }
.langs a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; border: 1.5px solid transparent; text-decoration: none !important; opacity: 0.8; font-size: 14px; white-space: nowrap; }
.langs a:hover { opacity: 1; }
.langs a[aria-current] { border-color: var(--gold); opacity: 1; background: rgb(242 184 75 / 0.12); }
.langs svg { border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25); flex: none; }
/* Flags only; the words stay for screen readers. */
.langs span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.langs a { padding: 4px 8px; }

/* "About us" sits beside the flags, written like the other header links. */
.top .nav > .about { text-decoration: none; opacity: 0.9; white-space: nowrap; }
.top .nav > .about:hover { opacity: 1; text-decoration: underline; }

/* Help and contact: one headset icon in the header, round like Facebook's; the help page opens with the email. */
.top .help { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.35); opacity: 0.9; }
.top .help:hover { opacity: 1; background: rgb(255 255 255 / 0.1); text-decoration: none !important; }
.mailbox { text-align: center; background: rgb(242 184 75 / 0.1); border: 1px solid rgb(242 184 75 / 0.45); border-radius: 16px; padding: 14px 16px 18px; margin: 14px 0 18px; }
.mailbox p { margin: 0 0 6px; font-weight: 700; }
@media (max-width: 1000px) { .top .links .help { align-self: flex-start; margin-top: 10px; width: 36px; height: 36px; padding: 0; border-bottom: 1px solid rgb(255 255 255 / 0.35); } }

/* The header reads the same in both languages: flags at the right, then About us, Features, Prices, Privacy, help,
   Facebook. Each sits in a thin gold frame, pale until the pointer is on it. */
.top .nav { direction: rtl; }
.top .nav > .about, .top .links > a:not(.help):not(.fb) { border: 1.5px solid rgb(242 184 75 / 0.35); border-radius: 99px; padding: 4px 13px; text-decoration: none !important; opacity: 1; transition: border-color 150ms ease, background 150ms ease; }
.top .nav > .about:hover, .top .links > a:not(.help):not(.fb):hover { border-color: var(--gold); background: rgb(242 184 75 / 0.08); }
.top .help, .top .fb { border: 1.5px solid rgb(242 184 75 / 0.35); opacity: 1; transition: border-color 150ms ease, background 150ms ease; }
.top .help:hover, .top .fb:hover { border-color: var(--gold); background: rgb(242 184 75 / 0.08); }
.top .links { gap: 8px; }
.top .langs { border: 1.5px solid rgb(242 184 75 / 0.35); }
.top .langs:hover { border-color: var(--gold); }
[dir="ltr"] .top .links { direction: ltr; }
[dir="ltr"] .top .links { flex-direction: row-reverse; }
@media (max-width: 1000px) {
  .top .links > a:not(.help):not(.fb) { border: 0; border-bottom: 1px solid rgb(255 255 255 / 0.1); border-radius: 0; padding: 11px 4px; }
  [dir="ltr"] .top .links { flex-direction: column; text-align: left; }
}

/* Every tap anywhere on the site: a light gold flash, so it's clear the press landed (site.js adds .tapped). */
a, button, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
.tapped { animation: tap-flash 380ms ease-out; }
@keyframes tap-flash { 0% { box-shadow: 0 0 0 0 rgb(242 184 75 / 0.55); background-color: rgb(242 184 75 / 0.22); } 100% { box-shadow: 0 0 0 10px rgb(242 184 75 / 0); } }
@media (prefers-reduced-motion: reduce) { .tapped { animation: none; background-color: rgb(242 184 75 / 0.18); } }

/* Phones: About us moves into the menu, the flags get smaller, and the menu button stands right of the flags, so the
   logo keeps its room. The Google Play badge stays on one line. */
.top .links .about-m { display: none; }
.store small, .store strong { white-space: nowrap; }
@media (max-width: 640px) {
  .top .nav > .about { display: none; }
  .top .links .about-m { display: block; }
  .top .nav .menu-btn { order: -1; width: 36px; height: 32px; }
  .top .nav { gap: 8px; }
  .langs { padding: 2px; gap: 2px; }
  .langs a { padding: 3px 5px; }
  .langs svg { width: 18px; height: 12px; }
}

/* Footer: Pono on every platform, as gold-framed icons */
footer .social { display: flex; gap: 10px; width: 100%; justify-content: center; }
footer .social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; border: 1.5px solid rgb(242 184 75 / 0.35); transition: border-color 150ms ease, background 150ms ease; }
footer .social a:hover { text-decoration: none; border-color: var(--gold); background: rgb(242 184 75 / 0.08); }
/* Header: the five platforms side by side; in the phone menu, one row */
.top .soc { display: flex; gap: 6px; }
@media (max-width: 1000px) { .top .links .soc { align-self: flex-start; margin-top: 10px; gap: 10px; } .top .links .soc .fb { margin-top: 0; } }

/* Tools: gold and silver prices, certificate and loan calculators */
.tool-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tool-nav a { border: 1.5px solid rgb(242 184 75 / 0.45); border-radius: 99px; padding: 4px 14px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); }
.tool-nav a.on, .tool-nav a:hover { border-color: var(--gold); background: rgb(242 184 75 / 0.14); }
.metal-board { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 6px; }
.metal { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.metal h2 { margin: 0; font-size: 20px; }
.metal .unit { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.metal table { width: 100%; border-collapse: collapse; }
.metal th { text-align: start; font-weight: 600; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.metal td { text-align: end; font-weight: 800; padding: 8px 0; border-top: 1px solid var(--line); white-space: nowrap; font-size: 17px; }
.metal-at { grid-column: 1 / -1; margin: 0; }
.metal.wide { grid-column: 1 / -1; }
.tool { display: grid; gap: 14px; margin: 18px 0 6px; }
.tool label { display: grid; gap: 4px; }
.tool label > span, .tool legend { font-size: 14px; font-weight: 700; color: var(--muted); }
.tool input:not([type=radio]), .tool select { font: inherit; font-size: 17px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; }
.tool input:focus, .tool select:focus { outline: none; border-color: var(--gold); }
.tool .seg { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.tool .seg label { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.tool .seg label:has(input:checked) { border: 3px solid var(--gold); background: rgb(242 184 75 / 0.12); padding: 8px 10px; }
.tool .seg input { accent-color: var(--gold); width: 18px; height: 18px; }
.tool .when-new, .tool .when-have { display: grid; gap: 14px; }
.tool [hidden] { display: none !important; }
.result { border: 3px solid var(--gold); border-radius: 18px; padding: 16px; background: rgb(242 184 75 / 0.08); }
.result .big { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 10px; }
.result .big span { color: var(--muted); font-weight: 700; font-size: 15px; }
.result .big strong { font-size: clamp(28px, 6vw, 38px); color: var(--navy); }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 800; text-align: end; white-space: nowrap; }
.result .bad { color: #c0392b; font-weight: 700; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.tool-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-top: 22px; background: var(--navy); color: #fff; border-radius: 18px; padding: 20px 16px; }
.tool-cta span { color: #c9d6ee; font-size: 15px; }
.tool-cta .btn-gold { margin-top: 6px; }
@media (prefers-color-scheme: dark) { .result .big strong { color: var(--gold); } }
@media (max-width: 640px) { .metal-board { grid-template-columns: 1fr; } }
/* Pono's mark across the tools' figures, faint, so a screenshot still says where it came from */
.metal, .result { position: relative; isolation: isolate; overflow: hidden; }
.metal::after, .result::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/img/wm.svg") center / 86% auto no-repeat; opacity: 0.07; transform: rotate(-14deg); }
@media (prefers-color-scheme: dark) { .metal::after, .result::after { background-image: url("/img/wm-dark.svg"); opacity: 0.08; } }
.metal { background: transparent; }
.wm-site { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--gold); opacity: 0.85; }
/* Home, between the flags and About us: a round icon in the same pale gold frame; on phones the header stays as it was */
.top .home-link { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid rgb(242 184 75 / 0.35); color: #fff; transition: border-color 150ms ease, background 150ms ease; }
.top .home-link:hover { border-color: var(--gold); background: rgb(242 184 75 / 0.08); text-decoration: none !important; }
@media (max-width: 640px) { .top .home-link { display: none; } }
/* The Google Play logo, next to every "Google Play" */
svg.gp { display: inline-block; width: 0.95em; height: 1em; vertical-align: -0.12em; margin-inline-end: 0.3em; }
.ticker-item svg.gp { width: 1em; }
/* Pono's pages, all of them, wherever the site mentions them */
.plat-title { font-weight: 800; margin: 18px 0 4px; }
.plat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 4px; }
.plat-row a { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid rgb(242 184 75 / 0.45); border-radius: 99px; padding: 5px 12px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); background: var(--card); }
.plat-row a:hover { border-color: var(--gold); background: rgb(242 184 75 / 0.12); }
.plat-row svg { width: 18px; height: 18px; }
/* The salary calculator's bracket-by-bracket tax, and the pay dates page (tools.js) */
.result .steps { margin: 12px 0 0; padding: 0 14px; background: transparent; }
.result .steps dl { margin-bottom: 8px; }
.result .steps p { font-size: 14px; }
.tool > .over { margin: 0; }
.countdown { margin: 18px 0 6px; }
.countdown .big span b { color: var(--ink); }
.dates { margin-top: 16px; }
.dates td { font-size: 16px; white-space: normal; }
.dates tr.past th, .dates tr.past td { opacity: 0.45; text-decoration: line-through; text-decoration-thickness: 1px; }
.dates .stale { margin: 10px 0 4px; font-weight: 700; }

/* Services in the header: on a computer the list drops down under it while the pointer is on it (or it has focus); on
   phones, inside the menu, a tap opens and closes it (site.js). The page you're on turns gold (no tick: the gold alone marks a choice), and
   "Services" itself is gold while you're on any of them. */
.svc { position: relative; }
.top .svc-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid rgb(242 184 75 / 0.35); border-radius: 99px; padding: 4px 13px; text-decoration: none !important; white-space: nowrap; transition: border-color 150ms ease, background 150ms ease; }
.top .svc-btn .chev { transition: transform 150ms ease; }
.top .svc-btn.on, .svc:hover .svc-btn, .svc:focus-within .svc-btn { border-color: var(--gold); background: rgb(242 184 75 / 0.1); }
.svc-menu { display: none; position: absolute; top: 100%; inset-inline-start: 0; z-index: 40; padding-top: 8px; min-width: 230px; }
.svc-menu::before { content: ""; position: absolute; inset: 8px 0 0; background: var(--navy); border: 1.5px solid rgb(242 184 75 / 0.45); border-radius: 16px; box-shadow: 0 14px 30px rgb(0 0 0 / 0.35); z-index: -1; }
.top .svc-menu a { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px; padding: 8px 12px; border: 1.5px solid transparent; border-radius: 12px; text-decoration: none !important; opacity: 0.92; }
.top .svc-menu a:first-child { margin-top: 14px; }
.top .svc-menu a:hover { opacity: 1; background: rgb(242 184 75 / 0.1); }
.top .svc-menu a.on { border-color: var(--gold); background: rgb(242 184 75 / 0.14); opacity: 1; font-weight: 700; }
@media (min-width: 1001px) {
  .svc:hover .svc-menu, .svc:focus-within .svc-menu { display: block; }
  .svc:hover .chev, .svc:focus-within .chev { transform: rotate(180deg); }
  .tool-nav { display: none; } /* the Services list does its job on a computer */
}
@media (max-width: 1000px) {
  .top .svc-btn { display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid rgb(255 255 255 / 0.1); border-radius: 0; padding: 11px 4px; font-size: 16px; background: none !important; }
  .top .svc-btn.on { color: var(--gold); }
  .svc.open .chev { transform: rotate(180deg); }
  .svc.open .svc-menu { display: block; position: static; padding: 4px 0 6px; min-width: 0; }
  .svc-menu::before { display: none; }
  .top .svc-menu a { margin: 4px 10px; padding: 9px 12px; font-size: 15px; border-bottom: 1.5px solid transparent; }
  .top .svc-menu a:first-child { margin-top: 6px; }
}
.result .good { color: #1e8449; font-weight: 800; text-align: center; font-size: 20px; margin: 4px 0; }
@media (prefers-color-scheme: dark) { .result .good { color: #58d68d; } }
/* The headset (help) now sits in the platforms row, so on phones they share one line in the menu. */
.top .soc .help { margin: 0; }
@media (max-width: 1000px) { .top .links .soc .help { margin-top: 0; width: 36px; height: 36px; } }
