@charset "UTF-8";
/* ==========================================================================
   BetRate — design system
   Persian / RTL · light + dark · content-first · restrained depth
   No framework, no build step. Tokens first, components second.
   ========================================================================== */

/* --------------------------------------------------------------- fonts --- */
/* Only the three weights the interface actually uses are loaded. */
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Medium.woff2") format("woff2"),
       url("../fonts/IRANSansX-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Bold.woff2") format("woff2"),
       url("../fonts/IRANSansX-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

  --font-fa: Vazirmatn, "IRANSansX", -apple-system, BlinkMacSystemFont,
             "Segoe UI", Tahoma, Arial, sans-serif;

  /* Type scale — fluid, capped so long Persian headlines stay readable. */
  --fs-display: clamp(1.9rem, 1.2rem + 3vw, 3rem);
  --fs-h1: clamp(1.65rem, 1.1rem + 2.2vw, 2.4rem);
  --fs-h2: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
  --fs-h3: clamp(1.08rem, 0.98rem + 0.5vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;

  --lh-tight: 1.35;
  --lh-body: 1.85;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* Radii — one family, consistently applied. */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  --container: 1140px;
  --header-h: 60px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 0.22s;

  /* ---- Light palette ---- */
  --bg: #f4f4f7;
  --bg-tint: radial-gradient(120% 90% at 85% -10%, #e8eefc 0%, rgba(244,244,247,0) 60%);
  --surface: #ffffff;
  --surface-2: #fafafb;
  --surface-3: #f1f1f4;
  --text: #17181c;
  --text-2: #52535a;
  --text-3: #6c6d76;
  --accent: #0b64e0;
  --accent-strong: #0a54bd;
  --accent-soft: rgba(11, 100, 224, 0.09);
  --accent-ink: #ffffff;
  --success: #16803c;
  --success-soft: rgba(22, 128, 60, 0.10);
  --warn: #8a5000;
  --warn-soft: rgba(138, 80, 0, 0.10);
  --danger: #bd2f28;
  --danger-soft: rgba(189, 47, 40, 0.10);
  --border: #e5e5ea;
  --border-strong: #d3d3da;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.07);
  --shadow-1: 0 1px 2px rgba(16, 18, 26, 0.05), 0 1px 1px rgba(16, 18, 26, 0.04);
  --shadow-2: 0 6px 20px rgba(16, 18, 26, 0.08), 0 2px 6px rgba(16, 18, 26, 0.04);
  --shadow-3: 0 18px 46px rgba(16, 18, 26, 0.14);
  --gold: #8a6300;
  --gold-soft: rgba(180, 132, 10, 0.13);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0d;
    --bg-tint: radial-gradient(120% 90% at 85% -10%, #14203a 0%, rgba(10,10,13,0) 62%);
    --surface: #16161a;
    --surface-2: #1c1c21;
    --surface-3: #24242a;
    --text: #f2f2f6;
    --text-2: #b0b1ba;
    --text-3: #93949e;
    --accent: #5a9dff;
    --accent-strong: #7db1ff;
    --accent-soft: rgba(90, 157, 255, 0.14);
    --accent-ink: #06152c;
    --success: #4bd07f;
    --success-soft: rgba(75, 208, 127, 0.14);
    --warn: #f0a836;
    --warn-soft: rgba(240, 168, 54, 0.14);
    --danger: #ff7a70;
    --danger-soft: rgba(255, 122, 112, 0.14);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --glass: rgba(22, 22, 26, 0.72);
    --glass-border: rgba(255, 255, 255, 0.10);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-2: 0 6px 20px rgba(0, 0, 0, 0.45);
    --shadow-3: 0 18px 46px rgba(0, 0, 0, 0.6);
    --gold: #e8bd57;
    --gold-soft: rgba(232, 189, 87, 0.14);
  }
}

/* Manual override — the toggle stamps data-theme on <html>. */
:root[data-theme="dark"] {
  --bg: #0a0a0d;
  --bg-tint: radial-gradient(120% 90% at 85% -10%, #14203a 0%, rgba(10,10,13,0) 62%);
  --surface: #16161a;
  --surface-2: #1c1c21;
  --surface-3: #24242a;
  --text: #f2f2f6;
  --text-2: #b0b1ba;
  --text-3: #93949e;
  --accent: #5a9dff;
  --accent-strong: #7db1ff;
  --accent-soft: rgba(90, 157, 255, 0.14);
  --accent-ink: #06152c;
  --success: #4bd07f;
  --success-soft: rgba(75, 208, 127, 0.14);
  --warn: #f0a836;
  --warn-soft: rgba(240, 168, 54, 0.14);
  --danger: #ff7a70;
  --danger-soft: rgba(255, 122, 112, 0.14);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(22, 22, 26, 0.72);
  --glass-border: rgba(255, 255, 255, 0.10);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 18px 46px rgba(0, 0, 0, 0.6);
  --gold: #e8bd57;
  --gold-soft: rgba(232, 189, 87, 0.14);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

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

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

body {
  margin: 0;
  font-family: var(--font-fa);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  background-image: var(--bg-tint);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-3);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

img, svg, video { max-width: 100%; height: auto; }
ul, ol { margin: 0 0 var(--sp-4); padding-inline-start: 1.3em; }
li { margin-bottom: var(--sp-2); }

/* Numerals stay LTR inside RTL text. */
.num { unicode-bidi: plaintext; }
[dir="ltr"] { direction: ltr; unicode-bidi: isolate; }

/* Focus — always visible, never removed. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--accent-soft); }

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

/* Spam honeypot. Clipped rather than pushed off-screen: a negative offset
   would extend the document sideways in RTL and cause horizontal scrolling. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--sp-4);
  top: -100px;
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

/* ------------------------------------------------------------- layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-5); } }

.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
@media (min-width: 768px) { .section { padding-block: var(--sp-8); } }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.section-head h2 { margin: 0; }
.section-head .section-sub {
  margin: var(--sp-2) 0 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
  flex-basis: 100%;
}
.section-link { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }

/* --------------------------------------------------------------- cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.card--glass {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-color: var(--glass-border);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.card--pad { padding: var(--sp-5); }

/* ------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--accent-strong); color: var(--accent-ink); }

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover { background: var(--surface-3); color: var(--text); }

.btn--quiet { background: transparent; color: var(--accent); border-color: transparent; padding-inline: var(--sp-3); }
.btn--quiet:hover { background: var(--accent-soft); color: var(--accent-strong); }

.btn--cta { background: var(--success); color: #fff; font-weight: 700; }
:root[data-theme="dark"] .btn--cta,
.btn--cta { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--cta { color: #05230f; }
}
:root[data-theme="dark"] .btn--cta { color: #05230f; }
.btn--cta:hover { filter: brightness(1.06); color: inherit; }

.btn--sm { min-height: 40px; padding: var(--sp-1) var(--sp-4); font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }

/* ---------------------------------------------------------- age notice --- */
.age-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: var(--fs-xs);
  text-align: center;
}
.age-bar b { color: var(--text); }
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 1px var(--sp-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-weight: 700;
  color: var(--text);
}
.age-bar__accept {
  min-height: 32px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-xs);
  cursor: pointer;
}
.age-bar__accept:hover { background: var(--accent-soft); }
.age-bar[hidden] { display: none; }

/* -------------------------------------------------------------- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--surface); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  color: var(--text);
  margin-inline-end: auto;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo__text { font-size: 1.05rem; letter-spacing: -0.02em; }
.logo__sub {
  display: none;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-3);
}
@media (min-width: 1024px) { .logo__sub { display: inline; } }

.main-nav { display: none; }
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
  }
  .main-nav a {
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
  }
  .main-nav a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
  .main-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: inline-grid; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}

/* Mobile navigation sheet */
.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  background: rgba(0, 0, 0, 0.35);
}
.nav-sheet[open], .nav-sheet.is-open { display: block; }
.nav-sheet__panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  max-height: 88vh;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom));
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-3);
  animation: sheet-up var(--dur) var(--ease);
}
@keyframes sheet-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.nav-sheet__grab {
  width: 40px; height: 4px; margin: 0 auto var(--sp-4);
  border-radius: var(--r-pill); background: var(--border-strong);
}
.nav-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.nav-sheet__head h2 { margin: 0; font-size: 1.05rem; }
.nav-sheet nav { display: grid; gap: var(--sp-1); }
.nav-sheet nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text);
  font-weight: 500;
}
.nav-sheet nav a:hover { background: var(--surface-3); text-decoration: none; }
.nav-sheet nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav-sheet__hint { margin-top: var(--sp-4); color: var(--text-3); font-size: var(--fs-xs); }

