/* EntroPilot website – v2 design.
   Dark (OLED-like) platform look, mint accent, restrained glass cards.
   Fonts are self-hosted (SIL OFL, see assets/fonts/OFL-*.txt). No external requests. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Space Grotesk Variable"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk Variable"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url("fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Theme tokens ----------
   :root = light (default for every first-time visitor), .dark on <html> = dark platform look.
   Light palette mirrors apps/web (cream, anthracite, sage, ochre, terracotta). */
:root {
  color-scheme: light;
  --bg: #f6f3ec; --bg2: #efebe2;
  --surface: rgba(255, 255, 255, 0.78); --surface2: rgba(251, 249, 244, 0.7);
  --signup-top: rgba(255, 255, 255, 0.94); --signup-bottom: rgba(251, 249, 244, 0.88);
  --glass-border: #e3ded3;
  --line: rgba(35, 38, 43, 0.12); --line2: rgba(35, 38, 43, 0.22);
  --text: #23262b; --soft: #3a3d42; --muted: #4a4d52; --dim: #625e57;
  --accent: #3f6b4c; --accent-hover: #2f5a3c; --accent-soft: rgba(79, 122, 92, 0.12); --accent-border: rgba(63, 107, 76, 0.28);
  --btn-bg: #3f6b4c; --btn-bg-hover: #44704f; --on-accent: #f6f3ec;
  --btn-shadow: 0 10px 26px -14px rgba(63, 107, 76, 0.7); --btn-shadow-hover: 0 12px 30px -14px rgba(63, 107, 76, 0.8);
  --ghost-bg: rgba(255, 255, 255, 0.55); --ghost-hover-bg: rgba(79, 122, 92, 0.08);
  --warn: #a64f34; --warn-soft: rgba(181, 87, 58, 0.09); --warn-border: rgba(181, 87, 58, 0.3); --warn-text: #7a3a26; --warn-strong: #5e2c1d;
  --error-text: #a64f34; --error-bg: rgba(181, 87, 58, 0.08); --error-border: rgba(181, 87, 58, 0.35); --error-input: #b5573a;
  --input-bg: #fffdf8; --placeholder: #8a857c;
  --header-bg: rgba(246, 243, 236, 0.82); --header-border: rgba(35, 38, 43, 0.08);
  --pill-bg: rgba(255, 255, 255, 0.6); --pill-dot-ring: rgba(79, 122, 92, 0.16);
  --glow1: rgba(79, 122, 92, 0.12); --glow2: rgba(184, 134, 43, 0.1);
  --card-shadow: 0 1px 2px rgba(35, 38, 43, 0.04), 0 12px 32px -20px rgba(35, 38, 43, 0.18);
  --signup-shadow: 0 30px 70px -40px rgba(35, 38, 43, 0.35), 0 1px 2px rgba(35, 38, 43, 0.05);
  --frame-border: rgba(35, 38, 43, 0.14); --frame-shadow: 0 30px 60px -36px rgba(35, 38, 43, 0.45);
  --video-shadow: 0 34px 80px -42px rgba(35, 38, 43, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.7);
  --selection-bg: #4f7a5c; --selection-fg: #f6f3ec;
  --focus: rgba(79, 122, 92, 0.85); --focus-ring: rgba(79, 122, 92, 0.22);
  --mark-filter: brightness(0.52) saturate(0.55);
  --success-glow: 0 0 34px -8px rgba(79, 122, 92, 0.55);
  --toggle-bg: rgba(255, 255, 255, 0.7); --hover-bg: rgba(35, 38, 43, 0.04);
  --honesty-dot: #b5573a; --entry-border: rgba(63, 107, 76, 0.4);
  --deliver-bg: rgba(255, 255, 255, 0.7); --partner-top: rgba(79, 122, 92, 0.1);
  --select-arrow: #625e57; --option-bg: #fffdf8; --hint-bg: #efebe2; --note-bg: #fffdf8;
  --placeholder-bg: rgba(184, 134, 43, 0.16); --placeholder-fg: #6b4a12; --placeholder-border: #9c6f1c;

  --display: "Space Grotesk Variable", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "DM Sans Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 20px; --wrap: 1160px; --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --t-fast: 180ms; --t-reveal: 420ms;
}

.dark {
  color-scheme: dark;
  --bg: #050914; --bg2: #070d1c;
  --surface: rgba(14, 23, 41, 0.7); --surface2: rgba(11, 18, 34, 0.6);
  --signup-top: rgba(16, 27, 47, 0.78); --signup-bottom: rgba(11, 18, 34, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
  --line: rgba(148, 163, 184, 0.16); --line2: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9; --soft: #b6c2d3; --muted: #94a3b8; --dim: #8090a8;
  --accent: #6ee7b7; --accent-hover: #8ff0c9; --accent-soft: rgba(110, 231, 183, 0.12); --accent-border: rgba(110, 231, 183, 0.22);
  --btn-bg: #6ee7b7; --btn-bg-hover: #8ff0c9; --on-accent: #04101c;
  --btn-shadow: 0 10px 30px -12px rgba(110, 231, 183, 0.55); --btn-shadow-hover: 0 12px 34px -12px rgba(110, 231, 183, 0.7);
  --ghost-bg: rgba(255, 255, 255, 0.02); --ghost-hover-bg: rgba(110, 231, 183, 0.06);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, 0.1); --warn-border: rgba(251, 191, 36, 0.28); --warn-text: #fde68a; --warn-strong: #fef3c7;
  --error-text: #fca5a5; --error-bg: rgba(248, 113, 113, 0.12); --error-border: rgba(248, 113, 113, 0.35); --error-input: #f87171;
  --input-bg: rgba(5, 9, 20, 0.75); --placeholder: #66758c;
  --header-bg: rgba(5, 9, 20, 0.72); --header-border: rgba(255, 255, 255, 0.07);
  --pill-bg: rgba(11, 18, 34, 0.6); --pill-dot-ring: rgba(110, 231, 183, 0.16);
  --glow1: rgba(52, 211, 153, 0.17); --glow2: rgba(56, 189, 248, 0.08);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --signup-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(110, 231, 183, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --frame-border: rgba(255, 255, 255, 0.12); --frame-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.85);
  --video-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(110, 231, 183, 0.25);
  --selection-bg: rgba(110, 231, 183, 0.3); --selection-fg: #ffffff;
  --focus: #6ee7b7; --focus-ring: rgba(110, 231, 183, 0.2);
  --mark-filter: none;
  --success-glow: 0 0 40px -6px rgba(110, 231, 183, 0.6);
  --toggle-bg: rgba(11, 18, 34, 0.6); --hover-bg: rgba(255, 255, 255, 0.04);
  --honesty-dot: #fbbf24; --entry-border: rgba(110, 231, 183, 0.35);
  --deliver-bg: rgba(11, 18, 34, 0.6); --partner-top: rgba(110, 231, 183, 0.08);
  --select-arrow: #94a3b8; --option-bg: #0b1222; --hint-bg: #0e1729; --note-bg: #0b1222;
  --placeholder-bg: rgba(251, 191, 36, 0.18); --placeholder-fg: #fde68a; --placeholder-border: #fbbf24;
}

