/* ==========================================================================
   TundraLegs™ by Pupster — Landing Page Stylesheet
   --------------------------------------------------------------------------
   Warm cream canvas, bright gold accents, espresso-brown type, white rounded
   cards. Native font stacks only. Mobile-first (majority-mobile traffic).

   Every component is defined exactly once, in page order. Contextual
   variants (e.g. buttons on gold panels) live with the component they
   restyle and are marked "Context:".

   TABLE OF CONTENTS
     1.  Design tokens (+ responsive type scales)
     2.  Base & reset
     3.  Layout: container + section rhythm
     4.  Shared components (buttons, eyebrow, chips, icon buttons,
         unit toggle, zoom badge, image placeholders, utilities)
     5.  Announcement bar
     6.  Header / nav
     7.  Hero: gallery
     8.  Hero: buy box (rating, price, size picker, trust row)
     9.  Social-proof strip
     10. Problem section
     11. Solution panel (gold mega-panel + story layout)
     12. Features
     13. City / country split
     14. Tester story (media grid)
     15. Comparison table
     16. Offer / what's in the box
     17. Size guide (finder CTA, size rule, collapsible chart)
     18. FAQ accordion
     19. Reviews
     20. Final CTA band
     21. Footer
     22. Sticky mobile buy bar
     23. Size-finder modal
     24. Image lightbox
     25. Scroll reveal
     26. Grid overflow guards
     27. Reduced-motion preferences (consolidated)

   SHOPIFY HANDOFF NOTES
   - .size-pill supports :disabled / .is-oos for sold-out variants.
   - All state classes toggled by scripts.js: .is-active, .is-selected,
     .is-visible, .is-open, .is-armed, .is-focus, .is-oversize,
     .finder-open, .lightbox-open.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Canvas & surfaces */
  --color-bg:           #FFFFFF;   /* page background */
  --color-bg-soft:      #FBF1DA;   /* warm sunny ivory */
  --color-panel:        #FBEAC6;   /* warm honey (split cards) */
  --color-surface:      #FFFFFF;   /* white cards */
  --color-surface-tint: #FDF6E8;   /* off-white warm tint */

  /* Brand gold */
  --color-amber:        #F8B800;   /* bright gold */
  --color-amber-light:  #FFD24D;   /* light gold */
  --color-amber-deep:   #E0A200;   /* deeper gold — readable as text on white */
  --grad-amber:         linear-gradient(100deg, #ffc803 0%, #f8b800 55%, #fab205 100%);
  --grad-amber-soft:    linear-gradient(135deg, #FFF3C4 0%, #FFD86B 100%);
  /* Bright gold for the big feature panels (same energy as the CTA).
     Buttons/eyebrows inside these panels flip to dark ink — see "Context:"
     rules with each component. */
  --grad-panel:         linear-gradient(150deg, #FFCE1F 0%, #F8B800 58%, #F3A902 100%);

  /* Type colors */
  --color-ink:          #1A1712;   /* matte warm black — headings */
  --color-ink-soft:     #34302A;   /* dark warm gray — body */
  --color-ink-muted:    #857E72;   /* muted warm gray — captions */

  /* Accent & state colors */
  --color-cta:          #E8506A;   /* pink/red — sale accents, links */
  --color-success:      #59B85C;
  --color-danger:       #D64545;
  --color-focus-ring:   rgba(232, 80, 106, 0.35);

  /* Lines & shadows */
  --color-border:       #E7DEC9;
  --shadow-card:        0 6px 24px rgba(20, 18, 15, 0.10);
  --shadow-card-hover:  0 10px 32px rgba(20, 18, 15, 0.16);

  /* Typography — native stacks only */
  --font-display: "Avenir Next", "Segoe UI", "Trebuchet MS", system-ui,
                  -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale (tablet range; phone/desktop overrides below) */
  --text-xs:   clamp(0.72rem, 0.68rem + 0.20vw, 0.80rem);
  --text-sm:   clamp(0.84rem, 0.80rem + 0.25vw, 0.94rem);
  --text-base: clamp(0.98rem, 0.92rem + 0.30vw, 1.06rem);
  --text-md:   clamp(1.10rem, 1.02rem + 0.45vw, 1.25rem);
  --text-lg:   clamp(1.30rem, 1.16rem + 0.70vw, 1.60rem);
  --text-xl:   clamp(1.65rem, 1.40rem + 1.30vw, 2.30rem);
  --text-2xl:  clamp(2.00rem, 1.60rem + 2.10vw, 3.10rem);  /* hero headline */

  --leading-tight: 1.12;
  --leading-body:  1.48;

  /* Radii */
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(16px, 4vw, 40px);
  --tap-target: 44px;              /* minimum touch target */
  --bar-height: 42px;              /* announcement bar (anchor scroll offset) */
}

/* Phones (≤767px): whole type system up ~30% so copy reads comfortably. */
@media (max-width: 767px) {
  :root {
    --text-xs:   clamp(0.94rem, 0.88rem + 0.26vw, 1.04rem);
    --text-sm:   clamp(1.09rem, 1.04rem + 0.33vw, 1.22rem);
    --text-base: clamp(1.27rem, 1.20rem + 0.39vw, 1.38rem);
    --text-md:   clamp(1.43rem, 1.33rem + 0.59vw, 1.63rem);
    --text-lg:   clamp(1.69rem, 1.51rem + 0.91vw, 2.08rem);
    --text-xl:   clamp(2.15rem, 1.82rem + 1.69vw, 2.99rem);
    --text-2xl:  clamp(2.60rem, 2.08rem + 2.73vw, 4.03rem);
  }
}

/* Desktop (≥1024px): whole type system up ~40% — headings and body scale
   together since everything derives from these tokens. */
@media (min-width: 1024px) {
  :root {
    --text-xs:   1.12rem;   /* eyebrows, labels, captions */
    --text-sm:   1.32rem;   /* small body, meta */
    --text-base: 1.48rem;   /* body copy, buttons */
    --text-md:   1.75rem;   /* h4, subtitles */
    --text-lg:   2.24rem;   /* h3 */
    --text-xl:   3.22rem;   /* h2 section headings */
    --text-2xl:  4.34rem;   /* h1 hero headline */
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-height) + 12px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

p { margin: 0 0 var(--space-4); }

a { color: var(--color-cta); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible focus for keyboard users, subtle for touch */
:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   3. LAYOUT: CONTAINER + SECTION RHYTHM
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section         { padding-block: clamp(40px, 8vw, 88px); }
.section--tight  { padding-block: clamp(24px, 5vw, 48px); }
/* Flush one section edge at all widths (desktop section joins) */
.section--flush-top    { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
/* Alternate section surface (currently same white as the page — the gold
   panels carry the visual rhythm) */
.section--alt { background: var(--color-bg); }
/* Hero tucks close under the header */
.section--hero { padding-top: 5px; }
/* Gold rounded mega-panel (solution / 700-families stories) */
.section--panel {
  background: var(--grad-panel);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
}

/* Mobile section rhythm: every section gets one consistent top gap and a
   flush bottom, so the NEXT section's top gap is the single source of
   separation. Opt-outs below. NOTE: this block must come after the base
   .section rules — order matters for the .section--hero override. */
@media (max-width: 767px) {
  .section,
  .section--tight            { padding-top: var(--space-6); padding-bottom: 0; }
  .section--hero             { padding-top: 5px; }   /* tuck under the header */
  .section--mobile-flush-top { padding-top: 0; }     /* join to the section above */
  .section--mobile-gap-sm    { padding-top: 15px; }  /* smaller top gap (problem section) */
}

/* --------------------------------------------------------------------------
   4. SHARED COMPONENTS
   -------------------------------------------------------------------------- */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-target);
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  white-space: nowrap;              /* never let a button wrap into a blob */
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover  { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--grad-amber);
  color: var(--color-ink);          /* dark ink on gold */
  box-shadow: 0 8px 22px rgba(248, 184, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  width: 100%;                      /* mobile: full-width CTA */
}
.btn--primary:hover  { background: linear-gradient(100deg, #FFD01F 0%, #FBC10B 55%, #FFBB18 100%); }
.btn--primary:active { background: #E8A200; }
@media (min-width: 768px) { .btn--primary { width: auto; min-width: 280px; } }

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
}
.btn--secondary:hover { background: var(--color-ink); color: #fff; }

/* Micro-label under a CTA */
.btn__sub {
  display: block;
  margin-top: var(--space-2);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

/* ---- Section eyebrow (editorial kicker above every H2) ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: calc(var(--text-xs) * 2);   /* doubled — bold section kicker */
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber-deep);
  margin: 0 0 var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--grad-amber);
  border-radius: 2px;
}
.section-head .eyebrow::before { display: none; }   /* centered heads: no dash */
/* Context: on gold panels the gold eyebrow flips to ink for contrast */
.section--panel .eyebrow,
.offer .eyebrow { color: var(--color-ink); }
.section--panel .eyebrow::before,
.offer .eyebrow::before { background: var(--color-ink); }

/* ---- Centered section head ---- */
.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(24px, 5vw, 48px);
}

/* ---- Centered footnote line under a grid/section ---- */
.section-footnote {
  text-align: center;
  margin-top: var(--space-5);
}

/* ---- Chips (brand feature tags) ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.chip {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
/* Context: chips inside gold panels go solid white to read as crisp tags */
.section--panel .chip {
  background: #fff;
  border-color: rgba(20, 18, 15, 0.08);
}

/* ---- Circular icon button (gallery arrows) ---- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid rgba(20, 18, 15, 0.06);
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 18, 15, 0.16);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.icon-btn:hover { background: #fff; box-shadow: 0 6px 20px rgba(20, 18, 15, 0.22); }
.icon-btn svg { display: block; }

/* ---- cm/in unit toggle (size chart + finder) ---- */
.unit-toggle {
  display: inline-flex;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.unit-toggle button {
  min-height: var(--tap-target);
  padding: 8px 22px;
  border: none; background: transparent;
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--text-sm);
  color: var(--color-ink);
  cursor: pointer;
}
.unit-toggle button.is-active { background: var(--color-ink); color: #fff; }


/* ---- Text utility ---- */
.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   5. ANNOUNCEMENT BAR (sticky)
   -------------------------------------------------------------------------- */
.announcement-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 8px 14px;
  padding-left:  max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
  background: var(--grad-amber);
  color: var(--color-ink);
  font-family: var(--font-display);
}
.ann__flake {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  color: var(--color-ink);
  opacity: 0.9;
}
.ann__text { display: flex; flex-direction: column; line-height: 1.18; text-align: left; }
.ann__l1   { display: flex; align-items: center; gap: 8px; }
.ann__label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(0.82rem, 3.6vw, 0.98rem);
}
.ann__price {
  font-weight: 800;
  font-size: clamp(0.8rem, 3.5vw, 0.96rem);
  background: var(--color-ink);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}
.ann__l2 {
  font-weight: 600;
  font-size: clamp(0.68rem, 2.95vw, 0.8rem);
  color: rgba(20, 18, 15, 0.82);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   6. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;            /* mobile: right-aligned masthead */
  gap: var(--space-4);
  padding-top: 20px;
  padding-bottom: 0;
  /* break out of the container's side padding so the logo can run wide */
  margin-inline: calc(-1 * var(--container-pad));
  padding-inline: 10px;
}
.site-header .logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 7.8vw, 2.2rem);  /* fills mobile width on one line */
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  white-space: nowrap;
}
.logo__suffix {
  font-weight: 400;
  font-size: 0.8em;
  white-space: nowrap;
}
.site-header nav { display: none; }             /* mobile: nav collapses */
@media (min-width: 768px) {
  .site-header { justify-content: space-between; margin-inline: 0; padding-inline: 0; }
  .site-header nav { display: flex; gap: var(--space-5); }
  .site-header nav a { color: var(--color-ink); font-weight: 600; }
}

/* --------------------------------------------------------------------------
   7. HERO: GALLERY (peeking swipe carousel + synced thumbnails)
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;        /* mobile: stacked */
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); }
}

