/* ===== fonts.css ===== */
/* ==========================================================================
   Self-hosted variable typefaces. Generated — do not hand-edit.

   One file per family covers the whole 400-700 weight range. font-display:
   swap keeps text painted while the woff2 loads, so the hero LCP element
   never blocks on a font.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin-ext.woff2?v=msdfrdip") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2?v=msdfrdip") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2?v=msdfrdip") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2?v=msdfrdip") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ===== tokens.css ===== */
/* ==========================================================================
   AURORA — design tokens
   Part 3 of the brief. Every colour, space, radius and duration used anywhere
   in the build resolves to a token declared here. Nothing downstream invents
   a hex value.
   ========================================================================== */

:root {
  /* --- Palette (brief Part 3) ------------------------------------------- */
  --bg-base: #0a0e1a;
  --bg-raised: #101b33;

  --aurora-green: #2bb673;
  --aurora-green-lit: #6fe3a5;

  --arctic-blue: #1f6feb;
  --arctic-blue-lit: #4cc9f0;

  --aurora-violet: #7b5cff;

  --ice-white: #eef3f9;
  --signal-amber: #ffb454;

  /* --- Brand mark -------------------------------------------------------
     The teal of the Nordic Funder bolt. Matched by eye from the supplied
     logo artwork — replace with the exact hex from the brand guide if it
     differs. It is referenced in exactly one place (the .brand__mark rule),
     so correcting it here updates the header, the footer and the favicon.
     The previous mark was #f7ce45 (yellow); the geometry is unchanged. */
  --brand-teal: #2fd6b4;

  /* --- Derived surfaces -------------------------------------------------
     Glassmorphism on dark needs translucent fills, not new hues, so these
     are all alpha derivations of the palette above. */
  --surface-1: rgba(238, 243, 249, 0.04);
  --surface-2: rgba(238, 243, 249, 0.07);
  --surface-3: rgba(238, 243, 249, 0.11);
  --surface-solid: #0d1526;

  --hairline: rgba(238, 243, 249, 0.12);
  --hairline-strong: rgba(238, 243, 249, 0.2);

  /* --- Text ------------------------------------------------------------- */
  --text: var(--ice-white);
  --text-muted: rgba(238, 243, 249, 0.72);
  --text-dim: rgba(238, 243, 249, 0.54);
  --text-on-accent: #04121f;

  /* --- Gradients --------------------------------------------------------
     Permitted ONLY on: hero, primary CTAs, section dividers, pre-footer band.
     Tables and rules content stay flat for legibility (brief Part 3). */
  --grad-cta: linear-gradient(135deg, var(--arctic-blue) 0%, var(--aurora-green) 100%);
  --grad-cta-lit: linear-gradient(135deg, var(--arctic-blue-lit) 0%, var(--aurora-green-lit) 100%);
  --grad-aurora: linear-gradient(
    120deg,
    var(--arctic-blue) 0%,
    var(--aurora-green) 45%,
    var(--aurora-violet) 100%
  );
  --grad-divider: linear-gradient(
    90deg,
    transparent 0%,
    var(--arctic-blue) 20%,
    var(--aurora-green) 50%,
    var(--aurora-violet) 80%,
    transparent 100%
  );
  --grad-border: linear-gradient(
    135deg,
    rgba(76, 201, 240, 0.5) 0%,
    rgba(111, 227, 165, 0.28) 50%,
    rgba(123, 92, 255, 0.5) 100%
  );

  /* --- Glow ------------------------------------------------------------- */
  --glow-cta: 0 8px 28px -8px rgba(31, 111, 235, 0.6);
  --glow-cta-hover: 0 10px 34px -6px rgba(43, 182, 115, 0.55);
  --glow-selected: 0 0 0 1px rgba(111, 227, 165, 0.55), 0 12px 40px -12px rgba(43, 182, 115, 0.45);

  /* --- Type -------------------------------------------------------------
     Geometric grotesk for headings, Inter for body. Both self-hosted as
     woff2 (see fonts.css) so no third-party request sits on the critical
     path and the page still renders offline. */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;

  /* Fluid scale. Body never drops below 16px (Part 4, item 3). */
  --step--1: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.36vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.26rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.65rem + 2.2vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem);

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.6;
  --leading-loose: 1.75;

  --tracking-tight: -0.022em;
  --tracking-wide: 0.02em;
  --tracking-caps: 0.09em;

  /* --- Space (4px base) -------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* --- Radius ----------------------------------------------------------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* --- Layout ----------------------------------------------------------- */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1400px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

  --header-h: 72px; /* S1 AC: header <= 72px */
  --mobile-cta-h: 68px;

  /* --- Motion ----------------------------------------------------------
     200-300ms ease-out micro-interactions only (brief Part 3). */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 220ms;
  --dur-slow: 300ms;
  --aurora-loop: 11s; /* within the 8-12s band the brief specifies */

  /* --- Depth ------------------------------------------------------------ */
  --z-sticky: 60;
  --z-header: 80;
  --z-dropdown: 90;
  --z-mobile-bar: 95;
  --z-drawer: 100;
}

