/* PeriBrief landing page
   Design system: design-system/peribrief/MASTER.md (soft editorial, mobile first).
   Plain CSS, no build step. Tokens first, then base, components and sections. */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: only light; /* light-only brand; opt out of forced dark modes */
  /* colour (all text pairs checked at 4.5:1 or better) */
  --color-surface: #F6F1EB;
  --color-surface-alt: #EFE7DD;
  --color-surface-card: #FFFFFF;
  --color-surface-dark: #17494D;
  --color-surface-darker: #0F3639;
  --color-on-surface: #1E2A2B;
  --color-muted: #4A5859;
  --color-primary: #17494D;
  --color-primary-soft: #E3EEEC;
  --color-cta: #B4532F;
  --color-cta-hover: #9A4426;
  --color-accent-text: #A4482A;
  --color-accent: #E9B49B;
  --color-accent-soft: #F8E6DC;
  --color-on-dark: #FBF7F1;
  --color-muted-on-dark: #C7DCD9;
  --color-success: #2E6B52;
  --color-error: #A1261B;
  --color-field-border: #7A6F62;
  --color-border: #E2D6C8;

  /* type */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --text-xs: 0.875rem;   /* 14 */
  --text-sm: 0.9375rem;  /* 15 */
  --text-base: 1rem;     /* 16 */
  --text-md: 1.125rem;   /* 18: body */
  --text-lg: 1.375rem;   /* 22 */
  --text-h3: clamp(1.375rem, 1.3rem + 0.35vw, 1.5rem);
  --text-h2: clamp(1.875rem, 1.45rem + 1.9vw, 2.75rem);
  --text-h1: clamp(2.25rem, 1.55rem + 3vw, 3.75rem);

  /* space (4/8 scale) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 112px;
  --gutter: 20px;
  --container: 1120px;
  --measure: 62ch;

  /* shape and depth */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23, 73, 77, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(23, 73, 77, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(23, 73, 77, 0.35);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 220ms;

  /* layers */
  --z-buybar: 10;
  --z-header: 20;
  --z-toast: 30;
  --z-modal: 100;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

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

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: var(--text-h2); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--text-h3); line-height: 1.3; }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--color-surface-darker); }

strong { font-weight: 600; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--color-on-dark); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 32px; height: 32px; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-modal);
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: var(--color-on-dark);
  border-radius: var(--radius-md);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); color: var(--color-on-dark); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-accent-text);
  margin: 0 0 var(--space-3);
}
.eyebrow--on-dark { color: var(--color-accent); }

.source {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}
.source--on-dark { color: var(--color-muted-on-dark); }

.footnote {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--space-6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--color-cta);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -8px rgba(180, 83, 47, 0.65);
}
.btn--primary:hover { background: var(--color-cta-hover); color: #FFFFFF; }

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

.btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--text-base); }
.btn--lg { min-height: 58px; padding: 0 var(--space-6); font-size: var(--text-md); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: var(--z-header);
  background: var(--color-surface);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.site-header__cta { display: none; }
@media (min-width: 768px) {
  .site-header__inner { min-height: 76px; }
  .site-header__cta { display: inline-flex; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--color-primary);
}
.logo__mark { width: 30px; height: 30px; }
.logo__word {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo--light { color: var(--color-on-dark); }
.logo--light:hover { color: var(--color-on-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-4);
}
.hero__grid { display: grid; gap: var(--space-6); }
.hero__copy { max-width: 36rem; }
.hero__title { margin-bottom: var(--space-4); }
.hero__title em {
  font-style: italic;
  color: var(--color-accent-text);
}
.hero__lead {
  font-size: var(--text-md);
  color: var(--color-on-surface);
  margin-bottom: var(--space-5);
  max-width: 34rem;
}
.hero__actions { display: grid; gap: var(--space-4); justify-items: start; }
.hero__media {
  margin: 0 calc(-1 * var(--gutter));
}
.hero__media img { width: 100%; }

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.assurances li { display: inline-flex; align-items: center; gap: 6px; }
.assurances .icon { color: var(--color-success); width: 18px; height: 18px; }
.assurances--center { justify-content: center; margin-top: var(--space-4); }

@media (max-width: 639.98px) {
  .hero__actions { justify-items: stretch; }
  .hero__actions .btn { width: 100%; }
}
@media (min-width: 640px) {
  .hero__media { margin: 0; }
  .hero__media img { border-radius: var(--radius-xl); }
}

@media (min-width: 1024px) {
  .site-header .container,
  .hero .container { max-width: calc(1280px + 2 * var(--gutter)); }
  .hero { padding-block: var(--space-6) var(--space-8); }
  .hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    align-items: center;
    gap: var(--space-7);
  }
  .hero__media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
}

/* ---------- Quick facts ---------- */
.facts {
  background: var(--color-surface-card);
  border-block: 1px solid var(--color-border);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
  padding-block: var(--space-5);
  margin: 0;
  list-style: none;
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.4;
}
.facts__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--color-primary);
}
@media (min-width: 768px) {
  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-8); }