.gallery__stage { position: relative; }

.gallery__track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__slide {
  flex: 0 0 90%;                     /* slightly narrow → next slide peeks in */
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 1024px) {
  .gallery__slide { flex-basis: 92%; }
}

/* Stage arrows (overlay the image) */
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px; height: 46px;
}
.gallery__arrow:hover  { transform: translateY(-50%) scale(1.07); }
.gallery__arrow:active { transform: translateY(-50%) scale(0.94); }
.gallery__arrow--prev  { left: 12px; }
.gallery__arrow--next  { right: calc(10% + 12px); }   /* over the image, not the peek gap */
@media (min-width: 1024px) { .gallery__arrow--next { right: calc(8% + 12px); } }
.gallery__arrow[disabled] { opacity: 0; pointer-events: none; }

/* Thumbnail strip with end arrows */
.gallery__thumbs-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.gallery__thumb-arrow {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  z-index: 2;
}
.gallery__thumb-arrow:hover  { transform: scale(1.08); }
.gallery__thumb-arrow:active { transform: scale(0.94); }

.gallery__thumbs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-1);
  /* Soft fade-outs at both edges signal "there's more to scroll" */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--color-surface);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.gallery__thumb.is-active { border-color: var(--color-amber-deep); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .gallery__thumb { flex-basis: 76px; width: 76px; height: 76px; }
  .gallery__thumb-arrow { height: 76px; }
}

