/* ==========================================================================
   SALINITY — design-7 "SPLASH"
   Soft-3D clay / toy-like tactile playground. Mobile-first.
   ========================================================================== */

:root {
  --color-primary: #fd7f71;
  --color-primary-dark: #e06858;
  --color-primary-light: #ffa99e;
  --color-navy: #14233c;
  --color-navy-dark: #0e1a2d;
  --color-red: #A42325;
  --color-cream: #fcf5f4;
  --color-dark: #1a1a1a;
  --color-dark-secondary: #353235;
  --color-shadow-blue: #718da5;
  --color-cultured-pearl: #f2f5f7;
  --color-white: #ffffff;
  --color-gray-100: #fef8f6;
  --color-gray-200: #f0e6e3;
  --color-gray-300: #ddcccc;
  --color-gray-400: #aaaaaa;
  --color-gray-500: #888888;
  --color-gray-600: #666666;
  --color-gray-700: #444444;

  --font-heading: "roc-grotesk-extrawide", sans-serif;
  --font-family: "roc-grotesk", sans-serif;

  --r-clay: 32px;
  --r-clay-lg: 40px;
  --r-clay-sm: 24px;

  /* clay shadow recipes */
  --clay-raise:
    inset 3px 4px 6px rgba(255, 255, 255, 0.85),
    inset -4px -6px 10px rgba(20, 35, 60, 0.08),
    0 14px 28px -10px rgba(20, 35, 60, 0.18);
  --clay-raise-soft:
    inset 2px 3px 5px rgba(255, 255, 255, 0.7),
    inset -3px -5px 8px rgba(20, 35, 60, 0.06),
    0 10px 22px -8px rgba(20, 35, 60, 0.14);
  --clay-press:
    inset 4px 5px 9px rgba(20, 35, 60, 0.16),
    inset -3px -4px 7px rgba(255, 255, 255, 0.75);
  --clay-coral:
    inset 3px 4px 6px rgba(255, 255, 255, 0.45),
    inset -4px -6px 10px rgba(160, 45, 35, 0.28),
    0 14px 26px -8px rgba(253, 127, 113, 0.55);
  --clay-navy:
    inset 3px 4px 6px rgba(255, 255, 255, 0.18),
    inset -4px -6px 10px rgba(0, 0, 0, 0.4),
    0 14px 26px -8px rgba(20, 35, 60, 0.45);

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1400px;
  --pad: 24px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-family);
  font-weight: 400;
  background: var(--color-cream);
  color: var(--color-navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- type ---------- */
.h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.7rem, 5.5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-navy);
}
.h2--light { color: var(--color-cream); }

.section-copy {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--color-dark-secondary);
  max-width: 62ch;
}

/* ---------- clay buttons ---------- */
.clay-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-cultured-pearl);
  color: var(--color-navy);
  box-shadow: var(--clay-raise);
  transition: transform 0.18s var(--ease-smooth), box-shadow 0.18s var(--ease-smooth);
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.clay-btn:hover { transform: translateY(-2px) scale(1.02); }
.clay-btn:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: var(--clay-press);
}
.clay-btn:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }

.clay-btn--coral {
  background: var(--color-primary);
  color: var(--color-navy-dark);
  box-shadow: var(--clay-coral);
}
.clay-btn--coral:active {
  box-shadow:
    inset 4px 5px 10px rgba(160, 45, 35, 0.4),
    inset -3px -4px 7px rgba(255, 255, 255, 0.3);
}
.clay-btn--navy {
  background: var(--color-navy);
  color: var(--color-cream);
  box-shadow: var(--clay-navy);
}
.clay-btn--navy:active {
  box-shadow:
    inset 4px 5px 10px rgba(0, 0, 0, 0.55),
    inset -3px -4px 7px rgba(255, 255, 255, 0.12);
}
.clay-btn--ghost {
  background: var(--color-cream);
  box-shadow: var(--clay-raise-soft);
}
.clay-btn--small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.72rem;
}

