
/* ---------------------------------------------------------------- fonts --
   Self-hosted. Google's CDN would leak every visitor's IP to a third party,
   which a privacy-promising French product cannot do, and it would force a
   second origin into the CSP. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2?v=2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2?v=2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------- tokens -- */

:root {
  --night: #0B0E1A;
  --night-elevated: #141828;
  --gold: #D4B570;
  --copper: #B8734D;
  --seafoam: #82A89E;
  --ink: #EDEBDB;
  --ink-muted: #9EA3B3;

  /* Derived only for web depth — hairlines and glass the app does not need. */
  --hairline: rgba(212, 181, 112, 0.16);
  --hairline-soft: rgba(158, 163, 179, 0.14);
  --veil: rgba(20, 24, 40, 0.62);

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --measure: 68ch;
  --page: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-gap: clamp(5rem, 12vh, 9rem);

  --radius-card: 18px;
  --radius-panel: 16px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  /* Fraunces' SOFT and WONK axes are what make this warm rather than the
     default high-contrast display serif everyone reaches for. */
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 100;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: rgba(212, 181, 112, 0.28); color: var(--ink); }

/* -------------------------------------------------------- atmosphere --
   Three stacked layers rather than a flat fill: the app's vertical night
   gradient, a warm gold bloom low-centre behind the hero card, and a cool
   seafoam bloom top-right. Fixed, so they behave like a sky you scroll past. */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58rem 40rem at 50% 88%, rgba(212, 181, 112, 0.10), transparent 62%),
    radial-gradient(44rem 34rem at 88% 4%, rgba(130, 168, 158, 0.09), transparent 60%),
    linear-gradient(to bottom, var(--night) 0%, var(--night-elevated) 100%);
}

.starfield { position: absolute; inset: 0; width: 100%; height: 100%; }

.twinkle {
  animation: twinkle 7s var(--ease) infinite alternate;
  animation-delay: var(--d, 0s);
}

@keyframes twinkle {
  from { opacity: 0.12; }
  to   { opacity: 0.75; }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ------------------------------------------------------------ layout -- */

.wrap {
  width: min(100% - var(--gutter) * 2, var(--page));
  margin-inline: auto;
}

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(3rem, 7vh, 5rem); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--night);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* -------------------------------------------------------- typography -- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  flex: none;
}

.h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); }
.h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.h3 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem); font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 40; }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-muted);
  max-width: var(--measure);
  margin-top: 1.5rem;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section-head--spaced { margin-top: clamp(3rem, 7vh, 4.5rem); }

/* The founding statement. Set in the oracle's own register: serif, italic-ish
   via WONK, and framed by a gold hairline rather than a box. */
.statement {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 72;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  margin-block: 2rem;
  max-width: 34rem;
}

/* ------------------------------------------------------------ header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(1.3);
  background: linear-gradient(to bottom, rgba(11, 14, 26, 0.92), rgba(11, 14, 26, 0.55));
  border-bottom: 1px solid var(--hairline-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 40;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark .star-mark { color: var(--gold); flex: none; }

/* Gold-foil shimmer across the wordmark. A single slow pass, not a loop that
   competes with the content. */
