/* ClearAligner.ro — design tokens and styles */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/newsreader-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/newsreader-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallback so the swap to Newsreader does not shift the layout. */
@font-face {
  font-family: 'Newsreader Fallback';
  src: local('Georgia'), local('Times New Roman'), local('Liberation Serif'), local('DejaVu Serif');
  size-adjust: 92%;
  ascent-override: 98%;
  descent-override: 26%;
}

:root {
  --bg: #FFFEFA;
  --surface: #FFFFFF;
  --text: #28232B;
  --muted: #655F69;
  --accent: #701F43;
  --accent-deep: #49152E;
  --panel: #EEEDF7;
  --lime: #E5EFA6;
  --line: #E5E1E4;
  --pending: #F4F0E6;

  --serif: 'Newsreader', 'Newsreader Fallback', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(40, 35, 43, 0.04), 0 14px 34px -18px rgba(40, 35, 43, 0.18);
  --header-h: 72px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 460;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4.25rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.25; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

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

[hidden] { display: none !important; }
/* Controls that only work with JavaScript. The `js` class is set in <head>, before first paint. */
html:not(.js) .js-only { display: none !important; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent-deep);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.small-note { font-size: 0.9rem; color: var(--muted); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--panel); color: var(--accent-deep); }
.btn-light { background: var(--lime); color: var(--accent-deep); }
.btn-light:hover { background: #fff; color: var(--accent-deep); }
.btn-link {
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-weight: 600;
}
.btn-link:hover { color: var(--accent-deep); text-decoration: underline; }
.btn-small { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn .ext { font-size: 0.9em; line-height: 1; }

.text-link { display: inline-block; margin-top: 1.25rem; font-weight: 600; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 254, 250, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: var(--header-h);
}
.header-inner > .brand { margin-right: auto; }

.lang-switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 36px;
  padding: 0 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--accent); background: var(--panel); }
