/* =========================================================
   Derila Ergo — editorial design system
   Dependency-free, hand-written CSS. No frameworks, no build.

   Signature motif: the "contour line" — a twin-lobe curve with a
   central dip, echoing the butterfly-contour pillow profile. It
   recurs as the brand mark, the section divider, the page-header
   rule, and a background accent in dark bands. Nothing else in
   the system uses decorative shapes, so the motif stays legible.
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------- */
:root {
  /* --- Colour: warm ivory ground, midnight-slate ink,
         mineral sage-teal accent, clay for caution notes. --- */
  --color-bg:            #fbf9f5;  /* warm ivory page ground */
  --color-bg-tint:       #f4f0e8;  /* sand — alternating bands */
  --color-bg-sink:       #efe9de;  /* deeper sand — insets */
  --color-surface:       #ffffff;
  --color-surface-warm:  #fefcf8;

  --color-dark:          #141d26;  /* midnight slate — dark bands */
  --color-dark-2:        #1d2a36;
  --color-dark-3:        #2b3a48;

  --color-accent:        #45786f;  /* muted mineral sage-teal */
  --color-accent-deep:   #2f5850;
  --color-accent-soft:   #e3ede9;
  --color-accent-line:   #c2d6cf;

  --color-clay:          #a4603d;  /* warm secondary — limitations */
  --color-clay-soft:     #f8efe6;
  --color-clay-line:     #e7d2bd;

  --color-text:          #1f2a30;
  --color-text-muted:    #5d6a72;
  --color-text-faint:    #85909a;
  --color-border:        #e5ded1;  /* warm hairline */
  --color-border-soft:   #efe9df;

  --color-good:          #3f7a57;
  --color-good-bg:       #eef5f0;
  --color-good-line:     #cfe2d6;
  --color-bad:           #a14b3c;
  --color-bad-bg:        #faefec;
  --color-bad-line:      #eccfc7;

  --color-on-dark:       #e8eef2;
  --color-on-dark-muted: #9fb0bd;
  --color-on-dark-line:  rgba(255, 255, 255, 0.12);

  /* --- Type --- */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --fs-micro:   0.7rem;
  --fs-xs:      0.78rem;
  --fs-sm:      0.875rem;
  --fs-base:    1.0625rem;
  --fs-md:      1.15rem;
  --fs-lede:    clamp(1.1rem, 0.98rem + 0.55vw, 1.32rem);
  --fs-h4:      1.05rem;
  --fs-h3:      clamp(1.2rem, 1.1rem + 0.4vw, 1.42rem);
  --fs-h2:      clamp(1.6rem, 1.34rem + 1.1vw, 2.3rem);
  --fs-h1:      clamp(2.05rem, 1.6rem + 2.1vw, 3.35rem);
  --fs-display: clamp(2.4rem, 1.7rem + 3vw, 4.05rem);

  --lh-tight:   1.12;
  --lh-snug:    1.25;
  --lh-body:    1.68;

  --ls-label:   0.14em;
  --ls-tight:   -0.015em;

  /* --- Space (4px base) --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 44px;
  --sp-8: 60px;
  --sp-9: 80px;
  --sp-10: 104px;
  --section-y: clamp(48px, 5.5vw, 84px);

  /* --- Shape --- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* --- Elevation: layered, soft, warm-tinted --- */
  --sh-xs: 0 1px 2px rgba(26, 34, 40, 0.05);
  --sh-sm: 0 1px 2px rgba(26, 34, 40, 0.05), 0 2px 8px rgba(26, 34, 40, 0.045);
  --sh:    0 1px 2px rgba(26, 34, 40, 0.05), 0 6px 18px rgba(26, 34, 40, 0.06);
  --sh-lg: 0 2px 4px rgba(26, 34, 40, 0.05), 0 14px 38px rgba(26, 34, 40, 0.09);
  --sh-xl: 0 4px 8px rgba(26, 34, 40, 0.06), 0 28px 70px rgba(26, 34, 40, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  --max-width: 1180px;
  --measure: 68ch;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------------------------------------------------------
   2. BASE
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-accent-line);
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover {
  color: var(--color-accent);
  text-decoration-color: currentColor;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: var(--ls-tight);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); margin-top: 1.6em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); margin-top: 1.9em; }
