/* Yodo site — SHARED design layer (every page links this).
   Base primitives + all section components (proof bar, mechanism, value, authority,
   done, final-CTA, tactile hero, delight/motion). Page-specific components are added
   below their own banners as pages need them (cost table, FAQ, team grid, form).
   Implements DESIGN.md: pine/cream two-surface rhythm, Fredoka display + Figtree body,
   acid-yellow = CTA-only accent (One Sun Rule), flat/surface-not-shadow, sticky WhatsApp FAB.
   Consumes the token layer (tokens.css). Mobile-first. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smooth anchor glides are desktop-only: on phones the long glide keeps dispatching taps onto whatever sweeps under the finger (FAQ chips → "More on…" links), and a programmatic glide doesn't cancel on touch the way native scrolling does */
@media (min-width: 900px) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---- z-index scale ---- */
:root {
  --z-sticky: 100;
  --z-fab: 200;
  --measure: 62ch;
}

/* ---- layout primitives ---- */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* Section surfaces — the two-surface rhythm. Generous, varied vertical space. */
.surface-cream { background: var(--color-cream); color: var(--color-ink); }
.surface-pine  { background: var(--color-pine);  color: var(--color-cream); }
section { padding-block: var(--space-section); }

/* Light-on-dark compensation (typeset.md): looser leading, a touch of tracking. */
.surface-pine { line-height: calc(var(--leading-body) + 0.06); letter-spacing: 0.005em; }
.surface-pine p { color: color-mix(in oklab, var(--color-cream) 92%, transparent); }

/* ---- type roles ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--weight-display); margin: 0; text-wrap: balance; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
/* Bold maps to the real 600 face we ship (no faux-bold synthesis of a 700 we don't have). */
strong, b { font-weight: var(--weight-label); font-synthesis-weight: none; }
.section-title {
  font-size: var(--text-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  margin-bottom: var(--space-md);
  max-width: 20ch;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-label); font-weight: var(--weight-label); font-size: var(--text-label);
  padding: 15px 26px; border-radius: var(--radius-pill);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s cubic-bezier(.22,1,.36,1), background-color .18s ease-out, box-shadow .18s ease-out;
}
.btn--lg { padding: 18px 32px; font-size: 1rem; }
.btn--wa { background: var(--color-yellow); color: var(--color-ink); }
.btn--wa:hover { background: color-mix(in oklab, var(--color-yellow) 88%, black); transform: translateY(-2px); }
/* ink secondary — non-WhatsApp primary actions (DESIGN.md §5), keeps yellow scarce */
.btn--ink { background: var(--color-ink); color: var(--color-cream); }
.btn--ink:hover { background: color-mix(in oklab, var(--color-ink) 86%, white); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.99); }  /* satisfying press */
.btn__wa { flex: none; transition: transform .22s cubic-bezier(.22,1,.36,1); }
.btn--wa:hover .btn__wa { transform: scale(1.12) rotate(-8deg); }  /* glyph reacts on hover */
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--color-yellow); outline-offset: 3px; border-radius: 6px; }
.surface-pine .btn:focus-visible { outline-color: var(--color-yellow); }

/* arrow link */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label); font-weight: var(--weight-label);
  color: var(--color-ink); text-decoration: none;
  border-bottom: 2px solid color-mix(in oklab, var(--color-ink) 25%, transparent);
  padding-bottom: 2px; transition: border-color .18s, gap .18s;
  position: relative;
}
.link-arrow::before { content: ""; position: absolute; inset: -8px 0; } /* 44px touch target without layout change */
.link-arrow:hover { border-color: var(--color-ink); gap: 12px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--color-cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-md); padding-block: 14px; }
.site-header__logo { height: 42px; width: auto; display: block; }
.site-header__brand { padding-block: 3px; margin-block: -3px; } /* 48px touch target for the home link */
.site-header__nav { display: none; margin-left: auto; gap: var(--space-md); font-family: var(--font-label); font-weight: var(--weight-label); font-size: 0.95rem; }
.site-header__nav a { text-decoration: none; color: var(--color-ink-soft); transition: color .15s; }
.site-header__nav a:hover { color: var(--color-ink); }
.site-header__cta { margin-left: auto; padding: 11px 18px; }
@media (min-width: 900px) {
  .site-header__nav { display: flex; }
  .site-header__cta { margin-left: 0; }
}

