/* Frameskim landing, variant A. Hand-built, no framework. */

@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/SourceSerif4-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg: #f4f1ea;
  --bg-2: #ebe7dd;
  --surface: #fbfaf6;
  --bg-hero: #f4f1ea;
  --bg-what: #f1ede4;
  --bg-modes: #ebe7dd;
  --bg-connect: #f3f0e8;
  --bg-pricing: #eeeae0;
  --bg-faq: #f3f0e8;
  --bg-final: #f0ece2;
  --bg-foot: #e0d9ca;
  --nav-bg: rgba(224, 217, 202, .88);
  --final-glow: rgba(184, 110, 0, .08);
  --ink: #17150f;
  --ink-2: #474338;
  --ink-3: #686357;
  --line: #d9d3c6;
  --line-2: #c9c2b2;
  --accent: #b86e00;
  --accent-text: #8a5000;
  --accent-soft: rgba(184, 110, 0, .12);
  --chip-bg: #f5a524;
  --chip-ink: #1b1200;
  --code-bg: #fbfaf6;
  --term-bg: #fdfcf9;
  --tok-k: #6b4500;
  --tok-s: #2f5b35;
  --tok-n: #8a3b12;
  --tok-c: #686357;
  --shadow: 0 1px 0 rgba(23,21,15,.04), 0 24px 48px -24px rgba(23,21,15,.28);
  --dim: rgba(23, 21, 15, .1);
  --strip-filter: saturate(.55);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 5vw, 80px);
  --max: 1280px;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0b;
    --bg-2: #15130f;
    --surface: #171511;
    --bg-hero: #0c0b09;
    --bg-what: #100f0c;
    --bg-modes: #15130f;
    --bg-connect: #0e0d0b;
    --bg-pricing: #14120e;
    --bg-faq: #0e0d0b;
    --bg-final: #110f0c;
    --bg-foot: #151410;
    --nav-bg: rgba(21, 20, 16, .92);
    --final-glow: rgba(245, 165, 36, .07);
    --ink: #f2eee5;
    --ink-2: #c3bdb0;
    --ink-3: #9a9487;
    --line: #2a2721;
    --line-2: #3a362e;
    --accent: #f5a524;
    --accent-text: #f5a524;
    --accent-soft: rgba(245, 165, 36, .14);
    --code-bg: #13110e;
    --term-bg: #0b0a08;
    --tok-k: #f5c272;
    --tok-s: #b7d4a8;
    --tok-n: #f0a58a;
    --tok-c: #8f897c;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 32px 64px -28px rgba(0,0,0,.9);
    --dim: rgba(0, 0, 0, .26);
    --strip-filter: saturate(.5) brightness(.85);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg-hero); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code, pre, .mono { font-family: var(--mono); }
:not(pre) > code { font-size: .86em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; color: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: normal; color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-3); }
.eyebrow { font: 500 13px/1.3 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--accent-text); margin-bottom: 18px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10; background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* home: the nav blends with the hero; it only gets the page tone (blurred) once scrolled */
.top-home { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .25s; }
.top-home.is-scrolled { background: color-mix(in srgb, var(--bg-hero) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top-in { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.025em; }
.mark { width: 26px; height: 26px; }
.mark-bg { fill: var(--ink); }
.mark-frame { fill: var(--bg); }
.mark-head { fill: var(--accent); }
.top nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }

/* tools menu: a <details> disclosure, so it opens without JavaScript */
.tools { position: relative; }
.tools > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-2); border-radius: 8px; }
.tools > summary::-webkit-details-marker { display: none; }
.tools > summary:hover, .tools[open] > summary { color: var(--ink); }
.tools-chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tools[open] .tools-chev { transform: rotate(180deg); }
.tools-panel {
  position: absolute; top: calc(100% + 18px); left: -14px; z-index: 20; width: 340px;
  display: grid; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.top nav .tools-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.top nav .tools-panel a:hover { background: var(--bg-2); }
.top nav .tools-panel a[aria-current="page"] { background: var(--accent-soft); }
.tools-panel b { font-weight: 500; font-size: 15px; line-height: 1.35; text-wrap: balance; }
.tools-panel span { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); text-wrap: balance; }
.top nav .tools-panel a[aria-current="page"] span { color: var(--ink-2); }

/* language switcher (request 0017): the same disclosure as the tools menu, anchored to the right */
.langs > summary { gap: 5px; font-size: 14px; line-height: 1; letter-spacing: .02em; align-self: center; }
.langs > summary span { position: relative; top: 1px; }
.langs-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.langs .langs-panel { left: auto; right: -14px; width: 200px; }
.top nav .langs-panel a { padding: 9px 12px; font-size: 15px; }
.top nav .langs-panel a[aria-current="true"] { background: var(--accent-soft); font-weight: 500; }

/* Spanish and Portuguese navs are longer: their page links go to the Tools level below 900 px, English keeps them to 720 px (request 0017) */
@media (max-width: 900px) {
  html:lang(es) .top nav > a, html:lang(pt-BR) .top nav > a { display: none; }
  .top nav { gap: 18px; } /* English keeps its four links next to the switcher down to 721 px */
}

/* translated legal pages: the English version governs */
.legal-note { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; gap: 6px; white-space: nowrap; }
.btn-primary { background: var(--chip-bg); color: var(--chip-ink); }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--chip-bg) 88%, var(--ink)); }
.btn-primary span { transition: transform .2s; }
.btn-primary:hover span { transform: translateX(3px); }
.btn-ghost { background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.btn.is-done { border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 0 0 40px; overflow: hidden; isolation: isolate; background: var(--bg-hero); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 56px; padding-top: 16px; padding-bottom: 16px; min-height: min(780px, calc(100svh - 76px)); }
.hero-copy { position: relative; z-index: 2; max-width: 560px; min-width: 0; }
.hero-in > * { min-width: 0; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(46px, 6vw, 88px); line-height: 1; letter-spacing: -.03em;
  margin-bottom: 28px; text-wrap: balance;
}
.lede-short { display: none; } /* shown only at 480px and below */
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 500px; margin-bottom: 34px; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hint { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.hint a { color: var(--ink-2); }

/* demo: real moments output */
.demo {
  position: relative; z-index: 2; justify-self: end; width: 100%; max-width: 640px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.demo-k { font: 500 13px/1 var(--sans); letter-spacing: .01em; color: var(--accent-text); display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 12px; }
.demo-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.vcard { display: flex; gap: 16px; align-items: center; text-decoration: none; background: var(--term-bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.vcard:hover { border-color: var(--line-2); }
.vcard img { flex: none; width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.vc-body { display: grid; gap: 6px; min-width: 0; }
.vc-t { font-weight: 500; font-size: 14px; line-height: 1.3; color: var(--ink); }
.vc-m { display: flex; flex-wrap: wrap; row-gap: 2px; gap: 12px; font-size: 12.5px; color: var(--ink-3); }
.vc-m .mono { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-ask { margin: 22px 2px 10px; font-size: 13px; color: var(--ink-3); }
.demo-q { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.qchip {
  font: 500 14px/1.2 var(--sans); color: var(--ink-2); background: transparent; cursor: pointer; text-align: left;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; transition: color .2s, border-color .2s, background .2s;
}
.qchip:hover { color: var(--ink); border-color: var(--ink-3); }
.qchip:focus-visible { outline-offset: 2px; border-radius: 999px; }
.qchip[aria-pressed="true"] { color: var(--chip-ink); background: var(--chip-bg); border-color: var(--chip-bg); }
.ans { display: flex; align-items: baseline; gap: 12px; margin: 22px 2px 12px; font-size: 14px; color: var(--ink-3); }
.ans-k { font: 500 13px/1 var(--sans); letter-spacing: .01em; color: var(--accent-text); }
.ans-t { font-size: 22px; line-height: 1; color: var(--ink); }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; }
.shot-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, filter .35s; }
.shot.is-swapping .shot-img img { opacity: 0; filter: blur(6px); }
.shot-chip { position: absolute; left: 10px; top: auto; bottom: 44px; }
.pbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 18px 12px 9px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); }
.pbar-ico { flex: none; width: 13px; height: 13px; fill: currentColor; }
.pbar-track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.pbar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--chip-bg); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.pbar-head { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--chip-bg); box-shadow: 0 0 0 3px rgba(0,0,0,.35); transition: left .6s cubic-bezier(.2,.7,.2,1); }
.pbar-t { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.term { margin-top: 14px; background: var(--term-bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px; }
.term pre { font-size: 12.5px; line-height: 1.6; }
.prompt { color: var(--accent-text); }
.fn { color: var(--ink); }
.term .hl { background: var(--accent-soft); border-radius: 4px; padding: 0 3px; color: var(--accent-text); }
@media (max-height: 800px) { .demo .term { display: none; } }
.term .link { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.term.is-typing [data-f="query"]::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent); }

.chip {
  flex: none; display: inline-flex; align-items: center;
  font: 500 12.5px/1 var(--mono); letter-spacing: .02em;
  background: var(--chip-bg); color: var(--chip-ink); padding: 6px 8px; border-radius: 6px;
}
.chip-s { position: absolute; left: 8px; bottom: 8px; font-size: 11.5px; padding: 5px 7px; }

/* scrollable code: fades at the edge while there is more to scroll */
.scroll { position: relative; min-width: 0; }
.scroll pre { overflow-x: auto; scrollbar-width: thin; }
.scroll.has-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }

/* ---------- statement + spine ---------- */
.what { padding: 120px 0; background: var(--bg-what); }
.statement { font-family: var(--serif); font-size: clamp(32px, 4vw, 56px); line-height: 1.1; letter-spacing: -.022em; max-width: 1000px; text-wrap: pretty; }
.spine { position: relative; margin: 96px 0 0; }
.spine-in { position: relative; }
.spine-track { position: relative; padding-top: 30px; }
.spine-strip { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; border-radius: 8px; overflow: hidden; }
.spine-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: var(--strip-filter); }
.spine-window { position: absolute; top: 22px; bottom: -8px; border: 2px solid var(--chip-bg); border-radius: 8px; background: var(--accent-soft); }
.spine-window span { position: absolute; top: -26px; left: -2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 500 11.5px/1 var(--mono); background: var(--chip-bg); color: var(--chip-ink); }
.spine-ruler { position: relative; height: 26px; margin-top: 10px; border-top: 1px solid var(--line-2); font: 12px/1 var(--mono); color: var(--ink-3); }
.spine-ruler span { position: absolute; top: 8px; transform: translateX(-1px); }
.spine-ruler span::before { content: ""; position: absolute; top: -9px; left: 0; width: 1px; height: 6px; background: var(--line-2); }
.spine figcaption { margin-top: 22px; font-size: 14.5px; color: var(--ink-3); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.legend li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.legend li:last-child { border-bottom: 1px solid var(--line); }
.lg-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 500 11.5px/1 var(--mono); background: var(--chip-bg); color: var(--chip-ink); }
.lg-t { font: 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }

/* ---------- section heads ---------- */
.sec-head { margin-bottom: 56px; }
.modes h2, .connect h2, .pricing h2, .faq h2 {
  font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.final h2 { font-family: var(--serif); font-size: clamp(40px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.026em; text-wrap: balance; }
.sec-lede { color: var(--ink-2); max-width: 580px; margin: 22px 0 36px; }

/* ---------- modes ---------- */
.modes { position: relative; isolation: isolate; padding: 120px 0; background: radial-gradient(48% 36% at 82% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), var(--bg-modes); }
.modes h2 { max-width: 760px; }
.modes .sec-head { margin-bottom: 32px; }
@media (min-width: 1101px) { .modes { padding-top: 100px; } .modes h2 { max-width: none; text-wrap: nowrap; } }
pre { margin: 0; overflow-x: auto; font-size: 13.5px; line-height: 1.65; color: var(--ink); tab-size: 2; }
pre code { font-size: inherit; }
.k { color: var(--tok-k); } .s { color: var(--tok-s); } .n { color: var(--tok-n); } .c { color: var(--tok-c); }

/* tabs: a segmented control; the raised thumb and its amber playhead slide to the active mode */
.mtabs .mtablist {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  width: min(100%, 600px); padding: 6px; margin: 0 0 24px;
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 18px;
}
.mt-thumb {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 3);
  border-radius: 13px; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); border: 1px solid var(--line-2);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.55);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.mt-thumb::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 1px; border-radius: 2px; background: linear-gradient(to right, transparent, var(--accent) 30%, var(--accent) 70%, transparent); }