h4 {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.6em;
  letter-spacing: 0;
}
h2:first-child, h3:first-child, h4:first-child { margin-top: 0; }

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

ul, ol { padding-left: 1.25em; margin: 0 0 1.15em; }
li { margin-bottom: 0.55em; }
li:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--color-dark); }
em { font-style: italic; }

hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: var(--sp-7) 0;
}

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

/* ---------------------------------------------------------
   3. LAYOUT PRIMITIVES
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 860px; }

main section { padding-block: var(--section-y); }
main section.tight { padding-block: clamp(28px, 3vw, 44px); }
main > section:first-child:not(.hero):not(.error-page) { padding-top: clamp(36px, 4vw, 60px); }

/* Alternating band rhythm — sand, not another sheet of white */
.section-alt {
  background: var(--color-bg-tint);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Dark editorial band */
.band-dark {
  position: relative;
  background: var(--color-dark);
  color: var(--color-on-dark);
  overflow: hidden;
}
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark strong { color: #fff; }
.band-dark a { color: #a8cfc5; text-decoration-color: rgba(168, 207, 197, 0.4); }
.band-dark a:hover { color: #cfe6df; }
.band-dark .text-muted,
.band-dark .small,
.band-dark p.lede { color: var(--color-on-dark-muted); }
/* Signature contour motif, very low contrast, as band texture */
.band-dark::after {
  content: "";
  position: absolute;
  inset: auto -5% -18% -5%;
  height: 58%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56' preserveAspectRatio='none'><path d='M0 46C24 8 66 8 90 30c12 11 36 11 48 0 24-22 66-22 90 16' fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 620px 100%;
  opacity: 0.07;
  pointer-events: none;
}
.band-dark > * { position: relative; z-index: 1; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 58ch;
}
.prose { max-width: var(--measure); }
.prose > h2 { margin-top: 2em; }

/* Asymmetric editorial split — deliberately not 50/50 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.split-wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); align-items: start; }
.split-narrow { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); align-items: start; }
.split-flip > *:first-child { order: 2; }
@media (max-width: 880px) {
  .split, .split-wide, .split-narrow { grid-template-columns: 1fr; }
  .split-flip > *:first-child { order: 0; }
}

.stack-sm > * + * { margin-top: var(--sp-3); }
.stack > * + * { margin-top: var(--sp-5); }

/* ---------------------------------------------------------
   4. SIGNATURE MOTIF
   --------------------------------------------------------- */
.motif {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  color: var(--color-accent-line);
}
.motif-rule {
  display: block;
  width: 132px;
  height: 18px;
  margin: 0 0 var(--sp-4);
  color: var(--color-accent);
  opacity: 0.85;
}
.motif-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin: var(--sp-8) 0;
  color: var(--color-accent-line);
}
.motif-divider::before,
.motif-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  max-width: 200px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
.motif-divider svg { width: 92px; height: 20px; color: var(--color-accent); opacity: 0.7; }

/* ---------------------------------------------------------
   5. ACCESSIBILITY
   --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
label:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.band-dark a:focus-visible,
.site-footer a:focus-visible { outline-color: #8fc3b7; }

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

/* ---------------------------------------------------------
   6. HEADER / NAV
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur) var(--ease);
}
/* Progressive enhancement only: with JS off the bar simply stays flat. */
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(26, 34, 40, 0.03), 0 6px 20px rgba(26, 34, 40, 0.06);
}
@supports not (backdrop-filter: blur(4px)) {
  .site-header { background: var(--color-bg); }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--color-dark);
  flex-shrink: 0;
}
.brand:hover { color: var(--color-accent-deep); }
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform var(--dur) var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-1px); }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-tagline {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-micro);
  line-height: 1.4;
  color: var(--color-text-faint);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  margin-top: 3px;
}
@media (max-width: 520px) {
  .brand-tagline { display: none; }
}

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.main-nav a:hover { color: var(--color-dark); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] {
  color: var(--color-accent-deep);
  background: var(--color-accent-soft);
}
.main-nav a[aria-current="page"]::after { transform: scaleX(1); opacity: 0.6; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-dark);
  margin-left: auto;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--color-bg-tint); border-color: var(--color-accent-line); }
