/* ============================================================================
   KRUSH PLATINUM — HERO v2 (Hyro/JSHealth/Squatch-inspired)
   ----------------------------------------------------------------------------
   Design language: bright, warm, friendly, modern. NO dark/metallic surfaces
   in the hero. Asymmetric 55/45 mosaic + buy column. All-caps bold H1.
   Krush brand green pill CTA. Yellow accent tiles for energy.

   Load AFTER page.css to override hero-only styles.
   ============================================================================ */

/* Local accent tokens (additive to existing tokens.css) */
:root {
  --color-accent-yellow:      #F4D666;  /* Hyro-style benefit tile yellow */
  --color-accent-yellow-deep: #E8C44A;
  --color-accent-yellow-tint: #FBF1C9;
}

/* ============================================================================
   1. HERO SECTION CONTAINER
   ============================================================================ */
.s-hero {
  background: var(--color-surface-cream);
  padding: var(--space-8) 0 var(--space-12);
  position: relative;
}

.s-hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .s-hero {
    padding: var(--space-10) 0 var(--space-12);
  }
  .s-hero__inner {
    grid-template-columns: 55fr 45fr;
    gap: var(--space-10);
    align-items: stretch;
  }
}

/* ============================================================================
   2. LEFT — MOSAIC (Hyro-style)
   ----------------------------------------------------------------------------
   Desktop grid:
   ┌──────────────────┬───────────────┐
   │                  │ yellow tile 1 │
   │   BOTTLE CARD    ├───────────────┤
   │   (large, white) │ yellow tile 2 │
   │                  ├───────────────┤
   │                  │ green tile 3  │
   └──────────────────┴───────────────┘
   ============================================================================ */

.s-hero__gallery {
  position: relative;
}

.s-hero .s-hero__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas: none;
  gap: var(--space-3);
  min-height: 480px;
}

@media (min-width: 768px) {
  .s-hero .s-hero__mosaic {
    /* Desktop grid:
       Rows 1–3: bottle (col 1, spans 3 rows) | yellow/yellow/green (col 2, stacked)
       Row 4:    image tile A (col 1)         | image tile B (col 2) */
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr 1fr auto;
    grid-template-areas: none;
    gap: var(--space-4);
    min-height: 640px;
  }
}

/* Bottle hero tile — column 1, rows 1–3 (row 4 is for new image tiles) */
.s-hero .s-hero__tile--bottle {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  background: var(--color-surface-cream-deep);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-4);
  min-height: 100%;
  height: 100%;
}

/* Small green pill at top-left of bottle card */
.s-hero__tile--bottle::before {
  content: 'PLATINUM TIER';
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--color-brand-green);
  color: var(--color-surface-white);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}

.s-hero__tile--bottle img {
  max-width: 88%;
  max-height: 95%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(31, 30, 25, 0.12));
  position: relative;
  z-index: 1;
}

/* Soft sun gradient behind bottle */
.s-hero__tile--bottle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% 45%,
    rgba(244, 214, 102, 0.18) 0%,
    rgba(244, 214, 102, 0.08) 30%,
    transparent 70%
  );
  pointer-events: none;
}

/* Accent tiles (yellow + green) */
.s-hero__tile--accent {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .s-hero__tile--accent {
    padding: var(--space-5);
  }
}

.s-hero__tile--accent .tile-icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}

.s-hero__tile--accent .tile-headline {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

.s-hero__tile--accent .tile-sub {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0;
  opacity: 0.78;
}

/* Yellow tile — primary energy accent */
.s-hero__tile--yellow {
  background: var(--color-accent-yellow);
  color: var(--color-neutral-900);
}
.s-hero__tile--yellow .tile-icon { color: var(--color-neutral-900); }

/* Green tile — brand anchor */
.s-hero__tile--green {
  background: var(--color-brand-green);
  color: var(--color-surface-white);
}
.s-hero__tile--green .tile-icon,
.s-hero__tile--green .tile-headline { color: var(--color-surface-white); }
.s-hero__tile--green .tile-sub { color: rgba(255,255,255,0.85); }

/* NEW: Image tiles in row 4 (below bottle + accent stack on desktop) */
.s-hero__tile--image {
  background: var(--color-surface-cream-deep);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.s-hero__tile--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .s-hero__tile--image {
    aspect-ratio: auto;
    min-height: 180px;
  }
  .s-hero__tile--image-a { grid-column: 1 / 2; grid-row: 4; }
  .s-hero__tile--image-b { grid-column: 2 / 3; grid-row: 4; }
}

/* On mobile: bottle full-width on top, accents in a row, image tiles in a row below */
@media (max-width: 767px) {
  .s-hero__mosaic {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .s-hero__tile--bottle {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 320px;
  }
  .s-hero__tile--accent {
    grid-row: 2;
  }
  .s-hero__tile--image {
    grid-row: 3;
    grid-column: span 3;
  }
  /* Keep mobile to a single image tile to stay clean on small screens */
  .s-hero__tile--image-b { display: none; }
}

/* ============================================================================
   3. RIGHT — BUY COLUMN
   ============================================================================ */

.s-hero__buy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1024px) {
  .s-hero__buy {
    padding-left: var(--space-2);
    justify-content: center;
    gap: 10px;
  }
}

/* Rating row */
.s-hero__rating-row {
  font-size: var(--text-small);
  color: var(--color-text-mid);
  margin: 0;
}
.s-hero__rating-row .c-stars__label {
  font-weight: var(--weight-bold);
  color: var(--color-text-high);
}
.s-hero__rating-row .c-stars__count {
  color: var(--color-text-mid);
}

/* Eyebrow — Krush green, bold caps, no leading rule */
.s-hero .t-eyebrow--platinum {
  color: var(--color-brand-green);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  display: inline-block;
}

/* H1 — Hyro-style, bold all-caps, sized so CTA stays above fold */
.s-hero__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(1.5rem, 1.05rem + 1.8vw, 2.5rem);   /* 24 → 40px */
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-text-high);
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
  max-width: 18ch;
}

