/* ==========================================================================
   AMER-ICE — style.css
   Foundation: design tokens, reset, base type, layout, global effects,
   reusable components. Section styles are appended below the marked line.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colors: taken from the trays and packaging */
  --color-primary:   #D7262E;  /* tray red: main CTAs, wordmark */
  --color-primary-d: #B51D24;  /* red hover */
  --color-secondary: #1F3FA8;  /* tray blue: secondary CTAs, links */
  --color-accent:    #9CC9EE;  /* ice highlight: small details, focus glow */
  --color-bg:        #FFFFFF;  /* page background */
  --color-surface:   #EEF5FB;  /* icy tint for alternating sections */
  --color-ink:       #13234A;  /* text + dark sections (navy) */
  --color-muted:     #4A5877;  /* secondary text */
  --color-line:      #CFE0F0;  /* dividers, borders */
  --color-white:     #FFFFFF;  /* text and buttons on dark or red */
  --color-on-ink:    #C9D5EC;  /* body text on navy */
  --color-line-on-ink: rgba(207, 224, 240, 0.2);   /* dividers on navy */
  --color-accent-soft: rgba(156, 201, 238, 0.25);  /* faint ice tint */
  --color-glass:     rgba(255, 255, 255, 0.78);    /* frosted nav bar */

  /* Typography: one family (Archivo) used at two widths.
     Display = expanded + heavy; body = normal width. */
  --font-display: "Aptos Display", "Aptos", "Archivo", "Helvetica Neue", Arial, sans-serif;  /* Aptos where installed; Archivo (loaded) everywhere else */
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --stretch-display: 100%;   /* normal width, to match Aptos */
  --stretch-body:    100%;

  /* Fluid type scale (375px -> 1440px) */
  --fs-xs:   clamp(0.78rem, 0.75rem + 0.12vw, 0.85rem);
  --fs-sm:   clamp(0.9rem,  0.87rem + 0.15vw, 0.97rem);
  --fs-base: clamp(1rem,    0.96rem + 0.2vw,  1.0625rem);
  --fs-lg:   clamp(1.15rem, 1.07rem + 0.35vw, 1.3rem);
  --fs-xl:   clamp(1.4rem,  1.25rem + 0.7vw,  1.85rem);
  --fs-2xl:  clamp(1.9rem,  1.55rem + 1.5vw,  2.9rem);
  --fs-3xl:  clamp(2.5rem,  1.9rem + 2.6vw,   4.2rem);
  --fs-hero: clamp(3rem,    1.9rem + 5vw,     7rem);

  --lh-tight: 0.98;
  --lh-snug:  1.15;
  --lh-body:  1.6;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-pad: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadows (used sparingly) */
  --shadow-sm: 0 2px 8px rgba(19, 35, 74, 0.08);
  --shadow-md: 0 12px 32px rgba(19, 35, 74, 0.12);
  --shadow-lg: 0 24px 60px rgba(19, 35, 74, 0.18);

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-med:  0.45s;
  --dur-slow: 0.9s;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --nav-h: 72px;

  /* Breakpoints (reference only; CSS vars can't be used in media queries)
     sm 375 / md 768 / lg 1024 / xl 1440 */
}


/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }


/* --------------------------------------------------------------------------
   3. BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-stretch: var(--stretch-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); font-weight: 800; line-height: var(--lh-snug); letter-spacing: -0.01em; }
p { max-width: 62ch; }
.lead { font-size: var(--fs-lg); color: var(--color-muted); }
a { color: var(--color-secondary); text-underline-offset: 0.2em; }
strong, b { font-weight: 700; }

::selection { background: var(--color-primary); color: var(--color-white); }


/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); }
.section--surface { background: var(--color-surface); }
.section--ink { background: var(--color-ink); color: var(--color-white); }
.section--ink .lead, .section--ink p { color: var(--color-on-ink); }

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


/* --------------------------------------------------------------------------
   5. GLOBAL EFFECTS
   -------------------------------------------------------------------------- */

