/* chinavpn.travel - site.css
 *
 * LIFTED VERBATIM from design/mockups.html (the designer's buildable reference),
 * per DESIGN-DIRECTION.md section 10.1: "do not rewrite it".
 *
 * This is the WHOLE stylesheet. The bimvpn-website/v1.2 charter files
 * (main.css, v06.css) were deleted rather than layered under this one: they
 * ship .btn--primary { color: #FFF } on #F58300, which measures 2.58:1 and
 * fails WCAG AA. Keeping them in the cascade would have meant fighting that
 * rule on every page. Deleting them means it cannot come back.
 *
 * Primary button is --on-accent (#1E1E1E) on --orange: 6.45:1, passes AA.
 *
 * Site-specific additions the mockup did not need are at the bottom, under
 * "PAGE-LEVEL ADDITIONS", and only there.
 */

/* ==========================================================================
   chinavpn.travel - design tokens
   Dark first. :root IS the dark theme, [data-theme="light"] overrides.
   Every text/background pair here is measured against WCAG AA.
   ========================================================================== */
:root {
  /* Brand constants - identical in both themes */
  --orange:        #F58300;
  --orange-light:  #FF9F2E;
  --jade:          #4FA88B;
  --clay:          #C4553F;
  --orange-wash:   rgba(245,131,0,0.10);
  --orange-edge:   rgba(245,131,0,0.28);
  --jade-wash:     rgba(79,168,139,0.12);
  --clay-wash:     rgba(196,85,63,0.12);

  /* Dark theme */
  --bg:           #1E1E1E;
  --bg-deep:      #171614;
  --surface:      #26241F;
  --surface-2:    #302D26;
  --line:         rgba(255,247,235,0.09);
  --line-strong:  rgba(255,247,235,0.17);
  --fg:           #EDE9E3;   /* 13.79:1 */
  --fg-2:         #C4BEB4;   /*  9.03:1 */
  /* Measured on --surface (the elevated card/table background, composites to
   * #302D26), not just the page. #9A9287 was 5.43:1 on the page but 4.47:1 on
   * --surface, so every table header and caption failed AA by 0.03.
   * #A29A8F is 6.00:1 on the page and 4.94:1 on --surface. */
  --fg-3:         #A29A8F;   /*  6.00:1 page / 4.94:1 on --surface */
  --accent-ink:   #F58300;   /*  6.45:1 */
  --jade-ink:     #6FC5A5;   /*  8.10:1 */
  --clay-ink:     #E8705F;   /*  5.49:1 */
  --on-accent:    #1E1E1E;   /*  6.45:1 on orange */
  --focus:        #FF9F2E;   /*  8.14:1 */
  --glass:        rgba(30,30,30,0.72);
  --shadow:       0 18px 44px rgba(0,0,0,0.46);
  --shadow-warm:  0 10px 30px rgba(245,131,0,0.26);
  --hero-grad:    linear-gradient(160deg, #171614 0%, #1E1E1E 46%, #241C12 100%);

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-display: clamp(2.6rem, 6vw, 4.75rem);
  --t-h2:      clamp(1.9rem, 3.6vw, 2.9rem);
  --t-h3:      clamp(1.25rem, 2vw, 1.5rem);
  --t-h4:      1.0625rem;
  --t-lead:    clamp(1.05rem, 1.5vw, 1.2rem);
  --t-body:    1rem;
  --t-small:   0.875rem;
  --t-meta:    0.75rem;
  --t-label:   0.6875rem;

  /* Space */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Shape */
  --radius-sm:   6px;
  --radius:     10px;
  --radius-lg:  18px;
  --radius-pill: 999px;
  --max-w:      1180px;
  --nav-h:      64px;
}

[data-theme="light"] {
  --bg:           #FAF7F2;
  --bg-deep:      #F1EBE0;
  --surface:      #FFFFFF;
  --surface-2:    #F4EFE6;
  --line:         rgba(34,32,28,0.12);
  --line-strong:  rgba(34,32,28,0.24);
  --fg:           #22201C;   /* 15.22:1 */
  --fg-2:         #4A463F;   /*  8.78:1 */
  --fg-3:         #6B6559;   /*  5.41:1 */
  /* Measured on the WORST surface it lands on, not just the page background.
   * #A85400 was 5.00:1 on --paper but only 4.02:1 on the tinted pillar and
   * 4.41:1 on --orange-wash, so it failed AA everywhere except plain paper.
   * #914800 is 6.28:1 on --paper and 5.05:1 on the tinted surfaces.
   * Re-measure against the tinted surfaces, never --paper, if this changes. */
  --accent-ink:   #914800;   /*  6.28:1 paper / 5.05:1 tinted - #F58300 is 2.42:1, never use it for text */
  --jade-ink:     #1F6E56;   /*  5.74:1 */
  --clay-ink:     #B03A2E;   /*  5.63:1 */
  --on-accent:    #1E1E1E;   /*  6.45:1 on orange, unchanged */
  --focus:        #A85400;
  --glass:        rgba(250,247,242,0.78);
  --orange-wash:  rgba(245,131,0,0.14);
  --orange-edge:  rgba(168,84,0,0.32);
  --jade-wash:    rgba(31,110,86,0.10);
  --clay-wash:    rgba(176,58,46,0.10);
  --shadow:       0 16px 40px rgba(58,48,34,0.10);
  --shadow-warm:  0 10px 28px rgba(245,131,0,0.22);
  --hero-grad:    linear-gradient(160deg, #F1EBE0 0%, #FAF7F2 46%, #FBEEDC 100%);
}

/* ==========================================================================
   Reset and base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.7;
  background: var(--bg);
  color: var(--fg-2);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { color: var(--fg); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
p { max-width: 68ch; }
s { text-decoration: none; }

/* Focus: one rule, every control, never removed. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--orange); color: var(--on-accent);
  padding: var(--s-3) var(--s-5); border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: var(--s-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--s-5); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-6); } }
.band { padding-block: var(--s-7); }
@media (min-width: 768px) { .band { padding-block: var(--s-9); } }
.band--deep { background: var(--bg-deep); }
.band--sunk { background: var(--surface); }

/* Waypoint: the running structural device. Hairline / mono label / hairline. */
.waypoint {
  display: flex; align-items: center; gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.waypoint::before, .waypoint::after {
  content: ""; height: 1px; background: var(--line); flex: 1 1 auto;
}
.waypoint::before { flex: 0 0 24px; }
.waypoint__label {
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink);
  white-space: nowrap;
}
.lede { font-size: var(--t-lead); color: var(--fg-2); max-width: 60ch; margin-top: var(--s-4); }
.section-title { font-size: var(--t-h2); font-weight: 700; max-width: 18ch; }
.section-title em { font-style: normal; color: var(--accent-ink); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding-inline: var(--s-5);
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em;
  white-space: nowrap; text-align: center;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn--primary { background: var(--orange); color: var(--on-accent); }
.btn--primary:hover { background: var(--orange-light); box-shadow: var(--shadow-warm); }
.btn--outline { border: 1px solid var(--line-strong); color: var(--fg); }
.btn--outline:hover { border-color: var(--orange); color: var(--accent-ink); background: var(--orange-wash); }
.btn--ghost { color: var(--accent-ink); padding-inline: var(--s-2); min-height: 44px; }
.btn--ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn--sm { min-height: 44px; padding-inline: var(--s-4); font-size: var(--t-small); }
.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   Nav - glassmorphism per the BIM charter
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line-strong); }
.nav__inner {
  display: flex; align-items: center; gap: var(--s-5);
  height: 100%; max-width: var(--max-w); margin-inline: auto;
  padding-inline: var(--s-5);
}
@media (min-width: 768px) { .nav__inner { padding-inline: var(--s-6); } }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
/* The BIM GROUPE horizontal lockup, ALWAYS the full orange asset, never a
 * product logo, no mono, no recolour, ever. 194x34 intrinsic, scaled by height
 * so the aspect ratio is never touched. */
.nav__bim { width: auto; height: 24px; flex: none; }
.nav__rule { width: 1px; height: 20px; flex: none; background: var(--line-strong); }
/* Under 600px the group mark alone carries the brand: the lockup plus the site
 * wordmark plus the toggles do not fit a 375px nav without wrapping. */
@media (max-width: 599px) { .nav__brand .nav__rule, .nav__brand .nav__word { display: none; } }
.nav__word { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.03em; color: var(--fg); }
.nav__word span { color: var(--fg-3); font-weight: 500; }
.nav__links { display: none; list-style: none; gap: var(--s-5); margin-left: var(--s-4); }
.nav__links a {
  font-size: var(--t-small); font-weight: 500; color: var(--fg-2);
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav__links a:hover { color: var(--accent-ink); }
.nav__links a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--orange); }
.nav__right { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav__cta { display: none; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
}
.nav__burger {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
@media (min-width: 900px) { .nav__burger { display: none; } }
.nav__burger span { width: 20px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__panel {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  background: var(--glass);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line-strong);
  padding: var(--s-4) var(--s-5) var(--s-6);
  display: none;
}
.nav__panel[data-open="true"] { display: block; }
@media (min-width: 900px) { .nav__panel { display: none !important; } }
.nav__panel ul { list-style: none; display: grid; gap: var(--s-1); }
.nav__panel a {
  display: flex; align-items: center; min-height: 48px;
  font-size: 1.0625rem; font-weight: 500; color: var(--fg);
  border-bottom: 1px solid var(--line);
}

/* Language switcher - EN / FR / ES / KO */
.lang { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.lang button {
  min-width: 44px; min-height: 44px; padding-inline: var(--s-2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.08em; color: var(--fg-3);
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { color: var(--accent-ink); background: var(--orange-wash); }
.lang sup { font-size: 0.5rem; letter-spacing: 0; color: var(--fg-3); text-transform: lowercase; }
@media (max-width: 899px) { .nav__right .lang { display: none; } }

.theme-toggle {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2); border: 1px solid var(--line);
}
.theme-toggle:hover { color: var(--accent-ink); border-color: var(--orange-edge); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show the theme you would SWITCH TO: a sun while dark, a moon while light.
 * These were the wrong way round, which is why day mode looked absent. */
[data-theme="dark"]  .theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-sun  { display: none; }

/* ==========================================================================
   MOCKUP 1 - Hero
   7/5 asymmetric. Signature element (status board) in the right column.
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--hero-grad); }
.hero__noise {
  position: absolute; inset: 0; opacity: .028; pointer-events: none; background-size: 200px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative; display: grid; gap: var(--s-7);
  padding-block: var(--s-8) var(--s-9);
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: center; padding-block: var(--s-10) var(--s-9); }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: var(--s-4);
}
.hero__eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--orange); }
.hero h1 {
  font-size: var(--t-display); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.02; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero__sub { font-size: var(--t-lead); color: var(--fg-2); max-width: 52ch; margin-top: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
/* Fact strip: hairline separators, not a boxed card. */
.factstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-7); border-top: 1px solid var(--line); }
.factstrip div { padding: var(--s-4) var(--s-3) 0 0; min-width: 0; }
.factstrip div + div { border-left: 1px solid var(--line); padding-left: var(--s-4); }
@media (min-width: 480px) { .factstrip { grid-template-columns: repeat(3, max-content); } .factstrip div { padding-right: var(--s-6); } }
.factstrip dt { font-family: var(--font-mono); font-size: 1.375rem; font-weight: 700; color: var(--fg); line-height: 1; }
.factstrip dd {
  font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3); margin-top: var(--s-2);
}

/* --- SIGNATURE: the Status Board -------------------------------------------
   A departure-board of what works on a plain Chinese connection.
   Renders complete and correct with JS off, in the "plain" state.
   --------------------------------------------------------------------------*/
.board {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.board__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.board__title {
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3);
}
.board__switch {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding-inline: var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2);
  white-space: nowrap;
}
.board__switch::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--fg-3); transition: background .2s;
}
.board__switch[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--orange-edge); background: var(--orange-wash); }
.board__switch[aria-pressed="true"]::before { background: var(--orange); }
.board__list { list-style: none; }
.board__row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--t-small);
}
.board__row:first-child { border-top: 0; }
.board__svc { color: var(--fg-2); letter-spacing: -0.01em; }
.board__state { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: var(--t-label); letter-spacing: 0.1em; }
.board__state::before { font-size: 0.9rem; line-height: 1; }
/* Status is never carried by colour alone: glyph + word + colour.
   The state class sits on the span, not the row, so a row can hold two states. */