.nav-toggle::before {
  content: "";
  width: 14px;
  height: 9px;
  flex-shrink: 0;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.header-cta {
  padding: 10px 20px;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* The horizontal nav carries 8 items. Beside a 149px brand and the 117px
   CTA it only fits on one row once the container's content box reaches
   ~1100px (i.e. viewport >= 1180px, where max-width caps it). Below that
   the collapsed menu is used instead — previously the bar switched at
   940px, which left 941-1180px rendering the nav as two ragged rows.
   At these widths the tagline yields its space to the nav. */
@media (min-width: 1181px) {
  .brand-tagline { display: none; }
  .header-inner { gap: var(--sp-3); }
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 8px 8px; font-size: 0.84rem; }
  .main-nav a::after { left: 8px; right: 8px; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: var(--sp-3);
    margin-top: var(--sp-3);
    border-top: 1px solid var(--color-border);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 12px 12px; font-size: 0.95rem; border-radius: var(--r-sm); }
  .main-nav a::after { display: none; }
  .header-cta { margin-left: 0; }
}
@media (max-width: 430px) {
  .header-inner { gap: var(--sp-2); }
  .header-cta { padding: 9px 14px; font-size: 0.78rem; }
  .nav-toggle { padding: 8px 11px; letter-spacing: 0.04em; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.05rem; }
  .brand { gap: 8px; }
}
/* Below ~420px the labelled MENU button, the brand and the Buy Now CTA no
   longer fit on one row, and the CTA was wrapping onto a second line of
   its own (a 114px-tall header with the button stranded under the logo).
   Dropping the button to its hamburger glyph buys back ~43px. */
@media (max-width: 420px) {
  /* Padding keeps the glyph-only button a 46px touch target, matching the
     CTA beside it, so losing the label costs no tappable area. */
  .nav-toggle { font-size: 0; padding: 17px 13px; gap: 0; }
  .nav-toggle::before { width: 16px; height: 10px; }
}
@media (max-width: 344px) {
  .header-inner { gap: 6px; }
  .header-cta { padding: 10px 12px; font-size: 0.74rem; }
  .brand-name { font-size: 1rem; }
}

/* ---------------------------------------------------------
   7. BUTTONS
   --------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

/* Primary = the premium ink pill (used for the header Buy Now CTA) */
.btn-primary {
  background: linear-gradient(180deg, var(--color-dark-2) 0%, var(--color-dark) 100%);
  color: #fff;
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--color-dark-3) 0%, var(--color-dark-2) 100%);
  color: #fff;
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-accent:hover { background: var(--color-accent-deep); color: #fff; box-shadow: var(--sh-lg); }

.btn-outline {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: #fff; }

.btn-ghost {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-dark);
  box-shadow: var(--sh-xs);
}
.btn-ghost:hover { border-color: var(--color-accent-line); background: var(--color-accent-soft); color: var(--color-accent-deep); }

.btn-large { padding: 16px 32px; font-size: 1rem; }
.btn-small { padding: 9px 17px; font-size: 0.82rem; }
.btn-block { display: flex; width: 100%; }

/* Arrow affordance on link-style CTAs */
.btn-arrow::after {
  content: "\2192";
  font-size: 1.05em;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}

.band-dark .btn-outline { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.band-dark .btn-outline:hover { background: #fff; color: var(--color-dark); }
.band-dark .btn-primary {
  background: var(--color-bg);
  color: var(--color-dark);
  box-shadow: var(--sh-lg);
}
.band-dark .btn-primary:hover { background: #fff; color: var(--color-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-3);
}

.cta-note {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--color-text-faint);
  margin-top: var(--sp-2);
}
.band-dark .cta-note { color: var(--color-on-dark-muted); }

/* Inline text link with arrow */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--color-accent-deep);
  border-bottom: 1.5px solid var(--color-accent-line);
  padding-bottom: 2px;
}
.link-more:hover { border-bottom-color: currentColor; }
.link-more::after { content: "\2192"; transition: transform var(--dur) var(--ease); }

