/* ==========================================================================
   Serge Terryn — Praktische boeken
   Eén stylesheet, geen framework. Kleuren, typografie en componenten.
   ========================================================================== */

:root {
  --paper: #f6f1e6;
  --paper-deep: #efe7d6;
  --surface: #fffdf8;
  --ink: #15211c;
  --ink-2: #3f4c45;
  --muted: #5f6b64;
  --line: #e3dac8;
  --line-strong: #cfc3aa;
  --green: #0e5c4a;
  --green-dark: #0a4739;
  --green-soft: #e3efe9;
  --amber: #c9772a;
  --amber-soft: #f7e7cc;
  --danger: #8a1f1a;
  --danger-soft: #fbeae8;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(21, 33, 28, 0.06);
  --shadow-md: 0 16px 40px -22px rgba(21, 33, 28, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(21, 33, 28, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--paper-deep);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

::selection {
  background: var(--green);
  color: var(--surface);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--surface);
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.wrap--narrow {
  max-width: 780px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.icon--small {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Knoppen en labels
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--light {
  color: #9fd8c4;
}

.btn {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--green);
  --btn-ink: #fff;
  --btn-border: var(--green);
  box-shadow: 0 10px 24px -14px rgba(14, 92, 74, 0.9);
}

.btn--primary:hover {
  --btn-bg: var(--green-dark);
  --btn-border: var(--green-dark);
}

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

.btn--ghost:hover {
  --btn-border: var(--ink);
  background: rgba(255, 253, 248, 0.6);
}

.btn--light {
  --btn-bg: var(--surface);
  --btn-ink: var(--green-dark);
  --btn-border: var(--surface);
}

.btn--light:hover {
  --btn-bg: #fff;
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}

.btn--large {
  padding: 1rem 1.65rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

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

.demo-bar {
  background: var(--amber-soft);
  border-bottom: 1px solid #e6cfa4;
  color: #563a12;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.45rem 1rem;
}

.demo-bar a {
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 241, 230, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.site-nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.35rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.price-pill {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
}

.price-pill strong {
  color: var(--ink);
  font-weight: 600;
}

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

.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(55% 60% at 88% 6%, rgba(14, 92, 74, 0.08), transparent 70%),
    radial-gradient(40% 45% at 6% 0%, rgba(201, 119, 42, 0.07), transparent 70%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero__title {
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  max-width: 15ch;
}

.hero__title em {
  font-style: italic;
  color: var(--green);
  font-weight: 500;
}

.hero__lead {
  max-width: 47ch;
  margin: 1.5rem 0 2rem;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.7;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 2.75rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.hero__stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.15rem;
}

.hero__stats dt {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
}

.hero__visual {
  position: relative;
}

.stack {
  position: relative;
  aspect-ratio: 1 / 1.12;
  max-width: 520px;
  margin-inline: auto;
}

.stack__item {
  position: absolute;
  width: 45%;
  transition: transform 0.5s var(--ease);
}

.stack__item .cover {
  box-shadow: var(--shadow-lg);
}

.stack__item--1 {
  left: 0;
  top: 13%;
  transform: rotate(-8deg);
  z-index: 1;
}

.stack__item--2 {
  left: 27.5%;
  top: 1%;
  z-index: 3;
}

.stack__item--3 {
  right: 0;
  top: 15%;
  transform: rotate(8deg);
  z-index: 2;
}

.stack:hover .stack__item--1 {
  transform: rotate(-10deg) translateY(-6px);
}

.stack:hover .stack__item--2 {
  transform: translateY(-10px);
}

.stack:hover .stack__item--3 {
  transform: rotate(10deg) translateY(-6px);
}

.stack__badge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  line-height: 1.25;
}

.stack__badge .icon {
  width: 22px;
  height: 22px;
  color: var(--green);
}

.stack__badge strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
}

.stack__badge small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.stack__badge--mail {
  left: -4%;
  bottom: 5%;
}

.stack__badge--price {
  right: -2%;
  bottom: 26%;
}

.stack__price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Boekomslagen
   -------------------------------------------------------------------------- */

.cover {
  --cover-bg: #1d2430;
  --cover-bg-2: #0f141c;
  --cover-accent: #9db1ff;
  --cover-ink: #f6f2e7;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 5.5% 5.2%;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  container-type: inline-size;
  color: var(--cover-ink);
  background:
    radial-gradient(110% 80% at 90% -6%, var(--cover-accent) 0%, transparent 52%),
    linear-gradient(158deg, var(--cover-bg) 0%, var(--cover-bg-2) 100%);
  box-shadow:
    inset 5px 0 10px -6px rgba(0, 0, 0, 0.8),
    inset -1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 22px 40px -26px rgba(21, 33, 28, 0.7);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 26px);
  opacity: 0.5;
  pointer-events: none;
}

.cover::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cover__glow {
  position: absolute;
  top: -22%;
  right: -26%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cover-accent);
  opacity: 0.22;
  filter: blur(32px);
  pointer-events: none;
}

.cover__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.cover__series {
  max-width: 62%;
  font-size: clamp(0.46rem, 2.7cqw, 0.58rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
  opacity: 0.72;
}

.cover__glyph {
  color: var(--cover-accent);
  opacity: 0.95;
}

.cover__icon {
  width: clamp(20px, 10cqw, 30px);
  height: clamp(20px, 10cqw, 30px);
  stroke-width: 1.4;
}

.cover__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.cover__kicker {
  display: block;
  margin-bottom: 0.55em;
  font-size: clamp(0.45rem, 2.5cqw, 0.56rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

.cover__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 11.5cqw, 2.7rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.cover__sub {
  display: block;
  margin-top: 0.5em;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 4.4cqw, 1rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.82;
}

.cover__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75em;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: clamp(0.4rem, 2.2cqw, 0.52rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.cover--indigo {
  --cover-bg: #293066;
  --cover-bg-2: #151a3b;
  --cover-accent: #8e9bff;
}

.cover--green {
  --cover-bg: #13483a;
  --cover-bg-2: #0a241c;
  --cover-accent: #6fd3a6;
}

.cover--teal {
  --cover-bg: #0f4f4e;
  --cover-bg-2: #082b2b;
  --cover-accent: #6fd8cd;
}

.cover--purple {
  --cover-bg: #3d2b61;
  --cover-bg-2: #1a1229;
  --cover-accent: #c4a4ff;
}

.cover--amber {
  --cover-bg: #6f4016;
  --cover-bg-2: #2a1808;
  --cover-accent: #ffb968;
}

.cover--blue {
  --cover-bg: #193d68;
  --cover-bg-2: #0a1d31;
  --cover-accent: #8dc0ff;
}

.cover--php .cover__title {
  font-size: clamp(1.6rem, 15cqw, 3.3rem);
}

.cover--php .cover__sub {
  font-size: clamp(0.78rem, 5.4cqw, 1.15rem);
}

.cover--tkinter .cover__title {
  font-size: clamp(1.2rem, 10.5cqw, 2.4rem);
}

.cover--pyside6 .cover__title {
  font-size: clamp(1.15rem, 10cqw, 2.3rem);
}

.cover--wireguard .cover__title {
  font-size: clamp(1.15rem, 9.6cqw, 2.15rem);
}

/* --------------------------------------------------------------------------
   Secties
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(3.25rem, 6vw, 5.5rem) 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  max-width: 24ch;
}

.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.section__head--center h2 {
  max-width: 26ch;
}

.section__intro {
  max-width: 36ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.7;
}

.section--why {
  padding-top: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.value-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.value-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
}

.value-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.18rem;
}

.value-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Boekkaarten
   -------------------------------------------------------------------------- */

.section--books {
  background:
    linear-gradient(180deg, transparent, rgba(255, 253, 248, 0.55) 18%, rgba(255, 253, 248, 0.55));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.chip {
  padding: 0.48rem 1rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filters__count {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--muted);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 2.75rem) 1.75rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.book-card[hidden] {
  display: none;
}

.book-card__cover {
  display: block;
  margin-bottom: 1.25rem;
  transition: transform 0.35s var(--ease);
}

.book-card__cover:hover {
  transform: translateY(-6px);
}

.book-card__cover:hover .cover {
  box-shadow:
    inset 5px 0 10px -6px rgba(0, 0, 0, 0.8),
    inset -1px 0 0 rgba(255, 255, 255, 0.1),
    0 34px 50px -30px rgba(21, 33, 28, 0.75);
}

.book-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.book-card__title {
  margin-bottom: 0.4rem;
  font-size: 1.32rem;
  line-height: 1.2;
}

.book-card__title a {
  background-image: linear-gradient(var(--green), var(--green));
  background-size: 0 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}

.book-card__title a:hover {
  background-size: 100% 1.5px;
}

.book-card__tagline {
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.book-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.book-card__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.book-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}

.book-card__link .icon {
  transition: transform 0.25s var(--ease);
}

.book-card:hover .book-card__link .icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Hoe het werkt
   -------------------------------------------------------------------------- */

.section--how {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.how__intro h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 1rem;
}

.how__intro > p {
  max-width: 38ch;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.check-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.check-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--green);
}

.check-list--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.5rem;
  margin-top: 0;
}

.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-strong);
}

.step:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.step__num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
}

.step h3 {
  margin-bottom: 0.3rem;
  font-size: 1.16rem;
}

.step p {
  margin: 0;
  max-width: 46ch;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */

.section--quote {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.quote {
  max-width: 820px;
  text-align: center;
}

.quote__mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--green);
  opacity: 0.3;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.quote__by {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

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

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

.faq__intro h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 1rem;
}

.faq__intro p {
  color: var(--ink-2);
  font-size: 0.95rem;
  max-width: 32ch;
}

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

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  color: var(--green);
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq__item p {
  margin: 0 0 1.25rem;
  padding-right: 2.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.faq__item a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   CTA-band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(111, 211, 166, 0.18), transparent 65%),
    radial-gradient(45% 80% at 90% 100%, rgba(201, 119, 42, 0.16), transparent 70%),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.cta-band h2 {
  color: var(--paper);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  max-width: 22ch;
  margin-bottom: 0.75rem;
}

.cta-band p {
  margin: 0;
  max-width: 46ch;
  color: #bcc8c1;
  font-size: 0.95rem;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.cta-band__inner > div > .eyebrow {
  margin-bottom: 1rem;
}

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

.site-footer {
  background: #101a15;
  color: #c3cdc7;
  padding: clamp(3rem, 5vw, 4rem) 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
}

.brand--footer {
  margin-bottom: 1.1rem;
}

.brand--footer .brand__mark {
  background: var(--paper);
  color: var(--ink);
}

.brand--footer .brand__name {
  color: var(--paper);
}

.brand--footer .brand__sub {
  color: #85938b;
}

.footer__brand p {
  max-width: 34ch;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #9daaa2;
}

.footer__pay {
  margin-top: 1rem;
  color: #7f8d85 !important;
  font-size: 0.78rem !important;
}

.footer__title {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7f8d85;
}

.footer__col ul {
  display: grid;
  gap: 0.55rem;
}

.footer__col li,
.footer__col a {
  font-size: 0.85rem;
  color: #b6c1ba;
  line-height: 1.5;
}

.footer__col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: #7f8d85;
}

.footer__bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Kruimelpad
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--green);
  text-decoration: underline;
}

.breadcrumb span[aria-current] {
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Boekdetail
   -------------------------------------------------------------------------- */

.book-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
}

.book-aside {
  min-width: 0;
}

.book-aside__cover {
  width: 100%;
}

.book-aside__cover .cover {
  box-shadow: var(--shadow-lg);
}

.book-aside__format {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.buy-card {
  margin-top: 1.5rem;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.buy-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.buy-card__amount {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.buy-card__vat {
  font-size: 0.68rem;
  color: var(--muted);
}

.buy-form {
  margin: 0;
}

.field {
  display: block;
  margin-bottom: 0.9rem;
}

.field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 92, 74, 0.14);
}

.field__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}

.checkline input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  accent-color: var(--green);
}

