/* EntroPilot landing page. Dark platform look with mint accent (palette from apps/web and the decks).
   No external fonts, no CDNs: system font stack only. */

:root {
  color-scheme: dark;
  --bg: #050914;
  --bg2: #070d1c;
  --card: #0b1222;
  --card2: #0e1729;
  --line: rgba(148, 163, 184, 0.16);
  --line2: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --muted: #a3b1c6;
  --dim: #7a8aa3;
  --mint: #6ee7b7;
  --mint2: #34d399;
  --mint-ink: #04271c;
  --mintdim: rgba(110, 231, 183, 0.12);
  --amber: #fbbf24;
  --amberdim: rgba(251, 191, 36, 0.1);
  --red: #fca5a5;
  --reddim: rgba(248, 113, 113, 0.12);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 18px;
  --wrap: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { max-width: 100%; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #a7f3d0; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--mint); color: var(--mint-ink); padding: 10px 16px; border-radius: 10px; 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;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 9, 20, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; }
.nav { display: none; margin-left: auto; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; border: 1px solid var(--line2); border-radius: 999px; padding: 7px 12px; line-height: 1;
}
.lang:hover { color: var(--text); border-color: var(--mint); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-actions { margin-left: 28px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--mint); color: var(--mint-ink); box-shadow: 0 8px 30px -10px rgba(110, 231, 183, 0.55); }
.btn-primary:hover { background: #8ff0c9; color: var(--mint-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--mint); color: var(--text); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn .arrow { font-family: var(--mono); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint);
  margin: 0 0 14px;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(38px, 9.4vw, 72px); letter-spacing: -0.035em; }
h2 { font-size: clamp(29px, 6.4vw, 46px); }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; font-weight: 650; }
.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 640px; margin: 20px 0 0; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 18px; }
.mint { color: var(--mint); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 900px) { 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); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 52px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(52, 211, 153, 0.16), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -20vw; bottom: -30vw; width: 60vw; height: 60vw;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.08), transparent 70%); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 44px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; background: rgba(11, 18, 34, 0.6);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.18); }
.hero h1 .mint { display: inline; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero-cta .btn { flex: 0 0 auto; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--dim); font-size: 14.5px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); opacity: .8; }

.frame {
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2);
  background: var(--card); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(148, 163, 184, 0.04);
}
.frame img { width: 100%; height: auto; }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card2); }
.frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, 0.3); }
.frame-caption { margin: 12px 2px 0; font-size: 13.5px; color: var(--dim); }

@media (min-width: 1000px) {
  .hero { padding: 84px 0 96px; }
  .hero .wrap { grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.card .k { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--mintdim); color: var(--mint); border: 1px solid rgba(110, 231, 183, 0.25);
}
.icon svg { width: 22px; height: 22px; }
.icon.amber { background: var(--amberdim); color: var(--amber); border-color: rgba(251, 191, 36, 0.25); }

.callout {
  margin-top: 16px; padding: 18px 22px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, 0.28);
  background: var(--amberdim); color: #fde68a; font-size: 16px;
}
.callout strong { color: #fef3c7; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; }
.steps .idx { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; color: var(--mint); display: block; margin-bottom: 16px; }
.steps .idx b { font-size: 30px; letter-spacing: -0.02em; font-weight: 600; margin-right: 6px; }

.entry {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 16px 20px; border: 1px dashed rgba(110, 231, 183, 0.35); border-radius: 14px; color: var(--muted); font-size: 15.5px;
}
.entry .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-ink); background: var(--mint); border-radius: 999px; padding: 4px 10px; }

/* ---------- Video ---------- */
.video-block { margin-top: 40px; }
.video-block[hidden] { display: none; }
.video-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-block .frame-caption { margin-top: 12px; }

/* ---------- Gallery ---------- */
.deliverables { display: grid; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
@media (min-width: 720px) { .deliverables { grid-template-columns: repeat(3, 1fr); } }
.deliverables li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(11, 18, 34, 0.7);
}
.deliverables .check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mintdim); color: var(--mint); margin-top: 1px; }
.deliverables .check svg { width: 14px; height: 14px; }
.deliverables b { display: block; font-weight: 650; }
.deliverables span.d { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

.shots { display: grid; gap: 22px; }
@media (min-width: 820px) { .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; }

.principles { margin-top: 40px; }

/* ---------- Audience ---------- */
.audience .card h3 { font-size: 20px; }
.card.partner { border-color: rgba(110, 231, 183, 0.3); background: linear-gradient(180deg, rgba(110, 231, 183, 0.08), var(--card)); }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.card ul li { margin: 4px 0; }

/* ---------- Waitlist ---------- */
.waitlist .wrap { display: grid; gap: 36px; }
@media (min-width: 1000px) { .waitlist .wrap { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; color: var(--muted); }
.perks li::before { content: "→"; font-family: var(--mono); color: var(--mint); flex: none; }

.form-card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line2); border-radius: 22px; padding: 24px; }
@media (min-width: 560px) { .form-card { padding: 32px; } }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .field .label { font-size: 15px; font-weight: 600; }
.field .opt { color: var(--dim); font-weight: 400; }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
input[type="email"], input[type="text"], select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  background: #060b18; color: var(--text); border: 1px solid var(--line2);
  font: inherit; font-size: 16px; /* 16px avoids iOS zoom on focus */
  transition: border-color .15s ease, box-shadow .15s ease;
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
select option { background: #0b1222; color: var(--text); }
input::placeholder { color: #5d6b82; }
input:focus, select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.18); }
.field.invalid input, .field.invalid select { border-color: #f87171; }
.field-error { color: var(--red); font-size: 14px; min-height: 0; }
.field-error:empty { display: none; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 6px 0 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--mint); }
.consent.invalid { color: var(--red); }

.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-actions { margin-top: 18px; }
.form-actions .btn { width: 100%; }
.form-note { margin: 14px 0 0; font-size: 13.5px; color: var(--dim); }

.status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15.5px; }
.status[hidden] { display: none; }
.status.error { background: var(--reddim); border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; }
.success { text-align: left; }
.success[hidden] { display: none; }
.success .big-check { width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; margin-bottom: 18px; }
.success .big-check svg { width: 28px; height: 28px; }
.success h3 { font-size: 24px; }
.success p { color: var(--muted); margin: 10px 0 0; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(4, 39, 28, 0.3); border-top-color: var(--mint-ink); animation: spin .8s linear infinite; }
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.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; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 650; font-size: 18px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 24px; color: var(--mint); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 14.5px; }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 820px) { .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: 10px 22px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 820px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translateY(150%); transition: transform .25s ease;
}
.mobile-cta .btn { width: 100%; }
.mobile-cta.show { transform: translateY(0); }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- Language hint ---------- */
.lang-hint { background: var(--card2); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lang-hint[hidden] { display: none; }
.lang-hint .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 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); }
.placeholder { background: rgba(251, 191, 36, 0.18); color: #fde68a; border: 1px dashed var(--amber); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.legal .note { margin-top: 28px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); font-size: 14.5px; }
.back { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 26px; color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--text); }
.hero-figure { margin: 0; }
.nf-title { margin-top: 40px; }
.section-head .eyebrow { color: var(--mint); font-size: 12.5px; margin: 0 0 14px; }
.field label.consent { font-weight: 400; font-size: 14.5px; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1fr 1.08fr; } }
