/* ==========================================================================
   IT'S THE END OF THE WORLD AS WE KNOW IT (AND I FEEL FINE)
   Shared stylesheet · v1.0 · April 2026
   ========================================================================== */

:root {
  --navy:  #0B1929;
  --navy2: #132338;
  --ivory: #F7F4EE;
  --iv2:   #EDE9E1;
  --gold:  #B8863A;
  --gold2: #D4A55A;
  --text:  #1C2B3A;
  --muted: #6B7C93;
  --faint: #9AAAB8;
  --bdr:   rgba(11,25,41,0.09);
  --white: #FFFFFF;

  /* Per-section accent — default gold, overridable by body class */
  --accent:  var(--gold);
  --accent2: var(--gold2);
}

/* Per-section accent overrides (applied by body class) */
body.sec-a { --accent: #B8863A; --accent2: #D4A55A; } /* gold */
body.sec-b { --accent: #5A7A9C; --accent2: #7A9BBF; } /* slate blue */
body.sec-c { --accent: #6B8E7F; --accent2: #8FB3A2; } /* sage green */
body.sec-d { --accent: #9C6B5A; --accent2: #BF8F7A; } /* terracotta */
body.sec-e { --accent: #7A6B9C; --accent2: #9B8FBF; } /* muted purple */
body.sec-f { --accent: #8E8B6B; --accent2: #B3AF8F; } /* olive */
body.sec-g { --accent: #6B899C; --accent2: #8FAEBF; } /* steel */
body.sec-h { --accent: #9C8E6B; --accent2: #BFAF8F; } /* sand */
body.sec-i { --accent: #6B7E9C; --accent2: #8F9FBF; } /* cornflower */
body.sec-j { --accent: #9C6B7E; --accent2: #BF8F9F; } /* deep rose — future */
body.sec-k { --accent: #B8863A; --accent2: #D4A55A; } /* closing gold */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--white); color: var(--text); -webkit-font-smoothing: antialiased; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
  position: fixed; top: 0; left: 0; width: 210px; height: 100vh;
  background: var(--navy); padding: 2.25rem 1.5rem;
  display: flex; flex-direction: column; z-index: 100; overflow-y: auto;
}
.s-brand {
  display: block; margin-bottom: 1.5rem;
  opacity: 0.55; transition: opacity 0.2s ease;
}
.s-brand:hover { opacity: 0.9; }
.s-brand img {
  display: block; width: 100%; max-width: 100px; height: auto;
  filter: brightness(0) invert(1);
}
.s-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 700;
  color: var(--ivory); letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1.75rem; line-height: 1.3; text-decoration: none; display: block;
}
.s-logo span {
  display: block; font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 500;
  letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; margin-bottom: 4px;
}
.s-nav-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint); margin-bottom: .9rem;
}

/* Nav item: base + states */
.s-item {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: .55rem; text-decoration: none; position: relative;
  padding: 2px 0;
}
.s-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.12); flex-shrink: 0; margin-top: 7px;
  transition: background 0.15s;
}
.s-txt {
  font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.25);
  line-height: 1.45; transition: color 0.15s;
}
.s-meta {
  display: block; font-size: 9px; font-weight: 500; color: rgba(255,255,255,0.3);
  margin-top: 2px; letter-spacing: 0.05em;
}

/* Published sections — available */
.s-item.published .s-dot { background: var(--accent); }
.s-item.published .s-txt { color: rgba(247,244,238,0.85); }
.s-item.published:hover .s-txt { color: rgba(247,244,238,1); }

/* Current section being viewed */
.s-item.on .s-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(184,134,58,0.18); }
.s-item.on .s-txt { color: var(--ivory); font-weight: 500; }

/* Locked (published but requires registration) */
.s-item.locked .s-dot { background: rgba(255,255,255,0.08); }
.s-item.locked .s-txt { color: rgba(255,255,255,0.35); }
.s-item.locked::after {
  content: "🔒"; font-size: 8px; position: absolute; right: 0; top: 4px;
  opacity: 0.5; filter: grayscale(1);
}

/* Future sections — not yet published */
.s-item.future .s-dot { background: transparent; border: 1px dashed rgba(255,255,255,0.15); margin-top: 6px; }
.s-item.future .s-txt { color: rgba(255,255,255,0.25); }
.s-item.future .s-meta { color: rgba(212,165,90,0.45); }

.s-foot {
  font-size: 10px; color: rgba(255,255,255,0.2); line-height: 1.65;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: auto;
}
.s-foot strong { color: var(--accent2); font-weight: 500; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.main { margin-left: 210px; }

/* ==========================================================================
   HERO (landing page — full size)
   ========================================================================== */

.hero { background: var(--navy); padding: 2.5rem 2.5rem 2.25rem; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; bottom: -120px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,58,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.h-kicker {
  font-size: 9px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 10px; margin-bottom: .6rem;
}
.h-kicker::before { content: ""; display: block; width: 24px; height: 1px; background: var(--accent); }
.h-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.5vw, 44px); font-weight: 700; color: var(--ivory);
  line-height: 1.1; letter-spacing: -0.015em; margin-bottom: .75rem;
}
.h-title em { font-style: italic; color: var(--accent2); }
.h-lead {
  font-size: 14px; font-weight: 400; color: rgba(247,244,238,0.75);
  max-width: 520px; line-height: 1.65; margin-bottom: 1.25rem;
}
.h-meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.h-meta span { color: var(--accent2); }

/* ==========================================================================
   SECTION HEADER (for individual section pages — compact version)
   ========================================================================== */

.sec-header {
  background: var(--navy); padding: 1.75rem 2.5rem 1.5rem; position: relative; overflow: hidden;
}
.sec-header::after {
  content: ""; position: absolute; bottom: -100px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,58,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.breadcrumb {
  display: flex; align-items: center; gap: .75rem;
  font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1px;
}
.breadcrumb a:hover { color: var(--accent2); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); }
.sec-kicker {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
  display: flex; align-items: center; gap: 10px;
}
.sec-kicker::before { content: ""; display: block; width: 20px; height: 1px; background: var(--accent); }
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.8vw, 34px); font-weight: 700; color: var(--ivory);
  line-height: 1.15; letter-spacing: -0.015em; margin-bottom: .6rem;
}
.sec-title em { font-style: italic; color: var(--accent2); }
.sec-lead {
  font-size: 13px; font-weight: 400; color: rgba(247,244,238,0.72);
  max-width: 580px; line-height: 1.65;
}

/* ==========================================================================
   STATS BAND
   ========================================================================== */

.stats { background: var(--navy2); display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid rgba(255,255,255,0.05); }
.stat { padding: 1.1rem 1.25rem; border-right: 1px solid rgba(255,255,255,0.05); }
.stat:first-child { padding-left: 2.5rem; }
.stat:last-child { border-right: none; }
.s-num { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 700; color: var(--ivory); line-height: 1; margin-bottom: .2rem; }
.s-num sup { font-size: 14px; vertical-align: super; color: var(--accent2); }
.s-lbl { font-size: 10px; font-weight: 300; color: var(--muted); line-height: 1.4; }
.s-src {
  display: block; font-size: 9px; font-weight: 500; color: var(--accent2);
  margin-top: .25rem; letter-spacing: 0.03em;
}

/* ==========================================================================
   CONTENT COLUMN
   ========================================================================== */

.content { max-width: 780px; padding: 0 2.5rem; }
.block { padding: 2rem 0; border-bottom: 1px solid var(--bdr); }
.block:last-of-type { border-bottom: none; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem;
}
.kicker::before { content: ""; display: block; width: 18px; height: 1px; background: var(--accent); }
h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700;
  color: var(--navy); line-height: 1.18; margin-bottom: .85rem; letter-spacing: -0.01em;
}
h2 em { font-style: italic; color: var(--accent); }
h3 { font-size: 13px; font-weight: 600; color: var(--navy); margin: 1.1rem 0 .35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.lead { font-size: 14px; font-weight: 300; color: var(--text); line-height: 1.75; margin-bottom: .75rem; }
p { font-size: 13px; font-weight: 300; color: var(--text); line-height: 1.8; margin-bottom: .65rem; }
p strong { font-weight: 500; color: var(--navy); }
p em { font-style: italic; }

/* ==========================================================================
   PULL QUOTE
   ========================================================================== */

.pull {
  margin: 1rem 0; padding: .9rem 1.1rem .9rem 1.25rem;
  border-left: 2px solid var(--accent); background: var(--ivory); border-radius: 0 6px 6px 0;
}
.pull p {
  font-family: 'Cormorant Garamond', serif; font-size: 15px; font-style: italic;
  font-weight: 400; color: var(--navy); line-height: 1.55; margin-bottom: .25rem;
}
.pull cite {
  font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-style: normal;
}

/* ==========================================================================
   STAT TRIO / QUAD
   ========================================================================== */

.trio {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--bdr); border: 1px solid var(--bdr); border-radius: 8px;
  overflow: hidden; margin: 1rem 0;
}
.trio.quad { grid-template-columns: repeat(4,1fr); }
.trio-c { background: var(--ivory); padding: .75rem .65rem; text-align: center; }
.trio-n { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: .2rem; }
.trio-l { font-size: 10px; font-weight: 300; color: var(--muted); line-height: 1.4; }