/* ---------------------------------------------------------
   8. HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--color-dark);
  color: var(--color-on-dark);
  overflow: hidden;
  padding-block: clamp(52px, 6vw, 96px) clamp(60px, 7vw, 108px);
}
.hero::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -8%;
  width: 62%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 50%,
              rgba(69, 120, 111, 0.42) 0%,
              rgba(69, 120, 111, 0.16) 42%,
              transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -10%;
  height: 44%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56' preserveAspectRatio='none'><path d='M0 46C24 8 66 8 90 30c12 11 36 11 48 0 24-22 66-22 90 16' fill='none' stroke='%23ffffff' stroke-width='1.1' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 560px 100%;
  opacity: 0.08;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: var(--fs-display); margin-bottom: var(--sp-4); }
.hero p { color: var(--color-on-dark-muted); }
.hero strong { color: #fff; }
.hero a { color: #a8cfc5; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.hero-copy p { font-size: var(--fs-lede); line-height: 1.58; max-width: 54ch; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}
.hero .eyebrow { color: #8fc3b7; }
.band-dark .eyebrow { color: #8fc3b7; }

/* --- CSS-only layered product depth (no WebGL, no 3D model) --- */
.product-stage {
  position: relative;
  padding: clamp(14px, 3vw, 34px);
  isolation: isolate;
}
.product-stage::before {
  /* backdrop glow */
  content: "";
  position: absolute;
  inset: 6% 2%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%,
              rgba(168, 207, 197, 0.30) 0%,
              rgba(168, 207, 197, 0.10) 45%,
              transparent 72%);
  filter: blur(6px);
  z-index: -2;
}
.product-stage::after {
  /* contact shadow pooled beneath the frame */
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 2%;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.45) 0%, transparent 70%);
  filter: blur(12px);
  z-index: -2;
}
.stage-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 40px 90px rgba(0, 0, 0, 0.22);
  transform: rotate(-1.1deg);
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
  will-change: transform;
}
/* second, offset depth layer peeking behind the frame */
.product-stage .stage-layer {
  position: absolute;
  inset: clamp(14px, 3vw, 34px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(168, 207, 197, 0.28);
  transform: rotate(3deg) translate(10px, 10px);
  z-index: -1;
  pointer-events: none;
}
.stage-frame img { width: 100%; height: auto; display: block; }
.stage-frame::after {
  /* soft sheen across the surface, keeps the photo from reading flat */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg,
              rgba(255, 255, 255, 0.24) 0%,
              rgba(255, 255, 255, 0) 34%,
              rgba(20, 29, 38, 0.08) 100%);
  pointer-events: none;
}
.product-stage:hover .stage-frame {
  transform: rotate(-0.4deg) translateY(-6px);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 24px 52px rgba(0, 0, 0, 0.32),
    0 54px 110px rgba(0, 0, 0, 0.24);
}
@media (prefers-reduced-motion: no-preference) {
  .stage-frame { animation: stage-float 9s var(--ease) infinite; }
}
@keyframes stage-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}

.stage-caption {
  position: relative;
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--color-on-dark-muted);
  text-align: center;
}

/* ---------------------------------------------------------
   9. PAGE HEADER (interior pages)
   --------------------------------------------------------- */
.page-header {
  position: relative;
  background: var(--color-bg-tint);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(28px, 3.6vw, 52px) clamp(32px, 4vw, 58px);
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -46px;
  width: 320px;
  height: 130px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56'><path d='M0 46C24 8 66 8 90 30c12 11 36 11 48 0 24-22 66-22 90 16' fill='none' stroke='%2345786f' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.16;
  pointer-events: none;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { max-width: 21ch; margin-bottom: var(--sp-4); }
.page-header > .container > p {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 62ch;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   10. BREADCRUMBS
   --------------------------------------------------------- */
.breadcrumbs {
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.03em;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent-line);
}
.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumbs a:hover { color: var(--color-accent-deep); text-decoration: underline; }

/* ---------------------------------------------------------
   11. CARDS & EDITORIAL GRIDS
   --------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
  margin: var(--sp-6) 0;
  align-items: start;
}
.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card h3 { margin-top: 0; font-size: 1.18rem; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--color-accent-deep); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--color-text-muted); font-size: 0.97rem; }
@media (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-3px); }
}
.card:hover {
  box-shadow: var(--sh-lg);
  border-color: var(--color-accent-line);
}

/* Asymmetric hub grid: first tile is the lead, rest tuck in around it */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: var(--sp-6) 0 0;
  align-items: stretch;
}
/* 4 / 2 — 2 / 4 — 3 / 3 : every row fills, no row repeats the one above */
.hub-grid > * { grid-column: span 3; }
.hub-grid > *:nth-child(1) { grid-column: span 4; }
.hub-grid > *:nth-child(2) { grid-column: span 2; }
.hub-grid > *:nth-child(3) { grid-column: span 2; }
.hub-grid > *:nth-child(4) { grid-column: span 4; }
.hub-grid > *:nth-child(5) { grid-column: span 3; }
.hub-grid > *:nth-child(6) { grid-column: span 3; }
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid > *,
  .hub-grid > *:nth-child(1),
  .hub-grid > *:nth-child(2),
  .hub-grid > *:nth-child(3),
  .hub-grid > *:nth-child(4),
  .hub-grid > *:nth-child(5),
  .hub-grid > *:nth-child(6) { grid-column: span 1; }
  .hub-grid > *:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-grid > *,
  .hub-grid > *:nth-child(1) { grid-column: span 1; }
}