/* Focus states */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Scrollbar */
html { scrollbar-color: var(--color-secondary) var(--color-surface); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-secondary); border-radius: 10px; border: 2px solid var(--color-surface); }

/* Subtle grain overlay (frosted texture) */
.grain {
  position: fixed; inset: -50%;
  z-index: 9990; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Lenis smooth-scroll required styles */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Native smooth scroll fallback (when Lenis is off) */
html:not(.lenis) { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

/* Reveal-on-scroll: elements are only hidden once JS confirms GSAP loaded,
   so content never disappears if a script fails. */
.motion-ready [data-reveal]:not([data-reveal="stagger"]),
.motion-ready [data-reveal="stagger"] > * { opacity: 0; }

/* Custom cursor (created by JS on mouse/trackpad devices only) */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  z-index: 9999; pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-100px, -100px, 0);
}
.cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--color-primary);
}
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid var(--color-secondary);
  transition: width var(--dur-med) var(--ease-out), height var(--dur-med) var(--ease-out),
              margin var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out),
              opacity var(--dur-fast) linear;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: var(--color-accent-soft);
}
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
.has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button { cursor: none; }


/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: fixed; left: var(--space-4); top: var(--space-4); z-index: 10000;
  padding: var(--space-3) var(--space-5);
  background: var(--color-ink); color: var(--color-white);
  border-radius: var(--radius-pill); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* --------------------------------------------------------------------------
   6. COMPONENTS
   -------------------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 54px; padding: 0 var(--space-6);
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-base);
  line-height: 1; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: background-color var(--dur-fast) linear, color var(--dur-fast) linear,
              border-color var(--dur-fast) linear;
  will-change: transform;
}
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-d); }
.btn--secondary { background: transparent; color: var(--color-secondary); border-color: var(--color-secondary); }
.btn--secondary:hover { background: var(--color-secondary); color: var(--color-white); }
.section--ink .btn--secondary { color: var(--color-white); border-color: var(--color-white); }
.section--ink .btn--secondary:hover { background: var(--color-white); color: var(--color-ink); }
.btn--sm { min-height: 44px; padding: 0 var(--space-5); font-size: var(--fs-sm); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Section heading: small eyebrow + large title */
.section-heading { margin-bottom: var(--space-7); max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm); font-weight: 600; color: var(--color-primary);
}
.eyebrow::before {                       /* small ice-cube marker */
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--color-secondary); transform: rotate(12deg);
}
.section--ink .eyebrow { color: var(--color-accent); }
.section--ink .eyebrow::before { background: var(--color-primary); }
.section-heading h2 + p { margin-top: var(--space-5); }

/* Tag / pill */
.pill {
  display: inline-flex; align-items: center;
  padding: var(--space-1) var(--space-4);
  font-size: var(--fs-xs); font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-ink);
  border: 1px solid var(--color-line);
}
.pill--red  { background: var(--color-primary);   color: var(--color-white); border-color: transparent; }
.pill--blue { background: var(--color-secondary); color: var(--color-white); border-color: transparent; }

