/* ==========================================================================
   VPNXHUB — THE SCOREBOARD
   The public index surface, built as a hand-hung match scoreboard read under
   floodlight: enamel board, cream plates on steel hooks, scorer's red ink,
   stencil-cut condensed lettering. One world, five enamel finishes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — the board's materials
   -------------------------------------------------------------------------- */

:root {
  /* vitreous enamel board — black, cast blue by the floodlight */
  --board: #0b0f1a;
  --board-deep: #05070d;
  --board-rail: #121a2b;
  --board-lip: #1b2740;
  --seam: rgba(226, 236, 250, 0.09);
  --seam-strong: rgba(226, 236, 250, 0.2);

  /* enamel plates — warm cream against the cold board, as enamel signage is */
  --plate: #f0ebdd;
  --plate-shade: #e0d8c4;
  --plate-edge: #b5ab93;
  --plate-back: #e2dbc8;

  /* inks and metal */
  --ink: #12141a;
  --ink-soft: #4d5262;
  --ink-faint: #565b6b;
  --red: #c22e22;
  --red-ink: #a32218;
  --red-chalk: #ff8a75;
  --steel: #7fb0ff;
  --steel-deep: #3d7bd6;
  --chalk: #f4f7fb;
  --chalk-dim: #a3b1c9;
  --live: #56d3a8;

  /* structure */
  --rail-h: 78px;
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --plate-radius: 3px;
  --hook-radius: 2px;

  /* depth — offset + blur, never a flat halo */
  --lift-1: 0 2px 4px rgba(2, 4, 10, 0.4);
  --lift-2: 0 8px 18px -6px rgba(2, 4, 10, 0.55);
  --lift-3: 0 22px 48px -18px rgba(2, 4, 10, 0.7);
  --plate-lift: 0 3px 0 var(--plate-edge), 0 10px 20px -8px rgba(2, 4, 10, 0.6);

  /* motion */
  --settle: 620ms cubic-bezier(0.16, 1, 0.3, 1);
  --swing: 420ms cubic-bezier(0.22, 1, 0.36, 1);
  --tick: 180ms cubic-bezier(0.33, 1, 0.68, 1);

  /* legacy aliases so shared widgets (assistant, toast) stay coherent */
  --primary: var(--steel);
  --text: var(--chalk);
  --muted: var(--chalk-dim);
  --radius: 4px;
  --max-width: var(--shell);
}

/* --- enamel finishes: one board, five coats ------------------------------ */

[data-theme='dark-blue'] {
  --board: #0d1a33;
  --board-deep: #071227;
  --board-rail: #142443;
  --board-lip: #1d3159;
  --chalk-dim: #a6b6d4;
  --live: #5ad2c0;
}

[data-theme='dark-grey'] {
  --board: #1c1e22;
  --board-deep: #131518;
  --board-rail: #26292e;
  --board-lip: #33373e;
  --chalk-dim: #b0b5bd;
}

[data-theme='cyber'] {
  --board: #050608;
  --board-deep: #010203;
  --board-rail: #0d1016;
  --board-lip: #161b25;
  --steel: #8fbcff;
  --steel-deep: #4a86e0;
  --red-chalk: #ff9a85;
  --chalk-dim: #aab6c9;
  --live: #5ee0b4;
}

[data-theme='bright'] {
  /* the scorer's book: ruled paper, not a board */
  --board: #e8ecf3;
  --board-deep: #dde3ed;
  --board-rail: #eef1f6;
  --board-lip: #d3dae6;
  --seam: rgba(18, 20, 26, 0.1);
  --seam-strong: rgba(18, 20, 26, 0.24);
  --plate: #fbfcfe;
  --plate-shade: #eff2f7;
  --plate-edge: #b9c2d0;
  --plate-back: #eef1f6;
  --chalk: #12141a;
  --chalk-dim: #545b6b;
  --red-chalk: #a32218;
  --steel: #24549c;
  --steel-deep: #1e4894;
  --live: #0f6b57;
  --lift-1: 0 1px 3px rgba(30, 44, 70, 0.2);
  --lift-2: 0 6px 14px -6px rgba(30, 44, 70, 0.3);
  --lift-3: 0 18px 40px -18px rgba(30, 44, 70, 0.38);
  --plate-lift: 0 2px 0 var(--plate-edge), 0 8px 16px -8px rgba(30, 44, 70, 0.34);
}

/* --------------------------------------------------------------------------
   2. Ground
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-color: var(--steel-deep) var(--board-deep);
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Archivo', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--chalk);
  background-color: var(--board);
  /* enamel: vertical floodlight falloff + a fine brushed grain */
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(226, 236, 250, 0.11), transparent 60%),
    radial-gradient(ellipse 90% 50% at 50% 108%, rgba(2, 4, 10, 0.55), transparent 62%),
    repeating-linear-gradient(90deg, rgba(226, 236, 250, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(2, 4, 10, 0.05) 0 2px, transparent 2px 5px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* the parts we did not draw still carry the design */
::selection {
  background: var(--steel);
  color: var(--board-deep);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--board-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--steel-deep);
  border: 3px solid var(--board-deep);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--steel);
}

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

