/* ===== tokens — src/styles/theme.css ===== */

/**
 * Design tokens — the only file with colour literals. The palette is carried over
 * from the source site (irelandbethub.com, Next): deep green-black surfaces, gold
 * as the main accent, emerald and mint as the second, a pale-to-sky blue for the
 * welcome amount. Fonts are not declared here: `<Font />` in `Base.astro` sets
 * `--font-display` and `--font-body`, and the theme only reads them.
 */
:root {
  color-scheme: dark;

  /* --- Source palette --- */
  --tone-ink: #070d09;
  --tone-ink-2: #0b1410;
  --tone-moss: #0d2015;
  --tone-moss-2: #091505;
  --tone-surface: #0f1c13;
  --tone-surface-raised: #162319;
  --tone-line: #1e3026;
  --tone-line-soft: #132018;
  --tone-gold: #c9a840;
  --tone-gold-deep: #b89430;
  --tone-emerald: #059669;
  --tone-emerald-deep: #047857;
  --tone-mint: #34d399;
  --tone-mint-pale: #6ee7b7;
  --tone-sky-1: #ffffff;
  --tone-sky-2: #bae6fd;
  --tone-sky-3: #38bdf8;
  --tone-sky-4: #7dd3fc;
  --tone-sky-5: #0ea5e9;
  --tone-sky-6: #e0f2fe;
  --tone-text: #f2f4f7;
  --tone-text-muted: #8a9d90;
  --tone-text-dim: #7f9886;
  --tone-plate: #eef2ef;

  /* --- Roles --- */
  --color-bg: var(--tone-ink);
  --color-bg-alt: var(--tone-ink-2);
  --color-surface: var(--tone-surface);
  --color-surface-raised: var(--tone-surface-raised);
  --color-surface-muted: var(--tone-surface-raised);
  --color-surface-subtle: var(--tone-surface);
  --color-skeleton: var(--tone-line);
  --color-skeleton-strong: var(--tone-line);

  --color-text: var(--tone-text);
  --color-text-secondary: var(--tone-text-muted);
  --color-text-muted: var(--tone-text-muted);
  --color-text-subtle: var(--tone-text-muted);
  --color-text-faint: var(--tone-text-dim);
  --color-text-faintest: var(--tone-text-dim);
  --color-on-accent: var(--tone-ink);

  --color-border: var(--tone-line);
  --color-border-strong: var(--tone-gold);
  --color-border-soft: var(--tone-line-soft);
  --color-border-softer: var(--tone-line);
  --color-border-input: var(--tone-line);
  --color-border-muted: var(--tone-line);

  --color-accent: var(--tone-gold);
  --color-accent-hover: var(--tone-gold-deep);
  --color-accent-soft: rgba(201, 168, 64, 0.1);
  --color-accent-line: rgba(201, 168, 64, 0.45);
  --color-accent-glow: rgba(201, 168, 64, 0.18);
  --color-accent-2: var(--tone-emerald);
  --color-accent-2-hover: var(--tone-emerald-deep);
  --color-accent-2-glow: rgba(5, 150, 105, 0.55);
  --color-mint: var(--tone-mint);
  --color-mint-pale: var(--tone-mint-pale);
  --color-focus: var(--tone-mint);

  --color-amount-1: var(--tone-sky-1);
  --color-amount-2: var(--tone-sky-2);
  --color-amount-3: var(--tone-sky-3);
  --color-amount-4: var(--tone-sky-4);
  --color-amount-5: var(--tone-sky-5);
  --color-amount-6: var(--tone-sky-6);
  --color-amount-shadow-1: rgba(186, 230, 253, 0.9);
  --color-amount-shadow-2: rgba(14, 165, 233, 0.55);
  --color-amount-shadow-3: rgba(2, 132, 199, 0.35);
  --color-shine: rgba(255, 255, 255, 0.55);
  --color-shine-soft: rgba(186, 230, 253, 0.2);

  /* Header glass, hero wash and glow, footer separator. */
  --color-header-glass: rgba(7, 13, 9, 0.94);
  --color-hero-from: var(--tone-ink);
  --color-hero-mid: var(--tone-moss);
  --color-hero-to: var(--tone-moss-2);
  --color-hero-glow: rgba(201, 168, 64, 0.08);
  --color-separator-from: transparent;
  --color-separator-mid: var(--tone-gold);
  --color-separator-to: transparent;

  /* Official marks: dark artwork sits on this light plate on the dark theme. */
  --color-mark-plate: var(--tone-plate);
  --color-hse-mark: var(--tone-text);

  --color-inverted-bg: var(--tone-gold);
  --color-inverted-bg-hover: var(--tone-gold-deep);
  --color-inverted-text: var(--tone-ink);
  --color-contrast-bg: var(--tone-ink);
  --color-contrast-text: var(--tone-text);

  --color-overlay: rgba(3, 7, 5, 0.88);
  --color-overlay-soft: rgba(3, 7, 5, 0.6);

  --color-spinner-track: var(--tone-line);
  --color-spinner-head: var(--tone-gold);

  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 6px 32px rgba(0, 0, 0, 0.45);

  /* --- Layout --- */
  --layout-max-width: 1200px;
  --layout-padding-x: 1.25rem;
  --content-max-width: 960px;
  --list-max-width: 800px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  /* Not a pill: the template's 999px token is retired on this site. */
  --radius-pill: 6px;
}