/* --------------------------------------------------------------------------
   8. HERO: BUY BOX
   -------------------------------------------------------------------------- */
.buybox {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 4vw, 36px);
}
.buybox .btn--primary { width: 100%; }   /* full-width CTA at every breakpoint */
.buybox__title    { margin-bottom: var(--space-3); line-height: 1.04; }
.buybox__subtitle {
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 var(--space-4);
  max-width: 46ch;
}

/* ---- Star rating (number-led; honest partial 5th star via --rating-pct,
   set as an inline custom property on the element) ---- */
.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0 0 var(--space-4);
  text-decoration: none;
  color: var(--color-ink-soft);
  transition: opacity .15s ease;
}
.rating:hover { opacity: 0.85; }
.rating__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-ink);
  line-height: 1;
  letter-spacing: -0.01em;
}
.rating__stars {
  position: relative;
  display: inline-block;
  font-size: var(--text-base);
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}
.rating__stars-base { color: var(--color-border); }
.rating__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--rating-pct, 100%);
  overflow: hidden;
  color: var(--color-amber);
}
.rating__count {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  line-height: 1;
}
.rating__count::before {
  content: "·";
  margin-right: var(--space-1);
  color: var(--color-border);
}
.rating:hover .rating__count {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--color-border);
}
.rating:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* ---- Price block ---- */
.price {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-4);
}
.price__was {
  color: var(--color-ink-muted);
  text-decoration: line-through;
  font-size: var(--text-md);
}
.price__now {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-ink);
}
/* Savings tag — flat pink info chip, deliberately NOT a gold pill (gold pills
   are buttons on this page) */
