@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Brand colors (from logo + favicon) */
  --color-ink: #191718;
  --color-brand-orange: #f3784e;
  --color-bg: #ffffff;

  /* Fonts. Headings used to be set in Fraunces (serif); the design moved
     to Google Sans Flex SemiBold everywhere, so --font-display now just
     points at the same family as --font-body. Kept as a separate variable
     in case display type diverges again later. */
  --font-display: 'Google Sans Flex', sans-serif;
  --font-body: 'Google Sans Flex', sans-serif;

  /* Homepage palette (from Figma variables) */
  --color-cream: #faf8f4;
  --color-tan: #f3eee5;
  --color-ivory: #ede5d3;
  --color-ember: #e85726;
  --color-on-dark: #f6ebe8;
  --color-treat: #d6a5dc;
  --color-sunrise: #ee9941;
  --color-midnight: #3e3449;
  --color-pick-me-up: #ced34b;
  --color-classic-light: #f47b52;

  /* Spacing scale: multiples of 4 only */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-16: 64px;

  /* Fixed header heights (padding + logo), kept in sync with .site-header
     below so body padding-top always matches the header's real height */
  --header-height-m: 54px;
  --header-height-d: 86px;

  /* Type scale (desktop) */
  --eyebrow-size-d: 16px;
  --heading-size-d: 58px;
  --heading-line-d: 68px;
  --subhead-size-d: 24px;
  --subhead-line-d: 34px;
  --subhead-bold-size-d: 24px;
  --subhead-bold-line-d: 30px;
  --body-size-d: 18px;
  --body-line-d: 24px;
  --button-size-d: 16px;
  --button-large-size-d: 24px;

  /* Type scale (mobile) */
  --eyebrow-size-m: 14px;
  --heading-size-m: 32px;
  --heading-line-m: 38px;
  --subhead-size-m: 18px;
  --subhead-line-m: 24px;
  --subhead-bold-size-m: 18px;
  --subhead-bold-line-m: 24px;
  --body-size-m: 16px;
  --body-line-m: 24px;

  --legal-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: var(--header-height-m);
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-variation-settings: 'GRAD' 0, 'ROND' 0, 'wdth' 100;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  transition: color 300ms ease-in;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-treat);
  outline-offset: 2px;
}

/* Scroll-reveal: images with this class fade and rise into place the
   first time they enter the viewport (see js/main.js). */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* The benefits/audience content boxes sit directly beside reveal-animated
   photos on tablet/desktop, where mismatched grids made the static boxes
   look unfinished next to the animating images. They get the same
   scroll-reveal there, timed to land just ahead of the photos (see the
   transition-delay on .benefits__photo.reveal / .audience__tile img.reveal
   below) so the content leads and the image follows. Left static on
   mobile, where boxes and photos aren't paired side by side. */
.benefits__copy.reveal,
.audience__card.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (min-width: 768px) {
  .benefits__copy.reveal,
  .audience__card.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
  }

  .benefits__copy.reveal.is-visible,
  .audience__card.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .benefits__photo.reveal,
  .audience__tile img.reveal {
    transition-delay: 120ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefits__copy.reveal,
  .audience__card.reveal {
    transition: none;
  }
}

.heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'GRAD' 0, 'ROND' 0, 'wdth' 100;
  font-size: var(--heading-size-m);
  line-height: var(--heading-line-m);
}

.heading em,
.heading i {
  font-style: italic;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-weight: 700;
  font-size: var(--eyebrow-size-m);
  line-height: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.body-text {
  margin: 0;
  font-weight: 400;
  font-size: var(--subhead-size-m);
  line-height: var(--subhead-line-m);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 1000px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--button-size-d);
  line-height: var(--button-size-d);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 300ms ease-in, color 300ms ease-in;
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-on-dark);
  padding: var(--space-4);
}

.btn--secondary {
  background: var(--color-ivory);
  color: var(--color-ink);
  padding: var(--space-4);
}

.btn:hover,
.btn:active {
  background: var(--color-midnight);
  color: var(--color-on-dark);
}

.nav-link {
  font-weight: 600;
  font-size: var(--button-size-d);
  text-decoration: none;
}

.nav-link--light {
  color: var(--color-on-dark);
}

.nav-link:hover,
.nav-link:active,
.nav-link--light:hover,
.nav-link--light:active {
  color: var(--color-midnight);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--color-cream);
  transition: transform 0.25s ease;
}

/* Mobile only (see JS): slides the header off-screen while scrolling down,
   and back into view as soon as the user scrolls up. Desktop stays fixed
   and always visible — this class is never applied there. */