/* ===== fonts ===== */

/* Font variables. In the source, Astro's <Font /> declared them; here the families come from
   the Google Fonts <link> in each page's head. */
:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ===== reset — src/styles/global.css ===== */

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
}

ul,
ol {
  padding: 0;
}

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

button {
  cursor: pointer;
}

/* Load-bearing. `hidden` is how the age gate, the access-denied panel, the
   promo modal and the cookie notice are toggled, and the UA rule behind it is
   `[hidden] { display: none }` from the browser's own stylesheet — any `display`
   in a component's CSS module outranks it. Keep the `!important`; it is what
   makes the attribute win against a component that sets `display`. */
[hidden] {
  display: none !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
}

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

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

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Every anchor of the home page (`SECTION_IDS` in src/content.ts) clears the
   sticky header. */
#operators,
#compare,
#licensing,
#questions,
#about-this-list {
  scroll-margin-top: 5.5rem;
}

@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;
  }
}

/* Keeps a control operable by keyboard while invisible. */
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== home — src/styles/Atrium.module.css ===== */

/* Role `home`: the landing body. The blocks style themselves. */
.atrium {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== header — Crest ===== */

.crest {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--color-header-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.crest-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0.5rem var(--layout-padding-x);
}

.crest-home {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s;
}

.crest-home:hover {
  opacity: 0.85;
}

.crest-logo {
  width: auto;
  height: 42px;
}

.crest-age {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.2rem var(--layout-padding-x);
  border-top: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.crest-age-mark {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

/* ===== hero — Prelude ===== */

.prelude {
  position: relative;
  overflow: hidden;
  padding: 1.75rem var(--layout-padding-x) 1.5rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--color-hero-from) 0%,
    var(--color-hero-mid) 50%,
    var(--color-hero-to) 100%
  );
}

.prelude::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 120%,
    var(--color-hero-glow) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.prelude-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.prelude-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.prelude-badge-icon {
  color: var(--color-accent);
}

.prelude-title {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: balance;
}

.prelude-accent {
  font-style: italic;
  color: var(--color-accent);
  text-shadow: 0 0 28px var(--color-accent-glow);
}

.prelude-lede {
  max-width: 34rem;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.prelude-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--color-accent-line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  transition:
    background 0.15s,
    border-color 0.15s;
}

.prelude-cta:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

/* ===== age notice — MaturityNote ===== */

.maturity {
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-bg-alt);
  padding: 0.45rem var(--layout-padding-x);
  text-align: center;
}

.maturity-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text);
}

.maturity-mark {
  flex-shrink: 0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.maturity-disclosure {
  max-width: 46rem;
  margin: 0.25rem auto 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--color-text-faint);
}

.maturity-disclosure strong {
  color: var(--color-text-muted);
  font-weight: 700;
}

.maturity-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ===== offer list — Rundown ===== */

.rundown {
  padding: 1.5rem 0;
}

.rundown-container {
  max-width: var(--list-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-padding-x);
}

.rundown-heading {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

.rundown-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* The promo modal's trigger: a visible 1px element, watched with threshold 1. */
.rundown-end {
  width: 100%;
  height: 1px;
}

/* ===== offer card — Ticket ===== */

/* Card of the offer list. Layout carried over from the source site: a mark cell
   on the raised surface, the welcome amount, the button; one card layout for
   both catalogue modes. Own keyframes use from/to only and alternate. */

@keyframes ticket-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ticket-frame {
  from {
    border-color: var(--color-accent);
    box-shadow:
      0 0 0 2px var(--color-accent),
      0 0 12px 2px var(--color-accent-line),
      0 4px 40px var(--color-accent-glow);
  }
  to {
    border-color: var(--color-accent-2);
    box-shadow:
      0 0 0 2px var(--color-accent-2),
      0 0 12px 2px var(--color-accent-2-glow),
      0 4px 40px var(--color-accent-glow);
  }
}

@keyframes ticket-badge-tone {
  from {
    background: var(--color-accent);
  }
  to {
    background: var(--color-accent-2);
  }
}

@keyframes ticket-shine {
  from {
    background-position: -200% center;
  }
  to {
    background-position: 200% center;
  }
}

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: ticket-rise 0.35s ease both;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.18s;
}

