/* FourCondition — shared design system.
   Brand palette is unchanged from the original identity: navy ground, cream type, coral for the
   fourth square of the mark and for actions. Everything else is neutral support derived from those.
   Motion: one-shot reveals, hover feedback and a few product micro-loops; all rest under reduced motion. */
:root {
  /* Brand */
  --navy: #0b1724;
  --navy-0: #07111b;
  --navy-2: #102033;
  --navy-3: #172b42;
  --cream: #f4ecdc;
  --cream-2: #cdc4b2;
  --cream-3: #a39b8b;
  --coral: #f26b5b;
  --coral-hover: #f5826f;
  --coral-glow: rgba(242, 107, 91, 0.32);
  --on-coral: #0b1724;
  /* Support */
  --line: rgba(244, 236, 220, 0.09);
  --line-2: rgba(244, 236, 220, 0.16);
  --line-3: rgba(244, 236, 220, 0.26);
  --surface: rgba(244, 236, 220, 0.035);
  --surface-2: rgba(244, 236, 220, 0.06);
  --well: rgba(7, 17, 27, 0.6);
  --pass: #8fd1ab;
  --pass-bg: rgba(143, 209, 171, 0.08);
  --warn: #f0c27a;
  --glass: linear-gradient(180deg, rgba(244, 236, 220, 0.055), rgba(244, 236, 220, 0.018));
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, 0.55);
  --glass-shadow: var(--shadow);
  /* Type */
  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  /* Shape & rhythm */
  --r-sm: 6px;
  --radius: 10px;
  --r-lg: 14px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .2s;
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cream); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--t); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.86em; color: var(--cream); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Display headings: solid cream; .dim marks the quieter second sentence of a heading */
.grad { color: var(--cream); }
.dim { color: var(--cream-3); }

/* Lucide icons (stroke icons, inherit colour) */
.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 22px; height: 22px; }

/* ── Ambient background: static, low-opacity grid + two soft brand-tinted lights ── */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 72%);
  opacity: .55;
}
.orb-p { position: absolute; inset: 0; will-change: transform; }   /* parallax wrapper (site.js) */
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.orb-1 { width: 560px; height: 520px; left: 50%; top: -260px; margin-left: -280px; background: radial-gradient(circle, rgba(242, 107, 91, .5), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.orb-2 { width: 620px; height: 620px; right: -220px; top: 30vh; background: radial-gradient(circle, rgba(70, 120, 190, .4), transparent 65%); animation: drift2 24s ease-in-out infinite alternate; }
.orb-3 { width: 460px; height: 460px; left: -180px; top: 70vh; background: radial-gradient(circle, rgba(244, 236, 220, .12), transparent 65%); animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(80px, 60px, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-120px, -40px, 0) scale(.9); } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 999; background: var(--cream); color: var(--navy); padding: 8px 12px; border-radius: var(--r-sm); }

/* ── Surfaces ── */
.glass, .panel {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
/* Top edge highlight on panels */
.panel::before { content: ""; position: absolute; inset: -1px 12% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 236, 220, .28), transparent); pointer-events: none; }
/* Cursor spotlight (site.js sets --mx/--my) */
.spot { overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -200px), rgba(244, 236, 220, .07), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }
.lift { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.lift:hover { transform: translateY(-2px); border-color: var(--line-2); }
/* 3D tilt toward the cursor (site.js sets --rx/--ry) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease), border-color .25s; transform-style: preserve-3d; }
.tilt:hover { transition-duration: .1s, .25s; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.01em;
  border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow .3s, transform .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-coral { background: var(--coral); color: var(--on-coral); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(242,107,91,.4), 0 8px 24px -8px var(--coral-glow); }
.btn-coral:hover { background: var(--coral-hover); color: var(--on-coral); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(242,107,91,.5), 0 12px 32px -8px var(--coral-glow); }
.btn-outline { background: var(--surface); color: var(--cream); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--line-3); background: var(--surface-2); color: var(--cream); }
.btn-coral-outline { background: rgba(242, 107, 91, .07); color: var(--coral); border-color: rgba(242, 107, 91, .45); }
.btn-coral-outline:hover { background: var(--coral); color: var(--on-coral); border-color: var(--coral); }
.btn-ghost { background: transparent; color: var(--cream-2); }
.btn-ghost:hover { color: var(--cream); background: var(--surface); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Logo ── */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--cream); text-decoration: none; letter-spacing: -0.025em; }
.logo:hover { color: var(--cream); }
.logo-mark { width: 22px; height: 22px; flex-shrink: 0; }
.logo-mark rect { transition: fill .3s; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.nav.scrolled, .nav.open { background: rgba(11, 23, 36, .78); border-color: var(--line); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 6px; color: var(--cream-2); text-decoration: none; font-size: 14px; transition: color var(--t), background-color var(--t); }
.nav-links a:hover { color: var(--cream); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--cream); cursor: pointer; }
.nav-toggle .i-x { display: none; }
.nav.open .nav-toggle .i-menu { display: none; }
.nav.open .nav-toggle .i-x { display: block; }
.menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-actions .hide-sm { display: none; }
  .nav-toggle { display: inline-flex; }
  .menu { position: fixed; inset: 64px 0 0; z-index: 49; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px max(24px, env(safe-area-inset-bottom, 0px)); background: rgba(11, 23, 36, .97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav.open + .menu { opacity: 1; visibility: visible; }
  .menu a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--cream); text-decoration: none; }
  .menu .btn { margin-top: 16px; min-height: 52px; }
  body.menu-open { overflow: hidden; }
}

