/* FlowVoice site. Light writing surface, ink, and one red caret.
   Shared by every page: tokens, base, header (.top/.nav), buttons, footer (.foot-site).
   Home-only blocks follow. Secondary pages add pages.css on top of this file. */

:root {
  /* ground and ink */
  --bg: #f6f6f4;
  --bg-2: #eeeeea;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --text: #111113;
  --text-2: #4d4d54;
  --text-3: #66666e;
  --line: #e2e2dd;
  --line-2: #cfcfc9;

  /* the caret */
  --accent: #ff2e00;          /* fills only: caret, record dot, wave */
  --accent-ink: #c42200;      /* red that is safe for text on light ground */
  --accent-fg: var(--accent-ink);
  --accent-soft: #ffe7e0;
  --accent-line: #ffc4b5;
  --on-accent: #ffffff;
  --mark: #ffd9ce;            /* text selection and highlighted text */

  /* the dark field (overlay, closing section, footer) */
  --ink: #111113;
  --ink-2: #1c1c1f;
  --ink-3: #2a2a2e;
  --ink-text: #f3f3f1;
  --ink-text-2: #a9a9b0;
  --ink-line: rgba(255, 255, 255, 0.1);

  --font: "Schibsted Grotesk", ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;

  --r: 12px;
  --r-lg: 20px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(17, 17, 19, 0.05), 0 28px 56px -28px rgba(17, 17, 19, 0.22);

  /* theme roles: in light they resolve to the values above, so the light page is unchanged */
  color-scheme: light;
  --btn-bg: var(--ink);                 /* primary pill, selected tab, recommended tag, pressed keys, skip link */
  --btn-bg-hover: var(--ink-3);
  --btn-fg: var(--ink-text);
  --field: var(--ink);                  /* closing section + footer */
  --field-edge: transparent;            /* top hairline of the closing field (dark only) */
  --ov-ring: 0 0 0 0 transparent;       /* edge on the overlay capsule, pills, command chip (dark only) */
  --logo-ring: 0 0 0 0 transparent;     /* edge on the dark logo tile (dark only) */
  --logo-radius: 0;                     /* the tile's own corner, for that edge (dark only) */
  --shadow-sm: 0 1px 2px rgba(17, 17, 19, 0.04);
  --shadow-menu: 0 24px 40px -24px rgba(17, 17, 19, 0.18);
  --shadow-shot: 0 2px 4px rgba(17, 17, 19, 0.1), 0 40px 80px -36px rgba(17, 17, 19, 0.45);
  --scroll-thumb: #c9c9c3;
  --ov-bg: var(--ink);                  /* the overlay capsule and result pill on the demo sheet */
  --prose: #2b2b30;                     /* running text on secondary pages */
}

