/* Nuvra landing page, dark.
   Direction: the sentence is the layout (tasteskill seed 46972243). The page takes the app's own night:
   near-black ground, warm white ink, one lime accent, and a lime field for the close.
   Type: Google Fonts Zain for both Arabic and English, including interface fragments. */

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-2: #111114;
  --surface: #17171a;
  --surface-2: #1f2023;
  --surface-3: #2a2b2f;
  --ink: #f2f2ee;
  --muted: #a3a6ae;
  --accent: #e4f222;
  --accent-strong: #eef75e;
  --accent-ink: #0b0c0d;
  --pill: #0b0b0d;

  --font: "Zain", sans-serif;
  --font-ar: var(--font);
  --font-ui: var(--font);

  /* five steps */
  --step-small: 0.875rem;                                    /* 14 */
  --step-body: clamp(1.25rem, 1.1rem + 0.25vw, 1.375rem);     /* 20 to 22 */
  --step-lead: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);        /* 20 to 28 */
  --step-head: clamp(2.5rem, 1.25rem + 3.4vw, 4.5rem);      /* 40 to 72 */
  --step-display: clamp(2.25rem, 0.6rem + 6.4vw, 6.5rem);    /* 36 to 104 */

  --margin: max(clamp(1rem, 2.2vw, 2rem), calc((100vw - 1440px) / 2));
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 12vw, 12.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  interpolate-size: allow-keywords;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); font-weight: 400; line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2 { font-weight: 300; text-wrap: balance; letter-spacing: -0.015em; }
h3 { font-weight: 400; }
p { text-wrap: pretty; }
[lang="ar"] { font-family: var(--font-ar); letter-spacing: 0; }
.skip-link { position: absolute; top: 1rem; left: var(--margin); z-index: 10; padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink); }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

kbd { display: inline-block; padding: 0 0.32em; border-radius: 0.2em; background: var(--surface-3); color: var(--ink); font: inherit; line-height: 1.3; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); font-size: var(--step-body); font-weight: 700; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button-small { min-height: 2.75rem; padding: 0 1.15rem; }
.button-large { min-height: 3.5rem; padding: 0 1.9rem; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- navigation ---------- */
.nav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); padding: 1.25rem 0 0; }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.wordmark img { width: 2rem; height: 2rem; }
.nav-right { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2rem); }
.nav-links { display: flex; gap: clamp(1.25rem, 2.2vw, 2rem); font-size: var(--step-body); }