/* Wordmark (no logo file yet) */
.wordmark {
  font-family: var(--font-display); font-stretch: var(--stretch-display);
  font-weight: 900; font-size: 1.45rem; line-height: 1;
  color: var(--color-primary); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark span { color: var(--color-secondary); }


/* --------------------------------------------------------------------------
   7. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   SECTION STYLES — appended below as each section is approved
   ========================================================================== */

/* --------------------------------------------------------------------------
   SECTION 1: NAVIGATION
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: transform var(--dur-med) var(--ease-out),
              background-color 0.3s linear, border-color 0.3s linear;
}
.site-nav.is-scrolled {
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--color-line);
}
.site-nav.is-hidden { transform: translateY(-100%); }

.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); height: 100%;
}
.site-nav__links { display: none; gap: var(--space-6); list-style: none; padding: 0; }
.site-nav__links a {
  position: relative;
  font-weight: 500; font-size: var(--fs-sm);
  color: var(--color-ink); text-decoration: none;
  padding-block: var(--space-2);
}
.site-nav__links a::after {                     /* underline draws in on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--color-primary);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out);
}
.site-nav__links a:hover::after,
.site-nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.site-nav__actions { display: flex; align-items: center; gap: var(--space-3); }
.site-nav__cta { display: none; }

/* Hamburger */
.nav-toggle {
  position: relative; width: 44px; height: 44px;
  border-radius: 50%;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--color-ink); border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out), background-color 0.3s linear;
}
.nav-toggle span:nth-child(1) { transform: translateY(-4px); }
.nav-toggle span:nth-child(2) { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

/* Nav while the mobile menu is open: sits on the navy menu */
.site-nav.menu-open { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-nav.menu-open .wordmark span { color: var(--color-accent); }
.site-nav.menu-open .nav-toggle span { background: var(--color-white); }
.site-nav.menu-open .site-nav__cta { visibility: hidden; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: var(--space-7);
  padding: calc(var(--nav-h) + var(--space-7)) var(--gutter) var(--space-7);
  background: var(--color-ink); color: var(--color-white);
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-in-out), visibility 0s linear 0.6s;
}
.mobile-menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.6s var(--ease-in-out), visibility 0s linear 0s;
}
.mobile-menu__links { list-style: none; padding: 0; }
.mobile-menu__links li { overflow: hidden; }       /* mask for the rising links */
.mobile-menu__links a {
  display: block;
  padding-block: var(--space-2);
  font-family: var(--font-display); font-stretch: var(--stretch-display);
  font-weight: 900; font-size: var(--fs-3xl); line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-white); text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.4s var(--ease-out), color var(--dur-fast) linear;
}
.mobile-menu.is-open .mobile-menu__links a {
  transform: translateY(0);
  transition: transform 0.8s var(--ease-out) calc(0.2s + var(--i) * 0.07s), color var(--dur-fast) linear;
}
.mobile-menu__links a:hover { color: var(--color-accent); }
.mobile-menu .btn--secondary { color: var(--color-white); border-color: var(--color-white); }
.mobile-menu .btn--secondary:hover { background: var(--color-white); color: var(--color-ink); }
.mobile-menu__footer { display: grid; gap: var(--space-5); }
.mobile-menu__email { color: var(--color-accent); font-weight: 500; }

@media (min-width: 480px) {
  .site-nav__cta { display: inline-flex; }
  .site-nav__cta--walmart { display: none; }      /* second button only once there's room */
}
@media (min-width: 768px) {
  .site-nav__cta--walmart { display: inline-flex; }
}
@media (min-width: 1024px) {
  .site-nav__links { display: flex; }
  .nav-toggle, .mobile-menu { display: none; }
}

/* --------------------------------------------------------------------------
   SECTION 2: HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--color-surface);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: var(--space-7);
  padding-block: var(--space-7) var(--space-8);
}
.hero__title {
  font-size: var(--fs-hero);
  text-wrap: balance;
  margin-bottom: var(--space-5);
  color: var(--color-ink);
}
/* Word-split mask (spans are added by JS) */
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .word__inner { display: inline-block; will-change: transform; }

.hero__sub {
  margin-bottom: var(--space-6);
  font-size: var(--fs-xl); font-weight: 700; line-height: 1.2;
  color: var(--color-secondary);
}
.hero__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero__price strong {
  font-family: var(--font-display); font-stretch: var(--stretch-display);
  font-size: var(--fs-2xl); font-weight: 800; line-height: 1;
  color: var(--color-primary);
}
.hero__price span { color: var(--color-muted); font-weight: 500; font-size: var(--fs-sm); }

.hero__media {
  position: relative;
  min-height: 56vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.hero__zoom { position: absolute; inset: 0; will-change: transform; }
.hero__zoom img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }

/* Scroll indicator (desktop only) */
.hero__scroll {
  position: absolute; left: 50%; bottom: var(--space-5);
  display: none; align-items: center; gap: var(--space-3);
  transform: translateX(-50%);
  font-size: var(--fs-xs); font-weight: 600; color: var(--color-muted);
  text-decoration: none;
}
.hero__scroll-track {
  position: relative; width: 2px; height: 36px;
  background: var(--color-line); border-radius: 2px; overflow: hidden;
}
.hero__scroll-track span {
  position: absolute; left: 0; top: 0; width: 100%; height: 12px;
  background: var(--color-primary); border-radius: 2px;
  animation: hero-scroll 1.8s var(--ease-in-out) infinite;
}
@keyframes hero-scroll {
  0%   { transform: translateY(-12px); }
  100% { transform: translateY(36px); }
}

