/*
 * Practical Tech Guild — the one stylesheet for every page.
 *
 * Why it looks like this (DECISIONS #1–#3):
 *   - Light page, navy text and a few navy bands, gold as a sparing accent.
 *     Colors are the logo files' navy #0B2E6B and gold #FFB915.
 *   - Bright gold never carries small text on white (it fails contrast);
 *     gold-colored text uses --gold-ink instead.
 *   - IBM Plex Sans for text, IBM Plex Mono for measured numbers and chart
 *     labels. Both are served from /assets/fonts (no outside font service;
 *     INVARIANTS #2).
 *   - Plain CSS custom properties and semantic class names. No framework,
 *     no build step, no JavaScript needed for any layout or menu. The one
 *     script, /assets/js/theme.js, only adds the light/dark switch.
 */

/* ---------- Fonts (self-hosted, Latin-1 subsets from IBM/plex v1.1.0) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Bold-Latin1.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --navy: #0B2E6B;          /* logo navy */
  --gold: #FFB915;          /* logo gold: fills, bars, accents only */

  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-2: #F1F3F7;
  --text: #17223A;
  --heading: #0B2E6B;
  --muted: #4A5568;
  --line: #DFE3EA;
  --gold-ink: #8A5A00;      /* gold-colored text on light: 5.6:1 on white */
  --gold-soft: #FFF4D6;
  --link: #0B2E6B;
  --focus: #0B2E6B;

  --band-bg: #0B2E6B;       /* solid navy band */
  --band-text: #F4F6FA;
  --band-muted: #C3CDE0;

  --btn-bg: #FFB915;        /* the booking button: gold with navy text, 7:1 */
  --btn-text: #0B2E6B;
  --btn-bg-hover: #FFC63F;

  --chart-grid: #E3E7EE;
  --chart-base: #8793A8;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(11, 46, 107, .06), 0 4px 16px rgba(11, 46, 107, .06);

  --f-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1120px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

/*
 * Dark mode. Two identical token blocks (DECISIONS #11):
 *   1. the visitor's system setting, unless they picked light with the switch;
 *   2. the switch set to dark (/assets/js/theme.js sets data-theme on <html>).
 * Keep the two blocks identical: a test fails if they drift.
 */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* dark-tokens:start */
    --bg: #08111F;
    --surface: #0F1C33;
    --surface-2: #14243F;
    --text: #E6EBF3;
    --heading: #F4F6FA;
    --muted: #A9B4C7;
    --line: #22334F;
    --gold-ink: #FFC94A;
    --gold-soft: #2A2410;
    --link: #FFD36B;
    --focus: #FFB915;

    --band-bg: #0B2E6B;
    --band-text: #F4F6FA;
    --band-muted: #C3CDE0;

    --chart-grid: #22334F;
    --chart-base: #8E9AB0;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    /* dark-tokens:end */
  }
}

:root[data-theme="dark"] {
  /* dark-tokens:start */
  --bg: #08111F;
  --surface: #0F1C33;
  --surface-2: #14243F;
  --text: #E6EBF3;
  --heading: #F4F6FA;
  --muted: #A9B4C7;
  --line: #22334F;
  --gold-ink: #FFC94A;
  --gold-soft: #2A2410;
  --link: #FFD36B;
  --focus: #FFB915;

  --band-bg: #0B2E6B;
  --band-text: #F4F6FA;
  --band-muted: #C3CDE0;

  --chart-grid: #22334F;
  --chart-base: #8E9AB0;

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  /* dark-tokens:end */
}

