/* ── tokens ──────────────────────────────────────────────────── */
:root {
  --charcoal:  #161614;
  --cream:     #ede8dd;
  --stone:     #9a9590;
  --amber:     #b86a2e;
  --vice-red:  #9c3a1f;
  --font-body: 'Fraunces', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

/* ── reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── base ────────────────────────────────────────────────────── */
body {
  background-color: var(--charcoal);
  background-image: url('assets/bg.png');
  background-repeat: repeat;
  background-size: 480px 480px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── colour utilities ────────────────────────────────────────── */
.c-amber { color: var(--amber); }
.c-vice  { color: var(--vice-red); }
.c-stone { color: var(--stone); }
.c-cream { color: var(--cream); }

/* ── page wrapper ────────────────────────────────────────────── */
.page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ── header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--charcoal);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header .page-wrap {
  display: flex;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}
.site-header.scrolled {
  border-bottom-color: rgba(154, 149, 144, 0.2);
}
.header-logo { display: flex; align-items: center; }

/* ── hero ────────────────────────────────────────────────────── */
.hero-section {
  padding-top: 120px;
}
.hero {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
h1.hero-hl {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
p.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--stone);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.cta-btn {
  display: inline-block;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.07em;
  padding: 18px 36px;
  border: none;
  cursor: pointer;
  transition: opacity 150ms;
}
.cta-btn:hover { opacity: 0.86; }
.hero-counter {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone);
  margin-top: 14px;
  font-feature-settings: 'tnum';
}

/* ledger card */
.hero-ledger {
  margin: 56px auto 0;
  border: 1px solid rgba(154, 149, 144, 0.15);
  border-top: 2px solid var(--amber);
}
.hero-ledger-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hstat {
  padding: 28px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-feature-settings: 'tnum';
  border-right: 1px solid rgba(154, 149, 144, 0.12);
}
.hstat:last-child { border-right: none; }
.hstat-lbl {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--stone);
  margin-bottom: 6px;
}
.hstat-val         { color: var(--cream); }
.hstat-val--amber  { color: var(--amber); }
.hero-ledger-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--stone);
  padding: 10px 24px;
  border-top: 1px solid rgba(154, 149, 144, 0.12);
  text-align: right;
}

/* ── editorial section shell ─────────────────────────────────── */
.editorial-section {
  border-top: 1px solid rgba(184, 106, 46, 0.3);
  margin-top: 80px;
}
.section-row {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  gap: 0 40px;
  padding: 80px 0;
}
.rail-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  gap: 10px;
}
.rail-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.rail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--stone);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.section-body  { min-width: 0; }
.rail-right-col { /* intentionally empty */ }

/* ── §01 first month ─────────────────────────────────────────── */
.s01-headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.s01-intro {
  font-size: 17px;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 56px;
}
.s01-ledger-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
  border-left: 2px solid rgba(184,106,46,0.3);
  padding-left: 16px;
  margin-bottom: 48px;
  line-height: 1.7;
  max-width: 560px;
}

/* 4-col week grid */
.week-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(154, 149, 144, 0.12);
  border: 1px solid rgba(154, 149, 144, 0.12);
  margin-bottom: 64px;
}
.wcard {
  background: var(--charcoal);
  padding: 28px 24px;
}
.wcard-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.wcard-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--stone);
}
.wcard-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--stone);
  opacity: 0.65;
}
.wcard-avg {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  font-feature-settings: 'tnum';
  margin-bottom: 0;
}

/* SVG chart */
.chart-wrap {
  margin-bottom: 40px;
  background: var(--charcoal);
  padding: 8px 0 4px;
}
.chart-svg  { width: 100%; height: auto; display: block; }
.chart-caption {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--stone);
  flex-wrap: wrap;
}
.chart-legend-swatch {
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.chart-caption-right { margin-left: auto; }

/* quote */
.s01-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.5;
  max-width: 700px;
  border-left: 2px solid var(--amber);
  padding-left: 24px;
  margin-bottom: 12px;
}
.s01-attr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--stone);
  padding-left: 26px;
  margin-bottom: 56px;
}

/* split stats */
.split-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  margin-bottom: 64px;
}
.split-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--stone);
  margin-bottom: 8px;
}
.split-num {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  font-feature-settings: 'tnum';
  margin-bottom: 6px;
}
.split-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
}

/* secondary CTA */
.s01-cta { margin-top: 0; }

/* ── §02 thesis ──────────────────────────────────────────────── */
.s02-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--amber);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 106, 46, 0.25);
  margin-bottom: 40px;
}
.thesis-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
}
.thesis-col p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 20px;
}
.thesis-col p:last-child { margin-bottom: 0; }