html:not(.js) .mt-thumb { display: none; }
.mtabs .mtablist button {
  position: relative; z-index: 1; display: grid; justify-items: start; gap: 4px; align-content: center;
  min-height: 58px; padding: 9px 18px; border-radius: 13px; text-align: left;
  font: 500 16px/1.15 var(--sans); color: var(--ink-3); background: none; border: 0; cursor: pointer; transition: color .25s;
}
.mt-k { font: 400 12px/1 var(--mono); color: var(--ink-3); opacity: .75; transition: color .25s, opacity .25s; }
.mtabs .mtablist button:hover { color: var(--ink-2); }
.mtabs .mtablist button[aria-selected="true"] { color: var(--ink); }
.mtabs .mtablist button[aria-selected="true"] .mt-k { color: var(--accent-text); opacity: 1; }
.mtabs .mtablist button:focus-visible { outline-offset: -2px; border-radius: 13px; }

/* panels: stacked in one cell with JS, so a switch cross-fades and never changes the height */
.mstack { display: grid; gap: 72px; }
.js .mstack { gap: 0; }
.js .mstack > .mpanel { grid-area: 1 / 1; }
.js .mstack > .mpanel.is-inactive, .js .mstack > .mpanel[inert] { visibility: hidden; opacity: 0; pointer-events: none; }
.mpanel { display: grid; grid-template-rows: 1fr auto; gap: 28px; min-width: 0; }
.mp-name { font: 500 13px/1.3 var(--sans); color: var(--accent-text); margin: 0 0 -12px; }
.js .mp-name { display: none; }
.mside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.mode-copy { color: var(--ink-2); max-width: 460px; font-size: 17px; }

/* stage: the output of each mode, shown as the agent gets it */
.mstage {
  position: relative; margin: 0; min-width: 0; display: grid; align-content: center;
  padding: 28px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%), var(--term-bg);
  box-shadow: var(--shadow);
}
.mstage img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #000; }
.mstage .chip { position: absolute; left: 10px; bottom: 10px; }

/* frames */
.mf { --g: 20px; }
.mf-ruler { position: relative; height: 34px; margin-bottom: 18px; }
.mf-ruler::before {
  content: ""; position: absolute; bottom: 0; height: 1px; border-radius: 2px; background: var(--line-2);
  left: calc(.5 * (100% - 3 * var(--g)) / 4); right: calc(.5 * (100% - 3 * var(--g)) / 4); transform-origin: 0 50%;
}
.mf-tick, .mf-gap { position: absolute; bottom: 0; transform: translateX(-50%); }
.mf-tick { left: calc((var(--k) + .5) * (100% - 3 * var(--g)) / 4 + var(--k) * var(--g)); height: 34px; display: grid; justify-items: center; align-content: start; }
.mf-tick b { font: 500 12.5px/1 var(--mono); color: var(--ink-2); }
.mf-tick::after { content: ""; position: absolute; bottom: -3px; width: 2px; height: 7px; border-radius: 1px; background: var(--accent); opacity: .8; }
.mf-gap { left: calc((var(--k) + 1) * (100% - 3 * var(--g)) / 4 + (var(--k) + .5) * var(--g)); bottom: -10px; font: 500 11.5px/1 var(--mono); color: var(--ink-3); background: var(--term-bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.mf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.mf-item { position: relative; }
.mf-item img { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 22px 36px -20px rgba(0,0,0,.8); }

/* segment */
.ms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ms-shot { position: relative; }
.ms-shot img { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 22px 36px -20px rgba(0,0,0,.8); }
.ms-said { display: grid; gap: 24px; min-width: 0; }
.ms-k { font-size: 13.5px; color: var(--ink-3); }
.ms-k .mono { color: var(--accent-text); margin-right: 4px; }
.ms-q { margin: 0; padding-left: 22px; border-left: 2px solid var(--accent); }
.ms-q p { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.22; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.ms-range { display: flex; align-items: center; gap: 12px; }
.ms-range > .chip, .ms-next .chip { position: static; }
.ms-bar { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.ms-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to right, var(--chip-bg), color-mix(in srgb, var(--chip-bg) 45%, transparent)); transform-origin: 0 50%; }
.ms-next { display: flex; align-items: center; gap: 10px; flex: none; }
.ms-next img { width: 88px; border-radius: 8px; opacity: .6; filter: var(--strip-filter); }
.chip-ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* moments */
.mm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mm-top { display: grid; gap: 26px; min-width: 0; }
.mm-q { justify-self: start; max-width: 100%; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 11px 16px; border-radius: 14px; background: var(--code-bg); border: 1px solid var(--line-2); font: 13.5px/1.4 var(--mono); }
.mm-qk { color: var(--ink-3); }
.mm-q .prompt { color: var(--accent-text); }
.mm-tl { position: relative; padding-top: 6px; }
.mm-strip { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; border-radius: 7px; overflow: hidden; }
.mstage .mm-strip img { width: 100%; height: 44px; aspect-ratio: auto; border-radius: 0; box-shadow: none; object-fit: cover; filter: var(--strip-filter); opacity: .5; }
.mm-win { position: absolute; top: 0; height: calc(100% - 28px); border: 2px solid var(--chip-bg); border-radius: 8px; background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 30px -4px color-mix(in srgb, var(--chip-bg) 55%, transparent); transform-origin: 0 50%; }
.mm-ph { position: absolute; left: 0; right: 0; top: -8px; height: calc(100% - 20px); pointer-events: none; }
.mm-ph span { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--chip-bg); }
.mm-ph span::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--chip-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--term-bg) 70%, transparent); }
.mm-ruler { position: relative; height: 16px; margin-top: 12px; font: 12px/1 var(--mono); color: var(--ink-3); }
.mm-ruler span { position: absolute; top: 0; }
.mm-res { display: grid; gap: 18px; min-width: 0; }
.mm-shot { position: relative; }
.mm-shot img { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 22px 36px -20px rgba(0,0,0,.8); }
.mm-meta { margin: 4px 0 0; display: grid; grid-template-columns: auto auto 1fr; gap: 0 28px; }
.mm-meta div { display: grid; gap: 6px; align-content: end; }
.mm-meta dt { font: 12px/1 var(--mono); color: var(--ink-3); }
.mm-meta dd { margin: 0; font: 14px/1.2 var(--mono); color: var(--ink); white-space: nowrap; }
.mm-meta .mm-score { font: 400 30px/1 var(--serif); letter-spacing: -.02em; color: var(--accent-text); }

/* code: secondary, one compact card with an Input / Output switch */
.mcode { position: relative; min-width: 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 14px; }
.mc-tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 6px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.mc-tabs button { font: 500 13px/1 var(--sans); color: var(--ink-3); background: none; border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: color .2s, background .2s; }
.mc-tabs button:hover { color: var(--ink); }
.mc-tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.mc-tabs button:focus-visible { outline-offset: 1px; border-radius: 8px; }
.mc-panel { padding: 8px 12px 0; }
.mc-panel pre { font-size: 12.5px; line-height: 1.6; }
.mc-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.js .mc-panel.is-inactive, .js .panel.is-inactive { display: none; }
html:not(.js) [role="tablist"] { display: none; }
html:not(.js) [data-copy] { display: none; }
html:not(.js) .connect-in { align-items: start; }
html:not(.js) .mc-panel::before, html:not(.js) .panel::before { content: attr(data-name); display: block; margin-bottom: 8px; font: 500 13px/1.3 var(--sans); color: var(--ink-3); }