/* ============ 1. HERO ============ */
.hero { padding-block: clamp(48px, 8vw, 96px); position: relative; overflow: hidden; }
/* ambient light layer — a soft cream highlight that tracks the cursor across the pine */
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(560px circle at var(--gx, 72%) var(--gy, 38%),
    color-mix(in oklab, var(--color-cream) 9%, transparent), transparent 62%);
  opacity: 0; transition: opacity .5s ease-out;
}
.hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(2.1rem, 1.2rem + 4vw, 4.25rem);
  line-height: 1.03; letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-md);
}
.hero__sub { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 54ch; margin-bottom: var(--space-md); }
.hero__actions { margin-bottom: 18px; }
.hero__cred {
  font-family: var(--font-label); font-size: 0.9rem; font-weight: var(--weight-label);
  color: color-mix(in oklab, var(--color-cream) 78%, transparent);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__cred::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-yellow); flex: none; }
.hero__media { border-radius: var(--radius-lg); overflow: hidden; perspective: 900px; }
/* parcel floats/tilts with the cursor (JS springs the vars); scale 1.06 hides frame edges on translate.
   Defaults keep it static for no-JS / touch / reduced-motion. */
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.06);
  will-change: transform;
}
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1fr 0.9fr; }   /* bigger, more prominent hero media */
  .hero__media img { aspect-ratio: 4/4.9; }
}

/* ============ 2. PROOF BAR ============ */
.proof { padding-block: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--color-line); }
/* margin/padding reset on the block axis only — keep .wrap's margin-inline:auto +
   padding-inline so the strip aligns with the page content column (was flush-left). */
.proof__list { list-style: none; margin-block: 0; padding-block: 0; display: grid; gap: 28px var(--space-md); grid-template-columns: 1fr; } /* tighter rhythm when stacked on phones */
.proof__item { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: start; }
.proof__check {
  grid-row: 1; grid-column: 1; align-self: center;
  width: 27px; height: 27px; border-radius: 50%; background: var(--color-pine);
  display: grid; place-items: center;
}
.proof__check svg { width: 16px; height: 16px; fill: none; stroke: var(--color-cream); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.proof__check path { stroke-dasharray: 22; stroke-dashoffset: 0; }  /* default: fully drawn (no-JS safe) */
.proof__lead { grid-column: 2; align-self: center; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; color: var(--color-ink); }
.proof__detail { font-size: 0.9rem; color: var(--color-ink-soft); max-width: 32ch; grid-column: 2; }
@media (min-width: 640px) { .proof__list { grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-md); } }
@media (min-width: 1000px) { .proof__list { grid-template-columns: repeat(4, 1fr); gap: var(--space-md); } }
/* 3-item proof bars (category pages) — 3 columns, no dead 4th cell */
@media (min-width: 760px) { .proof--3 .proof__list { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); } }

/* ============ 3. VALUE ============ */
.value__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.value__grid > * { min-width: 0; } /* grid items must be allowed to shrink on narrow phones */
.value__copy > p { margin-bottom: var(--space-sm); }
.value__copy .link-arrow { margin-top: var(--space-sm); }
.value__example {
  background: var(--color-cream-panel); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px); border: 1px solid var(--color-line);
}
.value__example-label { font-family: var(--font-label); font-weight: 600; font-size: 0.875rem; color: var(--color-ink-soft); margin-bottom: var(--space-sm); }
.value__compare { display: flex; flex-direction: column; gap: 10px; }
.value__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); padding: 16px 18px; border-radius: var(--radius-md); }
.value__row--them { background: color-mix(in oklab, var(--color-ink) 6%, transparent); }
.value__row--us { background: var(--color-yellow-tint); }
.value__who { font-weight: 600; font-size: 0.95rem; }
.value__price { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--color-ink); }
@media (min-width: 400px) { .value__price { white-space: nowrap; } } /* wraps on the narrowest phones instead of overflowing */
.value__unit { font-family: var(--font-body); font-weight: 400; font-size: 0.875rem; color: var(--color-ink-soft); margin-left: 2px; }
.value__example-note { font-size: 0.9rem; color: var(--color-ink-soft); margin-top: var(--space-sm); max-width: none; }
@media (min-width: 820px) { .value__grid { grid-template-columns: 1fr 0.9fr; } }

/* ============ 4. MECHANISM ============
   Steps as a vertical numbered sequence (left), with one real "goods checked"
   photo as the section anchor (right). No orphaned grid cells. */