/* Intro starting states: only when GSAP is confirmed (see main.js) */
.motion-ready .hero__title .word__inner { transform: translateY(110%); }
.motion-ready [data-hero-fade] { opacity: 0; }
.motion-ready .hero__zoom img { opacity: 0; }

@media (min-width: 1024px) {
  .hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
  .hero__inner {
    flex: 1;
    grid-template-columns: 1.25fr 1fr;
    align-items: stretch;
    padding-block: var(--space-6) var(--space-9);
  }
  .hero__content { align-self: center; }
  .hero__media { min-height: 0; }
  .hero__scroll { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   SECTION 3: MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  padding-block: var(--space-8);
  background: var(--color-bg);
  overflow: hidden;
}
.marquee__band {
  position: relative;
  width: calc(100% + 120px);
  margin-left: -60px;
  padding-block: var(--space-4);
  white-space: nowrap;
  overflow: hidden;
}
.marquee__band--ink { background: var(--color-ink); color: var(--color-white); transform: rotate(-2deg); z-index: 2; }
.marquee__band--red { background: var(--color-primary); color: var(--color-white); transform: rotate(1.5deg); margin-top: var(--space-6); }

.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  padding-inline: var(--space-5);
  font-family: var(--font-display); font-stretch: var(--stretch-display);
  font-weight: 900; font-size: var(--fs-2xl); line-height: 1.1;
  letter-spacing: -0.01em;
}
.marquee__band--red .marquee__item { font-size: var(--fs-xl); font-weight: 800; }
.marquee__sep {                                   /* ice-cube separator */
  flex: none; width: 14px; height: 14px;
  border-radius: 4px; transform: rotate(12deg);
  background: var(--color-accent);
}
.marquee__band--red .marquee__sep { background: var(--color-white); }

/* CSS fallback when GSAP isn't available (JS adds .is-js when it takes over) */
@keyframes marquee-x { to { transform: translateX(-50%); } }
.marquee:not(.is-js) .marquee__track { animation: marquee-x 45s linear infinite; }
.marquee:not(.is-js) [data-direction="-1"] .marquee__track { animation-direction: reverse; }
.marquee:not(.is-js) .marquee__band:hover .marquee__track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   SECTION 4: WHAT'S IN THE BOX
   -------------------------------------------------------------------------- */
.box__inner { display: grid; gap: var(--space-8); align-items: center; }
.box .section-heading { margin-bottom: var(--space-6); }

.box__statement {
  max-width: 34ch;
  margin-bottom: var(--space-7);
  font-size: var(--fs-xl); font-weight: 600; line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--color-ink);
}
.box__statement .lw { transition: none; }       /* word spans added by JS */

.box__points {
  display: grid; gap: 0;
  list-style: none; padding: 0;
  border-top: 1px solid var(--color-line);
}
.box__points li {
  display: grid; gap: var(--space-1);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-line);
}
.box__points b {
  font-family: var(--font-display); font-stretch: var(--stretch-display);
  font-size: var(--fs-lg); font-weight: 800;
}
.box__points b::before {                          /* ice-cube marker, as in the eyebrow */
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: var(--space-3);
  border-radius: 3px; background: var(--color-primary); transform: rotate(12deg);
  vertical-align: 0.15em;
}
.box__points span { color: var(--color-muted); font-size: var(--fs-sm); padding-left: calc(10px + var(--space-3)); }

