/* ============================================================
   Spark — shared site styles (all marketing pages)
   Loaded after tokens.css on every page. Plain CSS, no framework.
   Ported from the 2026 design handoff (site.css + component JSX).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--candle-smoke);
  font-family: var(--font-sans);
  color: var(--text-body);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
[x-cloak] { display: none !important; }

::selection { background: var(--gold-200); color: var(--midnight-blueprint); }
/* reCAPTCHA v3 floating badge — hidden; the newsletter form carries the required disclaimer */
.grecaptcha-badge { visibility: hidden; }
:focus-visible { outline: 3px solid var(--violet-400); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout ---- */
.container { max-width: var(--content-max); margin: 0 auto; padding-left: clamp(20px, 4vw, 24px); padding-right: clamp(20px, 4vw, 24px); width: 100%; }
.container-narrow { max-width: var(--content-narrow); margin: 0 auto; padding-left: var(--section-pad-x); padding-right: var(--section-pad-x); width: 100%; }
.section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }
.section-sm { padding-top: var(--space-11); padding-bottom: var(--space-11); }
.has-fixed-nav { padding-top: 112px; }

/* ---- Type helpers ---- */
.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--gold-700); margin: 0; }
.eyebrow.violet { color: var(--voltage-violet); }
.eyebrow.on-dark { color: var(--gold-300); }
.eyebrow.on-dark-violet { color: var(--violet-200); }
.h-display { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: var(--leading-snug); margin: 0; text-wrap: balance; color: var(--text-strong); font-size: clamp(38px, 5.6vw, 60px); }
.h-section { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: var(--leading-snug); margin: 0; text-wrap: balance; color: var(--text-strong); font-size: clamp(26px, 3.6vw, 40px); }
.h-subtitle { font-family: var(--font-display); font-weight: 700; font-size: var(--text-subtitle); letter-spacing: var(--tracking-snug); color: var(--text-strong); margin: 0; }
.lead { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--text-body); text-wrap: pretty; margin: 0; }
.on-dark .h-display, .on-dark .h-section, .on-dark .h-subtitle { color: var(--flash-point); }
.on-dark .lead, .on-dark p { color: var(--text-on-dark-muted); }

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: var(--space-8); }
  .grid-2 .media-first { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  /* Stacked media: decorative illustrations/animations shrink so they
     don't dominate the viewport above the copy, and align left with it.
     Negative margin pulls the copy up slightly under the illustration. */
  .grid-2 .media-first { justify-content: flex-start !important; margin-bottom: calc(-1 * var(--space-3)); }
  .grid-2 .media-first .stack-shrink { max-width: 40% !important; margin-left: 0 !important; margin-right: auto !important; }
  /* The backdrop spark follows the left-aligned media (40% wide → centre at 20%) */
  .grid-2 .media-first .band-spark { left: 20% !important; }
  .grid-2 .media-first .band-spark svg { height: 160px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons (pill, brand motion: hover brightness, press scale) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: var(--text-md); font-weight: 600;
  padding: 15px 32px; border-radius: var(--radius-pill);
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(0.96); }
.btn:active { transform: scale(0.97); }
.btn .i { display: inline-flex; }
.btn-primary { background: var(--golden-static); color: var(--midnight-blueprint); }
.btn-secondary { background: var(--voltage-violet); color: var(--flash-point); }
.btn-ghost-dark { background: transparent; color: var(--flash-point); border: 1.5px solid rgba(255,255,255,0.24); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); filter: none; }
.btn-sm { padding: 11px 22px; font-size: var(--text-sm); }
/* Mobile: same look, one size down (min-height keeps the 44px touch target) */
@media (max-width: 640px) {
  .btn { padding: 12px 24px; font-size: var(--text-sm); min-height: 44px; }
  .btn .i svg { height: 16px !important; width: 16px !important; }
  .btn-sm { padding: 10px 18px; font-size: 13px; min-height: 40px; }
  .nl-btn { padding: 11px 20px; font-size: var(--text-sm); }
}

/* ---- Icons (slim sprite injected inline in header.php) ---- */
.icon { display: block; width: auto; }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--chip, 52px); height: var(--chip, 52px);
  border-radius: var(--radius-md); background: var(--warm-circuit);
  color: var(--midnight-blueprint); border: none; flex-shrink: 0;
}
.icon-chip svg { height: calc(var(--chip, 52px) * 0.5); width: auto; }
.icon-chip.smoke { background: var(--candle-smoke); }