/* Marginal note beside a prose column */
.aside-note {
  position: relative;
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border);
  border-radius: var(--r);
  color: var(--color-text-muted);
}
.aside-note .motif-rule { margin-bottom: var(--sp-3); width: 96px; height: 14px; }
.aside-note p:last-child { margin-bottom: 0; }
.band-dark .aside-note {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-on-dark-line);
  color: var(--color-on-dark-muted);
}

/* FAQ: heading sits alongside the questions instead of above a centred wall */
.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 1.44fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.faq-intro { position: sticky; top: 96px; }
.faq-intro h2 { margin: 0 0 var(--sp-4); }
.faq-split .faq-list { margin: 0; }
@media (max-width: 880px) {
  .faq-split { grid-template-columns: 1fr; gap: var(--sp-5); }
  .faq-intro { position: static; }
}

/* Numbered editorial link card */
.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card-link h3, .card-title {
  display: block;
  margin: 0 0 var(--sp-2);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--color-dark);
  transition: color var(--dur) var(--ease);
}
.card-link:hover h3, .card-link:hover .card-title { color: var(--color-accent-deep); }
.card-link::after {
  content: "\2192";
  display: block;
  margin-top: auto;
  padding-top: var(--sp-4);
  font-size: 1.05rem;
  color: var(--color-accent);
  transition: transform var(--dur) var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .card-link:hover::after { transform: translateX(5px); }
}
.card-index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: var(--ls-label);
  margin-bottom: var(--sp-3);
  display: block;
}
.card-feature {
  background: linear-gradient(165deg, var(--color-surface) 0%, var(--color-accent-soft) 165%);
  border-color: var(--color-accent-line);
}

/* Section intro block (eyebrow + heading + lede) */
.section-head { margin-bottom: var(--sp-6); max-width: 62ch; }
.section-head h2 { margin-top: 0; }
.section-head p:last-child { margin-bottom: 0; }
.section-head-wide { max-width: none; }

/* Alternating feature row (image + copy), avoids the 3-card monotony */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  margin: var(--sp-6) 0;
}
.feature-row + .feature-row { margin-top: var(--sp-8); }
.feature-row.reverse > *:first-child { order: 2; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse > *:first-child { order: 0; }
}

/* Numbered guide step — hairline-separated, alternating image side */
.guide-step { padding-block: 0 clamp(26px, 3vw, 44px); }
.guide-step + .guide-step {
  border-top: 1px solid var(--color-border);
  padding-top: clamp(26px, 3vw, 44px);
}
.guide-step h3 { margin-top: 0; }
.guide-step > div > p:last-child { margin-bottom: 0; }

.figure-note { margin: 0; }
.figure-note img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--color-border);
  box-shadow: var(--sh-sm);
  background: var(--color-surface);
}
.figure-note figcaption { margin-top: var(--sp-3); }

/* Key-points list with motif ticks — replaces plain bullet walls */
.point-list { list-style: none; padding: 0; margin: var(--sp-5) 0; }
.point-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: var(--sp-4);
}
.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 20px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56'><path d='M0 46C24 8 66 8 90 30c12 11 36 11 48 0 24-22 66-22 90 16' fill='none' stroke='%2345786f' stroke-width='5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.band-dark .point-list li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56'><path d='M0 46C24 8 66 8 90 30c12 11 36 11 48 0 24-22 66-22 90 16' fill='none' stroke='%238fc3b7' stroke-width='5' stroke-linecap='round'/></svg>");
}
.band-dark .point-list li { color: var(--color-on-dark-muted); }

