/* ═══ Fonts (next/font variables, same names) ═══════════════════════════════ */
:root {
  --font-unbounded: 'Unbounded';
  --font-schibsted: 'Schibsted Grotesk';
}

/* ═══ Tokens (app/theme.css) ═════════════════════════════════════════════════ */
/* Project theme: every colour of the site lives here; CSS modules read these variables only.
   Dark-only site. The ribbon — amber into magenta into indigo, the sweep of the logo — is the
   one decorative device; it appears in the hero, on the top card, under the header and above
   the footer, and nowhere else. */
:root {
  color-scheme: dark;

  /* Base */
  --c-night: #120a26;
  --c-night-deep: #0c061b;
  --c-surface: #1a1034;
  --c-surface-raised: #23163f;
  --c-surface-sunk: #160d2c;
  --c-line: #2f2250;
  --c-line-strong: #46356f;

  /* Text */
  --c-text: #f7f3ff;
  --c-text-strong: #ffffff;
  --c-text-muted: #c0b5dc;
  --c-text-faint: #9184b3;
  --c-text-on-warm: #1c0b02;

  /* Palette (brief) */
  --c-gold: #ffc857;
  --c-amber: #ff9f1c;
  --c-ember: #e85d04;
  --c-magenta: #f72585;
  --c-orchid: #c918d8;
  --c-violet: #6a0dad;
  --c-indigo: #3a0ca3;
  --c-lilac: #f7f3ff;

  /* Functional */
  --c-focus: #ffc857;
  --c-logo-plate: #000000;
  --c-mark-plate: #f7f3ff;
  --c-overlay: #0c061be6;
  --c-glow-gold: #ff9f1c8c;
  --c-glow-gold-soft: #ffc85740;
  --c-glow-magenta: #f7258566;
  --c-glow-indigo: #3a0ca366;
  --c-shimmer: #ffffff14;

  --grad-ribbon: linear-gradient(
    100deg,
    var(--c-gold) 0%,
    var(--c-amber) 18%,
    var(--c-ember) 34%,
    var(--c-magenta) 54%,
    var(--c-orchid) 70%,
    var(--c-violet) 85%,
    var(--c-indigo) 100%
  );
  --grad-warm: linear-gradient(180deg, var(--c-gold) 0%, var(--c-amber) 100%);
  --grad-cool: linear-gradient(180deg, var(--c-magenta) 0%, var(--c-orchid) 100%);

  /* Type */
  --font-display: var(--font-unbounded), 'Arial Black', sans-serif;
  --font-body: var(--font-schibsted), 'Helvetica Neue', Arial, sans-serif;

  /* Layout: one horizontal gutter for the whole site, never overridden by media queries. */
  --gutter: 1.25rem;
  --content-max: 70rem;
  --text-max: 42rem;
  --header-height: 4.25rem;

  --radius-card: 18px;
  --radius-control: 10px;
  --radius-small: 4px;
}

/* ═══ Reset (app/globals.css) ════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

button {
  cursor: pointer;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--c-night);
  color: var(--c-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: var(--radius-small);
}

::selection {
  background: var(--c-magenta);
  color: var(--c-text-strong);
}

/* Every anchor id of the home page (`SECTION_IDS` in app/content.ts). */
#comparativa,
#como-comparamos,
#antes-de-registrarte,
#preguntas-frecuentes,
#nota-editorial {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Overlays toggled with the `hidden` attribute set `display: flex` themselves. */
[hidden] {
  display: none !important;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══ Site backdrop (SiteBackground) ═════════════════════════════════════════ */
.site-backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 44rem;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 28rem at 85% -6rem, var(--c-glow-indigo), transparent 70%),
    radial-gradient(40rem 22rem at 8% 2rem, var(--c-glow-magenta), transparent 72%);
  opacity: 0.55;
}

/* ═══ Header ═════════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-night-deep);
}

/* Accent line: the ribbon, two pixels tall. */
.header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--grad-ribbon);
}

.header-inner {
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
}

.header-home-link {
  display: inline-flex;
  align-items: center;
}

.header-logo {
  width: auto;
  height: 2.75rem;
}

@media (max-width: 640px) {
  .header-logo {
    height: 2.25rem;
  }
}

/* ═══ Home main (app/page.module.css) ═══════════════════════════════════════ */
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ═══ Hero ═══════════════════════════════════════════════════════════════════ */
/* No min-height / max-height: the hero is as tall as its content, so the list rises. */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--gutter);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 1.2rem + 2.9vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--c-text-strong);
}