/* 200 ms colour cross-fade, only while the theme is being switched (class set by theme.js). */
@media (prefers-reduced-motion: no-preference) {
  .theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (max-width: 959px) { html { scroll-padding-bottom: 96px; } }
a, button, summary, label, input, select { touch-action: manipulation; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--t-fast) ease; }
a:hover { color: var(--accent-hover); }
button, summary, select, label[for], input[type="checkbox"], a { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--selection-bg); color: var(--selection-fg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--btn-bg); color: var(--on-accent); padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Ambient background ---------- */
.ambient { position: relative; isolation: isolate; overflow-x: clip; }
.ambient::before, .ambient::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.ambient::before { width: 760px; height: 760px; right: -260px; top: -280px; background: radial-gradient(closest-side, var(--glow1), transparent 72%); }
.ambient::after { width: 620px; height: 620px; left: -320px; top: 260px; background: radial-gradient(closest-side, var(--glow2), transparent 72%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--header-border);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; filter: var(--mark-filter); }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; padding: 10px 12px; border-radius: 10px; transition: color var(--t-fast) ease, background-color var(--t-fast) ease; }
.nav a:hover { color: var(--text); background: var(--hover-bg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--muted); text-decoration: none;
  border: 1px solid var(--glass-border); border-radius: 999px; transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.lang:hover { color: var(--text); border-color: var(--accent); }
.nav-inline { display: inline-grid; place-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.nav-inline:hover { color: var(--text); }
@media (min-width: 960px) { .nav { display: flex; } .header-actions { margin-left: 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) ease, border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, color var(--t-fast) ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--btn-bg); color: var(--on-accent); box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--on-accent); box-shadow: var(--btn-shadow-hover); }
.btn-ghost { background: var(--ghost-bg); color: var(--text); border-color: var(--glass-border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); background: var(--ghost-hover-bg); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.btn .arrow { width: 18px; height: 18px; flex: none; }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 9vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: clamp(1.75rem, 5.6vw, 2.75rem); }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.mint { color: var(--accent); }
.eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 0.7812rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lead { margin: 18px 0 0; max-width: 620px; font-size: clamp(1.0625rem, 2.3vw, 1.2188rem); line-height: 1.55; color: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head > p:not(.eyebrow) { margin: 16px 0 0; font-size: 1.0938rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 1024px) { section { padding: 104px 0; } }
.section-alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Glass card ---------- */
.glass, .card {
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.card { padding: 24px; transition: border-color var(--t-fast) ease, transform var(--t-fast) var(--ease); }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 0.9688rem; }
.card .k { margin: 0 0 12px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; flex: none; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }
.icon svg { width: 22px; height: 22px; }
.icon.amber { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }

/* ---------- Reveal motion (only when JS is active and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: 40ms; }
  .js .reveal.d2 { transition-delay: 80ms; }
  .js .reveal.d3 { transition-delay: 120ms; }
  .js .reveal.d4 { transition-delay: 160ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* =================================================================
   HOME
   ================================================================= */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; grid-template-areas: "text card" "links card"; gap: 20px 64px; align-items: start; }
  .hero-text { grid-area: text; align-self: end; padding-top: 24px; }
  .hero .signup { grid-area: card; }
  .hero-links { grid-area: links; }
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 7px 14px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft);
  border: 1px solid var(--glass-border); border-radius: 999px; background: var(--pill-bg);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--pill-dot-ring); }
.hero .lead { margin-top: 16px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: -8px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.hero-links .text-link.muted { color: var(--soft); }
.hero-links .text-link.muted:hover { color: var(--text); }

/* Signup card */
.signup { padding: 22px; border-radius: 24px; background: linear-gradient(180deg, var(--signup-top), var(--signup-bottom)); box-shadow: var(--signup-shadow); }
@media (min-width: 560px) { .signup { padding: 30px; } }
.signup-title { font-size: 1.3125rem; margin: 0 0 4px; }
.signup-sub { margin: 0 0 18px; color: var(--muted); font-size: 0.9375rem; }
.signup .perks { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.signup .perks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.9062rem; line-height: 1.5; }
.signup .perks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }

/* Form */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > label, .field .label { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.opt { color: var(--dim); font-weight: 400; }
input[type="email"], input[type="text"], select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 13px;
  background: var(--input-bg); color: var(--text); border: 1px solid var(--line2);
  font: inherit; font-size: 1rem; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
select { appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--select-arrow) 50%), linear-gradient(135deg, var(--select-arrow) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: var(--option-bg); color: var(--text); }
input::placeholder { color: var(--placeholder); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.field.invalid input, .field.invalid select { border-color: var(--error-input); }
.field-error { color: var(--error-text); font-size: 0.875rem; font-weight: 500; }
.field-error:empty { display: none; }

.more-fields { margin: 2px 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--hover-bg); }
.more-fields > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 10px 14px; font-size: 0.9375rem; font-weight: 600; color: var(--soft); border-radius: 14px;
}
.more-fields > summary::-webkit-details-marker { display: none; }
.more-fields > summary:hover { color: var(--text); }
.more-fields > summary svg { width: 18px; height: 18px; color: var(--accent); transition: transform var(--t-fast) var(--ease); }
.more-fields[open] > summary svg { transform: rotate(180deg); }
.more-fields .more-body { padding: 4px 14px 2px; }
.row-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }

.field label.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--btn-bg); }
.field.invalid label.consent { color: var(--error-text); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 12px 0 0; font-size: 0.8438rem; color: var(--dim); text-align: center; }
.status { margin-top: 14px; padding: 13px 15px; border-radius: 12px; font-size: 0.9375rem; }
.status[hidden] { display: none; }
.status.error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error-text); }
.success[hidden] { display: none; }
.success .big-check { width: 54px; height: 54px; border-radius: 50%; background: var(--btn-bg); color: var(--on-accent); display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--success-glow); }
.success .big-check svg { width: 26px; height: 26px; }
.success h3 { font-size: 1.4375rem; }
.success p { margin: 10px 0 0; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(127, 127, 127, 0.35); border-top-color: var(--on-accent); animation: spin 0.8s linear infinite; }
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Video */
.video-section { padding-top: 16px; }
@media (min-width: 1024px) { .video-section { padding-top: 24px; } }
.video-section .section-head { margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 28px; }
.video-wrap { max-width: 980px; margin: 0 auto; }
.video-wrap[hidden] { display: none; }
.video-frame {
  position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg2);
  border: 1px solid var(--frame-border);
  box-shadow: var(--video-shadow);
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: var(--bg2); }
.honesty { display: flex; gap: 10px; align-items: flex-start; justify-content: center; max-width: 760px; margin: 18px auto 0; font-size: 0.875rem; color: var(--dim); line-height: 1.5; text-align: left; }
.honesty .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--honesty-dot); margin-top: 7px; }