.mechanism__title { max-width: 24ch; }
.mechanism__layout { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
.mechanism__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-md); align-items: start; }
@media (max-width: 639px) { /* narrower gutter -> step titles stop wrapping to 3 lines */
  .step { column-gap: 14px; }
  .step__num { width: 36px; height: 36px; font-size: 1rem; }
}
.step__num {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--color-pine); color: var(--color-cream);
}
.step__title { font-size: 1.2rem; line-height: 1.2; margin-bottom: 6px; }
.step__body > p { color: var(--color-ink-soft); }
.step--key .step__num { background: var(--color-yellow); color: var(--color-ink); }
.mechanism__proof {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--color-line); background: var(--color-cream-panel);
}
.mechanism__proof img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.mechanism__proof figcaption {
  font-family: var(--font-label); font-size: 0.9rem; font-weight: 600;
  padding: 14px 18px; background: var(--color-pine); color: var(--color-cream);
}
.mechanism__close { font-weight: 600; color: var(--color-ink); max-width: 60ch; margin-top: var(--space-lg); }
@media (min-width: 860px) {
  .mechanism__layout { grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 72px); }
  .mechanism__proof { position: sticky; top: 88px; }
}

/* ============ 5. IMPORT CATEGORIES ============ */
.import__grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; margin-bottom: var(--space-md); }
.cat {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--color-ink);
  background: var(--color-cream-panel); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s cubic-bezier(.22,1,.36,1), border-color .2s;
}
.cat:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--color-pine) 40%, var(--color-line)); }
.cat__media { overflow: hidden; }
.cat__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.cat:hover .cat__media img { transform: scale(1.04); }
.cat__body { padding: var(--space-md); position: relative; }
.cat__title { font-size: 1.3rem; margin-bottom: 6px; }
.cat__body p { color: var(--color-ink-soft); font-size: 0.95rem; max-width: none; }
.cat__go { position: absolute; top: var(--space-md); right: var(--space-md); font-family: var(--font-display); font-size: 1.3rem; color: var(--color-pine); transition: transform .2s; }
.cat:hover .cat__go { transform: translateX(4px); }
.import__note { color: var(--color-ink-soft); }
@media (min-width: 760px) {
  .import__grid { grid-template-columns: 1fr 1fr; }
  .cat--wide { grid-column: 1 / -1; grid-template-columns: 1.25fr 1fr; grid-template-rows: none; align-items: stretch; }
  .cat--wide .cat__media { height: 300px; }
  .cat--wide .cat__media img { height: 300px; width: 100%; object-fit: cover; aspect-ratio: auto; }
  .cat--wide .cat__body { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-inline: clamp(24px, 3vw, 40px); }
}
@media (min-width: 1000px) {
  .import__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 6. DONE-FOR-YOU (pine) ============ */
.done__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.done__copy .section-title { color: var(--color-cream); max-width: 22ch; }
.done__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.done__points li {
  padding: 18px 0; border-top: 1px solid color-mix(in oklab, var(--color-cream) 18%, transparent);
  color: color-mix(in oklab, var(--color-cream) 90%, transparent);
}
.done__points li strong { color: var(--color-cream); font-family: var(--font-display); font-weight: 600; }
.done__points li:last-child { border-bottom: 1px solid color-mix(in oklab, var(--color-cream) 18%, transparent); }
@media (min-width: 860px) { .done__grid { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ============ 7. PAYOFF + DELIVERY PROOF ============
   One real delivery photo + honest copy (no fabricated testimonials). */
.payoff__title { max-width: 22ch; }
.payoff__lead { font-size: 1.1rem; margin-bottom: var(--space-lg); max-width: 56ch; }
.proof-delivery {
  margin: 0; display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--color-cream-panel); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
}
.proof-delivery__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; display: block; }
.proof-delivery__body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.proof-delivery__lead {
  font-family: var(--font-display); font-weight: 600; line-height: 1.15;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); color: var(--color-ink); max-width: none;
}
.proof-delivery__note { color: var(--color-ink-soft); max-width: 40ch; }
@media (min-width: 760px) {
  .proof-delivery { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .proof-delivery__media img { height: 360px; aspect-ratio: auto; }
}

/* ============ 8. AUTHORITY (pine) ============ */
.authority__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.authority__copy .section-title { color: var(--color-cream); }
.authority__facts { list-style: none; margin: 0 0 var(--space-md); padding: 0; display: grid; gap: 14px; }
.authority__facts li { color: color-mix(in oklab, var(--color-cream) 90%, transparent); padding-left: 22px; position: relative; max-width: 46ch; }
.authority__facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-yellow); }
.authority__facts strong { color: var(--color-cream); font-weight: 600; }
.authority__gallery { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); }
.authority__shot { margin: 0; border-radius: var(--radius-md); overflow: hidden; }
.authority__shot img { width: 100%; object-fit: cover; aspect-ratio: 16/10; display: block; }
/* phone-shaped founder video (portrait, natural aspect) */
.authority__shot--video { max-width: 340px; margin-inline: auto; overflow: visible; }
.authority__shot--video video { width: 100%; height: auto; display: block; border-radius: var(--radius-md); background: var(--color-ink); }
.authority__vidcap { font-size: 0.875rem; color: color-mix(in oklab, var(--color-cream) 78%, transparent); padding-top: 10px; }
.authority__more { margin-top: var(--space-sm); }

