/* ==========================================================================
   David Lane — Precious Oils
   theme.css — design tokens, primitives and layout system
   Extracted from David_Lane-H2.pdf (1920px artboard, 1340px content column)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — sampled directly from the mockup */
  --ink:            #2D343F;
  --ink-80:         rgba(45, 52, 63, 0.80);
  --ink-12:         rgba(45, 52, 63, 0.12);
  --bg:             #F2F2F2;
  --surface:        #FFFFFF;
  --green:          #83A54D;
  --green-light:    #93BA56;
  --lime:           #BFD803;
  --deep-green:     #1A4136;
  --gold:           #EFAC4D;
  --muted:          #767676;
  --muted-dark:     #727272;
  --on-dark:        #F4F4F4;
  --on-dark-muted:  rgba(244, 244, 244, 0.72);

  /* Typography — mockup uses a humanist-geometric sans (Museo Sans family).
     Figtree is the closest freely-licensed match; swap the @import and this
     token if the licensed face is purchased. */
  --font: "Figtree", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(2.25rem, 1.05rem + 3.75vw, 4.5rem);   /*  36 →  72 */
  --fs-h1:      clamp(2rem,    1.25rem + 2.34vw, 3.5rem);   /*  32 →  56 */
  --fs-h2:      clamp(1.75rem, 1.28rem + 1.46vw, 2.5rem);   /*  28 →  40 */
  --fs-h3:      clamp(1.25rem, 1.09rem + 0.50vw, 1.5rem);   /*  20 →  24 */
  --fs-h4:      1.25rem;                                     /*  20       */
  --fs-lead:    1rem;                                        /*  16       */
  --fs-body:    1rem;                                        /*  16       */
  --fs-sm:      0.875rem;                                    /*  14       */
  --fs-xs:      0.75rem;                                     /*  12       */

  --lh-tight:   1.12;
  --lh-snug:    1.3;
  --lh-body:    1.7;

  /* Eyebrow labels ("ABOUT US", "OUR PRODUCT") are heavily tracked */
  --track-eyebrow: 0.22em;
  --track-button:  0.18em;

  /* Layout */
  --container:   1340px;
  --gutter:      clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h:    71px;

  /* Rhythm — section padding scales down on small screens */
  --section-y:   clamp(3.5rem, 1.75rem + 5.5vw, 7.5rem);

  --radius-sm:   4px;
  --radius-pill: 999px;
  --radius-card: 32px;

  --shadow-card: 0 18px 50px -24px rgba(45, 52, 63, 0.35);
  --shadow-lift: 0 26px 60px -22px rgba(45, 52, 63, 0.45);

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    180ms;
  --dur:         320ms;
  --dur-slow:    760ms;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: var(--lh-snug); overflow-wrap: break-word; }
p  { margin: 0; overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a  { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }

.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.stack > * + * { margin-top: var(--stack-gap, 1rem); }

/* --------------------------------------------------------------------------
   4. Type primitives
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--green);
}
.section--dark .eyebrow { color: var(--lime); }

.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.015em; }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.012em; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }

.lead { color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: var(--on-dark-muted); }

.section-head { max-width: 700px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow + * { margin-top: 0.75rem; }
.section-head > * + .lead { margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.9rem 2rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--track-button);
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--dur) var(--ease-soft),
              color var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft),
              transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

/* Wipe fill on hover — the sheen travels left→right behind the label */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover, var(--green-light));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn:active { transform: translateY(0); }

.btn--lime  { --btn-bg: var(--lime); --btn-fg: var(--ink); --btn-hover: #d4ef1a; }
.btn--dark  { --btn-bg: var(--ink);  --btn-fg: #fff;       --btn-hover: #3c4553; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  --btn-hover: var(--ink);
  border-radius: var(--radius-pill);
}
.btn--ghost:hover, .btn--ghost:focus-visible { --btn-fg: #fff; }
.section--dark .btn--ghost { --btn-fg: var(--on-dark); --btn-bd: rgba(244,244,244,.45); --btn-hover: #fff; }
.section--dark .btn--ghost:hover { --btn-fg: var(--ink); }

.btn--pill  { border-radius: var(--radius-pill); }
.btn--block { width: 100%; }
.btn--sm    { min-height: 44px; padding: 0.6rem 1.25rem; font-size: var(--fs-xs); }

.btn[aria-disabled="true"], .btn:disabled {
  opacity: 0.45; pointer-events: none;
}

/* Text link with an underline that grows from the left */
.link-underline {
  position: relative;
  font-weight: 600;
  color: var(--green);
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease-out);
}
.link-underline:hover::after,
.link-underline:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--ink);
  transition: background var(--dur) var(--ease-soft),
              box-shadow var(--dur) var(--ease-soft),
              transform var(--dur-slow) var(--ease-out);
}
.site-header.is-stuck { box-shadow: 0 8px 30px -12px rgba(0,0,0,.5); }
/* Hide-on-scroll-down, reveal-on-scroll-up */
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--gutter);
}

