/* Starchan — structural layout */

html, body {
  width: 100%;
  margin: 0;
}

/* Phase 43: Scroll padding accounts for sticky header + tabs bar */
html {
  scroll-padding-top: calc(var(--header-height) + var(--tabs-height) + 8px);
}

/* Page wrapper — no max-width at top level; sections control their own */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  min-height: 60vh;
}

/* ─── Site Header (brand bar — all pages) ─────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  -webkit-backdrop-filter: var(--header-blur);
  backdrop-filter: var(--header-blur);
  border-bottom: 3px solid var(--gold);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 var(--gap-xl);
  gap: var(--gap-lg);
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  box-sizing: border-box;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.site-logo:hover {
  color: var(--gold-light);
}

.site-logo-star { color: var(--gold); }
.site-logo-name { color: var(--text-on-dark); }

.site-tagline {
  font-size: 14px;
  color: var(--text-muted-dark);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header-auth {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-shrink: 0;
}

/* ─── Board Tabs Bar (tabs only — all pages) ──────────────────────────────── */
.board-tabs-bar {
  background: var(--tabs-bg);
  -webkit-backdrop-filter: var(--header-blur);
  backdrop-filter: var(--header-blur);
  border-bottom: 1px solid var(--navy-border);
  height: var(--tabs-height);
  display: flex;
  align-items: center;
  padding: 0 var(--gap-xl);
  gap: 2px;
  position: sticky;
  top: var(--header-height);
  z-index: 199;
  width: 100%;
  box-sizing: border-box;
}

/* Honor reduced-transparency preference — drop blur, use solid chrome.
   Matches the navy palette without the atmospheric layering. */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--navy);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .board-tabs-bar {
    background: var(--navy-deep);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.board-tab {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0 13px;
  height: var(--tabs-height);
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  border-bottom: none;
  margin-bottom: 0;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.board-tab::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.board-tab:hover,
.board-tab.active {
  color: var(--gold);
  background: rgba(255,255,255,0.05);
}

.board-tab.active::after {
  opacity: 1;
}

/* ─── Board tabs — product links (Artemis, Donate) ─────────────────────── */
.board-tabs-divider {
  color: var(--navy-border);
  padding: 0 var(--gap-sm);
  font-size: 18px;
  user-select: none;
  flex-shrink: 0;
  opacity: 0.6;
  line-height: 1;
  align-self: center;
}

.nav-product-tab {
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 0 13px;
  height: var(--tabs-height);
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-bottom-color var(--transition-fast),
    text-shadow var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-product-tab:hover,
.nav-product-tab.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  background: var(--gold-alpha);
  text-shadow: 0 0 12px rgba(200, 146, 58, 0.5);
}

.nav-donate-tab {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  padding: 0 18px;
  height: var(--tabs-height);
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-bottom-color var(--transition-fast),
    text-shadow var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-donate-tab:hover {
  color: var(--gold-light);
  background: var(--gold-alpha);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 12px rgba(200, 146, 58, 0.5);
}

/* Secondary tabs — Pricing / Members / Rules / FAQ. Quieter than product tabs. */
.nav-secondary-tab {
  color: rgba(221, 232, 244, 0.62);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 0 12px;
  height: var(--tabs-height);
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition-fast), border-bottom-color var(--transition-fast), background var(--transition-fast);
}
.nav-secondary-tab:hover,
.nav-secondary-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}
@media (max-width: 760px) {
  .nav-secondary-tab { font-size: 12px; padding: 0 8px; }
}

/* Artemis link in mobile drawer gets gold treatment */
.mobile-nav-drawer a.drawer-artemis {
  color: var(--gold);
  font-weight: 500;
}

.mobile-nav-drawer a.drawer-artemis:hover {
  color: var(--gold-light);
}

/* Search + theme toggle pushed to right */
.board-tabs-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

/* Compact search in tabs bar */
.nav-search {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-search-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  padding: 4px 10px;
  font-size: 13px;
  width: 130px;
}

.nav-search-input::placeholder {
  color: var(--text-muted-dark);
}

.nav-search-btn {
  background: transparent;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted-dark);
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-search-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Auth state — hidden by default, revealed by auth.js updateNav() */
.nav-logged-in  { display: none; }
.nav-mod-only   { display: none; }

/* Nav icon links (notifications, account) */
.nav-icon-link {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.nav-icon-link:hover {
  color: var(--gold);
}

/* Logout button — styled as nav link */
button.nav-icon-link,
button.nav-logged-in {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* Auth buttons */
.nav-btn-login {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.nav-btn-login:hover {
  opacity: 0.9;
  color: #fff;
  box-shadow: 0 2px 8px rgba(200,146,58,0.3);
}

.nav-btn-register {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.nav-btn-register:hover {
  background: var(--gold-alpha);
  color: var(--gold-light);
}

/* Theme toggle */
.theme-toggle {
  background: transparent;
  color: var(--text-muted-dark);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Nav separator */
.nav-sep {
  color: var(--navy-border);
  padding: 0 2px;
}

/* Mobile */
@media (max-width: 768px) {
  .site-header {
    padding: 0 var(--gap-md);
    gap: var(--gap-sm);
  }

  .site-tagline {
    display: none;
  }

  .board-tabs-bar {
    padding: 0 var(--gap-sm);
    overflow-x: auto;
    min-width: 0;            /* flex item: allow shrink so the strip scrolls instead of widening the page */
    scrollbar-width: none;   /* hide the scrollbar on the tab strip — it scrolls by swipe */
    /* Right-edge fade: a visual cue that the strip scrolls (FAQ etc. live past
       the edge). Without it the nav looks truncated, not swipeable
       (2026-06-28 GPT re-review). */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  }
  .board-tabs-bar::-webkit-scrollbar { display: none; }

  .board-tab {
    font-size: 13px;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .nav-search {
    display: none;
  }

  .site-header {
    padding: 0 var(--gap-sm);
  }
}

/* ─── Board nav (secondary, for board pages) ──────────────────────────────── */
.board-nav {
  background: var(--bg-post);
  border-bottom: 1px solid var(--border);
  padding: var(--gap-xs) var(--gap-lg);
  font-size: var(--font-size-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs) var(--gap-md);
  align-items: center;
}

.board-nav a {
  color: var(--link);
  text-decoration: none;
  white-space: nowrap;
}

.board-nav a:visited {
  color: var(--visited);
}

.board-nav a:hover {
  color: var(--hover);
  text-decoration: underline;
}

.board-nav-label {
  color: var(--text);
  font-weight: bold;
}

/* ─── Content width constraint ────────────────────────────────────────────── */
.content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--gap-md) var(--gap-lg);
}

@media (max-width: 480px) {
  .content-wrap {
    padding: var(--gap-sm) var(--gap-md);
  }
}

/* ─── Landing page — Hero ─────────────────────────────────────────────────── */
.landing-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Cosmic hero variant — 5-layer gradient background */
.lh-cosmic {
  padding: var(--gap-xl) var(--gap-lg);
  background:
    /* Layer 1: Central gold-warmth lens flare */
    radial-gradient(ellipse 40% 35% at 50% 42%,
      rgba(200, 146, 58, 0.10) 0%,
      transparent 100%),
    /* Layer 2: Upper atmospheric haze */
    radial-gradient(ellipse 80% 50% at 50% 0%,
      rgba(30, 18, 60, 0.9) 0%,
      transparent 60%),
    /* Layer 3: Lower vignette */
    radial-gradient(ellipse 120% 100% at 50% 50%,
      rgba(17, 20, 32, 0) 30%,
      rgba(8, 10, 18, 0.85) 100%),
    /* Layer 4: Mid-depth field */
    radial-gradient(ellipse 100% 80% at 30% 60%,
      rgba(15, 22, 45, 0.6) 0%,
      transparent 70%),
    /* Layer 5: Base dark canvas */
    linear-gradient(180deg,
      #08090f 0%,
      #0d1020 35%,
      #111420 65%,
      #1a2535 100%);
}

/* Star field via box-shadow — 1px seed at top-left so vw/vh offsets map to viewport coords */
.lh-cosmic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    /* Row 1 — upper zone (y: 2–20vh), denser */
    8vw 4vh 0 0.5px rgba(255,255,255,0.42),
    14vw 9vh 0 1px rgba(255,255,255,0.62),
    22vw 3vh 0 0.5px rgba(255,255,255,0.38),
    29vw 14vh 0 1px rgba(255,255,255,0.55),
    36vw 7vh 0 0.5px rgba(255,255,255,0.32),
    43vw 17vh 0 1px rgba(255,255,255,0.68),
    51vw 5vh 0 0.5px rgba(255,255,255,0.44),
    58vw 12vh 0 1.5px rgba(255,255,255,0.72),
    65vw 8vh 0 0.5px rgba(255,255,255,0.36),
    72vw 19vh 0 1px rgba(255,255,255,0.58),
    79vw 4vh 0 0.5px rgba(255,255,255,0.40),
    86vw 15vh 0 1px rgba(255,255,255,0.64),
    92vw 9vh 0 0.5px rgba(255,255,255,0.34),
    97vw 18vh 0 1.5px rgba(255,255,255,0.78),
    /* Row 2 — upper-mid (y: 20–40vh) */
    5vw 24vh 0 0.5px rgba(255,255,255,0.30),
    11vw 32vh 0 1px rgba(255,255,255,0.50),
    18vw 26vh 0 0.5px rgba(255,255,255,0.38),
    26vw 38vh 0 1px rgba(255,255,255,0.56),
    33vw 29vh 0 0.5px rgba(255,255,255,0.28),
    40vw 35vh 0 1.5px rgba(255,255,255,0.80),
    47vw 22vh 0 0.5px rgba(255,255,255,0.46),
    55vw 37vh 0 1px rgba(255,255,255,0.54),
    62vw 23vh 0 0.5px rgba(255,255,255,0.32),
    69vw 31vh 0 1px rgba(255,255,255,0.60),
    76vw 28vh 0 0.5px rgba(255,255,255,0.36),
    83vw 39vh 0 1px rgba(255,255,255,0.48),
    90vw 25vh 0 0.5px rgba(255,255,255,0.42),
    95vw 33vh 0 1.5px rgba(255,255,255,0.74),
    /* Row 3 — lower-mid (y: 40–65vh) */
    3vw 45vh 0 0.5px rgba(255,255,255,0.28),
    9vw 58vh 0 1px rgba(255,255,255,0.44),
    16vw 42vh 0 0.5px rgba(255,255,255,0.30),
    24vw 62vh 0 1px rgba(255,255,255,0.50),
    31vw 48vh 0 0.5px rgba(255,255,255,0.24),
    38vw 55vh 0 1px rgba(255,255,255,0.58),
    45vw 43vh 0 0.5px rgba(255,255,255,0.32),
    53vw 61vh 0 1.5px rgba(255,255,255,0.70),
    60vw 46vh 0 0.5px rgba(255,255,255,0.26),
    67vw 53vh 0 1px rgba(255,255,255,0.48),
    74vw 64vh 0 0.5px rgba(255,255,255,0.34),
    81vw 49vh 0 1px rgba(255,255,255,0.52),
    88vw 57vh 0 0.5px rgba(255,255,255,0.28),
    94vw 44vh 0 1px rgba(255,255,255,0.62),
    /* Row 4 — lower zone (y: 65–90vh) — sparser */
    7vw 72vh 0 0.5px rgba(255,255,255,0.22),
    15vw 78vh 0 1px rgba(255,255,255,0.38),
    23vw 68vh 0 0.5px rgba(255,255,255,0.26),
    32vw 84vh 0 1px rgba(255,255,255,0.42),
    41vw 71vh 0 0.5px rgba(255,255,255,0.20),
    50vw 88vh 0 1px rgba(255,255,255,0.36),
    59vw 75vh 0 0.5px rgba(255,255,255,0.28),
    68vw 82vh 0 1.5px rgba(255,255,255,0.66),
    77vw 69vh 0 0.5px rgba(255,255,255,0.24),
    85vw 77vh 0 1px rgba(255,255,255,0.40),
    93vw 85vh 0 0.5px rgba(255,255,255,0.30),
    /* Accent bright stars — scattered across upper half */
    2vw 11vh 0 1.5px rgba(255,255,255,0.82),
    19vw 6vh 0 1.5px rgba(255,255,255,0.76),
    44vw 27vh 0 1.5px rgba(255,255,255,0.88),
    63vw 16vh 0 1.5px rgba(255,255,255,0.80),
    78vw 35vh 0 1.5px rgba(255,255,255,0.84),
    91vw 11vh 0 1.5px rgba(255,255,255,0.78),
    /* Warm gold-tinted stars */
    35vw 19vh 0 1px rgba(220,180,120,0.50),
    57vw 44vh 0 1px rgba(220,180,120,0.44),
    73vw 8vh 0 1px rgba(220,180,120,0.56),
    87vw 63vh 0 1px rgba(220,180,120,0.38),
    /* Final scattered fill */
    6vw 38vh 0 0.5px rgba(255,255,255,0.26),
    28vw 56vh 0 0.5px rgba(255,255,255,0.32),
    48vw 67vh 0 0.5px rgba(255,255,255,0.24),
    66vw 41vh 0 0.5px rgba(255,255,255,0.30),
    84vw 22vh 0 0.5px rgba(255,255,255,0.36),
    98vw 50vh 0 0.5px rgba(255,255,255,0.22),
    13vw 47vh 0 0.5px rgba(255,255,255,0.28),
    37vw 73vh 0 0.5px rgba(255,255,255,0.20),
    54vw 15vh 0 0.5px rgba(255,255,255,0.34),
    70vw 86vh 0 0.5px rgba(255,255,255,0.22),
    89vw 42vh 0 0.5px rgba(255,255,255,0.26),
    96vw 27vh 0 0.5px rgba(255,255,255,0.30);
}

/* Orbital arc ring */
.lh-cosmic::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  width: 700px;
  height: 700px;
  border: 1px solid rgba(200, 146, 58, 0.06);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Hero inner content */
.lh-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}

/* Hero headline */
.lh-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 11vw, 128px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin: 0;
}

.lh-title-accent {
  color: var(--gold);
}

/* Animated star glyph */
.lh-star-glyph {
  color: var(--gold);
  display: inline-block;
  margin-right: 0.08em;
  animation: star-pulse 3s ease-in-out infinite;
}

/* Gold decomposition: rgba(200,146,58,α) = var(--gold) + alpha */
@keyframes star-pulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(200, 146, 58, 0.4),
      0 0 20px rgba(200, 146, 58, 0.2);
  }
  50% {
    text-shadow:
      0 0 16px rgba(200, 146, 58, 0.8),
      0 0 40px rgba(200, 146, 58, 0.4),
      0 0 80px rgba(200, 146, 58, 0.15);
  }
}

/* Hero tagline */
.lh-tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.8vw, 28px);
  font-style: italic;
  color: var(--text-on-dark);
  opacity: 0.88;
  line-height: 1.55;
  margin: 0;
}

