/* ==========================================================================
   CashCageAU — independent Australian wagering review portal
   assets/css/style.css
   1. Tokens
   2. Reset & base
   3. Layout primitives
   4. Header & navigation
   5. Hero
   6. Components (cards, grids, media, tables, lists, callouts, faq)
   7. Footer
   8. Motion & reveal
   9. Responsive
   ========================================================================== */

/* -- 1. Tokens ----------------------------------------------------------- */
:root {
  --ink-950: #070b0e;
  --ink-900: #0a1014;
  --ink-850: #0d151a;
  --ink-800: #111c23;
  --ink-750: #15242c;
  --ink-700: #1b2f38;

  --surface: #101a21;
  --surface-2: #142129;
  --surface-3: #182a33;

  --line: rgba(161, 196, 210, 0.14);
  --line-strong: rgba(161, 196, 210, 0.26);

  --fg: #e9f1f5;
  --fg-soft: #c3d2da;
  --fg-muted: #93a7b2;
  --fg-faint: #6f8793;

  --accent: #2fbf84;
  --accent-bright: #3ed897;
  --accent-dim: rgba(47, 191, 132, 0.14);
  --accent-ink: #042014;

  --warn: #e9b44c;
  --warn-dim: rgba(233, 180, 76, 0.12);
  --alert: #e26d60;
  --alert-dim: rgba(226, 109, 96, 0.12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.42);

  --gutter: 16px;
  --container: 1180px;
  --header-h: 72px;

  --font: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --section-y: clamp(56px, 8vw, 104px);
}