.brand {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}
.brand span { color: var(--lime); }

.nav { margin-left: auto; }
/* The drawer's Order-now button exists only for the breakpoint where
   .header-cta is hidden; above that the green bar CTA does the job. */
.nav__item--cta { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 0.2rem + 1.6vw, 2.25rem); }
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
  transition: color var(--dur) var(--ease-soft);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link:focus-visible { color: #fff; }
.nav__link:hover::after, .nav__link:focus-visible::after,
.nav__item.is-current .nav__link::after { transform: scaleX(1); transform-origin: left center; }
.nav__item.is-current .nav__link { color: var(--lime); }

/* The full-bleed green CTA that butts against the right edge of the bar */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 143px;
  height: var(--header-h);
  margin-left: 1.5rem;
  background: var(--green);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--track-button);
  text-align: center;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease-soft);
}
.header-cta:hover, .header-cta:focus-visible { background: var(--green-light); }

.header-tools { display: flex; align-items: center; gap: 0.25rem; margin-left: 1rem; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--on-dark-muted);
  transition: color var(--dur) var(--ease-soft), background var(--dur) var(--ease-soft);
}
.icon-btn:hover, .icon-btn:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.icon-btn__count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 18px; height: 18px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.icon-btn__count[data-count="0"] { display: none; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; margin-left: auto; }
.burger__box { position: relative; display: block; width: 24px; height: 16px; margin-inline: auto; }
.burger__bar {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: #fff;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) linear;
}
.burger__bar:nth-child(1) { top: 0; }
.burger__bar:nth-child(2) { top: 7px; }
.burger__bar:nth-child(3) { top: 14px; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .burger { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease-out);
  }
  .nav.is-open { max-height: min(80vh, 640px); overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.5rem; }
  .nav__link { padding-block: 0.85rem; font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__item--cta { display: block; }
  .nav__list .btn { margin-top: 1rem; }
  .site-header__inner { gap: 1rem; }
  .header-tools { margin-left: 0; order: 2; }
  .burger { order: 3; margin-left: 0; }
}

/* At 320px the bar runs out of room: the wordmark, two icon buttons and the
   burger together exceed the viewport and push the burger off the edge.
   Tighten everything rather than letting it overflow. */
@media (max-width: 400px) {
  .site-header__inner {
    gap: 0.5rem;
    padding-right: 0.5rem;
  }
  .brand { font-size: 1.35rem; }
  .header-tools { gap: 0; }
  .icon-btn { width: 38px; height: 38px; }
  .burger { width: 40px; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(1080px, 100vh);
  /* svh ignores the collapsing mobile address bar, so the hero does not
     jump as the browser chrome hides. */
  min-height: min(1080px, 100svh);
  padding-top: var(--header-h);
  overflow: hidden;
  color: #fff;
}
.hero--compact { min-height: min(520px, 70vh); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  /* Slow push-in; paired with JS parallax on capable devices */
  animation: hero-zoom 18s var(--ease-soft) forwards;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              rgba(26, 30, 37, 0.82) 0%,
              rgba(26, 30, 37, 0.55) 42%,
              rgba(26, 30, 37, 0.15) 72%,
              rgba(26, 30, 37, 0.05) 100%);
}
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero__content { position: relative; max-width: 920px; padding-block: 4rem; }
/* Art-directed line breaks: honoured only once there is room for them,
   so a forced break can never push a headline past the viewport. */
.br-lg { display: none; }
@media (min-width: 880px) { .br-lg { display: inline; } }
.hero__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.02em; }
.hero__text { margin-top: 1.5rem; max-width: 56ch; color: rgba(255,255,255,.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 560px) {
  /* Stacked buttons at intrinsic width read as a mistake; make them
     deliberate full-width rows. */
  .hero__actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero__actions .btn { width: 100%; }
}

/* Scroll cue */
@media (max-width: 900px) { .scroll-cue { display: none; } }
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 2rem;
  translate: -50% 0;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.scroll-cue__line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  display: block;
  width: 100%; height: 50%;
  background: var(--lime);
  animation: cue 2.2s var(--ease-soft) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(200%); } }