/* Search overlay */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  background: rgba(0, 0, 0, 0.35);
}
.search-panel.is-open { display: block; }
.search-panel__inner {
  max-width: 640px;
  margin: 12vh auto 0;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  animation: sheet-up var(--dur) var(--ease);
}
@media (max-width: 640px) {
  .search-panel__inner { margin: 0; min-height: 100%; border-radius: 0; border: 0; }
}
.search-panel__row { display: flex; gap: var(--sp-2); }
.search-panel h2 { font-size: 1.05rem; }
.search-panel__hint { margin: var(--sp-3) 0 0; color: var(--text-3); font-size: var(--fs-xs); }
.search-panel__hint a { margin-inline-end: var(--sp-3); }

/* --------------------------------------------------------------- forms --- */
.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field > label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }

input[type="text"], input[type="search"], input[type="email"], input[type="url"],
input[type="number"], input[type="password"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
select {
  appearance: none;
  padding-inline-end: var(--sp-6);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
                    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: left 1.15rem top 50%, left 0.85rem top 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }

.form-error {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--fs-sm);
}
.form-success {
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  background: var(--success-soft);
  border: 1px solid var(--success);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.field-note { font-size: var(--fs-xs); color: var(--text-3); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  min-height: 44px;
  font-size: var(--fs-sm);
}
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }

/* --------------------------------------------------------- breadcrumbs --- */
.breadcrumbs { margin-bottom: var(--sp-4); font-size: var(--fs-xs); color: var(--text-3); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin: 0; padding: 0; list-style: none;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------------------------------------------------------------- hero --- */
.hero { padding-block: var(--sp-7) var(--sp-6); }
@media (min-width: 768px) { .hero { padding-block: var(--sp-8) var(--sp-7); } }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--text-2);
  box-shadow: var(--shadow-1);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
}
.hero h1 { font-size: var(--fs-display); max-width: 20ch; margin-bottom: var(--sp-4); }
.hero__lead {
  max-width: 56ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--text-2);
  margin-bottom: var(--sp-5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
@media (min-width: 720px) { .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  padding: var(--sp-4);
  background: var(--surface);
  text-align: center;
}
.stat__value {
  display: block;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat__label { display: block; margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--text-3); }

/* ---------------------------------------------------------- rank badge --- */
.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding-inline: var(--sp-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
}
.rank-badge--1 { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.rank-badge--2, .rank-badge--3 { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------- brand cards --- */
.brand-list { display: grid; gap: var(--sp-3); }

.brand-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3) var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.brand-row:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); }
@media (min-width: 900px) {
  .brand-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-5); }
  .brand-row:hover { transform: translateY(-1px); }
}
.brand-row--top { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.brand-row--top.brand-row--1 { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); }

.brand-row__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  width: 74px;
}
.brand-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 6px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo--mono {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-logo--sm { width: 46px; height: 46px; border-radius: var(--r-sm); }
.brand-logo--sm.brand-logo--mono { font-size: 0.9rem; }

.brand-row__main { min-width: 0; }
.brand-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
}
.brand-row__name { margin: 0; font-size: 1.1rem; }
.brand-row__name a { color: var(--text); }
.brand-row__name a:hover { color: var(--accent); }
.brand-row__summary { margin: 0 0 var(--sp-3); color: var(--text-2); font-size: var(--fs-sm); }

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin: 0 0 var(--sp-3);
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.meta-list li { margin: 0; display: flex; align-items: center; gap: var(--sp-1); }
.meta-list b { color: var(--text); font-weight: 700; }