.price__save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-cta);
  background: rgba(232, 80, 106, 0.12);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.price__save::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--color-cta);
  transform: rotate(45deg);
}
.price__deadline {
  width: 100%;
  font-size: var(--text-xs);
  color: var(--color-cta);
  font-weight: 600;
}

/* ---- Size picker (pills) ---- */
.size-picker { margin-block: var(--space-4); border-radius: var(--radius-md); transition: box-shadow 0.3s ease; }
.size-picker__label-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-2);
}
.size-picker__label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  font-size: var(--text-sm);
}
/* "Find my size" pill — same gold as the primary CTA */
.size-picker__find {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--color-ink);
  background: var(--grad-amber);
  border: 1.5px solid var(--color-amber-deep);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(224, 162, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.size-picker__find::after {
  content: "›";
  font-size: 1.25em;
  line-height: 0;
  margin-left: 1px;
  transition: transform 0.18s ease;
}
.size-picker__find:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(224, 162, 0, 0.3);
}
.size-picker__find:hover::after { transform: translateX(3px); }
.size-picker__find:active { transform: translateY(0); }

.size-picker__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.size-pill {
  min-width: var(--tap-target);
  min-height: var(--tap-target);
  padding: 10px 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.size-pill:hover  { background: var(--color-bg-soft); }
.size-pill:active { transform: scale(0.96); }
.size-pill.is-selected {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
/* SHOPIFY HOOK: apply :disabled or .is-oos to sold-out variants */
.size-pill:disabled,
.size-pill.is-oos {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.size-picker__helper {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  min-height: 1.4em;                 /* reserve space so layout doesn't jump */
}
.size-picker__error {
  color: var(--color-danger);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-1);
}

/* ---- Trust badge row under the CTA ---- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* mobile: 2×2 */
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-soft);
}
@media (min-width: 480px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-row__item {
  display: flex; align-items: center; gap: var(--space-1);
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   9. SOCIAL-PROOF STRIP (clean light band — gold only as accents)
   -------------------------------------------------------------------------- */
.proof-strip {
  padding-block: var(--space-5);
  background: var(--color-surface);
  border-top: 2px solid var(--color-amber);
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 767px) {
  .proof-strip { margin-top: var(--space-5); }   /* space above the gold rule */
}
.proof-strip__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .proof-strip__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.proof-strip__rating {
  display: flex; align-items: center; gap: var(--space-3);
  flex: 0 0 auto;
}
.proof-strip__score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--color-ink);
}
.proof-strip__rating-col { display: flex; flex-direction: column; line-height: 1.1; }
.proof-strip__rating .proof-strip__stars {
  color: var(--color-amber);
  letter-spacing: 2px;
  font-size: var(--text-md);
}
.proof-strip__count {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-muted);
}
.proof-strip__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-6);
}
.proof-strip__stats .stat {
  display: flex; flex-direction: column;
  align-items: center;
  position: relative;
  padding-inline: var(--space-4);
  min-width: 74px;
}
@media (min-width: 768px) {
  .proof-strip__stats .stat + .stat::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    height: 30px; width: 1px;
    background: var(--color-border);
  }
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-md);
  color: var(--color-ink);
  line-height: 1.1;
}
.stat__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-muted);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   10. PROBLEM SECTION
   -------------------------------------------------------------------------- */
/* Centered hero image above the problem grid */
.problem-hero {
  max-width: 680px;
  margin: 0 auto 32px;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;        /* mobile: stacked */
  gap: var(--space-4);
}
@media (min-width: 768px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 0;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(.22,.61,.36,1), box-shadow 0.28s ease;
  will-change: transform;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.problem-card::before {                 /* thin gold accent along the top edge */
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-amber);
}
/* Image slot — shows placeholder chrome until a real <img> is dropped in */
.problem-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  text-align: center;
  color: var(--color-ink-muted);
  background: radial-gradient(120% 100% at 50% 0%, var(--color-surface-tint) 0%, #F1E6CB 100%);
  border-bottom: 1px solid var(--color-border);
}
/* A dropped-in photo fills the slot and hides the placeholder chrome */
.problem-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.problem-card__body { padding: var(--space-5); }
.problem-card__body h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }

/* --------------------------------------------------------------------------
   11. SOLUTION PANEL (story layout inside the gold mega-panel)
   -------------------------------------------------------------------------- */
.story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }

