/*
  Spoken. One visual world: ink and cream paper, and a single orange voice line
  that runs down the page from the hero to the download screen.
  Layout: a 12-column sheet, left-weighted, ruled like a typed page.
*/
:root {
  --ink: #1c1917;
  --ink-raised: #2a2522;
  --paper: #fff8f0;
  --paper-sunk: #f4ebe0;
  --cursor: #f97316;
  --on-ink-soft: #b5aca2;
  --on-paper-soft: #6f675f;
  --rule-ink: rgba(255, 248, 240, 0.16);
  --rule-paper: rgba(28, 25, 23, 0.16);
  --display: "Familjen Grotesk", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4.4vw, 72px);
  --t-hero: clamp(68px, 13.4vw, 236px);
  --t-h2: clamp(40px, 6.6vw, 112px);
  --t-lede: clamp(18px, 1.55vw, 24px);
  color-scheme: dark light;
}

@font-face { font-family: "Familjen Grotesk"; src: url(fonts/familjen.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/plexmono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/plexmono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(fonts/plexarabic-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Inter Brand"; src: url(fonts/inter-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }



* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cursor); outline-offset: 3px; }
.paper :focus-visible, .end :focus-visible { outline-color: var(--ink); }

h1, h2 { font-weight: 700; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 0.96; letter-spacing: -0.03em; }
.lede { font-size: var(--t-lede); line-height: 1.35; max-width: 34ch; text-wrap: pretty; }
.fine { font-size: 14px; line-height: 1.5; max-width: 52ch; }
.ink .fine { color: var(--on-ink-soft); }
.paper .fine { color: var(--on-paper-soft); }

.ink { background: var(--ink); color: var(--paper); }
.paper { background: var(--paper); color: var(--ink); }

/* ---------- the line ---------- */
#thread { position: absolute; inset: 0 0 auto 0; pointer-events: none; z-index: 1; overflow: visible; }
#thread path { fill: none; stroke: var(--cursor); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#thread rect { fill: var(--cursor); }
main > section > * { position: relative; z-index: 2; }

/* ---------- top ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 22px var(--gutter);
}
.wordmark { height: 30px; width: auto; display: block; }
.wordmark .w, .mark .w { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.wordmark .c, .mark .c { fill: var(--cursor); }
.wordmark text { fill: currentColor; font-family: "Inter Brand", "Helvetica Neue", Arial, sans-serif; font-size: 52px; font-weight: 600; letter-spacing: -1px; }
.brand { color: var(--paper); margin-inline-end: auto; }
.brand svg { direction: ltr; }
.top-dl { font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--paper); padding-bottom: 1px; }
.top-dl:hover { color: var(--cursor); border-color: var(--cursor); }

/* ---------- buttons ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.btn {
  border: 0; font-family: inherit;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; font-size: 17px; font-weight: 600; line-height: 1;
  text-decoration: none; background: var(--paper); color: var(--ink);
  overflow: hidden; cursor: pointer; isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--cursor); transform: scaleY(0); transform-origin: bottom; transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1); z-index: -1; }
.btn:hover::before { transform: scaleY(1); }
.btn[disabled] { cursor: default; opacity: 0.6; }
.btn[disabled]::before { display: none; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.soon { font-size: 15px; color: var(--on-ink-soft); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px;
  padding: 112px var(--gutter) 0;
}
h1 { grid-column: 1 / -1; grid-row: 1; font-size: var(--t-hero); line-height: 0.88; letter-spacing: -0.04em; }
h1 .line { display: block; }
.caret {
  display: inline-block; width: 0.075em; height: 0.74em; margin-inline-start: 0.08em;
  background: var(--cursor); vertical-align: -0.02em; animation: blink 1.1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-side { grid-column: 8 / -1; grid-row: 1; align-self: end; display: grid; gap: 16px; justify-items: start; padding-bottom: 0.9vw; }

.stage { grid-column: 1 / -1; position: relative; margin: 36px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 84px; }
#wave { position: absolute; inset: 0 0 0 0; width: 100%; height: 100%; z-index: 0; }
.desk { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: end; }

.press { grid-column: 1 / 5; display: grid; gap: 12px; justify-items: start; padding-bottom: 8px; }
.key {
  display: inline-block; font-family: var(--display); font-size: 17px; font-weight: 600;
  padding: 16px 26px 20px; color: var(--ink); background: var(--paper); border-radius: 9px;
  box-shadow: inset 0 -5px 0 #dccfbf, inset 0 0 0 1px #e9dccc, 0 3px 0 #0e0c0b, 0 10px 18px rgba(0, 0, 0, 0.4);
  will-change: transform;
}
.key[data-down="1"] { transform: translateY(3px); box-shadow: inset 0 -2px 0 #dccfbf, inset 0 0 0 1px #e9dccc, 0 0 0 #0e0c0b, 0 3px 8px rgba(0, 0, 0, 0.4); }
.press-label, .said { background: var(--ink); box-shadow: 0 0 0 6px var(--ink); }
.press-label { font-size: 14px; color: var(--on-ink-soft); }
.said { font-family: var(--mono); font-size: 14.5px; line-height: 1.55; color: var(--on-ink-soft); max-width: 38ch; min-height: 8em; }
.said b { display: block; font-family: var(--display); font-size: 12.5px; font-weight: 500; color: var(--cursor); margin-bottom: 2px; }

.screen { grid-column: 6 / -1; position: relative; background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.screen-bar { padding: 12px 20px; font-size: 13px; font-weight: 600; color: var(--on-paper-soft); border-bottom: 1px solid var(--rule-paper); }
.screen-body { position: relative; padding: 22px 20px 86px; min-height: 248px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; white-space: pre-wrap; }
.screen-body p { display: inline; }
.ibeam { display: inline-block; width: 2px; height: 1.15em; background: var(--ink); vertical-align: -0.2em; margin-inline-start: 2px; animation: blink 1.05s steps(1, end) infinite; }

/* the app's real pill */
.pill {
  position: absolute; inset-block-end: 16px; inset-inline-start: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 10px; height: 42px; min-width: 176px; padding: 0 12px;
  border-radius: 10px; background: rgba(28, 25, 23, 0.96); border: 1px solid rgba(255, 248, 240, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); color: var(--paper); font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.mark { height: 14px; width: auto; flex: none; direction: ltr; }
.pill-label { flex: 1; min-width: 0; }
.pill-sub { font-size: 11px; font-weight: 400; color: #a8a29e; }
.pill-sub:empty { display: none; }
.bars { display: none; align-items: center; gap: 2px; height: 18px; direction: ltr; }
.pill[data-state="listening"] .bars { display: flex; }
.pill[data-state="listening"] .mark .c { animation: blink 1.1s steps(1, end) infinite; }
.bars i { display: block; width: 2px; height: 3px; border-radius: 1px; background: var(--paper); }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(84px, 11vw, 176px) var(--gutter); }

/* edit */
.edit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
.edit-side { grid-column: 1 / 6; display: grid; gap: 26px; }
.edit-tabs { border-top: 1px solid var(--rule-paper); }
.edit-tabs li { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule-paper); color: var(--on-paper-soft); font-weight: 500; }
.edit-tabs em { font-style: normal; font-family: var(--mono); font-size: 13px; }
.edit-tabs li.on { color: var(--ink); box-shadow: inset 3px 0 0 var(--cursor); padding-inline-start: 12px; }
.edit-stage { grid-column: 7 / -1; display: grid; gap: 64px; }
.ex { display: grid; gap: 22px; align-content: start; }
.ex-said { font-family: var(--mono); font-size: 15px; line-height: 1.55; color: var(--on-paper-soft); }
.ex-said b { display: block; font-family: var(--display); font-size: 13px; font-weight: 500; color: #c2410c; margin-bottom: 3px; }
.ex-wrote { font-size: clamp(30px, 3.5vw, 58px); line-height: 1.14; font-weight: 500; letter-spacing: -0.02em; white-space: pre-line; }
.ex-wrote.live { display: flex; flex-wrap: wrap; align-items: baseline; white-space: normal; }
.tok { display: inline-block; position: relative; margin-inline-end: 0.26em; white-space: nowrap; }
.tok .a, .tok .b { display: inline-block; }
.tok .b { position: absolute; inset-inline-start: 0; inset-block-start: 0; }
.tok.drop .a { color: var(--on-paper-soft); }
.tok .strike { position: absolute; inset-inline-start: 0; inset-block-start: 56%; height: 0.07em; width: 100%; background: var(--cursor); transform: scaleX(0); transform-origin: left; }
.brk { flex-basis: 100%; height: 0; }
.brk.on { height: 0.55em; }

/* pinned on wide screens */
.edit.pinned { min-height: 100vh; align-content: center; padding-block: 64px; }
.pinned .edit-stage { display: block; position: relative; min-height: 62vh; }
.pinned .ex { position: absolute; inset: 0 0 auto 0; }

/* commands */
.commands { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
.cmd-copy { grid-column: 1 / 7; display: grid; gap: 24px; }
.list-label { font-size: 14px; color: var(--on-ink-soft); margin-top: 12px; }
.says { font-family: var(--mono); font-size: clamp(16px, 1.45vw, 20px); border-top: 1px solid var(--rule-ink); }
.says li { padding: 10px 0; border-bottom: 1px solid var(--rule-ink); }
.cmd-scene { grid-column: 8 / -1; display: grid; gap: 0; margin-top: 8px; }
.doc { background: var(--paper); color: var(--ink); padding: 18px 20px 62px; }
.doc-label, .cmd-label { font-size: 12.5px; font-weight: 500; }
.doc-label { color: var(--on-paper-soft); margin-bottom: 8px; }
.doc-text { font-size: 18px; line-height: 1.5; }
.doc-text mark { background: rgba(249, 115, 22, 0.28); color: inherit; }
.cmd-window { position: relative; margin-block-start: -40px; margin-inline-start: 34px; background: var(--ink-raised); border: 1px solid var(--rule-ink); padding: 18px 20px 22px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); display: grid; gap: 8px; min-height: 174px; align-content: start; }
.cmd-ask { font-family: var(--mono); font-size: 15px; color: var(--cursor); }
.cmd-label { color: var(--on-ink-soft); margin-top: 8px; }
.cmd-answer { font-size: 22px; line-height: 1.35; font-weight: 500; }

/* privacy */
.privacy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 56px; align-items: start; }
.privacy h2 { grid-column: 1 / 10; }
.flow { grid-column: 1 / 8; width: 100%; height: auto; font-family: var(--display); font-size: 16px; overflow: visible; }
.flow text { fill: var(--on-paper-soft); }
.flow .strong { fill: var(--ink); font-weight: 600; }
.flow .box { fill: none; stroke: var(--ink); stroke-width: 2; }
.flow .box-label { fill: var(--ink); font-weight: 600; }
.flow .line { fill: none; stroke: var(--cursor); stroke-width: 2.5; }
.flow .line.out { stroke: var(--on-paper-soft); stroke-dasharray: 2 7; stroke-linecap: round; }
.flow .node circle, .flow .node rect { fill: var(--ink); }
.facts { grid-column: 9 / -1; border-top: 1px solid var(--rule-paper); }
.facts div { padding: 13px 0; border-bottom: 1px solid var(--rule-paper); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--on-paper-soft); font-size: 15.5px; }