/* ============ MACHINERY STRIP (goods page) ============ */
.mach-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; margin-block: var(--space-lg); }
.mach-shot { margin: 0; border-radius: var(--radius-md); overflow: hidden; }
.mach-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 700px) {
  .mach-grid { grid-template-columns: 0.9fr 1.1fr; grid-template-rows: 1fr 1fr; gap: clamp(16px, 2.5vw, 24px); }
  .mach-shot--tall { grid-row: 1 / span 2; } /* the fleet shot anchors tall on the left; two landscape shots stack right */
}

/* ============ TESTIMONIAL CHATS (real WhatsApp crops) ============ */
.testi__lead { color: var(--color-ink-soft); margin-top: var(--space-sm); max-width: 52ch; }
.testi__grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; margin-top: var(--space-lg); align-items: start; }
.testi__shot { margin: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-line); }
.testi__shot img { width: 100%; display: block; }
@media (min-width: 700px) { .testi__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); } }
@media (min-width: 860px) { .authority__grid { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ============ 9. FINAL CTA (pine) ============ */
.final-cta { padding-block: clamp(56px, 8vw, 104px); text-align: center; border-top: 1px solid color-mix(in oklab, var(--color-cream) 14%, transparent); }
.final-cta__inner { display: grid; justify-items: center; gap: var(--space-md); }
.final-cta__title { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); line-height: 1.08; color: var(--color-cream); max-width: 18ch; }
.final-cta__inner p { color: color-mix(in oklab, var(--color-cream) 90%, transparent); max-width: 52ch; margin-inline: auto; }
.final-cta .btn { margin-top: var(--space-sm); }

/* ============ FOOTER ============ */
.site-footer { padding-block: var(--space-lg); border-top: 1px solid color-mix(in oklab, var(--color-cream) 14%, transparent); }
.site-footer__inner { display: flex; flex-direction: column; gap: var(--space-md); align-items: flex-start; }
.site-footer__logo { height: 40px; width: auto; }
.site-footer__nap { font-size: 0.9rem; color: color-mix(in oklab, var(--color-cream) 82%, transparent); max-width: none; }
.site-footer__nap a, .site-footer__social a { color: var(--color-cream); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__social { margin-top: 10px; }
.site-footer__social a { display: inline-block; padding: 6px 2px; } /* 44px-friendly tap rows in the footer */

/* ============ STICKY WHATSAPP FAB ============ */
.wa-fab {
  position: fixed; z-index: var(--z-fab);
  right: max(clamp(16px, 4vw, 28px), env(safe-area-inset-right));
  bottom: max(clamp(16px, 4vw, 28px), env(safe-area-inset-bottom)); /* clears the home indicator on notched phones */
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-yellow); color: var(--color-ink);
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 8px 30px oklch(20% 0.01 190 / 0.28);
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 36px oklch(20% 0.01 190 / 0.34); }
.wa-fab:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; }
/* FAQ on phones: the fab's corner sits on the accordion rows' chevron zone and steals their taps; the page has a WA CTA per group + closing band, so drop the fab there */
@media (max-width: 899px) { body:has(.faq) .wa-fab { display: none; } }