/* Benefits */
.benefits { padding-top: 24px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.tile { padding: 22px; }
.tile h3 { font-size: 1.1875rem; }
.tile p { margin: 8px 0 0; color: var(--muted); font-size: 0.9688rem; }
.tile .icon { margin-bottom: 16px; }
.center { text-align: center; }
.more-row { margin-top: 26px; display: flex; justify-content: center; }

/* Closing CTA */
.closing .panel { padding: 36px 24px; text-align: center; border-radius: 28px; position: relative; overflow: hidden; }
.closing .panel::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, var(--glow1), transparent 70%); pointer-events: none; }
.closing .panel > * { position: relative; }
.closing .lead { margin-left: auto; margin-right: auto; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
@media (min-width: 768px) { .closing .panel { padding: 56px 48px; } }

/* =================================================================
   DETAILS (sections reused from v1)
   ================================================================= */
.page-head { padding: 36px 0 52px; }
@media (min-width: 1024px) { .page-head { padding: 64px 0 80px; } }
.page-head h1 { font-size: clamp(2.25rem, 8vw, 3.75rem); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.back:hover { color: var(--text); }

.grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) and (max-width: 899px) { .grid-3 { grid-template-columns: 1fr; } }

.callout { margin: 16px 0 0; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--warn-border); background: var(--warn-soft); color: var(--warn-text); font-size: 1rem; }
.callout strong { color: var(--warn-strong); }

.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps .idx { display: block; margin-bottom: 16px; font-family: var(--mono); font-size: 0.7812rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.steps .idx b { font-family: var(--display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; margin-right: 8px; text-transform: none; }

.entry { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 20px; border: 1px dashed var(--entry-border); border-radius: 16px; color: var(--muted); font-size: 0.9688rem; }
.entry b { color: var(--text); }
.entry .tag { font-family: var(--mono); font-size: 0.7188rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-accent); background: var(--btn-bg); border-radius: 999px; padding: 4px 10px; }

.deliverables { display: grid; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
@media (min-width: 768px) { .deliverables { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .deliverables { grid-template-columns: repeat(3, 1fr); } }
.deliverables li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--deliver-bg); }
.deliverables .check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-top: 1px; }
.deliverables .check svg { width: 14px; height: 14px; }
.deliverables b { display: block; font-weight: 650; }
.deliverables span.d { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }

.shots { display: grid; gap: 24px; }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.shot figure { margin: 0; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 0.9688rem; }
.shot figcaption b { color: var(--text); font-weight: 650; }
.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--frame-border); background: #0b1222; box-shadow: var(--frame-shadow); }
.frame img { width: 100%; height: auto; }
.frame-caption { margin: 14px 2px 0; font-size: 0.875rem; color: var(--dim); }
.principles { margin-top: 40px; }

.card.partner { border-color: var(--accent-border); background: linear-gradient(180deg, var(--partner-top), var(--surface2)); }
.audience .card h3 { font-size: 1.25rem; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; position: relative; padding: 20px 48px 20px 0; min-height: 44px; font-family: var(--display); font-weight: 600; font-size: 1.1562rem; line-height: 1.35; transition: color var(--t-fast) ease; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }

.end-cta .lead { margin-bottom: 0; }
.end-cta .hero-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* =================================================================
   FOOTER, sticky CTA, language hint, legal pages
   ================================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 calc(96px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 0.9062rem; }
@media (min-width: 960px) { .site-footer { padding-bottom: 44px; } }
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.site-footer p { margin: 10px 0 0; max-width: 520px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .footer-links { justify-content: flex-end; } }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copy { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.8125rem; }

.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translateY(160%); transition: transform 260ms var(--ease);
}
.mobile-cta .btn { width: 100%; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5), var(--btn-shadow); }
.mobile-cta.show { transform: none; }
@media (min-width: 960px) { .mobile-cta { display: none; } }

.lang-hint { background: var(--hint-bg); border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.lang-hint[hidden] { display: none; }
.lang-hint .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 12px; min-height: 44px; }
.lang-hint a { display: inline-flex; align-items: center; min-height: 44px; }