/* Lead — tight rhythm, sits in 2 lines on desktop */
.s-hero .t-lead {
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: clamp(0.9375rem, 0.875rem + 0.3vw, 1rem);  /* 15 → 16px */
  line-height: 1.45;
  color: var(--color-text-body);
  max-width: 52ch;
  margin: 0;
}

/* USP bullets — two columns, tight, with green checks */
.s-hero__usp-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-hero__usp-bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-small);
  font-weight: var(--weight-regular);
  color: var(--color-text-body);
  line-height: 1.4;
}

.s-hero__usp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 14px;
  height: 14px;
  background-color: var(--color-brand-green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23fff' d='M6.5 11.5 3 8l1-1 2.5 2.5L12 4l1 1z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23fff' d='M6.5 11.5 3 8l1-1 2.5 2.5L12 4l1 1z'/></svg>") center/contain no-repeat;
}

@media (max-width: 480px) {
  .s-hero__usp-bullets { grid-template-columns: 1fr; }
}

/* Hide the original micro-USPs row — proof strip below the hero handles this */
.s-hero__micro-usps { display: none; }

/* ============================================================================
   4. BUY CARD — clean white card with rounded corners and soft shadow
   ============================================================================ */
.s-hero__buycard {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow:
    0 1px 2px rgba(31, 30, 25, 0.04),
    0 12px 32px rgba(31, 30, 25, 0.06);
}

@media (min-width: 1024px) {
  .s-hero__buycard {
    padding: var(--space-4) var(--space-5);
  }
}

/* Segmented control — cream pill, dark text on inactive, green on active */
.s-hero__buycard .c-segmented {
  background: var(--color-surface-cream);
  margin: 0 0 var(--space-2);
}
.s-hero__buycard .c-segmented__option {
  font-size: 13px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
}
.s-hero__buycard .c-segmented__option .c-badge {
  font-size: 9px;
  padding: 2px 6px;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* Tier rows — JSHealth-flat instead of Hyro-card */
.s-hero__buycard .c-tier-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.s-hero__buycard .c-tier {
  border: 1px solid var(--color-border-hairline);
  background: var(--color-surface-cream);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  position: relative;
  transition: all var(--duration-fast) var(--ease-default);
}

.s-hero__buycard .c-tier:hover {
  border-color: var(--color-brand-green-link);
  background: var(--color-surface-white);
}

.s-hero__buycard .c-tier.is-selected,
.s-hero__buycard .c-tier:has(.c-tier__radio:checked) {
  border-color: var(--color-brand-green);
  background: var(--color-surface-tint-green);
  box-shadow: 0 0 0 1px var(--color-brand-green);
}

/* Body text on tiers */
.s-hero__buycard .c-tier__body {
  gap: 1px;
}

.s-hero__buycard .c-tier__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 15px;
  line-height: 1.2;
}

.s-hero__buycard .c-tier__sub {
  font-size: 12px;
  color: var(--color-text-mid);
}

/* Price column — strikethrough above current price */
.s-hero__buycard .c-tier__price {
  align-items: flex-end;
  gap: 0;
  min-width: 84px;
  display: flex;
  flex-direction: column;
}

.s-hero__buycard .c-tier__price-now {
  font-size: 19px;
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-high);
  order: 2;
}