.ticket:hover {
  border-color: var(--color-accent-line);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.ticket--lead {
  margin-top: 0.5rem;
  animation:
    ticket-frame 2s ease-in-out infinite alternate,
    ticket-rise 0.35s ease both;
}

.ticket--featured {
  border-color: var(--color-accent-line);
}

.ticket--featured:hover {
  border-color: var(--color-accent);
}

/* The inner grid takes no pointer events; only the button and its overlay do
   (set in OfferLink). The terms line sits outside it. */
.ticket-inner {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: stretch;
  pointer-events: none;
}

.ticket-badge {
  position: absolute;
  top: -0.65rem;
  right: 0.75rem;
  z-index: 3;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ticket--lead .ticket-badge {
  animation: ticket-badge-tone 2s ease-in-out infinite alternate;
}

.ticket--featured .ticket-badge {
  background: var(--color-surface-raised);
  color: var(--color-accent);
  border: 1px solid var(--color-accent-line);
}

.ticket-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.6rem;
  background: var(--color-surface-raised);
  border-right: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg) 0 0 0;
}

.ticket-logo {
  width: auto;
  height: 60px;
  max-width: 100%;
  object-fit: contain;
}

.ticket-age {
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.ticket-offer {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  min-width: 0;
}

.ticket-action {
  display: grid;
  align-content: center;
  padding: 1rem 1.15rem;
  border-left: 1px solid var(--color-border-soft);
}

.ticket-cta {
  display: block;
  min-width: 9.25rem;
  padding: 0.8rem 1.25rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.12s;
}

.ticket-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 18%,
    var(--color-shine-soft) 30%,
    var(--color-shine) 42%,
    var(--color-shine-soft) 54%,
    transparent 66%
  );
  background-size: 200% 100%;
  animation: ticket-shine 5s linear infinite;
  pointer-events: none;
}

.ticket:hover .ticket-cta {
  background: var(--color-accent-hover);
}

.ticket-cta--lead {
  padding: 0.9rem 1.4rem;
  background: var(--color-accent-2);
  color: var(--color-on-accent);
  box-shadow:
    0 0 0 1px var(--color-mint),
    0 0 18px var(--color-accent-2-glow);
}

.ticket:hover .ticket-cta--lead {
  background: var(--color-accent-2-hover);
}

.ticket-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.45rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--color-border-soft);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--color-text-faint);
}

.ticket-terms-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ticket-terms-link:hover {
  color: var(--color-text);
}

@media (max-width: 720px) {
  .ticket-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticket-mark {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .ticket-logo {
    height: 48px;
  }

  .ticket-offer {
    justify-content: center;
    padding: 0.7rem 1rem;
  }

  .ticket-action {
    padding: 0 1rem 0.8rem;
    border-left: none;
  }

  .ticket-cta {
    min-width: 0;
    width: 100%;
  }
}

/* ===== welcome line — Teaser ===== */

.teaser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.teaser-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
}

.teaser-figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.teaser-share {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.teaser-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(
    155deg,
    var(--color-amount-1) 0%,
    var(--color-amount-2) 14%,
    var(--color-amount-3) 28%,
    var(--color-amount-1) 42%,
    var(--color-amount-4) 56%,
    var(--color-amount-5) 70%,
    var(--color-amount-6) 84%,
    var(--color-amount-1) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 var(--color-amount-shadow-1))
    drop-shadow(0 3px 6px var(--color-amount-shadow-2))
    drop-shadow(0 7px 18px var(--color-amount-shadow-3));
}

.teaser--lead .teaser-amount {
  font-size: clamp(2.2rem, 5.5vw, 2.75rem);
}

@media (max-width: 720px) {
  .teaser {
    align-items: center;
    text-align: center;
  }

  .teaser-figure {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }
}

/* ===== offer link — OfferLink ===== */

/* Positioning only, no colours: the button look arrives on the anchor as a class.
   `pointer-events` and `z-index` are set on the anchor and on the overlay each,
   not inherited from the wrapper — the card's inner grid turns events off, and
   the anchor must not float above the overlay. */
.offer-link {
  position: relative;
  display: grid;
}

.offer-link-anchor {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.offer-link-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

/* ===== home sections — Segments ===== */

.segments-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.segments-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.segments-lead {
  max-width: 36rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* --- What to compare: numbered cards with an icon tile --- */
.compare {
  padding: 3.5rem var(--layout-padding-x);
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-soft);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.compare-card:hover {
  border-color: var(--color-accent);
  box-shadow:
    0 0 0 1px var(--color-accent),
    0 4px 24px var(--color-accent-glow);
}

.compare-num {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-border);
  user-select: none;
}

.compare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.compare-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.compare-card-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* --- Licensing: gold-ruled header and fact chips --- */
.licensing {
  padding: 4rem var(--layout-padding-x);
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-soft);
}