.legal { padding: 40px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 10px; letter-spacing: -0.01em; line-height: 1.3; }
.legal h3 { font-size: 1.0625rem; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; color: var(--text); }
.legal .note { margin-top: 28px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--glass-border); background: var(--note-bg); font-size: 0.9062rem; }
.placeholder { background: var(--placeholder-bg); color: var(--placeholder-fg); border: 1px dashed var(--placeholder-border); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.nf-title { margin-top: 40px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none;
  border-radius: 50%; border: 1px solid var(--glass-border); background: var(--toggle-bg); color: var(--soft);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 50%; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
.dark .theme-toggle .i-sun { display: block; }
.dark .theme-toggle .i-moon { display: none; }
@media (max-width: 559px) { .header-cta { display: none; } }

/* ---------- Mobile tightening: keep the video within the second screen ---------- */
@media (max-width: 559px) {
  .hero { padding: 20px 0 36px; }
  .hero .wrap { gap: 22px; }
  .status-pill { margin-bottom: 14px; }
  .hero .lead { font-size: 1.0625rem; margin-top: 12px; }
  .signup { padding: 20px 18px; }
  .signup-sub { margin-bottom: 14px; }
  .signup .perks { margin-top: 14px; padding-top: 12px; gap: 6px; }
  .signup .perks li { font-size: 0.875rem; }
  .hero-links { margin-top: -10px; }
  .video-section { padding-top: 0; }
  .video-section .section-head { margin-bottom: 18px; }
  .video-section h2 { font-size: 1.625rem; }
  .closing { padding-top: 16px; }
}
.closing { padding-top: 24px; }
@media (min-width: 1024px) { .closing { padding-top: 32px; } }

/* ---------- Polish (ui-ux-pro-max checklist) ---------- */
.glass { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* focus-appearance: a clear 2px ring on fields too, not only a colour change */
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent input:focus-visible { outline-offset: 3px; }
/* press-feedback on the small round controls and text links */
.theme-toggle:active, .lang:active { transform: scale(0.95); }
.text-link:active { opacity: 0.8; }
.theme-toggle, .lang { transition-property: color, border-color, background-color, transform; }
/* line-length: keep long prose at roughly 65-75 characters */
.section-head > p:not(.eyebrow), .faq .answer p, .legal p, .legal li { max-width: 68ch; }
/* burned-in subtitles note under the video */
.video-note { margin: 12px 0 0; text-align: center; font-size: 0.875rem; color: var(--dim); }
/* video frame: a visible edge on dark backgrounds for the cream video */
.dark .video-frame { border-color: rgba(255, 255, 255, 0.16); }
/* web-target-size: inline links in small text get a 24px line box; standalone footer links 44x44 */
.field label.consent { line-height: 1.75; }
.site-footer p { line-height: 1.75; }
.footer-links a, .nav-inline { min-width: 44px; justify-content: center; }

/* =================================================================
   Product mockups (HTML/CSS, theme-aware). Illustrative only: "Beispielansicht" / "Example view".
   Visual language of the story video: cream window, step bar, options, source badges, bars, seal.
   ================================================================= */
:root {
  --m-win: #ffffff; --m-line: #e3ded3; --m-skel: #ece7dc; --m-text: #23262b; --m-muted: #625e57; --m-dot: #e3ded3;
  --m-ok: #3f6b4c; --m-ok-soft: rgba(63, 107, 76, 0.1); --m-ok-line: rgba(63, 107, 76, 0.4); --m-on-ok: #f6f3ec;
  --m-warn: #a64f34; --m-warn-soft: rgba(181, 87, 58, 0.1); --m-warn-line: rgba(181, 87, 58, 0.45);
  --m-ochre: #a9781f; --m-ochre2: #d9a441;
  --m-stage: #efe9de; --m-glow1: rgba(79, 122, 92, 0.18); --m-glow2: rgba(184, 134, 43, 0.16);
  --m-shadow: 0 24px 60px -30px rgba(35, 38, 43, 0.4), 0 2px 6px rgba(35, 38, 43, 0.05);
}
.dark {
  --m-win: #0e1729; --m-line: rgba(255, 255, 255, 0.1); --m-skel: rgba(148, 163, 184, 0.18); --m-text: #f1f5f9; --m-muted: #a3b1c6; --m-dot: rgba(255, 255, 255, 0.18);
  --m-ok: #6ee7b7; --m-ok-soft: rgba(110, 231, 183, 0.12); --m-ok-line: rgba(110, 231, 183, 0.4); --m-on-ok: #04101c;
  --m-warn: #f0a58a; --m-warn-soft: rgba(240, 165, 138, 0.12); --m-warn-line: rgba(240, 165, 138, 0.45);
  --m-ochre: #e8b75a; --m-ochre2: #f2c46d;
  --m-stage: #0a1120; --m-glow1: rgba(52, 211, 153, 0.14); --m-glow2: rgba(232, 183, 90, 0.1);
  --m-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.9);
}
.mock-stage {
  position: relative; container-type: inline-size; padding: 9% 6% 7%; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--frame-border);
  background:
    radial-gradient(60% 70% at 15% 10%, var(--m-glow1), transparent 70%),
    radial-gradient(55% 65% at 90% 95%, var(--m-glow2), transparent 70%),
    var(--m-stage);
}
.mock { font-family: var(--sans); font-size: max(9.5px, 2.35cqw); line-height: 1.35; color: var(--m-text); }
.mock-win { background: var(--m-win); border: 1px solid var(--m-line); border-radius: 1.4em; box-shadow: var(--m-shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 0.5em; height: 2.9em; padding: 0 1.2em; border-bottom: 1px solid var(--m-line); }
.mock-bar i { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--m-dot); }
.mock-bar .name { margin-left: 0.6em; font-family: var(--mono); font-size: 0.85em; color: var(--m-muted); }
.mock-steps { margin-left: auto; display: flex; gap: 0.4em; }
.mock-steps b { width: 2.6em; height: 0.36em; border-radius: 1em; background: var(--m-skel); }
.mock-steps b.on { background: var(--m-ok); }
.mock-pane { position: relative; padding: 1.6em 1.9em 1.9em; }
.mock-kick { font-family: var(--mono); font-size: 0.78em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--m-ok); }
.mock-h { margin-top: 0.45em; font-family: var(--display); font-weight: 700; font-size: 1.75em; line-height: 1.08; letter-spacing: -0.03em; }
.mock-h em { font-style: normal; color: var(--m-ok); }
.mock-tag {
  position: absolute; left: 6%; top: 2.4%; z-index: 1; display: inline-flex; align-items: center; height: 2em; padding: 0 0.9em;
  font-family: var(--mono); font-size: max(10px, 1.8cqw); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--m-muted); background: var(--m-win); border: 1px solid var(--m-line); border-radius: 999px;
}
.m-opt { display: flex; align-items: center; gap: 0.8em; min-height: 2.8em; margin-top: 0.6em; padding: 0 1.1em; border-radius: 0.8em; border: 1.5px solid var(--m-line); font-weight: 600; }
.m-opt i { width: 1.05em; height: 1.05em; border-radius: 50%; border: 2px solid var(--m-dot); flex: none; display: grid; place-items: center; }
.m-opt.on { border-color: var(--m-ok); background: var(--m-ok-soft); }
.m-opt.on i { border-color: var(--m-ok); }
.m-opt.on i::after { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--m-ok); }
.m-chips { display: flex; flex-wrap: wrap; gap: 0.45em; margin-top: 1em; }
.m-chip { display: inline-flex; align-items: center; height: 2.1em; padding: 0 0.9em; border-radius: 999px; border: 1px solid var(--m-ok-line); background: var(--m-ok-soft); color: var(--m-ok); font-weight: 600; font-size: 0.88em; }
.m-row { display: flex; align-items: center; gap: 1em; margin-top: 1.15em; }
.m-row .txt { flex: 1; min-width: 0; }
.m-skel { display: block; height: 0.62em; border-radius: 1em; background: var(--m-skel); }
.m-skel + .m-skel { margin-top: 0.5em; }
.w90 { width: 90%; } .w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; } .w40 { width: 40%; }
.m-badge { flex: none; display: inline-flex; align-items: center; height: 2em; padding: 0 0.75em; border-radius: 0.55em; font-family: var(--mono); font-weight: 700; font-size: 0.82em; white-space: nowrap; }
.m-badge.src { color: var(--m-ok); background: var(--m-ok-soft); border: 1.5px solid var(--m-ok-line); }
.m-badge.ass { color: var(--m-warn); background: var(--m-warn-soft); border: 1.5px solid var(--m-warn-line); }
.m-meter { display: flex; align-items: center; gap: 0.8em; margin-top: 1.4em; font-family: var(--mono); font-size: 0.8em; color: var(--m-muted); }
.m-meter .track { flex: 1; height: 0.55em; border-radius: 1em; background: var(--m-skel); overflow: hidden; }
.m-meter .track b { display: block; height: 100%; width: 67%; border-radius: 1em; background: var(--m-ok); }
.m-tabs { display: flex; flex-wrap: wrap; gap: 0.35em; margin-top: 0.9em; }
.m-tabs span { display: inline-flex; align-items: center; height: 1.9em; padding: 0 0.7em; border-radius: 999px; border: 1px solid var(--m-line); font-size: 0.78em; color: var(--m-muted); }
.m-tabs span.on { background: var(--m-ok); border-color: var(--m-ok); color: var(--m-on-ok); font-weight: 600; }
.m-chart { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12%; height: 8.5em; margin-top: 1.2em; padding: 0 6%; border-bottom: 1.5px solid var(--m-line); }
.m-chart b { display: block; border-radius: 0.55em 0.55em 0.15em 0.15em; background: linear-gradient(180deg, var(--m-ok), var(--m-ochre2)); transform-origin: bottom; }
.m-chart b:nth-child(1) { height: 38%; } .m-chart b:nth-child(2) { height: 66%; } .m-chart b:nth-child(3) { height: 92%; }
.m-axis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12%; padding: 0.5em 6% 0; font-family: var(--mono); font-size: 0.76em; color: var(--m-muted); text-align: center; }
.m-seal { position: absolute; right: 1.6em; top: 1.4em; display: inline-flex; align-items: center; gap: 0.5em; height: 2.5em; padding: 0 1.1em 0 0.5em; border-radius: 999px; background: var(--m-ok); color: var(--m-on-ok); font-family: var(--display); font-weight: 700; font-size: 0.95em; box-shadow: 0 0.6em 1.6em -0.6em rgba(35, 38, 43, 0.5); }
.m-seal svg { width: 1.6em; height: 1.6em; }
.m-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; margin-top: 1.2em; }
.m-doc { padding: 0.9em 0.8em 1em; border-radius: 0.9em; border: 1.5px solid var(--m-line); background: var(--m-win); }
.m-doc .ic { width: 1.8em; height: 1.8em; border-radius: 0.5em; display: grid; place-items: center; background: var(--m-ok-soft); color: var(--m-ok); }
.m-doc .ic svg { width: 1.1em; height: 1.1em; }
.m-doc .t { margin: 0.7em 0 0.6em; font-family: var(--display); font-weight: 700; font-size: 0.92em; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.m-doc .m-skel { height: 0.45em; }
.m-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; margin-top: 1.2em; }
.m-foot .m-chip { color: var(--m-muted); border-color: var(--m-line); background: transparent; }
.m-progress { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.78em; color: var(--m-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.m-track { height: 0.4em; margin: 0.5em 0 1.2em; border-radius: 1em; background: var(--m-skel); overflow: hidden; }
.m-track b { display: block; width: 17%; height: 100%; background: var(--m-ok); }
.m-note { margin-top: 1.1em; font-size: 0.8em; color: var(--m-muted); }

/* Mini mockups in the homepage benefit tiles (decorative; the tile text carries the meaning) */
.mini { container-type: inline-size; margin: -4px -4px 18px; padding: 14px; border-radius: 14px; border: 1px solid var(--m-line);
  background: radial-gradient(70% 90% at 10% 0%, var(--m-glow1), transparent 70%), radial-gradient(60% 80% at 100% 100%, var(--m-glow2), transparent 70%), var(--m-stage); }
.mini .mock { font-size: max(10px, 4.6cqw); }
.mini .mock-win { border-radius: 0.9em; }
.mini .mock-pane { padding: 0.9em 1em 1em; min-height: 8.4em; }
.mini .m-opt { min-height: 2.3em; margin-top: 0.45em; }
.mini .m-opt:first-child, .mini .m-row:first-child { margin-top: 0; }
.mini .m-row { margin-top: 0.8em; }
.mini .m-chart { height: 4.6em; margin-top: 0.5em; }
.mini .mini-f { font-family: var(--display); font-weight: 700; font-size: 1.05em; letter-spacing: -0.02em; }
.mini .mini-f em { font-style: normal; color: var(--m-ok); }
.tiles-note { margin: 14px 0 0; text-align: center; font-size: 0.8125rem; color: var(--dim); }

/* Subtle motion: bars grow once the mockup is revealed (final state under reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .m-chart b { transform: scaleY(0.12); transition: transform 600ms var(--ease); }
  .js .reveal.in .m-chart b { transform: none; }
  .js .reveal.in .m-chart b:nth-child(2) { transition-delay: 80ms; }
  .js .reveal.in .m-chart b:nth-child(3) { transition-delay: 160ms; }
}
/* equal mockup heights per row */
.mini .mock-pane { min-height: 10em; display: flex; flex-direction: column; justify-content: center; }
.shots .shot, .shots .shot > figure { height: 100%; }
.shots .shot > figure { display: flex; flex-direction: column; }
.shots .mock-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* focus-not-obscured: the hidden sticky CTA must not be focusable (it only slid off-screen before) */
.mobile-cta { visibility: hidden; transition: transform 260ms var(--ease), visibility 0s linear 260ms; }
.mobile-cta.show { visibility: visible; transition: transform 260ms var(--ease), visibility 0s; }
.mock-pane:has(.m-seal) .mock-h { max-width: calc(100% - 7.5em); }

/* =================================================================
   v6: animated feature tiles, details carousel, compact details sections
   Decorative visuals carry the HTML `hidden` attribute and are only shown here, so a stale or
   missing stylesheet never prints their inner text as body copy.
   ================================================================= */
.mock-stage[hidden] { display: block; }
.tv[hidden] { display: grid; }

/* ---------- Feature tiles (home) ---------- */
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .feats { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.feat { display: flex; flex-direction: column; padding: 10px 10px 22px; border-radius: 22px; }
.feat h3 { margin: 18px 12px 0; font-size: 1.25rem; }
.feat p { margin: 6px 12px 0; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.tv {
  position: relative; display: grid; place-items: center; min-height: 176px; padding: 18px 16px; overflow: hidden; border-radius: 16px; border: 1px solid var(--m-line);
  background:
    radial-gradient(70% 90% at 10% 0%, var(--m-glow1), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, var(--m-glow2), transparent 70%),
    var(--m-stage);
  font-family: var(--sans); color: var(--m-text);
}
.tv-card {
  position: relative; width: min(100%, 300px);
  padding: 14px; border-radius: 14px; background: var(--m-win); border: 1px solid var(--m-line); box-shadow: var(--m-shadow);
}
.tv-q { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.tv-q small { font-family: var(--mono); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-muted); }

/* option list with an animated selection */
.tv-opt { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--m-line); font-size: 0.86rem; font-weight: 600; }
.tv-opt + .tv-opt { margin-top: 7px; }
.tv-opt .rd { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--m-dot); }
.tv-opt .rd i { position: absolute; inset: 2px; border-radius: 50%; background: var(--m-ok); }
.tv-opt .ring { position: absolute; inset: -1.5px; border-radius: 10px; border: 1.5px solid var(--m-ok); background: var(--m-ok-soft); }
.tv-opt > span:not(.ring) { position: relative; }
.tv-chips { display: flex; gap: 6px; margin-top: 10px; }
.tv-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--m-ok-line); background: var(--m-ok-soft); color: var(--m-ok); font-size: 0.74rem; font-weight: 700; }
.tv-chip svg { width: 12px; height: 12px; }