/* ---------- connect ---------- */
.connect { padding: 120px 0; background: var(--bg-connect); }
.connect-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.connect-copy p { color: var(--ink-2); margin-top: 24px; max-width: 470px; }
.connect-copy .eyebrow { margin-top: 0; color: var(--accent-text); }

.tabs { position: relative; background: var(--code-bg); border: 1px solid var(--line); border-radius: 18px; padding: 8px; min-width: 0; }
.tablist { position: relative; display: flex; gap: 4px; padding: 4px; }
.tl-line { position: absolute; left: 0; bottom: -7px; width: 1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: translateX(var(--x, 0)) scaleX(var(--w, 0)); transition: transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tablist button {
  font: 500 14px/1 var(--sans); color: var(--ink-3); background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-radius: 999px;
}
.tablist button { transition: color .2s, background .2s; }
.tablist button:hover { color: var(--ink-2); }
.tablist button[aria-selected="true"] { color: var(--ink); background: var(--bg-2); }
.panel { position: relative; padding: 22px 20px 20px; border-top: 1px solid var(--line); margin-top: 6px; }
.panel .scroll { margin-right: 64px; }
.panel-note { position: relative; margin-top: 20px; padding: 14px 16px 14px 44px; border-radius: 14px; font: 400 15px/1.5 var(--sans); color: var(--ink-2); background: color-mix(in srgb, var(--accent) 6%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.panel-note::before { content: "\203A"; position: absolute; left: 18px; top: 13px; font: 500 17px/1.3 var(--mono); color: var(--accent-text); }
.panel-steps { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.panel-steps code { word-break: break-word; }
.copy {
  position: absolute; top: 16px; right: 14px; font: 500 13px/1 var(--sans); color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.copy:hover { color: var(--ink); border-color: var(--ink-3); }
.copy.is-done { color: var(--accent-text); border-color: var(--accent); }

/* border beam: a short amber highlight travelling the card border */
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.beam::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0deg, transparent 300deg, var(--accent) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 7s linear infinite; opacity: .9;
}
@keyframes beam { to { --beam: 360deg; } }

/* ---------- pricing ---------- */
.pricing { padding: 120px 0; background: var(--bg-pricing); }
.pricing-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.prices { margin: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price { padding: 22px 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(90% 80% at 0% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), var(--surface); }
.price-ico { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 10px; background: var(--accent-soft); }
.price-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-text); stroke-width: 1.5; }
.price-ico .ph { fill: var(--accent); stroke: none; }
.price-ico .ph-f { fill: var(--accent); stroke: var(--accent); }
.prices dt { display: block; }
.prices dt { font-size: 16px; color: var(--ink-2); margin-bottom: 10px; }
.prices dd { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.num { font-family: var(--serif); line-height: .9; letter-spacing: -.035em; }
.sub { font-size: 14.5px; color: var(--ink-3); max-width: 360px; }
.prices .num { font-size: clamp(40px, 4vw, 56px); }
.more-prices { color: var(--ink-2); font-size: 15px; max-width: 460px; }
.more-prices a { color: var(--ink); text-underline-offset: 3px; }
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.receipt h3 { font-family: var(--serif); font-size: 30px; letter-spacing: -.015em; }
.receipt-sub { color: var(--ink-3); margin: 6px 0 22px; font-size: 15px; }
.lines { margin: 0; }
.lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px dashed var(--line-2); font-size: 14.5px; }
.lines dt { color: var(--ink-2); }
.lines dd { margin: 0; font: 400 14px/1.4 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-3); }
.lines b { font-weight: 400; color: var(--ink); font-size: 15px; }
.lines > .total { align-items: baseline; padding-top: 16px; }
.lines > .total dt { color: var(--ink); font-weight: 500; }
.lines > .total b { font: 400 40px/1 var(--serif); letter-spacing: -.03em; color: var(--accent-text); }
.receipt-foot { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* ---------- faq ---------- */
.faq { padding: 120px 0; background: var(--bg-faq); }
.faq-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.faq-head { display: grid; gap: 24px; justify-items: start; }
.faq h2 { font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.faq-links { display: flex; flex-wrap: wrap; gap: 12px; }
.faq-more { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color .2s, border-color .2s; }
.faq-more:hover { color: var(--ink); border-color: var(--ink-3); }
@media (min-width: 1101px) { .faq-head { position: sticky; top: 112px; } .faq-in > div:first-child { align-self: stretch; } }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; transition: color .2s; position: relative; font-family: var(--serif); font-size: 23px; line-height: 1.3; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 300 22px/1 var(--sans); color: var(--ink-3); transition: transform .3s cubic-bezier(.2,.8,.2,1), color .2s, border-color .2s, background .2s; }
.qa summary:hover::after { color: var(--ink); border-color: var(--ink-3); }
.qa details[open] summary::after { transform: rotate(45deg); color: var(--chip-ink); background: var(--chip-bg); border-color: var(--chip-bg); }
.qa details[open] summary { color: var(--ink); }
.qa details p code, .nw { white-space: nowrap; }
.qa details p { padding: 0 56px 28px 0; color: var(--ink-2); max-width: 640px; }

/* ---------- final ---------- */
.final { padding: 120px 0; overflow: hidden; text-align: center; background: radial-gradient(60% 50% at 50% 30%, var(--final-glow), transparent), var(--bg-final); }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final h2 { margin-bottom: 40px; }
.ctas-c { justify-content: center; }
.hint-c { margin-top: 20px; }

/* ---------- footer ---------- */
.foot { background: var(--bg-foot); padding: 56px 0 48px; font-size: 14px; color: var(--ink-3); }
.foot .brand { color: var(--ink); }
.foot-copy { font-size: 13px; color: var(--ink-3); }

/* ---------- legal pages (terms, privacy) ---------- */
.legal { padding: 72px 0 96px; }
.notfound { padding: 96px 0 120px; min-height: 62vh; }
.notfound-in > * { max-width: 640px; }
.notfound-code { font-size: 14px; letter-spacing: .08em; }
.notfound h1 { margin: 0 0 16px; }
.notfound p { margin: 0 0 28px; color: var(--ink-2); }
.notfound .notfound-code { margin-bottom: 8px; }
.legal-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; align-items: start; }
.legal-side { position: sticky; top: 108px; }
.legal .legal-toc { list-style: none; margin: 32px 0 0; padding: 0; display: block; border-top: 1px solid var(--line); }
.legal-toc li { border-bottom: 1px solid var(--line); }
.legal-toc a { display: block; padding: 10px 0; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); }
.legal-body { max-width: 760px; }
.legal-body > h2:first-child { margin-top: 0; }
.legal h2 { scroll-margin-top: 100px; }
.legal h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 56px); line-height: 1.04; letter-spacing: -.026em; margin-bottom: 12px; }
.legal h2 { font-family: var(--serif); font-size: 26px; letter-spacing: -.012em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.legal .muted { font-size: 14px; }
.legal strong { color: var(--ink); font-weight: 500; }


/* ---------- blur reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; filter: blur(10px); transform: translateY(14px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), filter .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; filter: none; transform: none; }
.js .demo { animation: lift 1s .1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes lift { from { opacity: 0; filter: blur(8px); translate: 0 18px; } to { opacity: 1; filter: none; translate: 0 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; gap: 48px; }
  .hero-copy { max-width: 680px; }
  .demo { justify-self: start; max-width: 680px; }
  .connect-in, .pricing-in, .faq-in, .legal-in { grid-template-columns: 1fr; gap: 32px; }
  .mside { gap: 32px; }
  .ms, .mm { gap: 28px; }
  .faq-head { grid-auto-flow: column; align-items: end; justify-content: space-between; width: 100%; }
  .faq-links { justify-content: flex-end; }
  .legal-side { position: static; }
  .spine figcaption { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  /* mobile header: brand, the Tools menu and the Apify button; the page links stay on the desktop */
  .top-in { gap: 16px; }
  .top nav { gap: 0; }
  .top nav > a { display: none; }
  .tools { position: static; }
  .tools > summary { min-height: 44px; padding: 0 6px; }
  .tools-panel { top: 100%; left: var(--gutter); right: var(--gutter); width: auto; }
  .langs .langs-panel { left: auto; right: var(--gutter); width: 220px; }
  .top nav .tools-panel a { padding: 12px; }
  .hero-in { padding-top: 24px; gap: 40px; }
  .lede { font-size: 17px; }
  .ctas .btn { flex: 1 1 auto; }
  .demo { padding: 10px; border-radius: 14px; }
  .vcard img { width: 96px; }
  .vc-t { font-size: 14px; }
  .qchip { font-size: 13.5px; padding: 8px 12px; }
  .pbar { padding-top: 14px; gap: 8px; }
  .term { padding: 10px 10px; }
  .term pre { font-size: 11.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .what, .modes, .connect, .pricing, .faq, .final { padding: 80px 0; }
  .spine { margin-top: 64px; }
  .spine-scroll { overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .spine-scroll::-webkit-scrollbar { display: none; }
  .spine-in { width: calc(20 * 72px + 19 * 3px); }
  .spine-strip { grid-template-columns: repeat(20, 72px); }
  .legend li { grid-template-columns: 24px 1fr; }
  .lg-t { grid-column: 2; }
  .mtabs .mtablist { width: 100%; margin-bottom: 20px; padding: 5px; border-radius: 16px; }
  .mt-thumb { top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 12px; }
  .mtabs .mtablist button { font-size: 15px; padding: 9px 12px; }
  .mt-k { display: none; }
  .js .mstack > .mpanel[inert] { display: none; }
  .mtabs .mtablist button { justify-items: center; text-align: center; min-height: 50px; }
  .mstage { padding: 16px; border-radius: 18px; }
  .mstage img { border-radius: 9px; }
  .mstage .chip { left: 7px; bottom: 7px; font-size: 11.5px; padding: 5px 7px; }
  .mf { --g: 10px; }
  .mf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-ruler { --g: 0px; margin: 4px 4px 20px; }
  .mf-tick b { font-size: 11.5px; }
  .mf-gap { font-size: 10.5px; padding: 4px 6px; }
  .ms, .mm { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ms-q { padding-left: 16px; }
  .ms-q p { font-size: 23px; }
  .ms-next img { width: 72px; }
  .mm-top { gap: 20px; }
  .mm-q { font-size: 12.5px; padding: 10px 14px; }
  .mm-meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; }
  .mm-q { display: flex; }
  .mstage .mm-strip img { height: 34px; }
  .mm-meta .mm-score { font-size: 26px; }
  .mside { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .mode-copy { font-size: 16px; }
  .mcode { padding: 6px 6px 12px; }
  .mc-tabs button { min-height: 40px; padding: 0 14px; }
  .mc-panel { padding: 8px 8px 0; }
  .mc-panel pre { font-size: 12px; }
  .price { padding: 20px; }
  .lines > .total b { font-size: 34px; }
  .faq h2 { font-size: 44px; }
  .qa summary { font-size: 21px; padding: 22px 52px 22px 0; }
  .qa details p { padding-right: 0; }
  .panel-note { padding: 12px 14px 12px 38px; font-size: 14.5px; }
  .panel-note::before { left: 15px; top: 11px; }
  .prices { grid-template-columns: 1fr; gap: 24px; }
  .receipt { padding: 22px; }
  .lines dt { min-width: 0; }
  .tabs { padding: 6px; }
  .tablist { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tablist::-webkit-scrollbar { display: none; }
  .tablist button { flex: none; padding: 9px 11px; font-size: 13.5px; }
  .panel { padding: 18px 14px; }
  .panel .scroll { margin-right: 0; padding-top: 34px; }
  pre { font-size: 12.5px; }

  /* mobile pass: lighter nav, a calmer first screen, 44px tap targets */
  .top-in { height: 60px; }
  .top .btn-sm { height: 40px; white-space: nowrap; }
  .hero-in { padding-top: 20px; gap: 36px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { line-height: 1.04; margin-bottom: 20px; }
  .lede { margin-bottom: 32px; }
  .ctas { flex-direction: column; gap: 4px; }
  .ctas-c { align-self: stretch; }
  .ctas .btn { flex: none; width: 100%; }
  .ctas .btn-primary { height: 52px; }
  .ctas .btn-ghost { height: 44px; font-size: 15px; } /* request 0064: the secondary button keeps its border */
  .hint { margin-top: 10px; text-align: center; }
  .vcard { align-items: flex-start; }
  .vc-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .vc-m { gap: 2px 10px; font-size: 12px; }
  .demo-ask { margin-top: 16px; }
  .qchip { min-height: 44px; }
  .sec-head { margin-bottom: 32px; }
  .tabs .tablist { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 28px; }
  .tablist button { min-height: 44px; }
  .copy { min-height: 36px; padding: 10px 12px; }
  .top .btn-sm { position: relative; }
  .top .btn-sm::after, .copy::after { content: ""; position: absolute; inset: -4px; } /* 44px hit area around 40px and 36px controls */
  .receipt h3 { font-size: 26px; }
  .faq-head { grid-auto-flow: row; justify-items: start; }
  .faq-links { justify-content: flex-start; }
  .legal { padding: 40px 0 72px; }
  .legal h2 { font-size: 24px; line-height: 1.2; margin-top: 36px; }
  .legal .legal-toc { margin-top: 24px; }
  .legal-toc a { padding: 12px 0; }
}

@media (max-width: 500px) {
  /* three languages in the header (request 0017): the mark alone carries the brand, its link keeps the name */
  .top .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .langs .tools-chev { display: none; }
}

@media (max-width: 480px) {
  :root { --gutter: 24px; }
  .top-in { gap: 10px; }
  .top .btn-sm { padding: 0 12px; }
  .lede-full { display: none; }
  .lede-short { display: block; }
  .hero h1 { font-size: clamp(40px, 11.4vw, 46px); }
  .statement { font-size: 29px; line-height: 1.14; }
  .what, .modes, .connect, .pricing, .faq, .final { padding: 72px 0; }
  .mstage { padding: 12px; }
  .mtabs .mtablist button { padding: 9px 10px; }
  .ms-next img { display: none; }
  .vcard { gap: 12px; }
  .vcard img { width: 76px; }
  .vc-m { font-size: 11.5px; }
  .vc-m .mono { font-size: 11.5px; }
  .vc-m > span:last-child { flex-basis: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .receipt { padding: 20px; }
}

/* narrow phones: the header holds the mark, Tools, the language switcher and the Apify button (request 0017) */
@media (max-width: 400px) {
  .top .btn-sm span[aria-hidden="true"], .tools .tools-chev { display: none; }
  .tools > summary { padding: 0 4px; }
}
@media (max-width: 340px) {
  .top-in { gap: 6px; }
  .top .btn-sm { padding: 0 10px; }
  .tools > summary { padding: 0 2px; }
}

/* short phones: keep the answer row of the demo above the fold */
@media (max-width: 480px) and (max-height: 800px) {
  .hero-in { gap: 24px; }
  .lede { margin-bottom: 24px; }
}

/* ---------- scroll motion: a playhead runs through the page ----------
   Decoration only. With reduced motion, without JS or without scroll-driven
   animations the page is exactly the static design above. Only transform,
   opacity and filter move. Scroll-driven animations run on the compositor where
   supported; html.no-sda (set by main.js) drives the same effects from variables. */
@media (prefers-reduced-motion: no-preference) {
  /* hero entrance: the copy settles in line by line */
  .js .hero-copy > :not(h1):not(.lede) { animation: fs-rise .9s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
  .hero-copy > :nth-child(2) { --i: 1; }
  .hero-copy > :nth-child(3), .hero-copy > :nth-child(4) { --i: 2; }
  .hero-copy > :nth-child(5) { --i: 3; }
  .hero-copy > :nth-child(6) { --i: 4; }

  /* page progress: a thin amber progress bar with its playhead under the home nav */
  .js .top-home::before, .js .top-home::after {
    content: ""; position: absolute; left: 0; width: 100%; pointer-events: none;
    opacity: 0; transform: translateX(-100%); transition: opacity .3s;
  }
  .js .top-home::after { bottom: 0; height: 1px; background: linear-gradient(to right, transparent calc(100% - 140px), color-mix(in srgb, var(--accent) 60%, transparent)); }
  .js .top-home::before { bottom: -2px; height: 6px; background: linear-gradient(to left, color-mix(in srgb, var(--accent) 80%, transparent) 0 2px, transparent 2px); }
  .js .top-home.is-scrolled::before, .js .top-home.is-scrolled::after { opacity: 1; }

  /* what: a playhead scrubs the strip and lights each returned frame as it passes */
  .spine-scrub { position: absolute; left: 0; top: 14px; bottom: -14px; width: 100%; pointer-events: none; transform: translateX(-100%); opacity: 0; }
  .spine-scrub::before { content: ""; position: absolute; right: 0; top: 16px; bottom: 14px; width: 96px; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--chip-bg) 24%, transparent)); }
  .spine-scrub::after {
    content: ""; position: absolute; right: -2px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--chip-bg);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg-what) 65%, transparent), 0 0 18px color-mix(in srgb, var(--chip-bg) 55%, transparent);
  }
  .fs-scrub-on .spine-window { opacity: .32; transition: opacity .35s; }
  .fs-scrub-on .spine-window::after {
    content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .6s;
    box-shadow: 0 0 0 4px var(--accent-soft), 0 0 30px -2px color-mix(in srgb, var(--chip-bg) 55%, transparent);
  }
  .fs-scrub-on .spine-window span { transform: scale(.7); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
  .fs-scrub-on .spine-window.is-lit { opacity: 1; }
  .fs-scrub-on .spine-window.is-lit::after { opacity: 1; }
  .fs-scrub-on .spine-window.is-lit span { transform: none; }

  /* staggered reveals: frame thumbnails, prices, legend, code, FAQ */
  .js .reveal-item {
    opacity: 0; transform: translateY(12px); filter: blur(4px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  /* receipt: lines print one after the other, top down */
  .js .lines > .reveal-item { transform: translateY(-6px); filter: none; transition-delay: calc(var(--i, 0) * 170ms + 120ms); }
  .js .reveal-item.is-in { opacity: 1; transform: none; filter: none; }

  /* tabs: Connect panels settle in; Modes cross-fade in place */
  .js .panel, .js .mc-panel { animation: fs-panel .4s cubic-bezier(.2,.7,.2,1) backwards; }
  .js .mstack > .mpanel { transition: opacity .38s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s linear .38s; }
  .js .mstack > .mpanel[inert] { transform: translateY(10px) scale(.995); }
  .js .mstack > .mpanel.is-active { transition-delay: .06s, .06s, 0s; }
  @media (max-width: 720px) { .js .mstack > .mpanel.is-active { animation: fs-panel .4s cubic-bezier(.2,.7,.2,1) backwards; } }
  .qa details[open] p { animation: fs-panel .4s cubic-bezier(.2,.7,.2,1) backwards; }

  /* modes: each output plays in when it is shown (first when the section is seen, then on every switch) */
  .js .mtabs:not(.is-seen) :is(.mf-item, .mf-ruler, .ms-shot, .ms-said, .mm-top, .mm-res) { opacity: 0; }
  .is-seen .is-active .mf-ruler::before { animation: fs-grow .7s cubic-bezier(.65,0,.2,1) backwards; }
  .is-seen .is-active .mf-tick, .is-seen .is-active .mf-gap { animation: fs-fade .45s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--k) * 110ms + 200ms); }
  .is-seen .is-active .mf-item { animation: fs-frame .7s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i) * 70ms + 60ms); }
  .is-seen .is-active .ms-shot { animation: fs-frame .7s cubic-bezier(.2,.7,.2,1) backwards; }
  .is-seen .is-active .ms-q .w { animation: fs-word .5s ease-out backwards; animation-delay: calc(var(--i) * 120ms + 320ms); }
  .is-seen .is-active .ms-fill { animation: fs-grow 1.25s cubic-bezier(.4,0,.2,1) .3s backwards; }
  .is-seen .is-active .mm-q { animation: fs-frame .55s cubic-bezier(.2,.7,.2,1) backwards; }
  .is-seen .is-active .mm-win { animation: fs-grow .7s cubic-bezier(.65,0,.2,1) .35s backwards; }
  .is-seen .is-active .mm-ph { animation: fs-seek .9s cubic-bezier(.2,.7,.2,1) .25s backwards; }
  .is-seen .is-active .mm-res { animation: fs-frame .6s cubic-bezier(.2,.7,.2,1) .35s backwards; }
  .is-seen .is-active .mm-score { display: inline-block; animation: fs-pop .5s cubic-bezier(.3,1.5,.5,1) .75s backwards; }
  @media (hover: hover) and (pointer: fine) {
    .mf-item img, .ms-next img { transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .3s; }
    .mf-item:hover img { transform: translateY(-4px); }
  }

  /* final: the glow rises with the section and keeps breathing; "moment" gets its playhead line */
  .final { position: relative; isolation: isolate; }
  .final::before, .final::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -10%; right: -10%; }
  .final::before { top: 4%; height: 92%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent); }
  .final::after { top: 12%; height: 60%; left: 20%; right: 20%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 9%, transparent), transparent); animation: fs-breathe 5.5s ease-in-out infinite alternate; }
  .js .final h2 em { position: relative; }
  .js .final h2 em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .06em; min-height: 2px; border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s .55s cubic-bezier(.65,0,.2,1);
  }
  .js .final h2.is-in em::after { transform: none; }

  /* compositor path: scroll-driven animations */
  @supports (animation-timeline: scroll()) {
    html:not(.no-sda) .top-home::before, html:not(.no-sda) .top-home::after { animation: fs-progress linear both; animation-timeline: scroll(root); }
    html:not(.no-sda) .spine { view-timeline: --fs-spine block; }
    html:not(.no-sda) .spine-scrub { animation: fs-scrub linear both; animation-timeline: --fs-spine; animation-range: cover 25% cover 65%; }
    html:not(.no-sda) .final { view-timeline: --fs-final block; }
    html:not(.no-sda) .final::before { animation: fs-glow linear both; animation-timeline: --fs-final; animation-range: entry 0% cover 55%; }
  }
  @media (min-width: 1101px) {
    @supports (animation-timeline: scroll()) {
      html:not(.no-sda) .hero-copy { animation: fs-copy linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    }
    .no-sda .hero-copy { transform: translateY(calc(var(--fs-hero, 0) * 10vh)); opacity: calc(1 - max(0, var(--fs-hero, 0) - .35) * 1.25); }
  }
  /* fallback path: the same effects from variables set in a rAF-throttled scroll handler */
  .no-sda .top-home::before, .no-sda .top-home::after { transform: translateX(calc(var(--fs-page, 0) * 100% - 100%)); }
  .no-sda .spine-scrub { transform: translateX(calc(var(--fs-spine, 0) * 100% - 100%)); transition: opacity .3s; }
  .no-sda .is-scrubbing .spine-scrub { opacity: 1; }
  .no-sda .final::before { opacity: var(--fs-final, 1); transform: translateY(calc((1 - var(--fs-final, 1)) * 18%)) scale(calc(.8 + var(--fs-final, 1) * .2)); }

  /* pointer devices: a soft amber spotlight follows the cursor inside cards */
  @media (hover: hover) and (pointer: fine) {
    .spot { position: relative; isolation: isolate; transition: border-color .3s; }
    .spot::after {
      content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
      background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
    }
    .spot:hover { border-color: var(--line-2); }
    .spot:hover::after { opacity: 1; }
  }
}
@keyframes fs-rise { from { opacity: 0; filter: blur(6px); translate: 0 12px; } to { opacity: 1; filter: none; translate: 0 0; } }
@keyframes fs-progress { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes fs-copy { 0% { transform: none; opacity: 1; } 35% { opacity: 1; } 100% { transform: translateY(10vh); opacity: .2; } }
@keyframes fs-scrub { 0% { transform: translateX(-100%); opacity: 0; } 3% { opacity: 1; } 94% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes fs-glow { from { opacity: 0; transform: translateY(18%) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes fs-breathe { from { opacity: .3; transform: scale(.94); } to { opacity: .9; transform: scale(1.04); } }
@keyframes fs-panel { from { opacity: 0; transform: translateY(6px); } }
@keyframes fs-fade { from { opacity: 0; } }
@keyframes fs-grow { from { transform: scaleX(0); } }
@keyframes fs-frame { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes fs-word { from { opacity: .14; } }
@keyframes fs-seek { from { opacity: 0; transform: translateX(-7.5%); } }
@keyframes fs-pop { from { opacity: 0; transform: scale(.6); } }

/* ---------- comparison page (/vs/gemini) ---------- */
.vs { padding: 72px 0 96px; }
.vs-head { max-width: 760px; }
.vs-hero { grid-template-columns: 1fr 1fr; gap: 56px; display: grid; align-items: center; }
.vs-art { display: block; width: 100%; max-width: 560px; height: auto; justify-self: center; overflow: visible; }
.vs-art .a-src { fill: var(--surface); stroke: var(--ink-3); stroke-width: 2; }
.vs-art .a-play { fill: var(--ink-3); }
.vs-art .a-head { fill: var(--accent); }
.vs-art .a-flow { fill: none; stroke-width: 3; stroke-linecap: round; }
.vs-art .a-flow-g { stroke: var(--line-2); stroke-dasharray: 7 9; }
.vs-art .a-flow-f { stroke: var(--accent); stroke-width: 4; }
.vs-art .a-head-g, .vs-art .a-head-f { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vs-art .a-head-g { stroke: var(--line-2); }
.vs-art .a-head-f { stroke: var(--accent); stroke-width: 4; }
.vs-art .a-bubble { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; }
.vs-art .a-line { fill: var(--line-2); }
.vs-art .a-tile { fill: var(--surface); stroke: var(--accent); stroke-width: 2; stroke-opacity: .45; }
.vs-art .a-tile-on { stroke-width: 3; stroke-opacity: 1; }
.vs-art .a-img { fill: var(--line); }
.vs-art .a-shape { fill: var(--line-2); }
.vs-art .a-chip { fill: var(--chip-bg); }
.vs-art .a-chip-g { fill: none; stroke: var(--line-2); stroke-width: 2; }
.vs-art .a-link { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 4; }
.vs-art .a-mono { font-family: var(--mono); font-weight: 500; }
.vs-art .a-ts { font-size: 11px; fill: var(--chip-ink); }
.vs-art .a-ts-g { font-size: 13px; fill: var(--ink-3); }
.vs-art .a-name { font-size: 13px; letter-spacing: .02em; }
.vs-art .a-name-g { fill: var(--ink-3); }
.vs-art .a-name-f { fill: var(--accent-text); }
.vs-art .a-file { font-size: 12px; fill: var(--ink-3); }
@media (max-width: 900px) { .vs-hero { grid-template-columns: 1fr; gap: 36px; } .vs-art { max-width: 460px; justify-self: start; } }
@media (max-width: 599px) { .vs-art { display: none; } }
.vs h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -.026em; text-wrap: balance; margin-bottom: 20px; }
.vs h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); letter-spacing: -.015em; margin: 0 0 20px; scroll-margin-top: 100px; }
.vs h3 { font: 500 17px/1.3 var(--sans); color: var(--ink); margin: 0 0 10px; }
.vs .lede { max-width: 640px; margin-bottom: 24px; }
.vs p, .vs li { color: var(--ink-2); }
.vs a:not(.btn) { color: var(--accent-text); text-underline-offset: 3px; }
.vs strong, .vs b { color: var(--ink); font-weight: 500; }
.vs-verdict { max-width: 640px; border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.vs-sec { margin-top: 72px; }
.vs-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.vs-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.vs-table th, .vs-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.vs-table tbody tr:last-child > * { border-bottom: 0; }
.vs-table thead th { font: 500 13px/1.3 var(--sans); color: var(--ink-3); background: var(--bg-2); }
.vs-table tbody th { font-weight: 500; color: var(--ink); width: 22%; }
.vs-scroll .vs-table { min-width: 640px; }
.vs-math { margin: 18px 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.vs-math td:last-child, .vs-math thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.vs-math tbody th { width: auto; }
.vs-total > * { border-top: 1px solid var(--line-2); }
.vs-intro { margin: 0 0 24px; max-width: 900px; }
.vs-cols.vs-cost { row-gap: 0; }
.vs-col { display: flex; flex-direction: column; }
.vs-col h3 { min-height: 2.6em; display: flex; align-items: flex-end; }
.vs-col .vs-math { margin: 0; height: 100%; }
.vs-cost .vs-math { table-layout: fixed; }
.vs-cost .vs-note { margin-top: 12px; }
.vs-note { font-size: 14px; color: var(--ink-3); margin-top: 14px; max-width: 680px; }
.vs-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 32px; align-items: start; }
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.vs-card ul, .vs-details ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.vs-cols-who { align-items: stretch; }
.vs-cols-who .vs-card { height: 100%; }
.vs-card-pick { border-left: 3px solid var(--accent); }
.vs-cta { margin-top: 32px; }
.vs-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); max-width: 760px; }
.vs-foot p { margin: 0; }
.vs-details { margin-top: 10px; }
.vs-details summary { cursor: pointer; color: var(--ink-2); }
.vs-details ul { margin-top: 8px; font-size: 13px; }
.vs-disc { font-size: 12px; margin-top: 14px; }
.vs-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }  /* request 0100 */
@media (max-width: 900px) { .vs-cols { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 720px) {
  .vs { padding: 40px 0 72px; }
  .vs-sec { margin-top: 56px; }
  .vs-table { font-size: 14.5px; }
  .vs-table th, .vs-table td { padding: 12px 14px; }
  /* the side-by-side table stacks: one block per row, each cell labelled with its column */
  .vs-scroll { overflow: visible; border: 0; background: none; }
  .vs-scroll .vs-table { min-width: 0; }
  .vs-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vs-scroll tr, .vs-scroll tbody, .vs-scroll th, .vs-scroll td { display: block; }
  .vs-scroll tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; padding: 4px 0; }
  .vs-scroll tbody th { width: auto; padding: 12px 14px 4px; border: 0; }
  .vs-scroll td { padding: 8px 14px; border: 0; }
  .vs-scroll td::before { content: attr(data-label); display: block; font: 500 12px/1.3 var(--sans); color: var(--ink-3); margin-bottom: 2px; }
}

/* ---------- actor pages (spec 0015): /youtube-transcript ---------- */
.tool { padding: 72px 0 96px; }
.tool-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.tool-head { max-width: 600px; }
.tool h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -.026em; text-wrap: balance; margin-bottom: 20px; }
.tool h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; margin: 0 0 20px; }
.tool h3 { font: 500 17px/1.3 var(--sans); color: var(--ink); margin: 0 0 8px; }
.tool .lede { max-width: 560px; margin-bottom: 28px; }
.tool p, .tool li { color: var(--ink-2); }
.tool .eyebrow { color: var(--accent-text); }
.tool .hint { color: var(--ink-3); }
.tool a:not(.btn) { color: var(--accent-text); text-underline-offset: 3px; }
.tool-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* the hero price line of every tool page (request 0064): "$X per <event>. <what is not charged>." */
.hero-price { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.hero-price b { font-weight: 600; color: var(--ink); }
.tool-card { margin: 0; min-width: 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px 16px; }
.tool-hero .tool-card { box-shadow: var(--shadow); }
.tool-card figcaption { font: 500 13px/1.3 var(--sans); color: var(--accent-text); margin-bottom: 10px; }
.tool-card pre { font-size: 13px; line-height: 1.65; white-space: pre; overflow-x: auto; }
.tool-card-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.tool-sec { margin-top: 88px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.tool-item p { font-size: 15.5px; }
.tool-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; align-items: stretch; }
.tool-price { align-items: start; }
.tool-price h3 { font: 500 13px/1.3 var(--sans); color: var(--accent-text); margin: 10px 0 14px; }
.tool-big { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 12px; }
.tool .tool-big { color: var(--ink); }
.tool-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.tool-cta { margin-top: 32px; }
.tool-next { padding: 28px 32px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.tool-next h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.tool-next { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; }
.tool-next p { max-width: 640px; }
.tool-next .btn { flex: none; }
.tool .vs-foot { max-width: none; }
@media (max-width: 1100px) { .tool-hero { grid-template-columns: 1fr; gap: 40px; } .tool-hero .tool-card { max-width: 680px; } }
@media (max-width: 900px) { .tool-grid, .tool-cols { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .tool { padding: 40px 0 72px; }
  .tool-sec { margin-top: 64px; }
  .tool-ctas .btn, .tool-cta .btn { width: 100%; }
  .tool-next { flex-direction: column; align-items: stretch; }
  .tool-card { padding: 12px 14px 14px; }
  .tool-card pre { font-size: 12px; }
  .tool-next { padding: 22px; }
}

/* ---------- reduced motion: everything stops ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; filter: none; transform: none; }
}

/* hero demo: one-line video title on wide screens */
@media (min-width: 721px) { .vc-t { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; } }

/* hero illustration: edges fade into the page so its paper tone never shows as a box */
.tool-art { display: block; min-width: 0; }
.tool-art { margin: 0; }
.tool-art img { mix-blend-mode: darken; }
@media (prefers-color-scheme: dark) { .tool-art img { mix-blend-mode: lighten; } }
.tool-art img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect; }
.tool-io .tool-card { display: flex; flex-direction: column; }
.tool-io .tool-card-note { margin-top: auto; }
.tool-io .tool-card > .scroll, .tool-io .fcut-tiles { margin-bottom: 12px; }
.tool-hero:has(.tool-art) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.tool-art { justify-self: center; width: 100%; max-width: 440px; }
@media (max-width: 1100px) { .tool-hero:has(.tool-art) { grid-template-columns: 1fr; } .tool-art { justify-self: center; max-width: 420px; } }
@media (max-width: 720px) { .tool-hero:has(.tool-art) { gap: 28px; } .tool-art { justify-self: center; max-width: 200px; } .tool-art-cap { max-width: 260px; margin-inline: auto; } .tool-ex { margin-top: 28px; } }
.tool-card-wide { grid-column: 1 / -1; }

/* hero facts: price and the no-charge rule as one scannable row */
.tool-round { color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.tool-art-cap { margin-top: 10px; text-align: center; text-wrap: balance; font: 500 13px/1.4 var(--sans); color: var(--ink-3); }
@media (max-width: 720px) { .tool-ctas .btn-ghost { width: 100%; } }

/* output example right under an illustrated hero (youtube-transcript) */
.tool-out { margin-top: 56px; }
@media (max-width: 720px) { .tool-out { margin-top: 28px; } .tool-out pre, #server pre { white-space: pre-wrap; overflow-wrap: anywhere; } }
/* a horizontal-video drawing reads too small at the vertical-video width on phones */
@media (max-width: 720px) { .tool-art.art-wide { max-width: 270px; } .tool-hero:has(.art-wide) { gap: 20px; } }

/* illustrative example right under the hero */
.tool-ex { margin: 56px 0 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: 16px; }
.tool-ex figcaption { font-size: 13.5px; color: var(--ink-3); }
.tool-ex figcaption b { font-weight: 500; color: var(--accent-text); }
/* example output block: frames row on top, transcript below (option C, Emi 2026-10-17) */
.tool-ex { padding: 20px 24px 24px; }
.tool-ex figcaption { margin-bottom: 16px; }
.tool-ex .ex-h { font: 500 13px/1.3 var(--sans); color: var(--ink-2); margin: 0 0 10px; }
.ex-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ex-lines li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.ex-lines time { font: 13px/1.75 var(--mono); color: var(--accent-text); }
.ex-pin { display: inline-block; margin-left: 10px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 12px/1.5 var(--sans); font-style: normal; color: var(--ink-2); vertical-align: 1px; white-space: nowrap; }
.tool-ex img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 380; object-fit: cover; border-radius: 8px; }
.tool-ex li > span b { font-weight: 500; color: var(--ink); }
.tool-ex li > span em { font-style: normal; color: var(--ink-2); }
@media (max-width: 720px) { .tool-ex { padding: 16px 16px 18px; } .ex-lines li { grid-template-columns: 56px 1fr; font-size: 15px; } }

.exc-frames { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.exc-frames li { display: grid; gap: 8px; }
.exc-frames span { font: 13px/1.35 var(--mono); color: var(--ink-2); }
.exc-frames span b { font: 500 13px/1.3 var(--sans); margin-right: 6px; }
.exc-frames img { aspect-ratio: 16 / 9; }
@media (min-width: 901px) { .exc-frames img { aspect-ratio: 2 / 1; } }
.tool-ex figcaption b { display: block; font-size: 15px; margin-bottom: 4px; }
.exc-bar, .exc-ends { display: none; }
/* mobile: the same frames sit on a 0:00 to 0:48 timeline over their 10%, 50% and 90% marks (option B, Emi 2026-10-17) */
@media (max-width: 720px) {
  .exc-track { position: relative; margin: 0 16px 22px; padding-bottom: 28px; }
  .exc-frames { position: relative; display: block; height: 92px; margin: 0; }
  .exc-frames li { position: absolute; top: 0; left: var(--at); width: 76px; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; }
  .exc-frames img { aspect-ratio: 480 / 380; }
  .exc-frames span { font: 12px/1 var(--mono); }
  .exc-frames span b, .exc-frames span em { display: none; }
  .exc-bar { display: block; position: relative; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--line-2); }
  .exc-bar i { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--chip-bg); box-shadow: 0 0 0 3px var(--code-bg); }
  .exc-ends { display: flex; justify-content: space-between; position: absolute; left: -2px; right: -2px; bottom: 0; font: 12.5px/1 var(--mono); color: var(--ink-2); }
  .exc .ex-pin { display: block; width: max-content; margin: 6px 0 0; }
}
.tool-also { padding: 22px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); background: var(--bg-final); }
.tool-also a { color: var(--accent-text); text-underline-offset: 3px; }
@media (max-width: 720px) { .tool-ex { margin-top: 40px; } }

/* mobile code stays readable; long lines scroll inside the card */
@media (max-width: 720px) { .tool-card pre { font-size: 13px; line-height: 1.6; } .tool-card-note { font-size: 14px; } .tool-ex figcaption { font-size: 14px; } }

/* supporting text: one step brighter and larger, so billing and limits never read as fine print */
.tool .hint, .tool .hero-price, .tool-ex figcaption, .tool-art-cap { color: var(--ink-2); }
.tool-card-note, .tool .tool-card-note { color: var(--ink-2); font-size: 14px; }
@media (max-width: 720px) { .tool p, .tool li { font-size: 16px; } .tool-card-note, .tool .hint, .tool .hero-price, .tool-art-cap { font-size: 14.5px; } .tool-card pre { font-size: 13.5px; } }

/* ---------- /instagram-tiktok-transcript (request 0012) ---------- */

/* how it works: numbered steps on the tool-item cards */
.tool-steps { counter-reset: step; }
.tool-steps .tool-item { counter-increment: step; }
.tool-steps .tool-item h3::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font: 500 13px/1 var(--sans); vertical-align: 1px; }