.licensing-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.licensing-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-accent);
}

.licensing-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.licensing-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.licensing-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.licensing-check {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--color-mint);
}

.licensing-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* --- Questions: native disclosure, no script --- */
.questions {
  padding: 3.5rem var(--layout-padding-x);
  border-top: 1px solid var(--color-border-soft);
}

.questions-container {
  max-width: 760px;
  margin: 0 auto;
}

.questions-list {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.questions-item {
  border-bottom: 1px solid var(--color-border);
}

.questions-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text);
}

.questions-q::-webkit-details-marker {
  display: none;
}

.questions-chevron {
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform 0.2s;
}

.questions-item[open] .questions-chevron {
  transform: rotate(90deg);
}

.questions-a {
  margin: 0;
  padding: 0 0.25rem 1.1rem;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .compare-grid,
  .licensing-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare,
  .licensing,
  .questions {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .licensing-container {
    gap: 1.5rem;
  }
}

/* ===== closing block — Footnote ===== */

.footnote {
  padding: 1.5rem var(--layout-padding-x) 2.5rem;
  background: var(--color-bg);
}

.footnote-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-text-faint);
  border-radius: var(--radius-sm);
}

.footnote-tag {
  flex-shrink: 0;
  margin-top: 0.15rem;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  background: var(--color-text-faint);
  color: var(--color-bg);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  user-select: none;
}

.footnote-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footnote-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.footnote-part {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footnote-part-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.footnote-part-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--color-text-faint);
}

/* ===== footer — Endcap ===== */

/* Separated from the content by a gold gradient rule, not a grey line. Footer
   text is 14px; the licensed-links statement is the one larger, bolder line in
   the main text colour, inside a frame in the accent token. */
.endcap {
  position: relative;
  margin-top: auto;
  background: var(--color-bg-alt);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.endcap::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-separator-from),
    var(--color-separator-mid),
    var(--color-separator-to)
  );
}

.endcap-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 2.25rem var(--layout-padding-x) 1.25rem;
}

.endcap-statement {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.endcap-statement-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
}

.endcap-statement-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

.endcap-register {
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.endcap-subtitle {
  margin: 0.25rem 0 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
}

.endcap-licensees {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.endcap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.endcap-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.endcap-tagline {
  margin: 0;
  color: var(--color-text-muted);
}

.endcap-anchor {
  font-weight: 700;
  color: var(--color-accent);
}

.endcap-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.2rem 1.25rem;
}

.endcap-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.endcap-text {
  margin: 0;
  line-height: 1.5;
}

.endcap-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
  transition: color 0.15s;
}

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

.endcap-help {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.endcap-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.endcap-service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.endcap-mark {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.endcap-mark--plate {
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-mark-plate);
}

.endcap-service-name {
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
}

.endcap-age {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  line-height: 1.5;
  color: var(--color-text);
}

.endcap-age-mark {
  flex-shrink: 0;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.endcap-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-soft);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-faint);
}

@media (max-width: 720px) {
  .endcap-grid,
  .endcap-services {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== legal pages — Charter ===== */

/* Role `legal-page`: the legal and compliance pages. */
.charter {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.25rem var(--layout-padding-x) 3rem;
  color: var(--color-text);
}

.charter h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.charter h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.charter h3 {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.charter p,
.charter li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.charter p {
  margin: 0 0 0.75rem;
}

.charter ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.charter li + li {
  margin-top: 0.25rem;
}

.charter a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.charter-lead {
  font-size: 1.05rem;
}

.charter-panel {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
}

.charter-panel p:last-child {
  margin-bottom: 0;
}

.charter-centres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
}

.charter-centres li {
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}

.charter-partner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.charter-partner p {
  margin: 0;
}

.charter-plate {
  flex-shrink: 0;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-mark-plate);
}

@media (max-width: 640px) {
  .charter-centres {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== 404 — Outbound ===== */

/* The 404 page. */
.outbound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.outbound-panel {
  max-width: 640px;
  text-align: center;
  border: 1px solid var(--color-border-softer);
  border-radius: 12px;
  padding: 24px;
  background: var(--color-surface);
}

.outbound-heading {
  margin: 0 0 12px;
}

.outbound-copy {
  margin: 0 0 16px;
  color: var(--color-text-secondary);
}

.outbound-return {
  display: inline-block;
  text-decoration: underline;
}

.outbound-status {
  display: block;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-text-faintest);
}