input,
textarea,
select,
button {
  font: inherit;
  caret-color: var(--steel);
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   3. Lettering
   -------------------------------------------------------------------------- */

.stencil,
h1,
h2,
h3,
h4,
.board-rail-mark,
.service-tab,
.ledger-heads span,
.plan-name,
.metric-plate strong,
.price-figure {
  font-family: 'Big Shoulders Display', 'Archivo', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 0.94;
  font-variant-numeric: tabular-nums lining-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
}

h4 {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

p {
  margin: 0;
  max-width: 68ch;
}

/* the stencilled label that rules a column or a panel */
.rule-label {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-stretch: 78%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

.tnum {
  font-variant-numeric: tabular-nums lining-nums;
}

.keyword-pop {
  color: var(--steel);
  font-weight: 700;
}

.keyword-shift {
  color: var(--red-chalk);
  font-weight: 700;
}

[data-theme='bright'] .keyword-shift {
  color: var(--red-ink);
}

.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   4. Preloader — the board lighting up
   -------------------------------------------------------------------------- */

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--board-deep);
  transition: opacity 460ms ease, visibility 460ms ease;
}

html:not(.site-preloader-active) .site-preloader,
.site-preloader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.site-preloader-active body {
  overflow: hidden;
}

.preloader-stage {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.preloader-wordmark {
  display: flex;
  gap: 4px;
}

.preloader-wordmark span {
  display: grid;
  place-items: center;
  width: clamp(30px, 7vw, 44px);
  height: clamp(40px, 9vw, 58px);
  background: var(--plate);
  color: var(--ink);
  border-radius: var(--plate-radius);
  box-shadow: var(--plate-lift);
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  animation: plate-drop 760ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.preloader-wordmark span:nth-child(1) { animation-delay: 0ms; }
.preloader-wordmark span:nth-child(2) { animation-delay: 60ms; }
.preloader-wordmark span:nth-child(3) { animation-delay: 120ms; }
.preloader-wordmark span:nth-child(4) { animation-delay: 180ms; }
.preloader-wordmark span:nth-child(5) { animation-delay: 240ms; }
.preloader-wordmark span:nth-child(6) { animation-delay: 300ms; }
.preloader-wordmark span:nth-child(7) { animation-delay: 360ms; }

.preloader-wordmark span.accent {
  background: var(--red);
  color: var(--plate);
}

@keyframes plate-drop {
  from {
    opacity: 0;
    transform: translateY(-26px) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.preloader-rail {
  width: min(260px, 60vw);
  height: 3px;
  background: var(--board-rail);
  overflow: hidden;
}

.preloader-rail span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--steel);
  animation: rail-sweep 1100ms ease-in-out infinite;
}

@keyframes rail-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.preloader-note {
  margin: 0;
  font-stretch: 78%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}

/* --------------------------------------------------------------------------
   5. Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--steel);
  color: var(--board-deep);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-160%);
  transition: transform var(--tick);
}

.skip-link:focus-visible {
  transform: none;
}

/* --------------------------------------------------------------------------
   6. The top rail — the board's header beam
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--board-rail);
  border-bottom: 1px solid var(--seam-strong);
  box-shadow: var(--lift-2);
}

/* steel rivet run along the beam */
.site-header::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 4px;
  height: 4px;
  background-image: radial-gradient(circle at 2px 2px, var(--steel-deep) 0 1.6px, transparent 1.8px);
  background-size: 26px 4px;
  opacity: 0.7;
  pointer-events: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--rail-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--chalk);
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--steel);
  background: var(--board-deep);
  border: 1px solid var(--steel-deep);
  border-radius: 2px;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-text strong {
  color: var(--steel);
  font-weight: 800;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  margin-inline-start: auto;
}

.desktop-nav a {
  position: relative;
  padding: 8px 2px;
  font-stretch: 84%;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  text-decoration: none;
  transition: color var(--tick);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 2px;
  background: var(--steel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--swing);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--chalk);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.desktop-nav .nav-login-highlight {
  padding: 9px 16px;
  color: var(--board-deep);
  background: var(--steel);
  border-radius: 2px;
}

[data-theme='bright'] .desktop-nav .nav-login-highlight {
  color: var(--plate);
}

.desktop-nav .nav-login-highlight::after {
  display: none;
}

.desktop-nav .nav-login-highlight:hover {
  color: var(--board-deep);
  background: var(--chalk);
}

[data-theme='bright'] .desktop-nav .nav-login-highlight:hover {
  background: var(--ink);
  color: var(--plate);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* the scorer's switch — currency */
.currency-pill {
  display: inline-flex;
  padding: 3px;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
  border-radius: 2px;
}

.currency-pill button {
  padding: 7px 13px;
  border: 0;
  background: transparent;
  color: var(--chalk-dim);
  font-stretch: 84%;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 1px;
  transition: background var(--tick), color var(--tick);
}

.currency-pill button:hover {
  color: var(--chalk);
}

.currency-pill button.active {
  background: var(--steel);
  color: var(--board-deep);
}

[data-theme='bright'] .currency-pill button.active {
  color: var(--plate);
}

/* theme.js injects this control into .nav-actions */
.site-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
  border-radius: 2px;
  color: var(--chalk-dim);
  cursor: pointer;
  transition: color var(--tick), border-color var(--tick);
}

.site-theme-toggle:hover {
  color: var(--chalk);
  border-color: var(--steel-deep);
}

.site-theme-toggle-track {
  position: relative;
  display: block;
  width: 34px;
  height: 16px;
  background: var(--board-rail);
  border: 1px solid var(--seam-strong);
}

.site-theme-toggle-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  background: var(--steel);
  transition: transform var(--swing);
}

