/* Lalibet-app.com — single stylesheet for every page.
   Palette is locked to the brand brief: #17417D, #FEF200, #778DBC, #FFFFFF. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  --brand: #17417d;
  --brand-deep: #081a31;
  --brand-800: #0e2c56;
  --brand-700: #123566;
  --brand-500: #2f5c9e;
  --brand-100: #e6edf8;
  --accent: #fef200;
  --accent-deep: #e6da00;
  --muted: #778dbc;
  --muted-fg: #4b5b76;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --fg: #0d1b2e;
  --border: #d5dfef;
  --success: #0b7a4b;
  --danger: #b42318;
  --font-display: "Sora", "Trebuchet MS", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
  --container: 1180px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(8, 26, 49, 0.06), 0 8px 24px rgba(8, 26, 49, 0.06);
  --shadow-md: 0 18px 48px rgba(8, 26, 49, 0.16);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-deep);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

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

/* ---------- Top bar ---------- */

.topbar {
  background: var(--brand-deep);
  color: #c5d6ee;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.topbar p {
  margin: 0;
}

.topbar strong {
  color: var(--accent);
  font-weight: 600;
}

.topbar a {
  color: #c5d6ee;
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 214, 238, 0.4);
}

.topbar a:hover {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-deep);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(4, 14, 28, 0.34);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 8px;
  border-radius: 9px;
  background: #ffffff;
  line-height: 0;
}

.brand img {
  display: block;
  width: 146px;
  height: auto;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #e3ecfa;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.primary-nav a[aria-current="page"] {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: transform 160ms ease, background-color 160ms ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: transform 160ms ease, top 160ms ease;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-header.nav-open .nav-toggle span {
  background: transparent;
}

.site-header.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-actions {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

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

.btn-accent {
  background: var(--accent);
  color: var(--brand-deep);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #ffffff;
  color: var(--brand-deep);
  border-color: #ffffff;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #ffffff;
  border-color: var(--brand-deep);
}

.btn-ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
}

.btn-ghost-light:hover {
  background: #ffffff;
  color: var(--brand-deep);
  border-color: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: var(--brand-deep);
  border-color: #ffffff;
}

.btn-light:hover {
  background: var(--accent);
  color: var(--brand-deep);
  border-color: var(--accent);
}

.btn-outline {
  background: #ffffff;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.86rem;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 84px) 0 clamp(58px, 7vw, 92px);
  background: var(--brand);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 18%, rgba(254, 242, 0, 0.2), transparent 34%),
    radial-gradient(circle at 6% 86%, rgba(119, 141, 188, 0.38), transparent 38%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 56ch;
  margin: 0 0 26px;
  color: #dbe7f9;
  font-size: clamp(1rem, 1.5vw, 1rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
}

.hero-actions .btn {
  min-height: 50px;
  padding: 0 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #c9d8ef;
  font-size: 0.82rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-shot {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(3, 12, 26, 0.45);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.score-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-deep);
  box-shadow: 0 10px 30px rgba(4, 15, 30, 0.28);
}

.score-number {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.score-label {
  display: block;
  margin-top: 4px;
  color: var(--muted-fg);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--brand);
}

.stars svg {
  display: block;
  width: 11px;
  height: 11px;
  fill: currentColor;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.stat {
  padding: 20px 22px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted-fg);
  font-size: 0.78rem;
}

.stat-note {
  margin: 10px 0 0;
  color: var(--muted-fg);
  font-size: 0.72rem;
  text-align: right;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding: 20px 0 46px;
  background: linear-gradient(180deg, #edf2fa 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  margin: 0 0 26px;
  font-size: 0.78rem;
  color: var(--muted-fg);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "-";
  color: var(--muted-fg);
}

.breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted-fg);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
}

.page-hero h1 {
  margin: 0 0 16px;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-hero-lead {
  max-width: 64ch;
  margin: 0 0 22px;
  color: var(--muted-fg);
  font-size: 1.02rem;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: var(--muted-fg);
  font-size: 0.8rem;
}

.page-hero-meta .tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  font-weight: 600;
}

.page-hero-media {
  margin: 0;
}

.page-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  border: 1px solid #c9d6e9;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.page-hero--plain h1 {
  max-width: 24ch;
}

/* ---------- Review layout ---------- */

.page-main {
  padding: 52px 0 80px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  align-items: start;
  gap: 48px;
}

.review-body {
  min-width: 0;
  max-width: 820px;
}

.review-body > p:first-of-type {
  font-size: 1.08rem;
  line-height: 1.72;
  color: #1d2c42;
}

.review-body h2 {
  margin: 58px 0 18px;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.05rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  scroll-margin-top: 100px;
  text-wrap: balance;
}