/* ── Sections ── */
.section { padding-block: 128px; position: relative; }
@media (max-width: 720px) { .section { padding-block: 80px; } }
.divide { border-top: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--coral); }
.section h2 { font-size: clamp(34px, 4.6vw, 54px); max-width: 18ch; }
.lede { color: var(--cream-2); font-size: 18px; max-width: 58ch; margin-top: 18px; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center h2, .section-head.center .lede { margin-inline: auto; }
.section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.section-head.split .lede { margin-top: 0; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* Tags / chips */
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--mono); letter-spacing: .04em; padding: 5px 8px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--cream-3); background: var(--surface); white-space: nowrap; }
.tag-coral { color: var(--coral); border-color: rgba(242, 107, 91, .4); background: rgba(242, 107, 91, .07); }
.tag-pass { color: var(--pass); border-color: rgba(143, 209, 171, .35); background: var(--pass-bg); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 0 rgba(143, 209, 171, .6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 6px rgba(143, 209, 171, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 209, 171, 0); } }

/* Condition grid — the logo's four squares as a status indicator. .q.on = condition met; 4/4 turns the last square coral. */
.qgrid { display: inline-grid; grid-template-columns: repeat(2, 7px); gap: 2px; vertical-align: middle; }
.qgrid.row { grid-template-columns: repeat(4, 8px); gap: 3px; }
.qgrid i { width: 7px; height: 7px; border-radius: 1.5px; background: rgba(244, 236, 220, .14); }
.qgrid.row i { width: 8px; height: 8px; }
.qgrid i.on { background: var(--cream); }
.qgrid.full i:last-child { background: var(--coral); }

/* ── Scroll reveal: site.js scrubs translate/scale/opacity with scroll position, both ways.
   Visible by default so nothing hides if JS fails. Uses `translate`/`scale`, not `transform`, so it composes with .tilt. */
.reveal { will-change: translate, opacity; transition: translate .18s linear, scale .18s linear, opacity .18s linear, transform .4s var(--ease); }
/* Hero/page intro: plays once on load */
.intro { animation: intro .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }
@keyframes intro { from { opacity: 0; translate: 0 20px; filter: blur(6px); } }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; color: var(--cream-3); font-size: 14px; background: linear-gradient(180deg, transparent, rgba(7, 17, 27, .6)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-brand p { margin-top: 14px; max-width: 34ch; color: var(--cream-3); line-height: 1.6; }
.foot-col h3 { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-col a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--cream-2); text-decoration: none; }
.foot-col a:hover { color: var(--cream); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-base p { max-width: 70ch; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── Cookie banner ── */
.cookie {
  position: fixed; z-index: 100;
  left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 16px 18px; font-size: 14px; color: var(--cream-2);
  background: rgba(16, 32, 51, .88); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 260px; }
.cookie-actions { display: flex; gap: 8px; }

/* ── Mobile action bar ── */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: flex; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px 16px max(10px, env(safe-area-inset-bottom, 0px)); background: rgba(11, 23, 36, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1; }
  body.has-mbar { padding-bottom: 72px; }
  body.has-mbar .cookie { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Document pages (terms, privacy, refunds, risk, 404, success) ── */
.doc { max-width: 780px; margin: 48px auto 96px; padding: 48px clamp(20px, 5vw, 56px); position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
@media (max-width: 820px) { .doc { margin: 24px 16px 64px; } }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc .meta { font-family: var(--mono); font-size: 13px; color: var(--cream-3); margin-bottom: 40px; }
.doc h2 { font-size: 20px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--cream-2); font-size: 16px; line-height: 1.75; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }
.doc strong { color: var(--cream); }
.doc .highlight { border-left: 2px solid var(--coral); padding: 4px 0 4px 18px; margin-bottom: 8px; }
.doc .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  /* Keep fades, ticker, chart drawing and ambient glows; drop the large movement (slides, 3D, parallax, smooth jumps). */
  html { scroll-behavior: auto; }
  .tilt { transform: none !important; }
  .intro { animation-name: introFade; }
  @keyframes introFade { from { opacity: 0; } }
}