/* -- 2. Reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: #fff;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.45rem); letter-spacing: -0.022em; }
h3 { font-size: clamp(1.08rem, 1.5vw, 1.25rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.15em; color: var(--fg-soft); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover, a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

strong, b { color: #fff; font-weight: 600; }
em { color: var(--fg); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; color: var(--fg-soft); }
li { margin-bottom: 0.5em; }
li:last-child { margin-bottom: 0; }

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

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; font-weight: 600; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

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

/* -- 3. Layout primitives ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.section--alt { background: linear-gradient(180deg, var(--ink-850) 0%, var(--ink-900) 100%); }
.section--deep { background: var(--ink-950); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--wide { max-width: 900px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px;
}

.section-lead {
  font-size: clamp(1.03rem, 1.5vw, 1.15rem);
  color: var(--fg-muted);
  max-width: 68ch;
}

.prose { max-width: 72ch; }
.prose--wide { max-width: 78ch; }

/* -- 4. Header & navigation ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--header-h);
  background: rgba(10, 16, 20, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent) 0%, #1d8f61 100%);
  color: var(--accent-ink);
  font-weight: 800; font-size: 0.98rem; letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-text b { font-size: 1.06rem; color: #fff; letter-spacing: -0.02em; }
.brand-text span { font-size: 0.72rem; color: var(--fg-faint); letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  background: var(--surface-2); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 9px 14px; font: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: #fff; }
.nav-toggle-bars { display: inline-block; width: 16px; height: 10px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after,
.nav-toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 4px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }

.site-nav ul {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 4px;
  margin: 0; padding: 0; list-style: none;
}
.site-nav li { margin: 0; white-space: nowrap; }
.site-nav a {
  display: block; padding: 9px 14px; border-radius: 9px;
  color: var(--fg-soft); font-size: 0.93rem; font-weight: 500;
}
.site-nav a:hover { background: var(--surface-2); color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent-bright); background: var(--accent-dim); }

/* -- 5. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(64px, 10vh, 120px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: -8% 0 -8% 0;
  background-image: url("../img/hero-racecourse.webp");
  background-size: cover; background-position: center 38%;
  transform: scale(1.06);
  opacity: 0;
  animation: heroZoom 1.6s cubic-bezier(0.22, 0.8, 0.3, 1) 0.1s forwards;
  will-change: transform, opacity;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 14, 0.88) 0%, rgba(7, 11, 14, 0.55) 52%, rgba(7, 11, 14, 0.72) 100%),
    linear-gradient(180deg, rgba(7, 11, 14, 0.72) 0%, rgba(7, 11, 14, 0.5) 40%, rgba(7, 11, 14, 0.96) 100%),
    radial-gradient(130% 95% at 15% 32%, rgba(7, 11, 14, 0.25) 0%, rgba(7, 11, 14, 0.85) 100%);
}
@keyframes heroZoom {
  from { opacity: 0; transform: scale(1.12); }
  to   { opacity: 1; transform: scale(1.02); }
}

.hero .container { position: relative; z-index: 2; }
.hero-stage { max-width: 940px; }

.hero-flag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-strong); border-radius: 100px;
  background: rgba(16, 26, 33, 0.72);
  color: var(--fg-soft);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-flag .flag { font-size: 1.05rem; line-height: 1; }

.hero h1 { margin: 22px 0 18px; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent-bright), #8fe7c0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub {
  font-size: clamp(1.03rem, 1.8vw, 1.22rem);
  color: var(--fg-soft);
  max-width: 68ch;
  margin-bottom: 26px;
}

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 30px; padding: 0; list-style: none;
}
.hero-badges li {
  display: flex; align-items: center; gap: 9px;
  margin: 0;
  padding: 9px 15px;
  background: rgba(16, 26, 33, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--fg-soft);
  font-size: 0.86rem; font-weight: 500;
}
.hero-badges .tick { color: var(--accent-bright); font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent; border-radius: 100px;
  font-size: 0.97rem; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-bright); color: var(--accent-ink); }
.btn--ghost { background: rgba(16, 26, 33, 0.6); border-color: var(--line-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateY(3px); }

.hero-note {
  margin-top: 26px;
  font-size: 0.82rem; color: var(--fg-faint);
  max-width: 62ch;
}
.hero-note strong { color: var(--fg-muted); font-weight: 600; }

/* -- 6. Components ------------------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--fg-muted); font-size: 0.97rem; }
.card--flat:hover { transform: none; }
.card--highlight {
  background: linear-gradient(170deg, var(--surface-3) 0%, var(--surface) 70%);
  border-color: var(--line-strong);
}
.card--media { padding: 0; overflow: hidden; }
.card--media .card-body { padding: clamp(18px, 2.2vw, 24px); }
.card-media-img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.card-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-dim); color: var(--accent-bright);
  font-size: 1.2rem;
}
.card-muted { color: var(--fg-faint) !important; font-size: 0.86rem !important; }
.card-tag {
  display: inline-block; margin-bottom: 12px;
  padding: 4px 10px; border-radius: 100px;
  background: var(--accent-dim); color: var(--accent-bright);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

.media-split {
  display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(22px, 3.5vw, 48px); align-items: start;
}
@media (min-width: 900px) {
  .media-split .media-figure .media { aspect-ratio: 4 / 3; object-fit: cover; }
}
.media-split--reverse > .media-figure { order: 2; }
@media (min-width: 900px) {
  .media-split > .media-figure { position: sticky; top: calc(var(--header-h) + 28px); }
}
.media-figure { position: relative; }
.media {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.media-figure figcaption {
  margin-top: 12px;
  font-size: 0.83rem; color: var(--fg-faint); line-height: 1.6;
}
.media--band { aspect-ratio: 16 / 7; }
.section > .container > * + * { margin-top: clamp(26px, 3.2vw, 40px); }
.section > .container > .section-head + * { margin-top: 0; }
.section > .container > h3 {
  margin-top: clamp(34px, 4.4vw, 52px);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
}
.section > .container > h3 + * { margin-top: 18px; }
.section > .container > .media-figure { margin-block: clamp(26px, 3.2vw, 40px); }
.section > .container > .prose + .table-wrap,
.section > .container > .media-figure + .table-wrap { margin-top: clamp(22px, 3vw, 34px); }

.datalist { margin: 0; display: grid; gap: 0; }
.datalist > div {
  display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.6fr);
  gap: 8px 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.datalist > div:first-child { border-top: 0; }
.datalist dt { color: var(--fg-faint); font-size: 0.85rem; letter-spacing: 0.02em; }
.datalist dd { margin: 0; color: #fff; font-size: 0.97rem; font-weight: 500; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.data {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}
table.data caption {
  caption-side: bottom; padding-top: 14px;
  color: var(--fg-faint); font-size: 0.83rem; text-align: left;
}
table.data th, table.data td {
  padding: 14px 18px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.data thead th {
  background: var(--surface-3); color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td { color: var(--fg-muted); }
table.data td:first-child { color: #fff; font-weight: 500; }
table.data th:first-child, table.data td:first-child { min-width: 190px; }
table.data th:nth-child(2), table.data td:nth-child(2) { min-width: 230px; }
table.data tr.row-flag td { background: var(--alert-dim); }
table.data tr.row-flag td:first-child { color: #fff; }
table.data a { color: var(--accent-bright); }

.numbered { display: grid; gap: clamp(26px, 4vw, 54px); counter-reset: nblock; }
.numbered-item {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px); align-items: start;
}
@media (min-width: 768px) {
  .numbered-figure { position: sticky; top: calc(var(--header-h) + 28px); }
}
.numbered-item:nth-child(even) .numbered-figure { order: 2; }
.numbered-index {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.numbered-index .num {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-dim); color: var(--accent-bright);
  font-size: 0.95rem; letter-spacing: 0;
}
.numbered-figure .media { aspect-ratio: 20 / 13; }

.steps { display: grid; gap: clamp(14px, 2vw, 20px); counter-reset: step; }
.step {
  display: grid; grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(18px, 2.2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step:hover { border-color: var(--line-strong); }
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-dim); color: var(--accent-bright);
  font-size: 1.05rem; font-weight: 700;
}
.step h3 { margin-bottom: 0.35em; }
.step p { color: var(--fg-muted); font-size: 0.97rem; }

.callout {
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: clamp(20px, 2.6vw, 30px);
  background: linear-gradient(135deg, var(--accent-dim) 0%, rgba(16, 26, 33, 0.6) 65%);
  border: 1px solid rgba(47, 191, 132, 0.35);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.callout p { color: #fff; font-weight: 600; font-size: 1.03rem; margin: 0; }
.callout--warn {
  background: linear-gradient(135deg, var(--warn-dim) 0%, rgba(16, 26, 33, 0.6) 65%);
  border-color: rgba(233, 180, 76, 0.34);
  border-left-color: var(--warn);
}
.callout--warn p { color: var(--fg); font-weight: 500; }

.note {
  margin-top: 14px;
  font-size: 0.83rem; line-height: 1.65; color: var(--fg-faint);
}

.verdict-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.verdict {
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.verdict--pro { border-top: 3px solid var(--accent); }
.verdict--con { border-top: 3px solid var(--alert); }
.verdict h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.verdict ul { margin: 0; padding: 0; list-style: none; }
.verdict li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--fg-muted); font-size: 0.97rem;
}
.verdict li:first-of-type { border-top: 0; }
.verdict li strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.verdict .mark {
  display: grid; place-items: center;
  width: 24px; height: 24px; margin-top: 2px;
  border-radius: 7px; font-size: 0.8rem; font-weight: 700;
}
.verdict--pro .mark { background: var(--accent-dim); color: var(--accent-bright); }
.verdict--con .mark { background: var(--alert-dim); color: var(--alert); }

.warnlist { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.warnlist li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px; margin: 0;
  padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  color: var(--fg-muted); font-size: 0.97rem;
}
.warnlist li strong { display: block; color: #fff; margin-bottom: 3px; }
.warnlist .mark { color: var(--warn); font-size: 1.1rem; line-height: 1.4; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip-row li {
  margin: 0; padding: 8px 15px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 100px; color: var(--fg-soft); font-size: 0.88rem;
}

.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px clamp(18px, 2.2vw, 24px);
  color: #fff; font-size: clamp(1rem, 1.3vw, 1.08rem); font-weight: 600; line-height: 1.5;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 28px;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-dim); color: var(--accent-bright);
  font-size: 1.1rem; font-weight: 700; line-height: 1;
  transition: transform 0.22s ease;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-item summary:hover { background: var(--surface-2); }
.faq-answer { padding: 0 clamp(18px, 2.2vw, 24px) 22px; }
.faq-answer p { color: var(--fg-muted); font-size: 0.98rem; }
.faq-answer p:first-child { margin-top: 0; }

.pill-stats { display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 22px); margin-top: 32px; }
.pill-stat {
  flex: 1 1 180px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.pill-stat b { display: block; color: #fff; font-size: 1.35rem; letter-spacing: -0.02em; }
.pill-stat span { color: var(--fg-faint); font-size: 0.82rem; }

/* -- 7. Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--ink-950);
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 72px) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.5vw, 48px);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--fg-faint); font-size: 0.89rem; max-width: 42ch; }
.footer-col h4 {
  margin-bottom: 14px; color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col span { color: var(--fg-muted); font-size: 0.91rem; }
.footer-col a:hover { color: #fff; }
.footer-col .tel { color: #fff; font-weight: 600; }

.footer-disclaimer {
  margin-top: clamp(30px, 4vw, 48px); padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg-faint); font-size: 0.83rem; line-height: 1.7;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--fg-faint); font-size: 0.82rem;
}
.footer-bottom .age {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-muted); font-weight: 600;
}

/* -- 10. Sub-page hero & page bits -------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(46px, 7vw, 90px);
  background:
    linear-gradient(180deg, rgba(47, 191, 132, 0.07) 0%, rgba(10, 16, 20, 0) 70%),
    var(--ink-850);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); margin-bottom: 16px; }
.page-hero .section-lead { max-width: 72ch; }
.page-hero .breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px; padding: 0; list-style: none;
  font-size: 0.82rem; color: var(--fg-faint);
}
.page-hero .breadcrumb li { margin: 0; }
.page-hero .breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--fg-faint); }
.page-hero .breadcrumb a { color: var(--fg-muted); }

.anchor-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 26px 0 0; padding: 0; list-style: none;
}
.anchor-row li { margin: 0; }
.anchor-row a {
  display: inline-block; padding: 8px 15px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 100px; color: var(--fg-soft); font-size: 0.86rem; font-weight: 500;
}
.anchor-row a:hover { border-color: var(--accent); color: #fff; text-decoration: none; }

/* -- 8. Motion & reveal -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 0.8, 0.3, 1), transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.reveal-d1.is-visible { transition-delay: 0.08s; }
.reveal-d2.is-visible { transition-delay: 0.16s; }
.reveal-d3.is-visible { transition-delay: 0.24s; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--surface-2); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: 12px;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal.is-visible { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* -- 9. Responsive ------------------------------------------------------- */
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none;
    background: rgba(8, 13, 17, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 18px; }
  .site-nav a { padding: 13px 12px; border-radius: 10px; font-size: 1rem; }
  .header-inner { position: relative; }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .media-split { grid-template-columns: minmax(0, 1fr); }
  .media-split--reverse > .media-figure { order: 0; }
  .numbered-item { grid-template-columns: minmax(0, 1fr); }
  .numbered-item:nth-child(even) .numbered-figure { order: 0; }
  .verdict-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .datalist > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 11px 0; }
  .hero { min-height: auto; padding-block: clamp(52px, 12vh, 90px); }
  .hero-badges li { font-size: 0.82rem; padding: 8px 13px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { gap: 12px; }

  /* stacked data tables */
  table.data { border: 0; background: transparent; font-size: 0.94rem; }
  table.data thead { display: none; }
  table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr {
    margin-bottom: 14px; padding: 6px 16px 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  }
  table.data tr.row-flag { border-color: rgba(226, 109, 96, 0.4); }
  table.data td { border-bottom: 1px solid var(--line); padding: 11px 0; }
  table.data tr td:last-child { border-bottom: 0; }
  table.data td::before {
    content: attr(data-label);
    display: block; margin-bottom: 3px;
    color: var(--fg-faint); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
  }
  table.data tbody tr:hover { background: var(--surface); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step-num { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .brand-text span { display: none; }
  .hero-flag { font-size: 0.7rem; }
}

@media print {
  .site-header, .to-top, .hero-bg, .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  a { color: #111; }
}
