/* ============================================================
   Daily Mind and Body — Design System
   /assets/styles.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:     #0f233f;
  --parchment:   #f2eee2;
  --gold:        #c9a96e;
  --gold-light:  #dfc38c;
  --periwinkle:  #83a1cc;
  --slate:       #546070;
  --seafoam:     #e8ede5;
  --dark:        #080e18;
  --dark-card:   #1a2a42;
  --dark-card-lighter: #1f3050;
  --nav-height:  64px;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  --radius-card:  16px;
  --radius-pill:  9999px;
  --max-width:    1200px;
  --content-width: 900px;
  --reading-width: 700px;
}

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; }
p { font-family: var(--font-body); }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.container--content { max-width: var(--content-width); margin: 0 auto; padding: 0 32px; }
.container--reading { max-width: var(--reading-width); margin: 0 auto; padding: 0 32px; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 14, 24, 0.85);
  transition: background 0.4s ease;
}
.nav.nav--light {
  background: rgba(242, 238, 226, 0.85);
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}
.nav.nav--light .nav__logo { color: var(--primary); }
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(242,238,226,0.8);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--parchment); }
.nav.nav--light .nav__links a { color: rgba(15,35,63,0.7); }
.nav.nav--light .nav__links a:hover { color: var(--primary); }
.nav__cta {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,169,110,0.35); }

/* ── Hamburger / mobile menu ─────────────────────────────────── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--parchment);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav.nav--light .nav__hamburger span { background: var(--primary); }
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(8, 14, 24, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px 32px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}
.nav__mobile-menu.is-open { display: flex; }
.nav.nav--light + .nav__mobile-menu,
.nav__mobile-menu.nav--light {
  background: rgba(242, 238, 226, 0.97);
}
.nav__mobile-menu a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: rgba(242,238,226,0.85);
  padding: 14px 0;
  border-bottom: 1px solid rgba(242,238,226,0.1);
  transition: color 0.2s ease;
}
.nav__mobile-menu a:hover { color: var(--parchment); }
.nav__mobile-menu .nav__mobile-cta {
  margin-top: 24px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
  text-align: center;
  border-bottom: none;
}

/* ── Mega menu panel ── */
.nav__mega-panel {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(8, 14, 24, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 32px 32px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
  pointer-events: none;
}
.nav__mega-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__mega-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 24px;
}
.nav__mega-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav__mega-link:hover {
  background: rgba(255, 255, 255, 0.05);
}
.nav__mega-link strong {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--parchment);
  transition: color 0.15s ease;
}
.nav__mega-link span {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(242, 238, 226, 0.45);
  line-height: 1.4;
}
.nav__mega-link:hover strong {
  color: var(--gold);
}

/* Light mode overrides */
.nav.nav--light ~ .nav__mega-panel {
  background: rgba(242, 238, 226, 0.97);
  border-top-color: rgba(15, 35, 63, 0.08);
  border-bottom-color: rgba(15, 35, 63, 0.08);
}
.nav.nav--light ~ .nav__mega-panel .nav__mega-link strong {
  color: var(--primary);
}
.nav.nav--light ~ .nav__mega-panel .nav__mega-link span {
  color: rgba(15, 35, 63, 0.5);
}
.nav.nav--light ~ .nav__mega-panel .nav__mega-link:hover {
  background: rgba(15, 35, 63, 0.05);
}
.nav.nav--light ~ .nav__mega-panel .nav__mega-link:hover strong {
  color: var(--gold);
}