/* Light sections invert the text tokens rather than redefining components. */
.on-light {
  --text: #0a0e1a;
  --text-muted: rgba(10, 14, 26, 0.72);
  --text-dim: rgba(10, 14, 26, 0.55);
  --hairline: rgba(10, 14, 26, 0.12);
  --hairline-strong: rgba(10, 14, 26, 0.2);
  --surface-1: rgba(10, 14, 26, 0.03);
  --surface-2: rgba(10, 14, 26, 0.06);
  --surface-3: rgba(10, 14, 26, 0.09);
}

/* Honour the OS setting. Every animation in the build is opt-in on this. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur: 0.01ms;
    --dur-slow: 0.01ms;
  }
}


/* ===== base.css ===== */
/* ==========================================================================
   AURORA — reset, typography and layout primitives
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sticky header must not cover an anchored heading. */
  scroll-padding-top: calc(var(--header-h) + var(--space-5));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0); /* >= 16px, Part 4 item 3 */
  line-height: var(--leading-normal);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Room for the mobile sticky CTA bar so it never covers the footer. */
@media (max-width: 860px) {
  body {
    padding-bottom: var(--mobile-cta-h);
  }
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--arctic-blue-lit);
  text-decoration-color: color-mix(in srgb, var(--arctic-blue-lit) 40%, transparent);
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--aurora-green-lit);
}

img,
svg,
video,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

/* Visible, high-contrast focus for keyboard users everywhere. */
:focus-visible {
  outline: 2px solid var(--arctic-blue-lit);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: color-mix(in srgb, var(--aurora-green) 35%, transparent);
  color: var(--ice-white);
}

/* --- Numerals -------------------------------------------------------------
   Part 3: tabular-nums on ALL prices so columns of figures line up. */
.tnum,
.price,
.stat__value,
table td,
table th {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}

.section--raised {
  background: var(--bg-raised);
}

/* Gradient hairline between sections — a permitted gradient surface. */
.section-divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--grad-divider);
  opacity: 0.55;
}

.stack > * + * {
  margin-top: var(--flow, var(--space-4));
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Exactly three across on desktop, whatever the container width.
   auto-fit would take a 6-card set to 4+2 on a wide viewport; this keeps it to
   two even rows of three. */
.grid--fixed-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--fixed-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .grid--fixed-3 { grid-template-columns: 1fr; }
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* --- Type helpers --------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--aurora-green-lit);
  margin: 0;
}

.lede {
  font-size: var(--step-1);
  line-height: var(--leading-snug);
  color: var(--text-muted);
  max-width: 62ch;
}

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

.section-head {
  max-width: 68ch;
  margin-bottom: var(--space-7);
}

.section-head > * + * {
  margin-top: var(--space-3);
}

/* Keep constrained children (lede paragraphs, etc.) optically centered too. */
.section-head > * {
  margin-inline: auto;
}