/* --------------------------------------------------------------------------
   12. FEATURES (alternating media/copy rows)
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;        /* mobile: image above text */
  gap: var(--space-5);
  align-items: center;
  padding-block: clamp(24px, 5vw, 56px);
}
@media (max-width: 767px) {
  /* Mobile: features stack tight — no outer padding, smaller image↔text gap.
     Copy renders FIRST, image second, so each image sits under its own copy
     (image-first stacking made every image look like it belonged to the
     previous feature). */
  .feature { padding-block: 0; gap: var(--space-3); }
  .feature .feature__media { order: 2; }
  .feature + .feature { margin-top: var(--space-6); }   /* clear feature boundaries */
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .feature--flip .feature__media { order: 2; }  /* alternate sides */
}
.feature__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  transition: transform 0.28s cubic-bezier(.22,.61,.36,1), box-shadow 0.28s ease;
  will-change: transform;
}
.feature__media:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-amber-deep);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-top: 20px;
  margin-bottom: var(--space-2);
}
.feature__kicker::before {
  content: ""; width: 20px; height: 2px;
  background: var(--grad-amber); border-radius: 2px;
}

/* --------------------------------------------------------------------------
   13. CITY / COUNTRY SPLIT
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.split__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex; align-items: flex-end;
  background: var(--color-panel);
  transition: transform 0.28s cubic-bezier(.22,.61,.36,1), box-shadow 0.28s ease;
  will-change: transform;
}
.split__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.split__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__card img { transition: transform 0.5s cubic-bezier(.22,.61,.36,1); }
.split__card:hover img { transform: scale(1.04); }
.split__copy {
  position: relative;
  width: 100%;
  padding: var(--space-5);
  color: #fff;
  background: linear-gradient(transparent, rgba(20, 18, 15, 0.82));
}
.split__copy h3 { color: #fff; }

/* --------------------------------------------------------------------------
   14. TESTER STORY (media grid inside the gold panel)
   -------------------------------------------------------------------------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* mobile: 2-up */
  gap: var(--space-2);
}
@media (min-width: 768px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); } }
.media-grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-md);
}
.media-grid__caption {
  margin-top: var(--space-2);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   15. COMPARISON TABLE (mobile: horizontal scroll, sticky first column)
   NOTE: rule order below is cascade-sensitive (generic .col-us, then the
   more specific thead/td refinements) — keep it.
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
}
.compare {
  width: 100%;
  min-width: 640px;                  /* forces scroll instead of squish on phones */
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.compare th, .compare td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-display);
  color: var(--color-ink);
  background: var(--color-bg-soft);
}
/* Sticky row-label column while the table scrolls */
.compare td:first-child {
  position: sticky;
  left: 0;
  background: var(--color-surface);
  font-weight: 700;
  color: var(--color-ink);
  box-shadow: 2px 0 0 var(--color-border);
}
/* TundraLegs column highlight (generic base for th + td) */
.compare .col-us {
  background: #FBF4DE;
  font-weight: 700;
  color: var(--color-ink);
}
/* Raised, badged "us" header cell */
.compare thead th.col-us {
  position: relative;
  background: var(--grad-amber);
  color: var(--color-ink);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  padding-top: 26px;
  text-align: center;
}
.col-us__tag {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  background: rgba(255,255,255,0.6);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.compare td.col-us {
  background: #FBF4DE;
  box-shadow: inset 1px 0 0 var(--color-amber-light),
              inset -1px 0 0 var(--color-amber-light);
  text-align: left;
}
.compare tbody td.col-us::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 800;
  margin-right: 7px;
}
.compare tbody tr:last-child td.col-us {
  box-shadow: inset 1px 0 0 var(--color-amber-light),
              inset -1px 0 0 var(--color-amber-light),
              inset 0 -2px 0 var(--color-amber-light);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
/* Mute competitor columns so ours leads the eye */
.compare tbody td:nth-child(3),
.compare tbody td:nth-child(4) { color: var(--color-ink-muted); }
/* Zebra striping on non-highlighted cells (compare + size tables) */
.compare tbody tr:nth-child(even) td:not(.col-us) { background: #FBF7ED; }

/* --------------------------------------------------------------------------
   16. OFFER / WHAT'S IN THE BOX (gold panel)
   -------------------------------------------------------------------------- */
.offer {
  background: var(--grad-panel);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) { .offer { grid-template-columns: 1fr 1fr; } }
.offer__media {
  width: 100%;
  max-width: 480px;   /* caps on desktop; width:100% keeps it inside the panel on mobile */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.value-stack { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.value-stack li {
  display: flex; gap: var(--space-2); align-items: flex-start;
  padding-block: var(--space-2);
  font-weight: 600;
  color: var(--color-ink);
}
.value-stack li::before { content: "✔"; color: var(--color-success); font-weight: 800; }

/* Context: components sitting on this bright-gold panel flip for contrast */
.offer .btn--primary {
  background: var(--color-ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 18, 15, 0.30), inset 0 1px 0 rgba(255,255,255,0.08);
}
.offer .btn--primary:hover  { background: #0f0d0a; }
.offer .btn--primary:active { background: #000; }
.offer .btn__sub { color: rgba(20, 18, 15, 0.78); }
.offer .price__save {
  background: #fff;
  color: var(--color-cta);
  box-shadow: 0 3px 10px rgba(20, 18, 15, 0.14);
}
.offer .price__was { color: rgba(20, 18, 15, 0.55); }

/* --------------------------------------------------------------------------
   17. SIZE GUIDE
   -------------------------------------------------------------------------- */

/* ---- Finder hero card (gold panel with CTA into the modal) ---- */
.finder-cta {
  background: var(--grad-panel);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 40px);
  margin-bottom: clamp(32px, 6vw, 56px);
}
.finder-cta__body h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.finder-cta__points {
  list-style: none; margin: 0 0 var(--space-5); padding: 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.finder-cta__points li {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-weight: 600; color: var(--color-ink);
  font-size: var(--text-sm);
}
.finder-cta__points li::before {
  content: "✓"; color: var(--color-success); font-weight: 800; flex: 0 0 auto;
}
/* Context: dark ink button on the gold panel */
.finder-cta .btn--primary {
  width: 100%;
  background: var(--color-ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 18, 15, 0.30), inset 0 1px 0 rgba(255,255,255,0.08);
}
@media (min-width: 480px) { .finder-cta .btn--primary { width: auto; min-width: 260px; } }
.finder-cta .btn--primary:hover  { background: #0f0d0a; }
.finder-cta .btn--primary:active { background: #000; }
.finder-cta .btn__sub { color: rgba(20, 18, 15, 0.78); }

/* ---- Highlighted sizing rule ---- */
.size-rule {
  background: var(--grad-amber-soft);
  border-left: 4px solid var(--color-amber-deep);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  color: var(--color-ink);
  margin-block: var(--space-4);
}

/* ---- Collapsible full size chart ---- */
.size-chart-ref {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.size-chart-ref > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  min-height: var(--tap-target);
  -webkit-tap-highlight-color: transparent;
}
.size-chart-ref > summary::-webkit-details-marker { display: none; }
.size-chart-ref__label { font-family: var(--font-display); font-weight: 800; color: var(--color-ink); }
.size-chart-ref__hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); font-weight: 600; color: var(--color-amber-deep);
}
.size-chart-ref__hint::after {
  content: "＋"; font-size: 1.1em; transition: transform 0.2s ease;
}
.size-chart-ref[open] .size-chart-ref__hint::after { content: "－"; }
.size-chart-ref__body {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--color-border);
}
.size-chart-ref__body .unit-toggle { margin-top: var(--space-5); }

/* --------------------------------------------------------------------------
   18. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(.22,.61,.36,1), box-shadow 0.28s ease;
  will-change: transform;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  min-height: var(--tap-target);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4em;
  color: var(--color-amber-deep);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 var(--space-5) var(--space-4); }

/* --------------------------------------------------------------------------
   19. REVIEWS
   -------------------------------------------------------------------------- */
.reviews-head {
  display: flex; flex-direction: column; gap: var(--space-3);
  align-items: center; text-align: center;
  margin-bottom: var(--space-5);
}
.reviews-head__rating {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px)  { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
  transition: transform 0.28s cubic-bezier(.22,.61,.36,1), box-shadow 0.28s ease;
  will-change: transform;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.review-card__stars { color: var(--color-amber); letter-spacing: 2px; }
.review-card__title { font-weight: 800; color: var(--color-ink); }
.review-card__meta {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}
.review-card__tag {
  display: inline-block;
  background: var(--color-bg-soft);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   20. FINAL CTA BAND
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
}
.final-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final-cta::after {                     /* darkening overlay for legibility */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.35) 0%, rgba(20,18,15,0.62) 100%);
}
.final-cta__copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  color: #fff;
  background: rgba(20, 18, 15, 0.42);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 5vw, 40px);
  backdrop-filter: blur(2px);
  box-shadow: 0 20px 50px rgba(20,18,15,0.35);
}
.final-cta__copy h2 { color: #fff; }
.final-cta .btn__sub { color: #FBEDD8; }   /* readable on the dark overlay */

/* --------------------------------------------------------------------------
   21. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: #EAD9BD;
  padding-block: var(--space-7);
  margin-top: var(--space-8);
}
.site-footer a { color: #fff; }
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-md);
  color: #fff;
  margin-bottom: var(--space-4);
}
.site-footer__links {
  display: flex; flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.site-footer__legal { font-size: var(--text-xs); opacity: 0.7; }

/* --------------------------------------------------------------------------
   22. STICKY MOBILE BUY BAR (bottom, hidden ≥1024px)
   -------------------------------------------------------------------------- */
.mobile-buy-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  box-shadow: 0 -8px 26px rgba(20, 18, 15, 0.16);
  transition: transform 0.42s cubic-bezier(.22,.61,.36,1), opacity 0.32s ease;
}
/* JS "arms" the bar so it hides, then slides up on scroll; without JS it
   simply stays visible (no .is-armed class). */
.mobile-buy-bar.is-armed {
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}
.mobile-buy-bar.is-armed.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.mbb__info {
  display: flex; flex-direction: column;
  line-height: 1.05;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;                 /* hard stop against price-row spill */
}
.mbb__tag {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  color: var(--color-amber-deep);
  margin-bottom: 3px;
  white-space: nowrap;
}
.mbb__prices { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.mobile-buy-bar .price__now { font-size: 1.5rem; line-height: 1; }   /* the hook */
.mobile-buy-bar .price__was { font-size: 0.85rem; }
.mbb__save {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--color-amber-deep);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.mobile-buy-bar .btn--primary {
  width: auto;
  flex: 0 0 auto;                   /* size to its text, don't get squeezed */
  font-size: 1.1rem;
  padding: 15px 26px;
  box-shadow: 0 8px 22px rgba(248, 184, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
/* Progressively trim non-essential price bits before they collide with the
   button (the price row is nowrap — what doesn't fit must drop) */
@media (max-width: 539px) { .mbb__save { display: none; } }
@media (max-width: 419px) { .mobile-buy-bar .price__was { display: none; } }
@media (max-width: 359px) { .mbb__tag { display: none; } }
@media (min-width: 1024px) { .mobile-buy-bar { display: none; } }
/* Reserve room for the fixed bar */
body { padding-bottom: 84px; }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* --------------------------------------------------------------------------
   23. SIZE-FINDER MODAL
   -------------------------------------------------------------------------- */
.finder-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(10px, 3vw, 32px);
  background: rgba(20, 18, 15, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.finder-overlay.is-open { opacity: 1; visibility: visible; }
body.finder-open { overflow: hidden; }

.finder-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: min(92vh, 900px);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(20, 18, 15, 0.45);
  transform: translateY(20px) scale(0.965);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(.22,.61,.36,1), opacity 0.28s ease;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.finder-overlay.is-open .finder-modal { transform: none; opacity: 1; }

.finder-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.9);
  color: var(--color-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}
.finder-modal__close:hover { background: var(--color-bg-soft); transform: rotate(90deg); }

.finder-modal__scroll {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: clamp(22px, 4vw, 36px);
}

.finder-modal__head { text-align: center; margin-bottom: var(--space-5); padding-right: 32px; padding-left: 32px; }
.finder-modal__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs); font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-amber-deep);
  margin-bottom: var(--space-2);
}
.finder-modal__head h2 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.finder-modal__head p  { margin: 0; font-size: var(--text-sm); color: var(--color-ink-muted); }

/* ---- Method tabs (By breed / Measure) on a gold track ---- */
.finder-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
  background: var(--grad-amber);
  border: 1px solid var(--color-amber-deep);
  border-radius: var(--radius-md);
  padding: 5px;
  margin-bottom: var(--space-5);
}
.finder-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 8px;
  border: none; background: transparent; cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--color-ink-soft);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.finder-tab__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm); color: inherit; }
