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

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --ink: #03191d;
  --surface: #0b3b3a;
  --accent: #1af1a4;
  --white: #ffffff;
  --bg: var(--ink);
  --fg: #f2fbf8;
  --muted: oklch(84% 0.018 175);
  --muted-strong: oklch(90% 0.014 175);
  --line: oklch(100% 0 0 / 0.13);
  --line-strong: oklch(100% 0 0 / 0.24);
  --surface-soft: oklch(30% 0.038 181);
  --surface-deep: oklch(21% 0.03 184);
  --accent-ink: #03191d;
  --accent-soft: oklch(88% 0.13 166);
  --danger: oklch(72% 0.15 28);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 24px 70px oklch(0% 0 0 / 0.42);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

a:hover {
  color: var(--accent-soft);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

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

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 6px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 210;
  background: oklch(13% 0.02 187 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: oklch(12% 0.02 187 / 0.98);
  box-shadow: 0 12px 30px oklch(0% 0 0 / 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  width: 142px;
  height: auto;
}

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

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

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

.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

/* Menu state lives in a checkbox so the navigation opens without JavaScript. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-scrim {
  display: none;
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.nav-toggle:focus-visible ~ .header-actions .burger {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 981px) {
  .nav-toggle {
    display: none;
  }
}

.burger span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.nav-toggle:checked ~ .header-actions .burger span {
  background: transparent;
}

.nav-toggle:checked ~ .header-actions .burger span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked ~ .header-actions .burger span::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-ink);
}

.btn-primary:focus-visible {
  outline-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: oklch(100% 0 0 / 0.09);
  border-color: oklch(100% 0 0 / 0.4);
  color: var(--white);
}

.btn-accent-ghost {
  background: transparent;
  color: var(--accent);
  border-color: oklch(87% 0.14 166 / 0.45);
}

.btn-accent-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn .arrow {
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.btn:hover .arrow {
  transform: translate(2px, -2px);
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted-strong);
  font-weight: 600;
  text-decoration: none;
}

.link-quiet:hover {
  color: var(--white);
}

.link-quiet .arrow {
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 66px) 0 clamp(30px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 82% 0%, oklch(66% 0.16 166 / 0.16), transparent 70%),
    linear-gradient(oklch(100% 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 0.035) 1px, transparent 1px);
  background-size: auto, 74px 74px, 74px 74px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(46vw, 620px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: 0.55;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px oklch(87% 0.14 166 / 0.16);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px oklch(87% 0.14 166 / 0.16); }
  50% { box-shadow: 0 0 0 8px oklch(87% 0.14 166 / 0.04); }
}

.hero h1 {
  max-width: 20ch;
  margin: 0 0 20px;
  font-size: clamp(2.15rem, 3.85vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 58ch;
  margin: 0 0 26px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 0 16px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

.disclosure {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

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

.hero-visual img {
  display: block;
  margin: 0 auto;
}

.browser-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-deep);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.media-frame picture,
.page-hero-media picture,
.browser-card picture {
  display: block;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.browser-card::before,
.browser-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.browser-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.browser-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: oklch(25% 0.03 184);
  border-bottom: 1px solid var(--line);
}

.browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.26);
}

.browser-bar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.hero-note b {
  color: var(--accent);
  font-weight: 700;
}

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

.toc {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: oklch(16% 0.024 185 / 0.55);
}

.toc details {
  padding: 6px 0;
}

.toc summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
}

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

.toc summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}

.toc details[open] summary::after {
  content: "–";
}

.toc summary .toc-label {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.toc summary .toc-count {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 40px;
  margin: 0;
  padding: 4px 0 22px;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  border-bottom: 1px solid oklch(100% 0 0 / 0.07);
}

.toc li a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 2px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  text-decoration: none;
}

.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.toc li a:hover {
  color: var(--white);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: clamp(26px, 4vw, 46px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(46% 80% at 88% 0%, oklch(66% 0.16 166 / 0.12), transparent 72%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

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

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .sep {
  color: oklch(100% 0 0 / 0.35);
}

.page-hero h1 {
  max-width: 20ch;
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.03;
}

.page-lead {
  max-width: 54ch;
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.65;
}

.page-actions {
  margin-bottom: 0;
}

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

.page-hero-media .media-frame {
  display: block;
  margin: 0;
  padding: 10px;
}

.page-hero-media img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
}

.page-hero-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.brand-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(oklch(100% 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 0.04) 1px, transparent 1px),
    var(--surface);
  background-size: 38px 38px, 38px 38px, auto;
}

.brand-plate picture {
  display: block;
  width: 100%;
  max-width: 280px;
}

.brand-plate img {
  width: 100%;
  height: auto;
}

/* ---------- Article ---------- */

.article {
  padding: clamp(36px, 5vw, 64px) 0 0;
}

.article-intro {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.7;
}

.article .toc {
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.chapter {
  padding: clamp(38px, 5vw, 62px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.chapter:first-of-type {
  border-top: 0;
}

.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 22px;
}

.chapter-no {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.chapter h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.22rem);
}

.chapter-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.chapter-text {
  min-width: 0;
  width: 100%;
}

.chapter-text > p {
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.75;
}

.chapter h3 {
  margin: 28px 0 12px;
  font-size: clamp(1.12rem, 1.7vw, 1.34rem);
  letter-spacing: -0.015em;
  color: var(--white);
}

.chapter-text > h3:first-child {
  margin-top: 0;
}

.chapter-media {
  margin: 0 0 clamp(24px, 3vw, 36px);
}

.media-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-deep);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 44px oklch(0% 0 0 / 0.26);
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.chapter-media--portrait .media-frame {
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 24px);
  background:
    radial-gradient(ellipse at 50% 0%, oklch(60% 0.12 166 / 0.14), transparent 64%),
    var(--surface-deep);
}

.chapter-media--portrait .media-frame img {
  width: 100%;
  height: 560px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.chapter-media--wordmark .media-frame {
  display: grid;
  place-items: center;
  padding: clamp(26px, 4vw, 46px);
}

.chapter-media--wordmark .media-frame img {
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 400 / 57;
}

.chapter-media figcaption,
.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.article-figure {
  margin: 26px 0;
}

.article-figure .media-frame img {
  max-height: none;
}

/* ---------- Prose details ---------- */

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.prose ul li,
.prose ol li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  color: var(--muted-strong);
  line-height: 1.65;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

.prose ol {
  counter-reset: step;
}

.prose ol li {
  counter-increment: step;
  padding-left: 34px;
}

.prose ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0.28em;
  left: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

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

.prose strong {
  color: var(--white);
  font-weight: 700;
}

.prose h3 + p {
  margin-top: 0;
}

.note {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid oklch(87% 0.14 166 / 0.3);
  border-radius: var(--radius);
  background: oklch(66% 0.16 166 / 0.07);
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.65;
}

.note strong {
  color: var(--white);
}

.note p:last-child {
  margin: 0;
}

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

.table-scroll {
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-deep);
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-track {
  background: oklch(100% 0 0 / 0.04);
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

caption {
  padding: 15px 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th,
td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: oklch(100% 0 0 / 0.03);
}

td {
  color: var(--muted-strong);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

td strong {
  color: var(--white);
  font-weight: 700;
}

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

.faq-block {
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.faq-block > h2 {
  margin: 0 0 24px;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 14px 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  color: var(--accent-soft);
}

.faq-answer {
  max-width: 72ch;
  padding: 0 34px 18px 0;
  color: var(--muted-strong);
}

.faq-answer p {
  margin: 0;
}

/* ---------- CTA panel ---------- */

.cta-panel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(38px, 5vw, 58px) 0;
  padding: clamp(26px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 140% at 100% 0%, oklch(66% 0.16 166 / 0.16), transparent 68%),
    var(--surface);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid oklch(100% 0 0 / 0.07);
  border-radius: 10px;
  pointer-events: none;
}

.cta-copy {
  position: relative;
  max-width: 58ch;
}

.cta-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.cta-copy p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.author {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: clamp(34px, 5vw, 52px) 0;
  padding: clamp(22px, 3vw, 30px) 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.author-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid oklch(87% 0.14 166 / 0.5);
  border-radius: 50%;
  background:
    linear-gradient(135deg, oklch(87% 0.14 166 / 0.2), transparent 62%),
    var(--surface);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.author-eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.author-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.author-bio {
  max-width: 76ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.65;
}

.author-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.site-footer {
  margin-top: clamp(30px, 4vw, 48px);
  padding: clamp(44px, 6vw, 68px) 0 22px;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.05fr 1.15fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 38px;
}

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

.footer-brand p {
  max-width: 34ch;
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer-disclosure {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

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

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 0 0 9px;
}

.footer-links a {
  color: var(--muted-strong);
  font-size: 0.86rem;
  text-decoration: none;
}

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

.footer-contact {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-contact a {
  color: var(--muted-strong);
  text-decoration: none;
}

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

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.trust-list a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 92px;
  padding: 8px 8px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted-strong);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.trust-list a img {
  width: 64px;
  height: 26px;
  object-fit: contain;
}

.trust-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pay-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pay-list li {
  padding: 5px 9px;
  border: 1px solid oklch(100% 0 0 / 0.16);
  border-radius: 4px;
  background: oklch(100% 0 0 / 0.04);
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pay-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.footer-bottom .legal-note {
  max-width: 70ch;
  margin-left: auto;
}

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

.age-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.age-cluster p {
  max-width: 26ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ---------- Sticky mobile CTA ---------- */

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 8px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: oklch(12% 0.02 187 / 0.97);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -14px 34px oklch(0% 0 0 / 0.35);
  backdrop-filter: blur(12px);
}

.mobile-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  align-items: center;
  width: min(100%, 560px);
  margin-inline: auto;
}

.mobile-cta .btn {
  min-height: 40px;
}

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

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }

  .primary-nav ul {
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0 var(--gutter) 22px;
    background: oklch(12% 0.022 187 / 0.985);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 40px oklch(0% 0 0 / 0.34);
  }

  .nav-scrim {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100dvh;
    z-index: 1;
    background: oklch(6% 0.015 187 / 0.62);
    backdrop-filter: blur(2px);
    cursor: pointer;
  }

  .nav-toggle:checked ~ .primary-nav {
    display: block;
  }

  .nav-toggle:checked ~ .nav-scrim {
    display: block;
  }

  body:has(.nav-toggle:checked) {
    overflow: hidden;
  }

  .primary-nav ul {
    display: block;
  }

  .primary-nav li {
    border-bottom: 1px solid oklch(100% 0 0 / 0.08);
  }

  .primary-nav a {
    display: block;
    padding: 13px 0;
    font-size: 0.88rem;
  }

  .primary-nav a[aria-current="page"]::after {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .hero-facts li {
    padding: 9px 0;
    border-left: 0;
    border-bottom: 1px solid oklch(100% 0 0 / 0.07);
  }

  .hero-facts li:last-child {
    border-bottom: 0;
  }

  .hero-facts strong {
    display: inline;
    margin-right: 8px;
  }
}

@media (max-width: 880px) {
  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 22ch;
  }

  .hero-visual,
  .page-hero-media {
    max-width: 640px;
  }

  .hero-facts li {
    padding: 0 12px;
  }

  .chapter-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .mobile-cta {
    display: block;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-actions {
    margin-bottom: 22px;
  }

  .hero-actions .btn-primary {
    display: none;
  }

  .page-actions {
    display: none;
  }

  .toc ol {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 16px;
  }

  .article {
    padding-top: 30px;
  }

  .chapter-head {
    gap: 10px;
  }

  .page-hero-media {
    max-width: 100%;
  }

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

  .cta-panel {
    padding: 26px 22px;
  }

  .cta-panel::before {
    inset: 8px;
  }

  .cta-actions {
    width: 100%;
  }

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

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

  .author-mark {
    width: 58px;
    height: 58px;
    font-size: 1.05rem;
  }

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

  .footer-bottom {
    align-items: flex-start;
  }

  .footer-bottom .legal-note {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 124px;
  }

  .header-actions .btn-accent-ghost {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.85rem, 8.6vw, 2.4rem);
    max-width: 100%;
  }

  .hero-lead,
  .page-lead {
    font-size: 0.98rem;
  }

  .mobile-cta-inner {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-cta .btn {
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .chapter {
    padding: 32px 0;
  }

  .chapter-media--portrait .media-frame {
    padding: 0;
  }

  .chapter-media--portrait .media-frame img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .cta-panel {
    margin: 32px 0;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

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


.payments-wrap {
  margin: 30px 0 30px;
}
.payments-wrap h4 {
  color: #fff;
  margin: 0 0 18px;
}
.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
  justify-content: space-between;
}
.payment-item img {
  display: block;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}
.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 {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  font-size: 12px;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-icons .pay-icon img {
  filter: brightness(100);
}
.main-title {
  display: flex;
  align-items: center;
}

.main-title .__right {
  margin-left: 60px;
  flex: 0 0 240px;
}
@media (max-width:800px) {
  .payments-grid {
    gap: 16px;
  }
  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

      .main-title .__right {
    margin-left: 20px;
    flex: 0 0 220px;
  }
}
@media (max-width:639.98px) {
      .main-title {
    flex-direction: column;
  }

  .main-title .__right {
    margin-left: 0;
    flex: inherit;
  }
  .main-title .__right img {
    width: 300px !important;
  }
}