/* ============ NAV DROPDOWN (shared header) ============ */
/* "you are here" — current top-level link, and the dropdown parent when a child is current */
.site-header__nav a[aria-current="page"],
.nav-drop:has(a[aria-current="page"]) .nav-drop__btn {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-yellow);
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop__btn {
  font-family: var(--font-label); font-weight: var(--weight-label); font-size: 0.95rem;
  color: var(--color-ink-soft); background: none; border: 0; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 7px; transition: color .15s;
}
.nav-drop__btn::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px); transition: transform .2s cubic-bezier(.22,1,.36,1);
}
.nav-drop__btn:hover { color: var(--color-ink); }
.nav-drop__menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 230px; background: var(--color-cream); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); padding: 8px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease-out, transform .18s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 14px 34px oklch(20% 0.02 190 / 0.14); z-index: var(--z-sticky);
}
@media (min-width: 900px) { /* open-state transforms are desktop-dropdown only; in the <900px sheet the menu is static and must never be translated */
  .nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu, .nav-drop.open .nav-drop__menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
  .nav-drop:hover .nav-drop__btn::after, .nav-drop:focus-within .nav-drop__btn::after, .nav-drop.open .nav-drop__btn::after { transform: rotate(225deg) translateY(2px); }
}
.nav-drop__menu a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none;
  color: var(--color-ink); font-family: var(--font-label); font-weight: var(--weight-label); font-size: 0.92rem;
  transition: background .12s;
}
.nav-drop__menu a:hover { background: var(--color-cream-panel); }

/* ---- mobile nav: hamburger + slide-down sheet ---- */
.site-header__toggle {
  margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 11px; background: none; border: 0; cursor: pointer;
}
.site-header__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--color-ink); transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .18s; }
.site-header.nav-open .site-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .site-header__toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .site-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .site-header__toggle { display: none; } }
@media (max-width: 899px) {
  .site-header__inner { position: relative; }
  .site-header__nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    background: var(--color-cream); border-bottom: 1px solid var(--color-line);
    padding: 12px clamp(20px, 5vw, 48px) 22px; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease-out, transform .2s cubic-bezier(.22,1,.36,1);
    z-index: var(--z-sticky);
  }
  .site-header.nav-open .site-header__nav { opacity: 1; visibility: visible; transform: none; }
  .site-header__nav > a { padding: 9px 0; font-size: 1.05rem; }
  .nav-drop { display: block; width: 100%; }
  .nav-drop__btn { padding: 9px 0; font-size: 1.05rem; pointer-events: none; color: var(--color-ink-soft); }
  .nav-drop__btn::after { display: none; }
  .nav-drop__menu {
    /* visibility must INHERIT, not visible: a forced visible child escapes the closed sheet's visibility:hidden and leaves invisible-but-tappable links floating under the header on every page */
    position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none;
    border: 0; padding: 0 0 4px 14px; min-width: 0; background: none; display: grid; gap: 0;
  }
  .nav-drop__menu a { padding: 11px 0; } /* 44px+ touch rows in the mobile sheet */
  .site-header__cta { display: none; }
}

/* ============ HERO — cinematic wide media (landscape hero photos, e.g. cars) ============ */
.hero--cine .hero__media img { aspect-ratio: 16 / 10; }

/* ============ HERO — text-led variant (pages with no hero image) ============ */
.hero--lead .hero__copy { max-width: 640px; }
.hero--lead .hero__sub { margin-bottom: var(--space-md); }
.hero--lead .hero__sub:last-of-type { margin-bottom: var(--space-lg); }
/* credential proof panel: a full-height co-column, not a floating chip.
   Header (label + hairline) + generously-spaced facts; stretches to match the copy
   column so the hero has two committed blocks instead of copy + void. */
.hero__aside {
  border: 1px solid color-mix(in oklab, var(--color-cream) 26%, transparent);
  border-radius: var(--radius-lg); padding: clamp(28px, 3.5vw, 48px);
  background: color-mix(in oklab, var(--color-cream) 8%, transparent);
  display: flex; flex-direction: column; justify-content: center;
  margin-top: var(--space-lg); /* breathing room when stacked below the copy */
}
.hero__aside-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); color: var(--color-cream);
  padding-bottom: var(--space-sm); margin-bottom: clamp(20px, 2.5vw, 30px);
  border-bottom: 1px solid color-mix(in oklab, var(--color-cream) 18%, transparent);
}
.hero__aside-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2vw, 26px); }
.hero__aside-facts li { color: color-mix(in oklab, var(--color-cream) 88%, transparent); font-size: 1rem; line-height: 1.55; padding-left: 24px; position: relative; max-width: none; }
.hero__aside-facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-yellow); }
.hero__aside-facts strong { color: var(--color-cream); font-weight: 600; }
@media (min-width: 900px) {
  .hero--lead .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 80px); align-items: stretch; }
  .hero--lead .hero__copy { align-self: center; }
  .hero__aside { margin-top: 0; }
}