/* button ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  pointer-events: none;
}

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--color-cultured-pearl);
  color: var(--color-primary-dark);
  box-shadow: var(--clay-press);
}
.badge--coral {
  background: var(--color-primary);
  color: var(--color-navy-dark);
  box-shadow:
    inset 3px 4px 6px rgba(255, 255, 255, 0.4),
    inset -4px -6px 10px rgba(160, 45, 35, 0.25),
    0 10px 20px -8px rgba(253, 127, 113, 0.5);
}
.badge--navy {
  background: rgba(20, 35, 60, 0.06);
  color: var(--color-navy);
}

/* ==========================================================================
   ANNOUNCEMENT
   ========================================================================== */
.announce {
  background: var(--color-navy);
  color: var(--color-cream);
  overflow: hidden;
  padding: 9px 0;
}
.announce__track {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.announce__pill {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--color-primary-light);
}
.announce__txt { color: rgba(252, 245, 244, 0.8); }
@media (max-width: 767px) {
  .announce__dup { display: none; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px var(--pad) 0;
  transition: transform 0.45s var(--ease-smooth);
}
.header.is-hidden { transform: translateY(-130%); }

.header__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(252, 245, 244, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 10px 14px 10px 24px;
  box-shadow: var(--clay-raise-soft);
}
.header__logo img { height: 24px; width: auto; }

.header__nav { display: none; }
@media (min-width: 1024px) {
  .header__nav { display: flex; gap: 4px; }
  .header__nav a {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--color-navy);
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  }
  .header__nav a:hover {
    background: var(--color-cultured-pearl);
    box-shadow: var(--clay-press);
    color: var(--color-primary-dark);
  }
}

.header__cart {
  position: relative;
  width: 48px;
  min-height: 48px;
  padding: 0;
  overflow: visible; /* badge must not be clipped */
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-navy-dark);
  box-shadow: var(--clay-coral);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-navy);
  color: var(--color-cream);
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(20, 35, 60, 0.3);
}
.cart-badge[hidden] { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 7vw, 90px);
  overflow: hidden;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 32px; }
}

.hero__copy { max-width: 620px; }
@media (min-width: 1024px) { .hero__copy { max-width: none; } }

.hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.55rem, 6.2vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin: 22px 0 20px;
}

.hero__lede {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--color-dark-secondary);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* product blob */
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px;
}
.hero__blob {
  position: relative;
  width: min(78vw, 460px);
  aspect-ratio: 1;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  overflow: hidden;
  box-shadow:
    inset 4px 6px 12px rgba(255, 255, 255, 0.25),
    inset -6px -10px 18px rgba(0, 0, 0, 0.35),
    0 30px 60px -20px rgba(20, 35, 60, 0.45);
  background: var(--color-navy);
  cursor: grab;
}
.hero__blob:active { cursor: grabbing; }
.hero__blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero__blob-shadow {
  position: absolute;
  bottom: -8px;
  width: 56%;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 35, 60, 0.22), transparent 70%);
  z-index: -1;
}

.hero__hint {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 40px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-shadow-blue);
}
@media (pointer: coarse) { .hero__hint { display: none; } }