/* ── Mobile accordion ── */
.nav__mobile-accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 18px;
  color: rgba(242, 238, 226, 0.85);
  font-family: var(--font-ui);
  font-weight: 400;
  user-select: none;
}
.nav__mobile-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav__mobile-accordion.is-open .nav__mobile-chevron {
  transform: rotate(180deg);
}
.nav__mobile-sub {
  display: none;
  flex-direction: column;
  padding: 4px 0 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__mobile-sub.is-open {
  display: flex;
}
.nav__mobile-sub a {
  font-size: 15px;
  padding: 9px 0;
  color: rgba(242, 238, 226, 0.65);
  text-decoration: none;
  font-family: var(--font-ui);
  border-bottom: none;
}
.nav__mobile-sub a:first-child {
  color: rgba(242, 238, 226, 0.85);
  font-weight: 500;
}
.nav__mobile-sub a:hover {
  color: var(--parchment);
}

/* ── Nav placeholder (for fetch injection) ──────────────────── */
.nav-placeholder--dark {
  height: var(--nav-height);
  background: rgba(8, 14, 24, 0.85);
}

.nav-placeholder--light {
  height: var(--nav-height);
  background: rgba(242, 238, 226, 0.85);
}

/* ── Focus styles (accessibility) ───────────────────────────── */
.nav__links a:focus-visible,
.nav__cta:focus-visible,
.btn:focus-visible,
.card:focus-visible,
.paper-toc a:focus-visible,
.footer__links a:focus-visible,
.support-link:focus-visible,
.nav__mobile-menu a:focus-visible,
.nav__hamburger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Ticker ─────────────────────────────────────────────────── */
.ticker {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-block;
  animation: ticker-scroll linear infinite;
  animation-duration: 30s;
}
.ticker__track span {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(242,238,226,0.5);
  padding: 0 24px;
}
.ticker__track span.sep { color: var(--gold); opacity: 0.5; padding: 0 4px; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,0.4); }
.btn--ghost-dark {
  background: transparent;
  color: var(--parchment);
  border: 1.5px solid rgba(242,238,226,0.2);
}
.btn--ghost-dark:hover { border-color: rgba(242,238,226,0.5); }
.btn--ghost-light {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(15,35,63,0.2);
}
.btn--ghost-light:hover { border-color: rgba(15,35,63,0.5); }
.btn--sm { padding: 10px 24px; font-size: 13px; }

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}
.badge--periwinkle { color: var(--periwinkle); }
.badge--outline {
  padding: 4px 14px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  letter-spacing: 0.12em;
  font-size: 10px;
}

/* ── Hero (dark) ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #080e18 0%, #0f233f 52%, #142847 72%, #0a0f1a 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(300px, 50vw, 600px);
  font-weight: 300;
  color: var(--parchment);
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  animation: deco-breath 8s ease-in-out infinite;
}
@keyframes deco-breath {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.03; }
  50%       { transform: translate(-50%, -50%) scale(1.04); opacity: 0.06; }
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.hero__content { display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 500;
  color: var(--parchment);
  line-height: 1.05;
}
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: rgba(242,238,226,0.7);
  line-height: 1.7;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__mockup {
  width: 280px;
  height: 560px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero__mockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 44px;
}
.hero__mockup-placeholder {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(242,238,226,0.3);
  text-align: center;
  padding: 24px;
}

/* ── Section transitions ─────────────────────────────────────── */
.section-transition-dark {
  height: 80px;
  background: linear-gradient(180deg, transparent, #080e18);
  margin-top: -80px;
  position: relative;
  z-index: 1;
}
.section-transition-light {
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--parchment));
  margin-top: -80px;
  position: relative;
  z-index: 1;
}

/* ── Feature highlights (light 3-col) ───────────────────────── */
.highlights {
  background: var(--parchment);
  padding: 100px 0;
}
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.highlight {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.highlight__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(15,35,63,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight__icon svg { width: 24px; height: 24px; }
.highlight__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
}
.highlight__body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
}

/* ── Feature cards (dark 2×2) ───────────────────────────────── */
.feature-cards {
  position: relative;
  background: var(--primary);
  padding: 100px 0;
  overflow: hidden;
}
.feature-cards__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.feature-cards__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.feature-cards__header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 56px;
  padding: 0 32px;
}
.feature-cards__header h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  color: var(--parchment);
  font-weight: 500;
}
.card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s ease;
}
.card:hover { border-color: rgba(201,169,110,0.2); }
.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dark-card-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__icon svg { width: 20px; height: 20px; }
.card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--parchment);
}
.card__body {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(242,238,226,0.5);
  line-height: 1.6;
}