/* ============ COST NOTE (how-it-works, category cost sections) ============ */
.cost-note__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.cost-note__promise {
  background: var(--color-cream-panel); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
}
.cost-note__lead {
  font-family: var(--font-display); font-weight: 600; line-height: 1.2;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); color: var(--color-ink); margin-bottom: var(--space-sm); max-width: none;
}
.cost-note__detail { color: var(--color-ink-soft); max-width: none; }
@media (min-width: 820px) { .cost-note__grid { grid-template-columns: 1fr 0.85fr; } }

/* value compare, concept variant (text instead of prices — car page) */
.value__compare--concept .value__price { white-space: normal; font-size: 1.05rem; text-align: right; max-width: 15ch; }

/* ============ CAR COST STACK + EV NOTE ============ */
.carcost__intro { margin-bottom: var(--space-lg); max-width: 62ch; }
.cost-stack { list-style: none; margin: 0 0 var(--space-lg); padding: 0; display: grid; border-top: 1px solid var(--color-line); }
.cost-stack__item { display: grid; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--color-line); }
.cost-stack__k { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--color-ink); }
.cost-stack__v { color: var(--color-ink-soft); max-width: 62ch; }
@media (min-width: 680px) { .cost-stack__item { grid-template-columns: 230px 1fr; align-items: baseline; } }
.carcost__example { background: var(--color-yellow-tint); border-radius: var(--radius-md); padding: clamp(18px, 2.5vw, 26px); max-width: none; margin-bottom: var(--space-md); }
.ev-note { background: var(--color-cream-panel); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); margin-bottom: var(--space-lg); }
.ev-note__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--color-ink); margin-bottom: var(--space-xs); }
.ev-note p { max-width: 68ch; }

/* ============ RISK LIST — problem → handled (pine) ============ */
.risks .section-title { color: var(--color-cream); max-width: 28ch; margin-bottom: var(--space-lg); }
.risk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
.risk__title { font-size: 1.15rem; color: var(--color-cream); margin-bottom: 6px; display: flex; gap: 10px; align-items: start; }
.risk__title::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--color-yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230d1a1a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
}
.risk p { color: color-mix(in oklab, var(--color-cream) 88%, transparent); max-width: 60ch; padding-left: 32px; }
@media (min-width: 760px) { .risk-list { grid-template-columns: 1fr 1fr; gap: var(--space-lg) clamp(32px, 5vw, 64px); } }

/* ============ AUTHENTICITY BAND (pine, gadget) ============ */
.authenticity__inner { max-width: 760px; }
.authenticity .section-title { color: var(--color-cream); max-width: 26ch; }
.authenticity p { margin-bottom: var(--space-md); }
.authenticity p:last-child { margin-bottom: 0; }

/* ============ WHO THIS IS FOR (list) ============ */
.who .section-title { margin-bottom: var(--space-lg); }
.who-list { list-style: none; margin: 0 0 var(--space-md); padding: 0; display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
.who-item__title { font-size: 1.25rem; color: var(--color-ink); margin-bottom: 8px; }
.who-item p { color: var(--color-ink-soft); max-width: 40ch; }
.who-note { color: var(--color-ink-soft); }
@media (min-width: 720px) { .who-list { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); } }
@media (min-width: 720px) { .who-list--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .who-list--4 { grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); } }

/* ============ TEAM GRID (about) ============ */
.team .section-title { margin-bottom: var(--space-lg); }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
.team-card { display: flex; flex-direction: column; }
@media (max-width: 699px) { /* phones: portrait beside name/role, bio full-width below — present but not a gallery */
  .team-grid { gap: 36px; }
  .team-card {
    display: grid; grid-template-columns: 140px 1fr; grid-template-rows: 1fr 1fr auto;
    grid-template-areas: "photo name" "photo role" "bio bio"; column-gap: var(--space-sm);
  }
  .team-card__photo { grid-area: photo; margin-bottom: 0; }
  .team-card__photo img { aspect-ratio: 4/5; }
  .team-card__name { grid-area: name; align-self: end; font-size: 1.15rem; }
  .team-card__role { grid-area: role; align-self: start; margin-bottom: 0; }
  .team-card__bio { grid-area: bio; margin-top: 10px; }
}
.team-card__photo { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-md); background: var(--color-cream-panel); border: 1px solid var(--color-line); }
.team-card__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.team-card__name { font-size: 1.3rem; color: var(--color-ink); margin-bottom: 2px; }
.team-card__name span { color: var(--color-ink-soft); font-weight: 500; font-size: 0.9em; }
.team-card__role { font-family: var(--font-label); font-weight: 600; font-size: 0.9rem; color: var(--color-ink-soft); margin-bottom: 10px; }
.team-card__bio { color: var(--color-ink-soft); max-width: none; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 44px); } }