/* where the 3 frames are cut: a track with markers at 10%, 50% and 90% and a 9:16 tile per frame */
.fcut { position: relative; height: 4px; margin: 14px 0 0; border-radius: 4px; background: var(--line-2); }
.fcut i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--chip-bg); box-shadow: 0 0 0 3px var(--code-bg); }
.fcut-tiles { position: relative; height: 128px; margin-top: 14px; }
.fcut-tile { position: absolute; top: 0; width: 72px; aspect-ratio: 9 / 16; transform: translateX(-50%); border-radius: 8px; border: 1px solid var(--line-2); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 8%, var(--surface)) 0 6px, var(--surface) 6px 12px); display: grid; place-items: end center; padding-bottom: 6px; font: 500 12px/1 var(--mono); color: var(--ink-2); }
.fcut, .fcut-tiles { margin-inline: 10px; }
@media (max-width: 720px) { .fcut-tiles { height: 100px; } .fcut-tile { width: 56px; } }
.tool-io { align-items: stretch; }

/* price examples */
.tool-eg { margin: 18px 0 0; display: grid; grid-template-columns: auto auto; justify-content: start; gap: 8px 28px; font-size: 15px; }
.tool-eg dt { color: var(--ink-2); }
.tool-eg dd { margin: 0; color: var(--ink); font-family: var(--mono); font-size: 14px; }

