/* ============================================================
   Sollr Landing Page — CSS
   Inspired by Obsidian.md: dark, atmospheric, philosophy-first.
   ============================================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --bg-primary: #0A0E1A;
  --bg-elevated: rgba(10, 14, 39, 0.5);
  --border-subtle: rgba(108, 60, 224, 0.2);
  --border-hover: rgba(108, 60, 224, 0.4);
  --text-primary: #E8E8F0;
  --text-secondary: #B8C4DA;
  --text-tertiary: rgba(184, 196, 218, 0.5);
  --accent-purple: #6C3CE0;
  --accent-purple-dim: #5A2FBB;
  --accent-gold: #FFD700;
  --accent-orange: #FF6B35;
  --accent-blue: #4488DD;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --max-width: 1200px;
  --section-pad: 120px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }

/* ---------- STAR FIELD BACKGROUND ---------- */
.star-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.star-layer {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
}
.star-layer-1 { animation: drift 200s linear infinite; }
.star-layer-2 { animation: drift 150s linear infinite reverse; }
.star-layer-3 { animation: drift 100s linear infinite; }

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-5%); }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 39, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 3px;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--text-primary); }
.nav-link--accent { color: var(--accent-purple); }
.nav-link--accent:hover { color: #8B5CF6; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 12px;
  padding: 14px 32px;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dim));
  box-shadow: 0 4px 20px rgba(108, 60, 224, 0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 60, 224, 0.45);
}
.btn--large { padding: 18px 48px; font-size: 18px; }

/* ---------- SECTION UTILITIES ---------- */
.section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.section-inner--narrow { max-width: 720px; }

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 64px;
  line-height: 1.2;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- GOLD ACCENTS ---------- */
.dot-gold { color: var(--accent-gold); }
.text-gold { color: var(--accent-gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
  letter-spacing: 0.3px;
}
/*
 * TELESCOPE PORTHOLE — the circular orrery effect.
 * DO NOT put border-radius/sizing on #orrery-canvas itself.
 * The canvas JS (_updateSize) reads parent dimensions and sets inline styles,
 * which overrides any CSS on the canvas element. Instead:
 *   - This wrapper controls the circle (border-radius: 50%, overflow: hidden)
 *   - aspect-ratio: 1 keeps it square so the circle isn't an ellipse
 *   - The canvas inside is width/height: 100%, filling the wrapper
 *   - Responsive max-width lives on the wrapper at tablet/mobile breakpoints
 *   - On desktop, NO max-width — the wrapper fills the grid column naturally
 */
.hero-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
#orrery-canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: canvasFadeIn 2s ease-out 0.3s forwards;
}
@keyframes canvasFadeIn {
  to { opacity: 1; }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-tertiary);
  animation: bobDown 2s ease-in-out infinite;
}
@keyframes bobDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   TAB BAR
   ============================================================ */
.tab-bar {
  position: sticky;
  top: 64px;
  z-index: 99;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(10, 14, 39, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 14px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--text-primary); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 1px;
}

/* ============================================================
   TAB SECTIONS — show/hide
   ============================================================ */
.tab-content {
  position: relative;
  z-index: 1;
  min-height: 60vh;
}
.tab-section {
  display: none;
}
.tab-section.active {
  display: block;
}

/* ============================================================
   STORYBOARD — EPIGRAPH
   ============================================================ */
.story-epigraph {
  text-align: center;
  padding: var(--section-pad) 0 64px;
}
.story-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  line-height: 1.3;
  margin-top: 48px;
}

/* ============================================================
   STORYBOARD — BEATS
   ============================================================ */
.story-beat {
  max-width: 560px;
  margin: 0 auto 80px;
  text-align: center;
}
.story-beat:last-child { margin-bottom: 0; }

.story-beat--old {
  border: 1px solid rgba(255, 70, 70, 0.12);
  border-radius: 20px;
  padding: 32px 24px;
  background: rgba(255, 70, 70, 0.02);
}
.story-beat--new {
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 24px;
  background: var(--bg-elevated);
}

.beat-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  margin-bottom: 24px;
}
.beat-illustration--canvas {
  min-height: 0;
}

