/* =========================================================================
   EA COMPONENTS — pulled from Early Access Website
   Scoped to sections 3-6 of the combined landing page.
   Do not edit styles.css for these rules.
   ========================================================================= */

/* ── Additional tokens ────────────────────────────────────────────────── */
:root {
  --ea-line:      #1a1a1a;
  --ea-bg-alt:    #000000;
  --ea-bg-block:  #000000;
  --ea-max:       1180px;
  --ea-gutter:    32px;
  --ea-section-y: 120px;
  --ea-ease:      cubic-bezier(.2, .6, .2, 1);
}

/* ── Section container ───────────────────────────────────────────────── */
.ea-section {
  max-width: var(--ea-max);
  margin: 0 auto;
  padding: var(--ea-section-y) var(--ea-gutter);
}

/* ── Section rule (hr divider) ───────────────────────────────────────── */
.section-rule {
  border: none;
  border-top: 1px solid var(--ea-line);
  margin: 0 auto;
  max-width: var(--ea-max);
  width: calc(100% - (var(--ea-gutter) * 2));
}

/* ── Hero phrase ─────────────────────────────────────────────────────── */
/* Sits directly ABOVE the "NOTHING BELOW THE LINE" statement (which is
   absolutely positioned at bottom:22%). Cloud White, double the original
   0.72rem size, with a restrained fade-and-rise on load. */
.hero-phrase {
  width: 100%;
  text-align: center;
  font-size: clamp(1.9rem, 6.5vw, 4.5rem); /* dominant hero headline / main message */
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--cloud-white); /* Cloud White #f2f2f2 */
  margin: 0;
  padding: 0 1.5rem;
  z-index: 1;
  pointer-events: none;
  /* Restrained fade-and-rise — premium expo-out easing, no libraries */
  opacity: 0;
  transform: translateY(26px);
  animation: hero-phrase-rise 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: 0.45s;
}

/* Bordered box around the phrase — same border treatment as the EXPLORE button */
.hero-phrase-box {
  display: inline-block;
  border: 2px solid rgba(242, 242, 242, 0.55);
  padding: 0.45em 0.7em;
  max-width: 12em; /* wrap into a tight, dominant block */
}

@keyframes hero-phrase-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phrase {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-phrase {
    letter-spacing: 0.03em;
    line-height: 1.12;
    margin: 0 auto;
  }
}

/* ── Shared type ─────────────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

.section-headline {
  margin: 0 0 28px;
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--cloud-white);
}

.section-body {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--stone);
  max-width: 620px;
}

/* ── Chapter markers ─────────────────────────────────────────────────── */
.chapter-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 32px;
}

.chapter-row .eyebrow {
  margin: 0;
}

.chapter-row-center {
  justify-content: center;
}

.chapter {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--steel);
  position: relative;
  padding-right: 20px;
}

.chapter::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  height: 1px;
  background: var(--ea-line);
}

.chapter-row-center .chapter::after,
.position-content .chapter::after {
  display: none;
}

/* ── SECTION 3: Welcome ──────────────────────────────────────────────── */
.section-welcome {
  background: var(--ea-bg-alt);
  padding-top: var(--ea-section-y);
  padding-bottom: var(--ea-section-y);
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.section-welcome > * {
  max-width: var(--ea-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ea-gutter);
  padding-right: var(--ea-gutter);
}

.section-welcome .chapter-row {
  justify-content: center;
}

.section-welcome .chapter {
  padding-right: 0;
}

.section-welcome .chapter::after {
  display: none;
}

.section-welcome .section-body {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

/* ── SECTION 4: Position ─────────────────────────────────────────────── */
.section-position {
  max-width: none; /* full-bleed — no black space on the sides */
  width: 100%;
  margin: 0;
  padding: 0;
}

.position-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 592;
  background: var(--ea-bg-block);
  overflow: hidden;
}

.position-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the frame — no black letterbox space */
  object-position: center;
  display: block;
}

.position-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(10,10,10,0.65) 0%,
    rgba(10,10,10,0.5) 45%,
    rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}

.position-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  /* bottom */
  align-items: stretch;       /* full-width blocks so text wraps; text-align keeps it left */
  text-align: left;           /* anchored to the left corner for variety */
  padding: 48px 56px;
  z-index: 2;
}

.position-content .chapter-row {
  margin-bottom: 24px;
  justify-content: center;
}

.position-content .chapter {
  padding-right: 0;
}

.position-content .section-headline {
  position: absolute;        /* centered in the middle of the image */
  top: 50%;
  left: 56px;
  right: 56px;
  transform: translateY(-50%);
  color: var(--cloud-white);
  max-width: none;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
  white-space: nowrap;
  font-size: clamp(22px, 3.2vw, 40px);
}

.position-content .section-body {
  color: var(--cloud-white);
  max-width: 580px;
  margin: 0;
  text-shadow: 0 1px 18px rgba(0,0,0,0.75);
}

