/* ==========================================================================
   B3TTER — styles
   System: _reference/design-system-apple.md, corrected in DESIGN.md §1.
   Light theme. Zero shadows. Rhythm from alternating #ffffff / #f5f5f7 bands.
   ========================================================================== */

:root {
  /* ---- colour ---- */
  --color-primary-ink:  #1d1d1f;
  --color-mid-gray:     #707070;
  --color-deep-gray:    #474747;
  --color-hairline:     #d6d6d6;
  --color-canvas:       #f5f5f7;
  --color-paper:        #ffffff;
  --color-cool-wash:    #e8e8ed;
  --color-faded-surface:#fafafc;
  --color-quiet-dot:    #777779;
  --color-electric-blue:#0071e3;
  --color-link-blue:    #0066cc;
  --color-ember:        #b64400;

  /* Finish swatches — the only chroma in the build, and it belongs to the product.
     These are SAMPLED FROM THE REAL PRODUCT RENDERS, not the placeholder swatches
     in the source system: the actual range is six colours, not seven, and the
     system's own rule is that colour comes from the product imagery itself.
     (Source-system names kept below for reference.) */
  --finish-white:    #ececec;
  --finish-babyblue: #b5d1e6;
  --finish-citrus:   #fccc2c;   /* a true yellow — the system's placeholder was #dddc8c */
  --finish-orange:   #f88614;
  --finish-teal:     #18667c;
  --finish-smoke:    #545456;

  /* tinted grounds for the colour tiles — a wash of each finish, so the bottle
     never sinks into a ground of its own value */
  --ground-citrus:   #fdf3d4;
  --ground-teal:     #dceaee;
  --ground-orange:   #fdeada;

  --gradient-primary-ink: linear-gradient(184deg, #1d1d1f 20%, #0000f9 76%, #252525 95%);
  /* DESIGN.md §1.1 — source had #5a7e2 (5 digits, invalid, whole rule dropped) */
  --gradient-citrus:      linear-gradient(184deg, #1d1d1f 0%, #dfe74f 33%, #5a7e22 100%);

  /* ---- type ----
     SF Pro is not licensed for the web off Apple platforms and Inter is not
     available locally, so we use the system's own stack: real SF Pro on Apple
     hardware, Segoe UI / Roboto elsewhere. No network requests. */
  --font-display: 'SF Pro Display', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-text:    'SF Pro Text', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* fluid scale — holds the specified sizes at >=1440px, scales down below.
     The source system is desktop-only; see DESIGN.md §1. */
  --text-display:    clamp(44px, 2.2rem + 4.4vw, 96px);
  --text-heading-lg: clamp(38px, 2rem + 3.4vw, 80px);
  --text-heading:    clamp(32px, 1.7rem + 2.2vw, 56px);
  --text-heading-sm: clamp(28px, 1.5rem + 1.2vw, 40px);
  --text-subheading: clamp(24px, 1.3rem + 0.8vw, 32px);
  --text-body-lg:    clamp(21px, 1.2rem + 0.5vw, 28px);
  --text-body:       clamp(18px, 1.05rem + 0.3vw, 21px);
  --text-body-sm:    17px;
  --text-caption:    14px;
  --text-micro:      12px;

  /* line-heights as RATIOS — source shipped px values without units, which as
     unitless CSS would mean 16x/25x/100x the font size. DESIGN.md §1.3 */
  --leading-display: 1.042;
  --leading-heading-lg: 1.05;
  --leading-heading: 1.071;
  --leading-heading-sm: 1.2;
  --leading-subheading: 1.125;
  --leading-body-lg: 1.143;
  --leading-body: 1.381;
  --leading-body-sm: 1.471;
  --leading-caption: 1.286;
  --leading-micro: 1.333;

  --tracking-display: -1.44px;
  --tracking-heading-lg: -1.2px;
  --tracking-heading: -0.28px;
  --tracking-subheading: 0.128px;
  --tracking-body-lg: 0.196px;
  --tracking-body: 0.231px;
  --tracking-body-sm: -0.022em;
  --tracking-caption: -0.224px;
  --tracking-micro: -0.12px;

  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  /* ---- space + shape ---- */
  --spacing-4: 4px;   --spacing-8: 8px;   --spacing-12: 12px; --spacing-16: 16px;
  --spacing-20: 20px; --spacing-24: 24px; --spacing-28: 28px; --spacing-32: 32px;
  --spacing-40: 40px; --spacing-44: 44px; --spacing-48: 48px; --spacing-52: 52px;
  --spacing-76: 76px; --spacing-80: 80px; --spacing-120: 120px; --spacing-144: 144px;

  --page-max-width: 1200px;
  /* DESIGN.md §1.2 — source had "100-120px", not a valid length */
  --section-gap: clamp(72px, 8vw, 120px);
  --card-padding: 28px;
  --element-gap: 10px;

  --radius-cards: 28px;
  --radius-links: 10px;
  --radius-badges: 36px;
  --radius-buttons: 980px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-primary-ink);
  font-family: var(--font-text);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-sm);
  letter-spacing: var(--tracking-body-sm);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "numr";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--color-electric-blue);
  outline-offset: 4px;
  border-radius: var(--radius-links);
}