.wordmark__text {
  background: linear-gradient(100deg, var(--ink) 22%, var(--gold) 46%, var(--ink) 70%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil 9s var(--ease) 1.2s infinite;
}

@keyframes foil {
  0%, 62% { background-position: 130% 0; }
  100%    { background-position: -30% 0; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.site-nav a:hover { color: var(--ink); }

/* The links live in their own wrapper so they can be hidden as a group on
   narrow screens; it needs to be a flex container itself, or the parent's gap
   never reaches them and they run together. */
.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

@media (max-width: 860px) {
  .site-nav__links { display: none; }
}

/* -------------------------------------------------------------- CTAs -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

/* Filled pale-gold capsule with the label in night — OnirinoButtonStyle.primary. */
.btn--primary {
  background: var(--gold);
  color: var(--night);
  box-shadow: 0 10px 34px -14px rgba(212, 181, 112, 0.75);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(212, 181, 112, 0.9); }

/* Outlined capsule, label in gold — OnirinoButtonStyle.secondary. */
.btn--ghost {
  border-color: rgba(212, 181, 112, 0.6);
  color: var(--gold);
  background: transparent;
}
.btn--ghost:hover { background: rgba(212, 181, 112, 0.09); transform: translateY(-2px); }

.btn--store {
  background: var(--gold);
  color: var(--night);
  padding: 0.7rem 1.5rem 0.7rem 1.25rem;
  box-shadow: 0 10px 34px -14px rgba(212, 181, 112, 0.75);
}
.btn--store:hover { transform: translateY(-2px); }

.btn--store .store-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn--store .store-label small { font-size: 0.66rem; font-weight: 500; opacity: 0.72; letter-spacing: 0.04em; }
.btn--store .store-label strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 2.25rem; }
.cta-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 1rem; }

/* -------------------------------------------------------------- hero -- */

.hero { padding-top: clamp(3.5rem, 9vh, 7rem); padding-bottom: var(--section-gap); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

/* Single column below the breakpoint, and the copy stays first: a visitor who
   has never heard of Onirino needs the claim before the artefact. minmax(0,1fr)
   rather than 1fr so a wide child can never push the track past the viewport. */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { margin-top: 3rem; }
}

/* --------------------------------------------------------- the card --
   2:3, radius 18, gold border gradient, night-elevated fill — CardView.swift.
   It arrives face down and flips once, which is the app's single most
   recognisable gesture. */

.hero__art { display: grid; place-items: center; perspective: 1600px; }

.card-stage { position: relative; width: min(320px, 78vw); }

/* Breathing halo — a direct port of the app's animation: opacity .2↔.45,
   scale .94↔1.06, 2.6s ease-in-out, forever. */
.card-stage::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 24px;
  background: var(--gold);
  filter: blur(42px);
  opacity: 0.2;
  z-index: 0;
  animation: breathe 2.6s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { opacity: 0.2;  transform: scale(0.94); }
  to   { opacity: 0.45; transform: scale(1.06); }
}

.card {
  position: relative;
  z-index: 1;
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  animation: flip 1.5s var(--ease) 1.1s both;
}

@keyframes flip {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(180deg); }
}

.card__face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: var(--night-elevated);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  /* 2pt gold border gradient, topLeading → bottomTrailing — CardView.swift. */
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--night-elevated), var(--night-elevated)),
    linear-gradient(135deg, var(--gold), var(--copper) 52%, rgba(212, 181, 112, 0.7));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 32px 70px -30px rgba(0, 0, 0, 0.9);
}

.card__face--back { display: grid; place-items: center; }
.card__face--back .emblem { width: 100%; height: auto; }

.card__hint {
  position: absolute;
  bottom: 1.4rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.card__face--front {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.4rem;
}

/* The generated artwork slot. Procedural for now; dropping a real card image
   in here later is a one-line change. */
.card__art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 48% at 50% 32%, rgba(212, 181, 112, 0.30), transparent 70%),
    radial-gradient(120% 80% at 50% 110%, rgba(184, 115, 77, 0.32), transparent 62%),
    linear-gradient(to bottom, #16203a, #0d1122);
}

.card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 34%, rgba(11, 14, 26, 0.92) 82%);
}

.card__well {
  position: absolute;
  left: 50%;
  top: 34%;
  translate: -50% -50%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(212, 181, 112, 0.55);
  background: radial-gradient(circle at 50% 40%, rgba(212, 181, 112, 0.42), rgba(11, 14, 26, 0.1) 70%);
  box-shadow: 0 0 30px rgba(212, 181, 112, 0.35), inset 0 0 22px rgba(212, 181, 112, 0.28);
}

.card__ripple {
  position: absolute;
  left: 50%;
  top: 34%;
  translate: -50% -50%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(212, 181, 112, 0.4);
  animation: ripple 4.2s var(--ease) infinite;
}
.card__ripple:nth-of-type(2) { animation-delay: 1.4s; }
.card__ripple:nth-of-type(3) { animation-delay: 2.8s; }

@keyframes ripple {
  from { transform: scale(1);   opacity: 0.55; }
  to   { transform: scale(2.1); opacity: 0; }
}

.card__name {
  position: relative;
  font-family: var(--display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 40;
  font-size: 1.32rem;
  line-height: 1.15;
  color: var(--ink);
}

.card__body { position: relative; font-size: 0.78rem; line-height: 1.5; color: var(--ink-muted); }

.card__question {
  position: relative;
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 30;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--gold);
  border-top: 1px solid var(--hairline);
  padding-top: 0.75rem;
}