/* --------------------------------------------------------------------------
   8. Feature cards (overlap the hero)
   -------------------------------------------------------------------------- */
/* The cards straddle the hero's lower edge by 74px, as in the mockup. */
.features { position: relative; z-index: 2; margin-top: -74px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  min-height: 300px;
  padding: 2.5rem 2rem;
  background: var(--ink);
  border-top: 5px solid var(--lime);
  color: var(--on-dark);
  text-align: center;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.feature-card__icon {
  width: 82px; height: 82px;
  margin-bottom: 0.5rem;
  color: var(--lime);
  transition: transform var(--dur-slow) var(--ease-out);
}
.feature-card:hover .feature-card__icon { transform: rotate(-6deg) scale(1.08); }
.feature-card__title { font-size: var(--fs-h3); }
.feature-card__text { font-size: var(--fs-sm); color: var(--on-dark-muted); max-width: 30ch; }

@media (max-width: 900px) {
  .features { margin-top: -48px; }
  .features__grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
}

/* --------------------------------------------------------------------------
   9. Split sections (About / Why choose us)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 3.5vw, 5rem);
}
.split--media-first .split__media { order: -1; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--media-first .split__media { order: 0; }
}

.split__media { position: relative; }
/* Direct child only: the media plate's avatar also lives in here, and a
   descendant selector was out-specifying its own width/height. */
.split__media > img { width: 100%; object-fit: cover; }

/* Dark quote plate that hangs off the bottom-left of the about image */
.media-plate {
  position: absolute;
  left: -14%;
  bottom: -12%;
  width: min(495px, 104%);
  padding: 2rem;
  background: var(--ink);
  border-top: 5px solid var(--lime);
  color: var(--on-dark);
  box-shadow: var(--shadow-card);
}
.media-plate__title { font-size: var(--fs-h3); }
.media-plate__person { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.media-plate__person > div { min-width: 0; }
.media-plate__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.media-plate__name { font-weight: 700; line-height: 1.3; }
.media-plate__role { font-size: var(--fs-sm); color: var(--lime); }

@media (max-width: 900px) {
  .media-plate { position: static; width: 100%; margin-top: -2rem; }
}

/* Vision / mission tick lists */
.tick-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; margin-top: 2.5rem; }
@media (max-width: 560px) { .tick-cols { grid-template-columns: 1fr; } }
.tick-list { margin-top: 1rem; display: grid; gap: 0.6rem; }
.tick-list li { position: relative; padding-left: 1.9rem; font-size: var(--fs-sm); }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  background:
    radial-gradient(circle at center, var(--lime) 0 3px, transparent 3.5px);
}

/* Skill bars */
.meters { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.meter__label { display: flex; justify-content: space-between; font-weight: 600; font-size: var(--fs-sm); }
.meter__track {
  height: 8px;
  margin-top: 0.6rem;
  background: var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0;
  background: var(--lime);
  border-radius: 999px;
  transition: width 1.4s var(--ease-out);
}

/* --------------------------------------------------------------------------
   10. Parallax CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;          /* contain the media layer's stacking */
  display: grid;
  place-items: center;
  min-height: 503px;
  /* Own background, so a parallax-shifted media layer can never expose
     the page beneath it. */
  background: var(--ink);
  padding-block: var(--section-y);
  overflow: hidden;
  color: #fff;
  text-align: center;
}
/* The section paints its own dark background, so the media layer must sit
   ABOVE it (z-index 0 inside an isolated stacking context) rather than
   behind it. A negative z-index here escapes to the root stacking context
   and disappears underneath .cta-band's own background. */
.cta-band__media { position: absolute; inset: -22% 0; z-index: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: rgba(26,32,40,.72); }
.cta-band > .container { position: relative; z-index: 1; }
.cta-band__inner { max-width: 880px; }
.cta-band .lead { color: rgba(255,255,255,.82); margin-inline: auto; }
.cta-band .btn { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   11. Product cards
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .product-grid, .product-grid--3 { grid-template-columns: repeat(2, 1fr); } }
/* Stay two-up on phones - a single full-width tile per row makes the
   range feel endless. Only collapse on genuinely tiny screens. */