.beat-headline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.beat-body {
  font-size: 16px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   STORYBOARD — MOCK UI (Beats 1-3)
   ============================================================ */

/* -- Notifications -- */
.mock-notifications {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-notif {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(30, 34, 55, 0.8);
  border-left: 3px solid transparent;
  font-size: 13px;
  color: var(--text-secondary);
}
.mock-notif--red { border-left-color: #FF4646; }
.mock-notif--orange { border-left-color: #FF8C00; }
.mock-notif--yellow { border-left-color: #FFD700; }
.mock-notif-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.mock-notif-text {
  flex: 1;
  text-align: left;
}

/* -- To-do List -- */
.mock-todolist {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-todo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 6px;
  background: rgba(30, 34, 55, 0.5);
}
.mock-todo--checked {
  color: var(--text-tertiary);
  text-decoration: line-through;
}
.mock-todo--overdue {
  color: #FF6B6B;
}
.mock-check {
  color: #4CAF50;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.mock-checkbox {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(184, 196, 218, 0.3);
  border-radius: 3px;
  flex-shrink: 0;
  margin: 0 2px;
}
.mock-todo--overdue .mock-checkbox {
  border-color: rgba(255, 70, 70, 0.4);
}

/* -- Streak Counter -- */
.mock-streak {
  text-align: center;
  padding: 16px 24px;
}
.mock-streak-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mock-streak-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.mock-streak--broken {
  color: #FF4646;
}
.mock-streak-was {
  font-size: 13px;
  font-style: italic;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ============================================================
   STORYBOARD — BEAT CANVASES (Beats 4-6)
   ============================================================ */
.beat-canvas {
  width: 200px;
  height: 200px;
  border-radius: 12px;
}

/* ============================================================
   STORYBOARD — THE TURN
   ============================================================ */
.storyboard-turn {
  text-align: center;
  padding: 64px 32px;
  position: relative;
}
.storyboard-turn::before,
.storyboard-turn::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
.storyboard-turn::before { top: 0; }
.storyboard-turn::after { bottom: 0; }
.storyboard-turn span {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

/* ============================================================
   STORYBOARD — OVERVIEW & CLOSING
   ============================================================ */
.story-overview {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  padding: 48px 32px;
  border: 1px solid rgba(108, 60, 224, 0.15);
  border-radius: 20px;
  background: var(--bg-elevated);
}
.story-overview-text {
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
}
.story-closing {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.5;
  padding: 40px 0 var(--section-pad);
}

/* ============================================================
   THE MIRROR (reused in epigraph)
   ============================================================ */
.mirror-hook {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 48px;
}
.mirror-body {
  font-size: 17px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 28px;
}

/* ============================================================
   THREE PILLARS
   ============================================================ */
.pillars {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(108, 60, 224, 0.1);
}
.pillar-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.pillar-canvas {
  width: 200px;
  height: 200px;
  border-radius: 12px;
}
.pillar-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.pillar-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================================
   THREE VIEWS
   ============================================================ */
.views {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}
.view-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.view-row:last-child { margin-bottom: 0; }
.view-row--reverse { direction: rtl; }
.view-row--reverse > * { direction: ltr; }

.view-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.8), rgba(20, 24, 50, 0.6));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 14px;
}
.view-placeholder-icon {
  font-size: 48px;
  opacity: 0.4;
}
.view-canvas-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-primary);
  box-shadow: 0 0 40px rgba(108, 60, 224, 0.06);
}
.view-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}
.horizon-canvas-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: #080C18;
  box-shadow: 0 0 40px rgba(64, 224, 208, 0.04);
}
#horizon-canvas {
  width: 100%;
  height: 100%;
}
.morning-star-wrap {
  background: #0A0E1A;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.04);
}
.view-heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.view-body {
  font-size: 16px;
  line-height: 1.7;
  max-width: 420px;
}

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0 80px;
}
.privacy-body {
  font-size: 17px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}
.philosophy-statement {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  text-align: center;
}
.download-heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  margin-bottom: 40px;
}
.download-cta { margin-bottom: 20px; }
.download-sub {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}
.download-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(184, 196, 218, 0.2);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.store-badge:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(108, 60, 224, 0.12);
  padding-top: 48px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer-brand { flex: 1; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
}
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-secondary); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 32px;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ============================================================
   COMET VISUAL (in Views section)
   ============================================================ */
.comet-visual {
  background: var(--bg-primary);
  box-shadow: 0 0 40px rgba(255, 170, 0, 0.04);
}
.comet-visual canvas {
  width: 100%;
  height: 100%;
}

/* ============================================================
   TIERS
   ============================================================ */