/* Theme-dependent images and icons: the badge and the switch's sun/moon. */
.logo-dark, .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-dark,
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .logo-light,
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .logo-dark,
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .logo-light,
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--heading); padding: 10px 14px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { padding-top: 0; }
.section--alt { background: var(--surface-2); }
.section--alt + .section, .section + .section--alt, .band + .section { padding-top: clamp(56px, 8vw, 104px); }
.section--alt + .section--alt { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: .75rem;
}
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.fine { font-size: .875rem; color: var(--muted); }
.mono { font-family: var(--f-mono); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--f-sans);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-book { background: var(--btn-bg); color: var(--btn-text); }
.btn-book:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--heading); border-color: currentColor; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .9375rem; }
.btn-lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.0625rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { width: 1em; height: 1em; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 10px; min-height: 72px; }
.header-inner > .brand { margin-right: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); flex: none; }
.brand img { width: 36px; height: 44px; }
.brand-name {
  font-weight: 600; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.15;
}
.nav-desktop { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
/* Every menu link hovers with the same pill shape as the buttons beside it.
   The current page is marked by a gold bar drawn separately, so it never
   changes the link's corners. */
.nav-list a:not(.btn) {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--text); text-decoration: none; font-weight: 500; border-radius: 999px;
}
.nav-list a:not(.btn):hover { color: var(--heading); background: var(--surface-2); }
.nav-list a[aria-current="page"] { color: var(--heading); }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 2px; border-radius: 2px; background: var(--gold);
}
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }

/* Light/dark switch: shown only once theme.js has run (it starts hidden). */
.theme-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--heading); cursor: pointer;
  transition: background-color .15s ease;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 20px; height: 20px; }
.btn-portal { background: transparent; color: var(--heading); border: 2px solid var(--heading); }
.btn-portal:hover { background: var(--surface-2); }
.btn-portal svg { width: 16px; height: 16px; }