/* Section headings are centered site-wide. The hero h1 stays left-aligned. */
.section-head,
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* Hero headline keeps its original left alignment. */
.hero__h1,
.hero .hero__h1 {
  text-align: left;
}

/* Inner-page headers (h1 blocks that are not the hero) are centered too. */
main .container:has(> h1:not(.hero__h1)),
main .container--wide:has(> h1:not(.hero__h1)),
main .container--narrow:has(> h1:not(.hero__h1)) {
  text-align: center;
}

main .container:has(> h1:not(.hero__h1)) > * {
  margin-inline: auto;
}

main .container:has(> h1:not(.hero__h1)) > .crumbs {
  justify-content: center;
}

/* --- Accessibility -------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--space-4);
  transform: translateY(-120%);
  z-index: calc(var(--z-drawer) + 10);
  background: var(--bg-raised);
  color: var(--ice-white);
  border: 1px solid var(--hairline-strong);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* --- Scroll-in reveal ----------------------------------------------------
   Progressive: content is visible by default and only animates when JS adds
   [data-reveal], so nothing is hidden if the script never runs. */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* ===== components.css ===== */
/* ==========================================================================
   AURORA — components
   The brief's "build once, reuse" list: button, price card, stat counter,
   step card, accordion, table, badge, testimonial card, blog card, chip.
   The old site's three competing card styles are replaced by ONE .card.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Brand lockup — NORDIC with the bolt mark as the O, FUNDER beneath
   `--brand-size` scales the whole thing; everything else is derived from it.
   -------------------------------------------------------------------------- */
.brand {
  --brand-size: 1.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.14em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  user-select: none;
}

.brand__word {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--brand-size);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  /* Optical: the mark is a perfect circle, so it needs slightly less air than
     the flat-sided letters around it. */
  gap: 0.012em;
}

.brand__mark {
  /* Matched to the cap height of the surrounding letters. */
  width: 0.9em;
  height: 0.9em;
  flex: none;
  fill: var(--brand-teal);
  margin-inline: 0.02em;
  /* Nudge onto the optical baseline of the caps. */
  transform: translateY(0.012em);
}

/* FUNDER stretches to exactly the width of NORDIC above it, the way the artwork
   sets it. space-between distributes the tracking, so it stays correct at any
   --brand-size and whichever font ends up loading. */
.brand__sub {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(var(--brand-size) * 0.355);
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
}

.brand__sub i {
  font-style: normal;
}

/* Header and footer just set the scale. */
.header__logo .brand {
  --brand-size: 1.6rem;
}