/* ==========================================================================
   SEQUENCE STAGES
   ========================================================================== */

.seq { display: flex; margin: 1rem 0; }
.seq-s { flex: 1; background: var(--ivory); padding: .75rem .65rem; text-align: center; position: relative; }
.seq-s::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); z-index: 2; }
.seq-s:last-child::after { display: none; }
.seq-s:first-child { border-radius: 8px 0 0 8px; }
.seq-s:last-child  { border-radius: 0 8px 8px 0; }
.seq-n { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: .2rem; }
.seq-lbl { font-size: 10px; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: .15rem; }
.seq-sub { font-size: 9px; color: var(--muted); line-height: 1.4; }

/* ==========================================================================
   CHANNEL CARDS
   ========================================================================== */

.ch-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin: 1rem 0; }
.ch-card { border: 1px solid var(--bdr); border-radius: 6px; padding: .8rem .85rem; background: var(--white); }
.ch-n { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: var(--iv2); display: block; margin-bottom: .35rem; line-height: 1; }
.ch-title { font-size: 11px; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: .2rem; }
.ch-sub { font-size: 9px; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: 0.07em; display: block; margin-bottom: .45rem; }
.ch-body { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.65; }

/* ==========================================================================
   REGULATORY CARDS
   ========================================================================== */