.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.repo-link { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 6px; }
.repo-link img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.repo-link:hover { background: var(--surface-3); }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; align-items: center; gap: 3rem var(--gutter); min-height: 100svh; padding: 0 var(--margin) 3rem; overflow: clip; }
.hero-type { padding: 2rem 0; min-width: 0; }
.hero-title { font-size: clamp(3rem, 4.8vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.lines [data-line] { display: block; }
/* a heading set as masked lines: each line is its own block, with or without motion */
.rise .line { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.rise .line > span { display: block; }

/* the recording pill, drawn from the app (147 x 40) at the size of the type */
.pill { position: relative; display: inline-block; vertical-align: baseline; height: 0.66em; width: 2.43em; margin-right: 0.14em; background: var(--pill); border-radius: 999px; outline: 1px solid rgba(255, 255, 255, 0.16); outline-offset: -1px; }
/* Center the pill against Zain's visible headline, including its descenders. */
.hero-title .pill { vertical-align: -0.09em; }
.pill-btn { position: absolute; top: 50%; width: 0.462em; height: 0.462em; margin-top: -0.231em; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; }
.pill-btn:first-child { left: 0.099em; }
.pill-btn.go { right: 0.099em; background: #fff; color: var(--pill); }
.pill-btn svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pill-dots { position: absolute; top: 0; bottom: 0; left: 0.66em; right: 0.66em; display: flex; align-items: center; justify-content: center; gap: 0.066em; }
.pill-dots i { display: block; width: 0.05em; height: 0.05em; border-radius: 50%; background: #fff; opacity: 0.9; }

.hero-sub { max-width: 52ch; margin: clamp(1.25rem, 3vh, 1.75rem) 0 0; font-size: var(--step-body); line-height: 1.5; }
.hero-action { margin-top: clamp(1.25rem, 3vh, 1.75rem); }
.platform-note { margin-top: 0.75rem; color: var(--muted); font-size: var(--step-body); }
.platform-note a { text-underline-offset: 0.2em; }

/* the app's own window, with the Windows title bar it opens in */
.window { overflow: clip; border-radius: 10px; background: #08090a; outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 12px; background: #141518; color: #c9ccd2; font: 12px/1 var(--font-ui); }
.window-bar img { width: 16px; height: 16px; }
.window-ctl { display: flex; margin-left: auto; height: 100%; }
.window-ctl svg { width: 46px; height: 100%; padding: 12px 18px; fill: none; stroke: currentColor; stroke-width: 1; }
.window-shot { display: block; width: 100%; height: auto; }

.hero-window { width: 100%; min-width: 0; margin: 0; }

/* ---------- sections ---------- */
section { padding-inline: var(--margin); }
.privacy, .kept, .faq { padding-top: var(--section); }
.faq { padding-bottom: var(--section); }

/* ---------- scene 1: the sentence turns ---------- */
.turn-stage { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(1.75rem, 4vh, 3rem); padding-block: var(--section); text-align: center; }
.turn.is-live > .turn-stage { padding-block: 0; }
.turn-title { font-size: var(--step-lead); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.turn-box { position: relative; width: min(100%, 86rem); }
.turn-cap { font-size: var(--step-body); color: var(--muted); }
/* each line breaks into two at most: the size follows the width below the display step */
.turn-line { margin-top: 0.4rem; font-size: min(var(--step-head), 6.2vw); font-weight: 300; line-height: 1.22; letter-spacing: -0.01em; }
.turn-paste { margin-top: clamp(2rem, 5vh, 3.5rem); }
.turn-line .t { display: inline-block; white-space: nowrap; }
.turn-line .nw { white-space: nowrap; }
.turn-line .keep { color: var(--accent); font-family: var(--font); }
.turn-text { max-width: 46ch; font-size: var(--step-body); }
.turn.is-live .t { will-change: transform, opacity; }
/* the travelling words pass over everything below them */
.turn.is-live .turn-ar .keep { position: relative; z-index: 1; }

/* ---------- try it: the headline is the input ---------- */
.try { padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: clamp(5rem, 9vw, 8rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; background: var(--bg-2); }
.try-title { grid-column: 1 / -1; font-size: var(--step-head); line-height: 1.02; }
.try-line { grid-column: 1 / -1; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.try-label { display: block; margin-bottom: 0.5rem; color: var(--muted); font-size: var(--step-body); }
.try-input { display: block; width: 100%; min-height: 3.5em; field-sizing: content; resize: vertical; padding: 0.4em 0.5em; border: 1px solid var(--muted); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--font-ar); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.5; caret-color: var(--accent); }
.try-input:focus { outline: none; }
.try-input:focus-visible { outline: 2px solid var(--muted); outline-offset: 0.2em; }
.try-side { grid-column: 1 / 7; grid-row: 3; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.try-side p { max-width: 40ch; }
.try-hint { margin-top: 1.5rem; color: var(--muted); }
.try-examples { margin-top: 0.75rem; display: grid; gap: 0.35rem; }
.try-examples li { min-inline-size: 0; }
.try-examples button { display: block; inline-size: 100%; min-height: 44px; font-family: var(--font-ar); font-size: var(--step-body); line-height: 1.5; text-align: start; text-wrap: pretty; text-decoration: underline; text-decoration-color: rgba(242, 242, 238, 0.32); text-underline-offset: 0.3em; text-decoration-thickness: 0.06em; transition: text-decoration-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.example-term, .inline-term { white-space: nowrap; }
.try-examples button:active { transform: scale(0.98); }
.try-examples button[aria-current="true"] { text-decoration-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .try-examples button:hover { text-decoration-color: var(--ink); } }

/* the answer: an interface fragment at true size */
.answer { grid-column: 7 / -1; grid-row: 3; justify-self: end; width: min(100%, 35rem); margin-top: clamp(2.5rem, 4vw, 3.5rem); font-family: var(--font-ui); font-size: 15px; line-height: 1.6; color: #d0d6e0; }
.answer-modes { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; background: #1b1c1f; border-radius: 6px; }
.answer-mode { min-height: 44px; padding: 8px 12px; border-radius: 4px; font-family: var(--font-ui); font-size: 16px; line-height: 1.5; color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.answer-mode[aria-pressed="true"] { background: #2e3035; color: #fff; }
.answer-mode:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .answer-mode:hover { color: #fff; } }
.answer-field { margin-top: 10px; min-height: 7.5rem; padding: 14px 16px; background: #1d1e22; border-radius: 12px; outline: 1px solid rgba(255, 255, 255, 0.06); outline-offset: -1px; }
.answer-text { color: #fff; font-size: 20px; line-height: 1.65; white-space: pre-line; }
.answer-text .slot { padding: 1px 4px; margin: 0 -1px; border-radius: 4px; background: rgba(228, 242, 34, 0.18); color: #fff; }
.answer-text .slot[lang="ar"] { font-family: var(--font-ar); }
.answer-text .wait { color: #8a8f98; }
.answer-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: #fff; }
.answer-note { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- scene 2: one shortcut, played ---------- */
.how-stage { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: var(--section); }
.how.is-live > .how-stage { padding-block: 0; }
.how-title { font-size: var(--step-head); line-height: 1.02; }
.steps { margin-top: clamp(1.75rem, 4vh, 2.75rem); display: grid; gap: clamp(0.9rem, 2.2vh, 1.4rem); }
.step h3 { font-size: var(--step-lead); line-height: 1.2; }
.step p { margin-top: 0.3rem; max-width: 38ch; line-height: 1.45; }
.how-count { margin-top: 1.5rem; font-size: var(--step-small); color: var(--muted); }
.how.is-live .step { opacity: 0.5; transition: opacity 260ms ease; }
.how.is-live[data-beat="0"] .step[data-step="0"], .how.is-live[data-beat="1"] .step[data-step="1"],
.how.is-live[data-beat="2"] .step[data-step="2"], .how.is-live[data-beat="3"] .step[data-step="3"] { opacity: 1; }
.how.is-live[data-beat="0"] .how-count::after { content: "Step 1 of 4"; }
.how.is-live[data-beat="1"] .how-count::after { content: "Step 2 of 4"; }
.how.is-live[data-beat="2"] .how-count::after { content: "Step 3 of 4"; }
.how.is-live[data-beat="3"] .how-count::after { content: "Step 4 of 4"; }

/* the demo: keys, what you said, the pill and the field it lands in */
.demo { display: grid; gap: clamp(1.25rem, 3vh, 2rem); padding: clamp(1.25rem, 2.6vw, 2.25rem); border-radius: 16px; background: #121215; outline: 1px solid rgba(255, 255, 255, 0.07); outline-offset: -1px; font-family: var(--font-ui); }
.demo-keys { display: flex; gap: 8px; }
.demo-keys kbd { padding: 9px 14px; border-radius: 8px; background: #26272b; color: #f2f2ee; font: 500 15px/1 var(--font-ui); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4); }
.demo-keys .k-enter { margin-left: auto; }
.demo-said { min-height: 1.6em; font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.5; text-align: center; color: #f2f2ee; }
.demo-said span { display: inline-block; }
.demo .pill { display: block; justify-self: center; margin: 0; font-size: 76px; }
.demo-field { padding: 14px 16px 12px; border-radius: 12px; background: #1d1e22; outline: 1px solid rgba(255, 255, 255, 0.06); outline-offset: -1px; }
.demo-app { font-size: 13px; color: #8a8f98; }
.demo-text { position: relative; margin-top: 6px; min-height: 3.3em; font-size: 16px; line-height: 1.65; color: #fff; }
.demo-placeholder { display: none; color: #969ba4; }
.demo-out { display: inline; }
.demo-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: #fff; }
.demo-send { margin-top: 8px; font-size: 13px; color: #8a8f98; }
.how.is-live .demo-placeholder { display: inline; }

/* ---------- privacy: where each part runs, beside the Models tab ---------- */
.privacy-title { font-size: var(--step-head); line-height: 1.02; }
.privacy-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.privacy-left { grid-column: 1 / 7; display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); }
.privacy-left > p { max-width: 40ch; }
.table-name { margin-bottom: 1.1rem; font-size: var(--step-small); line-height: 1.6; color: var(--muted); }
.privacy-table table { border-collapse: collapse; width: 100%; font-size: var(--step-body); line-height: 1.4; }
.privacy-table td { padding: 0 0 1.2rem; vertical-align: top; }
.privacy-table td:first-child { width: 22%; color: var(--muted); }
.privacy-table td:nth-child(2) { width: 40%; padding-right: 1rem; }
.privacy-table td:last-child { text-align: right; }
.privacy-table tr.group td { padding-top: 1.4rem; }
.privacy-window { grid-column: 7 / -1; margin-top: 0.5rem; }

/* ---------- nothing gets lost: a paragraph with interface words, two windows ---------- */
.kept { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.kept-title { grid-column: 1 / -1; font-size: var(--step-head); line-height: 1.02; }
.kept-text { grid-column: 1 / 12; margin-top: clamp(2rem, 3.5vw, 3rem); font-size: var(--step-lead); line-height: 1.5; max-width: 58ch; }
.slot-ui { display: inline-flex; align-items: center; justify-content: center; height: 1.15em; vertical-align: middle; margin: 0 0.08em; font-family: var(--font-ui); font-size: 1em; line-height: 1; white-space: nowrap; }
.slot-pill { width: 3.6em; gap: 0.25em; padding: 0 0.16em; background: var(--pill); border-radius: 999px; outline: 1px solid rgba(255, 255, 255, 0.16); outline-offset: -1px; }
.mini-btn { display: grid; place-items: center; width: 0.82em; height: 0.82em; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; }
.mini-btn svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mini-btn.go { background: #fff; color: var(--pill); }
.mini-dots { flex: 1; display: flex; justify-content: center; align-items: center; gap: 3px; }
.mini-dots i { width: 3px; height: 3px; border-radius: 50%; background: #fff; }
.slot-copy { padding: 0 0.4em; border-radius: 6px; background: var(--surface-3); color: #fff; }
.slot-copy > span, .slot-ready > span { font-size: 0.65em; }
.slot-ready { gap: 0.22em; padding: 0 0.35em; border-radius: 4px; background: rgba(39, 166, 68, 0.16); color: #6fdc8a; }
.slot-ready i { width: 0.25em; height: 0.25em; border-radius: 50%; background: #3ccb5d; }
.slot-lang { gap: 2px; padding: 2px; border-radius: 6px; background: var(--surface-2); }
.slot-lang b { display: grid; place-items: center; min-width: 1.9em; height: 100%; padding: 0 0.35em; border-radius: 4px; font-size: 0.6em; font-weight: 400; color: #9aa0a8; }
.slot-lang b.on { background: var(--ink); color: var(--bg); font-family: var(--font-ar); }
.kept-pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(3rem, 6vw, 5rem); }
.kept-en { grid-column: 1 / 7; }
.kept-ar { grid-column: 7 / -1; }
.kept-after { grid-column: 7 / -1; margin-top: clamp(3rem, 5vw, 4.5rem); display: grid; gap: 1.5rem; justify-items: start; }
.kept-after p { max-width: 40ch; }

/* ---------- questions ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.faq-title { grid-column: 1 / -1; font-size: var(--step-head); line-height: 1.02; }
.faq-list { grid-column: 5 / -1; margin-top: clamp(3rem, 5.5vw, 5rem); display: grid; gap: 0.5rem; }
.faq details { margin: 0 -1.5rem; padding: 0.9rem 1.5rem; border-radius: 4px; transition: background-color var(--t-hover) ease; }
.faq details[open] { background: var(--surface); padding-bottom: 1.5rem; }
.faq summary { position: relative; display: block; padding-right: 3rem; font-size: var(--step-lead); line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; top: 0.68em; right: 0.35rem; width: 0.62rem; height: 2px; background: currentColor; transition: transform 240ms var(--ease-out); }
.faq summary::before { right: calc(0.35rem + 0.43rem); transform: rotate(40deg); }
.faq summary::after { transform: rotate(-40deg); }
.faq details[open] summary::before { transform: rotate(-40deg); }
.faq details[open] summary::after { transform: rotate(40deg); }
.faq-answer p { padding-top: 0.9rem; max-width: 48ch; }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]):hover { background: rgba(255, 255, 255, 0.035); } }

/* ---------- the close: the one lime field ---------- */
.close { min-height: 76svh; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: 2.5rem; background: var(--accent); color: var(--accent-ink); }
.close ::selection { background: var(--accent-ink); color: var(--accent); }
.close :focus-visible { outline-color: var(--accent-ink); }
.close-title { font-size: var(--step-display); line-height: 0.96; letter-spacing: -0.02em; }
.close-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-top: 4rem; }
.close-row p { grid-column: 1 / 6; max-width: 40ch; font-size: var(--step-body); }
.close-row .button { grid-column: 9 / -1; justify-self: end; background: var(--accent-ink); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .close-row .button:hover { background: #26272b; } }

/* Platform downloads keep the close's flat, editorial layout. */
.mac-download { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem var(--gutter); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid currentColor; }
.mac-download-copy { max-width: 48ch; }
.mac-download h3 { font-size: var(--step-lead); font-weight: 700; }
.mac-download p { margin-top: 0.5rem; }
.mac-download a { text-underline-offset: 0.2em; }
.mac-download-copy > a { display: inline-block; margin-top: 0.75rem; }
.mac-download-actions { justify-self: end; max-width: 38ch; }
.mac-download-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1rem; }
.mac-download-links[hidden], .mac-download-links a[hidden] { display: none; }
.mac-download-links .button { background: var(--accent-ink); color: var(--accent); white-space: normal; padding-block: 0.75rem; text-align: center; }
.mac-release-links { font-size: var(--step-body); }
@media (max-width: 640px) {
  .mac-download { grid-template-columns: minmax(0, 1fr); }
  .mac-download-actions { justify-self: stretch; max-width: none; }
  .mac-download-links { flex-direction: column; }
}

/* ---------- footer ---------- */
.footer { display: flex; flex-direction: column; padding: clamp(2.5rem, 5vw, 4.5rem) var(--margin) 2rem; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.footer-top .wordmark { grid-column: 1 / 3; font-size: var(--step-body); }
.footer-top .wordmark img { width: 1.75rem; height: 1.75rem; }
.footer-top p { grid-column: 4 / 9; max-width: 44ch; font-size: var(--step-body); line-height: 1.45; }
.footer-up { grid-column: 10 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-size: 1rem; text-decoration-color: currentColor; }
.footer-up svg, .footer-line svg { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer-line { margin-top: clamp(2rem, 4vw, 3.5rem); padding-block: 1.5rem; border-block: 1px solid var(--surface-3); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; text-decoration: none; text-wrap: balance; transition: color var(--t-hover) ease; }
.footer-line svg { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .footer-line:hover { color: var(--accent); } }
.footer-meta { display: grid; grid-template-columns: 1fr auto; gap: 1rem var(--gutter); align-items: center; margin-top: 1.25rem; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.footer-links { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; color: var(--ink); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: currentColor; }
.footer-credits { grid-column: 1 / -1; grid-row: 2; }
.footer-year { grid-column: 2; grid-row: 1; justify-self: end; white-space: nowrap; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .faq details { margin: 0 calc(var(--margin) * -1); padding-inline: var(--margin); }
  .try-side { grid-column: 1 / -1; grid-row: 4; max-width: 52ch; }
  .answer { grid-column: 1 / -1; justify-self: start; width: min(100%, 36rem); }
  .privacy-left { grid-column: 1 / -1; }
  .privacy-window { grid-column: 1 / -1; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
  .kept-text { grid-column: 1 / -1; }
  .kept-en, .kept-ar { grid-column: 1 / -1; }
  .kept-pair { row-gap: 2rem; }
  .kept-after { grid-column: 1 / -1; }
  .faq-list { grid-column: 1 / -1; }
  .close-row p { grid-column: 1 / 8; }
}

/* the shortcut scene stacks before it gets too narrow for two columns */
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; gap: 0; padding-bottom: 2rem; }
  .nav { width: 100%; }
  .hero-type { text-align: center; padding-block: 2rem; }
  .hero-sub { margin-inline: auto; }
  .hero-window { width: min(100%, 40rem); margin: auto; }
  .how-stage { grid-template-columns: 1fr; row-gap: 2.5rem; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  /* Compact heading scale; body text stays at least 20px. */
  :root { --step-head: 2.3rem; --step-display: 3.4rem; }
  .nav { flex-wrap: wrap; row-gap: 0.5rem; }
  .nav-right { display: contents; }
  .nav-links { order: 1; width: 100%; justify-content: space-between; gap: 0.75rem; font-size: 1.125rem; }
  .nav-right .repo-link { margin-left: auto; }
  .nav { column-gap: 0.75rem; }
  .wordmark img { width: 1.75rem; height: 1.75rem; }
  .hero-type { padding-block: 1.5rem; }
  .hero-title { font-size: clamp(2rem, 10.5vw, 2.75rem); }
  .hero-action { width: 100%; }
  .hero-window { width: 100%; }

  .turn-line { font-size: 1.5rem; }
  .turn-text { font-size: var(--step-body); }

  .try-input { font-size: 1.5rem; }
  .try-examples { gap: 0.5rem; }
  .try-examples button { min-height: 2.75rem; padding: 0.35rem 0.75rem; border-radius: 4px; background: var(--surface-2); text-decoration: none; font-size: 1.25rem; }
  .try-examples button[aria-current="true"] { background: var(--surface-3); }
  .answer { width: 100%; }

  .demo-keys kbd { padding: 8px 10px; font-size: 14px; }
  .demo-said { font-size: 1.5rem; }

  .table-name { display: none; }
  .privacy-table table, .privacy-table tbody, .privacy-table tr { display: block; }
  .privacy-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding-bottom: 1.1rem; }
  .privacy-table tr.group { padding-top: 1.1rem; }
  .privacy-table td { padding: 0 !important; width: auto !important; }
  .privacy-table td:first-child { grid-column: 1; grid-row: 1; font-size: 0.875rem; }
  .privacy-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .privacy-table td:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

  .kept-text { line-height: 1.55; }
  .kept-pair { display: block; }
  .kept-ar { margin-top: 2rem; }
  .faq details { padding-block: 0.85rem; }

  .close { min-height: 70svh; }
  .close-row { display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .close-row .button { width: 100%; }

  .footer-top { grid-template-columns: 1fr auto; gap: 1.25rem; }
  .footer-top .wordmark { grid-column: 1; grid-row: 1; align-self: center; }
  .footer-top p { grid-column: 1 / -1; grid-row: 2; }
  .footer-up { grid-column: 2; grid-row: 1; }
  .footer-meta { grid-template-columns: 1fr; gap: 0.75rem; }
  .footer-links { column-gap: 1.25rem; }
  .footer-year { grid-column: 1; grid-row: 2; justify-self: start; }
  .footer-credits { grid-row: 3; }
}

/* ---------- motion (content is visible without JavaScript and under reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* the load: two lines rise, the sentence and the button follow, the window opens */
  .js .hero [data-line] { transform: translateY(105%); animation: rise-line 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * 100ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 560ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero [data-open] { clip-path: inset(18% 6% 0 6% round 10px); opacity: 0; animation: open-window 1100ms var(--ease-expo) 260ms forwards; }
  .js .hero [data-open] .window-shot { transform: scale(1.08); animation: settle 1500ms var(--ease-soft) 200ms forwards; }

  /* section entrances, each in its own manner */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* headings rise line by line out of their own mask */
  .js .rise[data-reveal] { opacity: 1; transform: none; }
  .js .rise[data-reveal] .line > span { opacity: 0; transform: translateY(110%); transition: transform 950ms var(--ease-expo), opacity 240ms ease; }
  .js .rise[data-reveal] .line:nth-child(2) > span { transition-delay: 90ms; }
  .js .rise[data-reveal].is-in .line > span { opacity: 1; transform: none; }

  /* app windows open from the bottom edge and settle inside their frame */
  .js .shutter[data-reveal] { opacity: 1; transform: none; }
  .js .shutter[data-reveal] .window { clip-path: inset(100% 0 0 0 round 10px); transition: clip-path 1150ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 120ms); }
  .js .shutter[data-reveal] .window-shot { transform: scale(1.1); transition: transform 1500ms var(--ease-soft); transition-delay: calc(var(--i, 0) * 120ms); }
  .js .shutter[data-reveal] figcaption { opacity: 0; transition: opacity 600ms ease 700ms; }
  .js .shutter[data-reveal].is-in .window { clip-path: inset(0 0 0 0 round 10px); }
  .js .shutter[data-reveal].is-in .window-shot { transform: none; }
  .js .shutter[data-reveal].is-in figcaption { opacity: 1; }

  /* the table arrives row by row */
  .js .privacy-table[data-reveal] tr { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-expo); transition-delay: calc(240ms + var(--r) * 70ms); }
  .js .privacy-table[data-reveal].is-in tr { opacity: 1; transform: none; }

  /* the interface words in the paragraph pop in after the text */
  .js .kept-text[data-reveal] .slot-ui { opacity: 0; transform: scale(0.9); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); }
  .js .kept-text[data-reveal] .slot-pill { transition-delay: 450ms; }
  .js .kept-text[data-reveal] .slot-copy { transition-delay: 560ms; }
  .js .kept-text[data-reveal] .slot-ready { transition-delay: 670ms; }
  .js .kept-text[data-reveal] .slot-lang { transition-delay: 780ms; }
  .js .kept-text[data-reveal].is-in .slot-ui { opacity: 1; transform: none; }

  /* loops: the pill's voice and the paste caret; they stop off screen. The small pill set inside the
     paragraph stays still, so nothing moves beside running text. */
  .pill-dots i { animation: voice 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * -0.17s); }
  .pill-dots i:nth-child(3n) { animation-duration: 1.05s; }
  .pill-dots i:nth-child(3n + 1) { animation-duration: 1.55s; }
  .is-paused .pill-dots i { animation-play-state: paused; }
  .answer-caret, .demo-caret { animation: blink 1.1s steps(1) infinite; }
  .answer-text.is-new { animation: paste 420ms var(--ease-out); }

  /* the open answer grows to its height */
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 380ms var(--ease-out), content-visibility 380ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }

  @supports (animation-timeline: view()) {
    /* the hero window tips up toward you as it comes into view */
    .hero-window .window { transform-origin: 50% 0; animation: window-tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    /* the Arabic window drifts a little faster than the English one behind it */
    .kept-ar .window { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    /* the close title grows slightly as the field arrives */
    .close-title { transform-origin: 0 100%; animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}
@keyframes rise-line { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes open-window { to { clip-path: inset(0 0 0 0 round 10px); opacity: 1; } }
@keyframes settle { to { transform: none; } }
@keyframes window-tilt { from { transform: perspective(1600px) rotateX(12deg) scale(0.94); } to { transform: none; } }
@keyframes drift { from { transform: translateY(7%); } to { transform: translateY(-7%); } }
@keyframes grow { from { transform: scale(0.94); } to { transform: none; } }
@keyframes voice { 0%, 100% { transform: scale(1); } 30% { transform: scale(2.6, 3.4); } 55% { transform: scale(1.4, 1.8); } 75% { transform: scale(2.1, 2.6); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes paste { from { opacity: 0.2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Decorative platform marks inherit the button colour in each section. */
.button .download-icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.download-status { margin-top: 1rem; font-size: var(--step-body); max-width: 65ch; }
.other-downloads { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid currentColor; }
.other-downloads summary { cursor: pointer; font-size: var(--step-body); }
.other-downloads .close-row { margin-top: 1.5rem; }
.other-downloads[hidden] { display: none; }

.language-switch { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
html[dir="rtl"] .wordmark, html[dir="rtl"] .window-bar, html[dir="rtl"] .demo-keys { direction: ltr; }
html[dir="rtl"] .hero-title { font-size: clamp(2.5rem, 4vw, 3.75rem); line-height: 1.25; letter-spacing: 0; }
html[dir="rtl"] .pill { margin-right: 0; margin-left: 0.14em; }
html[dir="rtl"] .privacy-table td:nth-child(2) { padding-right: 0; padding-left: 1rem; }
html[dir="rtl"] .privacy-table td:last-child { text-align: left; }
html[dir="rtl"] .faq summary { padding-right: 0; padding-left: 3rem; }
html[dir="rtl"] .faq summary::before, html[dir="rtl"] .faq summary::after { right: auto; left: 0.35rem; }
html[dir="rtl"] .faq summary::before { left: calc(0.35rem + 0.43rem); }
html[dir="rtl"] .turn-en, html[dir="rtl"] .answer-text { direction: ltr; }
html[dir="rtl"] .answer-text .wait { display: block; direction: rtl; text-align: right; }
kbd { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 640px) {
  .nav-right .repo-link { margin-left: 0; }
  .language-switch { margin-inline-start: auto; font-size: 1.125rem; }
  .nav .button-small { padding-inline: 0.75rem; font-size: 1.125rem; }
  html[dir="rtl"] .hero-title { font-size: clamp(1.7rem, 8.5vw, 2.1rem); }
  .nav { column-gap: 0.5rem; }
  .nav .repo-link { flex-basis: 32px; width: 32px; }
  .hero-action { white-space: normal; padding-block: 0.75rem; }
}
@media (max-width: 380px) {
  .nav .repo-link { display: none; }
}
.kept-after { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.button[data-platform-download] { max-width: 100%; white-space: normal; padding-block: 0.75rem; }

/* The Mac key names are longer; keep all four readable on narrow phones. */
@media (max-width: 640px) {
  .demo-keys { gap: 6px; }
  .demo-keys kbd { padding-inline: 8px; font-size: 14px; }
}
html[lang="ar"] .how.is-live[data-beat="0"] .how-count::after { content: "الخطوة 1 من 4"; }
html[lang="ar"] .how.is-live[data-beat="1"] .how-count::after { content: "الخطوة 2 من 4"; }
html[lang="ar"] .how.is-live[data-beat="2"] .how-count::after { content: "الخطوة 3 من 4"; }
html[lang="ar"] .how.is-live[data-beat="3"] .how-count::after { content: "الخطوة 4 من 4"; }