/* Caution list — clay markers, for red-flag style content */
.warn-list { list-style: none; padding: 0; margin: var(--sp-5) 0; }
.warn-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--sp-3);
  break-inside: avoid;
}
.warn-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--color-clay-soft);
  border: 1px solid var(--color-clay-line);
  color: var(--color-clay);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

/* Numbered procedure list with display-serif numerals */
.num-list { list-style: none; padding: 0; margin: var(--sp-5) 0; counter-reset: step; }
.num-list > li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: var(--sp-5);
  min-height: 34px;
}
.num-list > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  border: 1px solid var(--color-accent-line);
  border-radius: 50%;
  background: var(--color-surface);
}

/* Two-column list on roomy viewports */
@media (min-width: 860px) {
  .two-col { columns: 2; column-gap: clamp(28px, 4vw, 56px); }
  .two-col > li { break-inside: avoid; }
}

/* ---------------------------------------------------------
   12. EVIDENCE CARDS (research page)
   --------------------------------------------------------- */
.evidence-list {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  margin: var(--sp-6) 0;
}
.evidence-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.evidence-card:hover { box-shadow: var(--sh); border-color: var(--color-accent-line); }
.evidence-card > h3 {
  margin: 0 0 var(--sp-4);
  font-size: 1.25rem;
  padding-right: 52px;
}
.evidence-num {
  position: absolute;
  top: clamp(20px, 2.4vw, 30px);
  right: clamp(20px, 2.4vw, 30px);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
}
.evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
  padding: 0;
  list-style: none;
}
.evidence-meta li {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--r-sm);
  padding: 5px 11px;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--color-text-muted);
}
.evidence-meta b {
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
}
.evidence-body { font-size: 1rem; }
.evidence-limit {
  margin-top: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-clay-soft);
  border: 1px solid var(--color-clay-line);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  color: #6b4227;
}
.evidence-limit b {
  display: block;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-clay);
  margin-bottom: 5px;
}
.evidence-source {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border-soft);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
}
.evidence-source a { font-weight: 600; }

