:root {
  --bg: #faf9f7;
  --ink: #1c1a17;
  --muted: #6f6a62;
  --accent: #7c3aed;
  --accent-dark: #5b21b6;
  --gold: #b98a1d;
  --card: #ffffff;
  --line: #e8e3da;
  --radius: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.5rem;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.nav nav { display: flex; gap: 1.1rem; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 0.45rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.nav-cta:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 640px) {
  .nav nav { display: none; }
}
.capture-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  padding: 0.45rem 3rem 0.45rem 1rem;
  background: #1c1a17; color: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}
.capture-bar[hidden] { display: none; }
.capture-bar-text { margin: 0; font-size: 0.9rem; white-space: nowrap; }
.capture-bar-form { display: flex; gap: 0.45rem; margin: 0; }
.capture-bar-form input {
  padding: 0.45rem 0.7rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 0.9rem;
}
.capture-bar-form input::placeholder { color: rgba(255,255,255,0.55); }
.capture-bar-form .btn { padding: 0.45rem 1rem; }
.capture-bar-close {
  position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0.2rem;
}
.capture-bar-close:hover { color: #fff; }
@media (max-width: 640px) {
  .capture-bar { flex-wrap: wrap; gap: 0.5rem; }
  .capture-bar-text { white-space: normal; text-align: center; width: 100%; }
  .capture-bar-form { width: 100%; }
  .capture-bar-form input { flex: 1; min-width: 0; }
}

.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(135deg, #1c1a17 0%, #3b2f63 60%, #7c3aed 100%);
  color: #fff;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
.hero-brand { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.85rem; font-weight: 700; opacity: 0.75; margin: 0 0 1rem; }
.hero-creed { margin: 1.75rem auto 0; font-size: 0.95rem; opacity: 0.7; }
.tagline { max-width: 36rem; margin: 1rem auto 2rem; font-size: 1.15rem; opacity: 0.9; }
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center;
  cursor: pointer; border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-buy { background: var(--ink); color: #fff; width: 100%; }
.btn-buy:hover { background: #000; }

.section { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.5rem 1rem; }
.section-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); margin: 0.3rem 0 1.6rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 28px rgba(28, 26, 23, 0.06);
}
.feature { background: linear-gradient(120deg, #fff 55%, #f3eefe 100%); }
.feature.alt { background: linear-gradient(120deg, #fff 55%, #fef6e4 100%); }
.feature { display: flex; flex-direction: column; gap: 1.4rem; }
.feature-media img { width: 100%; height: auto; display: block; border-radius: 12px; }
@media (min-width: 821px) {
  .feature { flex-direction: row; align-items: center; }
  .feature-media { flex: 0 0 36%; }
  .feature-text { flex: 1; }
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.feature h2, .soon h2 { font-size: 1.7rem; margin: 0.4rem 0 0.8rem; }
.ticks { list-style: none; margin: 1rem 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin: 0.35rem 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.price { font-size: 1.5rem; font-weight: 800; margin: 1rem 0; }
.price-note { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.card .btn-primary { margin-top: 0.6rem; }

.badge {
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  background: #e9e4f9; color: var(--accent-dark);
}
.badge.gold { background: #f7ecd2; color: var(--gold); }
.soon { text-align: center; }
.soon p { color: var(--muted); margin-top: 0.8rem; }

.grid { display: grid; gap: 1.4rem; }
.singles-grid { grid-template-columns: repeat(3, 1fr); }
.merch-grid { grid-template-columns: repeat(3, 1fr); }

.track-card, .merch-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  box-shadow: 0 6px 22px rgba(28, 26, 23, 0.05);
}
.track-card img, .merch-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px;
}
.track-card h3, .merch-card h3 { font-size: 1.1rem; }
.duration { color: var(--muted); font-size: 0.9rem; }
.track-card audio { width: 100%; }

.bundle {
  display: flex; gap: 1.6rem; align-items: center;
  margin-top: 1.6rem;
  background: linear-gradient(120deg, #fff8e8 0%, #fff 70%);
  border: 2px solid #f0dfa8;
}
.bundle img { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.bundle h3 { font-size: 1.35rem; margin: 0.4rem 0 0.5rem; }
.save { color: var(--gold); font-size: 1rem; }
.bundle p { color: var(--muted); margin-bottom: 1rem; }

footer {
  text-align: center; padding: 3rem 1.5rem 2rem;
  color: var(--muted); font-size: 0.9rem;
}
.foot-links a { color: var(--accent); }

@media (max-width: 820px) {
  .singles-grid, .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .nav nav { display: none; }
}
@media (max-width: 560px) {
  .singles-grid, .merch-grid { grid-template-columns: 1fr; }
  .bundle { flex-direction: column; text-align: center; }
  .hero { padding: 3.5rem 1.2rem 3rem; }
}

/* Free chapter signup */
.signup-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0.5rem; }
.signup-form input[type="email"] {
  flex: 1 1 220px; padding: 0.75rem 1rem; font-size: 1rem;
  border: 1px solid var(--border, #3a332c); border-radius: 0.5rem;
  background: #fff; color: #1a1410;
}
.fine-print { font-size: 0.8rem; opacity: 0.7; margin: 0.25rem 0 0; }
.thanks { font-weight: 700; color: var(--accent); margin-top: 0.75rem; }

/* Share / QR section */
.qr-grid { grid-template-columns: repeat(4, 1fr); max-width: 64rem; margin: 0 auto; }
.qr-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; text-align: center;
  box-shadow: 0 6px 22px rgba(28, 26, 23, 0.05);
}
.qr-card img { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; }
.qr-card figcaption { margin-top: 0.8rem; font-weight: 700; color: var(--accent-dark); font-size: 0.95rem; }
@media (max-width: 820px) { .qr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .qr-grid { grid-template-columns: 1fr; } }

/* AI & Technology section */
.ai-grid { grid-template-columns: repeat(2, 1fr); margin-top: 1.4rem; }
.ai-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.ai-card h3 { margin-top: 0; }
.ai-prices { font-weight: 700; }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }
#claim-form { scroll-margin-top: 96px; }
#sponsor-note { scroll-margin-top: 96px; }
/* Anchor offset: every anchored section clears the sticky header (Oct 25) */
.section[id] { scroll-margin-top: 96px; }

/* Mobile nav — the rooms must be reachable by thumb (fix Oct 25, 2026).
   Both hide rules above are overridden: on small screens the nav becomes
   a wrapping strip under the brand instead of disappearing. */
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; row-gap: 0.4rem; }
  .nav nav {
    display: flex; flex-wrap: wrap; order: 3; width: 100%;
    gap: 0.45rem 0.95rem; margin-top: 0.35rem;
  }
  .nav nav a { font-size: 0.88rem; padding: 0.2rem 0; }
}

/* Freedom & Escape section (added 2026-10-27, staged — deploys on Christopher's word) */
.freedom-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .freedom-grid { grid-template-columns: 1fr 1fr; } }
.freedom-ad { text-align: center; margin: 1.6rem auto 1.2rem; max-width: 52rem; color: var(--muted); }
.freedom-ad a { color: var(--accent-dark); font-weight: 700; }

.freedom-questions { text-align: center; margin: 1.6rem auto 0.4rem; max-width: 52rem; }
.freedom-questions h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.8rem; }
.freedom-questions ul { list-style: none; padding: 0; margin: 0 0 1rem; color: var(--muted); }
.freedom-questions li { margin: 0.4rem 0; }
.freedom-questions a { color: var(--accent-dark); }


/* ============ STORYLINE MASTHEAD (deployed Oct 29, 2026) ============ */
:root {
  --sd-indigo: #26264d;
  --sd-indigo-dark: #1b1b38;
  --sd-cream: #f4eedd;
  --sd-red: #c23a2a;
  --sd-red-dark: #a02e21;
}

.nav {
  background: var(--sd-indigo);
  border-bottom: 3px solid var(--sd-red);
  backdrop-filter: none;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--sd-cream); min-width: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.08rem; color: var(--sd-cream); white-space: nowrap; }
.brand-sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.03em; color: rgba(244, 238, 221, 0.68); }
.nav nav a { color: rgba(244, 238, 221, 0.78); }
.nav nav a:hover { color: var(--sd-cream); }
.nav-cta { background: var(--sd-red); box-shadow: 0 4px 14px rgba(194, 58, 42, 0.4); }
.nav-cta:hover { background: var(--sd-red-dark); color: #fff; }
@media (max-width: 560px) {
  .brand-sub { white-space: normal; }
  .brand-name { white-space: normal; }
}

.houses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.house-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  box-shadow: 0 6px 22px rgba(28, 26, 23, 0.05);
}
.house-card h3 { font-size: 1.2rem; font-weight: 800; }
.house-tag { font-style: italic; font-weight: 700; color: var(--accent-dark); }
.house-card p { color: var(--muted); }
.house-card .house-tag { color: var(--accent-dark); }
.house-card a { color: var(--accent-dark); font-weight: 700; text-decoration: none; margin-top: auto; }
.house-card a:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .houses-grid { grid-template-columns: 1fr; }
}

/* ============ INDIGO THEME — Storyline brand (Oct 29, 2026) ============
   The whole site wears the logo's indigo. Cream type, red accent, gold for price marks. */
:root {
  --bg: #1b1b38;
  --ink: #f4eedd;
  --muted: rgba(244, 238, 221, 0.74);
  --accent: #c23a2a;
  --accent-dark: #a02e21;
  --gold: #d9a441;
  --card: #26264d;
  --line: rgba(244, 238, 221, 0.16);
}
body { background: var(--bg); }
.capture-bar { background: #14142b; border-top: 2px solid var(--sd-red); }
.hero { background: linear-gradient(135deg, #14142b 0%, #26264d 58%, #33335e 100%); }
.btn-primary { box-shadow: 0 6px 20px rgba(194, 58, 42, 0.35); }
.btn-buy { background: var(--sd-red); color: #fff; }
.btn-buy:hover { background: var(--sd-red-dark); }
.feature { background: linear-gradient(120deg, #26264d 55%, #2d2d55 100%); }
.feature.alt { background: linear-gradient(120deg, #26264d 55%, #372b3d 100%); }
.badge { background: rgba(244, 238, 221, 0.12); color: var(--sd-cream); }
.badge.gold { background: rgba(217, 164, 65, 0.18); color: #e7c37a; }
.qr-card figcaption, .freedom-ad a, .freedom-questions a, .house-tag, .house-card a { color: #eda08f; }
input, select, textarea { background: #f4eedd; color: #1c1a17; }
.bundle { background: linear-gradient(120deg, #2a2a52 0%, #26264d 70%); border: 2px solid rgba(217, 164, 65, 0.55); }

/* ============ CLEANUP — flow, sponsor tiles, capture bar (Oct 29, 2026) ============
   Built on a staging copy for Christopher's preview pass. Not yet deployed. */

/* --- Job 1a: slim room-nav directly under the hero.
   Deliberately NOT sticky: the site header is already sticky and carries the
   same rooms (on phones it wraps into a full strip, 199px tall). A second
   sticky bar would eat the phone screen and risk covering content — the exact
   failure Job 3 fixes. The room-nav's job is one-tap room access on arrival. */
.room-nav {
  background: var(--sd-indigo);
  border-bottom: 3px solid var(--sd-red);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.15rem 0.62rem;
  padding: 0.42rem 0.5rem;
}
.room-nav a {
  color: var(--sd-cream); text-decoration: none;
  font-weight: 700; font-size: 0.85rem; line-height: 1.35; white-space: nowrap;
  padding: 0.1rem 0;
}
.room-nav a:hover { color: #eda08f; text-decoration: underline; }

/* --- Job 1b: tighter rooms — less air between and inside sections. */
.section { padding: 2.2rem 1.5rem 0.4rem; }
.card { padding: 1.6rem; }
.feature { gap: 1.1rem; }
.grid { gap: 1.15rem; }
.section-sub { margin: 0.3rem 0 1.15rem; }
.hero { padding: 3.75rem 1.5rem 3rem; }
footer { padding: 2.25rem 1.5rem 2rem; }
@media (max-width: 560px) {
  .card { padding: 1.25rem; }
  .hero { padding: 2.75rem 1.2rem 2.25rem; }
  /* The Share shelf: four QR cards stacked full-width made a wall on phones.
     Two-up keeps every code big enough to scan and halves the wall. */
  .qr-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .qr-card { padding: 1rem; }
}

/* Anchor landings clear the sticky header at every width.
   Measured header height: 74px desktop, 199px phone (wrapped nav strip). */
.section[id] { scroll-margin-top: 88px; }
#claim-form, #sponsor-note { scroll-margin-top: 88px; }
@media (max-width: 820px) {
  .section[id] { scroll-margin-top: 210px; }
  #claim-form, #sponsor-note { scroll-margin-top: 210px; }
}

/* --- Job 1b (cont.): Made For You build tiers as compact cards.
   Inset tiles inside the feature card, in the site's card family. */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.2rem 0; }
.tier-card {
  background: #1f1f3d; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}
.tier-card h3 { font-size: 1.05rem; color: var(--sd-cream); }
.tier-card .price { font-size: 1.35rem; color: var(--gold); margin: 0.3rem 0 0.5rem; }
.tier-card p { color: var(--muted); }
@media (max-width: 820px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tier-grid { grid-template-columns: 1fr; } }

/* --- Job 2: Founding Sponsors as three tiles, matching the offer cards. */
.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.2rem 0; }
.sponsor-tile {
  background: #1f1f3d; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}
.sponsor-tile h3 { font-size: 1.15rem; color: var(--sd-cream); margin: 0.55rem 0 0.25rem; }
.sponsor-tile .price { font-size: 1.4rem; color: var(--gold); margin: 0.25rem 0 0.5rem; }
.sponsor-tile p { color: var(--muted); }
@media (max-width: 820px) { .sponsor-grid { grid-template-columns: 1fr; } }

/* --- Job 3: capture bar can never cover content.
   The bar is fixed to the bottom of the screen; while it is visible the body
   gains bottom padding equal to the bar's measured height (49px desktop,
   80px phone — padding includes slack), so the end of the page, footer
   included, always scrolls fully clear of it. scroll-padding-bottom does
   the same for anchor jumps to bottom sections. The .capture-on class is
   toggled by the small observer script at the end of index.html, which
   watches the bar's hidden attribute — the bar's own show/hide logic,
   its form, and its close button are untouched. */
body.capture-on { padding-bottom: 62px; }
html { scroll-padding-bottom: 70px; }
@media (max-width: 640px) {
  body.capture-on { padding-bottom: 94px; }
  html { scroll-padding-bottom: 102px; }
}
