/* The Well — marketing site
   Tokens mirror src/lib/theme.ts. Type: Bricolage Grotesque (display),
   Instrument Serif italic (voice), Geist (body). */

:root {
  /* Solid tokens — names and values mirror src/lib/theme.ts */
  --paper: #FCFAEE;
  --paper-light: #FFFCF4;
  --paper-deep: #EDE5D5;
  --paper-on-dark: #F8F4EC;
  --paper-on-dark-soft: #CBC8C2;
  --paper-on-dark-muted: #94928E;
  --ink: #1A2960;
  --ink-muted: #4A557D;
  --ink-faint: #8C95B0;
  --indigo-action: #2A47A0;
  --indigo-pressed: #13205A;
  --indigo-soft: #E2EAF8;
  --cyan: #28BFC0;
  --cyan-light: #99E2E3;
  --border: #DCD6C0;

  /* Alpha derivations of the tokens above */
  --paper-veil: rgba(252, 250, 238, 0.92); /* PAPER — pinned header */
  --scrim: rgba(15, 10, 25, 0.45); /* BACKDROP — modal scrim */
  --border-on-dark: rgba(248, 244, 236, 0.12); /* sanctioned dark hairline */
  --border-on-dark-strong: rgba(248, 244, 236, 0.28);
  --surface-on-dark: rgba(248, 244, 236, 0.05);
  --field-on-dark: rgba(248, 244, 236, 0.06);
  --glow-indigo: rgba(42, 71, 160, 0.1); /* INDIGO_ACTION — CTA pulse */

  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-photo: 14px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --display: 'Bricolage Grotesque', sans-serif;
  --serif: 'Instrument Serif', serif;
  --body: 'Geist', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

.svg-sprite { position: absolute; width: 0; height: 0; }

a { color: var(--indigo-action); text-decoration: none; }
a:hover { color: var(--indigo-pressed); }
::selection { background: var(--indigo-soft); }

:focus-visible { outline: 2px solid var(--indigo-action); outline-offset: 2px; }
.hero :focus-visible,
.section--dark :focus-visible,
.about :focus-visible,
.site-footer :focus-visible { outline-color: var(--cyan); }

@keyframes wellIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wellFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wellRule { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes wellPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
  45% { transform: scale(1.025); box-shadow: 0 0 0 10px var(--glow-indigo); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
/* 113 is the ring's circumference — must match .photo-ring-arc's stroke-dasharray. */
@keyframes wellRing { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 113; } }

/* ── Shared type ─────────────────────────────────────────── */

/* Three recipes carry the brand's type. Each grouped rule fixes the family,
   weight, and tracking; the per-element rules vary only size, leading,
   margin, and color. */

.brand-name, .hero-title, .section-title, .tour-title, .person-name,
.reveal-value, .step-num, .step-title, .option-title, .week-title,
.waitlist-title, .about-title, .modal-title {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-lede, .hero-link, .form-note, .section-lede, .tour-lede, .prompt,
.demo-caption, .picked-or, .reveal-serif, .lock-text, .option-lede,
.week-quote, .waitlist-lede, .quote-stanza, .quote-kicker, .modal-lede {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.03em;
}

.eyebrow, .tour-counter, .photo-hint, .stage-btn, .action-btn {
  font-family: var(--body);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow { font-size: 10px; color: var(--indigo-action); }
.eyebrow--cyan { color: var(--cyan); }
.eyebrow--grey { color: var(--paper-on-dark-muted); }
.eyebrow--faint { color: var(--ink-faint); }
.eyebrow--muted { color: var(--ink-muted); }
.eyebrow--lg { font-size: 11px; }
.eyebrow--spaced { margin-top: 8px; }

.section-title { font-size: 44px; line-height: 1.06; margin: 0; }
.section-lede { font-size: 21px; line-height: 1.45; color: var(--indigo-action); margin: 4px 0 0; }
.body-text { font-size: 16px; line-height: 1.7; color: var(--ink-muted); margin: 0; }
.body-text--intro { max-width: 680px; margin-top: 6px; }
.rule { width: 40px; height: 1px; background: var(--cyan); }

.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
.btn--primary { color: var(--paper-on-dark); background: var(--indigo-action); padding: 12px 20px; }
.btn--primary:hover { transform: translateY(-1px); background: var(--indigo-pressed); }
.btn--submit { color: var(--paper-on-dark); background: var(--indigo-action); padding: 16px 26px; }
.btn--submit:hover { background: var(--indigo-pressed); }
.btn--cream { color: var(--ink); background: var(--paper-on-dark); padding: 16px 26px; }
.btn--cream:hover { background: var(--paper-light); }
.btn--block { width: 100%; color: var(--paper-on-dark); background: var(--indigo-action); padding: 15px 20px; }
.btn--block:hover { background: var(--indigo-pressed); }

/* ── Header ──────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--paper-veil);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.site-header.is-pinned { opacity: 1; transform: none; pointer-events: auto; }
.header-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-name { font-size: 18px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-link { font-size: 12.5px; color: var(--ink-muted); }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 180ms var(--ease);
}
.menu-btn:hover { background: var(--paper-deep); }
.menu-bar { width: 18px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform 220ms var(--ease), opacity 180ms var(--ease); }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */

.hero { background: var(--ink); }
.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 96px 32px 88px;
}
.hero-mark { color: var(--cyan); animation: wellFade 700ms var(--ease) 150ms both; }
.hero-title {
  font-size: 56px;
  line-height: 1.02;
  margin: 6px 0 0;
  color: var(--paper-on-dark);
  animation: wellIn 700ms var(--ease) 900ms both;
}
.hero-rule { animation: wellRule 600ms var(--ease) 1500ms both; }
.hero-lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--cyan-light);
  max-width: 480px;
  margin: 0;
  animation: wellIn 700ms var(--ease) 1700ms both;
}
.hero-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper-on-dark-soft);
  max-width: 380px;
  margin: 4px 0 0;
  animation: wellIn 700ms var(--ease) 2100ms both;
}
.hero-form {
  animation: wellIn 700ms var(--ease) 2500ms both;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.hero-link {
  font-size: 16px;
  color: var(--paper-on-dark);
  margin-top: 12px;
  animation: wellFade 700ms var(--ease) 2700ms both;
}
.hero-link:hover { color: var(--cyan-light); }
.hero-cta { animation: wellPulse 2000ms var(--ease) 4500ms 1 both; }

/* ── Email capture ───────────────────────────────────────── */

.email-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  flex-wrap: wrap;
  justify-content: center;
}
.email-form--spaced { margin-top: 8px; }
.email-input {
  flex: 1 1 200px;
  min-width: 0;
  background: var(--paper-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 15px 20px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms var(--ease);
}
.email-input:focus { border-color: var(--indigo-action); }
.email-input--dark {
  background: var(--field-on-dark);
  border-color: var(--border-on-dark-strong);
  color: var(--paper-on-dark);
}
.email-input--dark:focus { border-color: var(--cyan); }
.email-input--dark::placeholder { color: var(--paper-on-dark-muted); }
.form-note { font-size: 15px; color: var(--ink-muted); margin: 0; min-height: 20px; }
.form-note--dark { color: var(--cyan-light); }

/* ── Section shells ──────────────────────────────────────── */

.section { max-width: 1120px; margin: 0 auto; padding: 104px 32px 96px; }
.section--dark { background: var(--ink); max-width: none; padding: 0; }
.section--dark .section-inner { max-width: 1120px; margin: 0 auto; padding: 104px 32px 96px; }
.section--dark .section-title { color: var(--paper-on-dark); }
.section--dark .section-lede { color: var(--cyan-light); }
.section--dark .body-text { color: var(--paper-on-dark-soft); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.section-head--loose { margin-bottom: 48px; }
.section-head--narrow { max-width: 640px; }

/* ── How it works: carousel ──────────────────────────────── */

.tour-section { display: flex; flex-direction: column; align-items: center; }
.tour-head { align-self: stretch; margin-bottom: 40px; }
.tour {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--paper-light);
  overflow: hidden;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 840px;
  width: 100%;
}
.tour-viewport { overflow: hidden; transition: height 450ms var(--ease); }
.tour-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: start;
  transition: transform 450ms var(--ease);
}
.tour-slide {
  padding: 44px 44px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px;
  align-items: start;
}
.tour-slide--center { align-items: center; }
.tour-copy { display: flex; flex-direction: column; gap: 14px; }
.tour-copy--stretch { align-self: stretch; }
.tour-title { font-size: 34px; line-height: 1.08; margin: 0; }
.tour-lede { font-size: 19px; line-height: 1.45; color: var(--ink); margin: 0; }
.tour-body { font-size: 15px; line-height: 1.65; color: var(--ink-muted); margin: 0; }
.tour-demo { display: flex; flex-direction: column; gap: 14px; }
.tour-demo--stack { align-items: center; gap: 10px; }
.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding: 16px 44px;
}
.tour-counter { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.tour-nav { display: flex; gap: 10px; flex: 0 0 auto; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms var(--ease);
}
.icon-btn:hover { background: var(--paper-deep); }
.icon-btn:disabled { opacity: 0.3; cursor: default; background: transparent; }

/* ── Introduction card demo ──────────────────────────────── */

.intro-card {
  background: var(--paper-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
}
.intro-head { display: flex; gap: 16px; }
.photo {
  position: relative;
  flex: 0 0 auto;
  width: 108px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: linear-gradient(160deg, var(--indigo-soft) 0%, var(--paper-deep) 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.photo-hint {
  position: relative;
  font-size: 10px;
  color: var(--ink);
  transition: opacity 300ms var(--ease);
}
.photo-ring { position: absolute; top: 8px; right: 8px; opacity: 0; transform: rotate(-90deg); }
.photo-ring circle { fill: none; stroke: var(--border-on-dark-strong); stroke-width: 2; }
.photo-ring .photo-ring-arc { stroke: var(--paper-on-dark); stroke-dasharray: 113; stroke-dashoffset: 0; }
.person { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.person-line { display: flex; align-items: baseline; gap: 6px; }
.person-name { font-size: 22px; }
.person-age { font-size: 13px; color: var(--ink-muted); }
.person-meta { font-size: 11px; color: var(--ink-faint); }
.prompt { font-size: 17px; line-height: 1.4; margin: 8px 0 0; }
.prompt--sm { font-size: 16px; }
.prompt--row { margin: 14px 0 0; opacity: 0; transition: opacity 350ms var(--ease); }
.prompt-label { color: var(--ink-muted); }
.card-actions { display: flex; gap: 10px; margin-top: 16px; }
.action-btn {
  min-height: 44px;
  border: 1px solid var(--ink-faint);
  background: transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  padding: 0 16px;
  transition: background 180ms var(--ease);
}
.action-btn:hover { background: var(--paper-deep); }
.action-btn--icon { width: 56px; padding: 0; }
.action-btn--primary {
  flex: 1;
  border: 0;
  background: var(--indigo-action);
  color: var(--paper-on-dark);
  font-weight: 600;
  gap: 6px;
}
.action-btn--primary:hover { background: var(--indigo-pressed); }
.demo-caption { font-size: 15px; line-height: 1.45; color: var(--ink); text-align: center; margin: 0; }
.demo-caption--left { text-align: left; }

/* ── Picked-by pills ─────────────────────────────────────── */

.picked {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  padding: 6px 15px 6px 6px;
  border-radius: var(--radius-pill);
}
.picked-mark {
  width: 33px;
  height: 33px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.picked-label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.picked-or { font-size: 15px; color: var(--ink); }

/* ── Stage walker ────────────────────────────────────────── */

.stages { padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.stage-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.stage-btn {
  font-size: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.stage-btn.is-on { background: var(--indigo-action); border-color: var(--indigo-action); color: var(--paper-on-dark); }

.reveal-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 350ms var(--ease);
}
.reveal-value { font-size: 16px; }
.reveal-text { font-size: 13px; }
.reveal-serif { font-size: 15px; }
.slot-row { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { width: 54px; aspect-ratio: 3 / 4; border-radius: var(--radius-photo); background: var(--paper-deep); display: block; }
.slot--locked {
  background: transparent;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
}
.slot--locked.is-open { background: var(--indigo-soft); border-style: solid; border-color: var(--indigo-soft); color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
}
.lock-banner {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--indigo-action);
  background: var(--indigo-soft);
  border-radius: var(--radius-card);
  transition: opacity 350ms var(--ease), background 350ms var(--ease), border-color 350ms var(--ease);
}
.lock-banner.is-mutual { background: var(--paper-deep); border-color: var(--border); }
.lock-banner.is-mutual .lock-text { color: var(--ink-muted); }
.lock-text { font-size: 15px; line-height: 1.45; color: var(--indigo-action); margin: 0; }

/* ── Your profile: steps ─────────────────────────────────── */

.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: minmax(64px, 120px) 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step-index { display: flex; flex-direction: column; gap: 6px; }
.step-num { font-size: 34px; color: var(--indigo-action); }
.step-body { display: flex; flex-direction: column; gap: 20px; }
.step-body--tight { gap: 10px; max-width: 640px; }
.step-title { font-size: 26px; line-height: 1.15; margin: 0; }
.step-text { font-size: 15px; line-height: 1.65; color: var(--ink-muted); margin: 0; }
.option-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.option-card {
  background: var(--paper-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-card--accent { border-left: 3px solid var(--cyan); }
.option-title { font-size: 22px; margin: 2px 0 0; }
.option-lede { font-size: 17px; color: var(--indigo-action); margin: 0; }
.option-body { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* ── Matchmakers ─────────────────────────────────────────── */

.matchmakers-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  max-width: 880px;
  margin: 0 auto;
}
.matchmakers-head { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ── The week ────────────────────────────────────────────── */

.week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.week-card {
  background: var(--surface-on-dark);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.week-card--light { background: var(--paper); border-color: var(--paper); }
.week-title { font-size: 26px; line-height: 1.15; margin: 2px 0 0; color: var(--paper-on-dark); }
.week-card--light .week-title { color: var(--ink); }
.week-text { font-size: 14px; line-height: 1.65; color: var(--paper-on-dark-soft); margin: 0; }
.week-card--light .week-text { color: var(--ink-muted); }
.week-quote { font-size: 19px; color: var(--indigo-action); margin: 6px 0 0; }

/* ── Waitlist ────────────────────────────────────────────── */

.waitlist { max-width: 1120px; margin: 0 auto; padding: 96px 32px; }
.waitlist-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.waitlist-title { font-size: 36px; line-height: 1.1; margin: 0; }
.waitlist-lede { font-size: 19px; color: var(--ink-muted); margin: 0; }

/* ── About ───────────────────────────────────────────────── */

.about { background: var(--ink); border-top: 1px solid var(--border-on-dark); }
.about-inner { max-width: 780px; margin: 0 auto; padding: 104px 32px 88px; }
.about-title { font-size: 44px; line-height: 1.06; margin: 0 0 18px; color: var(--paper-on-dark); }
.about-rule { margin-bottom: 26px; }
.about-body { display: flex; flex-direction: column; gap: 18px; }
.about-body p { font-size: 16px; line-height: 1.7; color: var(--paper-on-dark); margin: 0; }
.about-quote {
  background: var(--surface-on-dark);
  border: 1px solid var(--border-on-dark);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-card);
  padding: 22px 22px 22px 20px;
  margin-top: 6px;
}
.quote-stanza { font-size: 20px; line-height: 1.45; color: var(--paper-on-dark); margin: 0 0 10px; }
.quote-kicker { font-size: 24px; line-height: 1.3; color: var(--cyan); margin: 0; }

/* ── Footer ──────────────────────────────────────────────── */

.site-footer { background: var(--ink); border-top: 1px solid var(--border-on-dark); }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-rule { width: 40px; height: 1px; background: var(--border-on-dark); }
.footer-note { font-size: 12px; line-height: 1.6; color: var(--paper-on-dark-muted); text-align: center; margin: 0; }
.footer-links { display: flex; gap: 20px; align-items: center; }
.footer-links a { font-size: 12px; color: var(--paper-on-dark-muted); transition: color 180ms var(--ease); }
.footer-links a:hover { color: var(--paper-on-dark); }

/* ── Modals ──────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: var(--scrim); border: 0; }
.modal-panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 24px 22px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: wellIn 350ms var(--ease) both;
}
.modal-panel--sm { max-width: 380px; gap: 0; padding: 26px 24px 20px; }
.modal-title { font-size: 26px; line-height: 1.12; margin: 0; }
.modal-panel--sm .modal-title { font-size: 24px; line-height: 1.15; margin: 0 0 10px; }
.modal-lede { font-size: 17px; color: var(--ink-muted); margin: 0; }
.modal-body { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 20px; }
.modal-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.modal-form .email-input { flex: none; }

/* ── Reveal on scroll ────────────────────────────────────── */

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Tablet & mobile ─────────────────────────────────────── */

@media (max-width: 1024px) {
  .menu-btn { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 32px;
    max-width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper-veil);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 10px 10px 16px;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { display: block; padding: 13px 2px; border-bottom: 1px solid var(--border); }
  .nav-link:last-of-type { border-bottom: 0; }
  .site-nav .btn--primary { width: 100%; margin-top: 10px; }

  .week-grid { grid-template-columns: 1fr; }
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 720px) {
  .section, .waitlist, .section--dark .section-inner, .about-inner { padding-left: 22px; padding-right: 22px; }
  .hero-title { font-size: 44px; }
  .section-title, .about-title { font-size: 34px; }
  .tour-slide { padding: 28px 24px 24px; gap: 32px; }
  .tour-footer { padding: 14px 24px; }
  .tour { min-height: 0; }
  .step { grid-template-columns: 1fr; gap: 18px; }
  .header-inner { padding: 12px 22px; gap: 16px; }
  .site-nav { right: 22px; }
}