.reg-stack { display: flex; flex-direction: column; gap: 6px; margin: 1rem 0; }
.reg-card { border: 1px solid var(--bdr); border-radius: 6px; padding: .85rem 1rem; background: var(--white); display: grid; grid-template-columns: 54px 1fr; gap: .85rem; align-items: start; }
.reg-badge { font-size: 9px; font-weight: 600; letter-spacing: 0.04em; color: var(--white); background: var(--navy); border-radius: 4px; padding: .4rem .45rem; text-align: center; line-height: 1.4; }
.reg-title { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.reg-body { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.75; }
.reg-body strong { font-weight: 500; color: var(--text); }
.reg-link { display: inline-block; margin-top: .45rem; font-size: 10px; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(184,134,58,0.3); padding-bottom: 1px; }
.reg-link:hover { border-bottom-color: var(--accent); }

/* ==========================================================================
   CONTROL LIST
   ========================================================================== */

.ctrl { display: flex; flex-direction: column; margin: 1rem 0; }
.ctrl-item { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; padding: .8rem 0; border-bottom: 1px solid var(--bdr); align-items: start; }
.ctrl-item:last-child { border-bottom: none; }
.ctrl-n { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; color: var(--iv2); line-height: 1; padding-top: 2px; }
.ctrl-title { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: .2rem; }
.ctrl-body { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.75; }

/* ==========================================================================
   PROMPT / DIAGNOSTIC TOOL BOX
   ========================================================================== */

.prompt-box-label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint);
  margin: 1.5rem 0 .5rem;
}
.prompt-box {
  background: rgba(11, 25, 41, 0.035);
  border-left: 3px solid var(--accent);
  padding: 1.3rem 1.5rem;
  margin: 0 0 1.5rem 0;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  border-radius: 0 3px 3px 0;
}
.prompt-box strong {
  font-weight: 700; color: var(--navy);
}