.st-blocked { color: var(--clay-ink); }
.st-blocked::before { content: "\2715"; }
.st-slow    { color: var(--accent-ink); }
.st-slow::before { content: "\223F"; }
.st-ok      { color: var(--jade-ink); }
.st-ok::before { content: "\2713"; }
.board__row .state-with { display: none; }
.board[data-vpn="on"] .board__row .state-plain { display: none; }
.board[data-vpn="on"] .board__row .state-with  { display: inline-flex; }
.board[data-vpn="on"] .board__row { animation: flip .28s ease both; }
@keyframes flip { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.board__foot {
  padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--font-mono); font-size: var(--t-meta); color: var(--fg-3);
}

/* ==========================================================================
   MOCKUP 2 - Pillar row (the guidebook spread)
   ========================================================================== */
.pillar { display: grid; gap: var(--s-5); align-items: center; }
.pillar + .pillar { margin-top: var(--s-8); }
@media (min-width: 900px) {
  .pillar { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .pillar:nth-of-type(even) .pillar__media { order: 2; }
}
.pillar__media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.pillar__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pillar__credit {
  position: absolute; right: var(--s-2); bottom: var(--s-2);
  font-family: var(--font-mono); font-size: 0.625rem; color: #F2EDE6;
  background: rgba(0,0,0,.62); padding: 2px 6px; border-radius: var(--radius-sm);
}
.pillar__tag {
  display: inline-block; font-family: var(--font-mono); font-size: var(--t-label);
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--orange-wash);
  border: 1px solid var(--orange-edge); border-radius: var(--radius-pill);
  padding: var(--s-1) var(--s-3); margin-bottom: var(--s-4);
}
.pillar h3 { font-size: var(--t-h2); max-width: 16ch; }
.pillar p { margin-top: var(--s-4); font-size: var(--t-lead); }
.pillar__list { list-style: none; margin-top: var(--s-5); }
.pillar__list li {
  display: grid; grid-template-columns: 18px 1fr; gap: var(--s-3);
  padding-block: var(--s-3); border-top: 1px solid var(--line);
  font-size: var(--t-small); color: var(--fg-2);
}
.pillar__list li::before { content: "\2192"; color: var(--accent-ink); font-family: var(--font-mono); }