.site-header--hidden {
  transform: translateY(-100%);
}

.site-header__logo img {
  height: 22px;
  width: auto;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: calc(var(--space-2) * -1);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle img {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height-m);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-10);
  padding: var(--space-16) var(--space-6);
  background: var(--color-cream);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
}

body.nav-open {
  overflow: hidden;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'GRAD' 0, 'ROND' 0, 'wdth' 100;
  font-size: var(--heading-size-m);
  line-height: var(--heading-line-m);
  color: var(--color-ink);
  text-decoration: none;
}

.mobile-nav__link--current {
  color: var(--color-ember);
}

.mobile-nav__link:hover,
.mobile-nav__link:active {
  color: var(--color-midnight);
}

.mobile-nav__current-mark {
  margin-left: var(--space-2);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85vh;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  width: 340px;
  text-align: center;
}

.hero__content .heading {
  text-align: center;
}

.hero__content .body-text {
  font-size: 16px;
  line-height: 24px;
}

/* Floating product images: arranged as equidistant "spokes" on an ellipse
   around the hero copy (tall on narrow screens, to leave the center column
   room; wide on desktop), each angled outward, with the whole ring
   revolving clockwise in a slow, constant loop.

   Position is computed directly with trig instead of the common
   "rotate+translate on a circle, then non-uniformly scale it into an
   ellipse" trick — a non-uniform `scale()` would stretch every pixel of
   each image, not just its position. `--hero-spin` is a custom property
   (declared with `@property` so it interpolates as a real angle) driven
   by a looping CSS animation and inherited by every floater; each
   one adds its own fixed `--offset` and plots x = rx·sin(angle),
   y = -ry·cos(angle), then rotates in place (rotation alone never distorts
   an image's aspect ratio).

   The radii themselves are fluid (viewport-width-interpolated via
   `clamp()`), not breakpoint-switched — so the ellipse continuously
   reshapes as the window resizes (tall at phone widths, wide at desktop)
   instead of visibly snapping at one cutoff and looking squished on
   in-between, tablet-ish widths. Pinned to the tuned mobile (390px) and
   desktop (1440px) shapes at each end. */

@property --hero-spin {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}

.hero__floaters {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  --hero-spin: 0deg;
  --orbit-rx: clamp(185px, calc(185px + (100vw - 390px) * 0.3305), 532px);
  --orbit-ry: clamp(259px, calc(259px + (100vw - 390px) * 0.0610), 323px);
  pointer-events: none;
  animation: hero-orbit 80s linear infinite;
}

@keyframes hero-orbit {
  to {
    --hero-spin: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__floaters {
    animation: none;
  }
}

.hero__floaters img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  height: auto;
  pointer-events: none;
  --angle: calc(var(--hero-spin) + var(--offset, 0deg));
  transform:
    translate(
      calc(sin(var(--angle)) * var(--orbit-rx)),
      calc(-1 * cos(var(--angle)) * var(--orbit-ry))
    )
    translate(-50%, -50%)
    rotate(var(--angle));
}

.hero__floater--diet-coke { --offset: 0deg; width: 41px; }
.hero__floater--potato-crisp { --offset: 45deg; width: 47px; }
.hero__floater--fiji-water { --offset: 90deg; width: 35px; }
.hero__floater--green-snack { --offset: 135deg; width: 36px; }
.hero__floater--poppi { --offset: 180deg; width: 29px; }
.hero__floater--reeses { --offset: 225deg; width: 45px; }
.hero__floater--san-pellegrino { --offset: 270deg; width: 29px; }
.hero__floater--boulder-chips { --offset: 315deg; width: 40px; }

/* Second, outer ring: same mechanics as the inner ring (reuses
   `.hero__floaters img`'s transform/--hero-spin formula since this
   container shares the `.hero__floaters` base class), just a wider
   orbit, spinning the opposite direction (-360deg vs 360deg), and
   slower (112s vs 80s) so the two rings read as independent layers
   instead of one busier ring. */
.hero__floaters--outer {
  --orbit-rx: clamp(287px, calc(287px + (100vw - 390px) * 0.4131), 721px);
  --orbit-ry: clamp(380px, calc(380px + (100vw - 390px) * 0.0763), 460px);
  animation: hero-orbit-reverse 112s linear infinite;
}