.wrap {
  width: min(var(--page-max-width), 100% - 48px);
  margin-inline: auto;
}
@media (max-width: 600px) { .wrap { width: min(var(--page-max-width), 100% - 40px); } }

.wrap--narrow { max-width: 560px; }

/* skip link — keyboard users land here first */
.skip {
  position: absolute; left: 50%; top: 8px; transform: translate(-50%, -200%);
  z-index: 100; background: var(--color-primary-ink); color: var(--color-paper);
  padding: 12px 20px; border-radius: var(--radius-buttons);
  font-size: var(--text-caption); transition: transform .2s var(--ease-out);
}
.skip:focus-visible { transform: translate(-50%, 0); }

/* ---------- bands: the only separator in the system ---------- */
.band { padding-block: var(--section-gap); }
.band--paper  { background: var(--color-paper); }
.band--canvas { background: var(--color-canvas); }
.band--tight  { padding-block: clamp(48px, 5vw, 72px); }

/* ---------- type roles ---------- */
.display {
  font-size: var(--text-display); line-height: var(--leading-display);
  letter-spacing: var(--tracking-display); font-weight: var(--fw-semibold);
}
.heading-lg {
  font-size: var(--text-heading-lg); line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg); font-weight: var(--fw-semibold);
}
.heading {
  font-size: var(--text-heading); line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading); font-weight: var(--fw-semibold);
}
.heading-sm {
  font-size: var(--text-heading-sm); line-height: var(--leading-heading-sm);
  font-weight: var(--fw-semibold);
}
.subheading {
  font-size: var(--text-subheading); line-height: var(--leading-subheading);
  letter-spacing: var(--tracking-subheading); font-weight: var(--fw-semibold);
}
.body-lg {
  font-size: var(--text-body-lg); line-height: var(--leading-body-lg);
  letter-spacing: var(--tracking-body-lg); font-weight: var(--fw-regular);
}
.body {
  font-size: var(--text-body); line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
}
.caption { font-size: var(--text-caption); line-height: var(--leading-caption); letter-spacing: var(--tracking-caption); }
.micro   { font-size: var(--text-micro);   line-height: var(--leading-micro);   letter-spacing: var(--tracking-micro); }
.muted   { color: var(--color-mid-gray); }
.eyebrow { font-size: var(--text-body-sm); color: var(--color-primary-ink); font-weight: var(--fw-regular); }
.badge-new {
  color: var(--color-ember); font-size: var(--text-caption);
  font-weight: var(--fw-medium); letter-spacing: var(--tracking-caption);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-8);
  font-family: var(--font-text); font-size: var(--text-body-sm); font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-body-sm);
  padding: 11px var(--spacing-20); border-radius: var(--radius-buttons);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .22s var(--ease-out), color .22s var(--ease-out), border-color .22s var(--ease-out);
}
.btn--filled { background: var(--color-electric-blue); color: var(--color-paper); }
.btn--filled:hover { background: #0077ed; }
.btn--ghost { background: transparent; color: var(--color-primary-ink); border-color: var(--color-primary-ink); }
.btn--ghost:hover { background: var(--color-primary-ink); color: var(--color-paper); }
.btn--lg { padding: 13px var(--spacing-28); }

.arrowlink {
  color: var(--color-link-blue); font-size: var(--text-body-sm);
  display: inline-flex; align-items: center; gap: 6px;
}
/* inside the ribbon the link must match the ribbon's 12px, not jump to 17px */
.ribbon .arrowlink { font-size: var(--text-micro); letter-spacing: var(--tracking-micro); }
.ribbon .arrowlink svg { width: 11px; height: 11px; }
.arrowlink:hover { text-decoration: underline; }
.arrowlink svg { width: 14px; height: 14px; }

/* ---------- promo ribbon ---------- */
.ribbon {
  background: var(--color-paper); color: var(--color-primary-ink);
  text-align: center; padding: var(--spacing-12) var(--spacing-16);
  border-bottom: 1px solid transparent;
}

/* ---------- global nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 44px; display: flex; align-items: center;
  background: rgba(255,255,255,0);
  transition: background-color .3s var(--ease-out), backdrop-filter .3s var(--ease-out);
}
.nav.is-stuck {
  background: rgba(250,250,252,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
/* Three-track grid so the link row is centred on the BAR, not merely pushed by
   auto margins — the logo and the CTA are different widths, so flex + auto
   margins left the links sitting off-centre. */
.nav__in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--spacing-16);
  width: min(var(--page-max-width), 100% - 48px); margin-inline: auto;
}
@media (max-width: 833px) { .nav__in { display: flex; } }
.nav__logo {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 18px; letter-spacing: -0.02em; color: var(--color-primary-ink);
}
.nav__links { display: none; align-items: center; justify-content: center; gap: var(--spacing-24); }
@media (min-width: 834px) { .nav__links { display: flex; } }
.nav__links a {
  font-size: var(--text-micro); letter-spacing: var(--tracking-micro);
  color: var(--color-primary-ink); opacity: .82;
  transition: opacity .2s var(--ease-out);
  /* the system fixes nav type at 12px, which leaves a ~18px hit box. Padding
     lifts the target past the 24px WCAG 2.2 minimum without touching the type. */
  padding-block: 4px;
}
.nav__links a:hover { opacity: 1; }
/* below 834px the burger takes the auto margin, so the CTA must not also claim
   one — two autos split the free space and leave the burger stranded mid-bar */