/* ---------- dark theme: the same paper, at night ----------
   Near-black ground (#0b0b0a, close to true black), sheets lifted by lightness (never glow), off-white ink, hairlines stay hairlines.
   The red caret stays the only accent. The overlay (--ink) is the app's own dark capsule and does not change;
   it gets a hairline edge instead. Two copies: an explicit choice (data-theme, set by the head script from
   localStorage) and the OS preference when nothing is stored. Keep them identical. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0a;
  --bg-2: #0f0f0e;
  --surface: #141413;
  --surface-2: #1c1c1a;
  --text: #f1f0ec;
  --text-2: #b8b7b0;
  --text-3: #979691;
  --line: #252523;
  --line-2: #373733;
  --accent-ink: #ff6b4a;
  --accent-soft: #21130e;
  --accent-line: #4d2417;
  --mark: #4a2016;
  --btn-bg: #f1f0ec;
  --btn-bg-hover: #dcdbd5;
  --btn-fg: #0b0b0a;
  --field: #121211;
  --field-edge: #262624;
  --ov-ring: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  --ov-bg: #0c0c0d;
  --logo-ring: 0 0 0 1px rgba(255, 255, 255, 0.14);
  --logo-radius: 22.6%;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 28px 56px -28px rgba(0, 0, 0, 0.9);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-menu: 0 24px 40px -24px rgba(0, 0, 0, 0.8);
  --shadow-shot: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 80px -36px rgba(0, 0, 0, 0.9);
  --scroll-thumb: #373733;
  --prose: #d6d5cf;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0b0a;
    --bg-2: #0f0f0e;
    --surface: #141413;
    --surface-2: #1c1c1a;
    --text: #f1f0ec;
    --text-2: #b8b7b0;
    --text-3: #979691;
    --line: #252523;
    --line-2: #373733;
    --accent-ink: #ff6b4a;
    --accent-soft: #21130e;
    --accent-line: #4d2417;
    --mark: #4a2016;
    --btn-bg: #f1f0ec;
    --btn-bg-hover: #dcdbd5;
    --btn-fg: #0b0b0a;
    --field: #121211;
    --field-edge: #262624;
    --ov-ring: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    --ov-bg: #0c0c0d;
    --logo-ring: 0 0 0 1px rgba(255, 255, 255, 0.14);
    --logo-radius: 22.6%;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 28px 56px -28px rgba(0, 0, 0, 0.9);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-menu: 0 24px 40px -24px rgba(0, 0, 0, 0.8);
    --shadow-shot: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 80px -36px rgba(0, 0, 0, 0.9);
    --scroll-thumb: #373733;
    --prose: #d6d5cf;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 0; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
code, kbd { font-family: var(--mono); }
code { font-size: 0.88em; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }
kbd {
  display: inline-block; font-size: 0.78em; font-weight: 500; line-height: 1.5;
  padding: 1px 7px; border-radius: 6px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-bottom-width: 2px;
}
::selection { background: var(--mark); color: var(--text); }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
/* inline links and summaries get a soft corner; controls keep their own radius so pills stay pills */
a:not([class]):focus-visible, summary:focus-visible { border-radius: 4px; }
html { scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 12px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.acc { color: var(--accent-ink); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
/* Small labels for secondary pages (field labels, table heads). Never above a heading on the home page. */
.label { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0.01em; }
.label b { color: var(--accent-ink); font-weight: 600; }
/* Reveal is retired: content is visible by default everywhere. Kept so older markup stays harmless. */
[data-reveal] { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 18px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 36px; padding: 0 15px; font-size: 14.5px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 16.5px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text-3); }
.btn-light { background: var(--ink-text); color: var(--ink); }
.btn-light:hover { background: #ffffff; }
.btn-ghost-dark { color: var(--ink-text); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.04); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 200ms; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand img, .brand svg { width: 28px; height: 28px; }
.brand img { border-radius: var(--logo-radius); box-shadow: var(--logo-ring); }
.brand .ver { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 999px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; padding: 6px 0; transition: color 140ms; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.top-cta { display: flex; align-items: center; gap: 8px; }
.top-cta .gh { display: none; }
/* theme switch: a hairline pill the height of "Baixar", sun and moon both visible in the track; the knob
   (the primary pill's colour) slides onto the active one. Shown only when JS can drive it. */
.theme-btn {
  display: none; position: relative; flex: none; width: 66px; height: 36px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-3);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.js .theme-btn { display: block; }
.theme-btn:hover { border-color: var(--text-3); color: var(--text-2); }
.theme-knob {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--btn-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 420ms var(--ease), background-color 220ms var(--ease);
}
.theme-btn svg { position: absolute; top: 9px; width: 16px; height: 16px; transition: color 220ms var(--ease); }
.theme-btn .ic-sun { left: 9px; }
.theme-btn .ic-moon { left: 39px; }
.theme-btn[aria-pressed="true"] .theme-knob { transform: translateX(30px); }
.theme-btn[aria-pressed="false"] .ic-sun, .theme-btn[aria-pressed="true"] .ic-moon { color: var(--btn-fg); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; position: relative; }
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: var(--text);
  transition: transform 220ms var(--ease), opacity 160ms;
}
.menu-btn span { top: 19.2px; }
.menu-btn::before { top: 13.5px; }
.menu-btn::after { top: 25px; }
.menu-btn[aria-expanded="true"] span { opacity: 0; }
.menu-btn[aria-expanded="true"]::before { transform: translateY(5.7px) rotate(45deg); }
.menu-btn[aria-expanded="true"]::after { transform: translateY(-5.8px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .top-cta { margin-left: auto; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0; z-index: 49;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-menu);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 180ms var(--ease), transform 220ms var(--ease), visibility 0s 220ms;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity 180ms var(--ease), transform 220ms var(--ease); }
  .nav a { padding: 13px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .top .wrap { gap: 12px; height: 60px; }
  .nav { top: 60px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand .ver { display: none; }
  .top-cta { gap: 4px; }
  .top-cta .btn-sm { padding: 0 14px; }
  .theme-btn { width: 60px; }
  .theme-btn .ic-moon { left: 33px; }
  .theme-btn[aria-pressed="true"] .theme-knob { transform: translateX(24px); }
  /* home: the hero's own download button is in view, so the header copy waits until it scrolls away */
  .top[data-hero-cta] .top-cta .btn { transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s, background-color 160ms var(--ease); }
  .js .top[data-hero-cta]:not(.past-hero) .top-cta .btn { opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s 160ms; }
}

/* ---------- languages ----------
   Picker: a hairline pill beside the theme switch (globe and the language's short code); the menu lists each
   language by its own name. It is a <details>, so it opens without JS; site.js closes it on Escape or a click
   outside. The hint (Portuguese pages only, built by site.js) offers the browser's language, never redirects. */
.lang { position: relative; flex: none; }
.lang summary {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  list-style: none; cursor: pointer; user-select: none;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--text-3); color: var(--text); }
.lang summary:focus-visible { border-radius: 999px; }
.lang summary svg { width: 16px; height: 16px; flex: none; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: max-content; min-width: 180px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-menu);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 10px; border-radius: 8px;
  color: var(--text-2); text-decoration: none; font-size: 15px; line-height: 1.35;
}
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); font-weight: 600; }
.lang-menu a[aria-current]::after { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* Phones: the header keeps the download button, whose word is long in some languages, so the picker moves to
   the foot of the menu as a row of pills and the theme switch folds to one round button. */
.nav-lang { display: none; }
@media (max-width: 480px) {
  .lang { display: none; }
  .nav-lang { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
  .nav .nav-lang a {
    padding: 6px 13px; font-size: 15px; line-height: 1.35; color: var(--text-2);
    border: 1px solid var(--line-2); border-radius: 999px;
  }
  .nav .nav-lang a[aria-current] { color: var(--btn-fg); background: var(--btn-bg); border-color: var(--btn-bg); }
  .theme-btn { width: 36px; }
  .theme-knob { display: none; }
  .theme-btn[aria-pressed] .ic-sun, .theme-btn[aria-pressed] .ic-moon { left: 9px; color: var(--text-2); }
  .theme-btn[aria-pressed="false"] .ic-moon, .theme-btn[aria-pressed="true"] .ic-sun { display: none; }
}
@media (max-width: 380px) {
  .top .wrap { gap: 8px; }
  .brand { font-size: 16px; gap: 8px; }
}

.lang-hint {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  max-width: min(460px, calc(100vw - 32px)); padding: 12px 12px 12px 18px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  font-size: 15px; line-height: 1.4;
  opacity: 0; transform: translateY(10px); transition: opacity 260ms var(--ease), transform 340ms var(--ease);
}
.lang-hint.in { opacity: 1; transform: none; }
.lang-hint p { flex: 1 1 180px; }
.lang-hint-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--text-3); }
.lang-hint-x:hover { color: var(--text); background: var(--surface-2); }
.lang-hint-x svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .lang-hint { transition: none; } }