.lang-switch a[aria-current='true'] { background: var(--accent); color: #fff; }

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
}
.brand:hover { color: var(--text); }
.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 520;
  letter-spacing: -0.01em;
}
.wordmark-mid { font-style: normal; }
.wordmark-tld { color: var(--accent); }
.brand-tagline {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
}
.nav-list a:hover,
.nav-list a[aria-current='page'] { color: var(--accent); text-decoration: underline; text-underline-offset: 0.4em; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ''; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after { top: 5px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  html:not(.js) .nav-toggle { display: none; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(40, 35, 43, 0.3);
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }

  /* Without JavaScript: links wrap under the brand. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
  html:not(.js) .nav-list { flex-wrap: wrap; gap: 0.25rem 1.25rem; }
}

/* ------------------------------------------------------------------ hero */

.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36rem; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-figure {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 560 / 480;
  padding: clamp(1rem, 5%, 2.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #F3F2FA, #E4E1F3);
  overflow: hidden;
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(73, 21, 46, 0.14));
}
.hero-booking { margin: 1.5rem 0 0; color: var(--muted); }
.hero-booking .btn-link { padding-inline: 0; }

.panel { background: var(--panel); border-radius: var(--radius-lg); }

/* ------------------------------------------------------------------ situations explorer */

.cases-section { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.cases-section .section-head { margin-inline: auto; text-align: center; }

.case-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.case-tabs [role='tab'] {
  --icon-fill: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-height: 112px;
  padding: 1rem 0.5rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.case-tabs [role='tab']:first-child { border-top-left-radius: var(--radius); }
.case-tabs [role='tab']:last-child { border-top-right-radius: var(--radius); }
.case-tabs [role='tab']:hover { --icon-fill: var(--panel); background: var(--panel); }
.case-tabs [role='tab'][aria-selected='true'] { --icon-fill: var(--accent); background: var(--accent); color: #fff; }
.case-tabs [role='tab'][aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  z-index: 1;
  width: 16px;
  height: 16px;
  background: var(--accent);
  transform: translateX(-50%) rotate(45deg);
}
.case-tabs [role='tab']:focus-visible { outline-offset: -4px; }
.case-icon { width: 66px; height: 32px; fill: var(--icon-fill); stroke: currentColor; stroke-width: 1.1; }

.case-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: radial-gradient(120% 120% at 30% 15%, #5E1D3C 0%, var(--accent-deep) 55%, #2E0C1C 100%);
  color: #F6ECF1;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
html:not(.js) .case-stage { border-radius: var(--radius-lg); }
.case-stage :focus-visible { outline-color: var(--lime); }
.case-figure { margin: 0; }
.smile { display: block; width: 100%; max-width: 520px; height: auto; margin-inline: auto; }
.smile [data-tooth] { stroke: #B4A0AC; stroke-width: 1.1; }
.smile .gum { fill: #E6B2C5; stroke: #C98DA6; stroke-width: 1.2; }

.case-controls { margin-top: 1.25rem; }
.slider-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.slider-label { font-weight: 600; color: #fff; }
.slider-row output { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--lime); }
.range {
  --fill: 0%;
  width: 100%;
  height: 44px;
  margin: 0.25rem 0 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--lime) var(--fill), rgba(255, 255, 255, 0.24) var(--fill));
}
.range::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.24); }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--lime); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid var(--accent-deep);
  box-shadow: 0 0 0 2px var(--lime);
}
.range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid var(--accent-deep);
  box-shadow: 0 0 0 2px var(--lime);
}
.range:focus-visible { outline-offset: 2px; }
.slider-ends { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.85rem; color: #D9C3CE; }
.case-note { margin-top: 1rem; font-size: 0.85rem; color: #D9C3CE; }

.case-title { color: var(--lime); font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.case-panel p { color: #F1E4EA; font-size: 1.08rem; }
.case-panel .case-treatment { padding-left: 1rem; border-left: 2px solid var(--lime); color: #DCC8D2; font-size: 1rem; }
.case-panel .btn { margin-top: 0.5rem; }
.case-panel:focus-visible { outline-offset: 6px; border-radius: 12px; }
.case-panel + .case-panel { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.js .case-panel + .case-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.js [data-cases]:not([data-ready]) .case-panel ~ .case-panel { display: none; }

@media (max-width: 959px) {
  .case-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .case-tabs [role='tab'] { flex: 0 0 108px; scroll-snap-align: start; }
  .case-tabs [role='tab'][aria-selected='true']::after { display: none; }
  .case-stage { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ sections */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: linear-gradient(180deg, rgba(238, 237, 247, 0.55), rgba(238, 237, 247, 0.25)); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-lead { font-size: 1.125rem; color: var(--muted); margin: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-card { position: relative; padding: 1.75rem; display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.topic-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(40, 35, 43, 0.05), 0 20px 40px -20px rgba(40, 35, 43, 0.28); }
.topic-card h3 { margin-top: 1.25rem; }
.topic-card p { color: var(--muted); flex: 1; }
.topic-number {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.9rem;
}
.topic-more { font-weight: 600; color: var(--accent); }
.stretched-link { color: var(--text); text-decoration: none; }
.stretched-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.stretched-link:hover { color: var(--accent); }
.stretched-link:focus-visible { outline: none; }
.stretched-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------------------------------------ compare */

.compare-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tablist [role='tab'] {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tablist [role='tab'][aria-selected='true'] { background: var(--accent); color: #fff; }
.tabpanel { padding: clamp(1.25rem, 3vw, 2rem); }
.tabpanel + .tabpanel { margin-top: 1rem; }
.js .tabpanel + .tabpanel { margin-top: 0; }
.js [data-tabs]:not([data-ready]) .tabpanel ~ .tabpanel { display: none; }
.js .tabpanel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.criteria { margin: 0; }
.criteria-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.criteria-row:first-child { padding-top: 0.25rem; }
.criteria-row:last-child { border-bottom: 0; padding-bottom: 0; }
.criteria dt { font-weight: 650; }
.criteria dd { margin: 0; color: var(--muted); }

.table-wrap { margin: 1.5rem 0 0.75rem; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare-table th,
.compare-table td { padding: 1rem 1.15rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--panel); font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.compare-table tbody th { font-weight: 650; width: 22%; }
.compare-table td { color: var(--muted); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }

@media (max-width: 719px) {
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; width: 100%; }
  .compare-table tbody th { width: 100%; background: var(--panel); font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
  .compare-table td::before { content: attr(data-label); display: block; color: var(--text); font-weight: 650; margin-bottom: 0.15rem; }
  .compare-table tbody tr:last-child td:last-child { border-bottom: 0; }
  .compare-table tbody tr:last-child > th,
  .compare-table tbody tr:last-child > td:not(:last-child) { border-bottom: 1px solid var(--line); }
  .criteria-row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ------------------------------------------------------------------ steps */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.step-title { font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ------------------------------------------------------------------ quiz */

.quiz-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.quiz { padding: clamp(1.25rem, 3.5vw, 2.25rem); }
html:not(.js) [data-quiz] { display: none; }
.quiz-fallback { padding: 1.5rem; }
.quiz-progress { margin-bottom: 1.25rem; }
.quiz-step-label { margin: 0 0 0.5rem; font-size: 0.9rem; font-weight: 650; color: var(--accent); }
.progress { height: 8px; border-radius: 999px; background: #D7D3E6; overflow: hidden; }
.progress span { --progress: 0%; display: block; height: 100%; width: var(--progress); background: var(--accent); border-radius: inherit; transition: width 0.25s ease; }
.quiz-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz-legend { padding: 0; margin-bottom: 1rem; }
.quiz-question { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.quiz-question:focus { outline: none; }
.quiz-question:focus-visible { outline: 3px solid var(--accent); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 64px;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  font-weight: 550;
  line-height: 1.35;
}
.option:hover { border-color: #C9B5C0; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-mark {
  flex: none;
  width: 22px; height: 22px;
  border: 2px solid #A99BA5;
  border-radius: 50%;
  background: #fff;
}
.option:has(input:checked) { border-color: var(--accent); background: #FBF7F9; box-shadow: 0 0 0 1px var(--accent) inset; }
.option input:checked + .option-mark { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 45%, #fff 50%); }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.quiz-error { margin: 1rem 0 0; color: var(--accent); font-weight: 650; }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.quiz-result-title { font-size: clamp(1.5rem, 2.8vw, 1.9rem); }
.quiz-result-title:focus { outline: none; }
.quiz-list { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.quiz-list li { margin-bottom: 0.65rem; padding-left: 0.25rem; font-weight: 550; }
.quiz-list li::marker { color: var(--accent); font-weight: 700; }

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

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--panel); }
.faq-icon::before,
.faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--accent); border-radius: 2px; transition: transform 0.2s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 3rem 1.25rem 0; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

.faq-controls { margin-bottom: 1.5rem; }
.faq-search-label { display: block; margin-bottom: 0.5rem; font-weight: 650; }
.search-field { position: relative; }
.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 3.25rem 0.75rem 1.25rem;
  border: 1.5px solid #CFC6CC;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.search-clear {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--panel);
  color: var(--accent-deep);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.faq-count { margin: 0.6rem 0 0; font-size: 0.92rem; color: var(--muted); }
.faq-empty { margin-top: 1.5rem; padding: 1.5rem; background: var(--panel); border-radius: var(--radius); }

/* ------------------------------------------------------------------ final CTA */

.final-cta { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--accent-deep); color: var(--bg); }
.final-cta-inner { max-width: 52rem; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #F1E6EC; font-size: 1.125rem; margin-inline: auto; max-width: 40rem; }
.final-cta .btn { margin-top: 0.75rem; }
.final-cta .final-cta-note { margin-top: 1.25rem; font-size: 0.92rem; color: #DCC7D2; }
.final-cta :focus-visible { outline-color: var(--lime); }

/* ------------------------------------------------------------------ content pages */

.breadcrumbs { padding-top: 1.5rem; font-size: 0.9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.5rem; color: #B3A9B0; }
.breadcrumbs a { color: var(--muted); }

.page-hero { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h1 { max-width: 20ch; }
.page-lead { max-width: 44rem; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.badge-pending { background: var(--pending); color: #5C5148; }
.badge-pending::before { background: #B08A3E; }
.badge-reviewed { background: var(--lime); color: var(--accent-deep); }
.badge-reviewed::before { background: var(--accent-deep); }

.page-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 46rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.page-layout-single { grid-template-columns: minmax(0, 52rem); }

.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 1.25rem 1.25rem 1rem; background: var(--panel); border-radius: var(--radius); font-size: 0.93rem; }
.toc-title { margin: 0 0 0.6rem; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: 0.45rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.prose { min-width: 0; font-size: 1.0625rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.6em; font-size: clamp(1.65rem, 3vw, 2.15rem); }
.prose h3 { margin-top: 1.8em; }
.prose ul,
.prose ol { padding-left: 1.3rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; }
.prose code { font-size: 0.9em; background: var(--panel); padding: 0.1em 0.35em; border-radius: 6px; }
.prose .checklist,
.prose .prices { margin: 1.75rem 0 2rem; }

.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources h2 { margin-top: 0; font-size: 1.5rem; }
.sources li { margin-bottom: 0.5rem; }

.review-list { list-style: none; padding: 0 !important; }
.review-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--panel);
  border-radius: var(--radius-lg);
}
.cta-card-title { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.cta-card p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* checklist */
.checklist { padding: clamp(1.25rem, 3.5vw, 2rem); }
.checklist-title { margin-top: 0 !important; }
.checklist-intro { color: var(--muted); }
.checklist-status { margin: 0 0 1.25rem; }
.checklist-count { margin: 0 0 0.5rem; font-weight: 650; color: var(--accent-deep); }
.check-items { list-style: none; margin: 0 0 1rem !important; padding: 0 !important; display: grid; gap: 0.6rem; }
.check-items li { margin: 0; }
.check-item {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  min-height: 56px;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
}
.check-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  flex: none;
  width: 24px; height: 24px;
  margin-top: 1px;
  border: 2px solid #A99BA5;
  border-radius: 7px;
  background: #fff;
}
.check-item input:checked + .check-box {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.check-item:has(input:checked) { border-color: var(--accent); background: #FBF7F9; }
.check-item:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.check-text { display: flex; flex-direction: column; gap: 0.15rem; }
.check-text span { color: var(--muted); font-size: 0.97rem; }

.not-found { padding-bottom: clamp(3rem, 8vw, 6rem); }
.not-found-links { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4rem); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; }
.footer-brand p { margin-top: 1rem; color: var(--muted); max-width: 30rem; }
.footer-title { margin: 0 0 0.75rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.35rem; }
.footer-nav a { display: inline-block; padding: 0.3rem 0; color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.footer-bottom p { margin: 0; max-width: 48rem; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1079px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps .step:last-child { grid-column: 1 / -1; }
}

@media (max-width: 959px) {
  .hero-grid,
  .compare-grid,
  .quiz-grid,
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .hero-visual { max-width: 520px; }
}

@media (max-width: 599px) {
  body { font-size: 1rem; }
  .options { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .faq-a { padding-right: 0; }
  .wordmark { font-size: 1.3rem; }
  .brand-tagline { font-size: 0.66rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .quiz-actions .btn-primary,
  .quiz-actions .btn-secondary,
  .cta-actions .btn { flex: 1 1 100%; }
}

/* Narrow phones: the menu button shows only its icon, so brand, language and menu fit one row. */
@media (max-width: 419px) {
  .header-inner { gap: 0.5rem; }
  .nav-toggle { padding: 0.5rem 0.75rem; }
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-switch a { min-width: 36px; padding: 0 0.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