/* ============ CAC CERTIFICATE (about, pine band) ============ */
.cert__grid { display: grid; gap: clamp(28px, 4vw, 60px); align-items: center; }
.cert__doc { margin: 0; }
.cert__doc img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); background: #fff; }
.cert__label { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 1rem; color: var(--color-yellow); margin-bottom: var(--space-sm); }
.cert .section-title { color: var(--color-cream); max-width: 20ch; }
.cert__copy p { max-width: 46ch; margin-top: var(--space-md); }
.cert__verify {
  display: inline-block; margin-top: var(--space-lg); font-family: var(--font-label); font-weight: 600;
  color: var(--color-cream); text-decoration: underline; text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
  position: relative;
}
.cert__verify::before { content: ""; position: absolute; inset: -9px 0; } /* 44px touch target */
.cert__verify:hover { text-decoration-color: var(--color-cream); }
@media (min-width: 820px) { .cert__grid { grid-template-columns: 0.8fr 1.2fr; } }

/* ============ FAQ ACCORDION ============ */
.faq__wrap { max-width: 820px; }
.faq-group { margin-bottom: var(--space-xl); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group__title { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); color: var(--color-ink); margin-bottom: var(--space-sm); }
.faq-list { border-top: 1px solid var(--color-line); }
.faq-list details { border-bottom: 1px solid var(--color-line); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  display: flex; align-items: start; justify-content: space-between; gap: 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--color-ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-top: 7px;
  border-right: 2px solid var(--color-ink-soft); border-bottom: 2px solid var(--color-ink-soft);
  transform: rotate(45deg); transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
.faq-list summary:focus-visible { outline: 3px solid var(--color-yellow); outline-offset: 3px; border-radius: 6px; }
.faq__answer { padding: 0 0 22px; }
.faq__answer p { color: var(--color-ink-soft); max-width: 72ch; }
.faq-cta { margin-top: var(--space-md); max-width: none; }

/* ============ CONTACT / QUOTE FORM ============ */
.contact__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact__wa .section-title { max-width: 18ch; }
.contact__wa p { margin-bottom: var(--space-md); }
.contact__or { color: var(--color-ink-soft); font-size: 0.9rem; margin-top: var(--space-sm); }
.contact__form { background: var(--color-cream-panel); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.contact__form-label { font-family: var(--font-label); font-weight: 600; font-size: 0.95rem; color: var(--color-ink); margin-bottom: var(--space-md); }
.field { display: grid; gap: 6px; margin-bottom: var(--space-md); }
.field label { font-family: var(--font-label); font-weight: 600; font-size: 0.9rem; color: var(--color-ink); }
.field__opt { color: var(--color-ink-soft); font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--color-ink); background: var(--color-cream); width: 100%;
  border: 1.5px solid var(--color-line); border-radius: var(--radius-md); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-pine);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-pine) 16%, transparent);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--color-ink) 64%, transparent); }  /* >=4.5:1 on cream */
.field__hint { font-size: 0.875rem; color: var(--color-ink-soft); margin-top: 5px; }
/* invalid state (native :user-invalid fires only after interaction) */
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; box-shadow: 0 0 0 3px color-mix(in oklab, #b3261e 14%, transparent); }
.quote-form__submit { width: 100%; justify-content: center; margin-top: var(--space-xs); }
.quote-form__note { font-size: 0.875rem; color: var(--color-ink-soft); margin-top: var(--space-sm); max-width: none; }
@media (min-width: 820px) { .contact__grid { grid-template-columns: 0.9fr 1.1fr; } .contact__wa { align-self: center; } }

/* ============ WHAT HAPPENS NEXT ============ */
.next .section-title { margin-bottom: var(--space-lg); }
.next-steps { list-style: none; margin: 0 0 var(--space-lg); padding: 0; display: grid; gap: var(--space-md); }
.next__close { font-weight: 600; color: var(--color-ink); max-width: 60ch; }
@media (min-width: 760px) { .next-steps { grid-template-columns: 1fr 1fr; gap: var(--space-lg) clamp(32px, 5vw, 64px); } }

/* ============ LIGHT TRUST NOTE (pine) ============ */
.trust-note { padding-block: clamp(28px, 4vw, 44px); }
.trust-note__text { display: flex; gap: 10px; align-items: baseline; color: color-mix(in oklab, var(--color-cream) 90%, transparent); font-size: 1.05rem; max-width: 72ch; }
.trust-note__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-yellow); transform: translateY(-2px); }