.card-caption {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
  max-width: 22rem;
}

/* ------------------------------------------------------------- moons -- */

/* One unbroken lunation across the full width. It must never wrap: a 28-day
   cycle broken over four rows reads as a grid of dots, not as a month. The
   moons shrink with the viewport instead. */
.moon-band {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-block: 1px solid var(--hairline-soft);
}

.moon-band > * { display: block; flex: 0 1 auto; min-width: 0; }

.moon-band .moon {
  width: clamp(9px, 2.6vw, 32px);
  height: auto;
  animation: moon-in 0.7s var(--ease) both;
  animation-delay: calc(var(--i) * 42ms);
}

@keyframes moon-in {
  from { opacity: 0; transform: scale(0.4) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.phase h3 { margin-bottom: 0.4rem; }
.phase__range {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.phase p { color: var(--ink-muted); font-size: 0.95rem; }

.band-caption {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------ ritual --
   Gold for the morning, seafoam for the evening, copper for the closed middle
   of the day — the accent semantics of SectionCard.swift. */

.beats { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.beat {
  position: relative;
  background: var(--night-elevated);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-panel);
  padding: 1.75rem 1.5rem 1.75rem 1.75rem;
  overflow: hidden;
}

/* The 2pt accent rule down the leading edge. */
.beat::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  width: 2px;
  background: var(--accent, var(--gold));
}

.beat:nth-child(1) { --accent: var(--gold); }
.beat:nth-child(2) { --accent: var(--copper); }
.beat:nth-child(3) { --accent: var(--seafoam); }

.beat__time {
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 60;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.beat__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.beat h3 { margin-top: 1.1rem; margin-bottom: 0.6rem; }
.beat p { color: var(--ink-muted); font-size: 0.95rem; }

.ritual-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.ritual-note .star-mark { color: var(--seafoam); flex: none; }

/* -------------------------------------------------------- difference -- */

.contrast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
}

.contrast__col h3 { margin-bottom: 1.5rem; }

.never-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }

.never-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* A struck-through dash rather than a red cross — the tone is calm refusal,
   not an error state. */
.never-list li::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1px;
  background: var(--copper);
  margin-top: 0.8rem;
}

.always-list { display: grid; gap: 1.5rem; }
.always-list h4 {
  font-size: 1.05rem;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 30;
  margin-bottom: 0.35rem;
}
.always-list p { color: var(--ink-muted); font-size: 0.95rem; }

.always-list > div {
  border-left: 1px solid var(--hairline);
  padding-left: 1.25rem;
}

/* --------------------------------------------------------- the deck -- */

.styles-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.style-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.style-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.5rem;
  border: 1px solid var(--hairline-soft);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  background: rgba(20, 24, 40, 0.5);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.style-chip:hover { border-color: var(--hairline); color: var(--ink); transform: translateY(-2px); }

/* Colours come from the per-index .sw-N classes generated below, not from an
   inline style attribute — style-src 'self' blocks those outright. */
.style-chip__swatch {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  flex: none;
  border: 1px solid rgba(237, 235, 219, 0.18);
  background: linear-gradient(135deg, var(--a, #2a2f45), var(--b, #6b7186));
}

.deck-note {
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: var(--measure);
}

/* ------------------------------------------------------------ panels -- */

.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }

.panel {
  background: var(--night-elevated);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-panel);
  padding: 1.6rem;
}

.panel h3 { font-size: 1.05rem; font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 30; margin-bottom: 0.5rem; }
.panel p { color: var(--ink-muted); font-size: 0.93rem; }

/* ----------------------------------------------------------- pricing -- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.plan {
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-panel);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--night-elevated);
}

.plan--premium {
  border-color: var(--hairline);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(212, 181, 112, 0.12), transparent 62%),
    var(--night-elevated);
  box-shadow: 0 30px 70px -40px rgba(212, 181, 112, 0.5);
}

.plan__name { font-size: 1.3rem; font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 40; }

.plan__badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.plan__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.5rem; margin-block: 1.5rem 1.75rem; }

.plan__price {
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 90;
  font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.9rem);
  line-height: 1;
}

.plan__period { font-size: 0.85rem; color: var(--ink-muted); margin-left: 0.35rem; }

.plan__features-title { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 0.85rem; }

.plan__features { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.7rem; }

.plan__features li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.plan__features li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
}

.plan--free .plan__features li::before { background: var(--ink-muted); }

.disclosure {
  margin-top: 2rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: var(--measure);
}

/* --------------------------------------------------------------- faq -- */

.faq-list { display: grid; gap: 0; max-width: 52rem; border-top: 1px solid var(--hairline-soft); }

details {
  border-bottom: 1px solid var(--hairline-soft);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 30;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  transition: color 0.25s var(--ease);
}

summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--gold); }