.footer__brand .brand {
  --brand-size: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 560px) {
  .header__logo .brand {
    --brand-size: 1.35rem;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   Exactly one gradient button per viewport (Part 3). Everything secondary is
   a ghost. Min 44px tall to satisfy the tap-target requirement.
   -------------------------------------------------------------------------- */
.btn {
  --btn-py: 0.75rem;
  --btn-px: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

/* The one gradient CTA. */
.btn--primary {
  background-image: var(--grad-cta);
  color: var(--text-on-accent);
  box-shadow: var(--glow-cta);
}

.btn--primary:hover {
  background-image: var(--grad-cta-lit);
  box-shadow: var(--glow-cta-hover);
  color: var(--text-on-accent);
}

.btn--ghost {
  background: var(--surface-1);
  border-color: var(--hairline-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-3);
  border-color: var(--arctic-blue-lit);
  color: var(--text);
}

.btn--quiet {
  background: transparent;
  color: var(--text-muted);
  padding-inline: var(--space-3);
}

.btn--quiet:hover {
  color: var(--text);
}

.btn--lg {
  --btn-py: 0.95rem;
  --btn-px: 1.85rem;
  font-size: var(--step-1);
  min-height: 52px;
}

.btn--sm {
  --btn-py: 0.5rem;
  --btn-px: 1rem;
  font-size: var(--step--1);
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Card — glassmorphism on dark, 1px gradient border
   The gradient border is painted with a mask so it stays 1px at any radius.
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface-1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.card:hover::before {
  opacity: 0.9;
}

.card--flat {
  background: var(--surface-solid);
  backdrop-filter: none;
}

.card--interactive:hover {
  transform: translateY(-3px);
}

/* Glow is reserved for the selected configurator card (Part 3). */
.card--selected {
  box-shadow: var(--glow-selected);
  background: var(--surface-2);
}

.card--selected::before {
  opacity: 1;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  margin: 0;
}

.card__body {
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   Badge — signal amber is ONLY for "Most popular" / "New"
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--hairline);
}

.badge--featured {
  background: color-mix(in srgb, var(--signal-amber) 18%, transparent);
  border-color: color-mix(in srgb, var(--signal-amber) 45%, transparent);
  color: var(--signal-amber);
}

.badge--positive {
  background: color-mix(in srgb, var(--aurora-green) 16%, transparent);
  border-color: color-mix(in srgb, var(--aurora-green) 42%, transparent);
  color: var(--aurora-green-lit);
}

/* --------------------------------------------------------------------------
   Chip — S3 benefit chips. Horizontal scroll on mobile, never > 2 rows.
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text);
  min-height: 44px;
}

.chip svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--aurora-green-lit);
}

@media (max-width: 720px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip {
    scroll-snap-align: start;
    flex: none;
  }
}

/* --------------------------------------------------------------------------
   Stat counter — S4
   -------------------------------------------------------------------------- */
.stat {
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Price card — the configurator output and the program-page tiles
   -------------------------------------------------------------------------- */
.price-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.price-card__balance {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
}

.price-card__meta {
  font-size: var(--step--1);
  color: var(--text-dim);
  margin-top: var(--space-1);
}

.price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.price__amount {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
}

.price__unit {
  font-size: var(--step--1);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.price__was {
  font-size: var(--step--1);
  color: var(--text-dim);
  text-decoration: line-through;
}

/* Flat, legible rule rows — deliberately no gradient (Part 3). */
.rules {
  list-style: none;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rules__row,
.rules li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-solid);
  font-size: var(--step--1);
}

.rules dt {
  color: var(--text-muted);
  flex: 0 1 auto;
}

.rules dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex: 1 1 auto;
}

/* --------------------------------------------------------------------------
   Trustpilot — live embed when configured, honest linked summary until then
   -------------------------------------------------------------------------- */
.trustbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-muted);
}

.trustbox--fallback {
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  min-height: 44px;
  transition: border-color var(--dur) var(--ease);
}

.trustbox--fallback:hover {
  border-color: color-mix(in srgb, var(--aurora-green) 55%, transparent);
  color: var(--text);
}

.trustbox__stars {
  display: inline-flex;
  align-items: center;
}

.trustbox__text {
  font-size: var(--step--1);
  white-space: nowrap;
}

.trustbox__text strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Step card — S7 how it works
   -------------------------------------------------------------------------- */
.step {
  position: relative;
  padding-top: var(--space-6);
}

.step__num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.9;
}

.step__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-4);
  color: var(--aurora-green-lit);
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
}

.step__body {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   Accordion — S13 FAQ. <details> so it works with zero JS.
   -------------------------------------------------------------------------- */
.accordion {
  display: grid;
  gap: var(--space-3);
}

.acc {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.acc[open] {
  border-color: color-mix(in srgb, var(--arctic-blue-lit) 40%, transparent);
  background: var(--surface-2);
}

.acc__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  min-height: 56px;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.acc__q::-webkit-details-marker {
  display: none;
}

.acc__q::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
  transition: transform var(--dur) var(--ease);
}

.acc[open] .acc__q::after {
  transform: rotate(-135deg) translateY(-2px);
}

.acc__a {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted);
}

.acc__a > * + * {
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   Table — flat for legibility, sticky first column, swipeable under 768px
   -------------------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-solid);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

table.data th,
table.data td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