@media (max-width: 340px)  { .product-grid, .product-grid--3 { grid-template-columns: 1fr; } }

.product-card { display: flex; flex-direction: column; text-align: center; }
.product-card__media {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 27px;
  background: var(--bg);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease-out);
}
.product-card:hover .product-card__media img { transform: scale(1.07); }

/* Quick actions slide up from the bottom edge of the tile */
.product-card__actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.85rem;
  background: rgba(45, 52, 63, 0.94);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease-out);
}
.product-card:hover .product-card__actions,
.product-card:focus-within .product-card__actions { transform: translateY(0); }
.product-card__actions .btn { min-height: 40px; padding: 0.4rem 1rem; font-size: 11px; }

/* No hover on touch: the quick actions would never appear, leaving
   "Add to list" unreachable from the grid. Keep them where the design puts
   them - pinned over the foot of the image - but always open.
   Only "Add to list" survives: two tracked labels will not fit side by side
   in a 160px tile, and "Details" is redundant because both the image and the
   title already link there. */
@media (hover: none) {
  .product-card__actions {
    transform: translateY(0);
    padding: 0.6rem;
  }
  .product-card__actions .btn--dark { display: none; }
  .product-card__actions .btn {
    flex: 1;
    min-height: 44px;
    white-space: nowrap;
  }
}

.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 0.3rem 0.7rem;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stars { display: flex; justify-content: center; gap: 3px; margin-top: 1.25rem; color: var(--gold); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.product-card__title { margin-top: 0.75rem; font-size: var(--fs-h4); }
.product-card__title a:hover { color: var(--green); }
.product-card__price { margin-top: 0.2rem; font-size: var(--fs-body); color: var(--ink-80); }
.product-card__price del { color: var(--muted); margin-right: 0.4rem; }

.section-actions { display: flex; justify-content: center; margin-top: 3rem; }

/* --------------------------------------------------------------------------
   12. Testimonial
   -------------------------------------------------------------------------- */
.testimonial { position: relative; }
.testimonial__plate {
  padding: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 1rem + 3vw, 3.5rem);
  background: var(--ink);
  border-bottom: 5px solid var(--lime);
  color: var(--on-dark);
  text-align: center;
}
.testimonial__mark { width: 40px; height: 40px; margin: 0 auto 1.5rem; color: var(--lime); }
.testimonial__quote { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); max-width: 68ch; margin-inline: auto; }
.testimonial__person { margin-top: 1.5rem; text-align: center; }
.testimonial__avatar {
  width: 70px; height: 70px;
  margin: -35px auto 0;
  border-radius: 50%;
  border: 4px solid var(--bg);
  object-fit: cover;
  position: relative;
  z-index: 2;
}
.testimonial__name { margin-top: 0.75rem; font-weight: 700; }
.testimonial__role { font-size: var(--fs-sm); color: var(--muted); }

/* Slider mechanics — slides crossfade, driven by JS */
.testimonial__viewport { position: relative; }
.testimonial__slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity var(--dur-slow) var(--ease-soft);
}
.testimonial__slide.is-active { opacity: 1; visibility: visible; position: relative; }
.testimonial__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.testimonial__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-12);
  transition: background var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out);
}
.testimonial__dot.is-active { background: var(--green); transform: scale(1.3); }

/* --------------------------------------------------------------------------
   13. Gallery mosaic — proportions taken from the mockup
   -------------------------------------------------------------------------- */
.gallery-mosaic {
  display: grid;
  grid-template-columns: 689fr 491fr 740fr;
  grid-template-rows: 345fr 309fr;
  gap: 6px;
  margin-top: 3.5rem;
}
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
}
.gallery-item--tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), filter var(--dur) var(--ease-soft);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 0.25rem;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(26,32,40,.85), rgba(26,32,40,0) 60%);
  color: #fff;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-soft);
}
.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-visible .gallery-item__overlay { opacity: 1; }
/* Touch devices never hover, so these captions would stay invisible. */
@media (hover: none) {
  .gallery-item__overlay { opacity: 1; }
  .gallery-item__title { transform: none; }
}
.gallery-item__title { font-weight: 700; transform: translateY(8px); transition: transform var(--dur) var(--ease-out); }
.gallery-item:hover .gallery-item__title { transform: translateY(0); }