@keyframes hero-orbit-reverse {
  to {
    --hero-spin: -360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__floaters--outer {
    animation: none;
  }
}

.hero__floater-outer--almonds { --offset: 0deg; width: 37px; }
.hero__floater-outer--yogurt { --offset: 36deg; width: 41px; }
.hero__floater-outer--coffee { --offset: 72deg; width: 31px; }
.hero__floater-outer--pizza-wrap { --offset: 108deg; width: 41px; }
.hero__floater-outer--sandwich { --offset: 144deg; width: 41px; }
.hero__floater-outer--energy { --offset: 180deg; width: 31px; }
.hero__floater-outer--granola { --offset: 216deg; width: 34px; }
.hero__floater-outer--oats { --offset: 252deg; width: 34px; }
.hero__floater-outer--juice { --offset: 288deg; width: 31px; }
.hero__floater-outer--pretzels { --offset: 324deg; width: 34px; }

/* ---------- Benefits ---------- */

.benefits {
  background: var(--color-tan);
}

.benefits__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding: calc(var(--space-8) + 24px) var(--space-6);
  grid-template-areas:
    'intro'
    'open-copy'
    'stock-copy'
    'managed-copy'
    'collage';
}

.benefits__intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.benefits__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.benefits__copy h3 {
  margin: 0;
  font-weight: 600;
  font-size: var(--subhead-bold-size-m);
  line-height: var(--subhead-bold-line-m);
}

.benefits__copy p {
  margin: 0;
  font-weight: 400;
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
}

.benefits__copy--open { grid-area: open-copy; }
.benefits__copy--stock { grid-area: stock-copy; }
.benefits__copy--managed { grid-area: managed-copy; }

.benefits__collage {
  grid-area: collage;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  height: 321px;
}

.benefits__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefits__photo--man-shopping {
  grid-column: 1;
  grid-row: 1 / span 2;
  border-radius: 16px;
}

.benefits__photo--cookie {
  grid-column: 2;
  grid-row: 1;
  border-radius: 16px;
}

.benefits__photo--skyline {
  grid-column: 2;
  grid-row: 2;
  border-radius: 16px;
}

/* ---------- What we stock ---------- */

.stock {
  padding: calc(var(--space-8) + 24px) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.stock__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stock__intro .eyebrow + .heading {
  margin-top: calc(-1 * var(--space-4));
}

.stock__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.stock__category h3 {
  margin: 0;
  font-weight: 600;
  font-size: var(--subhead-bold-size-m);
  line-height: var(--subhead-bold-line-m);
}

.stock__category summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  cursor: pointer;
  list-style: none;
}

.stock__category summary::-webkit-details-marker {
  display: none;
}

.stock__category summary::after {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.stock__category[open] summary::after {
  transform: rotate(-135deg);
}

.stock__category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stock__category li {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-ivory);
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
}

.stock__category li:last-child {
  border-bottom: 1px solid var(--color-ivory);
}

.stock__footnote {
  margin: var(--space-3) 0 0;
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  color: var(--color-ink);
  opacity: 0.6;
}

/* ---------- How to get started ---------- */

.process {
  background: var(--color-tan);
  padding: calc(var(--space-8) + 24px) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.process__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.process__step {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-ivory);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.process__number {
  font-weight: 600;
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
}

.process__step h3 {
  margin: 0;
  font-weight: 600;
  font-size: var(--subhead-bold-size-m);
  line-height: var(--subhead-bold-line-m);
}

.process__step p {
  margin: 0;
  font-weight: 400;
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
}

/* ---------- FAQ ---------- */

.faq__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq__header .eyebrow + .heading {
  margin-top: calc(-1 * var(--space-2));
}

.faq {
  padding: calc(var(--space-8) + 24px) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.faq__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-ivory);
  padding-bottom: var(--space-4);
}

.faq__item h3 {
  margin: 0;
  font-weight: 600;
  font-size: var(--subhead-bold-size-m);
  line-height: var(--subhead-bold-line-m);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg);
}

.faq__item p {
  margin: 0;
  font-weight: 400;
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
}

.faq .btn {
  width: 100%;
}

/* ---------- Audience grid ---------- */


.audience {
  padding: 24px 0;
}

.audience__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.audience__tile {
  position: relative;
  aspect-ratio: 390 / 312;
}

.audience__tile img {
  width: 100%;
  height: 100%;
  object-cover: cover;
  object-fit: cover;
}

.audience__tile--extra {
  display: none;
}

.audience__tile--selecting-drink {
  order: -1;
}

.audience__tile--woman-browsing {
  order: 99;
}