/* Mobile menu: <details>, so it needs no JavaScript. */
.nav-mobile { position: relative; }
.nav-mobile > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; color: var(--heading); background: var(--surface);
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile { flex: none; }
.nav-mobile > summary svg { width: 18px; height: 18px; flex: none; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px;
}
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel li a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--text); text-decoration: none; font-weight: 500; border-radius: var(--radius-sm);
}
.nav-panel li a:not(.btn):hover { background: var(--surface-2); }
.nav-panel li a[aria-current="page"] { color: var(--heading); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.nav-panel .panel-actions { display: grid; gap: 10px; padding: 10px 2px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.nav-panel .btn { width: 100%; }

@media (max-width: 440px) {
  .brand { gap: 10px; }
  .brand-name { font-size: .78rem; letter-spacing: .1em; }
  /* Narrow phones: the menu button becomes a round icon button like the theme
     switch beside it; "Menu" stays readable to screen readers. */
  .nav-mobile > summary { width: 44px; padding: 0; justify-content: center; }
  .nav-mobile .menu-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
@media (min-width: 1080px) {
  .nav-desktop { display: flex; align-items: center; }
  .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero + .section { padding-top: clamp(8px, 2vw, 24px); }
.hero + .section--alt { padding-top: clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 15ch; }
.hero .tagline { font-weight: 600; color: var(--heading); font-size: 1.15rem; margin-bottom: .35rem; }
.price-line {
  border-left: 3px solid var(--gold);
  padding: .2em 0 .2em 1em;
  margin: 1.5rem 0 1.75rem;
  max-width: 34rem;
}
.price-line strong { display: block; color: var(--heading); font-size: 1.125rem; }
.price-line span { color: var(--muted); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* Hero: client impact tiles (DECISIONS #16). */
.impact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(16px, 2.5vw, 24px);
}
.impact-title {
  font: 500 .8125rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 14px;
}
.impact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.impact-stat { display: flex; flex-direction: column; background: var(--surface-2); border-radius: var(--radius-sm); padding: 18px 16px; }
.impact-num {
  font-family: var(--f-sans); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  line-height: 1.05; color: var(--heading); letter-spacing: -.03em;
}
.impact-num small { font-size: .34em; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.impact-label { margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.impact-stat--accent { background: var(--band-bg); }
.impact-stat--accent .impact-num { color: var(--gold); }
.impact-stat--accent .impact-label, .impact-stat--accent .impact-num small { color: var(--band-muted); }
.impact-note { margin: 12px 0 0; color: var(--muted); font-size: .875rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--gold-soft); color: var(--heading);
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); }

/* ---------- Comparison ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare caption { text-align: left; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; }
.compare thead th { font-size: .95rem; }
.compare thead th:first-child { width: 22%; }
.compare tbody th { font-weight: 600; color: var(--heading); }
.compare tbody tr + tr > * { border-top: 1px solid var(--line); }
.compare .col-them { color: var(--muted); }
.compare .col-us { background: var(--surface); }
.compare thead .col-us { background: var(--band-bg); color: var(--band-text); border-radius: var(--radius) var(--radius) 0 0; }
.compare thead .col-them { color: var(--muted); }
.compare tbody tr:last-child .col-us { border-radius: 0 0 var(--radius) var(--radius); }
.compare .mark { display: inline-flex; align-items: flex-start; gap: 10px; }
.compare .mark svg { width: 18px; height: 18px; flex: none; margin-top: .2em; }
.compare .col-us .mark svg { color: var(--gold-ink); }
.compare .col-them .mark svg { color: var(--muted); }
@media (max-width: 699px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--surface); }
  .compare tbody tr + tr > * { border-top: 0; }
  .compare tbody th { background: var(--surface-2); padding: 12px 16px; }
  .compare td { padding: 12px 16px; }
  .compare td::before {
    content: attr(data-label); display: block;
    font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 4px;
  }
  .compare td.col-us { border-top: 1px solid var(--line); }
  .compare td.col-us::before { color: var(--gold-ink); }
}

/* ---------- Steps diagram ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px 22px;
}
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--band-bg); color: var(--band-text); font: 500 1rem/1 var(--f-mono); margin-bottom: 14px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); margin-bottom: 0; }
.step .measure { margin-top: 14px; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .step { border-radius: 0; border-right-width: 0; }
  .step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .step:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right-width: 1px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; right: -12px; z-index: 1;
    width: 22px; height: 22px; background: var(--surface);
    border-top: 1px solid var(--line); border-right: 1px solid var(--line);
    transform: rotate(45deg);
  }
}
.wont {
  margin-top: 22px; display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius); background: var(--gold-soft);
  color: var(--text);
}
.wont svg { width: 22px; height: 22px; flex: none; color: var(--gold-ink); margin-top: .15em; }
.wont p { margin: 0; }

/* Step-progress strip under the steps: baseline → goal. */
.progress-strip { margin-top: 18px; }
.progress-strip text { font-family: var(--f-mono); font-size: 12px; fill: var(--muted); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.25em; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--gold-ink); margin-top: .15em; }
@media (min-width: 760px) { .checklist.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.fit-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .fit-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.where {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 8px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.where svg { width: 22px; height: 22px; flex: none; color: var(--heading); margin-top: .15em; }
.where p { margin: 0; }

/* ---------- Results ---------- */
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.case-body { padding: clamp(22px, 3.5vw, 40px); }
.case h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); line-height: 1.35; max-width: 50ch; }
.case-body p:last-child { margin-bottom: 0; }
.stats { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { background: var(--surface); padding: 22px clamp(22px, 3.5vw, 40px); }
.stat-num {
  display: block; font-family: var(--f-mono); font-weight: 500;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.1; color: var(--heading);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.stat-num small { font-size: .45em; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.stat-label { display: block; color: var(--muted); margin-top: 6px; }
.stat--accent .stat-num { color: var(--gold-ink); }
.case-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 16px clamp(22px, 3.5vw, 40px); border-top: 1px solid var(--line); background: var(--surface-2); }
.case-foot .fine { margin: 0; }

.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.finding { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.finding-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 12px; }
.finding h3 { margin: 0; }
.verdict {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 500;
}
.finding dl { margin: 0; display: grid; gap: 10px; }
.finding dt { font-weight: 600; color: var(--heading); }
.finding dd { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .finding dl { grid-template-columns: 110px minmax(0, 1fr); } }
.note-box { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--surface); }
.note-box p:last-child { margin-bottom: 0; }

/* ---------- Tiers (Solutions, DECISIONS #20, #23) ----------
   Every card lists every line item, included or not, in the same order. On wide screens the
   rows line up across the three cards (subgrid); the row spans below are generated.
   Starter: light head. Measured (recommended): gold head and border. Partnered: navy head. */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; }
@media (min-width: 920px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier {
  --tier-ink: var(--heading);
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.tier-head { position: relative; padding: 22px 22px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tier-kicker {
  display: block; font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 8px;
}
.tier-name { font-size: 1.35rem; font-weight: 700; margin: 0 0 .3em; }
.tier-tag { margin: 0; font-style: italic; color: var(--muted); }

.tier--featured { --tier-ink: var(--gold-ink); border: 2px solid var(--gold); }
.tier--featured .tier-head { background: var(--gold); border-bottom-color: var(--gold); }
.tier--featured .tier-kicker, .tier--featured .tier-name, .tier--featured .tier-tag { color: var(--navy); }
.tier--partnered .tier-head { background: var(--band-bg); border-bottom-color: var(--band-bg); }
.tier--partnered .tier-kicker { color: var(--gold); }
.tier--partnered .tier-name { color: var(--band-text); }
.tier--partnered .tier-tag { color: var(--band-muted); }
.tier-badge {
  position: absolute; top: 18px; right: 18px; padding: 5px 11px; border-radius: 999px;
  background: var(--navy); color: var(--gold); font: 600 .6875rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}

.tier-for { margin: 0; padding: 18px 22px 2px; color: var(--muted); font-size: .9375rem; }
.tier-group {
  display: flex; align-items: center; gap: 8px; margin: 16px 22px 6px; padding: 6px 10px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--heading);
}
.tier--featured .tier-group { background: var(--gold-soft); }
.tier-group svg { width: 16px; height: 16px; flex: none; color: var(--tier-ink); }
.tier-list { list-style: none; margin: 0; padding: 0 22px; display: grid; font-size: .9375rem; line-height: 1.4; }
.tier-list li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.tier-list .mark { width: 18px; height: 18px; flex: none; margin-top: .06em; color: var(--tier-ink); }
.tier-list .tick { stroke: var(--surface); }
.tier-list .is-out { color: var(--muted); }
.tier-list .is-out .mark { opacity: .5; color: var(--muted); }
.tier-list strong { color: var(--heading); font-weight: 600; }
.tier-foot { margin-top: auto; padding: 20px 22px 22px; }
.tier-foot .btn { width: 100%; }

@supports (grid-template-rows: subgrid) {
  @media (min-width: 920px) {
    .tier { display: grid; grid-template-rows: subgrid; row-gap: 0; }
    .tier-list { grid-template-rows: subgrid; }
    .tier-foot { align-self: end; }
/* tiers-rows:start */
.tier { grid-row: span 37; }
.tier-list--7 { grid-row: span 7; } .tier-list--8 { grid-row: span 8; }
/* tiers-rows:end */
  }
}

/* In every tier. */
.tier-every { margin-top: 28px; padding: clamp(20px, 3vw, 28px); border-left: 3px solid var(--gold); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
.tier-every h3 { margin-bottom: 14px; }
.tier-every-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 28px; font-size: .9375rem; line-height: 1.5; }
@media (min-width: 760px) { .tier-every-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tier-every-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier-every-list li { display: flex; gap: 10px; align-items: flex-start; }
.tier-every-list svg { width: 18px; height: 18px; flex: none; margin-top: .15em; color: var(--gold-ink); }
.tier-every-list strong { color: var(--heading); }
.tier-addons { margin: 18px 0 0; color: var(--muted); }

/* The Payments Platform card: two columns wide where the grid has room. */
@media (min-width: 640px) { .card--wide { grid-column: span 2; } }
.card-stat-label { margin: -4px 0 12px; font-weight: 600; color: var(--heading); }
.card-tag {
  display: block; margin-top: 6px; font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink);
}

/* Featured card with a headline number (Solutions: card fees). */
.card--feature { border: 2px solid var(--gold); background: var(--gold-soft); }
.card .card-stat {
  font-family: var(--f-sans); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  line-height: 1; letter-spacing: -.03em; color: var(--gold-ink); margin: 0 0 12px;
}
.card .card-stat small { font-size: .34em; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.card--feature p { color: var(--text); }

/* Brochure download strip and button. */
.brochure-strip {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 24px; padding: 22px clamp(20px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
}
.brochure-strip h3 { margin: 0 0 .25em; }
.brochure-strip p { margin: 0; color: var(--muted); }
.btn-download svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-note { font: 500 .75em/1 var(--f-mono); letter-spacing: .04em; opacity: .8; }
.band .btn-ghost { color: var(--band-text); }
.band .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* About: George's own sections. */
.signature { font-weight: 600; color: var(--heading); }
.signature::before { content: "— "; }

/* ---------- About teaser / credentials ---------- */
.about-teaser { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .about-teaser { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }
.creds { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.creds li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.creds svg { width: 22px; height: 22px; flex: none; color: var(--gold-ink); margin-top: .1em; }
.quote-line { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 600; color: var(--heading); line-height: 1.35; }

/* ---------- Navy band (call section) ---------- */
.band { background: var(--band-bg); color: var(--band-text); padding: clamp(56px, 8vw, 96px) 0; }
.band h2, .band h3 { color: var(--band-text); }
.band p, .band .muted { color: var(--band-muted); }
.band .eyebrow { color: var(--gold); }
.band a:not(.btn) { color: var(--gold); }
.band :focus-visible { outline-color: var(--gold); }
.call-steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; }
@media (min-width: 760px) { .call-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.call-steps li { border-top: 2px solid rgba(255, 255, 255, .18); padding-top: 16px; }
.call-steps .n { font-family: var(--f-mono); color: var(--gold); font-size: .9rem; display: block; margin-bottom: 6px; }
.call-steps strong { display: block; color: var(--band-text); font-size: 1.1rem; margin-bottom: 4px; }
.no-pressure { font-weight: 600; color: var(--band-text) !important; font-size: 1.125rem; }
.contact-fallback { margin-top: 22px; font-size: .95rem; }
.contact-fallback a { overflow-wrap: anywhere; }
.mt-lg { margin-top: 28px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 44rem; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 44rem; }
.prose .eyebrow + h2 { margin-top: 0; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }

.contact-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list svg { width: 24px; height: 24px; flex: none; color: var(--heading); margin-top: .1em; }
.contact-list .k { display: block; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list .v { font-weight: 600; font-size: 1.15rem; }

.faq { display: grid; gap: 10px; max-width: 46rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--gold-ink); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.soon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .soon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.soon-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.soon-list svg { width: 22px; height: 22px; flex: none; color: var(--muted); margin-top: .1em; }
.status-pill {
  display: inline-block; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}

.shield-panel { display: grid; gap: 28px; align-items: center; }
.shield-panel img { width: min(260px, 70%); margin: 0 auto; }
@media (min-width: 860px) { .shield-panel { grid-template-columns: 300px minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.25fr .8fr 1.5fr .75fr; } }
.site-footer h2 { font-size: .8rem; font-family: var(--f-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a:not(.btn) { color: var(--text); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:not(.btn):hover { text-decoration: underline; color: var(--heading); }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); margin-bottom: 8px; }
.footer-tagline { font-weight: 600; color: var(--heading) !important; }
.site-footer .email { overflow-wrap: anywhere; }
.footer-bottom p { margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-bottom ul { display: flex; gap: 18px; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(64px, 10vw, 120px) 0; }
.notfound .code { font-family: var(--f-mono); color: var(--gold-ink); font-size: 1rem; letter-spacing: .1em; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-mobile, .skip-link, .band .btn, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* The booking calendar on /book/ (DECISIONS #25): a frame of the scheduling page, fixed height
   because the site runs no script to size it. */
.booking-frame { display: block; width: 100%; height: 900px; border: 0; border-radius: 12px; background: #fff; }
@media (max-width: 640px) { .booking-frame { height: 1250px; } }