table.data thead th {
  background: var(--bg-raised);
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Sticky first column so rule names stay visible while scrolling. */
table.data th[scope="row"],
table.data tbody td:first-child {
  position: sticky;
  left: 0;
  background: var(--surface-solid);
  z-index: 1;
  font-weight: 600;
  color: var(--text-muted);
}

table.data thead th:first-child {
  z-index: 3;
}

table.data tbody tr:last-child th,
table.data tbody tr:last-child td {
  border-bottom: 0;
}

table.data tr:hover td {
  background: var(--surface-1);
}

/* --------------------------------------------------------------------------
   Comparison: table on desktop, swipeable cards under 768px
   S6 AC forbids a horizontal-scroll table on mobile. Both views come from the
   same row data (see comparisonTable in lib/components.js).
   -------------------------------------------------------------------------- */
/* Collapsible panel + the prompt shown while everything is closed. */
.compare__panel {
  margin-top: var(--space-5);
}

.compare__prompt {
  margin-top: var(--space-4);
  font-size: var(--step--1);
  color: var(--text-dim);
}

/* The open button reads as pressed rather than merely hovered. */
.segmented__btn[aria-expanded="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

.compare__cards,
.compare__hint {
  display: none;
}

@media (max-width: 768px) {
  .compare__table {
    display: none;
  }

  .compare__cards {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Bleed to the viewport edges so a card can sit flush while scrolling. */
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) var(--space-3);
    scrollbar-width: none;
  }

  .compare__cards::-webkit-scrollbar {
    display: none;
  }

  .compare__card {
    flex: 0 0 min(85%, 320px);
    scroll-snap-align: center;
  }

  .compare__hint {
    display: block;
    margin-top: var(--space-2);
    font-size: 0.78rem;
    text-align: center;
  }
}

.table__group th {
  background: var(--surface-2);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: var(--tracking-caps);
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Blog card — S12
   -------------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-card__tag {
  align-self: flex-start;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: var(--leading-snug);
  margin-top: var(--space-3);
}

.post-card:hover .post-card__title {
  color: var(--aurora-green-lit);
}

.post-card__excerpt {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--step--1);
}

.post-card__foot {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Testimonial card
   The brief's #10 row wants name, country, rewards earned and trading style.
   Rendered only from client-supplied figures — see components.js.
   -------------------------------------------------------------------------- */
.quote__text {
  font-size: var(--step-1);
  line-height: var(--leading-snug);
}

.quote__foot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.quote__who {
  font-weight: 600;
}

.quote__meta {
  font-size: var(--step--1);
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Segmented control — replaces tabs on mobile (Part 4 item 2)
   -------------------------------------------------------------------------- */
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar { display: none; }

.segmented__btn {
  flex: none;
  /* 44px so the control satisfies the tap-target minimum (Part 4 item 3). */
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.segmented__btn:hover {
  color: var(--text);
}

.segmented__btn[aria-selected="true"],
.segmented__btn[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

/* Full-width segmented control on narrow screens. */
@media (max-width: 620px) {
  .segmented {
    display: flex;
    width: 100%;
  }
  .segmented__btn {
    flex: 1 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Logo strip — S11 platforms & instruments
   -------------------------------------------------------------------------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5) var(--space-7);
}

.logo-strip__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.logo-strip__item:hover {
  color: var(--text);
}

.logo-strip__item svg {
  width: 22px;
  height: 22px;
  color: var(--arctic-blue-lit);
}

/* --------------------------------------------------------------------------
   Notice — used for the flagged data/legal caveats
   -------------------------------------------------------------------------- */
.notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--signal-amber) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--signal-amber) 32%, transparent);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.notice svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--signal-amber);
}


/* ===== sections.css ===== */
/* ==========================================================================
   AURORA — page furniture and section layouts
   Header, hero (incl. the aurora mesh), configurator, Nordic ornaments,
   pre-footer band, footer, mobile CTA bar.
   ========================================================================== */