/* A plus that becomes a minus. Drawn with two rules so it stays crisp. */
summary::after,
summary::before {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
summary::before { transform: rotate(90deg); }
details[open] summary::before { transform: rotate(0deg); opacity: 0; }

details p {
  color: var(--ink-muted);
  font-size: 0.97rem;
  padding-bottom: 1.5rem;
  max-width: var(--measure);
}

/* ---------------------------------------------------------- waitlist -- */

.waitlist {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background:
    radial-gradient(110% 100% at 12% 0%, rgba(212, 181, 112, 0.10), transparent 60%),
    var(--night-elevated);
  max-width: 42rem;
}

.waitlist h3 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); margin-bottom: 0.75rem; }
.waitlist > p { color: var(--ink-muted); font-size: 0.97rem; }

.waitlist__form { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.waitlist__field { flex: 1 1 15rem; }

.waitlist input[type="email"] {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-soft);
  background: rgba(11, 14, 26, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease);
}

.waitlist input[type="email"]::placeholder { color: rgba(158, 163, 179, 0.6); }
.waitlist input[type="email"]:focus { border-color: var(--gold); outline: none; }

/* Honeypot: off-screen and hidden from assistive tech, but still a real field
   a naive bot will happily fill in. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist__consent { margin-top: 1rem; font-size: 0.8rem; color: var(--ink-muted); }
.waitlist__consent a { color: var(--gold); }

.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(212, 181, 112, 0.07);
  font-size: 0.92rem;
}

.notice--error { border-color: rgba(184, 115, 77, 0.5); background: rgba(184, 115, 77, 0.08); }
.notice strong { display: block; color: var(--ink); }
.notice span { color: var(--ink-muted); }
.notice .star-mark { color: var(--gold); flex: none; margin-top: 0.15rem; }
.notice--error .star-mark { color: var(--copper); }

/* ---------------------------------------------------------- final CTA -- */

.final {
  text-align: center;
  padding-block: clamp(5rem, 13vh, 9rem);
  position: relative;
}

.final .h2 { max-width: 20ch; margin-inline: auto; }
.final p { color: var(--ink-muted); margin-top: 1.25rem; }
.final .cta-row { justify-content: center; }

/* ------------------------------------------------------------ footer -- */

.site-footer {
  border-top: 1px solid var(--hairline-soft);
  padding-block: clamp(3rem, 7vh, 4.5rem) 2.5rem;
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.5rem;
}

.footer__tagline {
  font-family: var(--display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 40;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink);
  max-width: 26ch;
  margin-top: 1rem;
}

.footer__col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__col a { color: var(--ink-muted); text-decoration: none; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

/* ------------------------------------------------------- legal pages -- */

.doc { padding-block: clamp(3.5rem, 9vh, 6rem); }
.doc__body { max-width: var(--measure); }
.doc__body h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.doc__body p { color: var(--ink-muted); margin-top: 1rem; }
.doc__body a { color: var(--gold); }
.doc__body ol { color: var(--ink-muted); padding-left: 1.2rem; margin-top: 1rem; display: grid; gap: 0.6rem; }

.tbd {
  margin-top: 2.5rem;
  border: 1px dashed rgba(212, 181, 112, 0.4);
  border-radius: var(--radius-panel);
  padding: 1.5rem;
  background: rgba(212, 181, 112, 0.04);
}

.tbd__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.tbd p { color: var(--ink-muted); margin: 0; }
.tbd p + p { margin-top: 0.75rem; }

/* ------------------------------------------------------------ reveals --
   Scroll-linked, and deliberately additive: without animation-timeline support
   the rules never apply and everything is simply visible. Nothing is ever
   hidden by a feature the browser may not have. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
  }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* Hero children arrive on a stagger on load — one orchestrated moment rather
   than scattered micro-interactions. */
.stagger > * {
  animation: reveal-in 0.85s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}

/* --------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* The flip is the one animation whose end state matters: without it the card
     would settle face down and the front would never be readable. */
  .card { transform: rotateY(180deg); }
  .card-stage::before { opacity: 0.32; transform: none; }
}