.box__media {                                     /* full photo, no cropping */
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.box__photo img { width: 100%; height: auto; }

@media (min-width: 768px) {
  .box__points { grid-template-columns: repeat(2, 1fr); border-top: 0; gap: var(--space-5); }
  .box__points li { border-bottom: 0; border-top: 2px solid var(--color-ink); padding-top: var(--space-4); }
  .box__points span { padding-left: 0; }
  .box__points b::before { display: none; }
}
@media (min-width: 1024px) {
  .box__inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .box__points { grid-template-columns: 1fr; gap: 0; }
  .box__points li { border-top: 1px solid var(--color-line); padding-block: var(--space-4); }
  .box__points li:last-child { border-bottom: 1px solid var(--color-line); }
  .box__points span { padding-left: calc(10px + var(--space-3)); }
  .box__points b::before { display: inline-block; }
}

/* --------------------------------------------------------------------------
   SECTION 5: MADE FOR
   Mobile/tablet: native swipe row. Desktop (JS adds .is-pinned): pinned
   horizontal scroll with a progress bar.
   -------------------------------------------------------------------------- */
.uses { overflow: hidden; }
.uses__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); }
.uses__head .section-heading { margin-bottom: var(--space-6); }

.uses__progress {
  display: none;
  flex: none; width: 200px; height: 3px; margin-bottom: var(--space-7);
  background: var(--color-line); border-radius: 3px; overflow: hidden;
}
.uses__progress span { display: block; height: 100%; background: var(--color-primary); transform-origin: left center; }

.uses__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.uses__viewport::-webkit-scrollbar { display: none; }

.uses .uses__track {             /* .uses prefix beats the ul[role=list] reset */
  display: flex; gap: var(--space-5);
  width: max-content;
  list-style: none; margin: 0;
  /* line the first card up with the container edge */
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-bottom: var(--space-2);
}
.use-card {
  flex: none; width: min(78vw, 360px);
  scroll-snap-align: center;
}
.use-card__img {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}
.use-card__parallax { position: absolute; inset: 0 -10%; will-change: transform; }
.use-card__parallax img { width: 100%; height: 100%; object-fit: cover; }
.use-card .pill { margin-bottom: var(--space-3); background: var(--color-bg); }
.use-card h3 { margin-bottom: var(--space-2); }
.use-card p { color: var(--color-muted); font-size: var(--fs-sm); max-width: 32ch; }