.hero-line {
  display: inline;
}

/* The accent is a whole line set in the ribbon — the same sweep as the logo. */
.hero-accent {
  display: block;
  font-weight: 800;
  background: var(--grad-ribbon);
  background-size: 140% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.5rem;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

.hero-trust svg {
  color: var(--c-gold);
  flex-shrink: 0;
}

/* ── Ribbon ─────────────────────────────────────────── */
.hero-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(52%, 40rem);
  z-index: 0;
  pointer-events: none;
}

.hero-stop-gold {
  stop-color: var(--c-gold);
}

.hero-stop-amber {
  stop-color: var(--c-amber);
}

.hero-stop-magenta {
  stop-color: var(--c-magenta);
}

.hero-stop-orchid {
  stop-color: var(--c-orchid);
}

.hero-stop-indigo {
  stop-color: var(--c-indigo);
}

.hero-ribbon-wide,
.hero-ribbon-thin {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 0;
  animation: ribbon-draw 1.6s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.hero-ribbon-wide {
  stroke-width: 64;
}

.hero-ribbon-thin {
  stroke-width: 14;
  opacity: 0.55;
  animation-delay: 0.25s;
}

/* The page's single orchestrated moment: the ribbon draws itself once on load. */
@keyframes ribbon-draw {
  from {
    stroke-dashoffset: 900;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 760px) {
  .hero-ribbon {
    width: 78%;
    height: 70%;
    opacity: 0.32;
  }
}

/* ═══ Age notice ═════════════════════════════════════════════════════════════ */
.age-notice-wrap {
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.age-notice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--c-text-muted);
}

.age-notice-marker {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.125rem 0.375rem;
  border: 1.5px solid var(--c-gold);
  border-radius: var(--radius-small);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--c-gold);
}

.age-notice-text {
  min-width: 0;
}

/* ═══ Offers list ════════════════════════════════════════════════════════════ */
.promo-section {
  padding: 1.75rem 0 3rem;
}

.promo-container {
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.promo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.promo-item {
  min-width: 0;
}

.promo-section-end {
  width: 100%;
  height: 1px;
}

/* ═══ Offer card ═════════════════════════════════════════════════════════════ */
/* The article carries the frame and the background; every child of the grid below has its
   own grid-area, the T&C line included, so nothing falls into a stray row or column. */
.offer-card {
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}

/* Rank 1: the ribbon as a moving frame, a warm glow under the card. */
.offer-top1 {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--c-surface-raised), var(--c-surface-raised)) padding-box,
    var(--grad-ribbon) border-box;
  background-size: 100% 100%, 240% 100%;
  box-shadow: 0 22px 60px -30px var(--c-glow-gold);
  animation: frame-sweep 4.5s ease-in-out infinite alternate;
}

/* Ranks 2 and 3: identical, quieter, still. */
.offer-podium {
  border-color: var(--c-line-strong);
  background: var(--c-surface-raised);
}

.offer-rest {
  background: var(--c-surface);
}

@keyframes frame-sweep {
  from {
    background-position: 0 0, 0% 50%;
  }
  to {
    background-position: 0 0, 100% 50%;
  }
}

/* ── Rank badge (a tab on the top edge, not a pill) ─── */
.offer-badge {
  position: absolute;
  top: -0.8rem;
  left: 1.25rem;
  z-index: 1;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-small);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.offer-top1 .offer-badge {
  background: var(--grad-warm);
  color: var(--c-text-on-warm);
  animation: badge-glow 1.6s ease-in-out infinite alternate;
}

.offer-podium .offer-badge {
  background: var(--c-night);
  border: 1px solid var(--c-orchid);
  color: var(--c-text);
}

@keyframes badge-glow {
  from {
    box-shadow: 0 0 0 0 var(--c-glow-gold-soft);
  }
  to {
    box-shadow: 0 0 18px 2px var(--c-glow-gold);
  }
}

/* ── Inner grid ────────────────────────────────────── */
.offer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  grid-template-areas:
    'logo   rating'
    'offer  offer'
    'cta    cta'
    'terms  terms';
  gap: 1rem 1rem;
  padding: 1.5rem var(--gutter) 0.875rem;
  pointer-events: none;
}