/* FAQ inside a tool page: same .qa list, narrower summaries */
.tool .qa summary { font-size: 21px; padding: 22px 56px 22px 0; }
.tool .qa details p { padding-bottom: 24px; }

/* ---------- home: line-art hero, real output demo right under it ---------- */
/* the hero shows the line illustration; the real output demo opens the page right under it */
.hero:has(.hero-art) { padding-bottom: 24px; }
.hero:has(.hero-art) .hero-in { min-height: 0; padding-top: 64px; }
/* phones: the drawing sits under the copy, as on every tool page (request 0064) */
@media (max-width: 720px) { .hero:has(.hero-art) .hero-in { padding-top: 24px; } }
.try { padding: 8px 0 104px; background: var(--bg-hero); }
.try .demo { margin-inline: auto; }
.try .demo .term { display: block; }
@media (max-width: 720px) { .try { padding-bottom: 72px; } }

/* illustrated heroes: the drawing sits next to the copy, not centered in a wide column */
@media (min-width: 1101px) {
  .tool-hero:has(.tool-art), .hero-in:has(.hero-art) { grid-template-columns: minmax(0, 600px) minmax(0, 540px); justify-content: start; gap: 40px; }
  .tool-hero .tool-art, .hero-in .hero-art { justify-self: start; max-width: 540px; }
}
/* the Frameskim hero title takes the size of every tool page title (request 0064) */
.hero:has(.hero-art) h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -.026em; margin-bottom: 20px; }
.tool-art .tool-art-cap { max-width: 420px; margin-inline: auto; }