/* Scripts Schibsted Grotesk doesn't cover get their system font by name, after it so Latin words keep the
   brand face (Windows first, then macOS/iOS, then Noto). Letter-spacing is tuned for Latin: it spreads CJK
   apart and breaks Devanagari/Bengali joins, so those languages drop it; their headings get room for the
   tall marks and the CJK line rhythm. Same idea as src/lib/styles/base.css in the app. */
:root {
  --font-ja: "Schibsted Grotesk", "Yu Gothic UI", "Yu Gothic", Meiryo, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  --font-zh: "Schibsted Grotesk", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-hi: "Schibsted Grotesk", "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-bn: "Schibsted Grotesk", "Nirmala UI", "Kohinoor Bangla", "Noto Sans Bengali", system-ui, sans-serif;
}
:root:lang(ja) { --font: var(--font-ja); }
:root:lang(zh) { --font: var(--font-zh); }
:root:lang(hi) { --font: var(--font-hi); }
:root:lang(bn) { --font: var(--font-bn); }
/* language names in the picker and the hint carry their own lang */
[lang]:lang(ja):not(:root) { font-family: var(--font-ja); }
[lang]:lang(zh):not(:root) { font-family: var(--font-zh); }
[lang]:lang(hi):not(:root) { font-family: var(--font-hi); }
[lang]:lang(bn):not(:root) { font-family: var(--font-bn); }
:root:is(:lang(ja), :lang(zh), :lang(hi), :lang(bn)) *, .lang-menu a:is(:lang(ja), :lang(zh), :lang(hi), :lang(bn)) {
  letter-spacing: normal !important;
}
:root:is(:lang(ja), :lang(zh)) :is(h1, h2, h3) { line-height: 1.22; }
:root:is(:lang(hi), :lang(bn)) :is(h1, h2, h3) { line-height: 1.32; }
:root:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(64px, 9vw, 120px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 72px); row-gap: clamp(28px, 4vw, 48px); align-items: start;
}
.hero h1 {
  grid-column: 1 / -1; max-width: 13.5em;
  font-size: clamp(2.55rem, 6.6vw, 5.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98;
}
.caret {
  display: inline-block; width: 0.075em; height: 0.86em; margin-left: 0.07em; vertical-align: -0.04em;
  background: var(--accent); border-radius: 0.02em; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-side { padding-top: 0; }
/* the signature: the app icon and its name, signing the headline (hero) and the closing field */
.sig { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.sig img { width: 40px; height: 40px; flex: none; border-radius: var(--logo-radius); box-shadow: var(--logo-ring); }
.hero-side .sig { margin-bottom: 22px; }
.sig-lg { gap: 16px; font-size: clamp(26px, 2.6vw, 32px); color: var(--ink-text); }
.sig-lg img { width: 56px; height: 56px; }
.lede { font-size: clamp(17.5px, 1.45vw, 19.5px); line-height: 1.5; color: var(--text-2); max-width: 30em; }
.hero-side .cta-row { margin-top: 28px; }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.hero-meta a { color: var(--text-2); }
.hero-meta a:hover { color: var(--text); }

/* ---------- hero demo ---------- */
.demo { margin: 0; min-width: 0; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.demo-apps { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-app {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  border: 1px solid transparent; transition: background-color 160ms, border-color 160ms, color 160ms;
}
.demo-app img { width: 18px; height: 18px; }
.demo-app:hover { color: var(--text); background: var(--surface-2); }
.demo-app[aria-pressed="true"] { color: var(--text); background: var(--surface); border-color: var(--line-2); }
.demo-pause {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--text-2); border: 1px solid var(--line-2); transition: color 160ms, border-color 160ms;
}
.demo-pause:hover { color: var(--text); border-color: var(--text-3); }
.demo-pause svg { width: 14px; height: 14px; }
.demo-pause .ic-play, .demo-pause[aria-pressed="true"] .ic-pause { display: none; }
.demo-pause[aria-pressed="true"] .ic-play { display: block; }

.sheet {
  position: relative; overflow: hidden; height: clamp(430px, 35vw, 466px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.pane {
  position: absolute; inset: 0; padding: 18px clamp(18px, 2.4vw, 28px);
  opacity: 0; visibility: hidden; transition: opacity 360ms var(--ease), visibility 0s 360ms;
}
.pane.on { opacity: 1; visibility: visible; transition: opacity 360ms var(--ease); }
.pane-head { display: flex; align-items: center; gap: 10px; padding: 2px 132px 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pane-head img { width: 20px; height: 20px; }
.pane-head b { font-weight: 600; }
.pane-head span { color: var(--text-3); }
.mail div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mail dt { width: 64px; flex: none; color: var(--text-3); }
.mail dd { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field { margin-top: 16px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--text); min-height: 1.6em; }
.field.boxed { padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; }
.field.round { border-radius: 24px; padding: 14px 20px; }
.out .w { display: inline; transition: opacity 260ms var(--ease), filter 260ms var(--ease); }
.out .w.new { opacity: 0; filter: blur(5px); }
.ibeam {
  display: inline-block; width: 2px; height: 1.2em; margin-left: 1px; vertical-align: -0.24em;
  background: var(--accent); animation: blink 1.1s steps(1) infinite;
}
.msg { display: flex; gap: 12px; padding-top: 16px; font-size: 15px; }
.msg .av { width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #2f6f5e; color: #fff; font-weight: 700; font-size: 15px; }
.msg b { font-weight: 650; }
.msg time { margin-left: 6px; font-size: 12.5px; color: var(--text-3); }
.msg p { color: var(--text-2); }
.chat-q { margin: 30px 0 4px; text-align: center; font-size: clamp(20px, 2vw, 25px); font-weight: 600; letter-spacing: -0.02em; }

.keys { position: absolute; top: 15px; right: clamp(16px, 2.2vw, 26px); display: flex; gap: 4px; }
.keys kbd { font-size: 12px; transition: transform 120ms, background-color 120ms, border-color 120ms, color 120ms; }
.keys.down kbd { transform: translateY(1px); border-bottom-width: 1px; margin-top: 1px; background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

/* the small voice wave on the Command row */
.wave { display: inline-flex; align-items: center; gap: 3px; height: 26px; flex: none; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform: scaleY(0.22); transform-origin: center; }
.wave.sm i { animation: wv 0.86s ease-in-out infinite alternate; }
.wave i:nth-child(2n) { animation-delay: -0.3s !important; animation-duration: 0.7s !important; }
.wave i:nth-child(3n) { animation-delay: -0.55s !important; animation-duration: 1.05s !important; }
.wave i:nth-child(5n) { animation-delay: -0.15s !important; }
@keyframes wv { 0% { transform: scaleY(0.2); } 100% { transform: scaleY(1); } }

/* ---------- the FlowVoice overlay (.fvo), rebuilt from the app's src/overlay/Overlay.svelte ----------
   Same structure, sizes, radii, type and motion as the real one: a dark capsule (56px tall, radius 28)
   that morphs into the live text window (radius 22), the processing pill and the result card (radius 18).
   Colours are the app's dark capsule (--cap-*) with the accent set to the site's red, one of the app's own
   accent choices. site.js sets the shell's width/height/radius; CSS animates the morph. */
.fvo {
  --cap-bg: #0e0e10; --cap-card: #141416; --cap-text: #ededea; --cap-text-2: #9b9b96;
  --cap-line: rgba(255, 255, 255, 0.1); --cap-hover: rgba(255, 255, 255, 0.07);
  --cap-accent: #ff2e00; --cap-accent-soft: rgba(255, 46, 0, 0.22); --cap-ok: #62d98f;
  --morph: cubic-bezier(0.22, 1, 0.36, 1);
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2;
  display: flex; justify-content: center; pointer-events: none;
  font-family: "Segoe UI Variable Text", "Segoe UI", var(--font); font-size: 13px; line-height: 1.4;
  color: var(--cap-text); text-align: left; letter-spacing: 0;
}
.fvo-shell {
  position: relative; flex: none; isolation: isolate;
  width: 388px; height: 56px; border-radius: 28px; overflow: hidden;
  background: var(--cap-bg); border: 1px solid var(--cap-line);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform-origin: 50% 100%;
  transition:
    width 460ms cubic-bezier(0.3, 0.2, 0.15, 1), height 460ms cubic-bezier(0.3, 0.2, 0.15, 1), border-radius 460ms cubic-bezier(0.3, 0.2, 0.15, 1),
    background-color 260ms var(--ease), box-shadow 260ms var(--ease), opacity 220ms var(--ease), transform 420ms cubic-bezier(0.25, 1.1, 0.4, 1.04), visibility 0s;
}
.fvo-shell.snap { transition: opacity 220ms var(--ease), transform 420ms cubic-bezier(0.25, 1.1, 0.4, 1.04), visibility 0s; }
.fvo-shell.hidden {
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.94);
  transition: opacity 170ms ease-in, transform 200ms ease-in, visibility 0s 200ms;
}

/* waveform: one set of 12 bars (3px, 3px apart), listening -> processing wave (site.js drives the listening bars) */
.fvo-wave {
  position: absolute; left: 19px; bottom: 0; z-index: 1; width: 69px; height: 54px;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
  transition: opacity 200ms var(--ease);
}
.fvo-wave i { display: block; width: 3px; height: 30px; border-radius: 2px; background: var(--cap-accent); transform: scaleY(0.1); }
.fvo-wave.m-off { opacity: 0; transition-duration: 140ms; }
.fvo-wave.m-proc i { animation: fvo-proc 1500ms cubic-bezier(0.45, 0, 0.55, 1) infinite; animation-delay: calc(var(--i) * 125ms); }
@keyframes fvo-proc { 0%, 100% { transform: scaleY(0.16); } 50% { transform: scaleY(var(--hi)); } }

/* content layers cross-fade on top of the morphing shell, anchored bottom-centre so nothing reflows */
.fvo-layer {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; opacity: 0; visibility: hidden;
  transition: opacity 140ms var(--ease), visibility 0s 140ms;
}
.fvo-layer.on { opacity: 1; visibility: visible; transition: opacity 280ms var(--ease) 110ms, visibility 0s; }
.fvo-row { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 9px 0 20px; }
.fvo-wslot { flex: none; width: 69px; height: 30px; }

.fvo-listen { display: flex; flex-direction: column-reverse; }
.fvo-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; padding-left: 2px; }
.fvo-mode { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cap-text-2); white-space: nowrap; }
.fvo-sty { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fvo-app { margin-left: 0.35em; font-weight: 400; color: var(--cap-text-2); }
.fvo-time { font-family: var(--mono); font-size: 12px; color: var(--cap-text-2); margin-right: 2px; font-variant-numeric: tabular-nums; }
.fvo-stop, .fvo-x { flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--cap-text-2); }
.fvo-stop { width: 34px; height: 34px; background: var(--cap-hover); color: var(--cap-text); }
.fvo-x { width: 30px; height: 30px; }
.fvo svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* live text: grows to three lines, then older lines slide up under a soft top fade */
.fvo-live { display: none; padding: 6px 22px 0; }
.fvo.has-text .fvo-live { display: block; }
.fvo-lwin {
  max-height: calc(8px + 22px * 3); padding-top: 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 6px, rgba(0, 0, 0, 0.55) 14px, #000 30px);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 6px, rgba(0, 0, 0, 0.55) 14px, #000 30px);
}
.fvo-lwin p { flex: none; font-size: 14.5px; line-height: 22px; letter-spacing: -0.003em; overflow-wrap: anywhere; }
/* a word turns solid once two answers agree on it; until then it is lighter and may still change */
.fvo .ck { transition: opacity 700ms var(--ease); }
.fvo .ck.un { opacity: 0.7; }
.fvo .ck.add { animation: fvo-ckadd 380ms var(--ease); }
.fvo .ck.fix { animation: fvo-ckfix 650ms var(--ease); }
@keyframes fvo-ckadd { from { opacity: 0; } }
@keyframes fvo-ckfix { from { opacity: 0.3; } }

.fvo-proc { width: max-content; }
.fvo-proc .fvo-row { padding-right: 24px; }
.fvo-pl { font-size: 13px; font-weight: 500; white-space: nowrap; }

/* result card */
.fvo-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px 16px; background: var(--cap-card); --fs: 14px; --lh: 21px; }
.fvo-head { display: flex; align-items: center; gap: 8px; height: 26px; margin-right: -6px; }
.fvo-badge { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--cap-ok); color: #0b0b0c; }
.fvo .fvo-badge svg { width: 14px; height: 14px; stroke-width: 2.2; }
.fvo-ht { font-weight: 600; font-size: 13px; white-space: nowrap; }
.fvo-hm { flex: 1; min-width: 0; font-size: 12px; color: var(--cap-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fvo-hm .fvo-app { margin-left: 0; }
.fvo-via { font-family: var(--mono); font-size: 10.5px; }
.fvo-rw { color: var(--cap-text); }
.fvo-tbox { position: relative; margin-right: -4px; clip-path: inset(0); }
.fvo-text { font-size: var(--fs); line-height: var(--lh); padding-right: 6px; white-space: pre-wrap; transition: opacity 240ms var(--ease); }
.fvo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fvo-chip {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px;
  border-radius: 14px; border: 1px solid var(--cap-line); font-size: 12px; color: var(--cap-text-2); white-space: nowrap;
  transition: background-color 120ms var(--ease), color 120ms var(--ease), border-color 180ms var(--ease);
}
.fvo .fvo-chip svg { width: 14px; height: 14px; }
.fvo-chip.on { color: var(--cap-text); border-color: var(--cap-accent); background: var(--cap-accent-soft); }
.fvo-chip.loading { color: var(--cap-text); border-color: var(--cap-accent); }
.fvo-chip.loading::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cap-accent), transparent); animation: fvo-chipbar 900ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes fvo-chipbar { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.fvo-acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.fvo-esc { margin-right: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--cap-text-2); opacity: 0.7; border: 1px solid var(--cap-line); border-radius: 4px; padding: 1px 5px; }
.fvo-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px;
  font-size: 12.5px; font-weight: 500; border: 1px solid var(--cap-line); color: var(--cap-text); white-space: nowrap;
}
.fvo .fvo-btn svg { width: 15px; height: 15px; }
.fvo-btn.primary { background: var(--cap-accent); border-color: var(--cap-accent); color: #fff; font-weight: 600; }
.fvo-btn[hidden] { display: none; }
.fvo-life {
  position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0;
  background: var(--cap-accent); opacity: 0.75; transform: scaleX(0);
}
.fvo-card.on .fvo-life { animation: fvo-life var(--life, 6s) linear both; }
.fvo-card.busy .fvo-life, .paused .fvo-life { animation-play-state: paused; }
.fvo-card.busy .fvo-life { opacity: 0.25; }
@keyframes fvo-life { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* busy: rewriting in another style */
.fvo-card.busy .fvo-text { opacity: 0.45; }
.fvo-tbox::after {
  content: ""; position: absolute; inset: -2px 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, var(--cap-accent-soft) 50%, transparent 70%); transform: translateX(-100%);
  transition: opacity 200ms var(--ease);
}
.fvo-card.busy .fvo-tbox::after { opacity: 1; animation: fvo-shimmer 1300ms cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes fvo-shimmer { to { transform: translateX(100%); } }
/* entrance details: the badge pops, the check draws, chips rise in, the text sweeps in */
.fvo-card.on .fvo-badge { animation: fvo-badge 520ms cubic-bezier(0.2, 0.9, 0.25, 1.15) 80ms both; }
.fvo-card.on .fvo-badge path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: fvo-draw 380ms var(--morph) 260ms forwards; }
.fvo-card.on .fvo-chip { animation: fvo-chipin 360ms var(--morph) both; animation-delay: calc(140ms + var(--i, 8) * 22ms); }
.fvo-text.reveal {
  -webkit-mask-image: linear-gradient(100deg, #000 42%, transparent 58%); mask-image: linear-gradient(100deg, #000 42%, transparent 58%);
  -webkit-mask-size: 280% 100%; mask-size: 280% 100%; animation: fvo-reveal 620ms var(--morph) both;
}
@keyframes fvo-badge { from { transform: scale(0.3) rotate(-30deg); opacity: 0; } }
@keyframes fvo-draw { to { stroke-dashoffset: 0; } }
@keyframes fvo-chipin { from { opacity: 0; transform: translateY(4px) scale(0.96); } }
@keyframes fvo-reveal {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; transform: translateY(3px); }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; transform: none; }
}

/* the app's "Compacto" width, used where the Normal card would not fit (phones) */
.fvo.compact .fvo-card { --fs: 13px; --lh: 19px; padding: 11px 12px 12px 14px; gap: 9px; }
.fvo.compact .fvo-chips { gap: 5px; }
.fvo.compact .fvo-chip { height: 25px; padding: 0 10px; font-size: 11.5px; }
.fvo.compact .fvo-lwin p { font-size: 13.5px; }
.fvo.narrow .fvo-sty .fvo-app, .fvo.narrow .fvo-x, .fvo.narrow .fvo-via { display: none; }

/* Vidro (2.1): a tint over Windows' own blur and a bright edge, lighter at the top; "Translúcido" is a lighter tint.
   On the site the blur is the browser's backdrop-filter over the desktop mock, which is what Windows does natively. */
.fvo-shell.glass {
  --tint: color-mix(in srgb, var(--cap-bg) 66%, transparent);
  /* readable on anything behind: secondary text close to the main one, stronger lines, a faint halo (same as the app) */
  --cap-text-2: color-mix(in srgb, var(--cap-text) 82%, transparent);
  --cap-line: color-mix(in srgb, var(--cap-text) 24%, transparent);
  --cap-hover: color-mix(in srgb, var(--cap-text) 13%, transparent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--cap-bg) 75%, transparent);
  --rim: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1) 38%, rgba(255, 255, 255, 0.05) 62%, rgba(255, 255, 255, 0.2));
  background: var(--tint); border-color: transparent;
  -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
}
.fvo-shell.glass.translucent { --tint: color-mix(in srgb, var(--cap-bg) 46%, transparent); }
/* the result card holds the most text: a denser tint there */
.fvo-shell.glass:has(.fvo-card.on) { --tint: color-mix(in srgb, var(--cap-bg) 76%, transparent); }
.fvo-shell.glass.translucent:has(.fvo-card.on) { --tint: color-mix(in srgb, var(--cap-bg) 62%, transparent); }
.fvo-shell.glass .fvo-btn.primary, .fvo-shell.glass .fvo-badge { text-shadow: none; }
.fvo-shell.glass .fvo-card { background: transparent; }
.fvo-shell.glass::before, .fvo-shell.glight::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; }
.fvo-shell.glass::before {
  z-index: 5; padding: 1px; background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
/* "Luz e sombra como no macOS 27": sheen on the upper half, beveled edge, light along the bottom, softer wider shadow */
.fvo-shell.glight {
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
}
.fvo-shell.glight::after {
  inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 46%, transparent 52%),
    radial-gradient(120% 60% at 50% 115%, rgba(255, 255, 255, 0.12), transparent 70%);
}