.offer-rank {
  position: absolute;
  top: 0.875rem;
  right: var(--gutter);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--c-text-faint);
}

.offer-top1 .offer-rank {
  color: var(--c-gold);
}

/* ── Mark ──────────────────────────────────────────── */
.offer-logo-area {
  grid-area: logo;
  position: relative;
  width: 100%;
  aspect-ratio: 2.45 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-logo-plate);
}

/* `next/image fill` set the first five declarations inline. */
.offer-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: transparent;
  object-fit: contain;
}

/* ── Rating ────────────────────────────────────────── */
.offer-rating {
  grid-area: rating;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
}

.offer-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--c-text-strong);
}

.offer-rating-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.offer-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--c-gold);
}

.offer-scale {
  font-size: 0.8125rem;
  color: var(--c-text-faint);
}

/* ── Offer line ────────────────────────────────────── */
.offer-line {
  grid-area: offer;
  min-width: 0;
}

/* ── CTA ───────────────────────────────────────────── */
.offer-cta-area {
  grid-area: cta;
}

.offer-cta-wrap {
  border-radius: var(--radius-control);
}

.offer-cta {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-control);
  background: var(--grad-cool);
  color: var(--c-text-strong);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.offer-podium .offer-cta {
  box-shadow: 0 10px 26px -14px var(--c-glow-magenta);
}

.offer-top1 .offer-cta {
  background: var(--grad-warm);
  color: var(--c-text-on-warm);
  box-shadow:
    0 0 0 1px var(--c-gold),
    0 12px 36px -8px var(--c-glow-gold);
}

.offer-cta-wrap:hover .offer-cta {
  filter: brightness(1.08);
}

.offer-top1 .offer-cta-wrap:hover .offer-cta {
  box-shadow:
    0 0 0 1px var(--c-gold),
    0 14px 44px -6px var(--c-glow-gold);
}

/* ── T&C line ──────────────────────────────────────── */
.offer-terms {
  grid-area: terms;
  padding-top: 0.625rem;
  border-top: 1px dashed var(--c-line);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--c-text-faint);
}

/* ── Desktop: one row ──────────────────────────────── */
@media (min-width: 860px) {
  .offer-inner {
    grid-template-columns: 2.5rem 10.5rem minmax(8rem, auto) minmax(0, 1fr) 13rem;
    grid-template-areas:
      'rank logo rating offer cta'
      'rank terms terms terms terms';
    align-items: center;
    gap: 0.875rem 1.5rem;
  }

  .offer-rank {
    position: static;
    grid-area: rank;
    align-self: start;
    padding-top: 0.25rem;
    font-size: 2rem;
  }
}

/* ═══ Offer link (OfferLink) ═════════════════════════════════════════════════ */
/* The wrapper is the positioning context of the card's CTA. */
.offer-link-wrap {
  position: relative;
  display: block;
}

.offer-link {
  display: block;
  pointer-events: auto;
  text-decoration: none;
}

/* ═══ Offer line (BonusDisplay) ══════════════════════════════════════════════ */
.bonus {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.5rem;
  line-height: 1.25;
}

.bonus-lead {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

.bonus-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--c-gold);
}

.bonus-detail {
  flex-basis: 100%;
  font-size: 0.9375rem;
  color: var(--c-text);
}

/* ═══ Home sections ══════════════════════════════════════════════════════════ */
.home-inner {
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--c-text-strong);
}

.home-intro {
  margin-top: 0.75rem;
  max-width: var(--text-max);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--c-text-muted);
}

/* ── Criteria ledger ───────────────────────────────── */
.criteria {
  padding: 3.5rem 0;
  border-top: 1px solid var(--c-line);
}

.criteria-head {
  margin-bottom: 2rem;
}

.ledger {
  display: grid;
  grid-template-columns: 1fr;
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--c-line);
}

.ledger-row:last-child {
  border-bottom: 1px solid var(--c-line);
}

.ledger-term {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--c-gold);
}

.ledger-definition {
  max-width: var(--text-max);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--c-text);
}

@media (min-width: 860px) {
  .criteria .home-inner {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .criteria-head {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    margin-bottom: 0;
  }

  .ledger-row {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1.5rem;
  }
}

/* ── Steps ─────────────────────────────────────────── */
.steps {
  padding: 3.5rem 0;
  background: var(--c-surface-sunk);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.steps-track {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-amber);
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-text-strong);
}

.step-text {
  margin-top: 0.375rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--c-text-muted);
}

