/* AISurvival.club marketing site. Static, no JavaScript. Colours and type match the app
   (src/ui/style.ts): dark by default like the app, light when the system prefers it. */

@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark light;
  --bg: #0F1312; --surface: #171C1A; --surface2: #1F2623; --line: #2B3430;
  --text: #ECF0ED; --muted: #9DA9A3;
  --accent: #E9A23B; --accentInk: #1B1305; --accentSoft: rgba(233, 162, 59, .14);
  --ok: #63C08E; --okSoft: rgba(99, 192, 142, .14);
  --alert: #EE7E66; --alertSoft: rgba(238, 126, 102, .12);
  --info: #82B5E8; --infoSoft: rgba(130, 181, 232, .14);
  --glow: rgba(233, 162, 59, .16);
  --sans: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --radius: 16px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F3F1EB; --surface: #FFFFFF; --surface2: #ECE8DF; --line: #DAD4C7;
    --text: #1B201E; --muted: #59625D;
    --accent: #9C5700; --accentInk: #FFFFFF; --accentSoft: rgba(156, 87, 0, .10);
    --ok: #2D7A52; --okSoft: rgba(45, 122, 82, .10);
    --alert: #B23F28; --alertSoft: rgba(178, 63, 40, .08);
    --info: #2B5F8E; --infoSoft: rgba(43, 95, 142, .10);
    --glow: rgba(156, 87, 0, .10);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accentInk); font-weight: 700; }
.skip:focus { left: 12px; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--accent); color: var(--accentInk); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px; }
.brand .tld { color: var(--muted); font-weight: 400; }
.site-nav { display: none; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 700; }
.site-nav a:hover { color: var(--text); }
.site-header .btn { margin-left: auto; }
@media (min-width: 900px) { .site-nav { display: flex; } .site-header .btn { margin-left: 8px; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.btn-primary { background: var(--accent); color: var(--accentInk); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.site-header .btn { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 9vw, 68px); margin-top: 14px; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--accent); }
.hero .lead { margin-top: 22px; font-size: clamp(18px, 2.4vw, 20px); color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.hero .facts li { display: flex; align-items: center; gap: 8px; }
.hero .facts li::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--ok); }
.device { justify-self: center; width: min(300px, 78vw); padding: 10px; border-radius: 44px; background: #000; box-shadow: 0 0 0 2px var(--line), 0 30px 80px rgba(0, 0, 0, .45); }
.device img { width: 100%; height: auto; border-radius: 34px; }
.device-figure { margin: 0; }
.device-caption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; }
  .device { width: 320px; }
}

/* ---- sections ---- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 46em; display: grid; gap: 12px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 5vw, 42px); }
.section-head p { font-size: 18px; color: var(--muted); }
@media (min-width: 900px) { .section { padding: 104px 0; } }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); }
.icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accentSoft); color: var(--accent); }
.icon svg { width: 22px; height: 22px; }
/* What is still being built gets its own full-width row. */
.grid > .card[data-status="development"] { grid-column: 1 / -1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.why-copy { display: grid; gap: 16px; max-width: 46em; font-size: 18px; color: var(--muted); margin-bottom: 36px; }
.why-copy strong { color: var(--text); }

/* status badges */
.badge { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.badge-ok { background: var(--okSoft); color: var(--ok); }
.badge-part { background: var(--accentSoft); color: var(--accent); }
.badge-dev { border: 1px dashed var(--info); color: var(--info); background: transparent; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.steps li::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 9px; background: var(--accentSoft); color: var(--accent); font-family: var(--mono); font-weight: 700; display: grid; place-items: center; }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } .steps li { grid-template-columns: 1fr; } }

.note { margin-top: 20px; display: flex; gap: 14px; align-items: flex-start; border: 1px dashed var(--info); background: var(--infoSoft); border-radius: 14px; padding: 16px 18px; }
.note strong { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--info); margin-bottom: 4px; }
.note-icon { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--info); }
.note-alert { border-color: var(--alert); background: var(--alertSoft); }
.note-alert .note-icon { color: var(--alert); }
.note-alert strong { color: var(--alert); }

/* privacy principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.principles li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.principles svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--ok); }
.principles h3 { font-size: 17px; margin-bottom: 2px; }
.principles p { color: var(--muted); font-size: 16px; }

/* status */
.status { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.status ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.status li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.status li:first-child { border-top: none; }
.status li b { display: block; }
.status li span { color: var(--muted); font-size: 15px; }
.tick, .ring { width: 22px; height: 22px; flex: none; margin-top: 2px; border-radius: 999px; display: grid; place-items: center; }
.tick { background: var(--okSoft); color: var(--ok); }
.tick svg { width: 14px; height: 14px; }
.ring { border: 2px dashed var(--info); }

/* call to action */
.cta { text-align: center; display: grid; justify-items: center; gap: 16px; padding: 56px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); background-image: radial-gradient(60% 120% at 50% 0%, var(--glow), transparent); }
.cta h2 { font-size: clamp(28px, 4.5vw, 38px); }
.cta p { color: var(--muted); max-width: 36em; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 72px; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.site-footer nav a:hover { color: var(--text); }
.footer-tagline { margin-top: 10px; }
.site-footer small { color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* ---- simple pages (privacy, terms, 404) ---- */
.page { padding: 64px 0 24px; }
.page .wrap { max-width: 760px; display: grid; gap: 18px; }
.page h1 { font-size: clamp(34px, 6vw, 48px); }
.page p { color: var(--muted); font-size: 18px; }