/* ── §03 product ─────────────────────────────────────────────── */
.product-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
}
.col-header {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(154, 149, 144, 0.15);
  margin-bottom: 28px;
}
.col-header--amber { color: var(--amber); border-bottom-color: rgba(184, 106, 46, 0.3); }
.col-header--red   { color: var(--vice-red); border-bottom-color: rgba(156, 58, 31, 0.3); }
.item-list li {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
  margin-bottom: 14px;
}
.item-list li:last-child { margin-bottom: 0; }
.item-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 11px;
  top: 4px;
}

/* ── §04 founding ────────────────────────────────────────────── */
.founding-centered { max-width: 800px; }
.s04-headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  margin-bottom: 36px;
}
.founding-body p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 18px;
}
.founding-body p:last-child { margin-bottom: 0; }
.price-card {
  border: 1px solid rgba(154, 149, 144, 0.2);
  border-top: 2px solid var(--amber);
  padding: 48px;
  margin-top: 56px;
  max-width: 440px;
}
.price-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--stone);
  margin-bottom: 14px;
}
.price-amt {
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  font-feature-settings: 'tnum';
  margin-bottom: 4px;
}
.price-desc {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--stone);
  margin-bottom: 32px;
}
.buy-btn {
  display: block;
  width: 100%;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 20px 24px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 150ms;
}
.buy-btn:hover { opacity: 0.86; }
.seats-txt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  margin-top: 14px;
  font-feature-settings: 'tnum';
}

/* ── §05 questions ───────────────────────────────────────────── */
.s05-headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  margin-bottom: 48px;
}
.faq-list {}
.faq-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  padding: 32px 0;
  border-top: 1px solid rgba(154, 149, 144, 0.1);
}
.faq-item:last-child { border-bottom: 1px solid rgba(154, 149, 144, 0.1); }
dt.faq-q {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--cream);
}
dd.faq-a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  color: var(--stone);
  line-height: 1.65;
}

/* ── footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(154, 149, 144, 0.12);
  margin-top: 80px;
  padding: 64px 0 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.footer-col-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--stone);
  margin-bottom: 16px;
}
.footer-col p,
.footer-col a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone);
  line-height: 2.2;
  display: block;
}
.footer-col a:hover { color: var(--cream); }

/* footer brand mark */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  opacity: 0.45;
}
.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.06em;
}

/* ── legal pages ─────────────────────────────────────────────── */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}
hr.section-divider {
  border: none;
  border-top: 1px solid rgba(154, 149, 144, 0.15);
  margin: 40px 0;
}

.legal-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-bottom: 56px;
}
.legal-back:hover { color: var(--cream); }
.legal-page h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 8px;
}
.legal-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  margin-bottom: 56px;
  display: block;
}
.legal-page h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  color: var(--cream);
  margin-top: 48px;
  margin-bottom: 14px;
}
.legal-page p {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--stone);
  margin-bottom: 16px;
}
.legal-page ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-page ul li {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--stone);
  margin-bottom: 6px;
}
.legal-page a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── responsive — 768px ──────────────────────────────────────── */
@media (max-width: 768px) {
  .page-wrap { padding: 0 24px; }

  .section-row {
    grid-template-columns: 1fr;
    padding: 56px 0;
  }
  .rail-left-col {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 28px;
  }
  .rail-num, .rail-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .rail-right-col { display: none; }

  .hero-section      { padding-top: 80px; }
  .hero-ledger-bar   { grid-template-columns: 1fr 1fr; }
  .hstat             { border-right: none; border-bottom: 1px solid rgba(154,149,144,0.12); }
  .hstat:nth-child(odd)  { border-right: 1px solid rgba(154,149,144,0.12); }
  .hstat:nth-child(n+3)  { border-bottom: none; }

  .week-grid    { grid-template-columns: 1fr 1fr; }
  .thesis-cols  { grid-template-columns: 1fr; gap: 0; }
  .thesis-col p { font-size: 17px; }
  .product-cols { grid-template-columns: 1fr; gap: 48px 0; }
  .split-pair   { grid-template-columns: 1fr; gap: 40px 0; }
  .faq-item     { grid-template-columns: 1fr; gap: 12px 0; }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 40px; }
  .price-card   { padding: 32px 24px; }

  .legal-page { padding: 48px 24px 80px; }
  .legal-page h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  .week-grid    { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .hero-ledger-bar { grid-template-columns: 1fr 1fr; }
}