/* Desktop pinned mode */
.uses.is-pinned { padding-block: var(--space-7); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.uses.is-pinned .uses__progress { display: block; }
.uses.is-pinned .uses__viewport { overflow: hidden; scroll-snap-type: none; }
.uses.is-pinned .use-card { width: min(42vw, 54vh); }
.uses.is-pinned .use-card__img { aspect-ratio: 4 / 3; }
@media (max-height: 760px) {                     /* short laptop screens: keep it all in view */
  .uses.is-pinned .section-heading .lead { display: none; }
  .uses.is-pinned .section-heading { margin-bottom: var(--space-5); }
  .uses.is-pinned .uses__progress { margin-bottom: var(--space-5); }
  .uses.is-pinned { padding-block: var(--space-6); }
  .uses.is-pinned .use-card { width: min(42vw, 58vh); }
  .uses.is-pinned .use-card__img { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   SECTION 6: LIFETIME REPLACEMENT GUARANTEE
   -------------------------------------------------------------------------- */
.guarantee { overflow: hidden; }
.guarantee__top { display: grid; gap: var(--space-7); align-items: center; margin-bottom: var(--space-8); }
.guarantee .section-heading { margin-bottom: 0; }
.guarantee__cta { margin-top: var(--space-6); }

/* Rotating badge */
.guarantee__badge {
  position: relative;
  width: min(240px, 60vw); aspect-ratio: 1;
  justify-self: start;
}
.guarantee__ring { width: 100%; height: 100%; overflow: visible; will-change: transform; }
.guarantee__ring text {
  fill: var(--color-white);
  font-family: var(--font-display); font-stretch: var(--stretch-display);
  font-weight: 700; font-size: 15px;
}
.guarantee__cube {                                /* big ice cube in the middle */
  position: absolute; left: 50%; top: 50%;
  width: 34%; height: 34%;
  margin: -17% 0 0 -17%;
  border-radius: 22%;
  background: var(--color-primary);
  rotate: 12deg;
  box-shadow: inset -8px -8px 0 rgba(0, 0, 0, 0.12), inset 8px 8px 0 rgba(255, 255, 255, 0.18);
}

/* Steps */
.guarantee .guarantee__steps {                    /* .guarantee prefix beats the ol[role=list] reset */
  position: relative;
  display: grid; gap: var(--space-6);
  list-style: none; padding: 0;
}
.guarantee__steps li { position: relative; z-index: 1; }
.guarantee__num {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--color-ink);
  border: 2px solid var(--color-accent);
  font-family: var(--font-display); font-stretch: var(--stretch-display);
  font-weight: 900; font-size: var(--fs-lg); color: var(--color-white);
}
.guarantee__steps h3 { color: var(--color-white); margin-bottom: var(--space-2); }
.guarantee__steps p { font-size: var(--fs-sm); }
.guarantee__steps a { color: var(--color-accent); }

.guarantee__line {                                /* connector that draws across the numbers */
  display: none;
  position: absolute; top: 24px; left: 24px;
  right: calc((100% - 2 * var(--space-6)) / 3 - 24px);
  height: 2px; z-index: 0;
  background: var(--color-accent-soft);
}
.guarantee__line span { display: block; height: 100%; background: var(--color-accent); transform-origin: left center; }

@media (min-width: 768px) {
  .guarantee .guarantee__steps { grid-template-columns: repeat(3, 1fr); }
  .guarantee__line { display: block; }
}
@media (min-width: 1024px) {
  .guarantee__top { grid-template-columns: 1.4fr 1fr; }
  .guarantee__badge { justify-self: center; width: 280px; }
}

/* --------------------------------------------------------------------------
   SECTION 7: FAQ
   -------------------------------------------------------------------------- */
.faq__inner { display: grid; gap: var(--space-6); }
.faq .faq__list { list-style: none; padding: 0; border-top: 1px solid var(--color-line); }
.faq__item { border-bottom: 1px solid var(--color-line); }

.faq__q { font-size: inherit; font-stretch: var(--stretch-body); letter-spacing: 0; line-height: inherit; }
.faq__q button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  width: 100%;
  padding-block: var(--space-5);
  text-align: left;
  font-family: var(--font-body); font-size: var(--fs-lg); font-weight: 700; line-height: 1.3;
  color: var(--color-ink);
}
.faq__q button:hover span { color: var(--color-secondary); }

/* Plus icon that turns into an X */
.faq__icon {
  position: relative; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--color-line);
  transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--color-primary); border-radius: 2px;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q button[aria-expanded="true"] .faq__icon { transform: rotate(135deg); background: var(--color-primary); border-color: var(--color-primary); }
.faq__q button[aria-expanded="true"] .faq__icon::before,
.faq__q button[aria-expanded="true"] .faq__icon::after { background: var(--color-white); }

/* Panels: collapse only once JS is ready, so answers stay readable without it */
.faq.is-ready .faq__panel {
  display: grid; grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
}
.faq.is-ready .faq__panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--dur-med) var(--ease-out), visibility 0s linear 0s;
}
.faq__panel-inner { overflow: hidden; }
.faq__panel p { padding-bottom: var(--space-5); padding-right: calc(32px + var(--space-5)); color: var(--color-muted); }

@media (min-width: 1024px) {
  .faq__inner { grid-template-columns: 1fr 1.6fr; gap: var(--space-9); align-items: start; }
  .faq__intro { position: sticky; top: calc(var(--nav-h) + var(--space-6)); }
}
.faq__intro a { white-space: nowrap; }
.faq__q button { padding-inline: 0; }

/* --------------------------------------------------------------------------
   SECTION 8: FINAL CTA
   -------------------------------------------------------------------------- */
.cta { position: relative; background: var(--color-bg); }
.cta__card {
  position: relative;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  background: var(--color-primary); color: var(--color-white);
  overflow: hidden;
}
.cta__bg {                                        /* giant low-opacity brand name */
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 0.1em;
  pointer-events: none;
}
.cta__bg-row {
  display: block; white-space: nowrap;
  font-family: var(--font-display); font-stretch: var(--stretch-display);
  font-weight: 900; font-size: clamp(5rem, 16vw, 15rem); line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--color-white); opacity: 0.08;
  will-change: transform;
}
.cta__bg-row:nth-child(2) { margin-left: -30vw; }