/* ---- Cards ---- */
.feature-card {
  background: var(--surface-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow-sm);
  height: 100%; display: flex; flex-direction: column; gap: var(--space-4);
  transition: all 0.3s ease-in-out;
}
/* Cards also carry .reveal, whose transition would otherwise override the
   above (equal specificity, later in file). Two classes wins the cascade. */
.feature-card.reveal { transition: all 0.3s ease-in-out; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-subtitle); color: var(--text-strong); margin: 0; letter-spacing: var(--tracking-snug); }
.feature-card p { margin: 0; color: var(--text-body); font-size: var(--text-md); line-height: 1.6; flex-grow: 1; }
.feature-card .card-action, .feature-line .card-action { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-3); font-weight: 600; font-size: var(--text-sm); color: var(--voltage-violet); text-decoration: none; white-space: nowrap; }

.feature-line { display: flex; gap: var(--space-4); align-items: flex-start; }
.feature-line h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--text-strong); margin: 2px 0 4px; letter-spacing: var(--tracking-snug); }
.feature-line p { margin: 0; color: var(--text-body); font-size: var(--text-md); line-height: 1.55; }

/* ---- Style chips ---- */
.style-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.style-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: var(--radius-pill); background: var(--surface-card);
  border: 1px solid var(--border-default); color: var(--text-strong);
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
}
.style-chip:hover { border-color: var(--border-gold); background: var(--surface-tint-gold); }
.style-chip svg { height: 18px; width: auto; }

/* ---- Page hero (interior pages: warm Candle Smoke surface + gold glow) ---- */
.page-hero { position: relative; overflow: hidden; background: var(--candle-smoke); }
.page-hero .hero-glow {
  position: absolute; top: -120px; right: -100px; width: 500px; height: 500px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(245,166,35,0.16), rgba(245,166,35,0) 68%);
}
.page-hero .hero-glow.left { right: auto; left: -100px; }
.page-hero .container { position: relative; padding-top: var(--space-9); padding-bottom: var(--space-11); }
.page-hero h1 { margin-top: var(--space-4); }
.page-hero .lead { margin-top: var(--space-6); max-width: 54ch; }
.page-hero .hero-cta { margin-top: var(--space-8); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.page-hero .hero-copy { max-width: 52ch; }
.page-hero .grid-2 .hero-copy { max-width: none; }
.page-hero.center { text-align: center; }
.page-hero.center .hero-copy { max-width: 60ch; margin-inline: auto; }
.page-hero.center .lead { margin-inline: auto; }
.page-hero.center .hero-cta { justify-content: center; }
.hero-media { position: relative; display: flex; justify-content: center; }
.lottie-box { width: 100%; max-width: 400px; aspect-ratio: 1 / 1; margin: 0 auto; }

/* ---- Section head ---- */
.section-head.center { max-width: 660px; margin: 0 auto; text-align: center; }
.section-head .h-section { margin-top: var(--space-4); }
.section-head .lead { margin-top: var(--space-5); max-width: 56ch; }
.section-head.center .lead { margin-inline: auto; max-width: 52ch; }

/* ---- CTA band (navy, gold radial glow) ---- */
.cta-band { position: relative; overflow: hidden; background: var(--midnight-blueprint); }
.cta-band .band-glow {
  position: absolute; bottom: -180px; left: -120px; width: 520px; height: 520px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(245,166,35,0.18), rgba(245,166,35,0) 68%);
}
.cta-band .container { position: relative; padding-top: var(--space-12); padding-bottom: var(--space-12); }