/* statement rows with pill badges */
.tv-row { display: flex; align-items: center; gap: 10px; }
.tv-row + .tv-row { margin-top: 11px; }
.tv-row .ln { flex: 1; min-width: 0; }
.tv-row .ln b { display: block; height: 7px; border-radius: 4px; background: var(--m-skel); }
.tv-row .ln b + b { margin-top: 5px; width: 62%; }
.tv-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 6px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.tv-pill svg { width: 14px; height: 14px; flex: none; }
.tv-pill.ok { color: var(--m-ok); background: var(--m-ok-soft); border: 1px solid var(--m-ok-line); }
.tv-pill.as { color: var(--m-warn); background: var(--m-warn-soft); border: 1px solid var(--m-warn-line); }

/* bars + seal */
.tv-bars { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 14%; height: 70px; padding: 0 8%; border-bottom: 1.5px solid var(--m-line); }
.tv-bars b { display: block; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--m-ok), var(--m-ochre2)); transform-origin: bottom; }
.tv-bars b:nth-child(1) { height: 40%; } .tv-bars b:nth-child(2) { height: 68%; } .tv-bars b:nth-child(3) { height: 96%; }
.tv-seal { position: absolute; right: 12px; top: 11px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 5px; border-radius: 999px; background: var(--m-ok); color: var(--m-on-ok); font-family: var(--display); font-size: 0.74rem; font-weight: 700; }
.tv-seal svg { width: 16px; height: 16px; }

/* Motion: plays when the tile scrolls into view (.run, set by theme.js), resets when it leaves.
   transform/opacity only; static final state without JS or under reduced motion. */