/* ============ HOW WE WORK (about, pine) ============ */
.howwework__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.howwework__copy .section-title { color: var(--color-cream); max-width: 20ch; }
.hero__facts { margin-block: var(--space-md) var(--space-lg); }
@media (min-width: 860px) { .howwework__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
/* cream variant (keeps the two-surface rhythm; avoids a pine->pine run before the footer) */
.howwework.surface-cream .howwework__copy .section-title { color: var(--color-ink); }
.howwework.surface-cream .howwework__copy p { color: var(--color-ink-soft); }
.howwework.surface-cream .authority__facts li { color: var(--color-ink-soft); }
.howwework.surface-cream .authority__facts strong { color: var(--color-ink); }

/* ============ FAQ GROUP CHIP NAV ============ */
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-xl); }
.faq-nav a {
  font-family: var(--font-label); font-weight: 600; font-size: 0.875rem; color: var(--color-ink-soft);
  text-decoration: none; padding: 12px 16px; border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  transition: background .15s, border-color .15s, color .15s;
}
.faq-nav a:hover { background: var(--color-cream-panel); color: var(--color-ink); border-color: color-mix(in oklab, var(--color-pine) 40%, var(--color-line)); }
.faq-group { scroll-margin-top: 88px; }

/* ============ MOTION ============
   Content is ALWAYS visible by default (no opacity gating) — safe for headless
   renderers, AI crawlers, no-JS, and older browsers. Motion is pure enhancement.
   Only the hero animates, on load (above the fold, fires immediately, never blanks) —
   per brand.md, one orchestrated page-load beats scattered scroll reveals. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .7s cubic-bezier(.22,1,.36,1) both; }
  .hero__copy > *:nth-child(1) { animation-delay: .02s; }
  .hero__copy > *:nth-child(2) { animation-delay: .10s; }
  .hero__copy > *:nth-child(3) { animation-delay: .18s; }
  .hero__copy > *:nth-child(4) { animation-delay: .26s; }
  .hero__media { animation: rise-media .9s cubic-bezier(.22,1,.36,1) .12s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes rise-media { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }

  /* --- delight: proof checkmarks draw themselves in on first view (thematic: "verified").
         Default (no-JS / reduced-motion) = fully drawn, so nothing ever ships blank. --- */
  .js .proof__check path { stroke-dashoffset: 22; }
  .js .proof__item.seen .proof__check path { animation: draw-check .55s cubic-bezier(.22,1,.36,1) forwards; }
  .js .proof__item.seen:nth-child(2) .proof__check path { animation-delay: .09s; }
  .js .proof__item.seen:nth-child(3) .proof__check path { animation-delay: .18s; }
  .js .proof__item.seen:nth-child(4) .proof__check path { animation-delay: .27s; }
  @keyframes draw-check { to { stroke-dashoffset: 0; } }

  /* --- delight: sticky FAB enters after the hero settles, then one gentle nudge to invite the chat.
         No forwards-fill, so :hover keeps working once the animations finish. --- */
  .js .wa-fab { animation: fab-in .6s cubic-bezier(.22,1,.36,1) .9s backwards, fab-nudge 1.1s ease-in-out 3.4s 1; }
  @keyframes fab-in { from { opacity: 0; transform: translateY(14px) scale(.82); } to { opacity: 1; transform: none; } }
  @keyframes fab-nudge { 0%, 100% { transform: none; } 38% { transform: scale(1.1); } 68% { transform: scale(.98); } 84% { transform: scale(1.02); } }

  /* --- delight: the winning price row gives a soft emphasis pop when it scrolls in (content always visible) --- */
  .js .value__row--us.seen { animation: price-pop .7s cubic-bezier(.22,1,.36,1); }
  @keyframes price-pop { 0% { transform: scale(1); } 35% { transform: scale(1.035); } 100% { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