.pros-inline {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin: 0 0 var(--sp-3); padding: 0; list-style: none;
  font-size: var(--fs-xs);
}
.pros-inline li {
  margin: 0;
  display: flex; align-items: center; gap: var(--sp-1);
  padding: 3px var(--sp-2);
  background: var(--success-soft);
  border-radius: var(--r-sm);
  color: var(--text-2);
}
.pros-inline svg { width: 13px; height: 13px; color: var(--success); flex: none; }

.brand-row__actions {
  display: grid;
  gap: var(--sp-2);
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .brand-row__actions { grid-column: auto; width: 200px; }
}

.bonus-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.bonus-chip b { color: var(--text); }

/* ------------------------------------------------------------- badges --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  color: var(--text-2);
  white-space: nowrap;
}
.tag:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }
.tag--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.tag--warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.tag--success { background: var(--success-soft); border-color: transparent; color: var(--success); }
.tag--muted { color: var(--text-3); }

.score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 3px var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-weight: 700;
  line-height: 1.4;
}
.score-pill__max { font-size: var(--fs-xs); font-weight: 400; color: var(--text-3); }
.score-pill--high { background: var(--success-soft); border-color: transparent; color: var(--success); }
.score-pill--mid { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.score-pill--low { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.score-pill--lg { font-size: 1.35rem; padding: var(--sp-2) var(--sp-4); }

.stars { display: inline-flex; gap: 1px; color: var(--gold); font-size: 0.9em; letter-spacing: 1px; }
.star--empty { color: var(--border-strong); }
.stars-num { margin-inline-start: var(--sp-2); color: var(--text-2); font-size: var(--fs-xs); }

/* ------------------------------------------------------------ sections --- */
.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  color: var(--text);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.tile:hover {
  text-decoration: none;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.tile__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
}
.tile__icon svg { width: 20px; height: 20px; }
.tile h3 { margin: 0; font-size: 1rem; }
.tile p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.tile__meta { margin-top: auto; padding-top: var(--sp-2); color: var(--text-3); font-size: var(--fs-xs); }

/* -------------------------------------------------------- bonus cards --- */
.bonus-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.bonus-card__head { display: flex; align-items: center; gap: var(--sp-3); }
.bonus-card__title { margin: 0; font-size: 1rem; }
.bonus-card__title a { color: var(--text); }
.bonus-card__kind { font-size: var(--fs-xs); color: var(--text-3); }
.bonus-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.bonus-figure { padding: var(--sp-2); background: var(--surface-2); text-align: center; }
.bonus-figure b { display: block; font-size: 1.15rem; }
.bonus-figure span { font-size: var(--fs-xs); color: var(--text-3); }
.bonus-card__days { font-size: var(--fs-xs); color: var(--text-2); }
.bonus-card .btn { margin-top: auto; }

/* -------------------------------------------------------------- table --- */
.table-wrap {
  /* `position: relative` is load-bearing: visually-hidden (.sr-only) captions
     and labels inside the table are absolutely positioned, and without a
     positioned ancestor they resolve against the page and stretch the
     document's scroll width on narrow screens. */
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { padding: var(--sp-3); text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th {
  background: var(--surface-2);
  font-size: var(--fs-xs);
  color: var(--text-2);
  white-space: nowrap;
}
/* Sticky headers only where there is a vertical scroll to justify them —
   on narrow screens they inflate the document's scroll width in Chrome. */
@media (min-width: 900px) {
  thead th { position: sticky; top: 0; }
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
.table-note { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-3); }

/* --------------------------------------------------------- score rows --- */
.score-rows { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.score-rows li { margin: 0; }
.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-1) var(--sp-3);
  align-items: center;
}
.score-row__label { font-size: var(--fs-sm); color: var(--text-2); }
.score-row__value { font-weight: 700; font-size: var(--fs-sm); }
.score-row__bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.score-row__fill {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--accent);
}
/* One accent for the whole scale keeps the panel calm; the numeric value next
   to each bar carries the precision, so colour is never the only signal. */