.nav__cta { margin-left: 0; }
/* on the grid the CTA sits in the right track and pins to its far edge */
@media (min-width: 834px) { .nav__cta { justify-self: end; } }

/* ---------- mobile menu ---------- */
.nav__burger {
  margin-left: auto; margin-right: var(--spacing-16);
  width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
@media (min-width: 834px) { .nav__burger { display: none; } }
.nav__burger span {
  display: block; width: 17px; height: 1.5px; background: var(--color-primary-ink);
  border-radius: 2px; transition: transform .28s var(--ease-out), opacity .2s var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.mmenu {
  /* top comes from the nav's live position, not a hardcoded 44px: the promo
     ribbon sits above the sticky nav until you scroll, so a fixed 44px overlaps
     the bar at scroll 0. app.js sets --mmenu-top on open. */
  position: fixed; inset: var(--mmenu-top, 44px) 0 auto 0; z-index: 49;
  background: rgba(250,250,252,.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: var(--spacing-16) 24px var(--spacing-32);
  display: grid; gap: 2px;
  border-bottom: 1px solid var(--color-hairline);
  animation: mmenu-in .28s var(--ease-out);
}
.mmenu[hidden] { display: none; }
@keyframes mmenu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mmenu a {
  font-family: var(--font-display); font-size: var(--text-body-lg);
  font-weight: var(--fw-semibold); letter-spacing: var(--tracking-body-lg);
  padding: var(--spacing-12) 0; border-bottom: 1px solid var(--color-hairline);
}
.mmenu a:last-child { border-bottom: 0; }
@media (min-width: 834px) { .mmenu { display: none !important; } }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Block + tile system — apple.com/za homepage language.
   The homepage does NOT use the product page's 100-120px section padding: it
   stacks full-bleed tiles separated by a ~12px gutter, alternating white and
   #f5f5f7. Text sits centred at the top of each tile, product image below.
   ========================================================================== */
.blocks { display: grid; gap: 12px; background: var(--color-paper); }

.block {
  position: relative; overflow: hidden;
  min-height: clamp(460px, 62vh, 692px);
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(40px, 5vw, 56px) 24px 0;
  text-align: center;
}
.block--paper  { background: var(--color-paper); }
.block--canvas { background: var(--color-canvas); }
.block__copy { max-width: 700px; display: grid; gap: var(--spacing-8); }
.block__copy h2 { margin-bottom: 2px; }
.block__sub { color: var(--color-primary-ink); }
.block__links { display: flex; gap: var(--spacing-24); justify-content: center; margin-top: var(--spacing-12); flex-wrap: wrap; }
/* padding-bottom matters: the source renders are trimmed to the product bounds,
   so without it the bottles sit flush on the band edge and read as clipped */
.block__media {
  margin-top: auto; width: 100%; display: grid; place-items: center;
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(36px, 4.5vw, 64px);
}
.block__media img { width: auto; max-width: min(100%, 1040px); max-height: clamp(280px, 46vh, 520px); object-fit: contain; }

/* ---------- hero: full-bleed product band ---------- */
.block--hero { padding-bottom: 0; }
.block--hero .block__media {
  padding: clamp(24px, 3vw, 44px) 0 0;
  max-width: none; width: 100%;
  overflow: hidden;
}
.block--hero .block__media img {
  width: 100%; max-width: none; max-height: none; height: auto;
  /* settles from a fraction over-size, so the product arrives rather than appears */
  transform: scale(1.045); opacity: 0;
  transition: transform 1.4s var(--ease-out), opacity .9s var(--ease-out);
  will-change: transform;
}
.block--hero .block__media img.is-in { transform: scale(1); opacity: 1; }

/* ---------- bento ----------
   Mixed tile sizes rather than a uniform card grid: the system's own guidance
   warns against identical repeating cards, and varied spans give the page a
   focal point instead of an even field. */
.bento {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } }

.box {
  --box-pad: clamp(28px, 3vw, 40px);
  position: relative; overflow: hidden;
  border-radius: var(--radius-cards);
  padding: var(--box-pad);
  display: flex; flex-direction: column;
  min-height: 300px;
}
.box--paper  { background: var(--color-paper); }
.box--canvas { background: var(--color-canvas); }
.box--citrus { background: var(--ground-citrus); }
.box--teal   { background: var(--ground-teal); }
.box--orange { background: var(--ground-orange); }
.box--ink    { background: var(--color-primary-ink); color: var(--color-paper); }
.box--ink .muted { color: #a1a1a6; }

/* spans — desktop only, everything stacks below 1000px */
@media (min-width: 1000px) {
  .box--tall { grid-column: span 2; grid-row: span 2; min-height: 620px; }
  .box--wide { grid-column: span 2; }
  .box--half { grid-column: span 1; }
}
/* Two columns: if the tall and wide boxes kept their spans they would each take
   a whole row on their own. Collapsing every box to one column gives a clean
   2 x 3 with no orphans. */
@media (min-width: 700px) and (max-width: 999px) {
  .box--tall, .box--wide, .box--half { grid-column: span 1; }
  .box--tall { min-height: 420px; }
}

.box__head { display: grid; gap: var(--spacing-8); }
.box__head p { color: var(--color-mid-gray); }
.box--ink .box__head p { color: #a1a1a6; }
.box__media {
  margin-top: auto; padding-top: var(--spacing-24);
  display: grid; place-items: center; width: 100%;
}
.box__media img {
  width: auto; max-width: 100%; max-height: clamp(150px, 22vh, 340px); object-fit: contain;
  transition: transform .7s var(--ease-out);
  will-change: transform;
}
.box--tall .box__media img { max-height: clamp(240px, 40vh, 460px); }
.box:hover .box__media img { transform: scale(1.045); }

/* --- bleed: product sits ON the box edges rather than floating inside the pad.
   Negative margins cancel the box padding on three sides; overflow:hidden on
   .box keeps the 28px radius clipping the image corners. --- */
.box--bleed .box__media {
  margin: 0 calc(-1 * var(--box-pad)) calc(-1 * var(--box-pad));
  padding-top: var(--spacing-24); padding-bottom: 0;
  width: auto;
}
.box--bleed .box__media img {
  width: 100%; max-width: none; max-height: none; height: auto;
  display: block;
}

.box__stat { margin-top: auto; }
.box__stat .stat { display: block; }

/* Stacked single-column, a 300px floor plus margin-top:auto leaves the number
   marooned at the bottom of a tall empty box. Tighten the floor on small
   screens and let the stat sit close to its label. */
@media (max-width: 699px) {
  .box { min-height: 0; padding: clamp(24px, 6vw, 32px); }
  .box--tall { min-height: 0; }
  .box__stat { margin-top: var(--spacing-32); }
  .box__media { padding-top: var(--spacing-20); }
  .box__media img { max-height: clamp(140px, 30vh, 230px); }
  .box--tall .box__media img { max-height: clamp(200px, 38vh, 300px); }
}

/* ==========================================================================
   Lifestyle
   The written system says product-only, no lifestyle context. That rule serves
   Apple, whose product IS the subject. B3TTER's entire meaning is being
   outside, so this is a deliberate, contained deviation: the imagery is held
   inside the same 28px radii, the same flat surfaces, and no shadows. The UI
   around it stays as silent as everywhere else.
   ========================================================================== */
.places { display: grid; gap: 12px; }
@media (min-width: 760px) { .places { grid-template-columns: repeat(3, 1fr); } }

.place { display: grid; gap: 12px; }
.place figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-cards); }
.place img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s var(--ease-out);
  will-change: transform;
}
.place figure:hover img { transform: scale(1.04); }
.place__wide img  { aspect-ratio: 3 / 4; }
.place__macro img { aspect-ratio: 4 / 3; }
.place figcaption {
  margin-top: var(--spacing-12);
  color: var(--color-mid-gray);
  display: flex; justify-content: space-between; gap: var(--spacing-16);
}
.place figcaption strong { color: var(--color-primary-ink); font-weight: var(--fw-semibold); }

/* ==========================================================================
   Testimonial slider
   Stars are ink, not gold: the system allows no accent colour beyond the two
   blues, and a restrained star row reads more expensive anyway.
   ========================================================================== */
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 15px; height: 15px; fill: var(--color-primary-ink); }