/* floating draggable clay toys */
.hero__playground {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.floater {
  position: absolute;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  will-change: transform;
}
.floater:active { cursor: grabbing; }

.floater--blob1 {
  width: clamp(70px, 9vw, 130px); height: clamp(70px, 9vw, 130px);
  top: 6%; left: -2%;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: var(--color-primary-light);
  box-shadow:
    inset 5px 7px 12px rgba(255, 255, 255, 0.55),
    inset -6px -8px 14px rgba(224, 104, 88, 0.4),
    0 18px 32px -12px rgba(253, 127, 113, 0.5);
}
.floater--blob2 {
  width: clamp(48px, 6vw, 90px); height: clamp(48px, 6vw, 90px);
  top: auto; bottom: 10%; left: 29%;
  border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
  background: var(--color-navy);
  box-shadow:
    inset 4px 6px 10px rgba(255, 255, 255, 0.2),
    inset -5px -7px 12px rgba(0, 0, 0, 0.45),
    0 16px 30px -12px rgba(20, 35, 60, 0.5);
}
.floater--blob3 {
  width: clamp(56px, 7vw, 104px); height: clamp(56px, 7vw, 104px);
  top: 10%; right: 4%;
  border-radius: 55% 45% 42% 58% / 48% 52% 48% 52%;
  background: var(--color-primary);
  box-shadow: var(--clay-coral);
}

/* salt grains */
.floater--grain1, .floater--grain2, .floater--grain3 {
  background: var(--color-white);
  box-shadow:
    inset 3px 4px 6px rgba(255, 255, 255, 0.9),
    inset -3px -5px 8px rgba(113, 141, 165, 0.35),
    0 10px 20px -8px rgba(113, 141, 165, 0.45);
}
.floater--grain1 { width: 30px; height: 30px; top: 38%; left: 42%; border-radius: 40% 60% 50% 50% / 55% 45% 55% 45%; }
.floater--grain2 { width: 22px; height: 22px; top: 78%; right: 14%; border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; }
.floater--grain3 { width: 38px; height: 38px; top: 22%; left: 56%; border-radius: 50% 50% 42% 58% / 58% 42% 58% 42%; }

.floater--ring {
  width: clamp(54px, 6.5vw, 96px); height: clamp(54px, 6.5vw, 96px);
  bottom: 6%; right: 8%; top: auto;
  border-radius: 50%;
  background: var(--color-cream);
  box-shadow:
    inset 0 0 0 14px var(--color-cultured-pearl),
    inset 5px 7px 12px rgba(255, 255, 255, 0.8),
    inset -6px -8px 14px rgba(113, 141, 165, 0.25),
    0 16px 30px -12px rgba(113, 141, 165, 0.4);
}

@media (max-width: 1023px) {
  .floater--grain3, .floater--ring { display: none; }
  .floater--blob2 { bottom: 4%; left: 6%; }
  .floater--grain1 { top: 30%; left: auto; right: 8%; }
}

/* ==========================================================================
   SECTION SURFACES + DIVIDERS
   ========================================================================== */
.section--pearl { background: var(--color-cultured-pearl); }
.section--cream { background: var(--color-cream); }
.section--navy { background: var(--color-navy); }

.divider { line-height: 0; margin-bottom: -1px; }
.divider svg { width: 100%; height: clamp(48px, 8vw, 110px); display: block; }
.divider--pearl { background: transparent; }
.divider--cream { background: var(--color-cultured-pearl); }
.divider--navy { background: var(--color-cultured-pearl); }
.divider--from-navy { background: var(--color-navy); }
.divider--footer { background: var(--color-cream); }

/* ==========================================================================
   SALT IN / SALT OUT
   ========================================================================== */
.saltio { padding: clamp(64px, 9vw, 130px) 0; }

.saltio__inner {
  display: grid;
  gap: 40px;
  justify-items: center;
  text-align: center;
}

.saltio__words {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
@media (min-width: 768px) {
  .saltio__words { flex-direction: row; gap: 26px; }
}

.saltio__word {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 3rem);
  letter-spacing: 0.02em;
  padding: clamp(18px, 2.6vw, 30px) clamp(28px, 4vw, 52px);
  border-radius: var(--r-clay-lg);
}
.saltio__word--in {
  background: var(--color-primary);
  color: var(--color-navy-dark);
  box-shadow: var(--clay-coral);
  transform: rotate(-2.5deg);
}
.saltio__word--out {
  background: var(--color-navy);
  color: var(--color-cream);
  box-shadow: var(--clay-navy);
  transform: rotate(2deg);
}

.saltio__copy {
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  max-width: 30ch;
  color: var(--color-navy);
  font-weight: 700;
}
.saltio__copy em {
  font-style: normal;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 800;
}

/* ==========================================================================
   WHY SALINITY
   ========================================================================== */
.why { padding: clamp(64px, 8vw, 110px) 0 clamp(24px, 3vw, 40px); }

.why__head {
  display: grid;
  gap: 22px;
  justify-items: start;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 760px;
}

/* snap rows (mobile carousels) */
.snap-row {
  display: grid;
  gap: 20px;
}
@media (max-width: 767px) {
  .snap-row {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding: 8px 4px 28px;
    margin-inline: -4px;
    scrollbar-width: none;
  }
  .snap-row::-webkit-scrollbar { display: none; }
  .snap-row > * { scroll-snap-align: center; }
}
@media (min-width: 768px) {
  .why__cards { grid-template-columns: repeat(3, 1fr); }
}

.collection-card {
  position: relative;
  display: block;
  border-radius: var(--r-clay-lg);
  background: var(--color-white);
  padding: 14px 14px 0;
  box-shadow: var(--clay-raise);
  transition: box-shadow 0.3s var(--ease-smooth);
  will-change: transform;
}
.collection-card__img {
  border-radius: var(--r-clay-sm);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--clay-press);
}
.collection-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}
.collection-card:hover .collection-card__img img { transform: scale(1.06); }
.collection-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 10px 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-navy);
}
.collection-card__label::after {
  content: "→";
  font-family: var(--font-family);
  color: var(--color-primary-dark);
  transition: transform 0.25s var(--ease-smooth);
}
.collection-card:hover .collection-card__label::after { transform: translateX(6px); }