/* home demo under the hero: full container width, the frame beside the question, the call below */
@media (min-width: 1101px) {
  .try .demo { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto auto auto auto auto 1fr auto; column-gap: 40px; padding: 28px; }
  .try .demo > .demo-k { grid-area: 2 / 1; }
  .try .demo > .vcard { grid-area: 3 / 1; }
  .try .demo > .demo-ask { grid-area: 4 / 1; }
  .try .demo > .demo-q { grid-area: 5 / 1; }
  .try .demo > .ans { grid-area: 6 / 1; align-self: start; }
  .try .demo > .shot { grid-area: 1 / 2 / 8 / 3; margin: 0; align-self: start; }
  .try .demo > .term { grid-area: 8 / 1 / 9 / 3; margin-top: 20px; }
}

/* ---------- request 0030: which actor for what, on the Toolkit page ---------- */
.tool-sub { max-width: 680px; margin-bottom: 28px; }
.tool-pick .tool-card { display: flex; flex-direction: column; padding: 20px 22px 22px; }
.tool-pick .tool-card h3 { margin-bottom: 14px; }
.tool-pick dl { margin: 0 0 18px; }
.tool-pick dt { font: 500 12px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.tool-pick dt:first-child { margin-top: 0; }
.tool-pick dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.tool-pick .scroll { margin-bottom: 18px; }
.tool-pick .tool-card > .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 720px) { .tool-pick + .hint { text-align: left; } .tool-pick .tool-card { padding: 16px 16px 18px; } .tool-pick .tool-card > .btn { align-self: stretch; } .tool-pick dd { font-size: 16px; } }
/* footer: brand, one column per menu group and More (requests 0037 and 0145) */
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 4fr)); gap: 32px 40px; align-items: start; }
.foot-tag { margin: 12px 0 0; max-width: 30ch; font-size: 14px; line-height: 1.5; color: var(--ink-3); text-wrap: balance; }
.foot-col h2 { font: 500 13px/1.3 var(--sans); color: var(--ink-3); margin: 0 0 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-col a { color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-grid .foot-copy { grid-column: 1 / -1; }
/* light theme: the 13px column titles and copy line reach 4.5:1 on the footer background (5.5:1) */
@media (prefers-color-scheme: light) { .foot { --ink-3: #57534a; } }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.3; }
}

/* ---------- home: the tools catalog (request 0039, from product/screens/home-v3/home-v3.css) ---------- */
/* secondary text: more contrast on the home in both themes (notes under CTAs, In/Out labels, price units) */
.home { --ink-3: #5a564b; }
@media (prefers-color-scheme: dark) { .home { --ink-3: #aaa69a; } }

/* badge of a tool that is not public yet (preview only) */
.soon { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 11.5px/1.5 var(--sans); color: var(--ink-2); vertical-align: 1px; white-space: nowrap; }
h3 .soon { margin-left: 0; vertical-align: 2px; }

/* hero: centered, no code beside it */
.hero-c { padding-bottom: 0; }
.hero-c .hero-in { grid-template-columns: minmax(0, 1fr); justify-items: center; min-height: 0; padding-top: 104px; padding-bottom: 48px; text-align: center; }
.hero-c .hero-copy { max-width: 980px; margin-inline: auto; }
.hero-c h1 { font-size: clamp(48px, 6.6vw, 100px); line-height: 1.02; text-wrap: balance; }
.hero-c .lede { max-width: 680px; margin: 0 auto 34px; font-size: 21px; }
.hero-c .ctas { justify-content: center; }
.hero-c .hint { text-align: center; }
/* the headline highlights its key words in the accent color, nothing else (Emi, 2026-10-25) */
.hero-c .hl { color: var(--accent-text); white-space: nowrap; }

/* pick by input */
.pick { padding: 24px 0 112px; background: var(--bg-hero); }
.pick-k { font: 500 13px/1.3 var(--sans); color: var(--ink-3); margin: 0 0 12px; }
.ptabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; padding: 6px; margin: 0 0 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--code-bg); }
.ptabs button { display: grid; grid-row: span 2; grid-template-rows: subgrid; justify-items: start; align-content: center; row-gap: 4px; min-height: 64px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); cursor: pointer; text-align: left; font: 500 16px/1.2 var(--sans); color: var(--ink-2); }
.ptabs button span { align-self: start; font: 400 12.5px/1.2 var(--mono); color: var(--ink-3); }
.ptabs button:hover { color: var(--ink); border-color: var(--line-2); }
.ptabs button[aria-selected="true"] { color: var(--ink); background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.ptabs button[aria-selected="true"] span { color: var(--accent-text); }
.ptabs button:focus-visible { outline-offset: -2px; border-radius: 13px; }
.ppanel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
/* with JavaScript the panels share one cell (main.js data-tabs=stack): the same height in every tab */
.pstack { display: grid; gap: 20px; }
.js .pstack { gap: 0; }
.js .pstack > .ppanel { grid-area: 1 / 1; }
.js .pstack > .ppanel[inert] { visibility: hidden; opacity: 0; pointer-events: none; }
html:not(.js) .ptabs { display: none; }
.pp-copy { display: grid; gap: 16px; min-width: 0; }
.pp-tool { font: 500 13px/1.3 var(--sans); color: var(--accent-text); }
.pp-copy h2 { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.018em; text-wrap: balance; }
.pp-copy p { color: var(--ink-2); }
.pp-act { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pp-price { font-size: 15px; color: var(--ink-2); }
.pp-price b { font-weight: 600; color: var(--ink); }
.pp-also { padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.pp-also a { color: var(--accent-text); text-underline-offset: 3px; }
.pp-out { display: grid; gap: 14px; min-width: 0; }
.pp-out .shot { background: #000; }
.pp-found { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--term-bg); }
.pp-q { font: 400 19px/1.3 var(--serif); color: var(--ink); }
.pp-a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 14.5px; color: var(--ink-2); }
.pp-a b { font: 500 15px/1 var(--mono); color: var(--accent-text); background: var(--accent-soft); padding: 5px 8px; border-radius: 6px; }
.pp-score { font: 13px/1 var(--mono); color: var(--ink-3); }
.pp-fmts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pp-fmts span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font: 13px/1.4 var(--mono); color: var(--ink-2); }
.pp-file { margin: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--term-bg); font: 13px/1.6 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.pp-pages { list-style: none; margin: 0; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--term-bg); }
.pp-pages li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; }
.pp-pages li + li { border-top: 1px solid var(--line); }
.pg-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chip-bg); color: var(--chip-ink); font: 500 12.5px/1 var(--mono); }
.pg-t { display: grid; gap: 2px; font-size: 15.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.pg-u { font: 13px/1.4 var(--mono); color: var(--ink-3); }
/* the three frame positions of the Toolkit example, as time chips (no images: their origin is not written) */
.pp-frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pp-pos { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--term-bg); }
.pp-pos b { font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.pp-lines { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--term-bg); }
.pp-lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.pp-lines time { font: 13px/1.75 var(--mono); color: var(--accent-text); }
.pp-srt li { grid-template-columns: 72px minmax(0, 1fr); }
.pp-cap { font-size: 13.5px; color: var(--ink-2); }