.slider { position: relative; margin-top: clamp(36px, 4.5vw, 56px); }
/* No radius here: the slide carries its own 28px corners, and clipping the
   viewport as well let the neighbouring slide's corners show as notches
   biting into the visible card. */
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  transition: transform .65s var(--ease-out);
  will-change: transform;
}
.slide {
  flex: 0 0 100%; min-width: 0;
  background: var(--color-paper);
  border-radius: var(--radius-cards);
  padding: clamp(32px, 4vw, 56px);
  display: grid; gap: var(--spacing-20); justify-items: center; text-align: center;
}
.slide blockquote { margin: 0; max-width: 46ch; }
.slide__who { display: grid; gap: 2px; }
.slide__who strong { font-weight: var(--fw-semibold); }

.slider__nav { display: flex; align-items: center; justify-content: center; gap: var(--spacing-16); margin-top: var(--spacing-24); }
.slider__btn {
  width: 36px; height: 36px; border-radius: var(--radius-buttons);
  border: 0; background: var(--color-cool-wash); color: var(--color-primary-ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s var(--ease-out);
}
.slider__btn:hover { background: #dcdce1; }
.slider__btn svg { width: 15px; height: 15px; }

/* dot pagination, per the system: ~8px, active ink, inactive quiet grey */
.slider__dots { display: flex; gap: 7px; align-items: center; }
.slider__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--color-quiet-dot); opacity: .45; cursor: pointer;
  transition: opacity .2s var(--ease-out), background-color .2s var(--ease-out);
}
.slider__dots button[aria-current="true"] { background: var(--color-primary-ink); opacity: 1; }
/* the visual dot is 8px; this pads the hit area out to the 24px WCAG minimum
   without changing how it looks */