[data-theme='bright'] .site-theme-toggle-thumb {
  transform: translateX(18px);
}

.site-theme-toggle-icon {
  display: none;
}

.site-theme-toggle-text {
  font-stretch: 84%;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 40px;
  padding: 0 9px;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
  border-radius: 2px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--chalk);
  transition: transform var(--swing), opacity var(--tick);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- mobile drawer ------------------------------------------------------- */

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(2, 4, 10, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--swing), visibility var(--swing);
}

body.nav-open .mobile-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 96;
  width: min(340px, 86vw);
  height: 100dvh;
  padding: 26px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--board-rail);
  border-left: 1px solid var(--seam-strong);
  box-shadow: var(--lift-3);
  transform: translateX(105%);
  transition: transform var(--settle);
  overflow-y: auto;
}

body.nav-open .mobile-drawer {
  transform: none;
}

.mobile-nav {
  display: grid;
  gap: 2px;
  margin-top: 40px;
}

.mobile-nav a {
  padding: 15px 14px;
  background: var(--board-deep);
  color: var(--chalk);
  font-stretch: 84%;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: border-color var(--tick), background var(--tick);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  border-left-color: var(--steel);
  background: var(--board);
}

.mobile-nav .nav-login-highlight {
  background: var(--steel);
  color: var(--board-deep);
  border-left-color: var(--steel);
}

.mobile-meta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--seam);
  color: var(--chalk-dim);
  font-size: 0.88rem;
}

.mobile-meta strong {
  display: block;
  margin-bottom: 8px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--chalk);
}

/* --------------------------------------------------------------------------
   7. Announcement strip — the umpire's note pinned to the rail
   -------------------------------------------------------------------------- */

.announcement-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: clamp(14px, 1.8vw, 20px);
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
  border-radius: 2px;
  box-shadow: var(--lift-1);
}

.announcement-bar-body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1 1 320px;
}

.announcement-bar-title {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: 0.01em;
}

.announcement-bar-copy p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--chalk-dim);
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: color-mix(in srgb, var(--live) 16%, transparent);
  color: var(--live);
  font-stretch: 80%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  flex: none;
}

.live-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: chip-pulse 2.4s ease-in-out infinite;
}

@keyframes chip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --------------------------------------------------------------------------
   8. THE BOARD — first viewport
   -------------------------------------------------------------------------- */

.board {
  position: relative;
  padding-block: clamp(16px, 2.2vw, 24px) clamp(48px, 7vw, 84px);
}

.board-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: end;
  padding-bottom: clamp(14px, 1.8vw, 20px);
  border-bottom: 2px solid var(--seam-strong);
}

.board-title h1 {
  margin-bottom: 14px;
}

/* the services lead the board and carry the accent; the mechanism follows in chalk */
.board-title h1 em,
.board-title h1 span {
  display: block;
  font-style: normal;
}

.board-title h1 em {
  color: var(--steel);
}

.board-lede {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--chalk-dim);
  max-width: 54ch;
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* --- the fixtures panel: real, checkable facts --------------------------- */

.board-fixtures {
  display: grid;
  gap: 2px;
  padding: 3px;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
}

.fixture-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 15px;
  background: var(--board-rail);
}

.fixture-row dt {
  font-stretch: 80%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}

.fixture-row dd {
  margin: 0;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
}

.fixture-row dd small {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

/* --------------------------------------------------------------------------
   9. Provider hooks — the innings selector
   -------------------------------------------------------------------------- */

.board-selector {
  margin-top: clamp(14px, 1.8vw, 20px);
}

/* the board's second scrub, set beside the hooks it filters */
.board-scrub {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.term-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
  border-radius: 2px;
}

.term-switch button {
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: var(--chalk-dim);
  font-stretch: 84%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 1px;
  transition: background var(--tick), color var(--tick);
}

.term-switch button:hover {
  color: var(--chalk);
}

.term-switch button.active {
  background: var(--steel);
  color: var(--board-deep);
}

[data-theme='bright'] .term-switch button.active {
  color: var(--plate);
}

.term-empty-note[hidden],
.price-row[hidden] {
  display: none;
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
}

.service-tab {
  position: relative;
  padding: 15px 16px 17px;
  background: var(--board-rail);
  border: 0;
  border-top: 3px solid transparent;
  color: var(--chalk-dim);
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1;
  cursor: pointer;
  transition: background var(--tick), color var(--tick), border-color var(--tick);
}

.service-tab small {
  display: block;
  margin-top: 7px;
  font-family: 'Archivo', sans-serif;
  font-stretch: 82%;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--chalk-dim);
  opacity: 0.82;
}

.service-tab:hover {
  background: var(--board-lip);
  color: var(--chalk);
}

.service-tab.active {
  background: var(--board-lip);
  border-top-color: var(--steel);
  color: var(--chalk);
}