.tiers {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}
.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.tier-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px 32px;
  transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(108, 60, 224, 0.1);
}
.tier-card--premium {
  border-color: rgba(255, 215, 0, 0.25);
}
.tier-card--premium:hover {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 8px 40px rgba(255, 215, 0, 0.08);
}
.tier-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tier-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  padding: 2px 10px;
}
.tier-price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}
.tier-pitch {
  font-size: 15px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.tier-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.tier-includes li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.tier-includes li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--text-tertiary);
  font-size: 18px;
  line-height: 1;
}
.tier-annual {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}
.manifesto-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 64px;
  line-height: 1.2;
}
.manifesto-body {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}
.manifesto-closing {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-gold);
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   DOWNLOAD LEAD
   ============================================================ */
.download-lead {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ============================================================
   TAB CTA (persistent at bottom of each tab section)
   ============================================================ */
.tab-cta {
  text-align: center;
  padding: 64px 32px 80px;
}
.tab-cta-sub {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 16px;
}

/* ============================================================
   TIER CTA BUTTONS
   ============================================================ */
.btn--tier {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  margin-top: 24px;
  transition: border-color 0.2s, background 0.2s;
}
.btn--tier:hover {
  border-color: var(--border-hover);
  background: rgba(108, 60, 224, 0.08);
}
.btn--tier-premium {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
}
.btn--tier-premium:hover {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.1);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: var(--section-pad) 0; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-question {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--text-tertiary);
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
  content: '\2212';
}
.faq-question::-webkit-details-marker { display: none; }
.faq-answer {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 12px;
  padding-right: 32px;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-canvas-wrap { order: -1; max-width: 480px; margin: 0 auto; }
  #orrery-canvas { width: 100%; height: 100%; }
  .hero-title { font-size: 44px; }
  .pillars-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .view-row, .view-row--reverse { grid-template-columns: 1fr; text-align: center; }
  .view-row--reverse { direction: ltr; }
  .view-body { margin: 0 auto; }
  .view-row { gap: 32px; margin-bottom: 80px; }
  .philosophy-statement { font-size: 26px; }
  .section-title { font-size: 28px; }
  .tiers-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .manifesto-title { font-size: 28px; }

  /* Storyboard tablet */
  .story-beat { margin-bottom: 64px; }
  .beat-illustration { min-height: 100px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --section-pad: 80px; }
  .nav-links { gap: 10px; }
  .nav-link { font-size: 11px; letter-spacing: 0; }
  .nav-link--accent {
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid var(--accent-purple);
    border-radius: 6px;
  }
  .nav-inner { padding: 0 16px; }
  .section-inner { padding: 0 20px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-canvas-wrap { max-width: 320px; }
  .mirror-hook { font-size: 22px; }
  .mirror-body { font-size: 15px; }
  .section-title { font-size: 24px; margin-bottom: 40px; }
  .pillar-heading { font-size: 16px; }
  .philosophy-statement { font-size: 22px; }
  .download-heading { font-size: 28px; }
  .download-badges { flex-direction: column; align-items: center; }
  .manifesto-title { font-size: 24px; margin-bottom: 40px; }
  .manifesto-body { font-size: 15px; line-height: 1.8; }
  .manifesto-closing { font-size: 18px; }
  .tier-name { font-size: 20px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; }
  .view-heading { font-size: 20px; }

  /* Tab bar mobile — horizontal scroll */
  .tab-bar {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 8px;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-bar::after {
    content: '';
    position: sticky;
    right: 0;
    flex-shrink: 0;
    width: 32px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 14, 39, 0.92));
    pointer-events: none;
  }
  .tab-btn {
    font-size: 11px;
    padding: 12px 16px;
    white-space: nowrap;
  }
  .nav-link[data-tab] { display: none; }

  /* Storyboard mobile */
  .story-beat { margin-bottom: 56px; padding: 24px 20px; }
  .beat-illustration { min-height: 80px; }
  .beat-headline { font-size: 17px; }
  .beat-canvas { width: 160px; height: 160px; }
  .story-title { font-size: 24px; }
  .story-closing { font-size: 20px; }
  .story-overview { padding: 32px 20px; margin: 56px auto; }
  .story-overview-text { font-size: 16px; }
  .storyboard-turn { padding: 48px 20px; }
  .mock-notif { font-size: 12px; padding: 8px 10px; }
  .mock-todo { font-size: 12px; padding: 6px 10px; }
  .mock-streak-number { font-size: 48px; }
}

/* Small mobile */
@media (max-width: 380px) {
  .hero-title { font-size: 28px; }
}