/* ---- App store badges ---- */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px 11px 18px;
  border-radius: var(--radius-pill); background: var(--midnight-blueprint);
  color: var(--flash-point); text-decoration: none; border: 1.5px solid var(--midnight-blueprint);
}
.store-badge:hover { filter: brightness(1.12); }
.store-badge svg { height: 26px; width: auto; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .sb-small { font-size: 10.5px; opacity: 0.8; font-weight: 500; }
.store-badge .sb-big { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.on-dark .store-badge, .cta-band .store-badge { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); }

/* ---- Glass phone frame (interior pages; home hero keeps its own) ---- */
.pframe {
  width: var(--pframe-w, 260px); max-width: 100%;
  border: 2px solid var(--violet-500); border-radius: 1.8rem; padding: 0.6rem;
  background: rgba(108,92,231,0.08);
  backdrop-filter: blur(0.75rem); -webkit-backdrop-filter: blur(0.75rem);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; align-items: center;
}
.pframe.gold { border-color: var(--golden-static); background: rgba(245,166,35,0.10); }
.pframe .pf-notch { width: 30%; height: 0.3rem; border-radius: 0.2rem; background: var(--violet-400); opacity: 0.5; margin: 0.1rem 0 0.5rem; flex-shrink: 0; }
.pframe.gold .pf-notch { background: var(--gold-400); }
.pframe .pf-screen { width: 100%; aspect-ratio: 1242 / 2514; border-radius: 1rem; overflow: hidden; background: var(--surface-subtle); }
.pframe .pf-screen img { width: 100%; height: 100%; object-fit: contain; }

/* ---- Testimonial band (rotating quotes, grid-stacked so height never jumps) ---- */
.testimonial-band { background: var(--surface-warm); border-top: 1px solid var(--gold-200); border-bottom: 1px solid var(--gold-200); }
.testimonial-band .container-narrow { padding-top: var(--space-11); padding-bottom: var(--space-11); text-align: center; }
.testimonial-band .tb-stack { display: grid; }
.testimonial-band blockquote {
  grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  opacity: 0; pointer-events: none;
  /* Outgoing quote fades out quickly… */
  transition: opacity 0.4s ease-in;
}
.testimonial-band blockquote.active {
  opacity: 1; pointer-events: auto;
  /* …then the incoming quote fades in gently once it has gone */
  transition: opacity 0.9s var(--ease-out) 0.5s;
}
.testimonial-band blockquote p {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 3vw, 28px);
  line-height: 1.35; letter-spacing: var(--tracking-snug); color: var(--midnight-blueprint);
  margin: 0 0 var(--space-5); text-wrap: balance;
}
.testimonial-band footer { font-size: var(--text-sm); font-weight: 600; color: var(--gold-700); }
.testimonial-band footer .tb-role { color: var(--ember-surge); font-weight: 500; }
.tb-dots { display: flex; gap: 8px; justify-content: center; margin-top: var(--space-7); }
.tb-dots button { width: 9px; height: 9px; border-radius: var(--radius-pill); border: none; cursor: pointer; padding: 0; background: var(--gold-300); }
.tb-dots button.active { width: 22px; background: var(--golden-static); }

/* ---- Newsletter (Deep Current band at the top of the footer) ---- */
.newsletter { background: var(--deep-current); border-bottom: 1px solid rgba(255,255,255,0.10); }
.newsletter .container { padding-top: var(--space-10); padding-bottom: var(--space-10); }
.newsletter .nl-row { display: flex; flex-wrap: wrap; gap: var(--space-7); align-items: center; justify-content: space-between; }
.newsletter h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-title); letter-spacing: var(--tracking-snug); color: var(--flash-point); margin: 0 0 6px; }
.newsletter .nl-sub { margin: 0; color: var(--text-on-dark-muted); font-size: var(--text-md); max-width: 46ch; }
.newsletter form { flex: 1 1 340px; max-width: 460px; }
.newsletter .nl-copy { flex: 1 1 320px; }
.nl-pill {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.nl-pill:focus-within { background: rgba(255,255,255,0.10); border-color: var(--golden-static); box-shadow: var(--ring-gold); }
.nl-input {
  flex: 1; min-width: 0; height: 40px; padding: 0 8px 0 14px; border: none; outline: none;
  background: transparent; font-family: var(--font-sans); font-size: var(--text-md);
  font-weight: 500; color: var(--flash-point);
}
.nl-input::placeholder { color: rgba(255,255,255,0.55); opacity: 1; }
.nl-btn {
  flex-shrink: 0; font-family: var(--font-sans); font-size: var(--text-md); font-weight: 600;
  color: var(--midnight-blueprint); background: var(--golden-static); border: none;
  padding: 13px 24px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap;
}
.nl-btn:hover { filter: brightness(0.96); }
.nl-done { margin: 0; font-weight: 600; color: var(--charged-jade); display: flex; align-items: center; gap: 8px; }
.nl-error { margin: 8px 0 0; font-size: var(--text-sm); color: var(--ember-300); }

/* ---- Footer ---- */
.site-footer { background: var(--midnight-blueprint); color: var(--text-on-dark); }
/* Direct child only — must not bleed into the newsletter band's container */
.site-footer > .container { padding-top: var(--space-12); padding-bottom: var(--space-9); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); } }
.footer-blurb { font-size: var(--text-sm); color: rgba(255,255,255,0.66); max-width: 280px; margin: 0 0 var(--space-5); line-height: 1.6; }
.footer-col h3 { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--text-on-dark-muted); margin: 0 0 var(--space-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: var(--text-sm); font-weight: 500; color: rgba(255,255,255,0.66); text-decoration: none; }
.footer-col a:hover { color: var(--flash-point); }
.footer-bottom {
  margin-top: var(--space-10); padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
}
.footer-bottom p { margin: 0; font-size: var(--text-xs); color: rgba(255,255,255,0.5); }
.footer-bottom .made-by { display: inline-flex; align-items: center; gap: 7px; }