@media (max-width: 900px) {
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item { aspect-ratio: 4 / 3; }
  .gallery-item--tall { grid-row: span 1; }
}
@media (max-width: 340px) { .gallery-mosaic { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(20, 24, 30, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-soft), visibility var(--dur);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  object-fit: contain;
  transform: scale(.94);
  transition: transform var(--dur) var(--ease-out);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background var(--dur) var(--ease-soft);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--green); }
.lightbox__close { top: 1.5rem; right: 1.5rem; font-size: 1.5rem; }
.lightbox__nav--prev { left: 1.5rem; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 1.5rem; top: 50%; translate: 0 -50%; }
.lightbox__caption { position: absolute; bottom: 1.5rem; left: 50%; translate: -50% 0; color: rgba(255,255,255,.8); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
  margin-top: 3.5rem;
  align-items: stretch;
}
@media (max-width: 950px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--radius-card);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.price-card--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}
.price-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.price-card__name { font-size: var(--fs-h4); font-weight: 600; }
.price-card__save {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.price-card__amount {
  margin-top: 1.5rem;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1;
  color: var(--deep-green);
}
.price-card--featured .price-card__amount { color: var(--lime); }
.price-card__sub { margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--muted); }
.price-card--featured .price-card__sub { color: var(--on-dark-muted); }

.price-card__features { display: grid; gap: 0.9rem; margin-top: 2.5rem; }
.price-card__features li { display: flex; align-items: center; gap: 0.75rem; font-size: var(--fs-sm); }
.price-card__features svg { flex: none; width: 18px; height: 18px; color: var(--deep-green); }
.price-card--featured .price-card__features svg { color: var(--green-light); }
.price-card__features li.is-off { color: var(--muted); }
.price-card__features li.is-off svg { color: var(--muted); opacity: .6; }
.price-card--featured .price-card__features li.is-off { color: rgba(244,244,244,.45); }
.price-card .btn { margin-top: auto; margin-top: 2.5rem; }
.price-card--featured .btn--ghost { --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: var(--green); --btn-hover: var(--green-light); }

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 0.4rem; }
.field__label { font-size: var(--fs-sm); font-weight: 600; }
.input, .textarea, .select {
  width: 100%;
  min-height: 59px;
  padding: 0.95rem 1.25rem;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft);
}
.textarea { min-height: 200px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(131,165,77,.25);
}
.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid--2 { grid-template-columns: 1fr; } }