/* replay */
.replay { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 48px; padding-inline-end: 0; overflow: hidden; }
.replay-copy { grid-column: 1 / 7; display: grid; gap: 22px; padding-inline-end: 20px; }
.shot { grid-column: 3 / -1; }
.shot img { width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
@media (max-width: 1100px) { .flow { font-size: 20px; } }
@media (max-width: 420px) { .top { gap: 8px; } .wordmark { height: 22px; } }

/* yours */
.yours { display: grid; gap: 56px; }
.rows { border-top: 2px solid var(--ink); }
.r { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule-paper); }
.r h3 { grid-column: 1 / 5; font-size: clamp(26px, 2.8vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.r-d { grid-column: 5 / 8; color: var(--on-paper-soft); }
.r-demo { grid-column: 8 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--mono); font-size: 15px; }
.r-demo .from { color: var(--on-paper-soft); }
.r-demo i { display: inline-block; width: 26px; height: 2px; background: var(--cursor); }
.r-demo .to { font-weight: 500; }

/* languages */
.langs-sec { display: grid; gap: 40px; }
.big-word { font-size: var(--t-hero); line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; min-height: 1.15em; white-space: nowrap; }
.langs-copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: end; }
.langs-copy h2 { grid-column: 1 / 8; font-size: clamp(32px, 3.8vw, 64px); }
.langs-copy .lede { grid-column: 8 / -1; }