.service-tab.active small {
  color: var(--steel);
  opacity: 1;
}

.service-tab.out-of-stock {
  border-top-color: var(--red);
}

.tab-stock-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 7px;
  background: var(--red);
  color: var(--plate);
  font-family: 'Archivo', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. The ledger — plans as hooked plates
   -------------------------------------------------------------------------- */

.pricing-panel {
  display: none;
}

.pricing-panel.active {
  display: block;
}

/* the provider's note reads as a page torn from the scorer's book */
.provider-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(22px, 3vw, 30px);
  margin-top: 18px;
  color: var(--ink);
  background-color: var(--plate);
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 30px,
    color-mix(in srgb, var(--red-ink) 13%, transparent) 30px 31px
  );
  border: 1px solid var(--plate-edge);
  box-shadow: var(--lift-2);
}

.provider-banner h3 {
  margin: 10px 0 12px;
  color: var(--ink);
}

.provider-banner p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.provider-banner .keyword-pop {
  color: var(--red-ink);
}

.provider-badge {
  display: inline-block;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--plate);
  font-stretch: 80%;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.provider-summary {
  padding-left: clamp(18px, 2.4vw, 28px);
  border-left: 1px solid var(--plate-edge);
}

.provider-summary strong {
  display: block;
  margin-bottom: 8px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--red-ink);
}

.provider-summary p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* --- stencilled column headings ------------------------------------------ */

.ledger-heads {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) minmax(280px, 2.1fr) minmax(160px, 1.1fr) 148px;
  gap: 18px;
  align-items: end;
  padding: 0 18px 9px;
  margin-top: 16px;
  border-bottom: 2px solid var(--steel-deep);
}

.ledger-heads span {
  font-family: 'Archivo', sans-serif;
  font-stretch: 78%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.ledger-heads span:last-child {
  text-align: right;
}

/* --- the plate ----------------------------------------------------------- */

.pricing-grid {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  counter-reset: plate;
}

.pricing-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) minmax(280px, 2.1fr) minmax(160px, 1.1fr) 148px;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--plate) 0%, var(--plate-shade) 100%);
  border: 1px solid var(--plate-edge);
  border-radius: var(--plate-radius);
  box-shadow: var(--plate-lift);
  transition: transform var(--swing), box-shadow var(--swing);
}

/* the steel hooks the plate hangs from */
.pricing-card::before,
.pricing-card::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 8px;
  height: 8px;
  background: var(--steel);
  border-radius: 50% 50% 2px 2px;
  box-shadow: var(--lift-1);
}

.pricing-card::before { left: 26px; }
.pricing-card::after { right: 26px; }

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 0 var(--plate-edge), 0 18px 30px -12px rgba(2, 4, 10, 0.66);
}

.pricing-card.popular {
  border-color: var(--red-ink);
  box-shadow: 0 3px 0 var(--red-ink), 0 12px 24px -10px rgba(2, 4, 10, 0.6);
}

.pricing-ribbon {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  background: var(--red-ink);
  color: var(--plate);
  font-family: 'Archivo', sans-serif;
  font-stretch: 80%;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.card-head > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.card-head h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  color: var(--ink);
  letter-spacing: 0.01em;
}

.provider-pill {
  display: inline-block;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--plate);
  font-family: 'Archivo', sans-serif;
  font-stretch: 80%;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plan-type-pill {
  font-family: 'Archivo', sans-serif;
  font-stretch: 82%;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- specs: the scored columns ------------------------------------------- */

.spec-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 11px;
  border-left: 1px solid var(--plate-edge);
}

.spec-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-stretch: 80%;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.spec-icon {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--red-ink);
}

svg.spec-icon {
  display: block;
}

.spec-value {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* --- the figure on the plate --------------------------------------------- */

.price-stack {
  display: grid;
  gap: 7px;
}

.price-row > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.price-row small {
  font-stretch: 80%;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* scoped to the plate: .convert-price also marks the fixtures figure and the
   modal's select cards, which carry their own scale */
.price-row strong {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.005em;
  color: var(--red-ink);
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
}

.price-row + .price-row strong {
  font-size: 1.35rem;
  color: var(--ink);
}

.price-note {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-faint);
}

.price-note-ok {
  color: #186344;
}

.price-note-alert {
  color: var(--red-ink);
}

/* --- the action ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: 'Archivo', sans-serif;
  font-stretch: 84%;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--tick), color var(--tick), transform var(--tick), border-color var(--tick);
}

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

.btn-primary {
  background: var(--steel);
  color: var(--board-deep);
}

[data-theme='bright'] .btn-primary {
  color: var(--plate);
}

.btn-primary:hover {
  background: var(--chalk);
  color: var(--board-deep);
}

[data-theme='bright'] .btn-primary:hover {
  background: var(--ink);
  color: var(--plate);
}

/* the order stamp carries .btn-primary too; its own hover must outrank the
   generic primary hover in every finish */
.order-btn:hover,
[data-theme='bright'] .order-btn:hover {
  background: var(--red-ink);
  color: var(--plate);
}

.btn-secondary {
  background: transparent;
  border-color: var(--seam-strong);
  color: var(--chalk);
}

.btn-secondary:hover {
  border-color: var(--steel);
  color: var(--steel);
}

.btn-login-cta {
  background: transparent;
  border-color: var(--steel-deep);
  color: var(--steel);
}

.btn-login-cta:hover {
  background: var(--steel);
  color: var(--board-deep);
}

[data-theme='bright'] .btn-login-cta:hover {
  color: var(--plate);
}

.order-btn {
  width: 100%;
  padding: 15px 14px;
  background: var(--ink);
  color: var(--plate);
  border: 0;
  border-radius: 2px;
  font-family: 'Archivo', sans-serif;
  font-stretch: 84%;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--tick), transform var(--tick);
}