.finder-tab:not(.is-active) .finder-tab__sub { color: #fff; }   /* readable on gold */
.finder-tab__sub { font-size: var(--text-xs); }
.finder-tab.is-active {
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
}
.finder-tab.is-active .finder-tab__sub { color: var(--color-amber-deep); }

/* ---- Unit row ---- */
.finder-panel__unitrow {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-4);
}
.finder-panel__unitlabel { font-weight: 700; font-size: var(--text-sm); color: var(--color-ink); }
.finder-panel__unitrow .unit-toggle { margin: 0; }
.finder-panel__unitrow .unit-toggle button { padding: 6px 16px; min-height: 36px; }

/* ---- Measurement fields ---- */
.finder-fields { display: flex; flex-direction: column; gap: var(--space-4); }
.finder-field { margin-bottom: var(--space-4); }
.finder-field__top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-2);
}
.finder-field__top label { font-family: var(--font-display); font-weight: 800; color: var(--color-ink); font-size: var(--text-base); }
.finder-field__req { font-size: var(--text-xs); font-weight: 800; color: var(--color-cta); text-transform: uppercase; letter-spacing: 0.04em; }
.finder-field.is-focus label { color: var(--color-amber-deep); }

.finder-field__inputwrap { position: relative; display: flex; align-items: center; }
.finder-field__inputwrap input {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-ink);
  padding: 12px 52px 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.finder-field__inputwrap input:focus {
  outline: none;
  border-color: var(--color-amber-deep);
  background: var(--color-surface);
  box-shadow: 0 0 0 4px rgba(224, 162, 0, 0.16);
}
.finder-field__unit {
  position: absolute; right: 16px;
  font-weight: 700; font-size: var(--text-sm); color: var(--color-ink-muted);
  pointer-events: none;
}
.finder-field__hint { margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--color-ink-muted); }

