/* Locked — marketing site.
 *
 * Every value here is lifted from src/theme/tokens.ts so the site and the app
 * read as one product. Do not invent colours: if something is missing, add it
 * to tokens.ts first and mirror it here.
 *
 * The surface treatment follows the `liquid` recipe in
 * src/components/ui/GlassSurface.tsx, whose governing rule is:
 *   "light ON the border curve, ZERO light inside the pane."
 * So panes get a masked gradient RIM, never an interior gradient.
 */

:root {
  /* colors.dark + neon, from tokens.ts */
  --bg:            #0A0A0B;
  --bg-tint:       #16060A;   /* faint oxblood-black, gradient top */
  --bg-deep:       #0B0708;   /* gradient mid */
  --surface:       #111113;
  --surface-hi:    #18181B;
  --border:        #26262B;
  --text:          #F5F5F7;
  --text-muted:    #A1A1AE;
  --text-faint:    #8E8E98;
  --accent:        #FF2740;   /* the ONE confident accent */
  --accent-bright: #FF5468;
  --glow:          rgba(255,39,64,0.55);
  --glow-soft:     rgba(255,39,64,0.16);
  --on-accent:     #FFFFFF;

  /* liquid-glass recipe */
  --glass-tint:    rgba(10,10,14,0.32);
  --glass-blur:    18px;

  /* radius scale */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --maxw: 940px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 22px;               /* type.body from tokens.ts */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Page atmosphere. Mirrors the app's bgTint -> bg -> bgDeep vertical wash:
   oxblood warmth bleeding down from the top edge, never a centred blob. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 62% at 50% -12%, var(--bg-tint) 0%, transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 55%, var(--bg) 100%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Liquid glass ─────────────────────────────────────────────────────────
   Body: clear smoked glass, no ornament. The rim is the ONLY light element —
   a masked gradient border, brightest along the top edge and its corners,
   fading to almost nothing down the sides with a faint catch at the bottom.
   Opacity stops match RIM_STOPS_DARK in GlassSurface.tsx. */
.glass {
  position: relative;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--r-xl);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.25px;                 /* RIM_STROKE_W 2.5, outer half clipped */
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.40) 0%,
    rgba(255,255,255,0.10) 25%,
    rgba(255,255,255,0.02) 55%,
    rgba(255,255,255,0.07) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ── Type scale (tokens.ts `type`) ───────────────────────────────────────── */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: 24px; line-height: 30px; }
h3 { font-size: 17px; line-height: 24px; font-weight: 600; }
p  { margin: 0; color: var(--text-muted); }

/* Cormorant is reserved for editorial moments — tokens.ts calls it out
   explicitly as display-only. One per page, never for UI. */
.editorial {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
  color: var(--text);
}

.lede { font-size: 17px; line-height: 26px; max-width: 46ch; }
.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  border: 1px solid rgba(255,255,255,0.14);   /* neon.fieldBorder */
  background: rgba(255,255,255,0.06);          /* neon.field */
  color: var(--text);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.10); color: var(--text); }
.btn--accent {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 30px -10px var(--glow);
}
.btn--accent:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--on-accent); box-shadow: 0 12px 38px -10px var(--glow); }
.btn svg { width: 18px; height: 18px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 96px; padding: 32px 24px 48px;
  color: var(--text-faint); font-size: 13px; text-align: center;
}
footer a { color: var(--text-muted); margin: 0 10px; }
footer a:hover { color: var(--text); }

/* ── Long-form (privacy / terms) ─────────────────────────────────────────── */
.prose { max-width: 680px; margin: 0 auto; padding: 72px 24px 0; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.prose h2 { margin: 40px 0 10px; color: var(--text); }
.prose p, .prose li { color: var(--text-muted); font-size: 15px; line-height: 25px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code {
  background: var(--surface-hi); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: var(--r-sm); font-size: 13px;
}
.back { display: inline-block; margin-bottom: 28px; color: var(--text-faint); font-size: 13px; }
.back:hover { color: var(--text); }

/* ── Entrance: one orchestrated load, not scattered micro-animations ─────── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .62s cubic-bezier(.22,.61,.36,1) both; }
.d1 { animation-delay: .06s } .d2 { animation-delay: .13s }
.d3 { animation-delay: .20s } .d4 { animation-delay: .27s }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  * { transition: none !important; }
}