.score-row__fill--high { background: var(--accent); }
.score-row__fill--low { background: var(--warn); }

/* ----------------------------------------------------------- brand page --- */
.review-hero {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
@media (min-width: 860px) {
  .review-hero { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: var(--sp-6); }
}
.review-hero__id { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.review-hero h1 { margin: 0; font-size: var(--fs-h1); }
.review-hero__en { color: var(--text-3); font-size: var(--fs-xs); }
.review-hero__summary { color: var(--text-2); margin-bottom: var(--sp-4); }

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
@media (min-width: 560px) { .figure-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure {
  padding: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.figure b { display: block; font-size: 1.05rem; }
.figure span { font-size: var(--fs-xs); color: var(--text-3); }

.review-hero__cta { display: grid; gap: var(--sp-3); }
.review-hero__cta .btn { width: 100%; }

.review-layout { display: grid; gap: var(--sp-5); }
@media (min-width: 1024px) {
  .review-layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: var(--sp-6); }
}

.toc {
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + var(--sp-4)); } }
.toc > summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: "▾"; color: var(--text-3); transition: transform var(--dur) var(--ease); }
.toc[open] > summary::after { transform: rotate(180deg); }
.toc ol { margin: var(--sp-3) 0 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-sm);
  min-height: 40px;
}
.toc a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.toc a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }

.review-section { scroll-margin-top: calc(var(--header-h) + var(--sp-4)); margin-bottom: var(--sp-6); }
.review-section:last-child { margin-bottom: 0; }
.review-section > h2 { margin-bottom: var(--sp-3); }

.pro-con { display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .pro-con { grid-template-columns: 1fr 1fr; } }
.pro-con__box { padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.pro-con__box h3 { display: flex; align-items: center; gap: var(--sp-2); font-size: 1rem; }
.pro-con__box ul { margin: 0; padding: 0; list-style: none; }
.pro-con__box li {
  display: flex; gap: var(--sp-2); align-items: flex-start;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.pro-con__box li:last-child { border-bottom: 0; }
.pro-con__box svg { width: 16px; height: 16px; flex: none; margin-top: 5px; }
.pro-con--pro svg { color: var(--success); }
.pro-con--con svg { color: var(--warn); }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--r-lg);
  margin-block: var(--sp-5);
}
.cta-band p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); max-width: 52ch; }
.cta-band strong { color: var(--text); }

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-2) var(--sp-4) calc(var(--sp-2) + env(safe-area-inset-bottom));
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.sticky-cta.is-visible { display: flex; }
@media (min-width: 1024px) { .sticky-cta { display: none !important; } }
.sticky-cta__info { min-width: 0; font-size: var(--fs-xs); color: var(--text-3); }
.sticky-cta__info b { display: block; color: var(--text); font-size: var(--fs-sm); }
.sticky-cta .btn { margin-inline-start: auto; flex: none; }
body.has-sticky-cta { padding-bottom: 76px; }
@media (min-width: 1024px) { body.has-sticky-cta { padding-bottom: 0; } }

/* ---------------------------------------------------------- accordion --- */
.faq { display: grid; gap: var(--sp-2); }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 52px;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--surface-2); }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-inline-end: 2px solid var(--text-3);
  border-block-end: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__body { padding: 0 var(--sp-4) var(--sp-4); color: var(--text-2); font-size: var(--fs-sm); }

/* ------------------------------------------------------------- filters --- */
.filters {
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-5);
}
.filters__grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.filters__grid .field { margin: 0; }
.filters__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.filters__count { font-size: var(--fs-sm); color: var(--text-2); }