/* CTA row within hero */
.lh-cta-row {
  margin-top: var(--gap-sm);
  gap: var(--gap-md);
}

/* Legacy title-accent — keep for backward compat */
.landing-hero-title .title-accent {
  color: var(--gold);
}

.landing-cta-row {
  display: flex;
  gap: var(--gap-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  display: inline-block;
}

.cta-btn-primary:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(200,146,58,0.35);
}

.cta-btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 13px 28px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.cta-btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

/* ─── Landing page — Board cards ─────────────────────────────────────────── */
.landing-boards {
  background: var(--beige);
  padding: var(--gap-xl) var(--gap-lg);
}

.landing-boards-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--gap-xs);
  text-align: center;
}

.section-sub {
  font-size: var(--font-size-lg);
  color: var(--text);
  opacity: 0.7;
  text-align: center;
  margin-bottom: var(--gap-xl);
}

.board-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}

@media (max-width: 900px) {
  .board-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .board-cards {
    grid-template-columns: 1fr;
  }
}

.board-card {
  background: var(--beige-card);
  border: 1px solid var(--beige-border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.board-card:hover {
  box-shadow: 0 4px 20px rgba(26,37,53,0.12);
  transform: translateY(-2px);
}

.board-card-header {
  background: var(--navy);
  padding: var(--gap-md) var(--gap-md) var(--gap-sm);
}

.board-card-slug {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  font-family: monospace;
}

.board-card-body {
  padding: var(--gap-md);
}

.board-card-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--gap-xs);
}

.board-card-desc {
  font-size: 15px;
  color: var(--text);
  opacity: 0.75;
  line-height: 1.5;
  margin-bottom: var(--gap-md);
}

.board-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.board-card-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ─── Landing page — Features ─────────────────────────────────────────────── */
.landing-features {
  background: var(--beige-card);
  padding: var(--gap-xl) var(--gap-lg);
  border-top: 1px solid var(--beige-border);
}

.landing-features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

@media (max-width: 768px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--beige);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  text-align: center;
}

.feature-icon {
  font-size: 48px;
  display: block;
  margin-bottom: var(--gap-md);
  color: var(--gold);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--gap-sm);
}

.feature-desc {
  font-size: 15px;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
}

/* ─── Site footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-border);
  padding: var(--gap-md) var(--gap-xl);
  font-size: var(--font-size-sm);
  color: var(--text-muted-dark);
  text-align: center;
}

.site-footer nav {
  margin-bottom: var(--gap-xs);
}

.site-footer nav a {
  color: var(--text-muted-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer nav a:hover {
  color: var(--gold);
}

/* ─── Auth pages ──────────────────────────────────────────────────────────── */
.auth-page main {
  max-width: none;
  padding: 0;
  background: var(--navy);
  min-height: calc(100vh - var(--header-height) - var(--tabs-height));
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--gap-lg) var(--gap-xl);
  width: 100%;
  max-width: 400px;
  margin: var(--gap-lg);
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.1);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 var(--gap-lg);
  text-align: center;
}

.auth-field {
  margin-bottom: var(--gap-md);
}

.auth-label {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted-dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.auth-input {
  width: 100%;
  background: #090b12;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  padding: 10px 14px;
  font-size: var(--font-size-base);
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-alpha);
}

.auth-input::placeholder {
  color: var(--text-muted-dark);
}

.auth-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px;
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: var(--gap-sm);
}

.auth-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(200,146,58,0.3);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-msg {
  font-size: var(--font-size-sm);
  margin-bottom: var(--gap-md);
  display: none;
}

.auth-footer {
  margin-top: var(--gap-md);
  font-size: var(--font-size-sm);
  color: var(--text-muted-dark);
  text-align: center;
}

.auth-footer a {
  color: var(--gold);
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ─── Non-landing pages: constrain main width ─────────────────────────────── */
/* Landing page uses full-width sections; all other pages get a centered wrap */
body:not(.landing-page):not(.pricing-page):not(.donate-page):not(.astro-about-page):not(.astro-page) main {
  max-width: 1200px;
  /* width: 100% is load-bearing (2026-07-21): main is a flex ITEM of the
     .page-wrap column, and auto cross-axis margins on a flex item disable
     stretch — without an explicit width, main SHRINK-WRAPS to its content's
     width. A thread page with short posts collapsed to ~390px on a 2560px
     screen (post bodies wrapped one character per line). */
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: var(--gap-md) var(--gap-lg);
}

/* Belt-and-braces: even if the negation chain above is refactored or a future
   contributor copies the centering rule with a different selector, the iframe
   page must remain edge-to-edge. .astro-page hosts the Artemis iframe at full
   bleed below the STARCHAN nav. */
body.astro-page main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.pricing-page main,
.donate-page main,
.astro-about-page main {
  padding: 0;
}

.donate-page main {
  flex: none;
  min-height: 0;
}

@media (max-width: 480px) {
  body:not(.landing-page):not(.pricing-page):not(.astro-page) main {
    padding: var(--gap-sm) var(--gap-md);
  }
}

/* ─── Full-bleed utility ──────────────────────────────────────────────────── */
.section-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap-xl);
}

/* ─── Landing page — hero shared decorations ─────────────────────────────── */
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: var(--gap-sm);
}
.hero-scroll-hint {
  position: absolute;
  bottom: var(--gap-lg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted-dark);
  font-size: 20px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Landing page — proof strip (v2) ───────────────────────────────────── */
.ls-v2 {
  background: var(--navy-deep);
  border-top: 1px solid rgba(200, 146, 58, 0.18);
  border-bottom: 1px solid rgba(200, 146, 58, 0.18);
  padding: var(--gap-lg) 0;
}
.ls-v2-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-lg);
}
.ls-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ls-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.ls-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

/* Legacy stats classes — backward compat */
.landing-stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-md);
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--gold);
  font-weight: 700;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ─── Landing — Artemis Showcase ─────────────────────────────────────────── */
.landing-artemis {
  background: var(--navy);
  padding: 96px 0;
}

.la-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.la-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.la-eyebrow {
  margin-bottom: 0;
}

.la-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.1;
  margin: 0;
}

.la-headline-accent {
  color: var(--gold);
}

.la-body {
  font-size: var(--font-size-base);
  color: var(--text-on-dark);
  opacity: 0.85;
  line-height: var(--line-height);
  max-width: 46ch;
  margin: 0;
}