/* ==========================================================================
   SHOP
   ========================================================================== */
.shop { padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 8vw, 110px); }

@media (min-width: 768px) {
  .shop__cards { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 767px) {
  .shop__cards { grid-auto-columns: 86%; }
}

.product-card {
  border-radius: var(--r-clay-lg);
  background: var(--color-white);
  box-shadow: var(--clay-raise);
  padding: clamp(18px, 2.4vw, 28px);
  display: grid;
  gap: 0;
}
@media (min-width: 1024px) {
  .product-card { grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center; }
}

.product-card__blob {
  border-radius: 56% 44% 52% 48% / 50% 56% 44% 50%;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-navy);
  box-shadow:
    inset 4px 6px 10px rgba(255, 255, 255, 0.2),
    inset -5px -8px 14px rgba(0, 0, 0, 0.35),
    0 18px 36px -14px rgba(20, 35, 60, 0.4);
}
.product-card__blob--alt { border-radius: 46% 54% 48% 52% / 56% 46% 54% 44%; }
.product-card__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }

.product-card__body { padding-top: 20px; display: grid; gap: 8px; justify-items: start; }
@media (min-width: 1024px) { .product-card__body { padding-top: 0; } }

.product-card__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-navy);
}
.product-card__sub { font-size: 0.86rem; color: var(--color-gray-600); }

.product-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
  margin-top: 12px;
}
.product-card__row .add-to-cart { white-space: nowrap; flex: 1 1 auto; }
.product-card__price { flex: 0 0 auto; }
.product-card__price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-navy);
  background: var(--color-cultured-pearl);
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--clay-press);
}
.product-card__details {
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.product-card__details:hover { color: var(--color-red); }

/* ==========================================================================
   NO SHADE
   ========================================================================== */
.noshade { padding: clamp(64px, 8vw, 110px) 0; }

.noshade__head {
  display: grid;
  gap: 26px;
  margin-bottom: clamp(44px, 5vw, 64px);
}
@media (min-width: 1024px) {
  .noshade__head { grid-template-columns: auto 1fr; gap: 64px; align-items: start; }
}
.noshade__copy strong { color: var(--color-navy); }

.claims {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) { .claims { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .claims { grid-template-columns: repeat(5, 1fr); } }

.claim {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  background: var(--color-white);
  border-radius: var(--r-clay);
  padding: 26px 16px;
  box-shadow: var(--clay-raise);
  transition: transform 0.25s var(--ease-smooth);
}
.claim:hover { transform: translateY(-6px) rotate(-1deg); }
.claim:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }

.claim__well {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-navy); /* white icons need a dark well */
  box-shadow:
    inset 4px 5px 9px rgba(0, 0, 0, 0.45),
    inset -3px -4px 7px rgba(255, 255, 255, 0.14),
    0 10px 20px -8px rgba(20, 35, 60, 0.35);
}
.claim__well img { width: 48px; height: 48px; object-fit: contain; }
.claim__well--flag { overflow: hidden; }
.claim__well--flag img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 50%;
}
.claim__label {
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--color-navy);
}

/* ==========================================================================
   ELECTROLYTES (navy)
   ========================================================================== */
.lytes {
  padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 80px);
  color: var(--color-cream);
}

.lytes__head {
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(44px, 5vw, 64px);
}

.lytes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin-inline: auto;
}
@media (min-width: 600px) { .lytes__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lytes__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.lyte {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 16px 22px 16px 16px;
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-navy);
  box-shadow:
    inset 3px 4px 6px rgba(255, 255, 255, 0.9),
    inset -4px -6px 10px rgba(20, 35, 60, 0.12),
    0 18px 34px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  position: relative;
}
.lyte:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 3px; }