/* ==========================================================================
   Feature card grid
   ========================================================================== */
.cards { display: grid; gap: var(--s-4); }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-5);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--orange-edge); }
.card__icon { width: 28px; height: 28px; color: var(--accent-ink); margin-bottom: var(--s-4); }
.card h3 { font-size: var(--t-h3); }
.card p { margin-top: var(--s-3); font-size: var(--t-small); color: var(--fg-2); }
.card__note {
  display: block; margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--t-meta); color: var(--fg-3);
}
.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card--media .card__body { padding: var(--s-5); }

/* ==========================================================================
   MOCKUP 3 - Pricing
   ========================================================================== */
.prices { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 860px) { .prices { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }
.price {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-6);
}
.price--launch { border-color: var(--orange-edge); box-shadow: var(--shadow); }
.price__badge {
  position: absolute; top: 0; left: var(--s-6); transform: translateY(-50%);
  background: var(--orange); color: var(--on-accent);
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: var(--s-1) var(--s-3); border-radius: var(--radius-pill);
}
.price__name { font-size: var(--t-h3); }
.price__blurb { margin-top: var(--s-2); font-size: var(--t-small); color: var(--fg-3); }
.price__figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.price__now { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2.4rem, 7vw, 3.25rem); color: var(--fg); line-height: 1; letter-spacing: -0.04em; }
.price__was {
  position: relative; font-family: var(--font-mono); font-weight: 500;
  font-size: 1.375rem; color: var(--fg-3);
}
.price__was::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 52%;
  height: 2px; background: var(--clay-ink); transform: rotate(-8deg);
}
.price__terms { font-family: var(--font-mono); font-size: var(--t-meta); color: var(--fg-3); margin-top: var(--s-3); letter-spacing: 0.04em; }
.price__list { list-style: none; margin: var(--s-5) 0; }
.price__list li {
  display: grid; grid-template-columns: 18px 1fr; gap: var(--s-3);
  padding-block: var(--s-3); border-top: 1px solid var(--line); font-size: var(--t-small);
}
.price__list li::before { content: "\2713"; color: var(--jade-ink); font-family: var(--font-mono); }
.price__counter {
  display: block; margin-top: var(--s-3); text-align: center;
  font-family: var(--font-mono); font-size: var(--t-meta); color: var(--fg-3);
}
.price__counter b { color: var(--accent-ink); font-weight: 700; }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
caption { text-align: left; padding: var(--s-4) var(--s-5); font-size: var(--t-small); color: var(--fg-3); }
thead th {
  background: var(--surface-2); text-align: left;
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-strong);
}
thead th.is-ours { color: var(--accent-ink); box-shadow: inset 0 2px 0 var(--orange); }
tbody th {
  text-align: left; font-weight: 500; font-size: var(--t-small); color: var(--fg);
  padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line);
}
tbody td {
  padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--t-small); color: var(--fg-2);
}
tbody tr:hover th, tbody tr:hover td { background: var(--surface-2); }
.yes { color: var(--jade-ink); font-weight: 700; }
.no  { color: var(--clay-ink); font-weight: 700; }
/* Where the competitor wins, it is stated in the same weight as our wins. */
.theirs { color: var(--fg); font-weight: 700; }