/* ==========================================================================
   DISCLOSURE BLOCK
   ========================================================================== */

.disclosure {
  background: var(--ivory); border-radius: 6px; padding: .75rem .9rem;
  margin: .85rem 0 0; font-size: 11px; font-weight: 300; color: var(--muted); line-height: 1.65;
}
.disclosure strong { font-weight: 500; color: var(--text); }

/* ==========================================================================
   SECTION B — BARRIERS & CASES
   ========================================================================== */

.b-barrier { border-left: 2px solid var(--accent); padding: .75rem .9rem; margin-bottom: .5rem; background: var(--ivory); border-radius: 0 6px 6px 0; }
.b-barrier-title { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.b-barrier-body { font-size: 12px; font-weight: 300; color: var(--text); line-height: 1.75; }

.case-stack { display: flex; flex-direction: column; gap: 6px; margin: 1rem 0; }
.case-card { border: 1px solid var(--bdr); border-radius: 6px; padding: .9rem 1.1rem; background: var(--white); }
.case-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .55rem; }
.case-dest { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: .1rem; }
.case-partner { font-size: 10px; font-weight: 400; color: var(--muted); }
.case-metric { text-align: right; flex-shrink: 0; }
.case-m-num { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1; }
.case-m-lbl { font-size: 9px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.case-body { font-size: 12px; font-weight: 300; color: var(--text); line-height: 1.75; }

.case-divider {
  display: flex; align-items: center; gap: 10px; margin: .5rem 0;
}
.case-divider-line { flex: 1; height: 1px; background: var(--bdr); }
.case-divider-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

.pev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 1rem 0; }
.pev-col { border-radius: 6px; padding: .9rem 1rem; }
.pev-proven { background: #E1F5EE; border: 1px solid #9FE1CB; }
.pev-emerging { background: var(--ivory); border: 1px solid var(--bdr); }
.pev-label { font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: .65rem; padding-bottom: .4rem; border-bottom: 1px solid rgba(11,25,41,0.1); }
.pev-proven .pev-label { color: #085041; }
.pev-emerging .pev-label { color: var(--muted); }
.pev-item { font-size: 12px; font-weight: 300; color: var(--text); padding: .35rem 0; border-bottom: 1px solid rgba(11,25,41,0.06); line-height: 1.45; display: flex; gap: 6px; }
.pev-item:last-child { border-bottom: none; }
.pev-item::before { content: "→"; color: var(--muted); font-size: 9px; flex-shrink: 0; padding-top: 1px; }

/* ==========================================================================
   DIVIDERS
   ========================================================================== */

.s-divider { height: 1px; background: var(--bdr); margin: 0; }

/* ==========================================================================
   NEXT SECTION FOOTER
   ========================================================================== */

.next { background: var(--navy); padding: 1.75rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.next-lbl { font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
.next-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; color: var(--ivory); }
.next-sub { font-size: 10px; font-weight: 400; color: rgba(247,244,238,0.5); margin-top: .25rem; letter-spacing: 0.03em; }
.next-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(184,134,58,0.35); padding: .55rem 1.1rem; border-radius: 5px; text-decoration: none; white-space: nowrap; transition: all 0.15s; }
.next-btn:hover { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.next-btn.disabled {
  color: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.12);
  pointer-events: none;
}

/* ==========================================================================
   PAYWALL (for gated sections)
   ========================================================================== */

.paywall-fade {
  position: relative; max-height: 280px; overflow: hidden;
  margin-bottom: 0;
}
.paywall-fade::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, transparent 0%, var(--white) 85%);
  pointer-events: none;
}
.paywall {
  background: var(--ivory); border: 1px solid var(--bdr); border-radius: 10px;
  padding: 1.75rem 1.75rem; text-align: center; margin: 0 0 1.5rem; position: relative;
}
.paywall-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .85rem; color: var(--accent); font-size: 18px;
}
.paywall-kicker {
  font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem;
}
.paywall-title {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700;
  color: var(--navy); line-height: 1.25; margin-bottom: .6rem;
}
.paywall-title em { font-style: italic; color: var(--accent); }
.paywall-body {
  font-size: 13px; font-weight: 300; color: var(--text); line-height: 1.7;
  max-width: 460px; margin: 0 auto 1.1rem;
}
.paywall-cta {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); background: var(--navy); padding: .75rem 1.5rem;
  border-radius: 6px; text-decoration: none; transition: all 0.15s;
}
.paywall-cta:hover { background: var(--accent); }
.paywall-alt {
  display: block; font-size: 10px; color: var(--muted); margin-top: .85rem;
}
.paywall-alt a { color: var(--navy); border-bottom: 1px solid var(--bdr); text-decoration: none; padding-bottom: 1px; }
.paywall-alt a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.paywall-unlocks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--bdr);
  font-size: 10px; color: var(--muted);
}
.paywall-unlocks strong { color: var(--navy); font-weight: 500; }