.slider__dots button::before { content: ""; position: absolute; width: 24px; height: 24px; transform: translate(-8px, -8px); }
.slider__dots button { position: relative; }

@media (prefers-reduced-motion: reduce) { .slider__track { transition: none; } }

/* ---------- story ----------
   The system centres headlines but keeps multi-line body copy left-aligned,
   so the narrative column is left-set inside a centred block. */
.story__body { text-align: left; margin-top: clamp(32px, 4vw, 48px); display: grid; gap: var(--spacing-24); }
.story__body p { color: var(--color-mid-gray); }
.story__body strong { color: var(--color-primary-ink); font-weight: var(--fw-semibold); }
.story__art { display: grid; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 700px) { .story__art { grid-template-columns: repeat(3, 1fr); } }
.story__art figure { margin: 0; overflow: hidden; border-radius: var(--radius-cards); }
.story__art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block;
  transition: transform .9s var(--ease-out); }
.story__art figure:hover img { transform: scale(1.04); }

/* ---------- made in South Africa ----------
   The flag is four small bars rather than decorative chrome: the system bans
   accent colour on UI surfaces, so this reads as a mark, not a background. */
.madein__flag { display: flex; gap: 4px; justify-content: center; margin-bottom: var(--spacing-16); }
.madein__flag span { width: 26px; height: 5px; border-radius: 3px; display: block; }