.la-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.la-bullets li {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.la-bullet-icon {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.la-cta-row {
  justify-content: flex-start;
  margin-top: var(--gap-sm);
}

/* Right column: chart visual */
.la-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.la-chart-frame {
  position: relative;
  width: 320px;
  height: 320px;
}

.la-chart-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.la-chart-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center,
    rgba(200, 146, 58, 0.08) 0%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Slow rotation of planet glyph group */
.la-chart-rotate {
  transform-origin: 160px 160px;
  animation: chart-drift 80s linear infinite;
}

@keyframes chart-drift {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .la-chart-rotate { animation: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .la-inner {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }
  .la-visual-col {
    order: -1; /* chart above text on mobile */
  }
  .la-chart-frame {
    width: 240px;
    height: 240px;
  }
  .la-cta-row {
    justify-content: center;
  }
}

/* ─── Landing — Community / Boards ───────────────────────────────────────── */
.landing-community {
  background: var(--beige);
  padding: 96px 0;
}

.lc-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
}

.lc-heading {
  text-align: center;
}

.lc-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.lc-heading p {
  font-size: var(--font-size-base);
  color: var(--text-dim);
}

/* Wave timeline: horizontal at desktop, vertical at mobile */
.lc-wave-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.lc-wave {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  text-align: center;
}

/* The circle node */
.lc-wave-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--beige-card);
  border: 2px solid var(--beige-border);
  color: var(--text-dim);
  transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.lc-wave--active .lc-wave-badge {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 0 16px rgba(200, 146, 58, 0.35);
  font-size: 8px;
  text-transform: uppercase;
}

.lc-wave--soon .lc-wave-badge {
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(200, 146, 58, 0.08);
}

.lc-wave-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lc-wave--locked .lc-wave-label {
  color: var(--text-dim);
}

.lc-wave-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* Connector line between waves */
.lc-wave-connector {
  height: 2px;
  flex: 1;
  min-width: 20px;
  max-width: 60px;
  background: var(--beige-border);
  align-self: center;
  margin-bottom: 28px; /* align to badge center approximately */
}

/* Board card enhancements */
.lc-board-grid .board-card-v2:not(.board-card-locked) {
  border-color: rgba(200, 146, 58, 0.35);
  box-shadow: 0 2px 12px rgba(200, 146, 58, 0.08);
}

.board-card-locked {
  opacity: 0.6;
  filter: grayscale(0.3);
}

.board-lock-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted-dark);
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.board-coming-soon {
  color: var(--text-dim);
  cursor: default;
  pointer-events: none;
}

/* Responsive — stack timeline vertically on mobile */
@media (max-width: 640px) {
  .lc-wave-timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-left: var(--gap-lg);
    gap: 0;
  }
  .lc-wave {
    flex-direction: row;
    gap: var(--gap-sm);
    align-items: center;
    text-align: left;
    min-width: unset;
  }
  .lc-wave-connector {
    width: 2px;
    height: 24px;
    min-width: unset;
    max-width: unset;
    flex: none;
    margin: 0 0 0 21px; /* align to circle center (44px/2 - 1px) */
    align-self: stretch;
  }
}

/* ─── Landing page — redesigned boards section ───────────────────────────── */
.landing-boards-section {
  background: var(--beige);
  padding: 80px 0;
}
.landing-boards-section .section-heading {
  text-align: center;
  margin-bottom: var(--gap-lg);
}
.landing-boards-section .section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  margin-bottom: 8px;
}
.landing-boards-section .section-heading p {
  color: var(--text-muted-dark, #6585a0);
  font-size: var(--font-size-sm);
}
.board-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}
.board-card-v2 {
  background: var(--beige-card);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}
.board-card-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 37, 53, 0.14);
  border-color: var(--gold);
}
.board-card-locked:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--beige-border);
  cursor: default;
}
.board-card-v2-header {
  background: var(--navy);
  padding: var(--gap-md) var(--gap-md) var(--gap-sm);
}
.board-card-v2-slug {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.board-card-v2-body {
  padding: var(--gap-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.board-card-v2-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.board-card-v2-desc {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
}
.board-card-v2-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
  transition: gap var(--transition-fast);
}
.board-card-v2-link:hover { gap: 10px; }

@media (max-width: 900px) {
  .board-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .board-cards-grid { grid-template-columns: 1fr; }
}

/* ─── Landing page — redesigned features section ─────────────────────────── */
.landing-features-section {
  background: var(--navy);
  padding: 80px 0;
}
.landing-features-section .section-heading {
  text-align: center;
  margin-bottom: var(--gap-lg);
}
.landing-features-section .section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text-on-dark);
  margin-bottom: 8px;
}
.landing-features-section .section-heading p {
  color: var(--text-muted-dark);
  font-size: var(--font-size-sm);
}
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}
.feature-card-v2 {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}
.feature-card-v2:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(200, 146, 58, 0.55);
  transform: translateY(-2px);
}
.feature-card-v2-icon {
  font-size: 32px;
  margin-bottom: var(--gap-sm);
  display: block;
}
.feature-card-v2-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}
.feature-card-v2-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted-dark);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .feature-cards-grid { grid-template-columns: 1fr; }
}

/* ─── Landing page — bottom CTA section ──────────────────────────────────── */
.landing-cta-section {
  background: var(--beige);
  padding: 80px 0;
  text-align: center;
}
.landing-cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  margin-bottom: var(--gap-sm);
}
.landing-cta-section p {
  color: var(--text-dim);
  font-size: var(--font-size-base);
  margin-bottom: var(--gap-lg);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Pricing page ────────────────────────────────────────────────────────── */
.pricing-hero {
  background: var(--navy);
  padding: 72px 0 64px;
  text-align: center;
}
.pricing-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: var(--gap-sm);
}
.pricing-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  color: var(--text-on-dark);
  line-height: 1.1;
  margin-bottom: var(--gap-sm);
}
.pricing-hero-sub {
  color: var(--text-muted-dark);
  font-size: var(--font-size-base);
  max-width: 480px;
  margin: 0 auto;
}
.pricing-cards-section {
  background: var(--beige);
  padding: 72px 0;
}
.pricing-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap-md);
  align-items: start;
}
.pricing-card {
  background: var(--beige-card);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  position: relative;
  transition: box-shadow var(--transition-base);
}
.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(26,37,53,0.10);
}
.pricing-card.featured {
  border-top: 3px solid var(--gold);
  box-shadow: 0 4px 32px rgba(200,146,58,0.14);
  transform: translateY(-6px);
}
.pricing-card.featured:hover {
  box-shadow: 0 12px 48px rgba(200,146,58,0.22);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-tier-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
  font-family: var(--font-main);
}
.pricing-tagline {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: var(--gap-md);
  min-height: 36px;
}
.pricing-divider {
  height: 1px;
  background: var(--beige-border);
  margin: var(--gap-md) 0;
}
.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features-list li {
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.pricing-features-list li .feat-check { color: var(--gold); flex-shrink: 0; font-size: 13px; }
.pricing-features-list li .feat-dash  { color: var(--text-dim); flex-shrink: 0; }
.pricing-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}
.pricing-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.pricing-cta-btn.primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
}
.pricing-cta-btn.secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.pricing-cta-btn.current {
  background: var(--beige-border);
  color: var(--text-dim);
  cursor: default;
}
.pricing-cta-btn.current:hover { opacity: 1; transform: none; }
.pricing-manage-link {
  display: block;
  text-align: center;
  margin-top: var(--gap-xs);
  font-size: var(--font-size-sm);
  color: var(--text-muted-dark);
  text-decoration: none;
}
.pricing-manage-link:hover { color: var(--gold); }

@media (max-width: 900px) {
  .pricing-cards-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
}

.pricing-faq-section {
  background: var(--navy);
  padding: 72px 0;
}
.pricing-faq-section .section-heading {
  text-align: center;
  margin-bottom: var(--gap-lg);
}
.pricing-faq-section .section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text-on-dark);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}
.faq-item {
  border-top: 1px solid var(--navy-border);
  padding-top: var(--gap-md);
}
.faq-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.faq-item p {
  font-size: 13px;
  color: var(--text-muted-dark);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

.pricing-cta-section {
  background: var(--beige);
  padding: 72px 0;
  text-align: center;
}
.pricing-cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--navy);
  margin-bottom: var(--gap-sm);
}
.pricing-cta-section p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: var(--gap-lg);
}

/* ─── Mobile hamburger nav (Phase 5.3) ──────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .site-header-auth .nav-icon-link,
  .site-header-auth .nav-btn-login,
  .site-header-auth .nav-btn-register { display: none !important; }
}

.mobile-nav-drawer {
  background: var(--navy-deep);
  border-bottom: 2px solid var(--navy-border);
  padding: var(--gap-md) var(--gap-lg);
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: calc(var(--header-height) + var(--tabs-height));
  z-index: 197;
}
.mobile-nav-drawer:not([hidden]) {
  display: flex;
}
.mobile-nav-drawer[hidden] {
  display: none !important;
}
.mobile-nav-drawer a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: var(--font-size-base);
  padding: var(--gap-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav-drawer a:hover { color: var(--gold); }
@media (min-width: 641px) {
  .mobile-nav-drawer { display: none !important; }
}

/* ─── Donate page (Phase 3) ──────────────────────────────────────────────── */
.donate-hero {
  background: var(--navy);
  padding: 80px var(--gap-lg) 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donate-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  color: var(--text-on-dark);
  margin-bottom: var(--gap-sm);
}
.donate-title-accent { color: var(--gold); }
.donate-tagline {
  color: var(--text-muted-dark);
  font-size: var(--font-size-base);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.donate-mission {
  background: var(--beige);
  padding: 64px var(--gap-xl);
  text-align: center;
}
.donate-mission h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--navy);
  margin-bottom: var(--gap-lg);
}
.donate-mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  max-width: 720px;
  margin: 0 auto;
}
.donate-mission-card {
  background: var(--beige-card);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-md);
  padding: var(--gap-lg) var(--gap-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.donate-tiers {
  background: var(--beige-card);
  padding: 64px var(--gap-xl);
  text-align: center;
}
.donate-tiers h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--navy);
  margin-bottom: var(--gap-lg);
}
.donate-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  max-width: 860px;
  margin: 0 auto var(--gap-lg);
}
.donate-tier-card {
  background: var(--beige);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.donate-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,37,53,0.10);
}
.donate-tier-card.featured {
  border-top: 3px solid var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 4px 24px rgba(200,146,58,0.14);
}
.donate-tier-card.featured:hover {
  transform: translateY(-8px);
}
.donate-tier-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--gap-xs);
}
.donate-tier-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--gap-sm);
  font-family: var(--font-display);
}
.donate-tier-desc {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  margin-bottom: var(--gap-md);
  line-height: 1.5;
}
.donate-btn {
  display: block;
  width: 100%;
  padding: 11px 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  box-sizing: border-box;
  text-align: center;
}
.donate-btn:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.donate-custom-link {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  margin-top: var(--gap-md);
}
.donate-custom-link a { color: var(--gold); text-decoration: none; }
.donate-custom-link a:hover { text-decoration: underline; }

.donate-wall {
  background: var(--beige);
  padding: 64px var(--gap-xl);
  text-align: center;
}
.donate-wall h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--navy);
  margin-bottom: var(--gap-lg);
}
.donor-list {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--gap-md);
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.donor-list li {
  font-size: var(--font-size-base);
  color: var(--navy);
  padding: var(--gap-sm) var(--gap-md);
  background: var(--beige-card);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-sm);
}
.donate-wall-note {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
}