.section--alt { background: var(--color-surface-alt); }
.section--dark { background: var(--color-surface-dark); color: var(--color-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--color-on-dark); }
@media (min-width: 768px) { .section { padding-block: var(--space-9); } }
@media (min-width: 1024px) { .section { padding-block: var(--space-10); } }

.section__head {
  max-width: 44rem;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section__head--left { margin-inline: 0; text-align: left; }

/* ---------- Recognition ---------- */
.moments {
  display: grid;
  max-width: 60rem;
  margin-inline: auto;
  border-top: 1px solid var(--color-border);
}
.moment {
  position: relative;
  padding: var(--space-5) 0 var(--space-5) 40px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--color-on-surface);
}
.moment::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(var(--space-5) + 0.72em);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-cta);
}
@media (min-width: 768px) {
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
}

.validate {
  max-width: 40rem;
  margin: var(--space-7) auto 0;
  text-align: center;
}
.validate__line {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.validate__stat {
  background: var(--color-accent-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  font-size: var(--text-md);
}

/* ---------- Insight (dark) ---------- */
.insight { display: grid; gap: var(--space-7); }
.insight__copy h2 { margin-bottom: var(--space-5); }
.insight__copy p { color: var(--color-on-dark); max-width: var(--measure); }
.insight__stat {
  align-self: start;
  border: 1px solid rgba(251, 247, 241, 0.22);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--color-surface-darker);
}
.insight__number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.8rem + 3vw, 5rem);
  line-height: 1;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  font-variant-numeric: tabular-nums;
}
.insight__number span { font-size: 0.4em; font-weight: 500; }
@media (min-width: 1024px) {
  .insight { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: var(--space-9); }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--space-6); }
.step {
  padding-top: var(--space-5);
  border-top: 2px solid var(--color-primary);
}
.step h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.step__num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
}
.step p { color: var(--color-on-surface); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); }
}

/* ---------- Look inside ---------- */
.spotlight {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-8);
}
.spotlight__copy h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); margin-bottom: var(--space-3); }
@media (min-width: 900px) {
  .spotlight { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-8); }
}

.annotations {
  counter-reset: note;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.annotations li {
  counter-increment: note;
  position: relative;
  padding-left: 44px;
  min-height: 32px;
}
.annotations li::before {
  content: counter(note);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-dark);
  font-size: var(--text-sm);
  font-weight: 600;
}

.page-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  transition: transform var(--dur) var(--ease-out);
}
.page-thumb img {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.page-thumb--large img { box-shadow: var(--shadow-lg); }
.page-thumb:hover { transform: translateY(-3px); }
.page-thumb:active { transform: scale(0.99); }
.page-thumb__zoom {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-dark);
  font-size: var(--text-sm);
  font-weight: 600;
}
.page-thumb__zoom .icon { width: 18px; height: 18px; }
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: var(--color-primary);
  color: var(--color-on-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 4px 10px -2px rgba(15, 54, 57, 0.45);
  pointer-events: none;
}

.gallery {
  position: relative;
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: var(--space-2) var(--gutter) var(--space-4);
  margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > li { flex: 0 0 80%; scroll-snap-align: start; }
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-2);
}
.gallery-nav__btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.gallery-nav__btn:hover { background: var(--color-primary-soft); }
.gallery-nav__btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.gallery-nav__count {
  margin: 0;
  min-width: 5ch;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}
.gallery p {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.35;
}
@media (min-width: 900px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-7) var(--space-6);
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
  .gallery > li { flex: none; }
  .gallery-nav { display: none; }
}
.gallery__more {
  max-width: 44rem;
  margin: var(--space-7) auto 0;
  text-align: center;
  color: var(--color-muted);
}