@media (min-width: 860px) {
  .steps-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--c-line-strong);
  }

  .step {
    padding-left: 0;
    padding-top: 3.25rem;
  }

  .step-number {
    top: 0;
    font-size: 2.5rem;
  }
}

/* ── FAQ ───────────────────────────────────────────── */
.faq {
  padding: 3.5rem 0;
}

.faq-inner {
  max-width: calc(48rem + 2 * var(--gutter));
}

.faq-list {
  margin-top: 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--c-line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem var(--gutter);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--c-text-strong);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background: var(--c-surface-raised);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--c-magenta);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--gutter) 1.25rem;
  max-width: var(--text-max);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}

/* ═══ Editorial note ═════════════════════════════════════════════════════════ */
.note {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--c-line);
}

.note-inner {
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.note-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text-muted);
}

.note-blocks {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.note-block-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-text);
}

.note-block-text {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-text-faint);
}

@media (min-width: 860px) {
  .note-blocks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* ═══ Footer ═════════════════════════════════════════════════════════════════ */
/* Separated from the content by the ribbon, not by a grey rule. */
.footer {
  position: relative;
  margin-top: auto;
  padding-top: 3px;
  background: var(--c-night-deep);
  color: var(--c-text);
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-ribbon);
}

.footer-inner {
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── 1. Licensed-only statement ────────────────────── */
.footer-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
  border: 1.5px solid var(--c-gold);
  border-radius: var(--radius-control);
  background: var(--c-surface);
}

.footer-disclaimer-icon {
  flex-shrink: 0;
  color: var(--c-gold);
}

.footer-disclaimer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--c-text-strong);
}

.footer-disclaimer-text {
  margin-top: 0.375rem;
  max-width: 52rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}

/* ── Blocks ────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-block {
  min-width: 0;
}

.footer-block-title {
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-gold);
}

.footer-licence-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.footer-licence {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--c-magenta);
}

.footer-licensee {
  font-weight: 700;
  color: var(--c-text-strong);
}

.footer-licence-meta {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

/* Official marks are dark artwork on transparency: a light plate from the theme. */
.footer-mark-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-small);
  background: var(--c-mark-plate);
}

.footer-mark-plate-small {
  flex-shrink: 0;
  padding: 0.375rem;
}

.footer-org-name {
  margin-top: 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--c-text);
}

.footer-org-sub {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--c-text-faint);
}

.footer-contact-list {
  list-style: none;
  margin-top: 0.625rem;
  display: grid;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--c-text-faint);
}

.footer-contact-list a,
.footer-help-contacts a {
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-line-strong);
  text-underline-offset: 2px;
}

.footer-contact-list a:hover,
.footer-help-contacts a:hover {
  text-decoration-color: var(--c-gold);
}

.footer-help-list {
  display: grid;
  gap: 1.25rem;
}

.footer-help {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.footer-help-body .footer-org-name {
  margin-top: 0;
}

.footer-help-text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--c-text-muted);
}

.footer-help-contacts {
  margin-top: 0.375rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  font-size: 0.875rem;
}

/* ── Age warning ───────────────────────────────────── */
.footer-age {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
}

.footer-age-marker {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--c-gold);
  border-radius: var(--radius-control);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--c-gold);
}

.footer-age-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-text-strong);
}

.footer-age-text {
  margin-top: 0.25rem;
  max-width: 52rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}

.footer-inline-link {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-inline-link:hover {
  color: var(--c-gold);
}

/* ── Navigation ────────────────────────────────────── */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
}

.footer-nav-link,
.footer-nav-link-strong {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--c-text-muted);
}

.footer-nav-link-strong {
  font-weight: 700;
  color: var(--c-text);
}

.footer-nav-link:hover,
.footer-nav-link-strong:hover {
  color: var(--c-gold);
}

/* ── Company + compact legal line ──────────────────── */
.footer-company {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}

.footer-company strong {
  color: var(--c-text);
}

.footer-legal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--c-text-faint);
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
  }
}

/* ═══ Age gate ═══════════════════════════════════════════════════════════════ */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: var(--c-overlay);
  backdrop-filter: blur(6px);
}

.age-gate-card {
  width: 100%;
  max-width: 30rem;
  padding: 2rem var(--gutter);
  border-radius: var(--radius-card);
  border: 2px solid transparent;
  background:
    linear-gradient(var(--c-surface-raised), var(--c-surface-raised)) padding-box,
    var(--grad-ribbon) border-box;
  text-align: center;
}