/* --------------------------------------------------------------------------
   S1. Sticky header — <= 72px, backdrop blur
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg-base) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--hairline);
  background: color-mix(in srgb, var(--bg-base) 92%, transparent);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

/* The lockup sizes itself from --brand-size (see .brand in components.css).
   Deliberately no `svg { height }` rule here — it would override the bolt
   mark's em-based sizing and break its alignment with the letters. */

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: var(--space-4);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-inline-start: auto;
}

.navlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.navlink:hover,
.navlink[aria-current="page"] {
  color: var(--text);
  background: var(--surface-1);
}

/* --- Programs dropdown (grouped mega-menu, brief row 1) ------------------- */
.navgroup {
  position: relative;
}

.navgroup__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: var(--z-dropdown);
  min-width: 320px;
  padding: var(--space-3);
  display: grid;
  gap: 2px;
  background: var(--surface-solid);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur);
}

.navgroup:hover .navgroup__panel,
.navgroup:focus-within .navgroup__panel,
.navgroup__panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.navgroup__item {
  display: grid;
  gap: 2px;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: background-color var(--dur) var(--ease);
}

.navgroup__item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.navgroup__item strong {
  font-family: var(--font-display);
  font-size: var(--step-0);
}

.navgroup__item span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Burger + mobile drawer ---------------------------------------------- */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  color: var(--text);
}

.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-drawer);
  background: var(--bg-base);
  padding: var(--space-5) var(--gutter) var(--space-9);
  overflow-y: auto;
  display: none;
}

.drawer[data-open="true"] {
  display: block;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.drawer__sub {
  padding-left: var(--space-4);
  font-size: var(--step-0);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
  min-height: 48px;
}

@media (max-width: 980px) {
  .header__nav,
  .header__actions .btn--primary,
  .header__actions .navlink {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .header__actions {
    gap: var(--space-2);
  }
}

/* --- Persistent mobile CTA bar (Part 4 item 2) --------------------------- */
.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-mobile-bar);
  display: none;
  align-items: center;
  gap: var(--space-3);
  height: var(--mobile-cta-h);
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg-raised) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
}

.mobile-cta__meta {
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--text-muted);
}

.mobile-cta__meta strong {
  display: block;
  color: var(--text);
  font-size: var(--step--1);
}

.mobile-cta .btn {
  margin-inline-start: auto;
}

@media (max-width: 860px) {
  .mobile-cta {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   S2. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem) var(--section-y);
  background: var(--bg-base);
  isolation: isolate;
}

/* The aurora mesh: three drifting radial blobs. CSS only, no video, no canvas.
   Sits behind content and is switched off under prefers-reduced-motion. */
.aurora {
  position: absolute;
  inset: -25% -10% auto -10%;
  height: 150%;
  z-index: -1;
  pointer-events: none;
  filter: blur(70px) saturate(135%);
  opacity: 0.5;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora__blob--blue {
  width: 58vw;
  height: 42vw;
  top: 6%;
  left: -6%;
  background: radial-gradient(circle at 50% 50%, var(--arctic-blue) 0%, transparent 68%);
  animation: aurora-drift-a var(--aurora-loop) var(--ease) infinite alternate;
}

.aurora__blob--green {
  width: 52vw;
  height: 38vw;
  top: 24%;
  left: 26%;
  background: radial-gradient(circle at 50% 50%, var(--aurora-green) 0%, transparent 68%);
  animation: aurora-drift-b calc(var(--aurora-loop) * 1.15) var(--ease) infinite alternate;
}

.aurora__blob--violet {
  width: 46vw;
  height: 40vw;
  top: 2%;
  right: -4%;
  background: radial-gradient(circle at 50% 50%, var(--aurora-violet) 0%, transparent 68%);
  animation: aurora-drift-c calc(var(--aurora-loop) * 0.9) var(--ease) infinite alternate;
}

@keyframes aurora-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 5%, 0) scale(1.12); }
}

@keyframes aurora-drift-b {
  from { transform: translate3d(0, 3%, 0) scale(1.05); }
  to   { transform: translate3d(-7%, -5%, 0) scale(0.95); }
}