.donate-cta-strip {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 56px var(--gap-lg);
  text-align: center;
}
.donate-cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--navy);
  margin-bottom: var(--gap-sm);
}
.donate-cta-strip p {
  color: var(--navy);
  opacity: 0.8;
  margin-bottom: var(--gap-lg);
  font-size: var(--font-size-base);
}
.donate-cta-strip .cta-btn-primary {
  background: var(--navy);
  color: var(--gold);
}
.donate-cta-strip .cta-btn-primary:hover {
  box-shadow: 0 5px 18px rgba(26,37,53,0.3);
}

@media (max-width: 768px) {
  .donate-mission-grid,
  .donate-tier-grid { grid-template-columns: 1fr; }
  .donate-tier-card.featured { transform: none; }
}

/* ─── Artemis About Page redesign (Phase 2) ─────────────────────────────── */

/* Star-field hero */
.astro-hero {
  background: var(--navy);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gap-lg);
  position: relative;
  overflow: hidden;
}
.astro-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  box-shadow:
    12px 34px 0 1px rgba(255,255,255,0.5),
    89px 120px 0 2px rgba(200,146,58,0.4),
    156px 78px 0 1px rgba(255,255,255,0.6),
    203px 45px 0 1px rgba(255,255,255,0.3),
    267px 189px 0 2px rgba(200,146,58,0.5),
    45px 156px 0 1px rgba(255,255,255,0.4),
    98px 203px 0 1px rgba(255,255,255,0.7),
    178px 23px 0 1px rgba(255,255,255,0.5),
    234px 167px 0 2px rgba(200,146,58,0.3),
    312px 78px 0 1px rgba(255,255,255,0.6),
    67px 234px 0 1px rgba(255,255,255,0.4),
    145px 12px 0 2px rgba(200,146,58,0.5),
    389px 89px 0 1px rgba(255,255,255,0.3),
    456px 145px 0 1px rgba(255,255,255,0.7),
    534px 34px 0 2px rgba(200,146,58,0.4),
    612px 178px 0 1px rgba(255,255,255,0.5),
    23px 289px 0 1px rgba(255,255,255,0.6),
    167px 334px 0 2px rgba(200,146,58,0.3),
    289px 123px 0 1px rgba(255,255,255,0.5),
    400px 56px 0 1px rgba(255,255,255,0.4),
    534px 223px 0 2px rgba(200,146,58,0.5),
    678px 34px 0 1px rgba(255,255,255,0.6),
    756px 189px 0 1px rgba(255,255,255,0.3),
    834px 78px 0 2px rgba(200,146,58,0.4),
    912px 245px 0 1px rgba(255,255,255,0.5),
    45px 378px 0 1px rgba(255,255,255,0.7),
    189px 456px 0 2px rgba(200,146,58,0.3),
    323px 289px 0 1px rgba(255,255,255,0.5),
    567px 356px 0 1px rgba(255,255,255,0.4),
    745px 423px 0 2px rgba(200,146,58,0.5),
    890px 145px 0 1px rgba(255,255,255,0.6),
    967px 378px 0 1px rgba(255,255,255,0.3),
    1045px 89px 0 2px rgba(200,146,58,0.4),
    1123px 267px 0 1px rgba(255,255,255,0.5),
    123px 489px 0 1px rgba(255,255,255,0.7),
    456px 512px 0 2px rgba(200,146,58,0.3),
    789px 534px 0 1px rgba(255,255,255,0.5),
    1034px 456px 0 1px rgba(255,255,255,0.4),
    678px 289px 0 2px rgba(200,146,58,0.5),
    890px 512px 0 1px rgba(255,255,255,0.6);
  animation: star-twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes star-twinkle {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .astro-hero:before { animation: none; }
}

.astro-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
}
.astro-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--gap-md);
}
.astro-hero h1 .title-accent { color: var(--gold); }
.astro-hero-sub {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-on-dark);
  opacity: 0.85;
  margin-bottom: var(--gap-xl);
  line-height: 1.5;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats strip */
.astro-stats {
  background: var(--beige);
  padding: 48px 0;
  border-top: 1px solid var(--beige-border);
}
.astro-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gap-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  text-align: center;
}
.astro-stat-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.astro-stat-item.visible { opacity: 1; transform: none; }
.astro-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.astro-stat-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  margin-top: 4px;
}

/* Alternating feature rows */
.astro-features {
  background: var(--navy);
  padding: 80px 0;
}
.astro-feature-row {
  max-width: 1100px;
  margin: 0 auto var(--gap-xl);
  padding: 0 var(--gap-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.astro-feature-row.visible { opacity: 1; transform: none; }
.astro-feature-row:nth-child(even) .astro-feature-icon-col { order: 2; }
.astro-feature-row:nth-child(even) .astro-feature-text-col { order: 1; }
.astro-feature-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: var(--gold);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  min-height: 160px;
}
.astro-feature-text-col h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--gold);
  margin-bottom: var(--gap-sm);
}
.astro-feature-text-col p {
  color: var(--text-muted-dark);
  line-height: 1.7;
  font-size: var(--font-size-base);
}
.astro-feature-bullets {
  list-style: none;
  padding: 0;
  margin: var(--gap-sm) 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.astro-feature-bullets li {
  font-size: var(--font-size-sm);
  color: var(--text-muted-dark);
  padding-left: var(--gap-md);
  position: relative;
}
.astro-feature-bullets li:before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 10px;
  top: 3px;
}

@media (max-width: 768px) {
  .astro-feature-row { grid-template-columns: 1fr; }
  .astro-feature-row:nth-child(even) .astro-feature-icon-col,
  .astro-feature-row:nth-child(even) .astro-feature-text-col { order: unset; }
  .astro-stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* Mini pricing table */
.astro-pricing {
  background: var(--beige);
  padding: 80px 0;
}
.astro-pricing-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gap-xl);
}
.astro-pricing h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--gap-lg);
}
.astro-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}
.astro-pricing-col {
  background: var(--beige-card);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  text-align: center;
}
.astro-pricing-col.featured { border-top: 3px solid var(--gold); }
.astro-pricing-col-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--gap-xs);
}
.astro-pricing-col-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--gap-sm);
}
.astro-pricing-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--gap-md);
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.astro-pricing-col ul li:before { content: '✓ '; color: var(--gold); }
@media (max-width: 640px) {
  .astro-pricing-grid { grid-template-columns: 1fr; }
}

/* Tech credibility strip — removed 2026-05-09 — full block (.astro-tech,
   .astro-tech-inner, .astro-tech-badge) deleted with the section in
   astro_about.html. Trust signals live in the .astro-stats strip above;
   the JHora-validated proof lives in the feature cards.                    */

/* Footer CTA */
.astro-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 72px var(--gap-lg);
  text-align: center;
}
.astro-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  margin-bottom: var(--gap-sm);
}
.astro-cta p {
  color: var(--navy);
  opacity: 0.75;
  margin-bottom: var(--gap-lg);
  font-size: var(--font-size-base);
}
.astro-cta-row {
  display: flex;
  gap: var(--gap-md);
  justify-content: center;
  flex-wrap: wrap;
}
.astro-cta .cta-btn-primary {
  background: var(--navy);
  color: var(--gold);
}
.astro-cta .cta-btn-primary:hover {
  box-shadow: 0 5px 18px rgba(26,37,53,0.3);
}
.astro-cta .cta-btn-secondary {
  border-color: var(--navy);
  color: var(--navy);
}
.astro-cta .cta-btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(26,37,53,0.08);
}

/* ─── Astro App page ──────────────────────────────────────────────────────── */

/* Access view (App/Pro users) — full-bleed iframe, no STARCHAN chrome
   beyond the persistent nav at top. Artemis owns its own header. */
.astro-access-wrap {
  background: #0d1626;
  min-height: calc(100vh - var(--header-height) - var(--tabs-height));
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.astro-content-inner {
  width: 100%;
  height: calc(100vh - var(--header-height) - var(--tabs-height));
  margin: 0;
  padding: 0;
}

/* App-embed mode (2026-07-26) — the LIVE Luna embed drops all site chrome
   so the instrument owns the full viewport, exactly like running Artemis
   standalone. Only the access+artemis_url branch sets .astro-page--app;
   the gate and "opens soon" placeholder keep the normal site header. */
body.astro-page--app .site-header,
body.astro-page--app .board-tabs-bar,
body.astro-page--app .site-footer { display: none; }
body.astro-page--app .astro-access-wrap { min-height: 100dvh; }
body.astro-page--app .astro-content-inner { height: 100dvh; }

/* Title/subtitle hidden in the embed view — Artemis renders its own header */
.astro-page-title,
.astro-page-subtitle {
  display: none;
}

.astro-embed-card {
  position: relative;
  background: #0d1626;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.astro-embed-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.astro-spinner-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1626;
  z-index: 1;
}

.astro-spinner-disc {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(200, 146, 58, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: astro-spin 0.8s linear infinite;
}

@keyframes astro-spin {
  to { transform: rotate(360deg); }
}

.astro-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.astro-placeholder-inner {
  text-align: center;
  padding: var(--gap-xl);
}

/* Gate view (free / unauthenticated users) */
.astro-gate-wrap {
  background: var(--navy);
  min-height: calc(100vh - var(--header-height) - var(--tabs-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-xl) var(--gap-lg);
  box-sizing: border-box;
}

.astro-gate-inner {
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.astro-gate-card {
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--gap-lg) var(--gap-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.1);
}

.astro-gate-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 var(--gap-sm);
}

.astro-gate-body {
  font-size: var(--font-size-sm);
  color: var(--text-on-dark);
  opacity: 0.8;
  margin: 0 0 var(--gap-lg);
  line-height: 1.6;
}

.astro-gate-actions {
  display: flex;
  gap: var(--gap-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-primary--sm {
  font-size: 15px;
  padding: 11px 24px;
}

.cta-btn-secondary--sm {
  font-size: 15px;
  padding: 10px 20px;
}

.astro-gate-footnote {
  margin-top: var(--gap-md);
  font-size: var(--font-size-sm);
  color: var(--text-on-dark);
  opacity: 0.6;
}

.astro-gate-footnote a {
  color: var(--gold);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .astro-gate-card {
    padding: var(--gap-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .astro-feature-row,
  .astro-stat-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Artemis Marketing Page (Phase 1 Redesign) --- */

/* ─── astro-about: local tokens ───────────────────────────────────────────── */
.astro-about-page {
  --hero-bg-top:      #0a0d15;
  --hero-bg-mid:      #111420;
  --hero-bg-bottom:   #1a2535;
  --star-opacity:     0.55;
  --glow-gold:        rgba(200, 146, 58, 0.12);
  --glow-gold-strong: rgba(200, 146, 58, 0.22);
}

/* ─── SECTION 1 — Hero ────────────────────────────────────────────────────── */
/* ─── SECTION 1 — HERO · CELESTIAL (CD Stage 1 → v3 photo, 2026-05-30) ──
   v3 swaps the procedural starfield for a CD-generated photographic
   cosmic field at frontend/static/img/luna/hero-cosmic-field.webp
   (102KB, 1672×941). The photo carries the warm amber upper-right + cool
   navy lower-left atmosphere that radial-gradients only approximated.
   .hero-protect (lightened from v2) gives the headline a soft central
   darken without burying the field. Slow background-position drift
   (60s) gives the cosmos subtle life; pauses under reduced motion.
   Falls back to a near-black linear gradient if the image fails to
   load (cf. SW precache miss). */
.astro-hero {
  position: relative;
  overflow: hidden;
  /* Was calc(100dvh - 80px) when the specimen plate filled the hero;
     plate removed 2026-07-26 — shorter hero pulls the demo band up. */
  min-height: min(72dvh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06070c;
  background-image: url('/static/img/luna/hero-cosmic-field.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: hero-bg-drift 60s ease-in-out infinite alternate;
}

/* Central radial darken — keeps the headline legible against the photo's
   varied tonal range. Softer than v2 since the photo carries its own
   contrast (vs the flat CSS gradient that needed heavier masking). */
.hero-protect {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 50%,
    rgba(3, 4, 10, 0.62) 0%,
    rgba(3, 4, 10, 0.38) 32%,
    rgba(3, 4, 10, 0.08) 58%,
    transparent 72%);
}

@keyframes hero-bg-drift {
  0%   { background-position: 50% 50%; }
  100% { background-position: 46% 52%; }
}

.astro-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px var(--gap-xl) 80px;
  max-width: 860px;
  margin: 0 auto;
  gap: 24px;
}

.hero-eyebrow {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  margin: 0;
}

.astro-hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 94px);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0;
}

.title-accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 0 38px rgba(200, 146, 58, 0.45);
}

.astro-hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 400;
  color: rgba(221, 232, 244, 0.85);
  line-height: 1.62;
  max-width: 34em;
  margin: 0;
}

/* ============================================================
   LUNA HERO SPECIMEN PLATE (2026-06-28 CD "show the instrument")
   A real chart surfaced in the hero + three callouts, so the page
   proves the instrument instead of only describing it. Cosmic-dark.
   ============================================================ */
.astro-about-page .astro-hero-inner {
  max-width: 1000px;
  padding-top: 72px;
}

/* Hairline-flanked tagline — single line, ties the headline to the chart. */
.luna-hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 17px);
  color: rgba(221, 232, 244, 0.72);
}
.luna-hero-tagline .star { color: rgba(200, 146, 58, 0.75); font-style: normal; font-size: 13px; }
.luna-hero-tagline .ln {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 146, 58, 0.6));
}
.luna-hero-tagline .ln.r { background: linear-gradient(90deg, rgba(200, 146, 58, 0.6), transparent); }

