/* 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%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; 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 var(--gutter); }
@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: 19px; 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: 15px; 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: 13px; 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: 15px; }
.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: 16px; 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: 15px; }
.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(36px, 9vw, 68px); letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: clamp(28px, 5.6vw, 44px); }
h3 { font-size: 19px; 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: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lead { margin: 18px 0 0; max-width: 620px; font-size: clamp(17px, 2.3vw, 19.5px); 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: 17.5px; 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);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  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: 15.5px; }
.card .k { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; 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(14px); 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: 70ms; }
  .js .reveal.d2 { transition-delay: 140ms; }
  .js .reveal.d3 { transition-delay: 210ms; }
  .js .reveal.d4 { transition-delay: 280ms; }
}
@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: 12px; 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: 21px; margin: 0 0 4px; }
.signup-sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.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: 14.5px; 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: 15px; 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: 16px; 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: 14px; 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: 15px; 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: 14px; 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: 13.5px; color: var(--dim); text-align: center; }
.status { margin-top: 14px; padding: 13px 15px; border-radius: 12px; font-size: 15px; }
.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: 23px; }
.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: #000;
  border: 1px solid var(--frame-border);
  box-shadow: var(--video-shadow);
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.honesty { display: flex; gap: 10px; align-items: flex-start; justify-content: center; max-width: 760px; margin: 18px auto 0; font-size: 14px; 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: 19px; }
.tile p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.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(36px, 8vw, 60px); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
.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: 16px; }
.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: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.steps .idx b { font-family: var(--display); font-size: 32px; 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: 15.5px; }
.entry b { color: var(--text); }
.entry .tag { font-family: var(--mono); font-size: 11.5px; 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: 15px; }

.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: 15.5px; }
.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: 14px; 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: 20px; }

.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: 18.5px; 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: 24px; 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: 14.5px; }
@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: 13px; }

.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: 14px; 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(32px, 7vw, 48px); margin-bottom: 10px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.01em; line-height: 1.3; }
.legal h3 { font-size: 17px; 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: 14.5px; }
.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: 17px; 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: 14px; }
  .hero-links { margin-top: -10px; }
  .video-section { padding-top: 0; }
  .video-section .section-head { margin-bottom: 18px; }
  .video-section h2 { font-size: 26px; }
  .closing { padding-top: 16px; }
}
.closing { padding-top: 24px; }
@media (min-width: 1024px) { .closing { padding-top: 32px; } }