/* faq */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
.faq h2 { grid-column: 1 / 5; font-size: clamp(32px, 3.8vw, 64px); }
.qa { grid-column: 5 / -1; border-top: 1px solid var(--rule-paper); }
details { border-bottom: 1px solid var(--rule-paper); }
summary { cursor: pointer; padding: 16px 0; font-size: 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--cursor); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 20px; max-width: 62ch; color: var(--on-paper-soft); }

/* download: the cursor widens until it is the page */
.end { position: relative; background: var(--cursor); color: var(--ink); min-height: 92vh; display: flex; flex-direction: column; padding: clamp(96px, 12vw, 180px) var(--gutter) 28px; }
.end-inner { flex: 1; display: grid; align-content: center; gap: 48px; }
.end h2 { font-size: clamp(52px, 9.6vw, 168px); line-height: 0.92; max-width: 11ch; }
.end .btn { background: var(--ink); color: var(--paper); font-size: 20px; padding: 20px 32px; }
.end .btn::before { background: #3a342f; }
.end .soon { color: var(--ink); font-weight: 500; }
.end-dl { display: grid; gap: 14px; justify-items: start; }
.meta { font-family: var(--mono); font-size: 14px; }
.foot { display: flex; justify-content: space-between; font-size: 14px; }

/* name, email and company before the download */
.get { border: 0; padding: clamp(26px, 4vw, 44px); width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.get::backdrop { background: rgba(28, 25, 23, 0.74); }
.get h2 { font-size: clamp(36px, 4vw, 50px); letter-spacing: -0.025em; line-height: 1; }
.get-lede { margin-top: 10px; font-size: 17px; max-width: 34ch; }
.get form { display: grid; margin-top: 22px; }
.get label { font-size: 14px; font-weight: 600; margin: 12px 0 5px; }
.get input { width: 100%; font: inherit; padding: 11px 12px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: var(--paper-sunk); color: var(--ink); }
.get :focus-visible { outline-color: var(--ink); }
.get .btn { margin-top: 20px; width: 100%; justify-content: center; background: var(--ink); color: var(--paper); }
.get .btn::before { background: #3a342f; }
.get .fine { margin-top: 12px; }
.get-error { margin-top: 12px; font-size: 14.5px; color: #b42318; }
.get-close { position: absolute; inset: 8px 8px auto auto; width: 38px; height: 38px; border: 0; background: none; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.get-again { display: inline-block; margin-top: 18px; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  #thread { display: none; }
  .top { gap: 14px; padding-block: 16px; }
  .hero { padding-top: 92px; }
  h1 { grid-row: auto; }
  .hero-side { grid-column: 1 / -1; grid-row: auto; margin-top: 24px; }
  .press, .screen { grid-column: 1 / -1; }
  .press { margin-bottom: 22px; }
  .edit-side, .edit-stage, .cmd-copy, .cmd-scene, .privacy h2, .flow, .facts, .replay-copy, .shot, .qa, .faq h2, .langs-copy h2, .langs-copy .lede { grid-column: 1 / -1; }
  .edit-stage { margin-top: 44px; }
  .cmd-scene { margin-top: 44px; }
  .replay { padding-inline-end: var(--gutter); }
  .r h3, .r-d, .r-demo { grid-column: 1 / -1; }
  .r-d { margin: 4px 0 8px; }
  .qa { margin-top: 24px; }
  .langs-copy { row-gap: 18px; }
  .cmd-window { margin-inline-start: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .ibeam, .pill .mark .c { animation: none; }
}