/* Restrained product tagline: Control // Confidence // Command — sits in the
   lower-third, moved up from the very bottom to fill the headline's old spot. */
.position-content .position-tagline {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 22%;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  font-weight: 600;
  color: var(--cloud-white);
}

/* "PRODUCT #1" pinned to the top-left corner of the image; headline/body
   remain anchored bottom-left. (Reset to in-flow on mobile, below.) */
.position-content .story-product-num {
  position: absolute;
  top: 32px;
  left: 40px;
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 2rem); /* smaller — a restrained corner label */
  letter-spacing: 0.06em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
}

/* ── SECTION 5: Product ──────────────────────────────────────────────── */
.section-product {
  background: var(--cloud-white); /* #f2f2f2 — full-bleed light section (no black side bars) */
  max-width: none;
  width: 100%;
}

/* Keep the content centered while the white background spans full width */
.section-product .product-grid {
  max-width: var(--ea-max);
  margin: 0 auto;
}

/* ─── SHOP PRODUCT — LIGHT (WHITE) SECTION OVERRIDES ─────────────
   Flip every light-on-black element to a dark palette tone so it stays
   visible on white. Scoped to .section-product so no other section changes. */
.section-product .section-headline,
.section-product .price,
.section-product .spec-value { color: var(--deep-black); }   /* were --cloud-white (invisible on white) */

.section-product .eyebrow,
.section-product .product-sub,
.section-product .section-body,
.section-product .price-cap,
.section-product .spec-label,
.section-product .color-note,
.section-product .reserve-note { color: var(--steel); }      /* were --stone */

.section-product .spec-list,
.section-product .spec-list li { border-color: var(--silver); } /* were --ea-line (near-black) */

/* Color selector */
.section-product .color-card            { border-color: var(--silver); }
.section-product .color-card:hover       { border-color: var(--steel); }
.section-product .color-card.is-selected { border-color: var(--deep-black); }
.section-product .color-label            { color: var(--steel); }
.section-product .color-card.is-selected .color-label { color: var(--deep-black); }
.section-product .color-white-swatch     { border-color: var(--silver); }

/* Reserve button — dark on white */
.section-product .reserve-btn {
  background: var(--deep-black);
  color: var(--cloud-white);
  border-color: var(--deep-black);
}
.section-product .reserve-btn:hover {
  background: transparent;
  color: var(--deep-black);
}

.product-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr; /* wider media column → larger (uncropped) bottle image */
  grid-template-areas:
    "info-top  info-top"
    ".         chapter"
    "media     lead"
    "media     info-bottom"
    "media     cta";
  column-gap: 80px;
  row-gap: 0;
  align-items: stretch;
}

.product-chapter    { grid-area: chapter; }
.product-info-top   { grid-area: info-top; }
.product-info-lead  { grid-area: lead; }

/* "Confidence you can feel." runs full-width on one line across the top */
.section-product .product-info-top .section-headline {
  white-space: nowrap;
  text-align: center;
  font-size: clamp(38px, 6.2vw, 76px); /* larger full-width headline */
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.product-media-cell { grid-area: media; align-self: stretch; min-height: 0; width: 100%; }
.product-info-bottom{ grid-area: info-bottom; }
.product-cta        { grid-area: cta; margin-top: 8px; }

.product-chapter .chapter-row {
  margin-bottom: 28px;
}

.product-media {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
}

.product-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 1;
}

.product-fallback-logo {
  width: 38%;
  height: auto;
  opacity: 0.4;
  display: block;
}

/* Renamed from .product-image to avoid collision with TARGET's existing class */
.ea-product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% center;
  opacity: 0;
  transition: opacity 300ms var(--ea-ease);
  z-index: 2;
}

.ea-product-image.is-active {
  opacity: 1;
}

/* Shop page: bottle image as large as possible with NO cropping (contain) */
.section-product .ea-product-image {
  object-fit: contain;
  object-position: center top;
}

/* Pull the bottle image up so the visible bottles line up with the
   "Grip Formula…" paragraph (the mockup has whitespace above the caps).
   Desktop only — on mobile .product-media-cell is display:contents so this is ignored. */
.section-product .product-media-cell {
  margin-top: -2.25rem;
}

.product-sub {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--stone);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 36px 0 28px;
}

.price {
  font-weight: 300;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: var(--cloud-white);
}

.price-cap {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

.spec-list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  border-top: 1px solid var(--ea-line);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--ea-line);
}

.spec-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

.spec-value {
  font-size: 14px;
  font-weight: 300;
  color: var(--cloud-white);
  text-align: right;
}

.section-product .section-headline em {
  font-style: italic;
  font-weight: 300;
  font-size: 1.35em;
  letter-spacing: -0.015em;
  line-height: 0.9;
  display: inline-block;
  transform: translateY(0.04em);
  padding: 0 0.04em;
  color: var(--deep-black); /* "feel" black on the white shop section */
}