@keyframes tv-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes tv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tv-grow { from { transform: scaleY(0.08); } to { transform: none; } }
@keyframes tv-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .tv:not(.run) .a-pop, .js .tv:not(.run) .a-fade, .js .tv:not(.run) .a-up { opacity: 0; }
  .js .tv:not(.run) .a-grow { transform: scaleY(0.08); }
  .js .tv.run .a-pop { animation: tv-pop 420ms var(--ease) both; }
  .js .tv.run .a-fade { animation: tv-fade 320ms ease-out both; }
  .js .tv.run .a-grow { animation: tv-grow 650ms var(--ease) both; }
  .js .tv.run .a-up { animation: tv-up 380ms var(--ease) both; }
  .js .tv.run .t1 { animation-delay: 250ms; } .js .tv.run .t2 { animation-delay: 550ms; } .js .tv.run .t3 { animation-delay: 850ms; }
  .js .tv.run .t4 { animation-delay: 1150ms; } .js .tv.run .t5 { animation-delay: 1400ms; }
}

/* ---------- Details: quick nav ---------- */
.quick-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.quick-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--ghost-bg); color: var(--text); text-decoration: none; font-size: 0.94rem; font-weight: 600; }
.quick-nav a:hover { border-color: var(--accent); }

/* compact cards (problem, audience) */
.mini-cards { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .mini-cards.c3 { grid-template-columns: repeat(3, 1fr); } .mini-cards.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mini-cards.c4 { grid-template-columns: repeat(4, 1fr); } }
.mini-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; }
.mini-card .icon { margin: 0; width: 42px; height: 42px; }
.mini-card h3 { font-size: 1.08rem; }
.mini-card p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.mini-card.partner { border-color: var(--accent-border); background: linear-gradient(180deg, var(--partner-top), var(--surface2)); }
.note-line { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--warn-border); background: var(--warn-soft); color: var(--warn-text); font-size: 0.95rem; }
.note-line svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--warn); }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.car-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  padding: 6px 2px 18px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 20px; }
@media (min-width: 900px) { .car-track { grid-auto-columns: 100%; } }
.car-slide { scroll-snap-align: start; scroll-snap-stop: always; display: grid; gap: 18px; align-content: start; padding: 18px; border-radius: 22px; }
@media (min-width: 900px) { .car-slide { grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: center; padding: 30px; } }
.car-step { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.car-step b { font-family: var(--display); font-size: 1.9rem; letter-spacing: -0.02em; margin-right: 8px; }
.car-slide h3 { margin-top: 10px; font-size: clamp(1.3rem, 3.2vw, 1.75rem); }
.car-slide p { margin: 8px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.car-slide .mock-stage { padding: 10% 5% 6%; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.car-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--toggle-bg); color: var(--text); transition: border-color var(--t-fast) ease, transform var(--t-fast) ease, opacity var(--t-fast) ease; }
.car-btn:hover { border-color: var(--accent); }
.car-btn:active { transform: scale(0.94); }
.car-btn[disabled] { opacity: 0.4; cursor: default; }
.car-btn svg { width: 20px; height: 20px; }
.car-dots { display: flex; }
.car-dot { display: grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; background: none; }
.car-dot::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--line2); transition: width 220ms var(--ease), background-color 220ms ease; }
.car-dot[aria-current="true"]::before { width: 24px; background: var(--accent); }
.car-dot:focus-visible { outline-offset: -4px; }
.car-hint { margin: 6px 0 0; text-align: center; font-size: 0.82rem; color: var(--dim); }

/* deliverables as compact chips */
.deliv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .deliv { grid-template-columns: repeat(3, 1fr); } }
.deliv li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--deliver-bg); }
.deliv .check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.deliv .check svg { width: 14px; height: 14px; }
.deliv b { display: block; font-size: 0.98rem; line-height: 1.3; }
.deliv span.d { display: block; margin-top: 2px; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.princ { display: grid; gap: 12px; margin-top: 22px; list-style: none; padding: 0; }
@media (min-width: 768px) { .princ { grid-template-columns: repeat(3, 1fr); } }
.princ li { display: flex; gap: 12px; align-items: flex-start; }
.princ .icon { margin: 0; width: 40px; height: 40px; }
.princ b { display: block; font-family: var(--display); font-size: 1.02rem; }
.princ span.d { display: block; margin-top: 2px; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.mock-caption { margin: 10px 0 0; text-align: center; font-size: 0.82rem; color: var(--dim); }
.entry-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; padding: 14px 18px; border: 1px dashed var(--entry-border); border-radius: 16px; color: var(--muted); font-size: 0.95rem; }
.entry-line .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-accent); background: var(--btn-bg); border-radius: 999px; padding: 4px 10px; }
.entry-line b { color: var(--text); }
/* v6: clean pill badges with icons inside the large mockups (no bracket labels) */
.m-badge { gap: 0.35em; padding: 0 0.7em 0 0.45em; border-radius: 999px; font-family: var(--sans); font-size: 0.8em; }
.m-badge svg { width: 1.25em; height: 1.25em; flex: none; }
/* v6 fixes: 44px dots, 24px inline link line, deliverable chips fit two columns on small phones */
.car-dot { width: 44px; }
.mini-card p { line-height: 1.65; }
.deliv li { min-width: 0; }
.deliv b, .deliv span.d { overflow-wrap: anywhere; }
@media (max-width: 479px) { .deliv li { flex-direction: column; gap: 8px; padding: 12px; } .deliv b { font-size: 0.92rem; } }

/* =================================================================
   v7: usability additions (event greeting, typo hint, share, video overlay, transcript, copy buttons)
   ================================================================= */
/* Event greeting above the headline (QR code from an event) */
.event-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 16px; padding: 6px 6px 6px 14px; border-radius: 22px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.event-pill[hidden] { display: none; }
.event-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--pill-dot-ring); }
.event-pill a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--btn-bg); color: var(--on-accent); text-decoration: none; font-size: 0.875rem; }
.event-pill a:hover { background: var(--btn-bg-hover); color: var(--on-accent); }
@media (prefers-reduced-motion: no-preference) {
  .event-pill:not([hidden]) { animation: tv-up 420ms var(--ease) both 120ms; }
}

/* Typo suggestion under the e-mail field */
.field-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--warn-soft); border: 1px solid var(--warn-border); color: var(--warn-text); font-size: 0.9062rem; }
.field-hint[hidden] { display: none; }
.field-hint b { color: var(--warn-strong); font-weight: 650; overflow-wrap: anywhere; }
.hint-btn { min-height: 36px; margin-left: auto; padding: 0 14px; border-radius: 999px; border: 1px solid var(--warn-border); background: var(--input-bg); color: var(--text); font: inherit; font-size: 0.875rem; font-weight: 600; }
.hint-btn:hover { border-color: var(--warn); }

/* Next steps after signing up */
.success-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 18px; }
.success-actions .btn svg { width: 18px; height: 18px; flex: none; }
.success-actions .btn.done { border-color: var(--accent); }

/* Video: start overlay with duration, end card */
.video-play {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 0; border: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 9, 20, 0.28)); color: #fff; font: inherit;
}
.video-play[hidden] { display: none; }
.vp-circle { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--btn-bg); color: var(--on-accent); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55); transition: transform var(--t-fast) var(--ease); }
.vp-circle svg { width: 30px; height: 30px; margin-left: 4px; }
.video-play:hover .vp-circle { transform: scale(1.06); }
.video-play:active .vp-circle { transform: scale(0.97); }
.vp-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(5, 9, 20, 0.66); font-weight: 600; font-size: 0.9375rem; }
.vp-dur { font-family: var(--mono); font-size: 0.8125rem; opacity: 0.85; }
.video-play:focus-visible { outline-offset: -6px; border-radius: 20px; }
@media (max-width: 479px) { .vp-circle { width: 60px; height: 60px; } .vp-circle svg { width: 24px; height: 24px; } }
.video-end {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-align: center;
}
.video-end[hidden] { display: none; }
.ve-q { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 4vw, 2rem); letter-spacing: -0.02em; color: var(--text); }
.ve-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 479px) { .video-end .btn { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; } .video-end { gap: 10px; } }