.inline-cta { margin-top: var(--space-7); display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.inline-cta p { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Tick lists ---------- */
.ticks { display: grid; gap: var(--space-4); }
.ticks li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.ticks .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--color-success);
  color: #FFFFFF;
  stroke-width: 2.4;
}
.ticks--compact { gap: var(--space-3); font-size: var(--text-base); }
.ticks--compact .icon { width: 24px; height: 24px; padding: 4px; }
.ticks--no .icon { background: transparent; color: var(--color-muted); padding: 0; stroke-width: 1.75; }

.picture { display: grid; gap: var(--space-6); max-width: 52rem; }
.picture__media { margin: 0; }
.picture__media img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.picture__copy .section__head { margin-bottom: var(--space-5); }
.picture .ticks { font-size: 1.1875rem; }
@media (min-width: 1024px) {
  .picture:has(.picture__media) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); max-width: none; align-items: center; }
}

/* ---------- Fit ---------- */
.fit { display: grid; gap: var(--space-5); }
.fit__card {
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--color-border);
}
.fit__card h3 { margin-bottom: var(--space-5); }
.fit__card--yes { border-top: 4px solid var(--color-success); }
.fit__card--no { border-top: 4px solid var(--color-muted); }
@media (min-width: 768px) {
  .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit__card { padding: var(--space-6); }
}

/* ---------- Trust ---------- */
.trust {
  display: grid;
  gap: var(--space-6) var(--space-8);
  max-width: 60rem;
  margin-inline: auto;
}
.trust__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: start;
  align-content: start;
}
.trust__item .icon { grid-row: span 2; color: var(--color-primary); margin-top: 2px; }
.trust__item h3 { margin-bottom: var(--space-1); font-size: 1.1875rem; }
.trust__item p { font-size: var(--text-base); color: var(--color-on-surface); }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Offer ---------- */
.offer {
  max-width: 36rem;
  margin-inline: auto;
}
.offer__card {
  background: var(--color-surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.offer__top {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-5);
}
.offer__brand { margin: 0 0 2px; font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-text); }
.offer__cover { border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.offer__name { font-size: 1.1875rem; line-height: 1.25; margin-bottom: var(--space-2); }
.offer__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.offer__amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.offer__terms { font-size: var(--text-base); color: var(--color-muted); }
.offer__format { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.offer__card .ticks { margin-bottom: var(--space-6); }
.offer__tax { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-muted); text-align: center; }

@media (min-width: 768px) {
  .offer__card { padding: var(--space-6); }
  .offer__top { grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-5); }
  .offer__name { font-size: 1.375rem; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  padding: var(--space-4) 0;
  font-weight: 600;
  font-size: var(--text-md);
  line-height: 1.4;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon {
  width: 24px;
  height: 24px;
  transition: transform var(--dur) var(--ease-out);
}
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__body { padding: 0 var(--space-7) var(--space-5) 0; }
.faq__body p { color: var(--color-on-surface); }

/* ---------- Final CTA ---------- */
.final__inner { text-align: center; }
.final h2 { margin-bottom: var(--space-4); }
.final p { color: var(--color-on-dark); max-width: 36rem; margin-inline: auto; margin-bottom: var(--space-6); }
.final .final__small { margin-top: var(--space-4); margin-bottom: 0; font-size: var(--text-sm); color: var(--color-muted-on-dark); }

/* ---------- Free checklist ---------- */
.freebie { background: var(--color-surface-alt); padding-block: var(--space-7); }
.freebie__inner {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  max-width: 820px;
}
.freebie__inner img { border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.freebie__title { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); margin-bottom: var(--space-2); }
.freebie__inner p { font-size: var(--text-base); color: var(--color-on-surface); }
.freebie__btn { grid-column: 1 / -1; justify-self: start; }
.freebie__inner .freebie__alt { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-muted); }
@media (min-width: 768px) {
  .freebie__inner { grid-template-columns: 128px minmax(0, 1fr); gap: var(--space-4) var(--space-6); }
  .freebie__btn { grid-column: 2; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-surface-darker);
  color: var(--color-muted-on-dark);
  padding-block: var(--space-8) var(--space-7);
  font-size: var(--text-sm);
}
.site-footer__inner { display: grid; gap: var(--space-6); }
.site-footer p { line-height: 1.6; }
.site-footer strong { color: var(--color-on-dark); }
.site-footer__brand p { margin-top: var(--space-3); color: var(--color-on-dark); }
.site-footer a { color: var(--color-on-dark); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-5) 0 !important; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__copy { color: var(--color-muted-on-dark); }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-9); }
}