/* frames strip: 18 frames, one per 10 s, matching the ruler; says it scrolls on phones */
.home .spine-strip { grid-template-columns: repeat(18, 1fr); }
.spine-hint { display: none; }

/* how it works, shared by all tools */
.howto { padding: 88px 0 96px; background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 72%), var(--bg-modes); }
.howto h2 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.howto h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 18px; border-radius: 2px; background: var(--accent); }
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps li { position: relative; counter-increment: step; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
/* dashed amber path from one step to the next, ending in a dot */
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 35px; left: calc(100% + 1px); width: 46px; height: 8px; background: radial-gradient(circle at calc(100% - 4px) 50%, var(--accent) 3.5px, transparent 4px), repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px) left center / calc(100% - 9px) 2px no-repeat; }
.step-ico { position: absolute; top: 19px; right: 20px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); }
.step-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 16px; border-radius: 50%; background: var(--chip-bg); color: var(--chip-ink); font: 500 14px/1 var(--mono); }
.steps h3 { font: 500 18px/1.3 var(--sans); margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15.5px; }

/* compact index of every tool */
.index { padding: 112px 0; background: var(--bg-pricing); }
.index h2 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.trows { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.trows li { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.trows h3 { font: 500 18px/1.35 var(--sans); }
.trows h3 a { text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.trows h3 a:hover { text-decoration-color: var(--accent); }
.trows li:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.trows h3 a:focus-visible { outline: none; }
.trows h3 a::after { content: ""; position: absolute; inset: 0; }
.trows li:hover h3 a { color: var(--accent-text); }
.trows p { color: var(--ink-2); font-size: 15.5px; }
.trows .tr-open { font: 500 15px/1.5 var(--sans); text-align: right; }
.trows .tr-open a { color: var(--accent-text); text-decoration: none; text-underline-offset: 3px; }
.trows li:hover .tr-open a, .trows li:has(h3 a:focus-visible) .tr-open a { text-decoration: underline; }

/* closing title: no short last line */
.home .final h2 { max-width: 19ch; margin-inline: auto; text-wrap: balance; }

@media (max-width: 1100px) {
  .ppanel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .trows li { grid-template-columns: minmax(0, 1fr) auto; }
  .trows .tr-desc { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps li:not(:last-child)::after { top: calc(100% + 1px); left: 35px; width: 8px; height: 30px; background: radial-gradient(circle at 50% calc(100% - 4px), var(--accent) 3.5px, transparent 4px), repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 11px) center top / 2px calc(100% - 9px) no-repeat; }
}
@media (max-width: 720px) {
  .index { padding: 80px 0; }
  .howto { padding: 64px 0 72px; }
  .hero-c .lede { font-size: 18px; }
  .hero-c .hero-in { padding-top: 48px; padding-bottom: 28px; }
  .steps { margin-top: 32px; }
  .pp-srt li { grid-template-columns: 64px minmax(0, 1fr); }
  .pick { padding: 24px 0 80px; }
  .ptabs { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptabs button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ptabs button { min-height: 56px; padding: 8px 12px; font-size: 15px; }
  .pp-act { align-self: stretch; align-items: stretch; }
  .pp-act .pp-price { text-align: center; }
  .ppanel { padding: 18px; border-radius: 18px; }
  .pp-frames { gap: 8px; }
  .pp-lines { padding: 12px; }
  .pp-lines li { grid-template-columns: 44px minmax(0, 1fr); font-size: 14.5px; }
  .trows li { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .trows .tr-open { text-align: left; }
  .spine-hint { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 14px; color: var(--ink-3); }
  .spine-hint span { color: var(--accent-text); }
  .spine-scroll { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
  .home .spine-in { width: calc(18 * 72px + 17 * 3px); }
  .home .spine-strip { grid-template-columns: repeat(18, 72px); }
}
@media (max-width: 480px) {
  .hero-c h1 { font-size: clamp(40px, 12vw, 48px); }
  html:lang(es) .hero-c h1 { font-size: clamp(34px, 10vw, 42px); }
  html:lang(pt-BR) .hero-c h1 { font-size: clamp(30px, 9vw, 40px); } /* longer headline: four lines, not five */
  .hero-c .ctas .btn-ghost:not(.is-done), .home .final .ctas .btn-ghost:not(.is-done) { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
}
@media (max-width: 400px) {
  .ptabs button span { display: none; }
}

/* ---------- tools menu v2 (request 0091): desktop and tablet, a mega menu anchored to the header row ---------- */
.top-in { position: relative; }
.tools:not(.langs) { position: static; }
.tools-x { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.top nav .tools-mega {
  top: calc(100% + 6px); left: auto; right: var(--gutter);
  width: min(736px, 100% - 2 * var(--gutter));
  display: block; padding: 8px;
}
/* Spanish and Portuguese lines are longer: a wider panel keeps most of them on one line */
html:lang(es) .top nav .tools-mega, html:lang(pt-BR) .top nav .tools-mega { width: min(880px, 100% - 2 * var(--gutter)); }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.mega-group { display: grid; align-content: start; gap: 2px; min-width: 0; }
.mega-group + .mega-group { border-left: 1px solid var(--line); padding-left: 8px; }
.mega-k { font: 500 13px/1.3 var(--sans); letter-spacing: .01em; color: var(--ink-3); padding: 10px 12px 6px; }
.top nav .tools-mega .mega-group a { padding: 9px 12px; }
.mega-group b { white-space: nowrap; }
.mega-group span { text-wrap-style: pretty; } /* one line in English from 1024 px; es, pt and tablets may take two */

.mega-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  margin: 8px -8px -8px; padding: 10px 8px 10px; border-top: 1px solid var(--line);
  background: var(--bg-2); border-radius: 0 0 var(--r) var(--r);
}
.top nav .mega-foot .mega-all { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--accent-text); font-weight: 500; font-size: 15px; }
.top nav .mega-foot .mega-all:hover { color: var(--ink); }
.tools-panel .mega-all span, .tools-panel .mega-store span { color: inherit; font-size: inherit; line-height: 1; }
.mega-all span { display: inline-block; transition: transform .2s; }
.mega-all:hover span { transform: translateX(3px); }

.mega-sheet-foot { display: none; }

/* ---------- tools menu v2: phones, a full-screen sheet under the header (request 0091) ---------- */
@media (max-width: 720px) {
  /* the language switcher moves into the sheet; in English the name fits next to the mark again */
  .top nav > .langs { display: none; }
  html:lang(en) .top .brand span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .top nav { margin-left: auto; }
  .tools:not(.langs) > summary { min-height: 44px; padding: 0 10px; gap: 8px; border-radius: 10px; }
  .tools:not(.langs)[open] > summary { background: var(--bg-2); }
  .tools:not(.langs)[open] .tools-chev { display: none; }
  .tools:not(.langs)[open] .tools-x { display: block; }

  /* the blurred header would make the fixed sheet relative to it: drop the blur while open */
  .top:has(.tools[open] > .tools-mega) { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.menu-open { overflow: hidden; } /* nav.js: the page behind the sheet does not scroll */

  /* the sheet: the tool list on top (it scrolls on its own only when it does not fit), language and Apify Store fixed below */
  .top nav .tools-mega {
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0; width: auto;
    display: flex; flex-direction: column; padding: 0; overflow: hidden;
    background: var(--bg); border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none;
  }
  .mega-cols {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    grid-template-columns: 1fr; align-content: start; gap: 0; padding: 4px var(--gutter) 0;
  }
  /* a fade at the bottom of the list while there is more to scroll: it sticks to the bottom edge, and at the end of
     the list it rests on the empty space after the last group, so nothing fades once everything is in view */
  .mega-cols::after {
    content: ""; position: sticky; bottom: 0; height: 40px; margin-top: -40px; pointer-events: none;
    background: linear-gradient(color-mix(in srgb, var(--bg) 0%, transparent), var(--bg));
  }
  .mega-group:last-child { margin-bottom: 40px; }
  .mega-group { gap: 0; }
  .mega-group + .mega-group { border-left: 0; padding-left: 0; margin-top: 4px; }
  .mega-k { padding: 12px 12px 4px; }
  /* names only on phones: one 44 px row per tool */
  .top nav .tools-mega .mega-group a { min-height: 44px; padding: 0 12px; align-content: center; }
  .mega-group b { white-space: normal; font-size: 16px; }
  .mega-group span { display: none; }

  /* "See all tools" stays on the desktop; the sheet already lists every tool */
  .mega-foot { display: none; }

  .mega-sheet-foot { flex: none; display: grid; gap: 14px; padding: 4px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg); }
  .mega-langs .mega-k { padding: 10px 12px 8px; }
  .mega-langs-row { display: flex; gap: 8px; padding: 0 4px; }
  .top nav .mega-langs-row a {
    flex: 1 1 0; display: grid; place-items: center; min-height: 44px; padding: 0 8px;
    border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); font-size: 15px;
  }
  .top nav .mega-langs-row a[aria-current="true"] { background: var(--accent-soft); border-color: var(--accent); font-weight: 500; }
  .top nav .tools-mega .mega-store { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; margin: 0 4px; padding: 0 16px; font-size: 15px; color: var(--ink); }
}
@media (max-width: 400px) {
  /* the chevron hidden above stays on the Tools toggle (the language switcher left the header) */
  .tools:not(.langs) > summary { padding: 0 8px; }
  .tools:not(.langs):not([open]) .tools-chev { display: block; }
}

/* ---------- header fade (request 0091, Emi 2026-11-03): no color at the top of the page, the header color fades in
   over the first 80 px of scroll. The color and its blur live on ::before; --nav-fade (nav.js) drives it where the
   scroll-driven animation is missing or motion is reduced; with no JavaScript and no support it stays opaque ---------- */
.top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: var(--nav-fade, 1);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .top::before { animation: nav-fade linear both; animation-timeline: scroll(root); animation-range: 0 80px; }
  }
}
@keyframes nav-fade { from { opacity: 0; } to { opacity: 1; } }
/* a menu open (Tools panel or sheet, or the language menu): the header is opaque whatever the scroll */
.top:has(details[open])::before, .menu-open .top::before { animation: none; opacity: 1; }
@media (max-width: 720px) {
  /* the phone sheet open: the header takes the sheet's tone, without the blurred band (requirement 9) */
  .top:has(.tools[open] > .tools-mega)::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