@keyframes aurora-drift-c {
  from { transform: translate3d(0, 0, 0) scale(0.98); }
  to   { transform: translate3d(-5%, 7%, 0) scale(1.14); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora__blob {
    animation: none !important;
  }
  .aurora {
    opacity: 0.38;
  }
}

.hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
}

@media (max-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

.hero__copy > * + * {
  margin-top: var(--space-5);
}

.hero__h1 {
  font-size: var(--step-5);
  max-width: 20ch;
}

/* The $500,000 figure is the page's headline promise — lit, not flat. */
.hero__h1 .lit {
  background: var(--grad-cta-lit);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 46ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-2);
}

/* --- Hero visual: the Viking scene with the dashboard framed in front ----- */
.hero__visual {
  position: relative;
}

.hero__scene {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, #0c1424 0%, var(--bg-raised) 100%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.hero__scene svg,
.hero__scene img {
  width: 100%;
  height: auto;
  display: block;
}

/* The device frame overlaps the lower portion of the illustration. */
.device {
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: 62%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #05070d;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.95);
}

.device__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  background: #0b1120;
  border-bottom: 1px solid var(--hairline);
}

.device__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hairline-strong);
}

.device__screen {
  display: block;
  width: 100%;
}

@media (max-width: 560px) {
  .device {
    position: static;
    width: 100%;
    margin-top: var(--space-4);
    right: auto;
    bottom: auto;
  }
}

/* --------------------------------------------------------------------------
   Nordic ornaments
   Runic/knotwork accents used as section furniture. Purely decorative, so
   every instance is aria-hidden in the markup.
   -------------------------------------------------------------------------- */
.ornament {
  display: block;
  margin-inline: auto;
  color: var(--aurora-green-lit);
  opacity: 0.5;
}

.ornament--rule {
  width: min(320px, 60%);
  height: auto;
}

.rune-rule {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-dim);
}

.rune-rule::before,
.rune-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--grad-divider);
  opacity: 0.6;
}

.rune-rule svg {
  width: 26px;
  height: 26px;
  color: var(--aurora-green-lit);
  opacity: 0.85;
}

/* Fjord silhouette that caps light/raised sections. */
.fjord {
  display: block;
  width: 100%;
  height: auto;
  color: var(--bg-base);
}

.fjord--flip {
  transform: scaleY(-1);
}

/* --------------------------------------------------------------------------
   S5. Configurator
   -------------------------------------------------------------------------- */
.config {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: start;
}

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

.config__steps {
  display: grid;
  gap: var(--space-6);
}

.config__step > * + * {
  margin-top: var(--space-4);
}

.config__label {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
}

.config__label span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Asset-class picker */
.config__assets {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.asset-btn {
  display: grid;
  gap: 2px;
  padding: var(--space-4);
  text-align: left;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  min-height: 72px;
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.asset-btn:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.asset-btn strong {
  font-family: var(--font-display);
  font-size: var(--step-0);
}

.asset-btn span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.asset-btn[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--aurora-green-lit) 60%, transparent);
  background: var(--surface-3);
  box-shadow: var(--glow-selected);
}

/* Size slider — thumb sized for thumbs (Part 4 item 2) */
.config__slider {
  display: grid;
  gap: var(--space-3);
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
}

.range::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--grad-cta);
  border: 2px solid var(--bg-base);
  box-shadow: var(--glow-cta);
}

.range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--arctic-blue);
  border: 2px solid var(--bg-base);
}

.range__ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* Add-on toggles */
.toggles {
  display: grid;
  gap: var(--space-2);
}

.toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}

.toggle:hover {
  border-color: var(--hairline-strong);
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle__box {
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  position: relative;
  transition: background-color var(--dur) var(--ease);
}

.toggle__box::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-dim);
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.toggle input:checked + .toggle__box {
  background: color-mix(in srgb, var(--aurora-green) 55%, transparent);
}

.toggle input:checked + .toggle__box::after {
  transform: translateX(18px);
  background: var(--ice-white);
}