.audience__card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.audience__card h3 {
  margin: 0;
  font-weight: 600;
  font-size: var(--subhead-bold-size-m);
  line-height: var(--subhead-bold-line-m);
}

.audience__card p {
  margin: 0;
  font-weight: 400;
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
}

.audience__card--apartments { background: var(--color-treat); }
.audience__card--gyms { background: var(--color-sunrise); }
.audience__card--workplaces { background: var(--color-ivory); }
.audience__card--medical { background: var(--color-midnight); color: var(--color-ivory); }
.audience__card--schools { background: var(--color-pick-me-up); }
.audience__card--hotels { background: var(--color-classic-light); }

/* Tablet only: 2-up grid, alternating content/picture so every row reads
   content-picture, then picture-content, all the way down. Explicit
   `order` on every item since this pairing differs from both the mobile
   single-column order and the desktop 4-up row layout. */
@media (min-width: 768px) and (max-width: 959px) {
  .stock__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience__tile--extra {
    display: block;
  }

  .audience__card--apartments { order: 1; }
  .audience__tile--man-browsing { order: 2; }
  .audience__tile--selecting-drink { order: 3; }
  .audience__card--gyms { order: 4; }
  .audience__card--workplaces { order: 5; }
  .audience__tile--candy { order: 6; }
  .audience__tile--coworkers { order: 7; }
  .audience__card--medical { order: 8; }
  .audience__card--schools { order: 9; }
  .audience__tile--salad { order: 10; }
  .audience__tile--woman-browsing { order: 11; }
  .audience__card--hotels { order: 12; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-ink);
  color: var(--color-on-dark);
  padding: var(--space-6) var(--space-6) var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.site-footer__wordmark img {
  width: 100%;
  max-width: 382px;
  height: auto;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.site-footer__contact,
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  font-size: var(--legal-size);
}

.site-footer__legal {
  font-weight: 500;
  color: var(--color-ivory);
}

.site-footer__legal a {
  text-decoration: none;
}

/* ---------- Inverse (dark-background) hover states ----------
   Add `.inverse` to any section with a dark/ink background (the footer,
   and any future one) so its links and button backgrounds hover to
   color-treat instead of the default color-midnight, which barely shows
   up against a dark background. */

.inverse a:hover,
.inverse a:active {
  color: var(--color-treat);
}

.inverse .btn:hover,
.inverse .btn:active {
  background: var(--color-treat);
  color: var(--color-ink);
}

/* =========================================================
   Desktop layout (>= 960px)
   ========================================================= */

@media (min-width: 960px) {
  body {
    padding-top: var(--header-height-d);
  }

  .site-header {
    padding: var(--space-6) var(--space-10);
  }

  .site-header__logo img {
    height: 38px;
  }

  .site-header__nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav,
  .mobile-nav.is-open {
    display: none;
  }

  .heading {
    font-size: var(--heading-size-d);
    line-height: var(--heading-line-d);
  }

  .eyebrow {
    font-size: var(--eyebrow-size-d);
    letter-spacing: 1.6px;
  }

  .hero__content {
    max-width: 700px;
    width: 700px;
  }

  .hero__content .body-text {
    font-size: var(--subhead-size-d);
    line-height: var(--subhead-line-d);
  }

  .btn--large {
    font-size: var(--button-large-size-d);
    line-height: var(--button-large-size-d);
    padding: var(--space-6);
  }

  .hero__floaters {
    --orbit-rx: clamp(169px, calc(169px + (100vw - 390px) * 0.3305), 516px);
    --orbit-ry: clamp(243px, calc(243px + (100vw - 390px) * 0.0610), 307px);
  }

  .hero__floaters--outer {
    --orbit-rx: clamp(271px, calc(271px + (100vw - 390px) * 0.4131), 705px);
    --orbit-ry: clamp(364px, calc(364px + (100vw - 390px) * 0.0763), 444px);
  }

  .hero__floater--diet-coke { width: 66px; }
  .hero__floater--potato-crisp { width: 71px; }
  .hero__floater--fiji-water { width: 47px; }
  .hero__floater--green-snack { width: 58px; }
  .hero__floater--poppi { width: 43px; }
  .hero__floater--reeses { width: 73px; }
  .hero__floater--san-pellegrino { width: 42px; }
  .hero__floater--boulder-chips { width: 67px; }

  .hero__floater-outer--almonds { width: 56px; }
  .hero__floater-outer--yogurt { width: 62px; }
  .hero__floater-outer--coffee { width: 48px; }
  .hero__floater-outer--pizza-wrap { width: 62px; }
  .hero__floater-outer--sandwich { width: 64px; }
  .hero__floater-outer--energy { width: 48px; }
  .hero__floater-outer--granola { width: 52px; }
  .hero__floater-outer--oats { width: 52px; }
  .hero__floater-outer--juice { width: 48px; }
  .hero__floater-outer--pretzels { width: 52px; }

  .benefits__inner {
    gap: var(--space-16);
    padding: var(--space-16);
    max-width: 1440px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      'intro    intro       intro'
      'man-shop open-copy   cookie'
      'stock    skyline     managed';
  }

  .benefits__intro {
    align-items: center;
    text-align: center;
  }

  .benefits__intro .heading,
  .benefits__intro .body-text {
    text-align: center;
  }

  .benefits__intro .body-text {
    font-size: var(--subhead-size-d);
    line-height: var(--subhead-line-d);
    max-width: 888px;
  }

  .benefits__copy h3,
  .audience__card h3,
  .faq__item h3 {
    font-size: var(--subhead-bold-size-d);
    line-height: var(--subhead-bold-line-d);
  }

  .benefits__copy p,
  .audience__card p,
  .faq__item p {
    font-size: var(--body-size-d);
    line-height: var(--body-line-d);
  }

  .benefits__collage {
    display: contents;
  }

  .benefits__copy--stock { grid-area: stock; }
  .benefits__copy--managed { grid-area: managed; }

  .benefits__copy--open,
  .benefits__copy--stock,
  .benefits__copy--managed {
    align-self: center;
  }

  .benefits__photo--man-shopping {
    grid-area: man-shop;
    height: 277px;
    border-radius: 50px;
  }

  .benefits__photo--cookie {
    grid-area: cookie;
    height: 221px;
    border-radius: 9999px;
  }

  .benefits__photo--skyline {
    grid-area: skyline;
    height: 361px;
    border-radius: 9999px;
  }

  .stock {
    gap: var(--space-10);
    padding: var(--space-16);
    max-width: 1440px;
    margin: 0 auto;
  }

  .stock__intro .body-text {
    font-size: var(--subhead-size-d);
    line-height: var(--subhead-line-d);
    max-width: 640px;
  }

  .stock__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-16);
  }

  .stock__category h3 {
    font-size: var(--subhead-bold-size-d);
    line-height: var(--subhead-bold-line-d);
  }

  .stock__category li {
    font-size: var(--body-size-d);
    line-height: var(--body-line-d);
  }

  .process {
    gap: var(--space-10);
    padding: var(--space-16);
    max-width: 1440px;
    margin: 0 auto;
  }

  .process__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .process__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-16);
  }

  .process__step h3 {
    font-size: var(--subhead-bold-size-d);
    line-height: var(--subhead-bold-line-d);
  }

  .process__step p {
    font-size: var(--body-size-d);
    line-height: var(--body-line-d);
  }

  .faq {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-10);
    padding: var(--space-16);
    max-width: 1440px;
    margin: 0 auto;
  }

  .faq > .faq__header {
    flex: 0 0 410px;
  }

  .faq__list {
    flex: 1;
    max-width: 831px;
    gap: 48px;
  }

  /* Accordion collapse (caret + closed-by-default) is a mobile/tablet
     pattern only — desktop always shows everything expanded. The actual
     open/closed state is forced via the real `open` property in JS
     (see js/main.js): browsers hide collapsed <details> content through
     an internal mechanism that plain `display` CSS can't override, so
     forcing it open is the only reliable way to do this. */
  .stock__category summary,
  .faq__item summary {
    cursor: default;
    pointer-events: none;
  }

  .stock__category summary::after,
  .faq__item summary::after {
    display: none;
  }

  .faq .btn {
    width: auto;
    align-self: flex-start;
  }

  .audience__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .audience__tile {
    aspect-ratio: 360 / 421;
  }

  .audience__tile--extra {
    display: block;
  }

  .audience__tile--woman-browsing {
    /* Mobile pins this tile last (order: 99); on the 4-column desktop
       grid it needs to sit in its natural DOM position instead, to land
       in row 3 (picture-content-picture-content). */
    order: 0;
  }

  .audience__card {
    padding: 96px var(--space-10) var(--space-10);
    height: 100%;
  }

  .site-footer {
    flex-direction: column;
    padding: var(--space-16) 0 var(--space-8);
    gap: var(--space-16);
  }

  .site-footer__wordmark {
    padding: 0 var(--space-4);
  }

  .site-footer__wordmark img {
    max-width: 1410px;
  }

  .site-footer__nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-10);
  }

  .site-footer__contact {
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
  }

  .site-footer__legal {
    flex-direction: row;
    gap: var(--space-6);
  }
}