/* "What this means / what this doesn't prove" paired callout */
.meaning-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin: var(--sp-6) 0;
}
@media (max-width: 760px) { .meaning-pair { grid-template-columns: 1fr; } }
.meaning {
  border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.meaning h2, .meaning h3 {
  margin: 0 0 var(--sp-4);
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.meaning h2::before, .meaning h3::before {
  font-size: 0.95em;
  flex-shrink: 0;
}
.meaning-yes { background: var(--color-good-bg); border-color: var(--color-good-line); }
.meaning-yes h2, .meaning-yes h3 { color: var(--color-good); }
.meaning-yes h2::before, .meaning-yes h3::before { content: "\2713"; }
.meaning-no { background: var(--color-bad-bg); border-color: var(--color-bad-line); }
.meaning-no h2, .meaning-no h3 { color: var(--color-bad); }
.meaning-no h2::before, .meaning-no h3::before { content: "\2715"; }
.meaning p, .meaning li { font-size: 0.97rem; }
.meaning ul { padding-left: 1.15em; margin-bottom: 0; }
.meaning ul li::marker { color: currentColor; }

/* Two-up photo pair */
.img-gallery-duo { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 720px; }

/* ---------------------------------------------------------
   13. PROS / CONS
   --------------------------------------------------------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.2vw, 26px);
  margin: var(--sp-6) 0;
}
@media (max-width: 760px) { .pros-cons { grid-template-columns: 1fr; } }
.pros, .cons {
  border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.pros { background: var(--color-good-bg); border-color: var(--color-good-line); }
.cons { background: var(--color-bad-bg); border-color: var(--color-bad-line); }
.pros h3, .cons h3 {
  margin-top: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.pros h3 { color: var(--color-good); }
.cons h3 { color: var(--color-bad); }
.pros ul, .cons ul { list-style: none; padding: 0; margin-bottom: 0; }
.pros li, .cons li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--sp-3);
  font-size: 0.98rem;
  line-height: 1.6;
}
.pros li::before, .cons li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 0.95em;
}
.pros li::before { content: "\2713"; color: var(--color-good); }
.cons li::before { content: "\2715"; color: var(--color-bad); }

/* ---------------------------------------------------------
   14. TABLES
   --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: var(--sp-6) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--r);
  background: var(--color-surface);
  box-shadow: var(--sh-xs);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  min-width: 620px;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  padding: var(--sp-4) var(--sp-5) 0;
  letter-spacing: 0.03em;
}
thead th {
  background: var(--color-bg-tint);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
th, td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-soft);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color var(--dur) var(--ease); }
tbody tr:hover { background: var(--color-surface-warm); }
tbody th { font-weight: 700; color: var(--color-dark); }
tbody td:first-child { font-weight: 600; color: var(--color-dark); }

/* ---------------------------------------------------------
   15. FAQ (details / summary)
   --------------------------------------------------------- */
.faq-list { margin: var(--sp-5) 0 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--r);
  background: var(--color-surface);
  margin-bottom: var(--sp-3);
  padding: 0 clamp(18px, 2vw, 24px);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item:hover { border-color: var(--color-accent-line); }
.faq-item[open] {
  border-color: var(--color-accent-line);
  box-shadow: var(--sh-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 17px 40px 17px 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.01rem;
  line-height: 1.45;
  color: var(--color-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after,
.faq-item summary::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 13px;
  height: 1.8px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.faq-item summary::before { transform: translateY(-50%) rotate(90deg); }
.faq-item summary::after  { transform: translateY(-50%); }
.faq-item[open] summary::before { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.faq-item summary:hover { color: var(--color-accent-deep); }
.faq-item > *:not(summary) {
  color: var(--color-text-muted);
  font-size: 0.99rem;
}
.faq-item > p:last-child { padding-bottom: 20px; }
.faq-item > ul:last-child, .faq-item > ol:last-child { padding-bottom: 20px; }
.section-alt .faq-item { background: var(--color-surface); }

/* ---------------------------------------------------------
   16. CHECKLIST
   --------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: var(--sp-6) 0; counter-reset: check; }
.checklist li {
  counter-increment: check;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r);
  padding: 18px 20px 18px 20px;
  margin-bottom: var(--sp-3);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.checklist li:hover { border-color: var(--color-accent-line); box-shadow: var(--sh-sm); }
.checklist li:has(input:checked) {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-line);
}
.checklist input[type="checkbox"] {
  margin: 4px 0 0;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.checklist label { cursor: pointer; font-size: 0.99rem; line-height: 1.6; }
.checklist label strong {
  display: block;
  font-family: var(--font-body);
  color: var(--color-dark);
  margin-bottom: 2px;
}

/* ---------------------------------------------------------
   17. CALLOUTS
   --------------------------------------------------------- */
.callout {
  position: relative;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-line);
  border-left: 3px solid var(--color-accent);
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-sm);
  margin: var(--sp-6) 0;
}
.callout h2, .callout h3 {
  margin-top: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--color-accent-deep);
}
.callout p:last-child { margin-bottom: 0; }
.callout-warning {
  background: var(--color-clay-soft);
  border-color: var(--color-clay-line);
  border-left-color: var(--color-clay);
}
.callout-warning h2, .callout-warning h3 { color: var(--color-clay); }
.callout-quiet {
  background: var(--color-bg-tint);
  border-color: var(--color-border);
  border-left-color: var(--color-text-faint);
}
.callout-quiet h3 { color: var(--color-text-muted); }
.band-dark .callout {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-on-dark-line);
  border-left-color: #8fc3b7;
}
.band-dark .callout h3 { color: #8fc3b7; }
.band-dark .callout p { color: var(--color-on-dark-muted); }

.disclosure-banner {
  background: var(--color-accent-soft);
  border-bottom: 1px solid var(--color-accent-line);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-align: center;
  padding: 8px 16px;
}
.disclosure-banner a { color: var(--color-accent-deep); font-weight: 600; }

/* ---------------------------------------------------------
   18. IMAGES
   --------------------------------------------------------- */
.img-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, var(--color-bg-tint) 55%, var(--color-bg-sink) 100%);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.img-placeholder.square { aspect-ratio: 1 / 1; }
.img-placeholder.wide { aspect-ratio: 16 / 9; }
.img-placeholder-inner {
  text-align: center;
  padding: 18px;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}
.img-placeholder-icon {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  color: var(--color-accent);
  opacity: 0.6;
}
.img-real { width: 100%; height: 100%; object-fit: cover; display: block; }

.img-caption {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--color-text-faint);
  margin-top: var(--sp-3);
  max-width: 60ch;
}
.img-caption.center { margin-inline: auto; }

.img-block { margin: var(--sp-6) 0; }
.img-block img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--color-border);
  box-shadow: var(--sh-sm);
  background: var(--color-surface);
}
.img-block.img-narrow img { max-width: 480px; margin-inline: auto; }