/* ── Trust block (light) ─────────────────────────────────────── */
.trust {
  background: var(--parchment);
  padding: 100px 0;
}
.trust__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.trust__headline {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.2;
}
.trust__body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--slate);
  line-height: 1.8;
}
.trust__secondary {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--slate);
  font-style: italic;
}
.trust__link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── CTA section ─────────────────────────────────────────────── */
.cta-section {
  position: relative;
  background: var(--dark);
  padding: 120px 0 80px;
  overflow: hidden;
}
.cta-section__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-section__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.cta-section__headline {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  color: var(--parchment);
  line-height: 1.15;
}
.cta-section__sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(242,238,226,0.6);
}
.cta-section__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 64px 0 32px;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--parchment);
}
.footer__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(242,238,226,0.55);
  line-height: 1.6;
}
.footer__col-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--parchment); }
.footer__bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── Feature Hub (featureHub page type) ─────────────────────── */
.feature-hub-hero {
  position: relative;
  background: linear-gradient(180deg, #080e18 0%, #0f233f 100%);
  padding: 160px 0 80px;
  overflow: hidden;
  text-align: center;
}
.feature-hub-hero__canvas { position: absolute; inset: 0; pointer-events: none; }
.feature-hub-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.feature-hub-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  color: var(--parchment);
  line-height: 1.1;
}
.feature-hub-hero__sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(242,238,226,0.65);
  max-width: 560px;
}

.feature-section {
  position: relative;
  background: var(--primary);
  min-height: 400px;
  padding: 80px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.feature-section__numeral {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 250px;
  font-weight: 300;
  color: var(--parchment);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.feature-section__inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-section__label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-style: italic;
  color: rgba(242,238,226,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-section__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  color: var(--parchment);
  line-height: 1.05;
}
.feature-section__desc {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(242,238,226,0.65);
  max-width: 560px;
}
.feature-section__meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(242,238,226,0.35);
  letter-spacing: 0.05em;
}
.feature-section__actions { display: flex; gap: 12px; margin-top: 8px; }

/* ── Feature Page (featurePage type) ────────────────────────── */
.feature-mini-hero {
  position: relative;
  background: linear-gradient(180deg, #080e18 0%, #0f233f 100%);
  padding: 140px 0 80px;
  overflow: hidden;
}
.feature-mini-hero__canvas { position: absolute; inset: 0; pointer-events: none; }
.feature-mini-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-mini-hero__content { display: flex; flex-direction: column; gap: 20px; }
.feature-mini-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  color: var(--parchment);
  line-height: 1.1;
}
.feature-mini-hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(242,238,226,0.65);
  line-height: 1.7;
}
.feature-mini-hero__screenshot {
  display: flex;
  justify-content: center;
}
.screenshot-mockup {
  width: 220px;
  height: 440px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.screenshot-mockup img { width: 100%; height: 100%; object-fit: contain; border-radius: 36px; }
.screenshot-mockup--square {
  width: 220px;
  height: 220px;
  border-radius: 28px;
}
.screenshot-mockup--square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
.screenshot-mockup__placeholder {
   font-family: var(--font-ui);
   font-size: 11px;
   color: rgba(242,238,226,0.25);
   text-align: center;
   padding: 16px;
}

.feature-body {
  background: var(--parchment);
  padding: 80px 0;
}
.feature-body__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.feature-body__section { display: flex; flex-direction: column; gap: 24px; }
.feature-body__section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15,35,63,0.1);
}
.capabilities-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.capabilities-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--slate);
  line-height: 1.6;
}
.capabilities-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}
.capabilities-list__label {
  grid-column: 2;
  grid-row: 1;
  color: var(--primary);
}
.capabilities-list__desc {
  grid-column: 2;
  grid-row: 2;
  margin-top: 4px;
}
.how-it-works { display: flex; flex-direction: column; gap: 24px; }
.how-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.how-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--parchment);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-step__text {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--slate);
  line-height: 1.7;
  padding-top: 6px;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid rgba(15,35,63,0.08);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid rgba(15,35,63,0.08); }
.faq-item__q {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.faq-item__a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
}

