/* SnowStory — snowstory.app
   Colors/type from the app token system (mobile/src/styles/tokens.ts) and
   brand/BRAND.md. Outfit = display ≥22px, Inter = body.
   Fonts are self-hosted (variable woff2, latin subset). The only third-party
   request the site can make is Google Analytics on the home page, and only
   after the visitor accepts (site/consent.js). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-UcC73Fwr.woff2) format('woff2');
  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: 'Outfit';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/fonts/outfit-QGYvz_MV.woff2) format('woff2');
  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;
}

:root {
  --bg: #0B0E14;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --accent: #00F0FF;
  --accent-muted: rgba(0, 240, 255, 0.1);
  --accent-glow: rgba(0, 240, 255, 0.3);
  --text: #FFFFFF;
  --text-secondary: #8E9BAE;
  --text-tertiary: #3A445D;
  --text-on-accent: #0B0E14;
  --warning: #F59E0B;
  --maxw: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: 'Outfit', 'Inter', sans-serif; }

/* ── Wordmark (brand/BRAND.md) ─────────────────────────────────────── */
.wordmark {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .story { color: var(--accent); font-weight: 600; }

/* ── Header ────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-inner .wordmark { font-size: 20px; }
nav { display: flex; gap: 24px; }
nav a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 600;
}
nav a:hover { color: var(--accent); }

/* ── Landing hero ──────────────────────────────────────────────────── */
.hero {
  max-width: 1080px; margin: 0 auto;
  padding: 72px 24px 56px;
  display: flex; align-items: center; gap: 56px;
  flex-wrap: wrap; justify-content: center;
}
.hero-copy { flex: 1 1 400px; max-width: 540px; }
.hero img.freddy { width: 260px; max-width: 60vw; height: auto; }
.hero h1 {
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.5px; margin-bottom: 18px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  color: var(--text-secondary); font-size: 18px; margin-bottom: 28px;
}
.badge-soon {
  display: inline-block;
  background: var(--accent-muted); color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  border-radius: 10px; padding: 6px 14px; margin-bottom: 20px;
  text-transform: uppercase;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-pill {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 20px; color: var(--text-secondary);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}

/* ── Feature band ──────────────────────────────────────────────────── */
.features {
  max-width: 1080px; margin: 0 auto;
  padding: 24px 24px 88px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 26px;
}
.feature .glyph { font-size: 30px; margin-bottom: 14px; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-secondary); font-size: 15px; }

/* ── Legal / article pages ─────────────────────────────────────────── */
.article {
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px 24px 96px;
}
.article h1 {
  font-size: 34px; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.article .meta {
  color: var(--text-tertiary); font-size: 14px; margin-bottom: 36px;
}
.article h2 {
  font-size: 22px; font-weight: 700;
  margin: 40px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.article h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.article p, .article li { color: var(--text-secondary); margin-bottom: 12px; }
.article li { margin-bottom: 8px; }
.article ul { padding-left: 22px; margin-bottom: 16px; }
.article strong { color: var(--text); font-weight: 600; }
.article a { color: var(--accent); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px; margin: 20px 0;
}
.callout.warn { border-left-color: var(--warning); }
.callout p:last-child { margin-bottom: 0; }

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 24px 48px;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  align-items: center; justify-content: space-between;
  color: var(--text-tertiary); font-size: 13px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-inner .wordmark { font-size: 15px; }

/* ── 404 ───────────────────────────────────────────────────────────── */
.lost {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px; gap: 10px;
}
.lost img { width: 180px; margin-bottom: 10px; }
.lost h1 { font-size: 30px; font-weight: 800; }
.lost p { color: var(--text-secondary); }
.lost a {
  margin-top: 16px;
  background: var(--accent); color: var(--text-on-accent);
  font-weight: 800; text-decoration: none;
  border-radius: 14px; padding: 12px 26px;
  box-shadow: 0 4px 18px var(--accent-glow);
}

@media (max-width: 640px) {
  .hero { padding-top: 44px; gap: 32px; }
  nav { gap: 16px; }
}

/* ── FAQ (delight pass 2026-08-30: even the FAQ is SnowStory) ─────────── */
.faq-hero {
  display: flex; align-items: center; gap: 28px;
  max-width: 760px; margin: 48px auto 8px; padding: 0 24px;
}
.faq-hero img { width: 140px; max-width: 32vw; height: auto; }
.faq-hero h1 { font-family: 'Outfit', 'Inter', sans-serif; font-size: 34px; margin: 0 0 8px; }
.faq-hero h1 .accent { color: var(--accent); }
.faq-hero .lede { color: var(--text-secondary); margin: 0; }
.faq-list { max-width: 760px; margin: 24px auto 64px; padding: 0 24px; }
.faq-item {
  background: var(--surface, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; margin-bottom: 14px; overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--accent-glow); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  gap: 12px; padding: 18px 20px; font-weight: 600; font-size: 17px;
  font-family: 'Outfit', 'Inter', sans-serif;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '＋'; color: var(--accent); font-weight: 600; flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::before { content: '－'; }
.faq-item summary:hover { color: var(--accent); }
.faq-body { padding: 0 20px 18px 46px; }
.faq-body p, .faq-body li { color: var(--text-secondary); margin-bottom: 12px; }
.faq-body strong { color: var(--text); font-weight: 600; }
.faq-body a { color: var(--accent); text-decoration: none; }
.faq-body a:hover { text-decoration: underline; }
.faq-body ol { padding-left: 20px; }
.faq-body h3 { font-size: 15.5px; font-weight: 700; margin: 16px 0 6px; }
.faq-growing {
  max-width: 760px; margin: 0 auto 72px; padding: 14px 24px;
  text-align: center; color: var(--text-secondary); font-size: 14.5px;
}
.faq-growing .accent { color: var(--accent); }

/* FAQ delight polish: smooth unfold + hover lift (owner 2026-08-30).
   interpolate-size animates the details open/close in modern browsers;
   older ones fall back to an instant (still correct) toggle. */
:root { interpolate-size: allow-keywords; }
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.28s ease, content-visibility 0.28s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }
.faq-item:hover {
  border-color: var(--accent-glow);
  transform: translateY(-1px);
}
.faq-item { transition: border-color 0.2s ease, transform 0.2s ease; }
.faq-item summary::before { transition: transform 0.25s ease; }
.faq-item[open] summary::before { transform: rotate(180deg); }