.img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
  margin: var(--sp-6) 0;
}
.img-gallery figure { margin: 0; }
.img-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-warm);
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .img-gallery img:hover { transform: translateY(-3px); box-shadow: var(--sh); }
}
.img-gallery figcaption {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--color-text-faint);
  margin-top: 8px;
}

/* Framed photo with layered depth, reusable outside the hero */
.photo-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--sh-lg);
  background: var(--color-surface);
}
.photo-frame img { width: 100%; height: auto; }
.photo-stack { position: relative; }
.photo-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--color-accent-line);
  transform: rotate(-2.2deg) translate(-9px, 9px);
  pointer-events: none;
  z-index: 0;
}
.photo-stack .photo-frame { position: relative; z-index: 1; }

/* ---------------------------------------------------------
   19. FOOTER
   --------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--color-dark);
  color: var(--color-on-dark-muted);
  margin-top: 0;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 96px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56' preserveAspectRatio='none'><path d='M0 46C24 8 66 8 90 30c12 11 36 11 48 0 24-22 66-22 90 16' fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 600px 100%;
  opacity: 0.07;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 5vw, 72px) var(--sp-7);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > *:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > *:first-child { grid-column: auto; }
}
.site-footer h2 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 var(--sp-3);
  letter-spacing: -0.01em;
  text-transform: none;
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: #fff;
  margin: 0 0 var(--sp-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a {
  color: var(--color-on-dark-muted);
  text-decoration: none;
  font-size: 0.94rem;
}
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* FTC affiliate disclosure — must stay visible and legible on every page */
.footer-disclosure {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #b6c4cf;
  max-width: 62ch;
  padding-left: var(--sp-4);
  border-left: 2px solid rgba(143, 195, 183, 0.45);
  margin: 0;
}
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-on-dark-line);
  padding-block: var(--sp-5);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: #7f8f9c;
  text-align: center;
}

/* Touch targets: measured at 21px (footer links) and 28px (.link-more) on
   a 375px viewport. Padding lifts them without changing the list rhythm. */
@media (max-width: 560px) {
  .site-footer a { display: inline-block; padding-block: 5px; }
  .site-footer li { margin-bottom: 4px; }
  .link-more { padding-block: 8px; }
}

/* ---------------------------------------------------------
   20. UTILITIES
   --------------------------------------------------------- */
.text-muted { color: var(--color-text-muted); }
.small { font-size: var(--fs-sm); line-height: 1.6; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center-block { margin-inline: auto; }

.source-list { list-style: none; padding: 0; }
.source-list li {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-4);
  border-left: 2px solid var(--color-accent-line);
  font-size: 0.97rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  padding: 0;
  border-radius: 0;
  margin-bottom: var(--sp-3);
}
.badge::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

/* Error page */
.error-page { padding-block: clamp(60px, 8vw, 120px); text-align: center; }
.error-page .eyebrow, .error-page .btn-row { justify-content: center; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--color-accent);
  opacity: 0.2;
  margin: 0 0 var(--sp-3);
  letter-spacing: -0.04em;
}
.error-page .card-link::after { margin-inline: auto; }
.error-page .card-link h3, .error-page .card-title { margin-bottom: 0; }

.btn-row-center { justify-content: center; }
.card-grid-compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------------------------------------------------------
   21. MOTION PREFERENCES
   --------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
  .stage-frame { animation: none; transform: none; }
  .product-stage:hover .stage-frame { transform: none; }
  .product-stage .stage-layer { transform: translate(8px, 8px); }
  .photo-stack::before { transform: translate(-8px, 8px); }
  .card:hover, .img-gallery img:hover { transform: none; }
}

/* ---------------------------------------------------------
   22. PRINT
   --------------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .main-nav, .header-cta { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .band-dark, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .band-dark h2, .site-footer h2, .site-footer h3 { color: #000 !important; }
  .footer-disclosure { color: #000 !important; border-left-color: #888; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .faq-item > *:not(summary) { display: block !important; }
}