.review-body h3 {
  margin: 28px 0 10px;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

.review-body p {
  margin: 0 0 16px;
  font-size: 1.005rem;
  line-height: 1.74;
}

.review-body ul,
.review-body ol {
  margin: 0 0 22px;
}

.review-body li {
  margin-bottom: 8px;
}

.review-body li:last-child {
  margin-bottom: 0;
}

/* ---------- Table of contents ---------- */

.toc {
  margin: 26px 0 38px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
}

.toc[open] summary::after {
  content: "\2212";
}

.toc[open] summary {
  border-bottom: 1px solid var(--border);
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding: 18px 20px 20px 38px;
  font-size: 0.9rem;
}

.toc li {
  margin: 0;
  break-inside: avoid;
}

.toc a {
  color: var(--brand);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ---------- Figures ---------- */

.section-figure {
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.section-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface-2);
}

.section-figure .figure-link {
  display: block;
  line-height: 0;
  transition: opacity 160ms ease;
}

.section-figure .figure-link:hover {
  opacity: 0.94;
}

.section-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 0.76rem;
  line-height: 1.5;
}

/* ---------- Tables ---------- */

.table-wrap {
  margin: 0 0 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table-wrap caption {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  caption-side: top;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap thead th {
  background: var(--brand-100);
  color: var(--brand-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr:nth-child(even) {
  background: #f9fbfe;
}

.table-wrap td:first-child {
  color: var(--brand-deep);
  font-weight: 600;
}

.table-scroll-hint {
  display: none;
  margin: -16px 0 22px;
  color: var(--muted-fg);
  font-size: 0.74rem;
}

/* ---------- Lists ---------- */

.check-list {
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  margin: 0;
  padding-left: 32px;
  line-height: 1.6;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
}

.cross-list li::before {
  content: "\2014";
  background: #fbe9e7;
  color: var(--danger);
  font-size: 0.7rem;
}

.step-list {
  counter-reset: step;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  display: grid;
  gap: 14px;
}

.step-list li {
  position: relative;
  margin: 0;
  padding: 2px 0 0 44px;
  line-height: 1.6;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Callouts ---------- */

.callout {
  margin: 32px 0;
  padding: 26px;
  border-radius: 16px;
  background: var(--brand);
  color: #ffffff;
}

.callout h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.callout p {
  margin: 0 0 18px;
  color: #dbe7f9;
  font-size: 0.95rem;
}

.callout .btn {
  min-height: 44px;
}

.note {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #e4dc00;
  border-radius: 12px;
  background: #fffde3;
  color: #3a3600;
  font-size: 0.9rem;
}

.note strong {
  color: #211f00;
}

/* ---------- Aside ---------- */

.review-aside {
  position: sticky;
  top: 98px;
}

.aside-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.aside-head {
  padding: 22px;
  background: var(--brand);
  color: #ffffff;
}

.aside-eyebrow {
  margin: 0 0 8px;
  color: #c9d8ef;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aside-score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.aside-score {
  font-family: var(--font-display);
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1;
}

.aside-score small {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: #c9d8ef;
}

.aside-head .stars {
  margin-top: 6px;
  color: var(--accent);
}

.aside-body {
  padding: 20px;
}

.aside-body > .btn + .btn {
  margin-top: 10px;
}

.aside-facts {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.84rem;
}

.aside-facts li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.aside-facts span {
  color: var(--muted-fg);
}

.aside-facts strong {
  color: var(--brand-deep);
  font-weight: 600;
  text-align: right;
}

.aside-note {
  margin: 14px 0 0;
  color: var(--muted-fg);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
}

.faq details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.faq summary {
  position: relative;
  padding: 16px 52px 16px 18px;
  color: var(--brand-deep);
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--brand);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-a {
  padding: 14px 18px 18px;
  color: var(--muted-fg);
  font-size: 0.94rem;
  line-height: 1.68;
}

.faq-a p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

/* ---------- Author ---------- */

.author-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  margin: 48px 0 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.author-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.author-card .author-kicker {
  margin: 0 0 4px;
  color: var(--muted-fg);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-card .author-name {
  margin: 0 0 2px;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.author-card .author-role {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
}

.author-card .author-bio {
  margin: 0 0 8px;
  color: var(--muted-fg);
  font-size: 0.88rem;
  line-height: 1.6;
}

.author-card .author-meta {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.74rem;
}

.author-meta a {
  color: var(--brand);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 80px;
  padding: 56px 0 0;
  background: var(--brand-deep);
  color: #c9d8ef;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.72fr 0.72fr 1.05fr;
  gap: 40px 34px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand img {
  width: 138px;
}

.footer-brand p {
  max-width: 40ch;
  margin: 0 0 16px;
  color: #b3c7e4;
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
}

.footer-icons .pay-icon {
  display: flex;
  align-items: center;
}

.footer-icons .pay-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 5px;
  border: 1px solid #ffffff;
  border-radius: 100%;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.footer-icons .pay-icon img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: brightness(100);
}

.payments-wrap {
  margin: 0 0 18px;
}

.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: center;
  justify-content: space-between;
}

.payment-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 30px;
}

.payment-item img {
  display: block;
  max-width: 70px;
  max-height: 30px;
  width: auto;
  height: auto;
  margin: 0;
}

.footer-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-links ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #c9d8ef;
  font-size: 0.85rem;
  text-decoration: none;
}

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

.footer-contact p {
  margin: 0 0 10px;
  color: #c9d8ef;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #a8bddb;
  font-size: 0.74rem;
  line-height: 1.55;
}

.footer-bottom p {
  margin: 0;
  max-width: 76ch;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
}

/* ---------- Mobile CTA dock ---------- */

.cta-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 26, 49, 0.97);
  box-shadow: 0 -10px 30px rgba(3, 12, 26, 0.24);
}

.cta-dock .btn {
  flex: 1 1 0;
  min-height: 48px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .primary-nav ul {
    gap: 0;
  }

  .primary-nav a {
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .header-inner {
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  .review-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .review-aside {
    display: none;
  }

  .review-body {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 10px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--brand-deep);
    box-shadow: 0 24px 40px rgba(3, 12, 26, 0.35);
  }

  .site-header.nav-open .primary-nav {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 2px;
  }

  .primary-nav a {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .mobile-actions .btn {
    min-height: 48px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .hero-figure {
    max-width: 640px;
  }

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

  .page-hero-media {
    order: 2;
    max-width: 620px;
  }

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

  .stat {
    border-bottom: 1px solid var(--border);
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .cta-dock {
    display: none;
  }
}

@media (max-width: 860px) {
  .cta-dock {
    display: flex;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .site-footer {
    margin-top: 64px;
  }
}

@media (max-width: 720px) {
  .hero-figure {
    display: none;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .topbar-inner {
    justify-content: flex-start;
  }

  .topbar-secondary {
    display: none;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 148px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.6vw, 2.9rem);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .score-badge {
    top: 10px;
    right: 10px;
    padding: 8px 10px;
  }

  .score-number {
    font-size: 1.3rem;
  }

  .stat {
    padding: 16px;
  }

  .stat-value {
    font-size: 1.12rem;
  }

  .page-hero {
    padding-bottom: 36px;
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .page-main {
    padding-top: 36px;
  }

  .review-body h2 {
    margin-top: 44px;
  }

  .toc ol {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 34px;
  }

  .table-scroll-hint {
    display: block;
  }

  .author-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .author-avatar {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 800px) {
  .payments-grid {
    gap: 14px;
  }

  .payment-item {
    width: 65px;
  }

  .payment-item img {
    max-width: 65px;
  }
}

@media (max-width: 480px) {
  .hero-meta {
    display: grid;
    gap: 8px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-hero-media img {
    max-height: 230px;
  }

  .callout {
    padding: 22px;
  }
}

@media (max-width:374.98px) {
      .topbar-inner {
        display: none;
      }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Inner page utilities ---------- */

.review-body--single {
  max-width: 840px;
  margin-inline: auto;
}

.review-body p.lead-note {
  margin: 0 0 26px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted-fg);
  font-size: 0.94rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.contact-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.contact-card p {
  margin: 0 0 8px;
  color: var(--muted-fg);
  font-size: 0.88rem;
  line-height: 1.6;
}

.contact-card a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card .contact-value {
  display: block;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-word;
}

.timeline {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  margin: 0 0 22px;
  padding-left: 26px;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: var(--bg);
}

.timeline strong {
  display: block;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.timeline span {
  color: var(--fg);
  font-weight: 600;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pill-row li {
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Disclosure + footer contact ---------- */

.review-body p.affiliate-note {
  margin: 34px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted-fg);
  font-size: 0.84rem;
  line-height: 1.6;
}

.affiliate-note strong {
  color: var(--brand-deep);
}

.footer-contact-line {
  margin-top: 18px;
}

/* ---------- Page hero actions ---------- */

.hero-actions--page {
  margin: 20px 0 0;
  gap: 10px;
}

.hero-actions--page .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.page-hero-media a {
  display: block;
  border-radius: 14px;
  line-height: 0;
}

.page-hero-media a:hover img {
  border-color: var(--brand);
}

.hero-shot {
  display: block;
  text-decoration: none;
  transition: box-shadow 180ms ease;
}

.hero-shot:hover {
  box-shadow: 0 34px 80px rgba(3, 12, 26, 0.55);
}

/* Focus ring readable on both light and dark surfaces */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--brand-deep);
}

@media (max-width: 720px) {
  .hero-actions--page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions--page .btn {
    width: 100%;
  }
}