.filters-toggle { display: flex; width: 100%; margin-bottom: var(--sp-4); }
@media (min-width: 860px) { .filters-toggle { display: none; } }
@media (max-width: 859px) {
  .filters { display: none; }
  .filters.is-open {
    display: block;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    top: auto;
    z-index: 160;
    max-height: 86vh;
    overflow-y: auto;
    margin: 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    box-shadow: var(--shadow-3);
    padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom));
    animation: sheet-up var(--dur) var(--ease);
  }
  .filters-backdrop {
    position: fixed; inset: 0; z-index: 155;
    background: rgba(0, 0, 0, 0.35);
  }
}

/* ---------------------------------------------------------- comparison --- */
.compare-picker { display: grid; gap: var(--sp-3); }
.compare-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); min-height: 44px; align-items: center; }
.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-1);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--accent);
}
.compare-chip button {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.compare-chip button:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

.compare-table th:first-child { position: sticky; inset-inline-start: 0; background: var(--surface-2); z-index: 1; }
.compare-table td, .compare-table th { min-width: 140px; }
.compare-table th:first-child { min-width: 120px; }
.compare-head { display: grid; gap: var(--sp-2); justify-items: center; text-align: center; }
.win {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-inline-start: var(--sp-2);
  padding: 1px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--success-soft);
  color: var(--success);
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
}
.win svg { width: 12px; height: 12px; }

/* --------------------------------------------------------------- prose --- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--sp-6); }
.prose h3 { margin-top: var(--sp-5); font-size: 1.08rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--text-2); }
.prose li { line-height: var(--lh-body); }
.prose p { color: var(--text-2); }
.prose strong { color: var(--text); }

.note {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--text-3); }
.note--info { border-inline-start-color: var(--accent); }
.note--warn { border-inline-start-color: var(--warn); }
.note strong { color: var(--text); }

.disclaimer { margin-top: var(--sp-5); }

.empty-state {
  padding: var(--sp-7) var(--sp-4);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text-2);
}
.empty-state h2 { font-size: 1.1rem; }

/* ------------------------------------------------------------- reviews --- */
.review-item {
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
}
.review-item__head { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: center; margin-bottom: var(--sp-2); }
.review-item__author { font-weight: 500; }
.review-item__date { color: var(--text-3); font-size: var(--fs-xs); }
.review-item__body { color: var(--text-2); font-size: var(--fs-sm); }
.review-item__actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.helpful-btn {
  min-height: 40px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-xs);
  cursor: pointer;
}
.helpful-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.helpful-btn:disabled { opacity: 0.6; cursor: default; }
.helpful-btn.voted { border-color: var(--accent); color: var(--accent); }
.reply-box {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface-2);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.char-counter { font-size: var(--fs-xs); color: var(--text-3); }
.char-counter--short { color: var(--warn); }
.char-counter--ok { color: var(--success); }

/* -------------------------------------------------------------- footer --- */
.site-footer {
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding-bottom: var(--sp-6);
}
.footer-about p { color: var(--text-2); font-size: var(--fs-sm); max-width: 40ch; }
.footer-col h2 { font-size: var(--fs-sm); margin-bottom: var(--sp-3); color: var(--text); }
.footer-col nav { display: grid; gap: var(--sp-1); }
.footer-col a {
  display: block;
  padding: var(--sp-1) 0;
  min-height: 32px;
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  padding-block: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding-inline: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-2);
}
.to-top:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }

/* ----------------------------------------------------------------- 404 --- */
.error-page { padding-block: var(--sp-8); text-align: center; }
.error-page__code {
  font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--border-strong);
  letter-spacing: -0.04em;
}
.error-page h1 { margin-top: var(--sp-4); }
.error-page p { color: var(--text-2); max-width: 46ch; margin-inline: auto; }
.error-page__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-5); }
.error-page form { max-width: 420px; margin: var(--sp-5) auto 0; display: flex; gap: var(--sp-2); }

/* --------------------------------------------------- motion preference --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  a.tile:hover, .brand-row:hover { transform: none; }
}

/* --------------------------------------------------------------- print --- */
@media print {
  .site-header, .site-footer, .sticky-cta, .age-bar, .toc, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}