.order-btn:hover {
  background: var(--red-ink);
}

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

/* --- out of stock -------------------------------------------------------- */

/* a plate taken off the board stacks rather than holding a ledger column it
   can no longer fill */
.pricing-card.out-of-stock {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  background: var(--plate-back);
  border-style: dashed;
  box-shadow: var(--lift-1);
}

.pricing-card.out-of-stock .card-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-card.out-of-stock::before,
.pricing-card.out-of-stock::after {
  background: var(--plate-edge);
}

.pricing-card.out-of-stock:hover {
  transform: none;
  box-shadow: var(--lift-1);
}

/* filtered out by the billing-cycle scrub: still readable, plainly not orderable */
.pricing-card.is-term-empty {
  background: var(--plate-back);
}

.pricing-card.is-term-empty:hover {
  transform: none;
  box-shadow: var(--plate-lift);
}

.term-empty-note {
  color: var(--red-ink);
  font-weight: 700;
}

.stock-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--red-ink) 12%, transparent);
  border-left: 2px solid var(--red-ink);
  color: var(--red-ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.order-btn.disabled,
.order-btn:disabled {
  background: var(--plate-edge);
  color: var(--plate);
  cursor: not-allowed;
}

.order-btn:disabled:hover {
  background: var(--plate-edge);
}

/* --- the board's footing note -------------------------------------------- */

.board-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--seam);
  font-size: 0.82rem;
  color: var(--chalk-dim);
}

.board-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.board-note b {
  color: var(--steel);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   11. Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--seam);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-head h2 {
  margin-bottom: 16px;
}

.section-head p {
  color: var(--chalk-dim);
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   12. Locations — the grounds
   -------------------------------------------------------------------------- */

.world-map-shell {
  position: relative;
  padding: clamp(12px, 2vw, 20px);
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
  box-shadow: var(--lift-2);
}

#worldMap {
  display: block;
  width: 100%;
  height: auto;
}

#worldMap .map-bg {
  fill: url(#oceanGradient);
}

#worldMap #mapGrid line,
#worldMap #mapGrid path {
  stroke: var(--seam);
  stroke-width: 0.6;
}

#worldMap #mapLand path {
  fill: color-mix(in srgb, var(--chalk) 12%, transparent);
  stroke: color-mix(in srgb, var(--chalk) 22%, transparent);
  stroke-width: 0.5;
}

[data-theme='bright'] #worldMap #mapLand path {
  fill: color-mix(in srgb, var(--ink) 16%, transparent);
  stroke: color-mix(in srgb, var(--ink) 30%, transparent);
}

#worldMap #mapRoutes path {
  fill: none;
  stroke: var(--steel);
  stroke-width: 0.7;
  stroke-dasharray: 3 5;
  opacity: 0.5;
}

#worldMap #locationMarkers circle {
  fill: var(--steel);
  stroke: var(--board-deep);
  stroke-width: 1;
  cursor: pointer;
  transition: fill var(--tick);
}

#worldMap #locationMarkers circle:hover {
  fill: var(--red-chalk);
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  padding: 8px 12px;
  background: var(--plate);
  color: var(--ink);
  font-stretch: 82%;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: var(--lift-2);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--tick);
}

.map-tooltip.visible {
  opacity: 1;
}

.map-hint {
  margin-top: 14px;
  font-stretch: 80%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2px;
  margin-top: clamp(26px, 3.4vw, 38px);
  padding: 3px;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
}

.location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  background: var(--board-rail);
  transition: background var(--tick);
}

.location-card:hover {
  background: var(--board-lip);
}

.location-card-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.location-card-main strong {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--chalk);
}

.location-code {
  font-stretch: 80%;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.location-country {
  font-size: 0.78rem;
  color: var(--chalk-dim);
}

.status-chip {
  padding: 4px 8px;
  background: color-mix(in srgb, var(--live) 16%, transparent);
  color: var(--live);
  font-stretch: 80%;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex: none;
}

/* --------------------------------------------------------------------------
   13. Payments — the counterfoils
   -------------------------------------------------------------------------- */

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.payment-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 28px);
  color: var(--ink);
  background-color: var(--plate);
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 27px,
    color-mix(in srgb, var(--ink) 8%, transparent) 27px 28px
  );
  border: 1px solid var(--plate-edge);
  box-shadow: var(--lift-2);
}

/* the perforated stub edge of a counterfoil */
.payment-card {
  position: relative;
}

.payment-card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background-image: radial-gradient(circle at 4px 0, var(--board) 0 3px, transparent 3.5px);
  background-size: 12px 5px;
}

.payment-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--plate);
  background: var(--ink);
}

