/* SwarFlow home: a note being dictated. Shared tokens and chrome come from style.css. */

:root {
  --seg-sel: #FFFFFF;
  --band: #1B1B1A;
  --band-surf: #262624;
  --band-muted: #A9A99C;
}
@media (prefers-color-scheme: dark) {
  :root { --seg-sel: #3A3A36; --band: #0E0E0D; --band-surf: #1F1F1D; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- top bar extras ---------- */
.note-stamp {
  margin: 0; display: inline-flex; align-items: center; gap: 8px;
  font: 500 12.5px/1 var(--mono); color: var(--muted); letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.note-stamp .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
@media (max-width: 860px) { .note-stamp { display: none; } }

/* ---------- waveform (21 bars, centre bar green; spec: Waveform) ---------- */
.wave { --bw: 3px; --gap: 3px; --wh: 20px; display: inline-flex; align-items: center; gap: var(--gap); height: var(--wh); flex: none; }
.wave i {
  display: block; width: var(--bw); height: calc(var(--wh) * var(--h, .5)); border-radius: 99px;
  background: currentColor; transform: scaleY(.55); transform-origin: 50% 50%;
  transition: transform .5s var(--ease-out);
}
.wave i:nth-child(11) { background: var(--acc); }
.is-live .wave i, .wave.is-live i { animation: wave-bar var(--d, 1s) var(--ease-in-out) var(--dl, 0s) infinite alternate; }
@keyframes wave-bar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.wave i:nth-child(1)  { --h: .25; --d: .8s;  --dl: 0s; }
.wave i:nth-child(2)  { --h: .71; --d: .95s; --dl: -.13s; }
.wave i:nth-child(3)  { --h: .43; --d: 1.1s; --dl: -.26s; }
.wave i:nth-child(4)  { --h: .89; --d: 1.25s; --dl: -.39s; }
.wave i:nth-child(5)  { --h: .60; --d: 1.4s; --dl: -.52s; }
.wave i:nth-child(6)  { --h: .31; --d: .8s;  --dl: -.65s; }
.wave i:nth-child(7)  { --h: .78; --d: .95s; --dl: -.78s; }
.wave i:nth-child(8)  { --h: .49; --d: 1.1s; --dl: -.91s; }
.wave i:nth-child(9)  { --h: .95; --d: 1.25s; --dl: -1.04s; }
.wave i:nth-child(10) { --h: .66; --d: 1.4s; --dl: -1.17s; }
.wave i:nth-child(11) { --h: 1;   --d: .8s;  --dl: -1.3s; }
.wave i:nth-child(12) { --h: .84; --d: .95s; --dl: -1.43s; }
.wave i:nth-child(13) { --h: .55; --d: 1.1s; --dl: -1.56s; }
.wave i:nth-child(14) { --h: .26; --d: 1.25s; --dl: -1.69s; }
.wave i:nth-child(15) { --h: .73; --d: 1.4s; --dl: -1.82s; }
.wave i:nth-child(16) { --h: .44; --d: .8s;  --dl: -1.95s; }
.wave i:nth-child(17) { --h: .90; --d: .95s; --dl: -2.08s; }
.wave i:nth-child(18) { --h: .61; --d: 1.1s; --dl: -2.21s; }
.wave i:nth-child(19) { --h: .33; --d: 1.25s; --dl: -2.34s; }
.wave i:nth-child(20) { --h: .79; --d: 1.4s; --dl: -2.47s; }
.wave i:nth-child(21) { --h: .50; --d: .8s;  --dl: -2.6s; }

/* ---------- the caret ---------- */
.caret { display: inline-block; position: relative; width: 0; height: 1em; vertical-align: baseline; }
.caret::before {
  content: ""; position: absolute; left: .07em; bottom: -.04em; width: max(3px, .075em); height: .86em; border-radius: 2px;
  background: var(--acc);
  animation: caret-blink 1.1s steps(1, end) infinite;
}
@keyframes caret-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
/* while a dictation plays, the caret is solid and only shows once writing starts */
.is-run .caret::before, .is-typing .caret::before { animation: none; opacity: 0; }
.is-run .caret.show::before, .is-typing .caret::before { opacity: 1; }

/* ---------- spoken words (raw speech) ---------- */
.raw s, .note-said s, .free-title s {
  text-decoration: none; position: relative; white-space: nowrap;
}
.raw s::after, .note-said s::after, .free-title s::after {
  content: ""; position: absolute; left: -.08em; right: -.08em; top: 54%; height: max(2px, .09em); border-radius: 2px;
  background: var(--acc); transform-origin: 0 50%; transform: scaleX(1);
  transition: transform .38s var(--ease-out);
}
.raw s, .note-said s { color: var(--muted); }

/* states only exist while a script is running the dictation */
.is-run .rw { opacity: 0; transition: opacity .3s var(--ease-out); }
.is-run .rw.on { opacity: 1; animation: word-land .7s var(--ease-out); }
.is-run s.rw::after { transform: scaleX(0); }
.is-run s.rw.cut::after { transform: scaleX(1); }
/* each word lands heavy and dark, then settles to the muted body weight */
@keyframes word-land {
  0% { transform: translateY(.35em); filter: blur(4px); font-weight: 800; color: var(--text); }
  45% { transform: none; filter: blur(0); font-weight: 760; color: var(--text); }
  100% { transform: none; filter: none; font-weight: 400; color: var(--muted); }
}
.is-run .tw { opacity: 0; }
.is-run .tw.on { opacity: 1; animation: type-in .55s var(--ease-out); }
@keyframes type-in {
  0% { opacity: 0; filter: blur(10px); transform: translateY(.08em); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; }
/* hold the dictated lines back until the script starts them; a failsafe shows them if it never does */
@media (prefers-reduced-motion: no-preference) {
  .js .hero:not(.is-ready) [data-raw], .js .hero:not(.is-ready) [data-type] { opacity: 0; animation: reveal-failsafe .01s linear 2.5s forwards; }
}
@keyframes reveal-failsafe { to { opacity: 1; } }
.hero-in {
  min-height: calc(100svh - var(--bar-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(32px, 6vh, 72px); padding-bottom: clamp(72px, 12vh, 120px);
  position: relative;
}
.listen {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 18px 0 16px; border: 0; border-radius: 999px;
  background: var(--surf); color: var(--text);
  font: 600 15px/1 var(--sans); cursor: pointer;
  transition: background-color .15s, transform .2s var(--ease-out);
}
.listen:hover { background: var(--surf2); }
.listen:active { transform: scale(.97); }
.listen .wave { --wh: 20px; --bw: 3px; --gap: 2.5px; }
.listen[data-state="done"] .wave i { transform: scaleY(.38); }
.listen-label { min-width: 4.6em; }
.listen-icon { width: 17px; height: 17px; display: none; }
.listen[data-state="done"] .listen-icon { display: block; }
.timer { font: 500 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 12px; border-left: 1px solid var(--line); }

/* the voice: the mark's seven bars move while you talk and settle into the S once the text is written */
.hero { --mark-w: clamp(260px, 27vw, 420px); }
.hero-mark {
  position: absolute; right: var(--gutter); top: 50%; width: var(--mark-w); height: auto;
  transform: translateY(-58%); color: var(--text); overflow: visible; pointer-events: none;
}
.hero-mark rect { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 1.1s var(--ease-out); }
.hero-mark .c { fill: var(--acc); }
.hero.is-run .hero-mark rect { animation: voice var(--d, 1s) var(--ease-in-out) var(--dl, 0s) infinite alternate; }
.hero-mark rect:nth-child(1) { --d: .42s; --dl: -.10s; }
.hero-mark rect:nth-child(2) { --d: .55s; --dl: -.30s; }
.hero-mark rect:nth-child(3) { --d: .38s; --dl: -.05s; }
.hero-mark rect:nth-child(4) { --d: .50s; --dl: -.22s; }
.hero-mark rect:nth-child(5) { --d: .34s; --dl: -.15s; }
.hero-mark rect:nth-child(6) { --d: .47s; --dl: -.27s; }
.hero-mark rect:nth-child(7) { --d: .40s; --dl: -.12s; }
.hero-mark rect:nth-child(8) { --d: .58s; --dl: -.35s; }
.hero-mark rect:nth-child(9) { --d: .44s; --dl: -.20s; }
@keyframes voice { from { transform: scaleY(.3); } to { transform: scaleY(1.12); } }
@media (max-width: 960px) {
  .hero-mark { display: none; }
  .hero .raw { max-width: 62ch; }
}

.raw {
  margin: 36px 0 0; max-width: min(62ch, calc(100% - var(--mark-w) - 64px));
  font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; color: var(--muted); font-weight: 400;
}
.hero-title {
  margin: 14px 0 0; max-width: 11.5ch;
  font-size: clamp(44px, 7.4vw, 96px); line-height: .98; letter-spacing: -0.04em; font-weight: 800;
  text-wrap: balance;
}
.hero-lede { margin: 28px 0 0; max-width: 34ch; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lang-stamp {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 5vh, 48px); margin: 0;
  font: 500 13px/1 var(--mono); letter-spacing: .08em; color: var(--muted);
}
.lang-stamp abbr { text-decoration: none; }
@media (max-width: 640px) {
  .hero-in { min-height: 0; padding-top: 28px; padding-bottom: 64px; }
  .raw { margin-top: 28px; }
  .lang-stamp { position: static; margin-top: 28px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- sections ---------- */
.sec { padding-block: 160px; }
@media (max-width: 900px) { .sec { padding-block: 112px; } }
@media (max-width: 520px) { .sec { padding-block: 88px; } }
.sec-title {
  margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  max-width: 14ch;
}
.sec-lede { margin: 20px 0 0; max-width: 42ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); }
.sec-title kbd { display: inline-flex; align-items: center; gap: .04em; font-family: var(--sans); font-size: .9em; font-weight: 800; padding: .02em .16em; border-radius: .16em; background: var(--surf); letter-spacing: -0.02em; white-space: nowrap; vertical-align: .04em; line-height: 1; }
.key { width: .82em; height: .82em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.paste-key { display: inline-flex; align-items: center; gap: 2px; }
.paste-key .key { width: 12px; height: 12px; stroke-width: 2.4; }

/* polish demo */
.polish { padding-top: clamp(40px, 6vw, 80px); }
.polish-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.note-card { background: var(--surf); border-radius: 26px; padding: 28px; }
@media (max-width: 640px) { .note-card { padding: 18px; } }
.seg {
  position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surf2);
  max-width: 100%;
}
.seg-item {
  position: relative; z-index: 1; height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent;
  font: 600 15px/1 var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color .2s;
}
.seg-item:hover { color: var(--text); }
.seg-item[aria-selected="true"], .seg-item[aria-pressed="true"] { color: var(--text); }
.seg-thumb {
  position: absolute; z-index: 0; top: 4px; left: 0; height: 38px; width: var(--w, 0px); border-radius: 10px;
  background: var(--seg-sel); box-shadow: 0 1px 2px rgba(27, 27, 26, .08), 0 2px 8px rgba(27, 27, 26, .06);
  transform: translateX(var(--x, 4px));
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}
html:not(.js) .seg-thumb { display: none; }
html:not(.js) .seg-item[aria-selected="true"], html:not(.js) .seg-item[aria-pressed="true"] { background: var(--seg-sel); }
.note-panel { padding: 26px 8px 8px; min-height: 270px; }
.note-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.note-label-out { color: var(--acc-text); margin-top: 24px; }
.note-said { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); }
.note-wrote { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
.note-wrote p { margin: 0; }
.note-wrote ul { margin: 6px 0 0; padding-left: 1.1em; }
.note-wrote li { margin: 2px 0; padding-left: .1em; }
.note-wrote li::marker { color: var(--acc-text); }
@media (max-width: 900px) {
  .polish-in { grid-template-columns: 1fr; }
  .note-panel { min-height: 0; }
}
@media (max-width: 480px) {
  .seg { display: flex; }
  .seg-item { flex: 1; padding: 0 8px; font-size: 14px; }
}

/* iPhone */
.iphone-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.phone { margin: 0; justify-self: center; width: min(100%, 380px); }
.phone-screen {
  background: var(--surf); border-radius: 44px 44px 30px 30px; padding: 26px 18px 18px;
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surf2); font-weight: 700; font-size: 14px; }
.bubble { align-self: flex-start; margin: 10px 0 0; max-width: 78%; padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: var(--surf2); font-size: 16px; line-height: 1.35; }
.compose {
  min-height: 74px; margin-top: 40px; padding: 12px 16px; border-radius: 20px; background: var(--bg);
  font-size: 16px; line-height: 1.4;
}
.kb { margin-top: 4px; background: var(--surf2); border-radius: 24px; padding: 14px 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.kb-row { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.kb-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.kb-btn svg { width: 20px; height: 20px; }
.kb-ok { background: var(--acc); color: var(--ink); transition: transform .18s var(--ease-out); }
.kb-ok.is-press { transform: scale(.86); }
.kb-tone { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 20px; background: var(--bg); }
.wave-kb { --wh: 60px; --bw: 5px; --gap: 5px; }
.kb-foot { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); width: 100%; }
.kb-foot svg { width: 18px; height: 18px; }
.kb-foot span { margin-inline: auto; transform: translateX(-13px); }
.features { margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.features > div { position: relative; padding-top: 18px; }
.features > div::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 2px; border-radius: 1px; background: var(--text); }
.features dt { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.features dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 900px) {
  .iphone-in { grid-template-columns: 1fr; }
  .phone { order: 2; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
}

/* Mac: the one ink band */
.mac { background: var(--band); color: var(--cream); }
.mac .sec-lede { color: var(--band-muted); }
.mac .sec-title kbd { background: var(--band-surf); color: var(--cream); }
.mac-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mac-copy { display: flex; flex-direction: column; align-items: center; }
.mac .sec-title { max-width: none; }
.mac .sec-lede { max-width: 50ch; }
.display {
  --island-w: min(620px, 86%);
  position: relative; margin: clamp(48px, 6vw, 80px) 0 0; width: min(100%, 1040px); aspect-ratio: 16 / 6.6;
  background: #222220; border-radius: 22px 22px 0 0; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(252, 252, 230, .06);
}
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 34px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; font-size: 13px; color: rgba(252, 252, 230, .8); font-weight: 500;
}
.mark-mb { width: 20px; color: var(--cream); }
.notch { position: absolute; top: 0; left: 50%; width: 184px; height: 34px; transform: translateX(-50%); background: #000; border-radius: 0 0 14px 14px; }
.island {
  position: absolute; top: 0; left: 50%; width: var(--island-w); transform: translateX(-50%);
  background: #000; color: var(--cream); border-radius: 0 0 30px 30px;
  padding: 44px 30px 24px; text-align: left;
  box-shadow: 0 0 0 1px rgba(63, 214, 122, .45), 0 16px 48px -12px rgba(63, 214, 122, .5);
  clip-path: inset(0 0 0 0 round 0 0 30px 30px);
  transition: clip-path .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.island-row { display: flex; align-items: center; justify-content: space-between; }
.wave-island { --wh: 16px; --bw: 2.5px; --gap: 2.5px; color: var(--cream); }
.island-timer { font: 500 13px/1 var(--mono); color: var(--acc); font-variant-numeric: tabular-nums; }
.island-text { margin: 14px 0 0; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; min-height: 2.8em; }
.window {
  position: absolute; left: 50%; bottom: 7%; width: min(560px, 80%); transform: translateX(-50%);
  background: var(--cream); color: var(--ink); border-radius: 14px; text-align: left;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 8px 14px; background: #F1F1DA; border-radius: 14px 14px 0 0; }
.win-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D6D6BE; }
.win-bar em { font-style: normal; font-size: 12.5px; color: #5E5E55; margin-left: 10px; }
.win-text { margin: 0; padding: 18px 20px 26px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.45; min-height: 5.4em; }
.paste-key {
  position: absolute; right: 16px; bottom: 14px; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: var(--cream);
  font: 500 12px/1 var(--mono); opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s var(--ease-out);
}
.replay-btn {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--band-surf); color: var(--cream); font: 600 15px/1 var(--sans); cursor: pointer;
  transition: background-color .15s, transform .2s var(--ease-out);
}
.replay-btn svg { width: 17px; height: 17px; }
.replay-btn:hover { background: #33332F; }
.replay-btn:active { transform: scale(.97); }

/* Mac sequence states (script-driven): idle -> listening -> closed (+pasting) */
.display.is-idle .island, .display.is-closed .island {
  clip-path: inset(0 calc((100% - 184px) / 2) calc(100% - 34px) calc((100% - 184px) / 2) round 0 0 14px 14px);
  box-shadow: 0 0 0 0 rgba(63, 214, 122, 0);
}
.display.is-idle .island-text, .display.is-closed .island-text { opacity: 0; }
.island-text { transition: opacity .2s; }
.display.is-listening .island-text .rw { opacity: 0; transition: opacity .25s; }
.display.is-listening .island-text .rw.on { opacity: 1; }
.display.is-listening .wave-island i { animation: wave-bar var(--d, 1s) var(--ease-in-out) var(--dl, 0s) infinite alternate; }
.display.is-idle [data-paste], .display.is-listening [data-paste] { opacity: 0; }
.display [data-paste] { transition: opacity .35s var(--ease-out); }
.display.is-pasting .paste-key { opacity: 1; transform: none; }
.display.is-idle .window, .display.is-listening .window { transform: translate(-50%, 10px); }
/* once the island closes, the message window rises under the notch to take the paste */
.display { container-type: size; }
.display.is-closed .window { transform: translate(-50%, -40cqh); }
@media (max-width: 720px) { .display.is-closed .window { transform: translate(-50%, -38cqh); } }
@media (max-width: 720px) {
  .display { aspect-ratio: auto; height: 400px; border-radius: 18px 18px 0 0; }
  .display { --island-w: calc(100% - 24px); }
  .island { padding: 42px 20px 18px; }
  .window { width: calc(100% - 32px); bottom: 20px; }
  .menubar .mb-time { display: none; }
}

/* languages */
.langs-title { max-width: 16ch; }
.lang-demo { margin-top: clamp(40px, 5vw, 64px); background: var(--surf); border-radius: 26px; padding: 36px; }
@media (max-width: 640px) { .lang-demo { padding: 22px 20px; } }
.lang-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 16px; border: 0; border-radius: 19px; background: transparent; color: var(--muted);
  font: 600 15px/1 var(--sans); cursor: pointer; transition: background-color .2s, color .2s;
}
.chip:hover { color: var(--text); background: var(--surf2); }
.chip[aria-pressed="true"] { background: var(--seg-sel); color: var(--text); box-shadow: 0 1px 2px rgba(27, 27, 26, .08), 0 2px 8px rgba(27, 27, 26, .06); }
.seg-sm .seg-item { height: 34px; font-size: 14px; padding: 0 14px; }
.seg-sm .seg-thumb { height: 34px; }
.lang-said { margin: 36px 0 0; color: var(--muted); font-size: 17px; }
.lang-said-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-right: 8px; }
.lang-out {
  margin: 14px 0 0; min-height: 2.5em;
  font-size: clamp(30px, 4.4vw, 58px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 700;
}
/* Figtree has no Indic glyphs: name the platform faces for each script (exact lang match, so the Roman versions stay in Figtree) */
.lang-out[lang="hi"], .lang-out[lang="mr"] { font-family: "Figtree", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif; }
.lang-out[lang="gu"] { font-family: "Figtree", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati", "Nirmala UI", "Shruti", sans-serif; }
.lang-out[lang="hi"], .lang-out[lang="mr"], .lang-out[lang="gu"] { letter-spacing: 0; line-height: 1.4; font-weight: 600; }
.lang-out.swap-out { animation: out-leave .18s ease-in both; }
.lang-out.swap-in { animation: type-in .5s var(--ease-out) both; }
@keyframes out-leave { to { opacity: 0; filter: blur(6px); transform: translateY(-.1em); } }
.lang-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .lang-controls { flex-direction: column; }
  .seg-sm { display: flex; }
  .seg-sm .seg-item { flex: 1; padding: 0 6px; font-size: 13.5px; }
}

/* privacy */
.private-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.private-viz { display: flex; flex-direction: column; gap: 28px; }
.wave-xl { --wh: clamp(90px, 12vw, 150px); --bw: clamp(6px, 1vw, 12px); --gap: clamp(5px, .8vw, 10px); color: var(--text); }
.wave-xl i { transform: scaleY(.06); transition: transform .7s var(--ease-out); }
.private-viz .viz-line { margin: 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.private-viz.is-pre .wave-xl i { transform: scaleY(1); }
.private-viz.is-pre .viz-line .rw { opacity: 0; }
.private-viz .viz-line .rw { transition: opacity .3s; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; }
.checks li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em; width: 13px; height: 8px;
  border-left: 2.5px solid var(--acc-text); border-bottom: 2.5px solid var(--acc-text); transform: rotate(-45deg);
}
.text-link { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }
@media (max-width: 900px) {
  .private-in { grid-template-columns: 1fr; }
}

/* free */
.free { padding-top: clamp(40px, 6vw, 96px); }
.free-title {
  margin: 0; font-size: clamp(48px, 8vw, 96px); line-height: 1; letter-spacing: -0.04em; font-weight: 800;
}
.free-title s { color: var(--muted); }
.free-title s::after { height: max(4px, .07em); top: 52%; }
.free.is-pre .free-title s::after { transform: scaleX(0); }
.free .free-title s:nth-of-type(2)::after { transition-delay: .25s; }
.free .sec-lede { max-width: 38ch; }

/* close */
.get { background: var(--surf); }
.get .btn-alt { background: var(--surf2); }
.get .btn-alt:hover { background: var(--line); }
.get-title { margin: 0; font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; max-width: 12ch; }
.get .actions { margin-top: 40px; }
.get-meta { margin: 28px 0 0; color: var(--muted); }
.home .foot { margin-top: 0; box-shadow: inset 0 1px 0 var(--line); }

/* ---------- reduced motion: show the result, keep feedback ---------- */
@media (prefers-reduced-motion: reduce) {
  .is-live .wave i, .wave.is-live i, .display.is-listening .wave-island i { animation: none; transform: scaleY(.6); }
  .is-run .rw.on { animation: none; }
  .is-run .tw.on { animation: none; transition: opacity .3s; }
  .caret::before { animation: none; opacity: 1; }
  .island { transition: clip-path .01ms; }
  .seg-thumb { transition: none; }
  .lang-out.swap-in, .lang-out.swap-out { animation: none; }
  .wave-xl i { transition: none; }
}