/* ==========================================================================
   LANDING PAGE — SECTION GRID
   ========================================================================== */

.landing-intro {
  padding: 2rem 2.5rem 1.25rem;
  max-width: 780px;
}
.landing-intro h2 {
  font-size: 22px; margin-bottom: .6rem;
}
.landing-intro p {
  font-size: 13px; color: var(--muted); line-height: 1.75;
}

.sec-grid-wrap {
  padding: 0 2.5rem 2.5rem; max-width: 1100px;
}
.sec-grid-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 1rem 0 .85rem;
  display: flex; align-items: center; gap: 10px;
}
.sec-grid-label::before { content: ""; display: block; width: 20px; height: 1px; background: var(--accent); }

.sec-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.sec-tile {
  display: flex; flex-direction: column;
  border: 1px solid var(--bdr); border-radius: 8px; padding: 1rem 1.25rem;
  background: var(--white); text-decoration: none; color: inherit;
  transition: all 0.18s; position: relative; min-height: 130px;
}
.sec-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 14px rgba(11,25,41,0.05);
  transform: translateY(-1px);
}

.sec-tile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .6rem; }
.sec-tile-letter {
  font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700;
  color: var(--iv2); line-height: 1; letter-spacing: -0.02em;
}
.sec-tile-status {
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 4px; white-space: nowrap;
}
.sec-tile.published .sec-tile-status { background: #E1F5EE; color: #085041; }
.sec-tile.gated .sec-tile-status { background: rgba(184,134,58,0.1); color: var(--accent); }
.sec-tile.future .sec-tile-status { background: var(--ivory); color: var(--muted); }

.sec-tile-title {
  font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600;
  color: var(--navy); line-height: 1.25; margin-bottom: .35rem;
  letter-spacing: -0.005em;
}
.sec-tile-desc {
  font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.55;
  margin-bottom: .85rem; flex-grow: 1;
}
.sec-tile-foot {
  font-size: 9px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); display: flex; justify-content: space-between; align-items: center;
  padding-top: .6rem; border-top: 1px solid var(--bdr);
}
.sec-tile-foot .date { color: var(--accent); }
.sec-tile.future { opacity: 0.75; }
.sec-tile.future:hover { transform: none; box-shadow: none; border-color: var(--bdr); cursor: default; }

/* Landing CTA band */
.cta-band {
  background: var(--navy); padding: 2rem 2.5rem; position: relative; overflow: hidden;
}
.cta-band-inner { max-width: 780px; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band-text { flex: 1; min-width: 260px; }
.cta-band-kicker {
  font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem;
}
.cta-band-title {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700;
  color: var(--ivory); line-height: 1.25; margin-bottom: .5rem;
}
.cta-band-title em { font-style: italic; color: var(--accent2); }
.cta-band-desc {
  font-size: 13px; color: rgba(247,244,238,0.7); line-height: 1.65; max-width: 460px;
}
.cta-band-btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); background: var(--accent2);
  padding: .85rem 1.6rem; border-radius: 6px; text-decoration: none;
  white-space: nowrap; transition: all 0.15s;
}
.cta-band-btn:hover { background: var(--ivory); }