.payment-icon svg {
  width: 21px;
  height: 21px;
}

.payment-card h3 {
  color: var(--ink);
}

.payment-card > p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.payment-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--plate-edge);
}

.payment-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--plate-edge);
}

.payment-list li span:first-child {
  font-stretch: 80%;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: none;
}

.payment-list li span:last-child {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.note-text {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.note-text strong {
  color: var(--red-ink);
}

/* --------------------------------------------------------------------------
   14. FAQ — the scorer's queries
   -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 2px;
  padding: 3px;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
}

.faq-item {
  background: var(--board-rail);
  border-left: 2px solid transparent;
  transition: border-color var(--tick), background var(--tick);
}

.faq-item.active {
  border-left-color: var(--steel);
  background: var(--board-lip);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 19px 20px;
  background: transparent;
  border: 0;
  color: var(--chalk);
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.15;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--steel);
}

.faq-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--steel-deep);
  color: var(--steel);
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--swing);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* the answer opens on a grid row rather than a measured max-height, so nothing
   has to be recalculated on resize and the browser never reflows the page */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--settle);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer > p {
  overflow: hidden;
  min-height: 0;
  padding: 0 20px 20px;
  font-size: 0.94rem;
  color: var(--chalk-dim);
}

/* --------------------------------------------------------------------------
   15. Contact — the closing plate
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  color: var(--ink);
  background: linear-gradient(180deg, var(--plate) 0%, var(--plate-shade) 100%);
  border: 1px solid var(--plate-edge);
  border-radius: var(--plate-radius);
  box-shadow: var(--plate-lift);
  text-decoration: none;
  transition: transform var(--swing), box-shadow var(--swing);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 0 var(--plate-edge), 0 18px 30px -12px rgba(2, 4, 10, 0.66);
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--plate);
  background: var(--ink);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h3 {
  color: var(--ink);
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-handle {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--plate-edge);
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--red-ink);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   16. Footer — the base beam
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(46px, 6vw, 72px) 34px;
  background: var(--board-deep);
  border-top: 2px solid var(--seam-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(26px, 4vw, 52px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--seam);
}

.footer-brand .brand-text {
  font-size: 2rem;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--chalk-dim);
}

.footer-title {
  margin-bottom: 14px;
  font-stretch: 80%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--chalk-dim);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color var(--tick);
}

.footer-links a:hover {
  color: var(--chalk);
  text-decoration: underline;
}

.footer-bottom {
  display: grid;
  gap: 7px;
  padding-top: 26px;
  font-size: 0.8rem;
  color: var(--chalk-dim);
}

.footer-bottom a {
  color: var(--steel);
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   17. Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 210;
  padding: 14px 22px;
  background: var(--plate);
  color: var(--ink);
  font-weight: 700;
  border-radius: 2px;
  box-shadow: var(--lift-3);
  transform: translate(-50%, 130%);
  transition: transform var(--settle);
}

.toast.show {
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   18. Order modal — the scorer's docket
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 30px);
  background: rgba(2, 4, 10, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--swing), visibility var(--swing);
}

.modal-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

body.modal-open {
  overflow: hidden;
}

.order-modal {
  position: relative;
  width: min(1000px, 100%);
  max-height: 92dvh;
  background: var(--board-rail);
  border: 1px solid var(--seam-strong);
  box-shadow: var(--lift-3);
  transform: translateY(18px);
  transition: transform var(--settle);
}

.modal-backdrop.visible .order-modal {
  transform: none;
}

.modal-scroll {
  max-height: 92dvh;
  overflow-y: auto;
  padding: clamp(22px, 3vw, 34px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
  color: var(--chalk);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--tick), color var(--tick);
}

.modal-close:hover {
  background: var(--red);
  color: var(--plate);
}

.modal-header {
  max-width: 62ch;
  padding-right: 46px;
  margin-bottom: 24px;
}

.modal-header h3 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.modal-header p {
  font-size: 0.92rem;
  color: var(--chalk-dim);
}

.modal-summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  gap: 2px;
  padding: 3px;
  margin-bottom: 26px;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
}

.summary-plan {
  padding: 20px;
  background: var(--board-lip);
}

.modal-plan-title {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.summary-plan p {
  font-size: 0.88rem;
  color: var(--chalk-dim);
}

.modal-plan-notice {
  margin-top: 10px;
  padding: 8px 11px;
  background: color-mix(in srgb, var(--red) 20%, transparent);
  border-left: 2px solid var(--red-chalk);
  color: var(--red-chalk);
  font-size: 0.82rem;
  font-weight: 600;
}

.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.summary-mini {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 9px;
  background: var(--board-deep);
  font-stretch: 82%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}

.summary-mini strong {
  color: var(--chalk);
}

/* the total hangs as the board's headline figure */
.total-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--plate) 0%, var(--plate-shade) 100%);
}

.pill-note {
  font-stretch: 80%;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.total-card > strong {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--red-ink);
  font-variant-numeric: tabular-nums;
}

.total-card > small {
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.total-meta {
  display: grid;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid var(--plate-edge);
}

.total-meta > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--plate-edge);
  font-size: 0.78rem;
}