.cta__content { position: relative; text-align: center; padding-block: var(--space-9); }
.cta__title { font-size: var(--fs-hero); color: var(--color-white); margin-bottom: var(--space-5); text-wrap: balance; }
.cta__sub { margin: 0 auto var(--space-7); font-size: var(--fs-lg); color: var(--color-white); max-width: 40ch; }
.cta__sub span { display: block; }            /* each sentence on its own line */
.cta__buttons { justify-content: center; }

/* Button variants for use on the red background */
.btn--light { background: var(--color-white); color: var(--color-primary); }
.btn--light:hover { background: var(--color-ink); color: var(--color-white); }
.btn--outline-light { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn--outline-light:hover { background: var(--color-white); color: var(--color-primary); }

/* --------------------------------------------------------------------------
   SECTION 9: FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink); color: var(--color-on-ink);
  padding-top: var(--space-9);
  overflow: hidden;
}
.site-footer a { color: var(--color-white); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }

.footer__cols { display: grid; gap: var(--space-7); padding-bottom: var(--space-8); }
.footer__brand .wordmark { color: var(--color-primary); font-size: 1.8rem; }
.footer__brand .wordmark span { color: var(--color-accent); }
.footer__brand p { margin-top: var(--space-4); max-width: 26ch; }

.footer__label {
  margin-bottom: var(--space-4);
  font-family: var(--font-body); font-stretch: var(--stretch-body);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; line-height: 1.4;
  color: var(--color-accent);
}
.site-footer .footer__col ul { display: grid; gap: var(--space-2); list-style: none; padding: 0; }
.site-footer address { font-style: normal; line-height: 1.8; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-line-on-ink);
  font-size: var(--fs-sm);
}
.footer__top {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; color: var(--color-white);
}
.footer__top::before {                            /* small up arrow */
  content: ""; width: 8px; height: 8px;
  border-left: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}
.footer__top:hover { color: var(--color-accent); }

/* Giant brand name across the bottom */
.footer__giant { overflow: hidden; padding-inline: var(--gutter); line-height: 0.8; text-align: center; }
.footer__giant-text {
  display: inline-block; white-space: nowrap;
  font-family: var(--font-display); font-stretch: var(--stretch-display);
  font-weight: 900; font-size: 15vw; line-height: 0.8; letter-spacing: -0.03em;
  color: var(--color-primary);
  padding-bottom: 0.04em;
}
.footer__giant-text span { color: var(--color-accent); }

@media (min-width: 768px) {
  .footer__cols { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   SECTION 4b: PRODUCT DIMENSIONS (inside What's in the box)
   -------------------------------------------------------------------------- */
.dims {
  display: grid; gap: var(--space-6); align-items: center;
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}
.dims__figure { margin: 0; }
.dims__figure img { width: 100%; height: auto; }
.dims__info h3 { margin-bottom: var(--space-5); }
.dims__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: 0 0 var(--space-5); }
.dims__list div { border-top: 2px solid var(--color-ink); padding-top: var(--space-3); }
.dims__list dt { font-size: var(--fs-sm); color: var(--color-muted); font-weight: 600; }
.dims__list dd {
  margin: 0;
  font-family: var(--font-display); font-stretch: var(--stretch-display);
  font-size: var(--fs-2xl); font-weight: 900; line-height: 1.1; color: var(--color-secondary);
}
.dims__list dd span { font-size: 0.45em; font-weight: 700; margin-left: 0.15em; color: var(--color-ink); }
.dims__list div:nth-child(2) dd { color: var(--color-primary); }
.dims__info p { color: var(--color-muted); font-size: var(--fs-sm); }

@media (min-width: 900px) {
  .dims { grid-template-columns: 1.3fr 1fr; gap: var(--space-8); padding: var(--space-7); }
}