/* ==========================================================================
   FAQ - native <details>, no JavaScript
   ========================================================================== */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding-block: var(--s-3);
  font-size: var(--t-h4); font-weight: 600; color: var(--fg);
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding-bottom: var(--s-5); font-size: var(--t-small); color: var(--fg-2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-5); }
.footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 700px)  { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-5); } }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex-wrap: wrap; }
.footer__bim { width: auto; height: 26px; flex: none; }
.footer h2 {
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: var(--s-4);
}
.footer ul { list-style: none; display: grid; gap: var(--s-1); }
.footer ul a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); color: var(--fg-2); }
.footer ul a:hover { color: var(--accent-ink); }
.footer__note { margin-top: var(--s-4); font-size: var(--t-small); color: var(--fg-3); max-width: 34ch; }
.footer__bottom {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5);
  font-size: var(--t-meta); color: var(--fg-3);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-left: auto; }
.footer__bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.footer__bottom a:hover { color: var(--accent-ink); }

/* ==========================================================================
   This file only: the spec chrome around the mockups.
   Delete everything below when lifting the CSS.
   ========================================================================== */
.spec { border-top: 1px dashed var(--line-strong); }
.spec__mark {
  display: inline-block; font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-accent); background: var(--orange);
  padding: var(--s-1) var(--s-3); border-radius: var(--radius-sm); margin-bottom: var(--s-4);
}
.spec__note { font-size: var(--t-small); color: var(--fg-3); margin-top: var(--s-3); }
.swatches { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.swatch__chip { height: 56px; }
.swatch__meta { padding: var(--s-2) var(--s-3); font-family: var(--font-mono); font-size: var(--t-meta); color: var(--fg-3); }
.swatch__meta b { display: block; color: var(--fg); font-weight: 500; }
.specimen { display: grid; gap: var(--s-4); }
.specimen > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.specimen code { font-family: var(--font-mono); font-size: var(--t-meta); color: var(--fg-3); flex: none; width: 96px; }
.row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ==========================================================================
   PAGE-LEVEL ADDITIONS
   Everything above this line is lifted verbatim from design/mockups.html.
   Everything below exists because a real page needs it and the mockup, being
   a single-page component library, did not.
   ========================================================================== */

/* Inner pages open on a shorter hero: one column, no Status Board, no 7/5 split.
   The board appears on index.html and china-guide.html only, by design. */
.hero--compact .hero__inner { padding-block: var(--s-8) var(--s-7); }
@media (min-width: 960px) {
  .hero--compact .hero__inner { grid-template-columns: 1fr; padding-block: var(--s-9) var(--s-8); }
}
.hero--compact h1 { font-size: var(--t-h2); max-width: 20ch; }
.hero--compact .hero__sub { max-width: 62ch; }

/* Nav: mark the page you are on. The mockup used aria-current on a static link;
   main.js sets it from the URL instead. */
.nav__links a[aria-current="page"] { color: var(--accent-ink); }

/* Credits table. Eight CC BY 2.0 photographs, so attribution is a requirement,
   not a courtesy. Long attribution strings must wrap rather than force the
   page sideways at 375px. */
.credits table { width: 100%; border-collapse: collapse; }
.credits td, .credits th { padding: var(--s-3) var(--s-4); vertical-align: top; }
.credits td a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.credits .credit-line {
  font-family: var(--font-mono); font-size: var(--t-meta); color: var(--fg-2);
  overflow-wrap: anywhere;
}
.credits figure { margin-bottom: var(--s-3); }
.credits img { border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* Buy widget states. buy.js renders the designer's .price component; these are
   only the two states a static mockup has no reason to carry. */
.price__counter[data-state="error"] { color: var(--fg-3); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