/* Web-based reassurance line under the hero CTAs (owner ask 2026-07-26):
   no install, no OS gate — keep it quiet, one register below the tagline. */
.luna-hero-note {
  margin: 22px auto 0;
  max-width: 520px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(13.5px, 1.2vw, 15px);
  line-height: 1.55;
  color: rgba(221, 232, 244, 0.55);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(221, 232, 244, 0.45);
  font-size: 22px;
  z-index: 2;
  animation: hero-bob 2.4s ease-in-out infinite;
}
@keyframes hero-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* CTA focus rings — accessibility */
.cta-btn-primary:focus-visible,
.cta-btn-secondary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Hero responsive */
@media (max-width: 768px) {
  .astro-hero-inner {
    padding: 80px var(--gap-md) 70px;
  }
}

@media (max-width: 480px) {
  .astro-hero .landing-cta-row {
    flex-direction: column;
    align-items: center;
  }
  .astro-hero .landing-cta-row .cta-btn-primary,
  .astro-hero .landing-cta-row .cta-btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Reveal-on-scroll system (paired with inline JS in astro_about.html).
   Element starts faded + below; .in lands at rest. data-d steps stagger
   the entrance of grouped elements (eyebrow → h1 → sub → CTAs).
   :where(html.js) gates the hidden start state on JS actually running
   (zero extra specificity, so .in and reduced-motion overrides still win). */
:where(html.js) .astro-about-page .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.33, 1, 0.68, 1),
              transform 700ms cubic-bezier(0.33, 1, 0.68, 1);
}
.astro-about-page .reveal.in {
  opacity: 1;
  transform: none;
}
.astro-about-page .reveal[data-d="1"] { transition-delay: 90ms; }
.astro-about-page .reveal[data-d="2"] { transition-delay: 180ms; }
.astro-about-page .reveal[data-d="3"] { transition-delay: 270ms; }
.astro-about-page .reveal[data-d="4"] { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .astro-hero::before { animation: none; }
  .hero-scroll-hint { animation: none; }
  .astro-about-page .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── SECTION 2 — Stats Strip ─────────────────────────────────────────────── */
.astro-stats {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: var(--gap-lg) 0;
}

.astro-stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-md);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gap-xl);
}

.astro-stat-item {
  text-align: center;
  min-width: 120px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.astro-stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.astro-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.astro-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Scoped /luna trust-strip overrides removed 2026-05-09 — trust strip
   section was cut from the page, so body.astro-about-page no longer
   contains any .astro-stat-* elements for these to target. */

/* ─── SECTION 1.5 — Dual-Mode Demo Band (prototype, 2026-05-10) ──────────── */
.luna-demo-band {
  background:
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(200,146,58,0.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 64px 0 96px;
  position: relative;
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.luna-demo-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
  text-align: center;
}

.luna-demo-eyebrow {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 12px;
}

.luna-demo-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.luna-demo-sub {
  font-family: var(--font-main);
  font-size: var(--font-size-sm);
  color: var(--text-muted-dark);
  margin: 0 auto 48px;
  max-width: 540px;
  line-height: 1.6;
}

.luna-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}

.luna-demo-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.luna-demo-video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.luna-demo-caption {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
}

@media (max-width: 720px) {
  .luna-demo-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }
  .luna-demo-band {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .luna-demo-video {
    /* Honor user preference — pause looping autoplay */
    animation: none !important;
  }
}

/* ─── SECTION 3 — Feature Showcase ───────────────────────────────────────── */
.astro-features {
  background: var(--navy);
  padding: 96px 0;
  position: relative;
}

.astro-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--navy-border), transparent);
}

.astro-features .section-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gap-xl);
}

.astro-features .section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.astro-features .section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.astro-features .section-heading p {
  font-size: var(--font-size-sm);
  color: var(--text-muted-dark);
  margin: 0;
}

.astro-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
  max-width: 960px;
  margin: 0 auto;
}

.astro-feature-card {
  position: relative;
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  cursor: default;
}

/* Hidden start state for the scroll-reveal.js observer ([data-reveal] →
   .visible). Gated on html.js so the cards render for no-JS visitors. */
:where(html.js) .astro-feature-card {
  opacity: 0;
  transform: translateY(16px);
}

.astro-feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance */
.astro-feature-card:nth-child(2) { transition-delay: 80ms; }
.astro-feature-card:nth-child(3) { transition-delay: 160ms; }
.astro-feature-card:nth-child(4) { transition-delay: 240ms; }

.astro-feature-card:hover {
  border-color: rgba(200, 146, 58, 0.5);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
  transform: translateY(-3px);
}

.astro-feature-card.visible:hover {
  transform: translateY(-3px);
}

/* Card index, top-right */
.astro-feature-num {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.55;
}

/* Icon + heading lead block */
.astro-feature-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.astro-feature-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-alpha);
  border: 1px solid rgba(200, 146, 58, 0.5);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
  color: var(--gold-light);
}

.astro-feature-card h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* Dominant first-sentence lead */
.astro-feature-lead {
  font-family: var(--font-main);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-on-dark);
  margin: 0;
}

/* Divider between lead and demoted detail */
.astro-feature-rule {
  display: block;
  width: 44px;
  height: 1px;
  background: rgba(200, 146, 58, 0.4);
  margin: 18px 0;
}

/* Demoted secondary detail (token #6585a0 on --navy-deep = 4.7:1, AA-pass) */
.astro-feature-detail {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted-dark);
  margin: 0;
}

.astro-feature-bullets {
  list-style: none;
  padding: 16px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid rgba(37, 59, 82, 0.8);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.astro-feature-bullets li {
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(221, 232, 244, 0.82);
  padding-left: 18px;
  position: relative;
}

.astro-feature-bullets li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--gold);
  font-size: 11px;
}

@media (max-width: 640px) {
  .astro-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── SECTION 4 — Pricing Preview ────────────────────────────────────────── */
.astro-pricing {
  background: var(--beige);
  padding: 96px 0;
}

.astro-pricing .section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gap-xl);
}

.astro-pricing h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.astro-pricing-subtitle {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  margin: 0 0 56px;
}

.astro-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: var(--gap-md);
  max-width: 880px;
  margin: 0 auto var(--gap-lg);
  align-items: start;
}

.astro-pricing-col {
  background: var(--beige-card);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.astro-pricing-col-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.astro-pricing-col-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 20px;
}

.astro-pricing-col-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
  font-family: var(--font-main);
}

.astro-pricing-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.astro-pricing-col ul li {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.astro-pricing-col ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Featured (App+) column */
.astro-pricing-col.featured {
  background: var(--navy);
  border-color: var(--gold);
  border-width: 2px;
  position: relative;
  padding-top: 44px;
}

.astro-pricing-col.featured .astro-pricing-col-name {
  color: var(--gold);
}

.astro-pricing-col.featured .astro-pricing-col-price {
  color: var(--text-on-dark);
}

.astro-pricing-col.featured .astro-pricing-col-price span {
  color: var(--text-muted-dark);
}

.astro-pricing-col.featured ul li {
  color: var(--text-muted-dark);
}

.astro-pricing-col.featured ul li::before {
  color: var(--gold);
}

/* "Most Popular" badge */
.astro-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Pricing CTA buttons */
.pricing-cta-btn.primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast) ease;
  cursor: pointer;
  margin-top: auto;
  box-sizing: border-box;
}

.pricing-cta-btn.primary:hover { background: var(--gold-light); }

.pricing-cta-btn.secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--beige-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    border-color var(--transition-fast) ease,
    color var(--transition-fast) ease;
  cursor: pointer;
  margin-top: auto;
  box-sizing: border-box;
}

.pricing-cta-btn.secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.astro-pricing-col.featured .pricing-cta-btn.secondary {
  color: var(--text-on-dark);
  border-color: var(--navy-border);
}

.astro-pricing-col.featured .pricing-cta-btn.secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.astro-pricing-more-link {
  display: block;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  text-decoration: none;
  margin-top: var(--gap-sm);
}

.astro-pricing-more-link:hover { color: var(--gold); }

.astro-pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: var(--gap-sm);
}

/* Pricing responsive */
@media (max-width: 768px) {
  .astro-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  .astro-pricing-col.featured {
    order: -1;
  }
}

/* Pricing dark mode */
[data-theme="dark"] .astro-pricing {
  background: var(--navy-deep);
}