.finder-panel__note { margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--color-ink-soft); }
.finder-linkbtn {
  border: none; background: none; padding: 0; cursor: pointer;
  color: var(--color-cta); font-weight: 700; font-size: inherit; font-family: inherit;
  text-decoration: underline;
}

/* ---- Big clickable measurement diagram ---- */
.finder-diagram {
  display: block; width: 100%; padding: 0; border: none; background: none;
  position: relative; cursor: zoom-in;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-2);
  -webkit-tap-highlight-color: transparent;
}
/* The measurement diagram image */
.finder-diagram img {
  width: 100%;
  border-radius: var(--radius-lg);
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1);
}
.finder-diagram:hover img { transform: scale(1.02); }
.finder-diagram__zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20,18,15,0.68); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
  padding: 6px 12px; border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* ---- Breed search combobox ---- */
.breed-search { position: relative; display: flex; align-items: center; }
.breed-search__icon { position: absolute; left: 16px; color: var(--color-ink-muted); pointer-events: none; }
.breed-search input {
  width: 100%;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  color: var(--color-ink);
  padding: 14px 16px 14px 46px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.breed-search input:focus {
  outline: none; border-color: var(--color-amber-deep); background: var(--color-surface);
  box-shadow: 0 0 0 4px rgba(224,162,0,0.16);
}
.breed-list {
  list-style: none; margin: var(--space-2) 0 0; padding: 4px;
  max-height: 280px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface);
}
.breed-list__row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  width: 100%; text-align: left;
  padding: 12px 14px; border: none; background: none; cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm); color: var(--color-ink);
  -webkit-tap-highlight-color: transparent;
}
.breed-list__row:hover { background: var(--color-bg-soft); }
.breed-list__name { font-weight: 600; }
.breed-list__size {
  flex: 0 0 auto;
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-xs);
  color: var(--color-ink);
  background: var(--grad-amber);
  border: 1px solid var(--color-amber-deep);
  padding: 3px 11px; border-radius: var(--radius-pill);
}
.breed-list__empty { padding: 18px 14px; text-align: center; color: var(--color-ink-muted); font-size: var(--text-sm); }