/* ==========================================================================
   REGISTER PAGE
   ========================================================================== */

.reg-wrap {
  max-width: 540px; padding: 2.5rem 2.5rem 2rem;
}
.reg-kicker {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
  display: flex; align-items: center; gap: 10px;
}
.reg-kicker::before { content: ""; display: block; width: 20px; height: 1px; background: var(--accent); }
.reg-h1 {
  font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 700;
  color: var(--navy); line-height: 1.2; margin-bottom: .75rem; letter-spacing: -0.01em;
}
.reg-h1 em { font-style: italic; color: var(--accent); }
.reg-intro {
  font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem;
}

.reg-form {
  background: var(--ivory); border-radius: 10px; padding: 1.75rem 1.75rem;
  margin-bottom: 1.5rem; border: 1px solid var(--bdr);
}
.reg-field {
  display: flex; flex-direction: column; margin-bottom: 1rem;
}
.reg-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); margin-bottom: .4rem;
}
.reg-input, .reg-select {
  font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 400;
  padding: .75rem .85rem; border: 1px solid var(--bdr); border-radius: 5px;
  background: var(--white); color: var(--text);
  transition: border-color 0.15s;
}
.reg-input:focus, .reg-select:focus { outline: none; border-color: var(--accent); }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reg-check {
  display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0;
  font-size: 11px; color: var(--muted); line-height: 1.5;
}
.reg-check input { margin-top: 2px; flex-shrink: 0; }
.reg-submit {
  display: block; width: 100%; padding: .9rem; font-size: 11px;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); background: var(--navy); border: none; border-radius: 6px;
  cursor: pointer; font-family: 'Jost', sans-serif; transition: all 0.15s;
  margin-top: .5rem;
}
.reg-submit:hover { background: var(--accent); }

.reg-unlocks {
  background: var(--white); border: 1px solid var(--bdr); border-radius: 8px;
  padding: 1.25rem 1.5rem; margin-bottom: 1rem;
}
.reg-unlocks-title {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.reg-unlocks-list {
  display: flex; flex-direction: column; gap: .5rem;
}
.reg-unlock-item {
  display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start;
  font-size: 12px; color: var(--text); line-height: 1.6;
}
.reg-unlock-item::before { content: "✓"; color: var(--accent); font-size: 13px; font-weight: 600; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .hero, .sec-header, .next, .cta-band { padding: 1.5rem 1.25rem; }
  .content, .landing-intro, .sec-grid-wrap, .reg-wrap { padding: 1.25rem; }
  .stat:first-child { padding-left: 1.25rem; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .ch-grid, .trio, .pev-grid, .sec-grid { grid-template-columns: 1fr; }
  .reg-card { grid-template-columns: 1fr; }
  .reg-row { grid-template-columns: 1fr; }
  .seq { flex-direction: column; }
  .seq-s::after { display: none; }
  .seq-s:first-child, .seq-s:last-child { border-radius: 8px; }
  .next, .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .case-header { flex-direction: column; }
  .trio.quad { grid-template-columns: repeat(2,1fr); }
}

/* ==========================================================================
   SITE FOOTER — single playbook-wide disclosure location
   ========================================================================== */

.site-footer {
  margin: 4rem auto 2rem;
  padding: 0 2.5rem;
  max-width: 780px;
}
.site-footer .disclosure {
  background: transparent;
  border-top: 1px solid var(--bdr);
  border-radius: 0;
  padding: 1.4rem 0 0;
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
  text-align: left;
}
.site-footer .disclosure strong {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ----------------------------------------------------------------- */
/* Auth visibility helpers                                            */
/* `.show-if-authed` content is hidden by default and revealed only   */
/* when the edge function has marked the body as `.is-authed`.        */
/* The corresponding hide rule for `.show-if-anon` and the `.paywall` */
/* block is injected at runtime by the edge function.                 */
/* ----------------------------------------------------------------- */
.show-if-authed { display: none; }