[data-theme="dark"] .astro-pricing h2 {
  color: var(--text-on-dark);
}

[data-theme="dark"] .astro-pricing-subtitle {
  color: var(--text-muted-dark);
}

[data-theme="dark"] .astro-pricing-col {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--navy-border);
}

[data-theme="dark"] .astro-pricing-col-name,
[data-theme="dark"] .astro-pricing-col-price {
  color: var(--text-on-dark);
}

[data-theme="dark"] .astro-pricing-col ul li {
  color: var(--text-muted-dark);
}

[data-theme="dark"] .pricing-cta-btn.secondary {
  color: var(--text-on-dark);
  border-color: var(--navy-border);
}

/* SECTION 5 — Technical Credibility Strip — REMOVED 2026-05-09.
   The 5-badge tech strip was cut from astro_about.html because it
   duplicated proofs already carried by the trust strip (Swiss Ephemeris,
   JHora-Validated) and the feature cards (Rail Engine, Conjunction Solver,
   Dual-Mode Sync). All .astro-tech, .astro-tech-inner, .astro-tech-badge,
   .astro-tech-badge-icon rules were deleted with the section.            */

/* ─── SECTION 3B — Philosophy · PLATE V (CD Stage 1, 2026-05-30) ─────────
   Frontispiece treatment. Triple gradient (gold top-glow, navy bottom-
   anchor, deep gradient base) layered with a procedural star field via
   .philo-stars. Header has gold rules flanking the eyebrow; "Plate V"
   monogram in mono adds the treatise-page register. The blockquote uses
   .lede (gold italic opener) and .hero-line (white closer) to elevate the
   quote's rhythm. Ornament rule (.philo-rule-orn) separates quote from
   body. Body kicker wrapped in .close for italic display weight. */
.astro-philosophy {
  position: relative;
  overflow: hidden;
  padding: 128px var(--gap-xl);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(200, 146, 58, 0.10) 0%, transparent 46%),
    radial-gradient(ellipse at 50% 120%, rgba(26, 37, 53, 0.60) 0%, transparent 50%),
    linear-gradient(180deg,
      #05060b 0%,
      #0a0d16 55%,
      #06070c 100%);
}

.philo-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    radial-gradient(1px 1px at 14% 24%, rgba(221, 232, 244, 0.6), transparent 50%),
    radial-gradient(1px 1px at 82% 18%, rgba(200, 146, 58, 0.5), transparent 50%),
    radial-gradient(1px 1px at 68% 76%, rgba(221, 232, 244, 0.45), transparent 50%),
    radial-gradient(1.4px 1.4px at 30% 82%, rgba(221, 232, 244, 0.55), transparent 50%),
    radial-gradient(1px 1px at 90% 60%, rgba(221, 232, 244, 0.4), transparent 50%),
    radial-gradient(1px 1px at 8% 64%, rgba(200, 146, 58, 0.4), transparent 50%);
}

.astro-philosophy-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.philo-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.philo-head .rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 146, 58, 0.7));
}
.philo-head .rule.r {
  background: linear-gradient(90deg, rgba(200, 146, 58, 0.7), transparent);
}

.astro-philosophy-eyebrow {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  white-space: nowrap;
}

.philo-plate {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(200, 146, 58, 0.5);
  margin: 0 0 30px;
}

.astro-philosophy-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.32;
  letter-spacing: -0.018em;
  color: #eaf1fa;
  border: none;
  padding: 0;
  margin: 0 auto;
  max-width: 22ch;
  quotes: none;
}
.astro-philosophy-quote::before,
.astro-philosophy-quote::after { content: none; }

.astro-philosophy-quote .lede {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
}
.astro-philosophy-quote .hero-line {
  color: #fff;
}

.philo-rule-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0 36px;
}
.philo-rule-orn .ln {
  width: 120px;
  height: 1px;
  background: rgba(200, 146, 58, 0.45);
}
.philo-rule-orn .star {
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}

.astro-philosophy-body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.78;
  color: rgba(221, 232, 244, 0.72);
  margin: 0 auto;
  max-width: 62ch;
}
.astro-philosophy-body .close {
  display: block;
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: rgba(221, 232, 244, 0.9);
}

@media (max-width: 768px) {
  .astro-philosophy { padding: 88px var(--gap-md); }
  .philo-head .rule { width: 40px; }
  .philo-rule-orn .ln { width: 64px; }
}

/* ─── SECTION 6 — Final CTA ──────────────────────────────────────────────── */
.astro-cta {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%,
      rgba(200, 146, 58, 0.06) 0%,
      transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 100px var(--gap-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.astro-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--navy-border), transparent);
}

.astro-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 640px;
  margin: 0 auto var(--gap-sm);
}

.astro-cta p {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted-dark);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto var(--gap-lg);
}

/* Reset old .astro-cta button overrides — new section is dark, not gold bg */
.astro-about-page .astro-cta .cta-btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
}

.astro-about-page .astro-cta .cta-btn-primary:hover {
  opacity: 0.9;
  color: var(--navy-deep);
  box-shadow: 0 5px 18px rgba(200,146,58,0.35);
}

.astro-about-page .astro-cta .cta-btn-secondary {
  border-color: var(--navy-border);
  color: var(--text-on-dark);
  background: transparent;
}

.astro-about-page .astro-cta .cta-btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.astro-cta .landing-cta-row {
  justify-content: center;
}

@media (max-width: 480px) {
  .astro-cta {
    padding: 72px var(--gap-md);
  }
  .astro-cta h2 {
    font-size: clamp(26px, 8vw, 36px);
  }
  .astro-cta .landing-cta-row {
    flex-direction: column;
    align-items: center;
  }
  .astro-cta .cta-btn-primary,
  .astro-cta .cta-btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* --- Landing Pricing Teaser (Phase 2) --- */
.landing-pricing-teaser { background: var(--navy); padding: var(--gap-xl) 0; }
.landing-pricing-teaser .section-heading { text-align: center; margin-bottom: 0; }
.landing-pricing-teaser .section-heading h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); color: var(--text-on-dark); margin-bottom: 8px; }
.landing-pricing-teaser .section-heading p { color: var(--text-muted-dark); font-size: var(--font-size-sm); }
.pricing-teaser-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: var(--gap-lg); align-items: start; margin-top: var(--gap-xl); }
.pricing-teaser-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: var(--gap-lg); position: relative; }
.pricing-teaser-featured { background: var(--navy-deep); border: 2px solid var(--gold); box-shadow: 0 0 24px rgba(200,146,58,0.12); }
.pt-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy-deep); font-size: 0.72rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.06em; }
.pt-tier { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: var(--gap-xs); }
.pt-price { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); color: var(--gold); font-weight: bold; line-height: 1; margin-bottom: var(--gap-md); }
.pricing-teaser-featured .pt-price { color: var(--gold-light); }
.pt-period { font-size: 0.875rem; color: var(--text-dim); font-family: var(--font-main); font-weight: normal; }
.pt-features { list-style: none; margin: 0 0 var(--gap-lg); padding: 0; font-size: 0.9rem; color: var(--text-on-dark); display: flex; flex-direction: column; gap: 8px; }
.pt-features li { padding-left: 18px; position: relative; line-height: 1.5; }
.pt-features li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.pricing-teaser-footer-link { text-align: center; margin-top: var(--gap-lg); }
.pricing-teaser-footer-link a { color: var(--gold); text-decoration: none; }
.pricing-teaser-footer-link a:hover { text-decoration: underline; }
.pt-current-plan { display: block; text-align: center; color: var(--text-dim); font-size: 0.875rem; padding: 10px; }
.pricing-teaser-card:not(.pricing-teaser-featured):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 37, 53, 0.15);
}
.pricing-teaser-featured:hover {
  box-shadow: 0 0 28px rgba(200, 146, 58, 0.22), 0 8px 20px rgba(26, 37, 53, 0.15);
}
@media (max-width: 900px) { .pricing-teaser-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pricing-teaser-grid { grid-template-columns: 1fr; } .pricing-teaser-featured { order: -1; } }

/* ─── Reduced motion: disable all astro-about entrance animations ─────────── */
@media (prefers-reduced-motion: reduce) {
  .astro-feature-card,
  .astro-stat-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .astro-feature-card:nth-child(2),
  .astro-feature-card:nth-child(3),
  .astro-feature-card:nth-child(4) {
    transition-delay: 0ms;
  }
  .hero-scroll-hint {
    animation: none;
  }
}

/* ─── Cosmic hero — responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .lh-inner {
    padding: 60px var(--gap-md) 50px;
    gap: var(--gap-sm);
  }
  .lh-cta-row {
    flex-direction: column;
    width: 100%;
  }
  .lh-cta-row .cta-btn-primary,
  .lh-cta-row .cta-btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .ls-v2-inner {
    gap: var(--gap-md);
  }
  .ls-stat {
    min-width: calc(50% - var(--gap-md));
  }
}

@media (max-width: 480px) {
  .lh-cosmic::before {
    opacity: 0.7;
  }
  .lh-cosmic::after {
    width: 300px;
    height: 300px;
  }
}

/* ─── Cosmic hero — reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lh-star-glyph {
    animation: none;
  }
  .hero-scroll-hint {
    animation: none;
  }
  .astro-loader-ring {
    animation: none;
    border-top-color: var(--gold);
  }
}

/* ─── Landing v2 — Pricing Teaser (spec-compliant wrappers) ─────────────── */
.lpt-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
}

.lpt-heading {
  text-align: center;
}

.lpt-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}

.lpt-heading p {
  font-size: var(--font-size-base);
  color: var(--text-muted-dark);
}

.lpt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* Spec CTA buttons for pricing teaser (avoids overriding global cta-btn-primary on beige) */
.pricing-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}
.pricing-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.pricing-cta-btn.primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
}
.pricing-cta-btn.secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

/* pt-price-period — spec class for pricing period text */
.pt-price-period {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted-dark);
}

.lpt-footnote {
  text-align: center;
  margin: 0;
}

.lpt-see-full {
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.lpt-see-full:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.lpt-beta-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted-dark);
  margin: 0;
}

.pt-cta {
  margin-top: auto;
}

@media (max-width: 768px) {
  .lpt-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pricing-teaser-featured {
    order: -1;
  }
}

/* ─── Landing v2 — Final CTA ─────────────────────────────────────────────── */
.landing-final-cta {
  background: var(--beige);
  padding: 96px 0;
  border-top: 1px solid var(--beige-border);
}

.lfc-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}

.lfc-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
}

.lfc-sub {
  font-size: var(--font-size-lg);
  color: var(--text-dim);
  margin: 0;
  max-width: 42ch;
}

/* Navy button on beige — contrast ~12:1 (WCAG AAA) */
.lfc-cta-primary {
  background: var(--navy);
  box-shadow: none;
}

.lfc-cta-primary:hover {
  background: var(--navy);
  opacity: 0.88;
  box-shadow: 0 5px 18px rgba(26, 37, 53, 0.25);
}