/* ---------- the overlay section: a desktop with the capsule on top, and the look switch ---------- */
.ovsec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.ovsec h2 { font-size: clamp(2rem, 3.7vw, 3.15rem); letter-spacing: -0.035em; line-height: 1.04; }
.ov-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.ov-bar .demo-pause { margin-left: auto; }
.ov-bar .label { margin: 0; }
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg button, .ov-light {
  height: 30px; padding: 0 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background-color 160ms, color 160ms, border-color 160ms, opacity 160ms;
}
.seg button:hover { color: var(--text); background: var(--surface-2); }
.seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.ov-light { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border: 1px solid var(--line-2); }
.ov-light .sw { position: relative; flex: none; width: 28px; height: 16px; border-radius: 999px; background: var(--line-2); transition: background-color 160ms; }
.ov-light .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); transition: transform 220ms var(--ease); }
.ov-light[aria-pressed="true"] .sw { background: var(--btn-bg); }
.ov-light[aria-pressed="true"] .sw::after { transform: translateX(12px); background: var(--btn-fg); }
.ov-light:hover:not(:disabled) { color: var(--text); border-color: var(--text-3); }
.ov-light:disabled { opacity: 0.45; cursor: default; }

.desk {
  position: relative; overflow: hidden; height: clamp(400px, 33vw, 440px); border-radius: var(--r-lg);
  background:
    radial-gradient(60% 75% at 74% 62%, #8cc6ff 0%, rgba(140, 198, 255, 0) 60%),
    radial-gradient(45% 55% at 58% 78%, #c9b8ff 0%, rgba(201, 184, 255, 0) 70%),
    radial-gradient(70% 90% at 88% 30%, #2f7bff 0%, rgba(47, 123, 255, 0) 70%),
    linear-gradient(160deg, #0a1f4d 0%, #123d8f 55%, #0b2a66 100%);
  box-shadow: var(--shadow);
}
.desk-win {
  position: absolute; left: 6%; top: 9%; width: 62%; bottom: 22%; border-radius: 10px; overflow: hidden;
  background: #fbfbfa; color: #1c1c1f; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.55);
}
.desk-bar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: #ececea; font-size: 12.5px; color: #55555c; }
.desk-bar img { width: 16px; height: 16px; }
.desk-body { padding: 16px 18px; }
.desk-body i { display: block; height: 8px; margin-bottom: 10px; border-radius: 4px; background: #e2e2de; }
.desk-chart { display: flex; align-items: flex-end; gap: 8px; height: 74px; margin-top: 16px; }
.desk-chart b { flex: 1; border-radius: 4px 4px 0 0; }
.desk-chart b:nth-child(1) { height: 46%; background: #2f7bff; }
.desk-chart b:nth-child(2) { height: 74%; background: #12b5a6; }
.desk-chart b:nth-child(3) { height: 58%; background: #f5a524; }
.desk-chart b:nth-child(4) { height: 92%; background: #7b61ff; }
.desk-chart b:nth-child(5) { height: 66%; background: #2f7bff; }
.desk-task { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: rgba(20, 24, 38, 0.55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.desk .fvo { bottom: 52px; }
.ov-real { margin-top: 14px; font-size: 14px; color: var(--text-3); }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 8.5vw, 116px) 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 40rem; margin-bottom: clamp(32px, 4.5vw, 56px); }
.sec-head h2, .free h2 { font-size: clamp(2rem, 3.7vw, 3.15rem); letter-spacing: -0.035em; line-height: 1.04; }
.sec-head p { margin-top: 16px; font-size: clamp(17px, 1.35vw, 19px); color: var(--text-2); }
.h-small { font-size: clamp(1.6rem, 2.5vw, 2.15rem); letter-spacing: -0.03em; }

/* styles */
.styles { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.styler { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 32px); box-shadow: var(--shadow-sm); }
/* the stack keeps every example's size reserved (JS adds hidden copies), so tabs and text never jump */
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; }
.stack > .sizer { visibility: hidden; }
.said { font-size: 16.5px; color: var(--text-2); line-height: 1.6; }
.said-l { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.said-ctx { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.said-ctx img { width: 16px; height: 16px; }
.said s { color: var(--text-3); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.tab {
  height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--line-2); transition: background-color 160ms, color 160ms, border-color 160ms;
}
.tab:hover { color: var(--text); border-color: var(--text-3); }
.tab[aria-selected="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.result { margin-top: 22px; }
.result-t { font-size: clamp(19px, 1.75vw, 23px); line-height: 1.45; font-weight: 500; letter-spacing: -0.012em; white-space: pre-line; }
.result-t.swap, .said-t.swap { animation: settle 420ms var(--ease); }
@keyframes settle { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }
.result-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 32px; margin-top: 14px; }
.result-d { flex: 1 1 15rem; min-height: 3.1em; font-size: 14.5px; color: var(--text-3); }
/* Prompt intensity, as in the app: a small segmented control, shown only while Prompt is selected */
.strength { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; }
.strength.off { visibility: hidden; }  /* keeps its place, so the description wraps the same for every style */
.strength-l { padding: 0 8px 0 10px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.strength button { height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: background-color 160ms, color 160ms; }
.strength button:hover { color: var(--text); background: var(--surface-2); }
.strength button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
/* small phones: the buttons say it already, and in long languages the label pushes the pill off screen */
@media (max-width: 400px) { .strength-l { display: none; } }

.per-app h3 { font-size: 21px; letter-spacing: -0.02em; }
.per-app > p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.map { margin-top: 20px; border-top: 1px solid var(--line); }
.map button {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 8px; margin: 0 -8px; width: calc(100% + 16px);
  border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; transition: background-color 160ms;
}
.map li:last-child button { border-bottom: 0; }
.map button:hover { background: var(--surface); }
.icons { display: flex; gap: 6px; min-width: calc(4 * 40px + 3 * 6px); }
.icons img {
  width: 40px; height: 40px; padding: 8px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line);
}
.map .to { width: 18px; height: 18px; color: var(--text-3); margin-left: 6px; flex: none; }
.map b { width: 7.2em; font-size: 16px; font-weight: 600; color: var(--text-2); transition: color 160ms; }
.map button[aria-pressed="true"] b { color: var(--text); }
.map button[aria-pressed="true"] .to { color: var(--accent-ink); }
.note { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14.5px; color: var(--text-3); }
.note img { width: 16px; height: 16px; flex: none; }

/* command */
.cmd-steps { border-top: 1px solid var(--line); }
.cmd-steps li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cmd-l { font-size: 14.5px; font-weight: 600; color: var(--text-3); }
.cmd-before, .cmd-after { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -0.015em; max-width: 34em; }
.cmd-before { color: var(--text-2); }
.cmd-before mark { background: var(--mark); color: var(--text); padding: 0.04em 0.1em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cmd-after { font-weight: 500; color: var(--text); }
.cmd-say {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 20px 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--ink-text); font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; justify-self: start;
  box-shadow: var(--ov-ring);
}
.wave.sm { height: 18px; gap: 2.5px; }
.wave.sm i { width: 2.5px; }
.cmd-more { margin-top: 20px; color: var(--text-3); font-size: 15.5px; }

/* free */
.free { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.facts { margin-top: clamp(28px, 3.5vw, 44px); }
.facts div { padding: 20px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.facts dd { margin-top: 6px; color: var(--text-2); font-size: 16.5px; }
.facts a { color: var(--accent-ink); font-weight: 500; white-space: nowrap; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 14px; background: var(--ink); box-shadow: var(--shadow-shot); }

/* details */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 3.5vw, 44px); }
.specs li { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.specs b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -0.012em; }
.specs li > span { display: block; margin-top: 6px; color: var(--text-2); font-size: 15.5px; }
.specs kbd { font-size: 0.74em; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
  font-size: 18px; font-weight: 600; letter-spacing: -0.012em; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; width: 12px; height: 12px; flex: none; margin-right: 4px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 12px no-repeat;
  color: var(--text-3); transition: transform 220ms var(--ease);
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--text-2); }
.qa details p { padding: 0 0 22px; max-width: 40em; color: var(--text-2); }
.qa a { color: var(--accent-ink); }

/* support: the QR stays white in both themes so phones can read it */
.support { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: stretch; }
.pix, .help { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(22px, 2.8vw, 32px); }
.pix { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(22px, 3vw, 32px); }
.qr { display: block; flex: none; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); line-height: 0; transition: transform 200ms var(--ease); }
.qr:hover { transform: scale(1.03); }
.qr img { width: 168px; height: 168px; }
.pix-act { flex: 1 1 15rem; display: flex; flex-direction: column; align-items: flex-start; }
.pix-act .btn svg { color: var(--accent); }
.pix-act .sponsor { margin-top: 20px; }
.pix-act .sponsor svg { color: #db61a2; }
.pix-note { margin-top: 10px; font-size: 14.5px; color: var(--text-3); }
.pix-note code { color: var(--text-2); }
.help h3 { font-size: 19px; letter-spacing: -0.02em; }
.help ul { margin-top: 14px; }
.help li { padding: 12px 0; border-top: 1px solid var(--line); }
.help li:last-child { padding-bottom: 0; }
.help a, .help b { font-size: 16px; font-weight: 600; }
.help a { color: var(--accent-ink); }
.help li > span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--text-2); }

/* closing field */
.final { background: var(--field); box-shadow: inset 0 1px 0 var(--field-edge); color: var(--ink-text); padding: clamp(88px, 12vw, 160px) 0 clamp(80px, 10vw, 128px); text-align: center; }
.final .wrap { display: flex; flex-direction: column; align-items: center; }
.final .sig-lg { margin: 0 0 36px; max-width: none; color: var(--ink-text); font-size: clamp(26px, 2.6vw, 32px); }
.final h2 { font-size: clamp(2.2rem, 5.2vw, 4.25rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 12em; }
.final p { margin-top: 18px; color: var(--ink-text-2); font-size: clamp(17px, 1.4vw, 19px); max-width: 32em; }
.final .cta-row { margin-top: 36px; justify-content: center; }
.final :focus-visible, .foot-site :focus-visible { outline-color: var(--ink-text); }

/* ---------- footer (shared) ---------- */
.foot-site { background: var(--field); color: var(--ink-text-2); font-size: 14.5px; border-top: 1px solid var(--ink-line); }
.foot-site .wrap { padding-top: 28px; padding-bottom: 32px; }
.foot-site a { color: var(--ink-text); text-decoration: none; }
.foot-site a:hover { text-decoration: underline; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.foot-row ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; font-size: 13.5px; color: #8e8e95; }
.foot-bottom a { color: var(--ink-text-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); }
/* older footer markup (secondary pages) */
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; padding: 24px 0 8px; }
.foot-grid h2 { font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: #8e8e95; margin-bottom: 10px; }
.foot-grid li { padding: 3px 0; }
.foot-about p { margin-top: 12px; max-width: 30em; }
.foot-about .brand { color: var(--ink-text); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-side .cta-row .btn-lg { padding: 0 20px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the hero keeps the demo beside the lede down to small laptops, so the mechanism is in the first viewport */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 11em; }
  .sheet { height: 480px; }
}
@media (max-width: 860px) {
  .styles, .free, .ovsec, .support { grid-template-columns: minmax(0, 1fr); }
  .free-txt { max-width: 40rem; }
  .shot { max-width: 40rem; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .cmd-steps li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .sheet { height: 540px; }
  .pane-head { padding-right: 0; }
  .pane-head span { display: none; }
  .keys { display: none; }
  .hero-side .cta-row .btn { flex: 1 1 auto; }
  .demo-apps { gap: 2px; flex-wrap: nowrap; }
  .demo-app { padding: 0 10px 0 8px; gap: 6px; font-size: 14px; }
  .map b { width: auto; }
  .icons { min-width: calc(4 * 36px + 3 * 6px); }
  .icons img { width: 36px; height: 36px; padding: 7px; }
}
/* smallest phones: the switch folds to a round button that shows the active theme */
@media (max-width: 360px) {
  .theme-btn { width: 36px; }
  .theme-knob { display: none; }
  .theme-btn[aria-pressed] .ic-sun, .theme-btn[aria-pressed] .ic-moon { left: 9px; color: var(--text-2); }
  .theme-btn[aria-pressed="false"] .ic-moon, .theme-btn[aria-pressed="true"] .ic-sun { display: none; }
}
@media (max-width: 380px) {
  .icons { gap: 4px; min-width: calc(4 * 32px + 3 * 4px); }
  .icons img { width: 32px; height: 32px; padding: 6px; border-radius: 9px; }
  .demo-app { padding: 0 8px 0 6px; font-size: 13.5px; }
}

/* ---------- theme change: a circular wipe from the switch (View Transitions), crossfade elsewhere ----------
   site.js adds .theme-vt for the duration of the wipe; named groups are switched off so the whole page is one
   snapshot under the clip. Without the API it adds .theme-fade for a short colour crossfade. */
.theme-vt * { view-transition-name: none !important; }
.theme-vt::view-transition-old(root), .theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-vt::view-transition-old(root) { z-index: 0; }
.theme-vt::view-transition-new(root) { z-index: 1; }
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color 260ms ease, color 260ms ease, border-color 260ms ease, box-shadow 260ms ease, fill 260ms ease !important;
}

/* ---------- page to page: the header stays, the page settles in (cross-document View Transitions) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.top { view-transition-name: site-header; }
::view-transition-old(root) { animation: 160ms cubic-bezier(0.4, 0, 1, 1) both fv-page-out; }
::view-transition-new(root) { animation: 380ms var(--ease) 80ms both fv-page-in; }
::view-transition-group(site-header) { animation-duration: 260ms; }
@keyframes fv-page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes fv-page-in { from { opacity: 0; transform: translateY(14px); } }

/* the loader: when the next page takes more than ~120 ms, the caret types a line across the top */
.nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; opacity: 0; transition: opacity 160ms; }
.nav-progress::before, .nav-progress::after { content: ""; position: absolute; top: 0; left: 0; }
.nav-progress::before { right: 0; height: 2px; background: var(--text); transform-origin: left; transform: scaleX(0); }
.nav-progress::after { width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--accent); }
.nav-progress.go { opacity: 1; }
.nav-progress.go::before { animation: fv-type-line 9s cubic-bezier(0.1, 0.8, 0.2, 1) forwards; }
.nav-progress.go::after { animation: fv-type-head 9s cubic-bezier(0.1, 0.8, 0.2, 1) forwards; }
@keyframes fv-type-line { from { transform: scaleX(0); } to { transform: scaleX(0.92); } }
@keyframes fv-type-head { from { transform: translateX(0); } to { transform: translateX(92vw); } }

@media (prefers-reduced-motion: reduce) {
  .nav-progress::before { transform: scaleX(0.35); }
  .nav-progress::after { transform: translateX(35vw); }
  .nav-progress.go::before, .nav-progress.go::after { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .caret, .ibeam { animation: none; }
  .wave i { transform: scaleY(0.6); }
  .wave i:nth-child(odd) { transform: scaleY(0.9); }
}