.total-meta > div span:first-child {
  font-stretch: 80%;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.total-meta > div span:last-child {
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

/* --- the gated steps ------------------------------------------------------ */

.order-steps {
  display: grid;
  gap: 2px;
  padding: 3px;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
}

.step-card {
  padding: 20px;
  background: var(--board-lip);
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.step-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--steel);
  color: var(--board-deep);
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

[data-theme='bright'] .step-number {
  color: var(--plate);
}

.step-head h4 {
  margin-bottom: 5px;
}

.step-head p {
  font-size: 0.84rem;
  color: var(--chalk-dim);
}

.select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.location-select-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.select-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 14px 15px;
  text-align: left;
  background: var(--board-deep);
  border: 1px solid var(--seam-strong);
  border-radius: 2px;
  color: var(--chalk);
  cursor: pointer;
  transition: border-color var(--tick), background var(--tick), transform var(--tick);
}

.select-card:hover:not(.disabled):not(.fixed) {
  border-color: var(--steel-deep);
  background: var(--board-rail);
}

.select-card > span {
  font-stretch: 82%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}

.select-card > strong {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.select-card > small {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--chalk-dim);
}

.select-card.active {
  background: var(--plate);
  border-color: var(--plate);
  color: var(--ink);
}

.select-card.active > span {
  color: var(--ink-faint);
}

.select-card.active > strong {
  color: var(--red-ink);
}

.select-card.active > small {
  color: var(--ink-soft);
}

.select-card.disabled,
.select-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.select-card.fixed {
  cursor: default;
}

.payment-detail-box {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--board-deep);
  border-left: 2px solid var(--steel);
  font-size: 0.86rem;
  color: var(--chalk-dim);
}

.payment-detail-box strong {
  color: var(--chalk);
}

/* the instructions are a ledger, not prose: label left, value right, one
   hairline seam per row so the eye can run down the numbers */
.payment-detail-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--seam);
}

.payment-detail-box li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 9px 0;
  background: var(--board-deep);
}

.payment-detail-box li span:first-child {
  flex: 0 0 auto;
  font-stretch: 82%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}

.payment-detail-box li span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
  /* account numbers and SWIFT codes have no spaces to break on */
  overflow-wrap: anywhere;
}

.mini-copy {
  margin-top: 14px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--seam-strong);
  border-radius: 2px;
  font-family: 'Archivo', sans-serif;
  font-stretch: 84%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  cursor: pointer;
  transition: border-color var(--tick), color var(--tick);
}

.mini-copy:hover,
.mini-copy:focus-visible {
  border-color: var(--steel);
  color: var(--steel);
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkout-actions .btn {
  flex: 1 1 200px;
}

/* --- the terminal stamp -------------------------------------------------- */

/* every other action on the board is a step; this one commits the order, so
   it takes the full width and the red enamel no other control is allowed */
.checkout-link {
  flex: 1 1 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 24px;
  background: var(--red);
  color: var(--plate);
  border: 0;
  border-radius: 2px;
  font-family: 'Archivo', sans-serif;
  font-stretch: 84%;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--lift-2);
  transition: background var(--tick), transform var(--tick), box-shadow var(--tick);
}

.checkout-link:hover:not(.disabled):not(:disabled) {
  background: var(--red-ink);
  box-shadow: var(--lift-3);
}

.checkout-link:active:not(.disabled):not(:disabled) {
  transform: translateY(1px);
  box-shadow: var(--lift-1);
}

.checkout-link:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

/* locked until a location is picked — reads as an unlit plate, not a bug */
.checkout-link.disabled,
.checkout-link:disabled {
  background: var(--board-rail);
  color: var(--chalk-dim);
  box-shadow: none;
  cursor: not-allowed;
}

.helper-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--chalk-dim);
}

/* --------------------------------------------------------------------------
   19. Motion — one authored moment: the plate settles on its hook
   -------------------------------------------------------------------------- */

.js-enabled .reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(-14px);
}

.reveal {
  transition: opacity var(--settle), transform var(--settle);
}