.madein__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--spacing-32); text-align: left; }
@media (min-width: 760px) { .madein__grid { grid-template-columns: repeat(3, 1fr); gap: var(--spacing-40); } }
.madein__grid h3 { margin-bottom: var(--spacing-8); }
.madein__grid p { max-width: 34ch; }

/* two-up tile row */
.tiles { display: grid; gap: 12px; }
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile {
  position: relative; overflow: hidden;
  min-height: clamp(400px, 52vh, 560px);
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(36px, 4vw, 48px) 24px 0; text-align: center;
}
.tile--paper  { background: var(--color-paper); }
.tile--canvas { background: var(--color-canvas); }
.tile__media {
  margin-top: auto; width: 100%; display: grid; place-items: center;
  padding-top: var(--spacing-24); padding-bottom: clamp(28px, 3.5vw, 48px);
}
.tile__media img { width: auto; max-width: min(100%, 460px); max-height: clamp(180px, 30vh, 340px); object-fit: contain; }
.tile__stat { margin-top: auto; margin-bottom: auto; display: grid; gap: var(--spacing-4); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: 0; text-align: center; }
.hero__eyebrow { margin-bottom: var(--spacing-12); }
.hero__title { margin-bottom: var(--spacing-20); }
.hero__sub {
  max-width: 30ch; margin-inline: auto; color: var(--color-mid-gray);
  margin-bottom: var(--spacing-28);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--spacing-16); justify-content: center; align-items: center; }
.hero__price { margin-top: var(--spacing-16); color: var(--color-mid-gray); }
.hero__stage {
  margin-top: clamp(24px, 4vw, 48px);
  display: grid; place-items: center;
}

/* ---------- finish switcher: six real shots, crossfaded ----------
   The vector bottle is retired now that real renders exist. Swapping src would
   flash white between loads, so all six stack and only opacity changes. */
.swatchstage {
  position: relative; width: 100%; margin-top: auto;
  height: clamp(260px, 40vh, 430px);
  margin-bottom: var(--spacing-20);   /* the finish name now carries the bottom gap */
}
.swatchstage img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: 100%; max-width: 100%; object-fit: contain;
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.swatchstage img.is-on { opacity: 1; }