.field__error { font-size: var(--fs-sm); color: #d2523f; min-height: 1.2em; }
.section--dark .field__error { color: #ff9b8a; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #d2523f; }

.form-note { margin-top: 1rem; font-size: var(--fs-sm); color: var(--muted); }
.section--dark .form-note { color: var(--on-dark-muted); }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.25rem;
  border-left: 4px solid var(--lime);
  background: rgba(191,216,3,.12);
  font-size: var(--fs-sm);
}
.form-status[hidden] { display: none; }

/* Contact detail rows */
.contact-lines { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.contact-line { display: flex; align-items: center; gap: 1rem; }
.contact-line svg { flex: none; width: 24px; height: 24px; color: var(--green-light); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer__main { padding-block: clamp(3rem, 1.5rem + 4vw, 5.5rem); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 1rem + 2.5vw, 3.5rem);
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__title { font-size: var(--fs-h4); margin-bottom: 1.5rem; }
.site-footer__text { font-size: var(--fs-sm); color: var(--on-dark-muted); margin-top: 1.25rem; max-width: 34ch; }
.footer-links { display: grid; gap: 0.7rem; }
.footer-links a { position: relative; display: inline-block; padding-left: 1.6rem; font-size: var(--fs-sm); color: var(--on-dark-muted); transition: color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out); }
.footer-links a::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  background: radial-gradient(circle at center, var(--lime) 0 2.5px, transparent 3px);
}
.footer-links a:hover { color: #fff; transform: translateX(4px); }

.footer-contact dt { font-weight: 700; margin-top: 1.25rem; }
.footer-contact dt:first-child { margin-top: 0; }
.footer-contact dd { margin: 0.2rem 0 0; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.footer-contact a:hover { color: #fff; text-decoration: underline; }

.socials { display: flex; gap: 0.75rem; margin-top: 2rem; }
.socials a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  transition: background var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out);
}
.socials a:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

.site-footer__bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}
.site-footer__bar .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer__bar a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Compliance disclosure strip required by YL policy §5.6 */
.member-disclosure {
  padding-block: 1rem;
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
  text-align: center;
}
.member-disclosure strong { color: var(--lime); font-weight: 700; }

/* --------------------------------------------------------------------------
   17. Page header (internal pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 420px at 50% -10%, rgba(191,216,3,.14), transparent 70%),
    radial-gradient(700px 300px at 85% 120%, rgba(131,165,77,.18), transparent 70%);
}
.page-hero__inner { position: relative; padding-block: 3.5rem; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: .5; }

/* --------------------------------------------------------------------------
   18. Cart / checkout / account
   -------------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
@media (max-width: 950px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  padding: 0 0 1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--ink-12);
}
.cart-table td { padding: 1.25rem 0; border-bottom: 1px solid var(--ink-12); vertical-align: middle; }
.cart-table th:last-child, .cart-table td:last-child { text-align: right; }

.cart-line { display: flex; align-items: center; gap: 1rem; }
.cart-line__thumb { flex: none; width: 84px; height: 84px; object-fit: contain; background: var(--bg); border: 1px solid var(--ink-12); padding: 6px; }
.cart-line__name { font-weight: 600; }
.cart-line__meta { font-size: var(--fs-sm); color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink-12); }
.qty button { width: 38px; height: 38px; display: grid; place-items: center; transition: background var(--dur) var(--ease-soft); }
/* Coarse pointers need a 44px target, per the platform guidelines. */
@media (pointer: coarse) {
  .qty button { width: 44px; height: 44px; }
  .qty input  { height: 44px; }
  .cart-remove { padding: 0.5rem; font-size: 1.5rem; }
}
.qty button:hover { background: var(--bg); }
.qty input { width: 44px; height: 38px; border: 0; text-align: center; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input[type=number] { -moz-appearance: textfield; }

.cart-remove { color: var(--muted); font-size: 1.25rem; line-height: 1; transition: color var(--dur) var(--ease-soft); }
.cart-remove:hover { color: #d2523f; }

/* A three-column table cannot fit a phone: product names wrap to three lines,
   the stepper takes ~130px, and Total gets pushed off the edge entirely.
   Below 680px each row becomes a small stacked card instead - product across
   the top, quantity and total side by side underneath. */
@media (max-width: 680px) {
  .cart-table thead { display: none; }
  .cart-table,
  .cart-table tbody { display: block; width: 100%; }

  .cart-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.9rem 1rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--ink-12);
  }

  .cart-table td { display: block; padding: 0; border: 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
  .cart-table td:last-child { text-align: right; }

  /* Total and remove sit on one line rather than stacking. */
  .cart-table td:last-child strong { margin-right: 0.75rem; }
  .cart-table td:last-child br { display: none; }
}

.summary-card { padding: 2rem; background: var(--surface); border: 1px solid var(--ink-12); }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; font-size: var(--fs-sm); }
.summary-row--total { padding-top: 1.25rem; margin-top: 0.5rem; border-top: 1px solid var(--ink-12); font-size: var(--fs-h4); font-weight: 700; }
.summary-card .btn { margin-top: 1.5rem; }

.empty-state { display: grid; justify-items: center; gap: 1rem; padding-block: 4rem; text-align: center; }
.empty-state svg { width: 64px; height: 64px; color: var(--ink-12); }

/* Steps */
.steps { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.step { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); color: var(--muted); }
.step__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; font-size: var(--fs-xs); font-weight: 700; }
.step.is-active { color: var(--ink); font-weight: 600; }
.step.is-active .step__num { background: var(--green); border-color: var(--green); color: #fff; }
.step + .step::before { content: ""; width: 28px; height: 1px; background: var(--ink-12); }

/* Account */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
@media (max-width: 800px) { .account-layout { grid-template-columns: 1fr; } }
.account-nav { display: grid; gap: 0.25rem; }
.account-nav button {
  display: block;
  width: 100%;
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: var(--fs-sm);
  border-left: 3px solid transparent;
  transition: background var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft);
}
.account-nav button:hover { background: var(--surface); }
.account-nav button.is-active { background: var(--surface); border-left-color: var(--green); font-weight: 700; }
.account-panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   19. Blog / news cards
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 3.5rem; }
@media (max-width: 950px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; background: var(--surface); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem; flex: 1; }
.post-card__meta { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.post-card__title { font-size: var(--fs-h4); }
.post-card__excerpt { font-size: var(--fs-sm); color: var(--muted); }
.post-card .link-underline { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------------------
   20. Services
   -------------------------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 950px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 2.25rem;
  background: var(--surface);
  border-bottom: 4px solid transparent;
  transition: border-color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.service-card:hover { border-bottom-color: var(--lime); transform: translateY(-6px); box-shadow: var(--shadow-card); }
.service-card__num { font-size: var(--fs-h2); font-weight: 800; color: var(--ink-12); line-height: 1; }
.service-card__title { font-size: var(--fs-h3); }
.service-card__text { font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------------------------
   21. Filters / toolbar (products listing)
   -------------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  transition: background var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar__count { font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------------------------
   22. Single product
   -------------------------------------------------------------------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media { background: var(--bg); border: 1px solid var(--ink); padding: 2.5rem; }
.product-detail__media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-detail__price { font-size: var(--fs-h2); font-weight: 800; color: var(--deep-green); margin-top: 1rem; }
.product-detail__buy { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.product-detail__list { display: grid; gap: 0.6rem; margin-top: 2rem; }
.product-detail__list li { position: relative; padding-left: 1.6rem; font-size: var(--fs-sm); }
.product-detail__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

.accordion { margin-top: 2.5rem; border-top: 1px solid var(--ink-12); }
.accordion__item { border-bottom: 1px solid var(--ink-12); }
.accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.25rem 0;
  font-weight: 700; text-align: left;
}
.accordion__icon { flex: none; width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel { overflow: hidden; height: 0; transition: height var(--dur) var(--ease-out); }
.accordion__panel > div { padding-bottom: 1.5rem; font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------------------------
   23. Prose (legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 75ch; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 3rem; font-size: var(--fs-h3); }
.prose h3 { margin-top: 2rem; font-size: var(--fs-h4); }
.prose ul { display: grid; gap: 0.6rem; padding-left: 1.5rem; list-style: disc; }
.prose li { padding-left: 0.25rem; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose .meta { font-size: var(--fs-sm); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: 0.75rem; border: 1px solid var(--ink-12); text-align: left; }
.prose th { background: var(--surface); font-weight: 700; }

/* --------------------------------------------------------------------------
   24. Toast
   -------------------------------------------------------------------------- */
.toast-stack { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 250; display: grid; gap: 0.6rem; }
.toast {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--ink);
  border-left: 4px solid var(--lime);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lift);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out);
}
.toast.is-in { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   25. Scroll-reveal animation layer
   Elements opt in with [data-reveal]; JS adds .is-visible when they enter.
   Everything degrades to "already visible" if JS is off or motion is reduced.
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(var(--rv-x, 0), var(--rv-y, 28px), 0) scale(var(--rv-s, 1));
  transition:
    opacity var(--dur-slow) var(--ease-out) var(--rv-delay, 0ms),
    transform var(--dur-slow) var(--ease-out) var(--rv-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

[data-reveal="left"]  { --rv-x: -40px; --rv-y: 0; }
[data-reveal="right"] { --rv-x: 40px;  --rv-y: 0; }
[data-reveal="zoom"]  { --rv-y: 0; --rv-s: .92; }
[data-reveal="fade"]  { --rv-y: 0; }

/* Per-child stagger inside a group */
[data-reveal-group] > * { --rv-delay: calc(var(--i, 0) * 90ms); }

/* Counters */
.stat { display: grid; gap: 0.25rem; }
.stat__num { font-size: var(--fs-h1); font-weight: 800; line-height: 1; color: var(--lime); }
.stat__label { font-size: var(--fs-sm); color: var(--on-dark-muted); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* Page-load curtain */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 500ms var(--ease-soft), visibility 500ms;
}
.page-curtain.is-done { opacity: 0; visibility: hidden; }
.page-curtain__mark { font-size: 2rem; font-weight: 800; color: #fff; }
.page-curtain__mark span { color: var(--lime); }
.page-curtain__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--lime); transition: width 400ms var(--ease-soft); }

/* --------------------------------------------------------------------------
   26. Reduced motion — honour the user's OS setting
   -------------------------------------------------------------------------- */
@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__media img { animation: none; }
}

/* No-JS fallback: never leave content hidden */
.no-js [data-reveal] { opacity: 1; transform: none; }
.no-js .page-curtain { display: none; }