.toggle input:focus-visible + .toggle__box {
  outline: 2px solid var(--arctic-blue-lit);
  outline-offset: 3px;
}

.toggle__text {
  display: grid;
  gap: 1px;
}

.toggle__text strong {
  font-size: var(--step--1);
  font-weight: 600;
}

.toggle__text span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* The single dynamic output card */
.config__out {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
}

@media (max-width: 1000px) {
  .config__out {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   S14. Pre-footer CTA band — a permitted gradient surface
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--grad-aurora);
  color: #04121f;
  text-align: center;
  padding-block: var(--section-y);
  isolation: isolate;
}

/* Darkened scrim keeps text contrast well clear of AA on the gradient. */
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 10, 22, 0.34), rgba(4, 10, 22, 0.6));
}

.cta-band__inner {
  position: relative;
  color: var(--ice-white);
}

.cta-band h2 {
  font-size: var(--step-4);
}

.cta-band__bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  list-style: none;
  margin-block: var(--space-5);
  font-weight: 600;
}

.cta-band__bullets li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.cta-band .btn--primary {
  background-image: linear-gradient(90deg, var(--aurora-green) 0%, var(--arctic-blue) 100%);
  background-color: transparent;
  color: var(--ice-white);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.cta-band .btn--primary:hover {
  background-image: linear-gradient(90deg, var(--aurora-green-lit) 0%, var(--arctic-blue-lit) 100%);
  color: var(--ice-white);
}

/* --------------------------------------------------------------------------
   S15. Trust footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--hairline);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--step--1);
}

.footer__top {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.footer__brand > * + * {
  margin-top: var(--space-4);
}

/* Footer lockup scale is set on .footer__brand .brand in components.css. */

.footer__col h3 {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-4);
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.footer__col a {
  color: var(--text-muted);
  text-decoration: none;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.footer__col a:hover {
  color: var(--text);
}

.newsletter {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1 1 190px;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--text);
}

.newsletter input::placeholder {
  color: var(--text-dim);
}

.newsletter input:focus-visible {
  border-color: var(--arctic-blue-lit);
}

.social {
  display: flex;
  gap: var(--space-2);
  list-style: none;
}

.social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.social a:hover {
  color: var(--text);
  border-color: var(--arctic-blue-lit);
}

.social svg {
  width: 18px;
  height: 18px;
}

.lang {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  align-items: center;
}

.lang a,
.lang span {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
}

.lang [aria-current="true"] {
  color: var(--text);
  border-color: var(--hairline-strong);
  background: var(--surface-2);
}

.lang span[data-phase="2"] {
  opacity: 0.55;
  cursor: default;
}

/* Forest Park FX disclosure — readable type, not 10px grey mush. */
.footer__legal {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: var(--space-4);
}

.footer__disclosure {
  max-width: 90ch;
  font-size: 0.85rem;
  line-height: var(--leading-loose);
  color: var(--text-muted);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Article / prose (blog posts and legal pages)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 72ch;
  font-size: var(--step-0);
  line-height: var(--leading-loose);
  color: var(--text-muted);
}

.prose > * + * {
  margin-top: var(--space-5);
}

.prose h2 {
  font-size: var(--step-3);
  color: var(--text);
  margin-top: var(--space-8);
}

.prose h3 {
  font-size: var(--step-1);
  color: var(--text);
  margin-top: var(--space-6);
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  display: grid;
  gap: var(--space-2);
}

.prose li::marker {
  color: var(--aurora-green-lit);
}

.prose strong {
  color: var(--text);
}

.prose blockquote {
  margin: 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--aurora-green);
  color: var(--text);
  font-size: var(--step-1);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.prose .table-wrap {
  margin-top: var(--space-6);
}

/* Post meta */
.post-head {
  display: grid;
  gap: var(--space-4);
  max-width: 72ch;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--step--1);
  color: var(--text-dim);
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: var(--space-5);
}

.crumbs li + li::before {
  content: "/";
  margin-right: var(--space-2);
  opacity: 0.5;
}

.crumbs a {
  color: var(--text-dim);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}