/* ---------- Legal pages (privacy, terms) ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}

.legal .heading {
  font-size: var(--heading-size-m);
  line-height: var(--heading-line-m);
  margin-bottom: var(--space-2);
}

.legal__updated {
  margin: 0 0 var(--space-10);
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
  opacity: 0.6;
}

.legal__intro {
  margin: 0 0 var(--space-10);
  font-size: var(--subhead-size-m);
  line-height: var(--subhead-line-m);
}

.legal h2 {
  margin: var(--space-10) 0 var(--space-3);
  font-weight: 600;
  font-size: var(--subhead-bold-size-m);
  line-height: var(--subhead-bold-line-m);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  margin: 0 0 var(--space-4);
  font-weight: 400;
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
}

.legal ul,
.legal ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
}

.legal a {
  text-decoration: underline;
}

.legal a:hover,
.legal a:active {
  color: var(--color-midnight);
}

.legal__placeholder {
  background: var(--color-ivory);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (min-width: 960px) {
  .legal {
    padding: var(--space-16) var(--space-10) calc(var(--space-16) * 1.5);
  }

  .legal .heading {
    font-size: var(--heading-size-d);
    line-height: var(--heading-line-d);
  }

  .legal__updated,
  .legal p,
  .legal li {
    font-size: var(--body-size-d);
    line-height: var(--body-line-d);
  }

  .legal__intro {
    font-size: var(--subhead-size-d);
    line-height: var(--subhead-line-d);
  }

  .legal h2 {
    font-size: var(--subhead-bold-size-d);
    line-height: var(--subhead-bold-line-d);
  }
}

/* ---------- Forms (request, support) ---------- */