.age-gate-badge {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-gold);
  border-radius: var(--radius-control);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-gold);
}

.age-gate-kicker {
  margin: 0 0 0.375rem;
  color: var(--c-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.age-gate-title {
  margin: 0 0 0.75rem;
  color: var(--c-text-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 1.75rem);
  line-height: 1.2;
}

.age-gate-text {
  margin: 0;
  color: var(--c-text-muted);
  line-height: 1.6;
  font-size: 0.975rem;
}

.age-gate-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.age-gate-accept,
.age-gate-decline {
  border-radius: var(--radius-control);
  padding: 0.85rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.age-gate-accept {
  border: 0;
  background: var(--grad-warm);
  color: var(--c-text-on-warm);
}

.age-gate-decline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-line-strong);
}

.age-gate-decline:hover {
  border-color: var(--c-text-muted);
}

/* ── Confirmation page (/) — the same card, in the page flow ─────────── */
.gate-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem var(--gutter) 4rem;
}

/* ── Access denied (declined age) ──────────────────── */
.access-denied {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: var(--c-night-deep);
}

.access-denied-card {
  width: 100%;
  max-width: 30rem;
  padding: 2rem var(--gutter);
  text-align: center;
  border-radius: var(--radius-card);
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
}

.access-denied-badge {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius-control);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-magenta);
  color: var(--c-magenta);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.access-denied-kicker {
  margin: 0 0 0.375rem;
  color: var(--c-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.access-denied-title {
  margin: 0 0 0.75rem;
  color: var(--c-text-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 1.75rem);
  line-height: 1.2;
}

.access-denied-text {
  margin: 0;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.access-denied-button {
  margin-top: 1.5rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-control);
  padding: 0.85rem 1.25rem;
  background: transparent;
  color: var(--c-text);
  font-weight: 700;
  cursor: pointer;
}

.access-denied-button:hover {
  border-color: var(--c-text-muted);
}

/* ═══ Legal pages (LegalPage) ════════════════════════════════════════════════ */
.legal-page {
  flex: 1;
  width: 100%;
  max-width: calc(46rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
  color: var(--c-text);
}

.legal-head {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--c-line);
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--c-text-strong);
}

.legal-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}

.legal-updated {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--c-text-faint);
}

.legal-body h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--c-text-strong);
}

.legal-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-gold);
}

.legal-body p,
.legal-body li,
.legal-body dd {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
}

.legal-body p + p {
  margin-top: 0.875rem;
}

.legal-body ul,
.legal-body ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.375rem;
}

.legal-body li::marker {
  color: var(--c-magenta);
}

.legal-body a {
  color: var(--c-text-strong);
  text-decoration: underline;
  text-decoration-color: var(--c-orchid);
  text-underline-offset: 3px;
}

.legal-body a:hover {
  text-decoration-color: var(--c-gold);
}

.legal-body strong {
  color: var(--c-text-strong);
}

/* Contact / address cards on the compliance pages. */
.legal-card {
  margin-top: 1rem;
  padding: 1.125rem var(--gutter);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-control);
  background: var(--c-surface);
}

.legal-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal-card-title {
  font-weight: 700;
  color: var(--c-text-strong);
}

.legal-cards {
  display: grid;
  gap: 0.75rem;
}

.legal-callout {
  margin-top: 1.25rem;
  padding: 1rem var(--gutter);
  border-left: 3px solid var(--c-gold);
  background: var(--c-surface-sunk);
}

.legal-partner {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-control);
  background: var(--c-surface);
}

.legal-mark-plate {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-small);
  background: var(--c-mark-plate);
}

.legal-checklist {
  list-style: none;
  padding-left: 0 !important;
}

.legal-checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.legal-checklist li svg {
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: var(--c-gold);
}

/* ═══ 404 (app/not-found) ════════════════════════════════════════════════════ */
.nf-page {
  flex: 1;
  width: 100%;
  max-width: calc(var(--text-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 4rem var(--gutter) 5rem;
}

.nf-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: var(--grad-ribbon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nf-title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  color: var(--c-text-strong);
}

.nf-text {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}

.nf-link {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-control);
  background: var(--c-text);
  color: var(--c-night);
  font-weight: 700;
}

.nf-link:hover {
  background: var(--c-gold);
}