/* Transcript */
.transcript { max-width: 760px; margin: 16px auto 0; border: 1px solid var(--line); border-radius: 14px; background: var(--hover-bg); }
.transcript > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; font-weight: 600; color: var(--soft); border-radius: 14px; }
.transcript > summary::-webkit-details-marker { display: none; }
.transcript > summary:hover { color: var(--text); }
.transcript > summary svg { width: 18px; height: 18px; color: var(--accent); transition: transform var(--t-fast) var(--ease); }
.transcript[open] > summary svg { transform: rotate(180deg); }
.transcript-body { padding: 0 16px 14px; color: var(--muted); font-size: 0.9688rem; }
.transcript-body p { margin: 0 0 6px; max-width: 68ch; }
.transcript-body b { color: var(--text); font-weight: 650; }
.transcript-body .tr-note { font-size: 0.875rem; color: var(--dim); margin-bottom: 10px; }

/* Copy buttons */
.copy-btn, .copy-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; vertical-align: middle;
  border-radius: 999px; border: 1px solid var(--glass-border); background: var(--toggle-bg); color: var(--soft);
  font: inherit; font-size: 0.8125rem; font-weight: 600; line-height: 1;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.copy-btn:hover, .copy-link:hover { color: var(--text); border-color: var(--accent); }
.copy-btn svg, .copy-link svg { width: 15px; height: 15px; flex: none; }
.copy-btn.done, .copy-link.done { color: var(--accent); border-color: var(--accent); }
.copy-btn { margin-left: 4px; }
.faq .copy-link { margin-top: 4px; }
/* 44px touch target without a bigger visual pill */
.copy-btn, .copy-link { position: relative; }
.copy-btn::after, .copy-link::after { content: ""; position: absolute; inset: -6px -2px; }
.faq details:target summary { color: var(--accent); }
.site-footer a[href^="mailto:"], .faq a[href^="mailto:"] { white-space: nowrap; }

/* ---------- Quick check (check.html) ---------- */
.check-head { padding-bottom: 28px; }
@media (min-width: 1024px) { .check-head { padding-bottom: 40px; } }
.check-section { padding-top: 0; }
.qc { max-width: 760px; padding: 20px; border-radius: 24px; background: linear-gradient(180deg, var(--signup-top), var(--signup-bottom)); box-shadow: var(--signup-shadow); }
@media (min-width: 560px) { .qc { padding: 32px; } }
.qc-noscript { margin: 0; color: var(--muted); }
.qc-top { display: none; }
.qc-js .qc-top { display: block; margin-bottom: 18px; }
.qc-js.qc-done .qc-top { display: none; }
.qc-progress { margin: 0 0 8px; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.qc-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.qc-bar b { display: block; height: 100%; background: var(--accent); border-radius: 999px; transform-origin: left; transform: scaleX(0.2); transition: transform 320ms var(--ease); }
.qc-step { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.qc-step[hidden] { display: none; }
.qc-step legend { padding: 0; margin-bottom: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 4.4vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; }
.qc-step legend:focus { outline: none; }
.qc-hint { margin: 0 0 14px; color: var(--muted); font-size: 0.9688rem; }
.qc-opts { display: grid; gap: 10px; margin-top: 14px; }
.qc-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid var(--line2); background: var(--input-bg); transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, transform var(--t-fast) var(--ease); }
.qc-opt:hover { border-color: var(--accent); }
.qc-opt:active { transform: scale(0.99); }
.qc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qc-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; transition: border-color var(--t-fast) ease; }
.qc-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--t-fast) var(--ease); }
.qc-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.qc-opt input:checked + .qc-radio { border-color: var(--accent); }
.qc-opt input:checked + .qc-radio::after { transform: none; }
.qc-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.qc-txt b { display: block; font-weight: 650; line-height: 1.3; }
.qc-txt small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.qc-nav { display: none; }
.qc-js .qc-nav { display: flex; justify-content: space-between; gap: 12px; }
.qc-nav [data-qc-next] { margin-left: auto; }
.qc-nav .btn svg { width: 18px; height: 18px; }
.qc-nav [data-qc-back][hidden] { display: none; }
.qc form[hidden], .qc-result[hidden] { display: none; }
.qc-result h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
.qc-result h2:focus { outline: none; }
.qc-lead { margin: 10px 0 0; color: var(--muted); }
.qc-list { list-style: none; counter-reset: qc; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.qc-item { counter-increment: qc; position: relative; padding: 14px 16px 14px 52px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--deliver-bg); }
.qc-item::before { content: counter(qc); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 0.8rem; font-weight: 700; }
.qc-item-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.qc-item h3 { font-size: 1.0625rem; }
.qc-item p { margin: 6px 0 0; color: var(--muted); font-size: 0.9688rem; line-height: 1.55; }
.qc-tag { flex: none; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tag-help .qc-tag { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); }
.tag-clarify .qc-tag { color: var(--warn-text); background: var(--warn-soft); border: 1px solid var(--warn-border); }
.tag-you .qc-tag { color: var(--soft); background: var(--hover-bg); border: 1px solid var(--line2); }
.qc-next { margin-top: 22px; padding: 20px; border-radius: 18px; border: 1px solid var(--accent-border); background: linear-gradient(180deg, var(--partner-top), transparent); }
.qc-next .eyebrow { margin-bottom: 8px; }
.qc-next h3 { font-size: 1.25rem; }
.qc-next p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.qc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.qc-actions .btn svg { width: 18px; height: 18px; flex: none; }
.qc-note { margin: 18px 0 0; font-size: 0.8438rem; color: var(--dim); line-height: 1.55; }
@media (max-width: 479px) { .qc-actions .btn { flex: 1 1 100%; } .qc-item { padding-left: 46px; } .qc-item::before { left: 12px; } }