/* ---- Prose (legal / long-form) ---- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-title); color: var(--text-strong); margin: var(--space-9) 0 var(--space-3); letter-spacing: var(--tracking-snug); }
.prose h3 { font-weight: 600; font-size: var(--text-subtitle); color: var(--text-strong); margin: var(--space-7) 0 var(--space-2); }
.prose p { margin: 0 0 var(--space-4); color: var(--text-body); }
.prose ul { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }

/* ---- FAQ accordion ---- */
.faq-group { margin-bottom: var(--space-9); }
.faq-item { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md); margin-bottom: var(--space-3); overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; text-align: left; font-family: var(--font-sans); font-size: var(--text-md);
  font-weight: 600; color: var(--text-strong); background: transparent; border: none;
  cursor: pointer; padding: var(--space-5) var(--space-6);
}
.faq-q .chev { flex-shrink: 0; transition: transform 0.2s ease; color: var(--gold-600); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 var(--space-6) var(--space-5); color: var(--text-body); font-size: var(--text-md); line-height: 1.6; }
.faq-a p { margin: 0; }

/* ---- Reveal-on-scroll (progressive enhancement; visible by default) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- Nav (floating pill header, dark/light theme via data-nav-light) ---- */
.spark-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.spark-nav-pill {
  max-width: var(--content-max); margin: 18px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill); padding: 10px 10px 10px 22px;
  background: rgba(30,42,74,0.85); border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.spark-nav[data-nav-light="1"] .spark-nav-pill { background: rgba(255,255,255,0.8); border: 1px solid rgba(30,42,74,0.08); box-shadow: var(--shadow-sm); }
/* Open mobile menu: pill matches the menu panel's near-solid navy */
.spark-nav.menu-open .spark-nav-pill { background: rgba(30,42,74,0.98); border-color: transparent; box-shadow: none; }
.spark-nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.spark-nav-logo svg { height: 22px; width: auto; display: block; color: var(--flash-point); transition: color 0.3s ease-in-out; }
.spark-nav[data-nav-light="1"] .spark-nav-logo svg { color: var(--midnight-blueprint); }

.spark-nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,0.72); background: transparent;
  text-decoration: none; border: none; cursor: pointer;
  padding: 9px 15px; border-radius: var(--radius-pill); white-space: nowrap;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--flash-point); background: rgba(255,255,255,0.10); }