@media (max-width: 480px) {
  .lfc-inner .landing-cta-row {
    width: 100%;
  }
  .lfc-cta-primary {
    width: 100%;
    text-align: center;
  }
}

/* ─── Landing v2 — Entrance animations ──────────────────────────────────── */
.ls-stat,
.la-text-col,
.la-visual-col,
.lc-wave {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.pricing-teaser-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.ls-stat.visible,
.la-text-col.visible,
.la-visual-col.visible,
.lc-wave.visible,
.pricing-teaser-card.visible {
  opacity: 1;
  transform: none;
}

/* Horizontal slide for Artemis two-column layout */
.la-text-col {
  transform: translateX(-24px) translateY(0);
}
.la-visual-col {
  transform: translateX(24px) translateY(0);
}
.la-text-col.visible,
.la-visual-col.visible {
  transform: none;
}

/* Stagger delays */
.ls-stat:nth-child(1) { transition-delay: 0ms; }
.ls-stat:nth-child(2) { transition-delay: 60ms; }
.ls-stat:nth-child(3) { transition-delay: 120ms; }
.ls-stat:nth-child(4) { transition-delay: 180ms; }

.lc-wave:nth-child(1) { transition-delay: 0ms; }
.lc-wave:nth-child(2) { transition-delay: 50ms; }
.lc-wave:nth-child(3) { transition-delay: 100ms; }
.lc-wave:nth-child(4) { transition-delay: 150ms; }
.lc-wave:nth-child(5) { transition-delay: 200ms; }
.lc-wave:nth-child(6) { transition-delay: 250ms; }

.pricing-teaser-card:nth-child(1) { transition-delay: 0ms; }
.pricing-teaser-card:nth-child(2) { transition-delay: 80ms; }
.pricing-teaser-card:nth-child(3) { transition-delay: 160ms; }

/* ─── Landing v2 — Reduced motion: entrance animations ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ls-stat,
  .la-text-col,
  .la-visual-col,
  .lc-wave,
  .pricing-teaser-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE EXCELLENCE PASS — 320–768px audit
   Added: 2026-03-23
   Covers: hero clamp, CTA stacking, wave timeline overflow,
           pricing teaser featured ordering, Artemis showcase,
           SVG chart sizing, nav drawer, Artemis page hero CTAs
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hero: ensure CTAs stack at ≤480px (all CTA rows, not just lh-cta-row) ─ */
@media (max-width: 480px) {
  .landing-cta-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .landing-cta-row .cta-btn-primary,
  .landing-cta-row .cta-btn-secondary {
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ─── Hero at 320px: tighten inner padding so title doesn't clip ──────────── */
@media (max-width: 360px) {
  .lh-inner {
    padding-left: var(--gap-sm);
    padding-right: var(--gap-sm);
  }
  .lh-title {
    /* clamp min is 44px — at 320px 11vw = 35.2px so min kicks in.
       Further override to ensure the letter-spacing doesn't cause overflow. */
    letter-spacing: -0.03em;
    word-break: break-word;
  }
}

/* ─── Artemis two-column showcase: SVG chart max-width at narrow viewport ─── */
@media (max-width: 480px) {
  .la-chart-frame {
    width: min(260px, 80vw);
    height: min(260px, 80vw);
  }
  .la-inner {
    gap: var(--gap-md);
  }
  .la-text-col {
    gap: var(--gap-sm);
  }
}

/* ─── Wave timeline: prevent left-padding overflow at 320px ──────────────── */
@media (max-width: 480px) {
  .lc-wave-timeline {
    padding-left: var(--gap-md);
    padding-right: var(--gap-md);
  }
  /* Ensure wave label text doesn't clip */
  .lc-wave-desc {
    white-space: normal;
    word-break: break-word;
    max-width: 180px;
  }
}

/* At 320px ensure connector aligns correctly in vertical layout */
@media (max-width: 360px) {
  .lc-wave-connector {
    margin-left: 18px; /* (44px badge / 2) - 2px border = 20px; tighten for 360px */
  }
  .lc-wave {
    gap: var(--gap-xs);
  }
}

/* ─── Pricing teaser (.lpt-grid) — featured card order at 1-col ──────────── */
/* .lpt-grid collapses to 1-col at 768px; featured must appear first */
@media (max-width: 768px) {
  .lpt-grid .pricing-teaser-featured {
    order: -1;
  }
  /* pt-badge stays correct: position:absolute, top:-14px, left:50% translateX(-50%)
     works in single-column layout as long as parent has position:relative — it does */
}

/* At 320px the lpt-grid card padding is generous — reduce slightly */
@media (max-width: 400px) {
  .lpt-grid .pricing-teaser-card {
    padding: var(--gap-md);
  }
  .lpt-grid .pricing-teaser-featured {
    padding-top: calc(var(--gap-md) + 16px); /* room for the badge */
  }
}

/* ─── Artemis page hero: ensure CTA row stacks at ≤480px ─────────────────── */
/* Already done at line 2694 for .astro-hero .landing-cta-row.
   Reinforce for the auth-aware CTA block in .astro-cta section: */
@media (max-width: 480px) {
  .astro-cta .landing-cta-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .astro-cta .landing-cta-row .cta-btn-primary,
  .astro-cta .landing-cta-row .cta-btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ─── Artemis feature grid: 2-col→1-col at ≤640px (already exists) ─────────
   Add padding reduction at 480px to avoid side overflow on narrow screens */
@media (max-width: 480px) {
  .astro-feature-card {
    padding: 28px 20px;
  }
  .astro-features .section-inner {
    padding: 0 var(--gap-md);
  }
}

/* ─── Artemis pricing grid: already collapses at 768px.
   At 320px tighten the column and badge area */
@media (max-width: 400px) {
  .astro-pricing-grid {
    max-width: 100%;
  }
  .astro-pricing .section-inner {
    padding: 0 var(--gap-md);
  }
  .astro-pricing-col {
    padding: 24px 20px;
  }
  .astro-pricing-col.featured {
    padding-top: 44px; /* preserve badge clearance */
  }
}

/* ─── Nav drawer: ensure it doesn't overflow horizontally at 320px ────────── */
@media (max-width: 400px) {
  .mobile-nav-drawer {
    padding: var(--gap-md);
  }
  .mobile-nav-drawer a,
  .mobile-nav-drawer button {
    font-size: var(--font-size-sm);
    padding: var(--gap-xs) 0;
    /* Ensure touch targets still meet 44px minimum height */
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ─── Touch target audit: all primary interactive elements ≥44px tall ──────
   CTA buttons already use padding: 14px 32px (height ≈ 50px). Board tab
   links and nav items at small screens — apply min-height to be explicit. */
@media (max-width: 640px) {
  .board-tab {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav-product-tab,
  .nav-donate-tab {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ─── Community section: landing-community padding at mobile ──────────────── */
@media (max-width: 480px) {
  .landing-community {
    padding: 64px 0;
  }
  .lc-inner {
    gap: var(--gap-lg);
  }
  .lc-heading h2 {
    font-size: clamp(24px, 7vw, 36px);
  }
}

/* ─── Section-inner horizontal padding at 320px ──────────────────────────── */
@media (max-width: 400px) {
  .section-inner {
    padding-left: var(--gap-md);
    padding-right: var(--gap-md);
  }
}

/* ─── Landing final CTA: button touches at 320px ─────────────────────────── */
@media (max-width: 400px) {
  .lfc-inner .landing-cta-row {
    width: 100%;
  }
  .lfc-cta-primary {
    width: 100%;
    text-align: center;
  }
}

/* ─── hero-scroll-hint: ensure no overflow on any viewport ───────────────── */
.hero-scroll-hint {
  /* Already positioned absolute; ensure it won't push scroll width */
  pointer-events: none;
  overflow: hidden;
}

/* ═══ PRICING DEEP SPACE ════════════════════════════════════════════════════
 * Full-page fixed galaxy canvas behind all pricing page sections.
 * The canvas is mounted as a direct child of <body> via space-bg.js so that
 * position:fixed works correctly regardless of ancestor stacking contexts.
 * ALL pricing sections have transparent backgrounds so stars show through.
 */

/* ── Body / page-wrap stacking ──────────────────────────────────────────── */
body.pricing-page {
  background: #03050e;  /* matches canvas bg — prevents flash before first frame */
}

body.pricing-page .page-wrap {
  position: relative;
  z-index: 1;           /* sits above the fixed z-index:0 canvas */
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.pricing-hero-deep {
  position: relative;
  min-height: 420px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hairline grid overlay — visible against the dark space bg */
  background-image:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Subtle bottom fade so hero blends into cards section */
.pricing-hero-deep::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(3,5,14,0.55));
  pointer-events: none;
}

.pricing-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--gap-xl) var(--gap-lg);
}

.pricing-hero-deep .pricing-hero-eyebrow {
  display: block;
  font-size: var(--font-size-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #72aed8;
  margin-bottom: 14px;
}

.pricing-hero-deep h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-family: 'Space Grotesk', var(--font-display), sans-serif;
  font-weight: 700;
  color: #e8f0f8;
  margin-bottom: 18px;
  line-height: 1.08;
  text-shadow: 0 0 60px rgba(96,160,208,0.28), 0 2px 8px rgba(0,0,0,0.9);
}

.pricing-hero-deep .pricing-hero-sub {
  font-size: var(--font-size-base);
  color: rgba(200,220,240,0.72);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* ── All pricing sections — transparent (galaxy shows through) ──────────── */
.pricing-cards-section-deep,
.pricing-faq-deep,
.pricing-cta-section-deep {
  background: transparent;
  position: relative;
}

/* Very subtle section dividers so sections are still delineated */
.pricing-cards-section-deep {
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-xl);
}

.pricing-faq-deep {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-xl);
}

.pricing-cta-section-deep {
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  padding-top: var(--gap-xl);
  padding-bottom: calc(var(--gap-xl) + 16px);
}

/* ── Glassmorphism pricing cards ─────────────────────────────────────────── */
.pricing-card-deep {
  background: rgba(6, 10, 26, 0.82);
  border: 1px solid rgba(96, 160, 208, 0.12);
  border-radius: var(--radius-md);
  padding: var(--gap-xl) var(--gap-lg);
  position: relative;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 4px 32px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.pricing-card-deep:hover {
  border-color: rgba(96, 160, 208, 0.28);
  box-shadow:
    0 8px 48px rgba(0,0,0,0.65),
    0 0 28px rgba(96,160,208,0.06),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* Top emission line */
.pricing-card-deep::before {
  content: '';
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,160,208,0.55), transparent);
  filter: blur(0.5px);
  pointer-events: none;
  border-radius: 1px;
}

/* Featured (App) card — gold emission + stronger glow */
.pricing-card-deep.featured {
  background: rgba(8, 12, 28, 0.88);
  border-color: rgba(200, 146, 58, 0.28);
  box-shadow:
    0 8px 56px rgba(0,0,0,0.65),
    0 0 48px rgba(200,146,58,0.08),
    inset 0 1px 0 rgba(200,146,58,0.08);
  transform: translateY(-4px);
}

.pricing-card-deep.featured:hover {
  border-color: rgba(200, 146, 58, 0.45);
  box-shadow:
    0 12px 64px rgba(0,0,0,0.70),
    0 0 64px rgba(200,146,58,0.12),
    inset 0 1px 0 rgba(200,146,58,0.10);
  transform: translateY(-6px);
}

.pricing-card-deep.featured::before {
  background: linear-gradient(90deg, transparent, rgba(200,146,58,0.75), transparent);
  left: 8%; right: 8%;
}

/* Redesign: featured card vertical gold glass overlay */
.pricing-card-deep.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(200, 146, 58, 0.05) 0%,
    rgba(200, 146, 58, 0.00) 60%
  );
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

/* Ensure card content sits above the ::after glass overlay */
.pricing-card-deep.featured > * {
  position: relative;
  z-index: 1;
}

/* ── Tier name ───────────────────────────────────────────────────────────── */
.pricing-card-deep .pricing-tier-name {
  font-family: 'Space Grotesk', var(--font-display), sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #72aed8;
  margin-bottom: 14px;
}

.pricing-card-deep.featured .pricing-tier-name {
  color: var(--gold);
}

/* ── Price (JetBrains Mono) ──────────────────────────────────────────────── */
.pricing-price-deep {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 3rem;
  font-weight: 500;
  color: #e8f0f8;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.pricing-price-deep span {
  font-size: 0.95rem;
  opacity: 0.42;
  font-weight: 400;
  letter-spacing: 0;
}

/* ── Tagline ─────────────────────────────────────────────────────────────── */
.pricing-card-deep .pricing-tagline {
  font-size: var(--font-size-sm);
  color: rgba(200,218,238,0.52);
  line-height: 1.55;
  margin-bottom: var(--gap-md);
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.pricing-card-deep .pricing-divider {
  height: 1px;
  background: rgba(255,255,255,0.055);
  margin: var(--gap-md) 0;
}

/* ── Features list ───────────────────────────────────────────────────────── */
.pricing-card-deep .pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--gap-lg) 0;
}

.pricing-card-deep .pricing-features-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: var(--font-size-sm);
  color: rgba(200,218,238,0.68);
  padding: 5px 0;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255,255,255,0.035);
}

.pricing-card-deep .pricing-features-list li:last-child { border-bottom: none; }

.pricing-card-deep .pricing-features-list li .feat-check {
  color: var(--gold);
  flex-shrink: 0;
  font-size: 12px;
}

.pricing-card-deep .pricing-features-list li .feat-dash {
  color: rgba(200,218,238,0.22);
  flex-shrink: 0;
}

/* ── Badge ───────────────────────────────────────────────────────────────── */
.pricing-card-deep .pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, #d4a040 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(200,146,58,0.35);
}

/* ── CTA buttons ─────────────────────────────────────────────────────────── */
.pricing-cta-deep-primary {
  display: block;
  text-align: center;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold) 0%, #d4a040 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 20px rgba(200,146,58,0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.pricing-cta-deep-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 28px rgba(200,146,58,0.45);
  opacity: 0.92;
  text-decoration: none;
  color: #fff;
}