.checkline a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.buy-card__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.7rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
}

.buy-card__list {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
}

.buy-card__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.buy-card__list .icon {
  color: var(--green);
}

.buy-card__demo {
  margin: 1rem 0 0;
  padding: 0.6rem 0.7rem;
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #5b3c0f;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.7rem 0.8rem;
  background: var(--danger-soft);
  border: 1px solid #f0c9c5;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--danger);
}

.alert .icon {
  margin-top: 0.1rem;
}

.book-main {
  padding-top: 0.5rem;
}

.book-title {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  max-width: 20ch;
}

.book-tagline {
  max-width: 52ch;
  margin: 1rem 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.65;
  color: var(--ink-2);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-grid dt {
  margin-bottom: 0.2rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-grid dd {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

.prose p {
  max-width: 64ch;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.panel {
  margin: 2.25rem 0;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel__title {
  margin-bottom: 1.1rem;
  font-size: 1.25rem;
}

.audience {
  margin: 2rem 0;
  padding-left: 1.15rem;
  border-left: 3px solid var(--green);
}

.audience__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.audience p {
  margin: 0;
  max-width: 58ch;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Preview
   -------------------------------------------------------------------------- */

.section--preview {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.preview-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.preview-row li {
  flex: 0 0 clamp(190px, 22vw, 240px);
  scroll-snap-align: start;
}

.preview-thumb {
  display: block;
  width: 100%;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  text-align: left;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.preview-thumb:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.preview-thumb img {
  width: 100%;
  height: auto;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
}

.preview-thumb__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.2rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-2);
}

.preview-thumb__label span {
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.preview-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Lightbox */

.lightbox {
  width: min(94vw, 980px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(9, 15, 12, 0.86);
  backdrop-filter: blur(6px);
}

.lightbox__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  background: #fff;
}

.lightbox__caption {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox__nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

html:has(dialog.lightbox[open]) {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Inhoudsopgave
   -------------------------------------------------------------------------- */

.toc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.toc-grid h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 0.9rem;
}

.toc-grid .section__intro {
  margin-bottom: 1.5rem;
}

.toc-list {
  columns: 2;
  column-gap: 2.5rem;
  counter-reset: toc;
}

.toc-list li {
  position: relative;
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line-strong);
  break-inside: avoid;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.toc-list li::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  flex: none;
  padding-top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--green);
}

.section--toc {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.section--related {
  padding-top: 0;
}

.book-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   Bedank-, demo- en foutpagina
   -------------------------------------------------------------------------- */

.result-page {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(14, 92, 74, 0.07), transparent 70%);
}

.result-card {
  padding: clamp(1.75rem, 5vw, 3.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.4rem;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(227, 239, 233, 0.5);
}

.result-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
}

.result-icon--warning {
  background: var(--amber-soft);
  color: #8a5514;
  box-shadow: 0 0 0 8px rgba(247, 231, 204, 0.5);
}

.result-card h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  max-width: 20ch;
  margin: 0 auto 0.9rem;
}

.result-lead {
  max-width: 48ch;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.result-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.delivery {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 470px;
  margin: 2rem auto;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
}

.delivery__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.delivery__icon.is-warning {
  background: var(--amber-soft);
  color: #8a5514;
}

.delivery strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.delivery p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(14, 92, 74, 0.22);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 2rem 0;
}

.result-actions .icon {
  width: 18px;
  height: 18px;
}

.receipt {
  margin: 2rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.receipt > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
}

.receipt dt {
  color: var(--muted);
  flex: none;
}

.receipt dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.result-help {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}

.result-help a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notice {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.05rem;
  background: var(--green-soft);
  border: 1px solid #c8e0d5;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #205244;
}

.notice--warning {
  background: var(--amber-soft);
  border-color: #e6cfa4;
  color: #5b3c0f;
}

.notice code {
  background: rgba(255, 255, 255, 0.6);
}

.demo-form {
  margin: 2rem 0 0;
}

.error-code {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 0.9;
  color: var(--green);
  opacity: 0.18;
}

/* --------------------------------------------------------------------------
   Juridische pagina's
   -------------------------------------------------------------------------- */

.legal {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.legal h1 {
  margin: 1.5rem 0 0.4rem;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.legal__meta {
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.legal .prose h2 {
  margin: 2.25rem 0 0.65rem;
  font-size: 1.3rem;
}

.legal .prose p,
.legal .prose li {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.legal .prose ul {
  padding-left: 1.1rem;
  margin: 0 0 1.2rem;
  list-style: disc;
}

.legal .prose li {
  margin-bottom: 0.45rem;
}

.legal .prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsief
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .price-pill {
    display: none;
  }

  .book-layout {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 2.5rem;
  }

  .toc-list {
    column-gap: 1.75rem;
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__title {
    max-width: 18ch;
  }

  .hero__visual {
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
  }

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

  .value-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1.1rem;
    align-items: start;
  }

  .value-card__icon {
    grid-row: span 2;
    margin-bottom: 0;
  }

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

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

  .how__grid,
  .faq__grid,
  .toc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .faq__intro p {
    max-width: 48ch;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

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

  .book-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .book-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
  }

  .buy-card {
    margin-top: 0;
  }

  .book-aside__format {
    justify-content: flex-start;
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.5rem;
  }

  .toc-list {
    columns: 2;
  }
}

@media (max-width: 760px) {
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section__intro {
    max-width: 52ch;
  }

  .hero__stats {
    gap: 1.75rem;
  }

  .stack {
    max-width: 400px;
  }

  .stack__badge--mail {
    left: 0;
    bottom: 0;
  }

  .stack__badge--price {
    right: 0;
    bottom: 24%;
  }

  .book-grid,
  .book-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  .book-card__title {
    font-size: 1.15rem;
  }

  .check-list--grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .toc-list {
    columns: 1;
  }

  .preview-row li {
    flex-basis: 180px;
  }

  .lightbox__inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .lightbox__nav {
    position: fixed;
    bottom: 1.25rem;
    z-index: 2;
    background: rgba(20, 30, 25, 0.8);
  }

  .lightbox__nav--prev {
    left: 1.25rem;
  }

  .lightbox__nav--next {
    right: 1.25rem;
  }

  .lightbox__img {
    max-height: 76vh;
  }
}

@media (max-width: 620px) {
  .header__inner {
    min-height: 68px;
    gap: 0.75rem;
  }

  .header__actions .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
  }

  .brand__sub {
    display: none;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .hero__stats dd {
    font-size: 1.3rem;
  }

  .hero__stats dt {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .stack__badge--mail {
    left: -2%;
    bottom: 1%;
    padding: 0.55rem 0.75rem;
  }

  .stack__badge--price {
    display: none;
  }

  .book-grid,
  .book-grid--three {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .book-card__cover {
    max-width: 320px;
  }

  .book-aside {
    grid-template-columns: 1fr;
  }

  .book-aside__cover {
    max-width: 300px;
    margin-inline: auto;
  }

  .book-aside__format {
    justify-content: center;
  }

  .buy-card {
    margin-top: 0.25rem;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 0.35rem;
  }

  .receipt > div {
    flex-direction: column;
    gap: 0.1rem;
  }

  .receipt dd {
    text-align: left;
  }

  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .demo-bar {
    font-size: 0.72rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