.form-page {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}

.form-page__intro {
  margin: 0 0 var(--space-10);
}

.form-page__intro .heading {
  margin-bottom: var(--space-3);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form[hidden] {
  display: none;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-weight: 600;
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
}

.form__label-optional {
  font-weight: 400;
}

.form__input,
.form__textarea {
  font-family: var(--font-body);
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-ivory);
  border-radius: 12px;
  padding: var(--space-4);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__input:focus-visible,
.form__textarea:focus-visible {
  outline: 2px solid var(--color-treat);
  outline-offset: 2px;
  border-color: var(--color-treat);
}

.form__input[aria-invalid='true'],
.form__textarea[aria-invalid='true'] {
  border-color: var(--color-ember);
}

.form__error {
  display: none;
  color: var(--color-ember);
  font-size: var(--legal-size);
  line-height: 20px;
}

.form__error.is-visible {
  display: block;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  align-self: flex-start;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form__success,
.form__failure {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.form__success.is-visible,
.form__failure.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .form__success,
  .form__failure {
    transition: none;
  }
}

.form__success {
  padding: var(--space-8);
  border-radius: 24px;
  background: var(--color-ivory);
}

.form__success h2 {
  margin: 0 0 var(--space-2);
  font-weight: 600;
  font-size: var(--subhead-bold-size-m);
  line-height: var(--subhead-bold-line-m);
}

.form__success p {
  margin: 0;
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
}

.form__failure {
  padding: var(--space-6);
  border: 1px solid var(--color-ember);
  border-radius: 16px;
}

.form__failure p {
  margin: 0;
  font-size: var(--body-size-m);
  line-height: var(--body-line-m);
}

.form__failure a {
  text-decoration: underline;
}

@media (min-width: 960px) {
  .form-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-10) calc(var(--space-16) * 1.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "intro form"
      "intro status";
    gap: var(--space-16);
    align-items: start;
  }

  .form-page__intro {
    grid-area: intro;
    margin-bottom: 0;
  }

  .form {
    grid-area: form;
  }

  .form__status {
    grid-area: status;
  }

  .form-page__intro .eyebrow {
    font-size: var(--eyebrow-size-d);
    letter-spacing: 1.6px;
  }

  .form-page__intro .heading {
    font-size: var(--heading-size-d);
    line-height: var(--heading-line-d);
  }

  .form-page__intro .body-text {
    font-size: var(--subhead-size-d);
    line-height: var(--subhead-line-d);
  }

  .form__label,
  .form__input,
  .form__textarea,
  .form__success p,
  .form__failure p {
    font-size: var(--body-size-d);
    line-height: var(--body-line-d);
  }
}