/* Glossary: inline toggle terms and the list below the check */
.term { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline dotted; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.term:hover, .term[aria-expanded="true"] { color: var(--accent); }
.term-def { display: block; margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--text); font-family: var(--sans); font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.term-def[hidden] { display: none; }
.glossary { max-width: 760px; margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--hover-bg); }
.glossary > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; border-radius: 16px; }
.glossary > summary::-webkit-details-marker { display: none; }
.glossary > summary svg { width: 18px; height: 18px; color: var(--accent); transition: transform var(--t-fast) var(--ease); }
.glossary[open] > summary svg { transform: rotate(180deg); }
.glossary dl { margin: 0; padding: 0 18px 16px; display: grid; gap: 12px; }
@media (min-width: 768px) { .glossary dl { grid-template-columns: 1fr 1fr; gap: 14px 28px; } }
.glossary dt { font-weight: 650; }
.glossary dd { margin: 2px 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.hero-links .text-link.check-link { color: var(--accent); }

/* ---------- Role-dependent form fields ---------- */
.field[hidden] { display: none; }
.field label.consent.pilot { color: var(--text); font-size: 0.9375rem; }

/* ---------- Timeline (details) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 860px; }
.tl-item { position: relative; padding: 0 0 26px 44px; }
.tl-item::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line2); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line2); background: var(--bg); color: var(--on-accent); }
.tl-item.now .tl-dot { border-color: var(--btn-bg); background: var(--btn-bg); box-shadow: 0 0 0 5px var(--pill-dot-ring); }
.tl-dot svg { width: 14px; height: 14px; }
.tl-when { margin: 2px 0 4px; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.tl-when b { color: var(--accent); margin-right: 6px; }
.tl-item h3 { font-size: 1.1875rem; }
.tl-item p:not(.tl-when) { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: none; }
  .tl-item { padding: 44px 0 0; }
  .tl-item::before { left: 32px; right: -28px; top: 13px; bottom: auto; width: auto; height: 2px; }
  .tl-item:last-child::before { display: none; }
}
.tl-note { margin: 22px 0 0; font-size: 0.875rem; color: var(--dim); }

/* Video load failed twice: poster stays, retry button on top */
.video-retry { position: absolute; left: 50%; bottom: 16px; z-index: 3; transform: translateX(-50%); max-width: calc(100% - 24px); min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--input-bg); color: var(--text); font: inherit; font-size: 0.9375rem; font-weight: 600; box-shadow: var(--card-shadow); }
.video-retry[hidden] { display: none; }
.video-retry:hover { border-color: var(--accent); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 48px; } }
.contact-card { max-width: none; }
textarea { width: 100%; min-height: 150px; padding: 12px 14px; border-radius: 13px; resize: vertical; background: var(--input-bg); color: var(--text); border: 1px solid var(--line2); font: inherit; font-size: 1rem; line-height: 1.5; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field.invalid textarea { border-color: var(--error-input); }
.field-help { margin: 0; font-size: 0.8438rem; color: var(--dim); }
.form-privacy { margin: 4px 0 16px; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.contact-card .ok-title { font-size: 1.4375rem; }
.contact-aside h2 { font-size: 1.375rem; }
.contact-aside p { margin: 10px 0 0; color: var(--muted); }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.contact-mail a { overflow-wrap: anywhere; font-weight: 600; }
.contact-note { margin-top: 18px !important; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--text) !important; font-size: 0.9375rem; }
.field { align-content: start; }

/* ---------- Hero action tiles: video teaser + quick check (replace the small text links) ---------- */
.hero-actions { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 560px) { .hero-actions { grid-template-columns: 1fr 1fr; gap: 12px; } }
.action-tile {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 14px 10px 10px;
  border-radius: 18px; border: 1px solid var(--glass-border); background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.action-tile:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--btn-shadow); }
.action-tile:active { transform: scale(0.99); }
.action-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 18px; }
.at-thumb { position: relative; flex: none; width: 92px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); }
.at-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.at-play { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--on-accent); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5); }
.at-play svg { width: 16px; height: 16px; margin-left: 2px; }
.at-icon { flex: none; width: 52px; height: 52px; margin-left: 2px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }
.at-icon svg { width: 26px; height: 26px; }
.at-text { flex: 1; min-width: 0; }
.at-text b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.01em; }
.at-text small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.at-arrow { flex: none; width: 20px; height: 20px; color: var(--accent); transition: transform var(--t-fast) var(--ease); }
.action-tile:hover .at-arrow { transform: translateX(3px); }
.at-check { border-color: var(--accent-border); background: linear-gradient(180deg, var(--partner-top), var(--surface)); }
/* a gentle pulse on the play button draws the eye once; off under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .at-play { animation: at-pulse 2.4s var(--ease) 1.2s 3; }
}
@keyframes at-pulse { 0% { box-shadow: 0 0 0 0 var(--focus-ring); } 70% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
@media (min-width: 1024px) {
  .hero-actions { margin-top: 0; }
  .action-tile { min-height: 84px; padding: 12px 16px 12px 12px; }
  .at-thumb { width: 104px; }
}
@media (max-width: 559px) { .hero-actions { margin-top: 18px; } .action-tile { min-height: 68px; } .at-thumb { width: 84px; } }

/* ---------- Double opt-in page ---------- */
.doi-page { min-height: 60vh; }
.doi { max-width: 640px; }
.doi h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
.doi h1:focus { outline: none; }
.doi .lead { margin-bottom: 22px; }
.doi .btn[hidden] { display: none; }
.doi-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.doi-links[hidden] { display: none; }
.doi.doi-ok h1::before { content: ""; display: block; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%;
  background: var(--btn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f3ec' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 24px no-repeat; }


/* ---------- Hero v3 (ui-ux-pro-max: one primary action, form above the fold on phones) ----------
   Phones: headline, lead, one descriptive video link, the sign-up card, then the quick check row.
   Desktop: headline + both cards on the left, sign-up card on the right. */
.hero-video-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 14px; color: var(--text); text-decoration: none; }
.hero-video-link:hover { color: var(--text); }
.hero-video-link:hover .hvl-text span { text-decoration: underline; text-underline-offset: 3px; }
.hvl-play { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--on-accent); box-shadow: 0 0 0 5px var(--pill-dot-ring); }
.hvl-play svg { width: 15px; height: 15px; margin-left: 2px; }
.hvl-text { font-size: 0.9688rem; line-height: 1.35; }
.hvl-text b { font-weight: 650; }
.hvl-text span { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 1023px) {
  .hero-actions { margin-top: -6px; }
  .hero-actions .at-video { display: none; }
  .hero-actions { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .hero-video-link { display: none; }
  .hero .wrap { grid-template-areas: "text card" "links card"; }
  .hero-actions { grid-area: links; align-self: start; grid-template-columns: 1fr; max-width: 580px; margin-top: 8px; }
}
@media (max-width: 559px) {
  .hero { padding-top: 14px; }
  .hero .wrap { gap: 18px; }
  .hero h1 { font-size: clamp(1.875rem, 8.2vw, 2.25rem); }
  .hero .lead { font-size: 1rem; line-height: 1.5; margin-top: 10px; }
  .hero-video-link { margin-top: 10px; }
  .signup { padding: 18px 16px; }
  .signup-title { font-size: 1.1875rem; margin-bottom: 12px; }
  .signup-sub { display: none; }
  .signup .field { margin-bottom: 12px; }
  .signup .more-fields { margin-bottom: 12px; }
  .signup .more-fields > summary { min-height: 44px; }
  .field label.consent { font-size: 0.8438rem; line-height: 1.5; gap: 10px; }
  .hero .wrap { gap: 14px; }
  .signup { padding-top: 16px; }
  .signup-title { margin-bottom: 10px; }
  .signup .field > label { font-size: 0.9062rem; }
  .action-tile { min-height: 64px; }
}

/* Consent: short sentence + layered details */
.consent-more { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent-more:hover { color: var(--accent-hover); }
.consent-details { margin: 2px 0 0 34px; padding: 12px 14px; border-radius: 12px; background: var(--hover-bg); border: 1px solid var(--line); font-size: 0.8438rem; line-height: 1.55; color: var(--muted); }
.consent-details[hidden] { display: none; }
.consent-details p { margin: 0 0 6px; }
.consent-details p:last-child { margin-bottom: 0; }
.consent-details b { color: var(--text); font-weight: 650; }