.lyte__well {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-cultured-pearl);
  box-shadow: var(--clay-press);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}
.lyte:nth-child(even) .lyte__well { color: var(--color-navy); }

.lyte__meta { display: grid; gap: 2px; }
.lyte__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--color-navy);
}
.lyte__amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  font-variant-numeric: tabular-nums;
}

/* confetti grains */
.salt-grain {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 45% 55% 50% 50%;
  pointer-events: none;
  z-index: 200;
}

.lytes__art {
  margin-top: clamp(44px, 5vw, 64px);
  display: grid;
  justify-items: center;
}
.lytes__art img {
  max-width: min(100%, 860px);
  border-radius: var(--r-clay-lg);
  box-shadow:
    inset 0 0 0 0 transparent,
    0 26px 50px -18px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   FAMILY
   ========================================================================== */
.family { padding: clamp(64px, 8vw, 120px) 0; }

.family__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 1024px) {
  .family__grid { grid-template-columns: 0.95fr 1.05fr; gap: 64px; }
}

.family__stage { display: grid; place-items: center; }
.family__blob {
  width: min(82vw, 480px);
  aspect-ratio: 1;
  border-radius: 47% 53% 58% 42% / 55% 46% 54% 45%;
  overflow: hidden;
  background: var(--color-primary-light);
  box-shadow:
    inset 4px 6px 12px rgba(255, 255, 255, 0.45),
    inset -6px -10px 18px rgba(224, 104, 88, 0.35),
    0 30px 56px -20px rgba(253, 127, 113, 0.5);
}
.family__blob img { width: 100%; height: 100%; object-fit: cover; }

.family__copy { display: grid; gap: 22px; justify-items: start; }
.family__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter { padding: 0 0 clamp(72px, 8vw, 120px); }

.newsletter__card {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  background: var(--color-primary);
  border-radius: var(--r-clay-lg);
  padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 80px);
  box-shadow:
    inset 4px 6px 12px rgba(255, 255, 255, 0.4),
    inset -6px -10px 18px rgba(160, 45, 35, 0.3),
    0 30px 60px -22px rgba(253, 127, 113, 0.6);
  overflow: hidden;
}
.newsletter__card::before,
.newsletter__card::after {
  content: "";
  position: absolute;
  border-radius: 55% 45% 50% 50% / 48% 56% 44% 52%;
  background: var(--color-primary-light);
  box-shadow:
    inset 4px 5px 8px rgba(255, 255, 255, 0.5),
    inset -4px -6px 10px rgba(224, 104, 88, 0.4);
  pointer-events: none;
}
.newsletter__card::before { width: 120px; height: 120px; top: -36px; left: -30px; }
.newsletter__card::after { width: 90px; height: 90px; bottom: -26px; right: -20px; }
.newsletter__card > * { position: relative; z-index: 1; }

.newsletter__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  letter-spacing: 0.01em;
  color: var(--color-navy-dark);
  line-height: 1.08;
}
.newsletter__copy {
  color: var(--color-navy-dark);
  max-width: 46ch;
  font-weight: 700;
}

.newsletter__form {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
}
@media (min-width: 600px) {
  .newsletter__form { grid-template-columns: 1fr auto; }
}
.newsletter__input {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-navy);
  background: var(--color-cream);
  box-shadow:
    inset 4px 5px 9px rgba(160, 45, 35, 0.25),
    inset -3px -4px 7px rgba(255, 255, 255, 0.8);
}
.newsletter__input::placeholder { color: var(--color-gray-500); }
.newsletter__input:focus { outline: 3px solid var(--color-navy); outline-offset: 2px; }
.newsletter__input.is-error { outline: 3px solid var(--color-red); }

.newsletter__disclaimer {
  font-size: 0.74rem;
  color: rgba(14, 26, 45, 0.75);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--color-navy); color: var(--color-cream); }

.footer__inner {
  display: grid;
  gap: 44px;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

.footer__brand { display: grid; gap: 18px; justify-items: start; max-width: 420px; }
.footer__brand img { height: 28px; width: auto; }
.footer__brand p { color: rgba(252, 245, 244, 0.75); font-size: 0.94rem; }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.footer__col { display: grid; gap: 12px; justify-items: start; }
.footer__col-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 4px;
}
.footer__col a {
  color: rgba(252, 245, 244, 0.85);
  font-size: 0.92rem;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--color-primary-light); }