.s-hero__buycard .c-tier__price-was {
  font-size: 11px;
  color: var(--color-text-low);
  text-decoration: line-through;
  line-height: 1.2;
  order: 1;
  margin-bottom: 2px;
}

.s-hero__buycard .c-tier__price-per {
  font-size: 10px;
  color: var(--color-text-mid);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  order: 3;
  margin-top: 2px;
  white-space: nowrap;
}

/* Save badge — floating ABOVE the tier card on the LEFT to avoid price column */
.s-hero__buycard .c-tier {
  padding: var(--space-3) var(--space-4);
}
.s-hero__buycard .c-tier__save {
  position: absolute;
  top: -9px;
  left: 14px;
  right: auto;
  transform: none;
  background: var(--color-brand-green);
  color: var(--color-surface-white);
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(98, 157, 66, 0.25);
  z-index: 3;
  border: none;
  white-space: nowrap;
}

/* Platinum tier — keep but recolour to warm yellow accent instead of metallic */
.s-hero__buycard .c-tier--platinum {
  background: var(--color-surface-white);
  border: 1px solid var(--color-accent-yellow-deep);
}
.s-hero__buycard .c-tier--platinum::before {
  display: none; /* kill the platinum gradient border from v1 */
}
.s-hero__buycard .c-tier--platinum.is-selected,
.s-hero__buycard .c-tier--platinum:has(.c-tier__radio:checked) {
  background: var(--color-surface-tint-green);
  border-color: var(--color-brand-green);
  box-shadow: 0 0 0 1px var(--color-brand-green);
}
.s-hero__buycard .c-tier--platinum .c-tier__save {
  background: var(--color-brand-green);
  color: var(--color-surface-white);
  border: none;
}

/* Earn points line */
.s-hero__buycard .s-hero__points {
  font-size: 11px;
  color: var(--color-text-mid);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  font-weight: var(--weight-regular);
}
.s-hero__buycard .s-hero__points strong {
  color: var(--color-brand-green);
  font-weight: var(--weight-bold);
}

/* CTA row inside buy card */
.s-hero__buycard .s-hero__cta-row {
  gap: var(--space-2);
  display: flex;
  flex-direction: column;
}

/* ============================================================================
   5. ELEMENTS BELOW BUY CARD (bonus, COA, etc.)
   ============================================================================ */
.s-hero .s-hero__bonus {
  background: var(--color-accent-yellow-tint);
  border: 1px dashed var(--color-accent-yellow-deep);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-small);
  color: var(--color-text-body);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.s-hero .s-hero__bonus svg {
  width: 22px;
  height: 22px;
  color: var(--color-text-high);
  flex-shrink: 0;
}
.s-hero .s-hero__bonus-text strong {
  color: var(--color-text-high);
  font-weight: var(--weight-bold);
}

.s-hero .s-hero__coa-row {
  display: flex;
  justify-content: flex-start;
}

.s-hero .s-hero__coa-row a {
  font-size: var(--text-small);
  color: var(--color-text-mid);
}

/* Hide the in-buy-column trust pills — moved to proof strip */
.s-hero .s-hero__trust-pills {
  display: none;
}

/* ============================================================================
   6. PROOF STRIP — full-width chip row below hero
   ============================================================================ */
.s-hero-proof {
  background: var(--color-surface-cream-deep);
  padding: var(--space-5) 0;
  margin-top: var(--space-4);
}

.s-hero-proof__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: center;
  align-items: center;
}

.s-hero-proof__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-high);
  background: var(--color-surface-cream);
  border: 1px solid var(--color-border-hairline);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default);
}

.s-hero-proof__chip:hover {
  border-color: var(--color-brand-green);
  transform: translateY(-1px);
}

.s-hero-proof__chip svg {
  width: 14px;
  height: 14px;
  color: var(--color-brand-green);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .s-hero-proof__inner {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .s-hero-proof__inner::-webkit-scrollbar { display: none; }
  .s-hero-proof__chip { flex-shrink: 0; }
}

/* ============================================================================
   7. KILL the legacy trust strip below the hero (redundant with proof strip)
   ============================================================================ */
.s-hero ~ section.s-trust { display: none !important; }

/* ============================================================================
   8. CTA BUTTON — restyle primary to pill, full-width, green
   ============================================================================ */
.s-hero__buycard .c-btn--primary {
  background: var(--color-brand-green);
  color: var(--color-surface-white);
  border-radius: 999px;
  padding: 16px var(--space-6);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 4px 14px rgba(98, 157, 66, 0.25);
  transition: all var(--duration-fast) var(--ease-default);
}
.s-hero__buycard .c-btn--primary:hover {
  background: var(--color-brand-green-hover);
  box-shadow: 0 6px 18px rgba(98, 157, 66, 0.32);
  transform: translateY(-1px);
}