.nav-link.current { color: var(--flash-point); }
.spark-nav[data-nav-light="1"] .nav-link, .spark-nav[data-nav-light="1"] .nav-trigger { color: rgba(30,42,74,0.66); }
.spark-nav[data-nav-light="1"] .nav-link:hover, .spark-nav[data-nav-light="1"] .nav-trigger:hover,
.spark-nav[data-nav-light="1"] .nav-trigger[aria-expanded="true"] { color: var(--midnight-blueprint); background: rgba(30,42,74,0.06); }
.spark-nav[data-nav-light="1"] .nav-link.current { color: var(--midnight-blueprint); }
.nav-trigger .chev { display: inline-flex; align-items: center; opacity: 0.7; transition: transform 0.2s; }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Dropdown panel */
.nav-drop { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: 320px; background: var(--surface-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-lg);
  padding: 10px; z-index: 60; animation: sparkpop 0.18s var(--ease-out);
}
.nav-menu.mega { width: 520px; }
.nav-menu .menu-arrow {
  position: absolute; top: -7px; left: 50%; margin-left: -7px; width: 14px; height: 14px;
  background: var(--surface-card); border-left: 1px solid var(--border-soft);
  border-top: 1px solid var(--border-soft); transform: rotate(45deg); border-radius: 3px;
}
@keyframes sparkpop { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.menu-overview {
  display: flex; align-items: center; gap: 13px; padding: 12px; margin-bottom: 6px;
  border-radius: var(--radius-md); text-decoration: none;
  background: var(--surface-tint-gold); color: var(--midnight-blueprint);
}
.menu-overview .mo-title { font-size: 14.5px; font-weight: 700; line-height: 1.2; display: block; }
.menu-overview .mo-desc { font-size: 12.5px; color: var(--gold-700); line-height: 1.3; display: block; }
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.nav-menu.mega .menu-grid { grid-template-columns: 1fr 1fr; }
.menu-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: var(--radius-md); text-decoration: none; color: var(--text-strong);
}
.menu-item:hover { background: var(--warm-circuit); }
.menu-item .mi-label { font-size: 14px; font-weight: 600; line-height: 1.25; display: block; }
.menu-item .mi-desc { font-size: 12px; color: var(--text-muted); line-height: 1.3; display: block; }
.menu-item .nav-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--warm-circuit); color: var(--midnight-blueprint); flex-shrink: 0;
  transition: var(--transition-base);
}
.menu-item:hover .nav-chip { background: var(--flash-point); }
.menu-item .nav-chip svg { height: 18px; width: auto; }
.menu-item .mi-spark { color: var(--voltage-violet); flex-shrink: 0; display: inline-flex; }
.menu-quiz {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px; margin-top: 6px;
  border-radius: var(--radius-md); text-decoration: none;
  background: var(--midnight-blueprint); color: var(--flash-point);
}
.menu-quiz:hover { background: var(--deep-current); }
.menu-quiz .mq-title { font-size: 14.5px; font-weight: 700; line-height: 1.2; display: block; }
.menu-quiz .mq-desc { font-size: 12.5px; color: var(--violet-200); line-height: 1.3; display: block; }
.menu-quiz .mq-body { flex: 1; }
.menu-quiz .quiz-arrow { flex-shrink: 0; display: inline-flex; color: var(--golden-static); transition: transform 0.2s ease-in-out; }
.menu-quiz:hover .quiz-arrow { transform: translateX(3px); }
.menu-quiz .quiz-arrow svg { height: 18px; width: auto; }

/* Nav CTA + burger */
.spark-nav-cta { display: flex; align-items: center; flex-shrink: 0; }
.spark-nav-cta a {
  font-size: var(--text-sm); font-weight: 600; color: var(--midnight-blueprint);
  background: var(--golden-static); text-decoration: none; padding: 11px 22px;
  border-radius: var(--radius-pill); white-space: nowrap;
}
.spark-nav-cta a:hover { filter: brightness(0.96); }
.spark-nav-burger { display: none; border: none; background: transparent; cursor: pointer; color: rgba(255,255,255,0.9); padding: 6px; }
.spark-nav[data-nav-light="1"] .spark-nav-burger { color: var(--midnight-blueprint); }

/* Mobile menu */
.spark-nav-mobile {
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 49;
  background: rgba(30,42,74,0.98);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 16px 22px 32px; overflow-y: auto;
  /* Flex column so the CTA sits at the bottom of the panel */
  display: flex; flex-direction: column;
}
.spark-nav-mobile .m-group { border-bottom: 1px solid rgba(255,255,255,0.10); }
.spark-nav-mobile .m-link, .spark-nav-mobile .m-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--flash-point);
  background: transparent; border: none; text-decoration: none; padding: 15px 4px; cursor: pointer;
}
.spark-nav-mobile .m-trigger .chev { color: var(--gold-300); display: inline-flex; align-items: center; transition: transform 0.2s; }
.spark-nav-mobile .m-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.spark-nav-mobile .m-sub { padding-bottom: 8px; }
.spark-nav-mobile .m-sub a { display: block; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,0.8); text-decoration: none; padding: 9px 4px 9px 16px; }
.spark-nav-mobile .m-sub a.m-featured { font-weight: 700; color: var(--gold-300); }
.spark-nav-mobile .m-cta {
  display: block; text-align: center; font-size: 15.5px; font-weight: 600;
  color: var(--midnight-blueprint); background: var(--golden-static);
  border-radius: var(--radius-pill); padding: 15px 20px; text-decoration: none;
  /* The space above grows, pinning the CTA to the bottom (no fixed/absolute) */
  margin-top: auto; padding-top: 15px; flex-shrink: 0;
}

@media (max-width: 980px) {
  .spark-nav-links, .spark-nav-cta { display: none !important; }
  .spark-nav-burger { display: inline-flex !important; }
  .spark-nav-pill { max-width: 100% !important; border-radius: 0 !important; margin: 0 !important; padding: 14px 20px !important; border: none !important; }
  .has-fixed-nav { padding-top: 76px; }
  /* Until the page scrolls, the bar is transparent so it takes the hero colour */
  .spark-nav.at-top:not(.menu-open) .spark-nav-pill {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