.footer__legal {
  border-top: 1px solid rgba(252, 245, 244, 0.12);
  padding-top: 22px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px) + 84px);
  font-size: 0.8rem;
  color: rgba(252, 245, 244, 0.55);
}
@media (min-width: 1024px) {
  .footer__legal { padding-bottom: 32px; }
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(14, 26, 45, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.cart-overlay.is-open { opacity: 1; }

.cart {
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 95;
  width: min(420px, calc(100vw - 20px));
  display: flex;
  flex-direction: column;
  background: var(--color-cream);
  border-radius: var(--r-clay);
  box-shadow:
    inset 3px 4px 6px rgba(255, 255, 255, 0.85),
    inset -4px -6px 10px rgba(20, 35, 60, 0.06),
    -20px 0 60px -10px rgba(14, 26, 45, 0.4);
  transform: translateX(calc(100% + 30px));
  visibility: hidden;
  transition: transform 0.55s var(--ease-smooth), visibility 0s linear 0.55s;
  padding: 22px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}
.cart.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.55s var(--ease-smooth);
}

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cart__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart__close { width: 44px; padding: 0; border-radius: 50%; }

.cart__empty {
  flex: 1;
  display: grid;
  gap: 18px;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.cart__empty p { font-weight: 700; color: var(--color-gray-600); }
.cart__empty-blob {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
  background: var(--color-cultured-pearl);
  color: var(--color-shadow-blue);
  box-shadow: var(--clay-press);
}
.cart.has-items .cart__empty { display: none; }

.cart__items {
  flex: 1;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 4px 2px;
}
.cart.has-items .cart__items { display: flex; }

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--r-clay-sm);
  padding: 12px;
  box-shadow: var(--clay-raise-soft);
}
.cart-item__img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--clay-press);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__meta { flex: 1; display: grid; gap: 2px; }
.cart-item__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: uppercase;
}
.cart-item__price { font-size: 0.84rem; color: var(--color-gray-600); }

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item__qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-cultured-pearl);
  box-shadow: var(--clay-raise-soft);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.15s var(--ease-smooth), box-shadow 0.15s var(--ease-smooth);
}
.cart-item__qty button:active { transform: scale(0.88); box-shadow: var(--clay-press); }
.cart-item__qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart__foot {
  display: none;
  gap: 10px;
  flex-direction: column;
  padding-top: 16px;
  border-top: 1px solid var(--color-gray-200);
}
.cart.has-items .cart__foot { display: flex; }

.cart__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
}
.cart__subtotal strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-navy);
}
.cart__note { font-size: 0.76rem; color: var(--color-gray-500); }
.cart__checkout, .cart__view { width: 100%; }

/* fly-to-cart clone */
.fly-tub {
  position: fixed;
  z-index: 300;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 14px 28px -8px rgba(20, 35, 60, 0.5);
}

/* ==========================================================================
   MOBILE DOCK
   ========================================================================== */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  gap: 4px;
  background: rgba(252, 245, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 8px;
  box-shadow:
    inset 3px 4px 6px rgba(255, 255, 255, 0.9),
    inset -4px -6px 10px rgba(20, 35, 60, 0.08),
    0 18px 40px -10px rgba(14, 26, 45, 0.35);
}
@media (min-width: 1024px) { .dock { display: none; } }

.dock__item {
  position: relative;
  display: grid;
  gap: 3px;
  justify-items: center;
  align-content: center;
  min-width: 76px;
  padding: 9px 10px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-shadow-blue);
  transition: color 0.2s ease, background 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), transform 0.15s var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}
.dock__item:active { transform: scale(0.93); }
.dock__item.is-active {
  color: var(--color-primary-dark);
  background: var(--color-cultured-pearl);
  box-shadow: var(--clay-press);
}
.cart-badge--dock { top: 2px; right: 10px; }

@media (max-width: 380px) {
  .dock__item { min-width: 66px; padding-inline: 6px; }
}

/* ==========================================================================
   POP-IN initial state (JS removes; no-JS fallback stays visible)
   ========================================================================== */
.js [data-pop] { opacity: 0; }
.js.reduced-motion [data-pop] { opacity: 1; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