/* ── Support page ────────────────────────────────────────────── */
.support-hero {
  background: linear-gradient(180deg, #080e18 0%, #0f233f 100%);
  padding: 140px 0 80px;
  text-align: center;
}
.support-hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.support-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  color: var(--parchment);
}
.support-hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(242,238,226,0.65);
  max-width: 520px;
}
.support-body {
  background: var(--parchment);
  padding: 80px 0;
}
.support-body__inner {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.support-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.support-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--parchment);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.support-step__content { display: flex; flex-direction: column; gap: 8px; }
.support-step__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
}
.support-step__body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
}
.support-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.support-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(15,35,63,0.2);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  transition: border-color 0.2s ease;
}
.support-link:hover { border-color: var(--primary); }

/* ── Paper page (editorial) ──────────────────────────────────── */
.paper-hero {
  background: var(--parchment);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}
.paper-hero__canvas { position: absolute; inset: 0; pointer-events: none; }
.paper-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.paper-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.1;
}
.paper-hero__title em { font-style: italic; color: var(--periwinkle); }
.paper-hero__byline {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--slate);
  letter-spacing: 0.02em;
}
.paper-body {
  background: var(--parchment);
  padding: 60px 0 100px;
  position: relative;
}
.paper-body__canvas { position: absolute; inset: 0; pointer-events: none; }
.paper-body__layout {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}
.paper-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.paper-toc__title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15,35,63,0.4);
  margin-bottom: 8px;
}
.paper-toc a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(15,35,63,0.5);
  line-height: 1.5;
  transition: color 0.2s ease;
  padding: 2px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
}
.paper-toc a:hover,
.paper-toc a.active { color: var(--primary); border-left-color: var(--gold); }
.paper-content { display: flex; flex-direction: column; gap: 48px; }
.paper-section { display: flex; flex-direction: column; gap: 16px; }
.paper-section__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15,35,63,0.12);
}
.paper-section p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--slate);
  line-height: 1.8;
}
.paper-section p + p { margin-top: 16px; }
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 24px;
  margin: 8px 0;
}
.pull-quote p {
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  color: var(--primary);
  line-height: 1.5;
}
.paper-refs {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(15,35,63,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.paper-refs p {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(15,35,63,0.5);
  line-height: 1.6;
}

/* ── Pricing page ────────────────────────────────────────────── */
.pricing-hero {
  background: linear-gradient(180deg, #080e18 0%, #0f233f 100%);
  padding: 140px 0 80px;
  text-align: center;
}
.pricing-hero__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.pricing-hero__price {
  font-family: var(--font-heading);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 300;
  color: var(--parchment);
  line-height: 1;
}
.pricing-hero__price span {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 500;
}
.pricing-hero__label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.pricing-hero__sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(242,238,226,0.65);
}
.pricing-body {
  background: var(--parchment);
  padding: 80px 0;
}
.pricing-body__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.pricing-features { display: flex; flex-direction: column; gap: 0; }
.pricing-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(15,35,63,0.08);
}
.pricing-feature:first-child { border-top: 1px solid rgba(15,35,63,0.08); }
.pricing-feature__name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--primary);
}
.pricing-feature__status {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ── Blog page ───────────────────────────────────────────────── */
.blog-hero {
  background: var(--parchment);
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero__canvas { position: absolute; inset: 0; pointer-events: none; }
.blog-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.blog-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  color: var(--primary);
}
.blog-hero__title em { font-style: italic; color: var(--periwinkle); }
.blog-hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--slate);
  max-width: 480px;
}

/* ── Utilities ───────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-parchment { color: var(--parchment); }
.text-slate { color: var(--slate); }
.text-muted { color: rgba(15,35,63,0.5); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { display: none; }
  .highlights__grid { grid-template-columns: 1fr; }
  .feature-cards__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .feature-mini-hero__inner { grid-template-columns: 1fr; }
  .feature-mini-hero__screenshot { display: none; }
  .paper-body__layout { grid-template-columns: 1fr; }
  .paper-toc { display: none; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mega-panel { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
}

@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; }
}