/* ---------- Sticky buy bar (phones and small tablets) ---------- */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-buybar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface-card);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -10px 30px -16px rgba(23, 73, 77, 0.35);
  transform: translateY(110%);
  transition: transform 240ms var(--ease-out);
  visibility: hidden;
}
.buybar.is-visible { transform: translateY(0); visibility: visible; }
.buybar__info { display: grid; line-height: 1.3; }
.buybar__name { font-weight: 600; color: var(--color-primary); font-size: var(--text-base); }
.buybar__meta { font-size: var(--text-sm); color: var(--color-muted); }
.buybar .btn { min-height: 48px; padding: 0 var(--space-6); }
@media (min-width: 1024px) { .buybar { display: none; } }
@media (max-width: 1023.98px) {
  /* keep focused or anchored content clear of the sticky bar (WCAG 2.2, 2.4.11) */
  html { scroll-padding-bottom: 96px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(92vw, 820px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-surface-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(15, 54, 57, 0.72); }
.lightbox[open] { animation: lightbox-in var(--dur) var(--ease-out); }
.lightbox__figure { margin: 0; display: grid; }
.lightbox__img {
  width: 100%;
  max-height: calc(94vh - 64px);
  object-fit: contain;
  background: #FFFFFF;
}
.lightbox__caption {
  padding: var(--space-4) 72px var(--space-4) var(--space-5);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
}
.lightbox__close {
  position: absolute;
  right: var(--space-3);
  bottom: 6px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-dark);
  cursor: pointer;
}
.lightbox__close .icon { width: 22px; height: 22px; }
@keyframes lightbox-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Toast ---------- */

/* ---------- Order form (in the offer card) ---------- */
.order { display: grid; gap: var(--space-4); }
.order__label { display: block; margin-bottom: var(--space-2); font-weight: 600; font-size: var(--text-base); }
.order__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: var(--text-md);
  color: var(--color-on-surface);
  background: #FFFFFF;
  border: 1.5px solid var(--color-field-border);
  border-radius: var(--radius-md);
}
.order__input:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-color: var(--color-primary); }
.order__input[aria-invalid="true"] { border-color: var(--color-error); border-width: 2px; }
.order__help { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.order__consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.order__consent input { width: 24px; height: 24px; margin: 3px 0 0; accent-color: var(--color-primary); cursor: pointer; }
.order__consent input[aria-invalid="true"] { outline: 2px solid var(--color-error); outline-offset: 2px; }
.order__consent label { font-size: var(--text-base); cursor: pointer; }
.order__why { margin-left: calc(24px + var(--space-3)); }
.order__why summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.order__why p { margin: 0 0 var(--space-2); font-size: var(--text-sm); color: var(--color-muted); }
.order__error { margin: var(--space-2) 0 0; font-size: var(--text-sm); font-weight: 600; color: var(--color-error); }
.order__error--general { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: #FBEDEA; }
.order__error[hidden] { display: none; }
.order .assurances--center { margin-top: 0; }
.order .offer__tax { margin-top: 0; }
.order .offer__tax a { color: inherit; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.9; }

/* ---------- Thank-you page and short notices ---------- */
.thanks, .notice { padding-block: var(--space-8) var(--space-9); }
.thanks h1, .notice h1 { font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem); margin-bottom: var(--space-4); }
.thanks h1:focus { outline: none; }
.thanks h2 { font-size: var(--text-h3); margin: var(--space-7) 0 var(--space-3); }
.thanks p, .notice p { font-size: var(--text-md); }
.thanks .btn { margin-block: var(--space-3); }
.thanks__steps { padding-left: 1.4em; display: grid; gap: var(--space-2); font-size: var(--text-md); }
.thanks__note { margin-top: var(--space-6); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--color-primary-soft); font-size: var(--text-base) !important; }
.thanks__small { font-size: var(--text-sm) !important; color: var(--color-muted); }
.thanks__spinner {
  width: 40px; height: 40px; margin-bottom: var(--space-5);
  border-radius: 50%;
  border: 4px solid var(--color-primary-soft);
  border-top-color: var(--color-primary);
  animation: pb-spin 0.9s linear infinite;
}
@keyframes pb-spin { to { transform: rotate(360deg); } }
.notice__brand { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.notice__brand a { color: var(--color-primary); text-decoration: none; }

/* ---------- Reduced motion ---------- */
@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;
  }
  .page-thumb:hover { transform: none; }
}
