/* ============================================================
   YTMP – YouTube Moderator Panel · Landing site
   Direction: product-performs (seed 1911179453)
   Brand kept: slate dark ground, teal accent, Inter, flat,
   near-square radii (6/4px) like the app.
   House rules: no hairlines outside data-ui fragments, no
   gradients, no shadows at rest, tone steps between surfaces.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ground: #10161c;
  --ground-deep: #0b1015;
  --step-1: #151d24;
  --step-2: #1a222b;
  --step-3: #222c36;
  --ink: #edf1f5;
  --ink-2: #aab5c0;
  --ink-3: #8b95a0;
  --accent: #2bb5a0;
  --accent-2: #37c9b3;
  --accent-ink: #06231d;
  --accent-soft: #12362f;
  --accent-text: #7fe0cf;
  --stage-light: #e8edf1;
  --stage-light-ink: #131a21;
  --stage-teal: #2bb5a0;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(56px, 9vw, 150px);
  --fs-section: clamp(40px, 5vw, 80px);
  --fs-sentence: 28px;
  --fs-body: 17px;
  --fs-ui: 14px;
  --r-frag: 6px;
  --r-ctl: 4px;
  --margin: 28px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Site themes. "Midnight" (dark) is the default above; "Slate" is the light
   variant, switched in the hero chip and stored in localStorage ("ytmp-theme").
   An inline script in each page's <head> applies it before first paint.
   data-ui fragments and the live tour stay dark: they show the app, which
   only has dark themes. The stages around them invert instead. */
:root {
  color-scheme: dark;
  --scrim: rgba(11, 16, 21, .62);
  --danger: #ff8d84;
  --danger-soft: #2a1416;
  --key-ink: #c8f0e7;
}
:root[data-theme="slate"] {
  color-scheme: light;
  --ground: #eef2f5;
  --ground-deep: #e2e8ed;
  --step-1: #e3e9ee;
  --step-2: #d9e1e7;
  --step-3: #c9d3db;
  --ink: #131a21;
  --ink-2: #3a4652;
  --ink-3: #5a6773;
  --accent: #2bb5a0;
  --accent-2: #3cc4af;
  --accent-ink: #06231d;
  --accent-soft: #d2eee8;
  --accent-text: #11695c;
  --stage-light: #10161c;
  --stage-light-ink: #edf1f5;
  --scrim: rgba(238, 242, 245, .8);
  --danger: #b3261e;
  --danger-soft: #f9e1df;
  --key-ink: #0d4f45;
}
/* App fragments keep the Midnight values inside a light page (keep in sync with :root) */
:root[data-theme="slate"] [data-ui] {
  color-scheme: dark;
  --ground: #10161c;
  --ground-deep: #0b1015;
  --step-1: #151d24;
  --step-2: #1a222b;
  --step-3: #222c36;
  --ink: #edf1f5;
  --ink-2: #aab5c0;
  --ink-3: #8b95a0;
  --accent-2: #37c9b3;
  --accent-soft: #12362f;
  --accent-text: #7fe0cf;
  --danger: #ff8d84;
  --danger-soft: #2a1416;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease;
}
img, svg, video { display: block; max-width: 100%; }
/* width/height attributes only reserve the ratio; the CSS width decides */
img { height: auto; }
a { color: var(--ink); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.025em; }
button, input, select { font: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Slim scrollbars, themed to the page */
* { scrollbar-width: thin; scrollbar-color: var(--step-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--step-3);
  border: 3px solid var(--ground);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
::-webkit-scrollbar-corner { background: transparent; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--margin); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  font-weight: 600; font-size: 14px;
  border: 0; border-radius: var(--r-ctl);
  cursor: pointer;
  transition: background-color .15s, transform .1s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--step-2); color: var(--ink); }
.btn-secondary:hover { background: var(--step-3); }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-danger { background: transparent; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }

.tlink { color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.tlink:hover { color: var(--ink); }

/* ---------- Nav (plain bar: wordmark, links, one action) ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--ground);
  transition: background-color .35s ease;
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.brand-mark path { fill: var(--accent); stroke: none; }
.brand-name { font-weight: 700; font-size: 14px; letter-spacing: .05em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 13px; font-size: 14px; color: var(--ink-2); border-radius: var(--r-ctl); }
.nav-links a:hover { color: var(--ink); background: var(--step-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
/* when the page has nav links, they own the auto margin; the actions stay far right */
.nav-links ~ .nav-right { margin-left: 0; }
.nav-right .signin { font-size: 14px; color: var(--ink-2); }
.nav-right .signin:hover { color: var(--ink); }
.nav-right .btn { padding: 10px 18px; font-size: 14px; }
/* six links: tighter between tablet and small desktop */
@media (max-width: 1100px) {
  .nav-inner { gap: 16px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 8px; font-size: 13px; }
  .nav-right { gap: 10px; }
}
@media (max-width: 900px) { .nav-right .btn { padding: 9px 12px; font-size: 13px; } }
@media (max-width: 800px) { .nav-links { display: none; } }

/* ============================================================
   Hero · Controls on the sentence
   The real trailer runs, decent, behind a flat scrim.
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: 15svh; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .3;
  filter: blur(2.5px) saturate(1.15);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--scrim);
  transition: background-color .35s ease;
}
.hero-head {
  position: relative; z-index: 1;
  width: min(1020px, 84%);
  margin: 0 auto;
  text-align: center;
}
.hero-tail { height: 26svh; position: relative; z-index: 1; pointer-events: none; }
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 650;
  font-variation-settings: "wght" 650;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hl { display: block; }
.hl-in { display: block; transition: opacity .16s ease; }
/* Typing (app.js): the untyped rest keeps its space, so nothing shifts while typing */
.tw-rest { visibility: hidden; }
.tw-caret {
  display: inline-block; width: .06em; height: .82em; margin: 0 -.06em 0 .02em;
  vertical-align: -.04em; border-radius: 2px; background: var(--accent);
  animation: twBlink 1s steps(1) infinite;
}
.tw-caret.done { animation: twBlink 1s steps(1) 3, twOut .4s ease 3s forwards; }
@keyframes twBlink { 50% { opacity: 0; } }
@keyframes twOut { to { opacity: 0; } }
/* German headline is longer: a touch smaller so it keeps two lines */
html[lang="de"] .hero-title { font-size: clamp(48px, 7.6vw, 128px); }

.hero-sub {
  max-width: 44ch;
  margin: 108px auto 0;
  color: var(--ink-2);
  font-size: var(--fs-body);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease .5s, transform .6s var(--ease) .5s;
}
.hero.ready .hero-sub { opacity: 1; transform: none; }
.hero-acts {
  display: flex; justify-content: center; gap: 18px; margin-top: 28px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease .62s, transform .6s var(--ease) .62s;
}
.hero.ready .hero-acts { opacity: 1; transform: none; }

/* Chips: real YTMP controls, working on the headline */
.chip {
  position: absolute;
  width: 300px;
  padding: 12px 14px;
  background: var(--step-2);
  border: 1px solid var(--step-3);
  border-radius: var(--r-frag);
  color: var(--ink);
  text-align: left;
  opacity: 0;
  transition: opacity .5s ease .35s, background-color .3s, border-color .3s;
}
.hero.ready .chip { opacity: 1; }
.chip-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.chip-label { font-size: 13px; color: var(--ink-3); }
.chip-read { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Language: a small tab on the left edge of the viewport, two flags as a toggle */
.chip.chip-lang {
  top: 54%; left: calc((100% - 100vw) / 2); width: auto;
  padding: 5px; border-left: 0; border-radius: 0 var(--r-frag) var(--r-frag) 0;
  background: rgba(26, 34, 43, .42);
  border-color: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.seg-lang { flex-direction: column; gap: 3px; padding: 0; background: transparent; border: 0; }
.seg-lang button { display: flex; align-items: center; justify-content: center; padding: 6px 7px; opacity: .5; transition: opacity .15s, background-color .15s; }
.seg-lang button:hover { opacity: .85; }
.seg-lang button.on { opacity: 1; background: rgba(43, 181, 160, .16); box-shadow: inset 0 0 0 1px rgba(43, 181, 160, .45); }
.seg-lang .flag { width: 22px; height: 15px; }
/* theme cycle in the side tab: Dark → Light → System, icons turn into each other */
.chip.chip-lang { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.side-sep { display: block; height: 1px; margin: 3px 6px; background: rgba(255, 255, 255, .08); }
.theme-cycle {
  position: relative; display: grid; place-items: center; height: 27px; padding: 0;
  border: 0; border-radius: 3px; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: color .2s, background-color .2s;
}
.theme-cycle:hover { color: var(--accent-text); background: rgba(43, 181, 160, .1); }
.theme-cycle:active .tc-ico { scale: .86; }
.tc-ico {
  grid-area: 1 / 1; width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: rotate(-90deg) scale(.4);
  transition: opacity .3s ease, transform .5s var(--ease), scale .15s;
}
.tc-ico .tc-fill { fill: currentColor; stroke: none; }
.theme-cycle[data-mode="midnight"] [data-ico="midnight"],
.theme-cycle[data-mode="slate"] [data-ico="slate"],
.theme-cycle[data-mode="system"] [data-ico="system"] { opacity: 1; transform: none; }
/* theme change: the new theme spreads as a circle from the button (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
}
}

/* Segmented control (app convention) */
.seg { display: inline-flex; padding: 2px; background: var(--ground); border: 1px solid var(--step-3); border-radius: var(--r-ctl); }
.seg button {
  padding: 5px 14px; font-size: 13px; font-weight: 600; color: var(--ink-3);
  background: transparent; border: 0; border-radius: 3px; cursor: pointer;
}
.seg button.on { background: var(--accent-soft); color: var(--accent-text); }
/* Flags (same SVGs as the app's language dropdown) */
.flag { display: inline-block; flex: 0 0 auto; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
/* Language switch: until i18n.js has applied German, the page stays hidden (no English flash) */
html.i18n-pending body { visibility: hidden; }

/* Two-state switch (app convention) */
.sw { position: relative; width: 44px; height: 24px; flex: 0 0 auto;
  background: var(--ground); border: 1px solid var(--step-3); border-radius: 14px; cursor: pointer; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink-3); transition: left .18s, background .18s; }
.sw.on::after { left: 23px; background: var(--accent); }

/* Phone hero: chips move off the letters, untilted */
@media (max-width: 720px) {
  .hero { padding-top: 8svh; }
  .hero-head { width: 92%; }
  .hero-sub { margin-top: 44px; font-size: 17px; }
  .chip { position: static; transform: none; width: auto; }
  .chip.chip-lang { flex-direction: row; width: fit-content; margin: 0 auto 12px; border-left: 1px solid rgba(255, 255, 255, .07); border-radius: var(--r-frag); }
  .seg-lang { flex-direction: row; }
  .side-sep { width: 1px; height: auto; margin: 6px 3px; }
  .theme-cycle { width: 36px; height: auto; }
  .hero-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px auto 0; max-width: 480px; }
}

/* ============================================================
   Live tour · 1:1 app clone (window + coach marks: tour.css)
   ============================================================ */
.tour { padding: 14svh 0; }
.tour-head { margin-bottom: 48px; max-width: 760px; }
.tour-head h2 { font-size: 44px; font-weight: 700; }
.tour-head p { color: var(--ink-2); margin-top: 14px; max-width: 56ch; }

/* Hero pop-out control + foreground trailer */
.hero-pop {
  position: absolute; right: var(--margin); bottom: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 20px 7px 7px;
  background: color-mix(in srgb, var(--step-2) 45%, transparent); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0; transform: translateX(36px);
  transition: opacity .35s ease, transform .55s var(--ease), background-color .25s ease, border-color .25s ease;
}
.hero:hover .hero-pop, .hero:focus-within .hero-pop, .hero-pop:focus-visible {
  opacity: 1; transform: none;
}
/* play circle spins in, the triangle follows */
.hero-pop .hero-pop-play { transform: scale(.4) rotate(-120deg); transition: transform .55s var(--ease) .08s; }
.hero-pop .hero-pop-play svg { opacity: 0; transform: translateX(-9px); transition: opacity .3s ease .22s, transform .45s var(--ease) .22s; }
.hero:hover .hero-pop .hero-pop-play, .hero:focus-within .hero-pop .hero-pop-play, .hero-pop:focus-visible .hero-pop-play { transform: none; }
.hero:hover .hero-pop .hero-pop-play svg, .hero:focus-within .hero-pop .hero-pop-play svg, .hero-pop:focus-visible .hero-pop-play svg { opacity: 1; transform: none; }
/* on the button itself: the triangle flies out to the right and back in from the left */
.hero-pop:hover .hero-pop-play svg { animation: playFly .6s var(--ease); }
@keyframes playFly {
  0% { transform: none; opacity: 1; }
  40% { transform: translateX(14px); opacity: 0; }
  41% { transform: translateX(-14px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.hero .hero-pop:hover { background: color-mix(in srgb, var(--step-2) 70%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-1px); }
.hero-pop-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: 0 0 auto;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50%;
}
.hero .hero-pop:hover .hero-pop-play { transform: scale(1.08); }
.hero-pop-play svg { width: 16px; height: 16px; fill: currentColor; }

@media (hover: none) {
  .hero-pop, .hero-pop .hero-pop-play { opacity: 1; transform: none; }
  .hero-pop .hero-pop-play svg { opacity: 1; transform: none; }
}

.vmodal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px); }
.vmodal[hidden] { display: none; }
.vmodal-backdrop { position: absolute; inset: 0; background: rgba(6, 10, 14, .88); opacity: 0; transition: opacity .3s; }
.vmodal-panel { position: relative; width: min(1200px, 100%); margin: 0; opacity: 0; transform: scale(.965); transition: opacity .35s, transform .35s var(--ease); }
.vmodal.open .vmodal-backdrop { opacity: 1; }
.vmodal.open .vmodal-panel { opacity: 1; transform: none; }
.vmodal video { width: 100%; max-height: 78svh; background: #000; }
.vmodal-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.vmodal-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; background: var(--step-2); color: var(--ink); border: 0; border-radius: var(--r-ctl); cursor: pointer; transition: background-color .15s; }
.vmodal-close:hover { background: var(--step-3); }
.vmodal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* License gate dialog for downloads */
.dlgate-panel {
  position: relative; width: min(460px, 100%);
  background: var(--step-1); border-radius: var(--r-frag);
  padding: 28px;
  opacity: 0; transform: scale(.97);
  transition: opacity .3s, transform .3s var(--ease);
}
.vmodal.open .dlgate-panel { opacity: 1; transform: none; }
.dlgate-panel h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.dlgate-panel p { margin: 10px 0 22px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.dlgate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.dlgate-actions .btn { padding: 11px 18px; font-size: 14px; }

/* ============================================================
   Showcase · the URL goes in, the panel comes out
   ============================================================ */
.showcase-head { margin-bottom: 48px; }
.showcase-head h2 { font-size: 44px; font-weight: 700; }
.showcase-head p { color: var(--ink-2); margin-top: 14px; max-width: 56ch; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; }
.sc-in {
  background: var(--ground-deep);
  padding: 18svh 6vw 12svh;
  position: relative;
}
.sc-in input {
  width: 34ch; max-width: 100%;
  background: transparent; border: 0; outline: none;
  color: var(--ink);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  caret-color: var(--accent);
}
.sc-in input::placeholder { color: var(--ink-3); }
.sc-hint { margin-top: 14px; color: var(--ink-3); font-size: 14px; max-width: 40ch; }
.sc-out {
  background: var(--stage-light);
  color: var(--stage-light-ink);
  padding: 18svh 6vw 12svh;
  display: flex; flex-direction: column; align-items: flex-start;
}
/* Showcase headings: one per field, same baseline across the seam */
.sc-in, .sc-out { position: relative; }
.sc-h {
  position: absolute; bottom: 7svh;
  margin: 0;
  font-size: clamp(34px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
}
.sc-h-a { left: 6vw; color: var(--ink); }
.sc-h-b { right: 6vw; color: var(--stage-light-ink); }
@media (max-width: 800px) {
  .sc-in, .sc-out { padding-bottom: 22svh; }
  .sc-h { font-size: 34px; bottom: 8svh; }
  .sc-h-a { left: var(--margin); }
  /* clear the floating back-to-top control's corner */
  .sc-h-b { right: 84px; }
}
@media (max-width: 800px) {
  .showcase { grid-template-columns: 1fr; }
  .sc-in, .sc-out { min-height: 62svh; padding-top: 14svh; }
}

/* ============================================================
   data-ui fragments · the product's own conventions apply
   (1px control borders, small radii, true sizes)
   ============================================================ */
[data-ui] {
  background: var(--f-bg, #1a222b);
  border: 1px solid var(--f-line, #2b3642);
  border-radius: var(--r-frag);
  color: var(--f-ink, #dfe6ec);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
[data-ui] button { cursor: pointer; }
[data-ui] .p-head { display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: var(--f-ink); }
[data-ui] .p-count { padding: 2px 9px; border-radius: 3px;
  background: var(--f-soft, #12362f); color: var(--f-accent-text, #7fe0cf);
  font-weight: 700; font-size: 13px; }
[data-ui] .p-row { display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 14px; }
[data-ui] .p-row + .p-row { border-top: 1px solid var(--f-line, #2b3642); }
[data-ui] .p-av { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #0b1310; }
[data-ui] .p-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--f-ink); }
[data-ui] .p-sub { color: var(--f-accent, #2bb5a0); font-size: 13px; margin-left: 3px; }
[data-ui] .p-greet { margin-left: auto; padding: 4px 12px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--f-accent, #2bb5a0); border-radius: 3px;
  background: transparent; color: var(--f-accent-text, #7fe0cf);
  transition: background-color .15s; }
[data-ui] .p-greet:hover { background: var(--f-soft, #12362f); }
[data-ui] .p-greet.done { border-color: var(--f-line, #2b3642); color: var(--f-dim, #8b95a0); }
[data-ui] .p-line { padding: 8px 16px; font-size: 14px; color: var(--f-dim, #8b95a0); }
[data-ui] .p-line strong { color: var(--f-accent-text, #7fe0cf); font-weight: 600; }
[data-ui] .p-bar { display: flex; gap: 14px; align-items: center;
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  border-top: 1px solid var(--f-line, #2b3642);
  color: var(--f-dim, #8b95a0); }
[data-ui] .p-live { display: inline-flex; align-items: center; gap: 6px; color: var(--f-accent-text, #7fe0cf); }
[data-ui] .p-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--f-accent, #2bb5a0); }
[data-ui] .p-bar .right { margin-left: auto; }
[data-ui] .p-msgs .p-row:hover { background: var(--f-hover, #202a33); }
[data-ui] .p-msg { padding: 8px 16px; font-size: 14px; }
[data-ui] .p-msg + .p-msg { border-top: 1px solid var(--f-line, #2b3642); }
[data-ui] .p-who { font-weight: 600; margin-right: 7px; }
[data-ui] .p-who.c1 { color: #7fc8e8; } [data-ui] .p-who.c2 { color: #e8b47f; }
[data-ui] .p-who.c3 { color: #9fe87a; } [data-ui] .p-who.c4 { color: #c89fe8; }
[data-ui] .p-txt { color: var(--f-ink); }
[data-ui] .p-txt.sys { color: var(--f-dim, #8b95a0); font-style: italic; }
[data-ui] .p-field { display: flex; gap: 8px; padding: 12px 16px; }
[data-ui] .p-field input { flex: 1; min-width: 0; padding: 8px 10px; font-size: .9em;
  background: var(--f-deep, #10161c); color: var(--f-ink); font-size: 14px;
  border: 1px solid var(--f-line, #2b3642); border-radius: 4px; outline: none; }
[data-ui] .p-field input:focus { border-color: var(--f-accent, #2bb5a0); }
[data-ui] .p-btn { padding: 8px 14px; font-size: 13px; font-weight: 700;
  background: var(--f-accent, #2bb5a0); color: #06231d; border: 0; border-radius: 4px; }
[data-ui] .p-title { padding: 0 16px 10px; font-size: 1em; font-weight: 700; color: var(--f-ink); }
[data-ui] .p-subline { padding: 0 16px 12px; font-size: 13px; color: var(--f-dim, #8b95a0); }

.av1 { background: #74d6b8; } .av2 { background: #8db4e8; } .av3 { background: #e8c37a; }
.av4 { background: #e89aac; } .av5 { background: #9fe87a; } .av6 { background: #b49fe8; }

/* ============================================================
   Features · pinned output, live controls
   ============================================================ */
.features { display: grid; grid-template-columns: 1fr 1fr; }
.feat-stage {
  position: sticky; top: 0; height: 100svh;
  background: var(--stage-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.feat-stage [data-ui] { width: 420px; max-width: 88vw; }
.feat-col { padding: 12svh 6vw 16svh; max-width: 620px; margin-left: auto; }
.feat-heading { font-size: clamp(34px, 3.4vw, 44px); font-weight: 700; margin-bottom: 6svh; }
.feat-block { margin-bottom: 26svh; }
.feat-block:last-child { margin-bottom: 0; }
.feat-block h3 { font-size: var(--fs-sentence); font-weight: 650; letter-spacing: -0.01em; margin-bottom: 12px; }
.feat-block p { color: var(--ink-2); max-width: 44ch; margin-bottom: 18px; }
.feat-ctl { padding: 14px 16px; }
.feat-ctl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.feat-ctl-label { font-size: 13px; color: var(--f-dim, #8b95a0); }
@media (max-width: 880px) {
  .features { display: block; }
  .feat-stage { position: sticky; top: 64px; height: 42svh; align-items: flex-start; padding-top: 16px; z-index: 1; }
  .feat-stage [data-ui] { width: min(420px, 92vw); }
  .feat-col { margin: 0; padding: 0; max-width: none; }
  /* Text scrolls over the pinned field on its own ground, never under it */
  .feat-col > * { position: relative; z-index: 2; background: var(--ground); padding: 24px var(--margin); }
  .feat-heading { padding-top: 10svh; padding-bottom: 24px; margin: 0; }
  .feat-block { margin: 0 0 10svh; }
  .feat-block:last-child { margin-bottom: 10svh; }
}

/* ============================================================
   Pricing · kept per user (tone steps instead of borders)
   ============================================================ */
.pricing { padding: 14svh 0; }
.pricing-head { max-width: 640px; margin-bottom: 56px; }
.pricing-head h2 { font-size: 44px; font-weight: 700; }
.pricing-head p { color: var(--ink-2); margin-top: 14px; max-width: 52ch; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.pricing-grid.single { grid-template-columns: minmax(0, 560px); }
.price-card {
  position: relative;
  background: var(--step-1);
  border-radius: var(--r-frag);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: background-color .2s;
}
.price-card.featured { background: var(--accent-soft); }
.price-tag {
  position: absolute; top: 0; right: 24px;
  padding: 4px 12px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 700;
  border-radius: 0 0 3px 3px;
}
.price-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.price-card h3 { font-size: 17px; font-weight: 700; }
.price-card .price { display: flex; align-items: baseline; gap: 10px; }
.price-card .price .amount { font-size: 44px; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-card .price .per { color: var(--ink-3); font-size: 14px; }
.price-card .desc { color: var(--ink-2); font-size: 14px; margin-bottom: 20px; }
.card-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.card-note-ico { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; fill: none; stroke: var(--accent-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.price-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.price-list li::before { content: "✓"; color: var(--accent-text); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.price-note { margin-top: 24px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* Sales switch (assets/site-config.js → <html data-sales>): only the matching state shows.
   Without JS the attribute is missing and the "open" markup stays visible. */
html[data-sales="closed"] [data-when-sales="open"],
html:not([data-sales="closed"]) [data-when-sales="closed"] { display: none !important; }

/* Waitlist form in the pricing card (while sales are closed) */
.waitlist { margin-top: auto; scroll-margin-top: 110px; }
.waitlist-lead { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.waitlist-lead strong { color: var(--ink); font-weight: 650; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist-row input {
  flex: 1; min-width: 0;
  background: var(--ground-deep); color: var(--ink);
  border: 1px solid var(--step-3); border-radius: var(--r-ctl);
  padding: 12px 13px; font-size: 14px; outline: none;
  transition: border-color .15s;
}
.waitlist-row input:focus { border-color: var(--accent); }
.waitlist-row input::placeholder { color: var(--ink-3); }
.waitlist-row input[aria-invalid="true"] { border-color: var(--danger); }
.price-card .waitlist .btn { margin-top: 0; flex: 0 0 auto; }
.waitlist .form-msg { margin-top: 10px; min-height: 0; }
.waitlist .form-msg:empty { display: none; }
.waitlist-fine { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.waitlist.done .waitlist-row { display: none; }
@media (max-width: 480px) {
  .waitlist-row { flex-direction: column; }
  .price-card .waitlist .btn { width: 100%; }
}
@media (max-width: 560px) {
  /* keep the amount on top so the name never reads as a label above it */
  .price-top { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
}
@media (max-width: 780px) { .pricing-grid { grid-template-columns: 1fr; } }

/* License loop: the app's license panel next to the card, playing its
   promises (activate → devices → updates included → beta). Driven by
   app.js; the static markup is the end state (no JS, reduced motion). */
.pricing-grid.with-stage { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); }
.lic-stage {
  background: var(--ground-deep);
  border-radius: var(--r-frag);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 28px;
  min-width: 0;
}
.lic { width: 400px; max-width: 100%; overflow: hidden; transition: opacity .4s ease, background-color .25s, border-color .25s; }
.lic.fade { opacity: .25; }
.lic .p-head { display: flex; align-items: center; justify-content: space-between; }
.lic-chip {
  padding: 2px 9px; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  border: 1px solid var(--f-line, #2b3642); color: var(--f-dim, #8b95a0);
  transition: background-color .3s, color .3s, border-color .3s;
}
.lic-chip.on { background: var(--f-accent, #2bb5a0); border-color: var(--f-accent, #2bb5a0); color: #06231d; }
.lic-key { display: flex; gap: 8px; padding: 12px 16px; }
.lic-input {
  flex: 1; min-width: 0; padding: 7px 10px;
  font: 500 13px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden;
  background: var(--f-deep, #10161c); color: var(--f-ink, #dfe6ec);
  border: 1px solid var(--f-line, #2b3642); border-radius: var(--r-ctl);
  transition: border-color .2s;
}
.lic-input.focus { border-color: var(--f-accent, #2bb5a0); }
.lic-input.empty { color: var(--f-dim, #8b95a0); font-family: var(--font); letter-spacing: 0; }
.lic-input.focus:not(.empty)::after {
  content: ""; display: inline-block; width: 1px; height: 1.05em; margin-left: 1px;
  background: var(--f-accent-text, #7fe0cf); vertical-align: -2px;
  animation: lic-caret 1s steps(1) infinite;
}
@keyframes lic-caret { 50% { opacity: 0; } }
.lic-btn {
  flex: 0 0 auto; padding: 7px 14px; border-radius: var(--r-ctl);
  font-size: 13px; font-weight: 700;
  background: var(--f-accent, #2bb5a0); color: #06231d;
  transition: background-color .2s, color .2s, transform .12s, opacity .2s;
}
.lic-btn.idle { opacity: .45; }
.lic-btn.press { transform: scale(.95); }
.lic-btn.done { background: var(--f-soft, #12362f); color: var(--f-accent-text, #7fe0cf); }
.lic-sec {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px 6px; border-top: 1px solid var(--f-line, #2b3642);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--f-dim, #8b95a0);
}
.lic-count { text-transform: none; letter-spacing: 0; font-weight: 600; }
.lic-devs { padding: 0 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.lic-dev {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: 13px; color: var(--f-ink, #dfe6ec);
  transition: opacity .35s ease, transform .35s var(--ease);
}
.lic-dev svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--f-accent-text, #7fe0cf); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lic-dev.free { color: var(--f-dim, #8b95a0); }
.lic-dev.free svg { stroke: var(--f-dim, #8b95a0); }
.lic-dev.off { opacity: 0; transform: translateX(-8px); }
.lic-tag { margin-left: auto; font-size: 12px; color: var(--f-accent-text, #7fe0cf); }
.lic-seg { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--f-line, #2b3642); border-radius: var(--r-ctl); text-transform: none; letter-spacing: 0; }
.lic-seg span { padding: 2px 10px; border-radius: 2px; font-size: 12px; transition: background-color .2s, color .2s; }
.lic-seg span.on { background: var(--f-soft, #12362f); color: var(--f-accent-text, #7fe0cf); }
.lic-upd { padding: 4px 16px 14px; }
.lic-upd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lic-ver { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--f-ink, #dfe6ec); }
.lic-ver.tick { animation: lic-tick .45s var(--ease); }
@keyframes lic-tick { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lic-state { font-size: 13px; color: var(--f-dim, #8b95a0); }
.lic-state.ok { color: var(--f-accent-text, #7fe0cf); font-weight: 600; }
.lic-prog { height: 4px; border-radius: 2px; background: var(--f-deep, #10161c); overflow: hidden; }
.lic-prog i { display: block; height: 100%; width: 100%; background: var(--f-accent, #2bb5a0); }
@media (max-width: 880px) {
  .pricing-grid.with-stage { grid-template-columns: 1fr; }
  .lic-stage { padding: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lic, .lic-dev, .lic-btn, .lic-chip { transition: none; }
  .lic-ver.tick, .lic-input.focus:not(.empty)::after { animation: none; }
}

/* ============================================================
   Download
   ============================================================ */
.download { padding: 4svh 0 14svh; }
.download-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.download-grid h2 { font-size: var(--fs-sentence); font-weight: 650; }
.download-grid p { color: var(--ink-2); margin: 14px 0 22px; max-width: 48ch; }
.download-acts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.download-grid .download-gate { margin: 16px 0 0; color: var(--ink-2); font-size: 14px; max-width: none; }
.download-gate a { color: var(--accent-text); }
.download-gate strong { color: var(--ink); font-weight: 600; }
.download-grid .download-meta { margin: 8px 0 0; color: var(--ink-3); font-size: 13px; max-width: none; }
.download-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.download-shot figcaption { margin-top: 8px; color: var(--ink-3); font-size: 13px; }
@media (max-width: 880px) { .download-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   Roadmap · short version as a timeline (full page: roadmap.html)
   ============================================================ */
.rm-short { padding: 4svh 0 14svh; }
.rm-short-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.rm-short-head { position: sticky; top: 110px; }
.rm-short-head h2 { font-size: 44px; font-weight: 700; line-height: 1.12; }
.rm-short-head p { color: var(--ink-2); margin: 14px 0 22px; max-width: 46ch; }
.rm-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-size: 15px; font-weight: 600; }
.rm-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.rm-link:hover svg { transform: translateX(3px); }
.rm-tl { list-style: none; margin: 0; padding: 0; }
.rm-tl li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 18px; padding-bottom: 34px; }
.rm-tl li:last-child { padding-bottom: 0; }
/* connector to the next item: bright while shipped, dim from "next" on */
.rm-tl li::before { content: ""; position: absolute; left: 13px; top: 34px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--ink); }
.rm-tl li:last-child::before { display: none; }
.rm-tl li.wip::before, .rm-tl li.next::before, .rm-tl li.later::before { background: var(--step-3); }
.rm-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ground); }
.rm-dot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* in development: accent ring with a soft pulse */
.rm-tl li.wip .rm-dot { position: relative; background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rm-tl li.wip .rm-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: rmPulse 2.4s ease-out infinite; }
@keyframes rmPulse { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.rm-tl li.wip .rm-when { color: var(--accent-text); }
.rm-tl li.next .rm-dot { background: var(--step-3); color: var(--ink); }
.rm-tl li.later .rm-dot { background: var(--step-2); color: var(--ink-3); }
.rm-tl h3 { margin-top: 3px; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.rm-tl p { margin-top: 4px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.rm-when { display: block; margin-top: 8px; color: var(--ink-3); font-size: 13px; }
.rm-tl li.later h3 { color: var(--ink-2); }
@media (max-width: 880px) {
  .rm-short-grid { grid-template-columns: 1fr; gap: 36px; }
  .rm-short-head { position: static; }
  .rm-short-head h2 { font-size: 34px; }
}

/* ============================================================
   FAQ · collapsible
   ============================================================ */
.faq { padding: 10svh 0 14svh; max-width: 1020px; margin: 0 auto; }
.faq-head h2 { font-size: 44px; font-weight: 700; margin-bottom: 44px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--step-1); border-radius: var(--r-frag); transition: background-color .25s; }
.faq-item.open { background: var(--step-2); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; padding: 19px 22px;
  background: transparent; border: 0; border-radius: var(--r-frag);
  font-size: 17px; font-weight: 600; color: var(--ink); text-align: left;
  cursor: pointer;
}
.faq-q:hover { color: var(--accent-text); }
.faq-x { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px;
  background: var(--ink-3); border-radius: 1px;
  transition: transform .3s var(--ease);
}
.faq-x::after { transform: rotate(90deg); }
.faq-item.open .faq-x::after { transform: rotate(0deg); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-body-in { overflow: hidden; }
.faq-body p { padding: 0 22px 22px; color: var(--ink-2); max-width: 64ch; }
.faq-body a { color: var(--accent-text); }

/* ============================================================
   Footer · the name returns at full width
   ============================================================ */
.footer { padding: 8svh 0 96px; background: var(--ground); }
.footer-mark {
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 800; letter-spacing: -0.045em; line-height: .85;
  color: var(--ink);
  margin: 0 0 40px -0.04em;
  user-select: none;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; }
.footer-row a { color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.footer-row a:hover { color: var(--ink); }
.footer-note { margin-top: 18px; color: var(--ink-3); font-size: 13px; max-width: 90ch; }
.footer-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-note a:hover { color: var(--ink); }

/* ============================================================
   Roadmap page
   ============================================================ */
.roadmap { max-width: 1120px; padding: 12svh 24px 16svh; }
.roadmap-head h1 { font-size: clamp(56px, 9vw, 130px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.02; }
.roadmap-head p { color: var(--ink); margin-top: 18px; }
.rm-wide { margin: 48px 0 0; }
.rm-wide video { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.rm-wide figcaption, .rm-duo figcaption { margin-top: 8px; color: var(--ink); font-size: 16px; }
.rm-duo { margin: 56px 0 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.rm-duo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rm-duo figcaption { grid-column: 1 / -1; }
.rm-frag { margin-top: 20px; }
.roadmap-group { margin-top: 20px; background: var(--step-1); border-radius: var(--r-frag); padding: 26px 30px 30px; }
.roadmap-group h2 { font-size: 17px; font-weight: 700; color: var(--ink); }
.roadmap-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.roadmap-list li { display: flex; gap: 16px; align-items: flex-start; }
.roadmap-list .t { display: block; font-size: 28px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.roadmap-list .s { display: block; color: var(--ink); font-size: 17px; margin-top: 6px; }
.roadmap-note { margin-top: 56px; color: var(--ink); font-size: 16px; max-width: 64ch; }
@media (max-width: 640px) {
  .rm-duo { grid-template-columns: 1fr; }
  .roadmap-list .t { font-size: 24px; }
}

/* ============================================================
   Legal pages (terms, privacy)
   ============================================================ */
.legal { max-width: 1000px; padding: 12svh 24px 16svh; }
.legal-head h1 { font-size: clamp(56px, 9vw, 130px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.02; }
.legal-head p { color: var(--ink); margin-top: 18px; margin-bottom: 56px; }
.legal-group { margin-top: 20px; background: var(--step-1); border-radius: var(--r-frag); padding: 26px 30px 28px; }
.legal-group h2 { font-size: 17px; font-weight: 700; color: var(--ink); }
.legal-group p { margin-top: 12px; font-size: 17px; line-height: 1.6; }
.legal-frag { margin-top: 18px; width: min(400px, 100%); }
.legal-frag-cap { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.legal-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legal-list li { display: flex; gap: 12px; font-size: 17px; line-height: 1.6; }
.legal-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex: 0 0 auto; }
.legal-contact { margin-top: 20px; }
.legal-contact a { color: var(--accent-text); }
.legal-nav { margin-top: 64px; }
.legal-nav a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   Consent sheet (cookies & storage)
   ============================================================ */
.consent {
  position: fixed; left: 22px; bottom: 22px; z-index: 70;
  width: min(420px, calc(100vw - 44px));
  background: var(--step-1);
  border-radius: var(--r-frag);
  padding: 20px 22px;
  box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(14px);
  transition: opacity .3s, transform .3s var(--ease);
  pointer-events: none;
}
.consent.show { opacity: 1; transform: none; pointer-events: auto; }
.consent h2 { font-size: 17px; font-weight: 700; }
.consent p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.consent p a { color: var(--accent-text); }
.consent-settings { display: none; }
.consent.customize .consent-settings { display: block; }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0 0; }
.consent-label { font-size: 14px; font-weight: 600; }
.consent-state { font-size: 13px; color: var(--ink-3); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.consent-actions .btn { padding: 9px 16px; font-size: 14px; }
.consent-link { background: none; border: 0; padding: 8px 2px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.consent-link:hover { color: var(--ink); }
.consent .sw[aria-disabled="true"] { opacity: .5; cursor: default; }
@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
}
body.consent-open .to-top { display: none; }

/* ============================================================
   Back to top
   ============================================================ */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px;
  border: 0; border-radius: var(--r-ctl);
  background: var(--ink); color: var(--ground-deep);
  cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease), background-color .15s, color .15s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); }
.to-top svg { width: 20px; height: 20px; margin: 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   Motion layer
   ============================================================ */
[data-enter] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s var(--ease); transition-delay: var(--d, 0s); }
[data-enter].in { opacity: 1; transform: none; }
[data-ui] { transition: background-color .25s, border-color .25s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hl-in { transform: none; transition: none; }
  .hero-sub, .hero-acts, .chip { opacity: 1; transform: none; transition: none; }
  [data-enter] { opacity: 1; transform: none; transition: none; }
  .frag-state.on { animation: none; }
  .hero-pop, .vmodal-panel, .vmodal-backdrop { transition: none; }
  .hero-pop, .hero-pop .hero-pop-play, .hero-pop .hero-pop-play svg { transform: none; transition: none; animation: none; }
  .hero-pop .hero-pop-play svg { opacity: 1; }
  .tc-ico { transition: opacity .2s; }
  .tw-caret { display: none; }
  .rm-tl li.wip .rm-dot::after { animation: none; }
  video { display: none; }
  .vmodal video { display: block; }
}

/* ============================================================
   Auth / checkout pages (real forms keep their lines)
   ============================================================ */
.auth-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--margin); height: 64px; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; background: var(--step-1); border-radius: var(--r-frag); padding: 32px; }
.auth-card.wide { max-width: 500px; }
.auth-card h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.auth-card .auth-sub { color: var(--ink-2); font-size: 14px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  background: var(--ground-deep); color: var(--ink);
  border: 1px solid var(--step-3); border-radius: var(--r-ctl);
  padding: 12px 13px; font-size: 14px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input::placeholder { color: var(--ink-3); }
.field-hint { font-size: 13px; color: var(--ink-3); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.form-msg { margin-top: 14px; font-size: 13px; min-height: 1em; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--accent-text); }
.auth-alt { margin-top: 22px; text-align: center; font-size: 14px; color: var(--ink-3); }
.auth-alt a { color: var(--accent-text); }
.portal-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; background: var(--ground-deep); border-radius: var(--r-ctl); font-size: 13px; color: var(--ink-3); text-align: left; }
.portal-note .note-ico { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: var(--accent-text); stroke-width: 1.7; stroke-linecap: round; }
.portal-note strong { color: var(--ink-2); font-weight: 600; }

/* Icons inside auth fields and buttons */
.auth-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.auth-head h1 { margin: 0; }
.auth-mark { width: 40px; height: 40px; }
.input-ico { position: relative; }
.input-ico .ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px;
  fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none; transition: stroke .15s;
}
.input-ico input { width: 100%; padding-left: 40px; }
.input-ico:focus-within .ico { stroke: var(--accent-text); }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: transparent; border: 0; border-radius: var(--r-ctl);
  color: var(--ink-3); cursor: pointer;
  transition: color .15s, background-color .15s;
}
.pw-toggle:hover { color: var(--ink); background: var(--step-2); }
.pw-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .eye-off { display: none; }
.pw-toggle.on .eye { display: none; }
.pw-toggle.on .eye-off { display: block; }
.btn .btn-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.account-panel { text-align: center; }
.account-panel h1 { font-size: 28px; margin-bottom: 4px; }
.account-panel .signed-in-as { color: var(--ink-2); font-size: 14px; margin-bottom: 24px; }
.license-box { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 17px; margin-bottom: 24px; background: var(--accent-soft); border-radius: var(--r-ctl); }
.license-box .lbl { font-size: 13px; color: var(--accent-text); text-transform: none; letter-spacing: .02em; font-weight: 600; }
.license-box .key { font-size: 14px; font-weight: 700; color: var(--key-ink); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.account-actions { display: flex; flex-direction: column; gap: 10px; }
.account-hint { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* Checkout */
.checkout-main { flex: 1; padding: 48px 24px 64px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; max-width: 1060px; margin: 0 auto; align-items: start; }
.checkout-card { background: var(--step-1); border-radius: var(--r-frag); padding: 26px; }
.checkout-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.cart-line + .cart-line { border-top: 1px solid var(--step-3); }
.cart-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto;
  background: var(--ground-deep); border-radius: var(--r-ctl); color: var(--accent-text); }
.cart-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-line .t { font-weight: 600; font-size: 14px; }
.cart-line .s { font-size: 13px; color: var(--ink-3); }
.cart-line .p { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-total { display: flex; justify-content: space-between; padding: 16px 0 4px; font-size: 15px; color: var(--ink-2); }
.cart-total .grand { font-size: 17px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-includes { margin-top: 14px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.secure-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 16px; color: var(--ink-3); font-size: 13px; }
.secure-line svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pay-head .method { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.card-brand { display: flex; gap: 6px; }
.card-brand span { padding: 3px 8px; background: var(--ground-deep); border-radius: 3px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.stripe-note { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 14px; }
.stripe-note .s-name { font-weight: 700; color: var(--ink-2); }
.checkout-lede { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.checkout-lede strong { color: var(--ink); }
.checkout-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.checkout-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-2); }
.checkout-list li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px;
  border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}
.checkout-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); line-height: 1.6; text-align: center; }
.checkout-note a { color: var(--accent-text); }
.success-card { text-align: center; }
.success-check { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.success-check svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.success-card h1 { font-size: 28px; margin-bottom: 8px; }
.success-card .sub { color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }
.success-account { text-align: left; margin-bottom: 22px; background: var(--ground-deep); border-radius: var(--r-ctl); padding: 17px; }
.success-account .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.success-account .row .k { color: var(--ink-3); }
.success-account .row .v { font-weight: 600; text-align: right; }
@media (max-width: 760px) { .checkout-grid { grid-template-columns: 1fr; } }