.js-enabled .pricing-card.reveal:not(.in-view),
.js-enabled .contact-card.reveal:not(.in-view) {
  transform: translateY(-22px) rotate(-1.1deg);
  transform-origin: 26px -5px;
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal:not(.in-view),
  .js-enabled .pricing-card.reveal:not(.in-view),
  .js-enabled .contact-card.reveal:not(.in-view) {
    opacity: 1;
    transform: none;
  }

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

/* --------------------------------------------------------------------------
   20. Adaptation
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .board-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .service-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .provider-summary {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid var(--plate-edge);
  }

  .modal-summary-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the ledger scales before it ever wraps */
@media (max-width: 1080px) and (min-width: 861px) {
  .ledger-heads,
  .pricing-card {
    grid-template-columns: minmax(160px, 1.4fr) minmax(230px, 2fr) minmax(130px, 1fr) 120px;
    gap: 12px;
  }

  .card-head h3 {
    font-size: 1.4rem;
  }

  .spec-value {
    font-size: 1.2rem;
  }

  .price-row strong,
  .convert-price {
    font-size: 1.5rem;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-theme-toggle-text {
    display: none;
  }
}

/* On a phone the board head would spend the whole first viewport on a headline,
   so the fixtures panel moves below the ledger and the hooks pair up: the
   thesis is a price on the board, and a price has to be on screen. */
@media (max-width: 767px) {
  .board > .container {
    display: flex;
    flex-direction: column;
  }

  .board-head {
    display: contents;
  }

  .announcement-bar { order: 1; }
  .board-title { order: 2; }
  .board-selector { order: 3; }
  .board-fixtures { order: 4; margin-top: 30px; }
  .board-note { order: 5; }

  .board-title {
    padding-bottom: 18px;
    border-bottom: 2px solid var(--seam-strong);
  }

  .board-lede {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .board-title {
    padding-bottom: 14px;
  }

  .board-selector {
    margin-top: 16px;
  }

  .board-scrub {
    margin-bottom: 10px;
  }

  /* All three actions share one line so the plate clears the corner the floating
     chat launcher occupies; the price is the thing that must survive the fold. */
  .board-actions {
    margin-top: 14px;
    gap: 6px;
    flex-wrap: nowrap;
  }

  /* 0.64rem rendered at 10.24px, under the 11px legibility floor, and on the
     three primary actions of the audience most likely to be on a phone. The
     tighter tracking and padding buy the size back without breaking the single
     line the price depends on to clear the fold. */
  .board-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 4px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .service-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-tab {
    padding: 12px 13px 13px;
  }

  .service-tab small {
    margin-top: 5px;
    font-size: 0.62rem;
  }
}

/* below this the plate hangs vertically, still a plate */
@media (max-width: 860px) {
  .ledger-heads {
    display: none;
  }

  .pricing-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px 18px;
  }

  .card-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--plate-edge);
  }

  .spec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .price-stack {
    padding-top: 4px;
    border-top: 1px solid var(--plate-edge);
  }

  .price-row > div {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .price-row small {
    font-size: 0.66rem;
  }

  .board-fixtures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --rail-h: 66px;
  }

  /* the notice yields the fold to the board: one line, compact action inline */
  .announcement-bar {
    align-items: center;
    gap: 8px 10px;
    padding: 9px 11px;
    flex-wrap: nowrap;
  }

  .announcement-bar-body {
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .announcement-bar-title {
    font-size: 0.94rem;
  }

  .announcement-bar-copy p {
    display: none;
  }

  .live-chip {
    display: none;
  }

  .announcement-bar .btn {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .board-fixtures {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-actions .btn {
    flex: 1 1 100%;
  }

  .step-card,
  .summary-plan,
  .total-card {
    padding: 16px;
  }
}

/* On a phone the figure belongs on the plate's own top line, beside the plan it
   prices — which is how a scoreboard line reads anyway, and what puts a real
   price inside the first viewport at 390x844. Declared after the 860 block so
   it governs the stacked plate. */
@media (max-width: 767px) {
  .pricing-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'head price'
      'specs specs'
      'order order';
    column-gap: 14px;
    row-gap: 14px;
  }

  .card-head {
    grid-area: head;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .spec-list {
    grid-area: specs;
    padding-top: 14px;
    border-top: 1px solid var(--plate-edge);
  }

  .price-stack {
    grid-area: price;
    justify-items: end;
    padding-top: 0;
    border-top: 0;
    text-align: right;
  }

  .price-row > div {
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
  }

  .order-btn {
    grid-area: order;
  }

  .pricing-card.out-of-stock {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'head' 'price' 'specs' 'order';
  }

  .pricing-card.out-of-stock .price-stack {
    justify-items: start;
    text-align: left;
  }

  .stock-note {
    grid-column: 1 / -1;
  }

}

/* --------------------------------------------------------------------------
   21. The assistant widget — re-coated in the board's materials
   (structure and class names belong to assets/css/assistant.css)
   -------------------------------------------------------------------------- */

.vpnx-assistant {
  --va-text: var(--chalk);
  --va-muted: var(--chalk-dim);
  --va-faint: var(--chalk-dim);
  --va-brand: var(--steel);
  --va-brand-hover: var(--steel-deep);
  --va-brand-2: var(--steel);
  --va-brand-grad: linear-gradient(135deg, var(--steel), var(--steel-deep));
  --va-stroke: var(--seam);
  --va-stroke-strong: var(--seam-strong);
  --va-panel: var(--board-rail);
  --va-surface: rgba(226, 236, 250, 0.05);
  --va-bubble-bot: rgba(226, 236, 250, 0.07);
  --va-bubble-bot-stroke: var(--seam);
  --va-field: var(--board-deep);
  --va-shadow: var(--lift-3);
  font-family: 'Archivo', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
}

[data-theme='bright'] .vpnx-assistant {
  --va-text: var(--ink);
  --va-muted: var(--ink-soft);
  --va-faint: var(--ink-faint);
  --va-panel: var(--plate);
  --va-surface: rgba(18, 20, 26, 0.04);
  --va-bubble-bot: rgba(18, 20, 26, 0.06);
  --va-field: rgba(18, 20, 26, 0.05);
}

/* --------------------------------------------------------------------------
   22. Print — the board as a slip you can carry to the counter
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-preloader,
  .mobile-drawer,
  .mobile-overlay,
  .modal-backdrop,
  .toast,
  .order-btn,
  .board-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .pricing-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