/* ---------- finish selector ---------- */
.finishes { display: flex; flex-wrap: wrap; gap: var(--spacing-16); justify-content: center; margin-top: var(--spacing-32); padding: 0; list-style: none; }
.finish {
  width: 52px; height: 52px; border-radius: var(--radius-cards);
  border: 1px solid rgba(0,0,0,.08); cursor: pointer; padding: 0;
  transition: transform .25s var(--ease-out);
  position: relative;
}
.finish:hover { transform: scale(1.06); }
.finish[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -6px;
  border: 1.5px solid var(--color-primary-ink); border-radius: 34px;
}
/* sits under the bottle, not under the swatch row — the name labels the product
   you are looking at, so it belongs next to it */
.finish__name {
  display: block; color: var(--color-primary-ink); text-align: center;
  margin: 0 0 clamp(36px, 4.5vw, 64px);
}

/* ---------- feature layouts ---------- */
.feature { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature--flip > *:first-child { order: 2; }
.feature__body > * + * { margin-top: var(--spacing-20); }
.feature__body p { color: var(--color-mid-gray); max-width: 46ch; }

.card {
  background: var(--color-paper); border-radius: var(--radius-cards);
  padding: clamp(28px, 4vw, 48px);
}
.card--finish { display: grid; place-items: center; min-height: 380px; padding: var(--spacing-40); }

.variants { display: grid; gap: var(--spacing-20); }
@media (min-width: 760px) { .variants { grid-template-columns: 1fr 1fr; } }

/* stat */
.stat { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
.stat__unit { font-size: .45em; letter-spacing: -0.02em; color: var(--color-mid-gray); }

/* detail trio */
.trio { display: grid; gap: var(--spacing-20); }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio .card { display: grid; gap: var(--spacing-16); }
.trio__art { border-radius: var(--radius-cards); background: var(--color-canvas); display: grid; place-items: center; aspect-ratio: 4 / 3; }
.band--canvas .trio__art { background: var(--color-cool-wash); }

/* specs */
.specs { list-style: none; margin: var(--spacing-40) 0 0; padding: 0; }
.specs li { display: flex; justify-content: space-between; gap: var(--spacing-24); padding: var(--spacing-20) 0; border-bottom: 1px solid var(--color-hairline); }
.specs li:first-child { border-top: 1px solid var(--color-hairline); }
.specs dt, .specs .k { color: var(--color-mid-gray); }
.specs .v { text-align: right; }

/* closing CTA */
.closing { text-align: center; }
.closing p { max-width: 42ch; margin-inline: auto; color: var(--color-mid-gray); margin-top: var(--spacing-20); }
.closing .btn { margin-top: var(--spacing-32); }

/* ---------- footer ---------- */
.foot { background: var(--color-canvas); padding-block: var(--spacing-48) var(--spacing-40); }
.foot__cols { display: grid; gap: var(--spacing-32); }
@media (min-width: 700px) { .foot__cols { grid-template-columns: repeat(4, 1fr); } }
.foot h3 { font-size: var(--text-micro); line-height: var(--leading-micro); font-weight: var(--fw-semibold); margin-bottom: var(--spacing-12); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--spacing-4); }
/* inline-block + padding so the 12px footer links still present a 24px target */
.foot a { font-size: var(--text-micro); line-height: var(--leading-micro); color: var(--color-mid-gray); display: inline-block; padding-block: 4px; }
.foot a:hover { color: var(--color-primary-ink); text-decoration: underline; }
.foot__legal { margin-top: var(--spacing-40); padding-top: var(--spacing-20); border-top: 1px solid var(--color-hairline); color: var(--color-mid-gray); }
.foot__legal p + p { margin-top: var(--spacing-8); }
.foot__legal a { color: var(--color-link-blue); }

/* ---------- motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }

/* bento tiles rise a little further and settle from slightly under-size, so the
   grid assembles rather than fading in as one flat sheet */
.box[data-reveal] { transform: translateY(28px) scale(.985); }
.box[data-reveal].is-in {
  transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

/* hero parallax — transform only, never a layout property */
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal], .box[data-reveal] { opacity: 1 !important; transform: none !important; }
  .block--hero .block__media img { opacity: 1 !important; transform: none !important; }
  .box:hover .box__media img { transform: none; }
  .swatchstage img { transition: none; }
  .parallax { transform: none !important; }
}