.pricing-cta-deep-secondary {
  display: block;
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-decoration: none;
  cursor: pointer;
  background: rgba(96,160,208,0.07);
  border: 1px solid rgba(96,160,208,0.22);
  color: #80b8d8;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pricing-cta-deep-secondary:hover {
  background: rgba(96,160,208,0.12);
  border-color: rgba(96,160,208,0.40);
  transform: translateY(-1px);
  text-decoration: none;
  color: #9ccae2;
}

.pricing-cta-deep-current {
  display: block;
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(200,218,238,0.35);
  cursor: default;
  letter-spacing: 0.04em;
}

.pricing-manage-link-deep {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(200,218,238,0.38);
  text-decoration: none;
}

.pricing-manage-link-deep:hover { color: var(--gold); }

/* ── Legal notice ────────────────────────────────────────────────────────── */
.pricing-cards-section-deep .pricing-legal-notice {
  color: rgba(200,218,238,0.32);
  margin-top: var(--gap-lg);
}

.pricing-cards-section-deep .pricing-legal-notice a { color: #72aed8; }

/* ── FAQ section ─────────────────────────────────────────────────────────── */
.pricing-faq-deep .section-heading h2 {
  color: #e8f0f8;
  font-family: 'Space Grotesk', var(--font-display), sans-serif;
}

.pricing-faq-deep .faq-item {
  background: rgba(6, 10, 26, 0.75);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: var(--radius-sm);
  padding: var(--gap-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease;
}

.pricing-faq-deep .faq-item:hover {
  border-color: rgba(96,160,208,0.18);
}

.pricing-faq-deep .faq-item h4 {
  color: #e8f0f8;
  font-family: 'Space Grotesk', var(--font-display), sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
}

.pricing-faq-deep .faq-item p {
  color: rgba(200,218,238,0.60);
  font-size: var(--font-size-sm);
  line-height: 1.65;
  margin: 0;
}

/* ── Bottom CTA section ──────────────────────────────────────────────────── */
.pricing-cta-section-deep h2 {
  color: #e8f0f8;
  font-family: 'Space Grotesk', var(--font-display), sans-serif;
}

.pricing-cta-section-deep p {
  color: rgba(200,218,238,0.60);
}

/* ── Dark mode: already optimised for dark — minimal overrides ───────────── */
[data-theme="dark"] .pricing-hero-deep,
[data-theme="dark"] .pricing-cards-section-deep,
[data-theme="dark"] .pricing-faq-deep,
[data-theme="dark"] .pricing-cta-section-deep {
  /* All sections are transparent — canvas handles the dark bg. No overrides. */
}

/* ── prefers-reduced-motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pricing-hero-deep,
  .pricing-cards-section-deep,
  .pricing-faq-deep,
  .pricing-cta-section-deep {
    background: #03050e;
  }
  .pricing-hero-deep { background-image: none; }
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pricing-hero-deep      { min-height: 300px; }
  .pricing-hero-deep h1   { font-size: clamp(1.7rem, 7vw, 2.6rem); }
  .pricing-card-deep.featured { transform: none; }
  .pricing-card-deep.featured:hover { transform: translateY(-2px); }
}

@media (max-width: 640px) {
  .pricing-card-deep {
    padding: var(--gap-lg) var(--gap-md);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6,10,26,0.92);
  }
  .pricing-price-deep { font-size: 2.4rem; }
}
/* ─── Phase 44: Pricing improvements ─────────────────────────────────────── */
.proof-strip {
  display: flex;
  gap: var(--gap-lg);
  justify-content: center;
  padding: var(--gap-md) var(--gap-lg);
  background: var(--gold-alpha);
  border-radius: var(--radius-md);
  margin-bottom: var(--gap-lg);
  flex-wrap: wrap;
}
.proof-stat strong { color: var(--gold); }
.proof-divider { color: var(--border); }

.faq-grid-details { display: grid; gap: var(--gap-sm); }
.faq-item {
  background: var(--bg-post);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--gap-md);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "\25B8  "; color: var(--gold); }
.faq-item[open] summary::before { content: "\25BE  "; }
.faq-item p { margin-top: var(--gap-sm); color: var(--text-dim); font-size: var(--font-size-sm); }

.billing-toggle {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  justify-content: center;
  margin-bottom: var(--gap-lg);
}
.billing-label { font-size: var(--font-size-sm); color: var(--text-dim); }
.billing-switch {
  width: 44px; height: 24px;
  background: var(--border);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast);
}
.billing-switch[aria-checked="true"] { background: var(--gold); }
.billing-switch-thumb {
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform var(--transition-fast);
  pointer-events: none;
}
.billing-switch[aria-checked="true"] .billing-switch-thumb { transform: translateX(20px); }
.billing-save-badge {
  background: var(--gold-alpha);
  color: var(--gold);
  font-size: 0.75em;
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid rgba(200,146,58,0.3);
}

/* Phase 44: Donation page */
.cost-progress {
  margin-top: var(--gap-lg);
  padding: var(--gap-md);
  background: var(--bg-post);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.cost-bar-label { font-size: var(--font-size-sm); color: var(--text-dim); margin-bottom: var(--gap-xs); }
.cost-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.cost-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #e0ab56 100%);
  border-radius: 4px;
  transition: width var(--transition-slow);
}
.donation-disclaimer {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  text-align: center;
  margin-top: var(--gap-xl);
  font-style: italic;
}

/* ─── Phase 45: Discord badge ─────────────────────────────────────────────── */
.discord-widget { text-align: center; margin-top: var(--gap-md); }
.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: var(--gap-xs) var(--gap-md);
  background: rgba(88,101,242,0.12);
  border: 1px solid rgba(88,101,242,0.3);
  border-radius: 20px;
  color: #5865f2;
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: background var(--transition-fast);
}
.discord-badge:hover { background: rgba(88,101,242,0.22); }

/* ═════════════════════════════════════════════════════════════════════════ */

/* ─── Phase 49: View Transitions API ─────────────────────────────────────── */
@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* ─── Pricing polish pass ────────────────────────────────────────────────── */

/* --- Proof strip: stacked stat blocks ------------------------------------ */
.proof-strip {
  border: 1px solid rgba(200,146,58,0.18);
  align-items: center;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: var(--font-size-xs);
  color: rgba(200,218,238,0.50);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.proof-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: none;
}
/* Convert middot dividers to vertical lines */
.proof-divider {
  width: 1px;
  min-height: 40px;
  background: rgba(200,146,58,0.15);
  align-self: stretch;
  color: transparent;
  font-size: 0;
}

/* --- FAQ: animated rotating chevron + dark-background text fix ----------- */
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
}
/* Remove the old content-swap ::before */
.faq-item summary::before { content: none; }
/* New ::after chevron — rotates 90deg on open */
.faq-item summary::after {
  content: "›";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gold);
  transform: rotate(0deg);
  transition: transform var(--transition-base);
  display: inline-block;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(90deg); }

/* Fix summary text color on dark glassmorphic pricing cards */
.pricing-faq-deep .faq-item summary {
  color: rgba(232,240,248,0.90);
}
.pricing-faq-deep .faq-item[open] { border-color: rgba(96,160,208,0.22); }

/* --- Billing toggle: communicate disabled state -------------------------- */
.billing-switch[aria-disabled="true"] {
  opacity: 0.40;
  cursor: not-allowed;
}
.billing-switch[aria-disabled="true"]:hover {
  background: var(--border); /* prevent gold hover-state */
}

/* --- Bottom CTA: decorative star above headline -------------------------- */
.pricing-cta-section-deep h2::before {
  content: "✦";
  display: block;
  font-size: var(--font-size-sm);
  color: var(--gold);
  opacity: 0.55;
  letter-spacing: 0.4em;
  margin-bottom: var(--gap-sm);
  text-indent: 0.4em; /* optical centering for letter-spacing */
}