@media print {
  .sky, .grain, .starfield, .site-header, .waitlist { display: none; }
  body { background: #fff; color: #000; }
}

.sw-0 { --a: #1a1a18; --b: #e8e2d4; }
.sw-1 { --a: #0d2f6b; --b: #e9eff7; }
.sw-2 { --a: #8d8c86; --b: #dfdcd2; }
.sw-3 { --a: #7a5c3e; --b: #c3b393; }
.sw-4 { --a: #6f8fb0; --b: #e6c98f; }
.sw-5 { --a: #2c4a72; --b: #d9c7a3; }
.sw-6 { --a: #3a4a58; --b: #c99a63; }
.sw-7 { --a: #4a6b52; --b: #d8b56b; }
.sw-8 { --a: #12203f; --b: #d4b570; }
.sw-9 { --a: #1f1a15; --b: #cfc3ac; }
.sw-10 { --a: #1b4b6b; --b: #e4d3b0; }
.sw-11 { --a: #2b2118; --b: #d8cbb4; }
.sw-12 { --a: #4b3fbe; --b: #ff6f5e; }
.sw-13 { --a: #1d3d5c; --b: #c9a227; }
.sw-14 { --a: #5b2b3f; --b: #d9c39a; }
.sw-15 { --a: #3b2f7a; --b: #d4b570; }
.sw-16 { --a: #8c2f2a; --b: #e3cf9e; }
.sw-17 { --a: #6b1f22; --b: #d4af37; }

.stagger > *:nth-child(1) { --i: 0; }
.stagger > *:nth-child(2) { --i: 1; }
.stagger > *:nth-child(3) { --i: 2; }
.stagger > *:nth-child(4) { --i: 3; }
.stagger > *:nth-child(5) { --i: 4; }
.stagger > *:nth-child(6) { --i: 5; }
.stagger > *:nth-child(7) { --i: 6; }
.stagger > *:nth-child(8) { --i: 7; }

.moon-band > *:nth-child(1) { --i: 0; }
.moon-band > *:nth-child(2) { --i: 1; }
.moon-band > *:nth-child(3) { --i: 2; }
.moon-band > *:nth-child(4) { --i: 3; }
.moon-band > *:nth-child(5) { --i: 4; }
.moon-band > *:nth-child(6) { --i: 5; }
.moon-band > *:nth-child(7) { --i: 6; }
.moon-band > *:nth-child(8) { --i: 7; }
.moon-band > *:nth-child(9) { --i: 8; }
.moon-band > *:nth-child(10) { --i: 9; }
.moon-band > *:nth-child(11) { --i: 10; }
.moon-band > *:nth-child(12) { --i: 11; }
.moon-band > *:nth-child(13) { --i: 12; }
.moon-band > *:nth-child(14) { --i: 13; }
.moon-band > *:nth-child(15) { --i: 14; }
.moon-band > *:nth-child(16) { --i: 15; }
.moon-band > *:nth-child(17) { --i: 16; }
.moon-band > *:nth-child(18) { --i: 17; }
.moon-band > *:nth-child(19) { --i: 18; }
.moon-band > *:nth-child(20) { --i: 19; }
.moon-band > *:nth-child(21) { --i: 20; }
.moon-band > *:nth-child(22) { --i: 21; }
.moon-band > *:nth-child(23) { --i: 22; }
.moon-band > *:nth-child(24) { --i: 23; }
.moon-band > *:nth-child(25) { --i: 24; }
.moon-band > *:nth-child(26) { --i: 25; }
.moon-band > *:nth-child(27) { --i: 26; }
.moon-band > *:nth-child(28) { --i: 27; }

.twinkle.t0 { animation-delay: 0.0s; }
.twinkle.t1 { animation-delay: 1.7s; }
.twinkle.t2 { animation-delay: 3.4s; }
.twinkle.t3 { animation-delay: 5.1s; }
.twinkle.t4 { animation-delay: 6.8s; }
.twinkle.t5 { animation-delay: 8.5s; }