/* ---- Result card ---- */
.finder-result {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.finder-result__head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: var(--space-3); }
.finder-result__label { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ink-soft); }
.finder-result__value {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  color: var(--color-ink);
}
.finder-result__why    { margin: 0 0 var(--space-2); font-size: var(--text-sm); color: var(--color-ink-soft); }
.finder-result__breeds { margin: 0 0 var(--space-3); font-size: var(--text-xs); color: var(--color-ink-muted); }
.finder-result__rule   { margin: 0 0 var(--space-4); font-size: var(--text-xs); font-weight: 700; color: var(--color-ink); }
.finder-result .btn--primary { width: 100%; }
.finder-result.is-oversize { background: var(--color-surface-tint); border-color: var(--color-border); }

/* Pop-in when the result appears */
.finder-result[data-animate="in"] { animation: finderPop 0.34s cubic-bezier(.22,.61,.36,1); }
@keyframes finderPop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   24. IMAGE LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 260;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 5vw, 56px);
  background: rgba(20,18,15,0.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
body.lightbox-open { overflow: hidden; }
.lightbox__fig {
  margin: 0; max-width: 900px; width: 100%;
  transform: scale(0.95); transition: transform 0.28s cubic-bezier(.22,.61,.36,1);
}
.lightbox.is-open .lightbox__fig { transform: none; }
/* Frame the zoomed diagram; the image inside letterboxes cleanly within it */
.lightbox__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}
.lightbox__frame img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-md);
}
.lightbox__cap {
  margin: var(--space-4) auto 0; text-align: center;
  color: #F4ECD7; font-size: var(--text-base); font-weight: 600; max-width: 640px;
}
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lightbox__close:hover { background: rgba(255,255,255,0.26); transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   25. SCROLL REVEAL (progressive enhancement — .reveal is added by JS, so
   users without JS always see content at full opacity)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   26. GRID OVERFLOW GUARDS
   Grid/flex children default to min-width:auto and refuse to shrink below
   content width (the scrollable thumb strip triggers this on phones).
   -------------------------------------------------------------------------- */
.hero > *, .story > *, .offer > *, .split > *, .feature > *,
.gallery, .buybox { min-width: 0; }

/* --------------------------------------------------------------------------
   27. REDUCED-MOTION PREFERENCES (consolidated)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mobile-buy-bar { transition: opacity 0.2s ease; }
  .mobile-buy-bar.is-armed { transform: none; }
  .finder-overlay, .finder-modal { transition: none; }
  .finder-modal { transform: none; }
  .finder-result[data-animate="in"] { animation: none; }
  .finder-modal__close:hover { transform: none; }
  .lightbox, .lightbox__fig { transition: none; }
  .lightbox__fig { transform: none; }
  .lightbox__close:hover { transform: none; }
}