/* Color selector */
.color-selector {
  display: flex;
  gap: 16px;
  margin: 24px 0 12px;
}

.color-note {
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.color-card {
  width: 120px;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--ea-line);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: border-color 300ms var(--ea-ease), background 300ms var(--ea-ease);
  font-family: var(--font);
}

.color-card:hover {
  border-color: var(--steel);
}

.color-card.is-selected {
  border-color: var(--cloud-white);
}

.color-swatch {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--ea-bg-block);
  border: 1px solid var(--ea-line);
}

.color-black-swatch { background: #0a0a0a; }
.color-white-swatch { background: #e8e8e8; border-color: #e8e8e8; }

.color-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 300ms var(--ea-ease);
}

.color-card.is-selected .color-label {
  color: var(--cloud-white);
}

.reserve-btn {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: var(--cloud-white);
  color: var(--deep-black);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--cloud-white);
  font-family: var(--font);
  cursor: pointer;
  transition: background 300ms var(--ea-ease), color 300ms var(--ea-ease);
}

.reserve-btn:hover {
  background: transparent;
  color: var(--cloud-white);
}

.shopify-mount {
  display: none;
}

.reserve-note {
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: center;
}

/* ── SECTION 6: FAQ ──────────────────────────────────────────────────── */
.faq-list {
  border-top: 1px solid var(--ea-line);
  margin-top: 16px;
}

.faq-item {
  border-bottom: 1px solid var(--ea-line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
}

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

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  transition: color 300ms var(--ea-ease);
}

.faq-q-text {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--cloud-white);
}

.faq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  transition: transform 300ms var(--ea-ease), color 300ms var(--ea-ease);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--cloud-white);
}

.faq-item:hover .faq-q-text {
  color: var(--cloud-white);
}

.faq-a {
  overflow: hidden;
  padding: 0 0 28px;
  max-width: 760px;
}

.faq-a p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--stone);
}

/* ── Responsive: 820px ───────────────────────────────────────────────── */
@media (max-width: 820px) {
  :root {
    --ea-gutter: 22px;
    --ea-section-y: 80px;
  }

  .product-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .product-chapter,
  .product-media-cell,
  .product-info-top,
  .product-info-lead,
  .product-info-bottom,
  .product-cta {
    display: contents;
  }

  .product-chapter      .chapter-row      { order: 1; margin: 0; }
  .product-info-top     .section-headline { order: 2; margin-top: 4px; }
  /* match desktop specificity to override the full-width nowrap on mobile */
  .section-product .product-info-top .section-headline { white-space: normal; text-align: left; margin-bottom: 0; }
  .product-info-top     .product-sub      { order: 3; }
  .product-info-lead    .section-body     { order: 4; }
  .product-info-bottom  .price-row        { order: 5; }
  .product-info-bottom  .spec-list        { order: 6; }
  .product-media-cell   .product-media    { order: 7; }
  .product-cta          .color-selector   { order: 8; }
  .product-cta          .color-note       { order: 9; }
  .product-cta          .reserve-btn      { order: 10; }
  .product-cta          .shopify-mount    { order: 11; }
  .product-cta          .reserve-note     { order: 12; }

  .product-media-cell .product-media {
    width: 100%;
    margin: 16px auto;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .position-frame {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    background: var(--ea-bg-block);
  }

  .position-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: cover; /* fill the frame — no black letterbox space */
    aspect-ratio: 800 / 592;
  }

  .position-overlay { display: none; }

  .position-content {
    position: relative;
    inset: auto;
    padding: 32px 24px 40px;
  }

  /* Image and text stack separately on mobile — keep everything in flow */
  .position-content .story-product-num,
  .position-content .section-headline,
  .position-content .position-tagline {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
  }

  .position-content .section-headline,
  .position-content .section-body {
    text-shadow: none;
  }

  .position-content .section-headline {
    white-space: normal;
    font-size: clamp(24px, 6vw, 32px);
  }

  .color-selector { gap: 12px; }

  .color-card {
    width: auto;
    flex: 1 1 0;
    min-height: 48px;
  }

  .spec-list li {
    gap: 12px;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .spec-label { flex-shrink: 0; }

  .spec-value {
    min-width: 0;
    word-break: break-word;
    text-align: right;
    flex: 1 1 auto;
  }

  .reserve-btn {
    width: 100%;
    min-height: 52px;
  }
}

/* ── Scarcity ────────────────────────────────────────────────────────── */
.section-scarcity {
  padding-top: 80px;
  padding-bottom: 80px;
}

.scarcity-text {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ── Responsive: 480px ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --ea-section-y: 64px;
  }

  .section-headline {
    font-size: clamp(24px, 7vw, 36px);
    line-height: 1.2;
  }

  .section-product .section-headline {
    font-size: clamp(29px, 8.4vw, 44px);
  }

  .price { font-size: 28px; }

  .faq-q-text { font-size: 15px; }
}
