/* ==========================================================================
   JOTL — Home page
   --------------------------------------------------------------------------
   Phase 3. Everything scoped to the home page lives here. The four global
   components (header, footer, cart drawer, cookie banner) stay in
   components.css and are not touched.

   Rules this file obeys:
     - Tokens only. No raw hex, no raw rgb(), except the one place a colour
       must be an alpha layer over an image and no token exists for it.
     - Every hero, card and teaser image is capped at its native 512px long
       edge (Rule D). Never scaled up, never cropped into a claim.
     - Both themes are authored, not inverted: every rule below is checked
       against [data-theme="dark"] as well as light.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Layered page shell
   -------------------------------------------------------------------------- */

.home {
  /* One knob for the whole page: the longest edge any placeholder image is
     allowed to occupy. Replace the source art with a 1600px photograph and
     raise this to --container-md; nothing else in the file changes. */
  --hero-cap: 512px;
  --card-cap: 512px;
}

.home-section {
  position: relative;
  padding-block: var(--space-7);
}

@media (min-width: 768px) {
  .home-section {
    padding-block: var(--space-7);
  }
}

/* A hairline that reads as a ruled page rather than a box edge. */
.home-section--ruled {
  border-top: 1px solid var(--hairline);
}

.section-head {
  max-width: 46rem;
}

.section-head--centre {
  margin-inline: auto;
  text-align: center;
}

.section-head__eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}

.section-lead {
  margin-top: var(--space-4);
  max-width: var(--measure);
  color: var(--on-surface-variant);
  font-size: var(--type-body-lg, 18px);
  line-height: 1.65;
}


/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gradient-cosmic);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--space-6) var(--space-7);
}

@media (min-width: 900px) {
  .home-hero {
    padding-block: var(--space-7) var(--space-7);
  }
}

/* Star-field. Two parallax layers of point-lights plus a single wide veil,
   all decorative, all pointer-events: none. JS writes --scroll-shift; with
   reduced motion it stays at 0. */
.starfield {
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, calc(var(--scroll-shift, 0) * 1px), 0);
  transform-origin: center top;
  will-change: transform;
}

.starfield--far {
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 8% 14%, var(--star), transparent 60%),
    radial-gradient(1px 1px at 22% 62%, var(--star), transparent 60%),
    radial-gradient(1px 1px at 34% 28%, var(--star), transparent 60%),
    radial-gradient(1px 1px at 47% 74%, var(--star), transparent 60%),
    radial-gradient(1px 1px at 58% 20%, var(--star), transparent 60%),
    radial-gradient(1px 1px at 69% 58%, var(--star), transparent 60%),
    radial-gradient(1px 1px at 77% 34%, var(--star), transparent 60%),
    radial-gradient(1px 1px at 88% 68%, var(--star), transparent 60%),
    radial-gradient(1px 1px at 94% 22%, var(--star), transparent 60%);
}

.starfield--near {
  opacity: 0.82;
  background-image:
    radial-gradient(1.7px 1.7px at 15% 40%, var(--constellation), transparent 60%),
    radial-gradient(1.7px 1.7px at 30% 80%, var(--star), transparent 60%),
    radial-gradient(1.7px 1.7px at 44% 12%, var(--star), transparent 60%),
    radial-gradient(1.7px 1.7px at 63% 88%, var(--star), transparent 60%),
    radial-gradient(1.7px 1.7px at 72% 18%, var(--constellation), transparent 60%),
    radial-gradient(1.7px 1.7px at 85% 50%, var(--star), transparent 60%);
}

/* The veil keeps body text legible over the point-lights in both themes. */
.starfield__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--gradient-veil);
  opacity: 0.55;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: var(--space-7);
  }
}

.home-hero__copy {
  max-width: 34rem;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gold-text);
}

.home-hero__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.home-hero__title {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--type-display-hero-mobile, 2.5rem);
  line-height: var(--type-display-hero-mobile-lh, 1.2);
  letter-spacing: var(--type-display-hero-ls, -0.02em);
  color: var(--on-surface);
  text-wrap: balance;
}

@media (min-width: 900px) {
  .home-hero__title {
    font-size: var(--type-display-hero, 4rem);
    line-height: var(--type-display-hero-lh, 1.125);
  }
}

/* The last clause lifts into gold — the one word the eye should land on. */
.home-hero__title em {
  font-style: normal;
  color: var(--gold-text);
}

.home-hero__sub {
  margin-top: var(--space-4);
  max-width: 33rem;
  color: var(--on-surface-variant);
  font-size: var(--type-body-lg, 18px);
  line-height: 1.66;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.home-hero__note {
  margin-top: var(--space-4);
  color: var(--on-surface-variant);
  font-size: var(--type-body-sm, 13px);
  line-height: 1.6;
}

/* --- The plate ---
   A 512px source on a radial glow orb. The orb is the frame, so the small
   source reads as intentional editorial art rather than a blown-up thumbnail. */
.hero-plate {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18rem;
  padding: var(--space-5);
}

.hero-plate__orb {
  position: absolute;
  inset: 6% 4%;
  border-radius: var(--radius-circle, 50%);
  background: radial-gradient(
    circle at 50% 44%,
    var(--glow) 0%,
    transparent 64%
  );
  filter: blur(2px);
  z-index: 0;
}

/* Orbit ring, drawn rather than imported. Rotates once a minute: present
   enough to notice, slow enough never to distract. */
.hero-plate__orbit {
  position: absolute;
  inset: 2% 6%;
  z-index: 0;
  border: 1px solid var(--orbit-line);
  border-radius: var(--radius-circle, 50%);
  transform: rotate(-14deg) scaleY(0.86);
}

.hero-plate__orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--constellation);
  transform-origin: 3px calc(50% + 3px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-plate__orbit {
    animation: jotl-orbit-drift 64s linear infinite;
  }
}

@keyframes jotl-orbit-drift {
  from { transform: rotate(-14deg) scaleY(0.86); }
  to   { transform: rotate(346deg) scaleY(0.86); }
}

.hero-plate__frame {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  max-width: var(--hero-cap);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-rim);
  box-shadow: var(--elev-gold);
  background: var(--surface-container-low);
}

/* width/height are the intrinsic pair, so the browser reserves the right box
   and the image never stretches past native. */
.hero-plate__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: var(--hero-cap);
  object-fit: cover;
}

/* A soft inner vignette so the plate sits in the glow instead of on it. */
.hero-plate__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 40%,
    transparent 52%,
    var(--scrim) 130%
  );
  opacity: 0.55;
}

[data-theme="dark"] 
/* --- Cosmic Apothecary motif ------------------------------------------------
Orbit ellipses and a constellation path, drawn inline rather than imported.
Silk-screened behind the copy so the hero reads as a star chart, not noise. */
.hero-constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  color: var(--constellation);
  opacity: 0.62;
  pointer-events: none;
  transform: translate3d(0, calc(var(--scroll-shift, 0) * 0.3px), 0);
}

/* --- Premium framing -------------------------------------------------------
The orb is warmed into a gold atmosphere behind the plate, and the frame gets
a two-part edge: the literal 1px --secondary line plus a masked gradient rim
that supplies the metallic sheen a flat colour cannot. */
.hero-plate__orb {
  inset: 0 2%;
  background: radial-gradient(
    circle at 50% 46%,
    var(--glow) 0%,
    rgba(233, 195, 73, 0.1) 42%,
    transparent 68%
  );
  filter: blur(18px);
}

.hero-plate__frame {
  border-color: var(--secondary);
}

.hero-plate__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: var(--gradient-gold-sheen);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.7;
}

/* Floating glass metric card. Sits on the plate so the frame has depth, and
stays a single short line at every width. */
.hero-plate__glass {
  position: absolute;
  z-index: 4;
  left: var(--space-3);
  bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: calc(100% - 2 * var(--space-3));
  padding: 0.6rem 0.95rem 0.6rem 0.8rem;
  border: 1px solid rgba(251, 249, 245, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(251, 249, 245, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: #FBF9F5;
  font-size: var(--type-label-sm, 12px);
  font-weight: var(--weight-semibold, 600);
  line-height: 1.2;
  letter-spacing: 0.015em;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero-plate__glass-icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--secondary-fixed-dim);
  filter: drop-shadow(0 0 6px rgba(233, 195, 73, 0.55));
}

.hero-plate__glass-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Without backdrop-filter the glass turns opaque rather than unreadable. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-plate__glass {
    background: rgba(15, 45, 36, 0.82);
  }
}

/* --- Typography: let the headline breathe --------------------------------- */
.home-hero__title {
  line-height: 1.28;
  letter-spacing: -0.008em;
}

@media (min-width: 900px) {
  .home-hero__title {
    line-height: 1.16;
    letter-spacing: -0.008em;
  }
}

/* Apothecary label treatment: wide-tracked uppercase, so the eyebrow reads as
a label on a jar rather than a sentence. */
.home-hero__eyebrow {
  font-size: var(--type-label-apothecary, 11px);
  font-weight: var(--type-label-apothecary-weight, 600);
  letter-spacing: var(--type-label-apothecary-ls, 0.12em);
  text-transform: uppercase;
}

/* --- Light mode: the hero carries the brand emerald ------------------------
Below the hero the page stays cream; the hero itself steps onto
--primary-container so the first screen is never white-on-white. Re-scoping
the motif tokens inside the section flips the star-field, constellation,
orbit and glow to gold-on-emerald from one place. */
[data-theme="light"] .home-hero {
  background: var(--primary-container);
  color: #FBF9F5;
  border-bottom-color: rgba(233, 195, 73, 0.3);
  --star: rgba(251, 249, 245, 0.6);
  --constellation: rgba(233, 195, 73, 0.62);
  --orbit-line: rgba(251, 249, 245, 0.2);
  --glow: rgba(233, 195, 73, 0.34);
  --gold-text: #E9C349;
  --scrim: rgba(3, 10, 8, 0.5);
}

[data-theme="light"] .home-hero .starfield__veil {
  background: linear-gradient(
    180deg,
    rgba(15, 45, 36, 0) 0%,
    rgba(15, 45, 36, 0.55) 62%,
    rgba(15, 45, 36, 0.92) 100%
  );
}

[data-theme="light"] .home-hero__title {
  color: #FBF9F5;
}

[data-theme="light"] .home-hero__sub {
  color: rgba(251, 249, 245, 0.82);
}

/* On emerald the brand's near-black primary button disappears, so the hero
promotes the gold in light mode only. Markup is unchanged. */
[data-theme="light"] .home-hero .btn--primary {
  background: var(--secondary-fixed);
  border-color: var(--secondary-fixed);
  color: var(--primary-container);
}

[data-theme="light"] .home-hero .btn--primary:hover {
  background: var(--secondary-fixed-dim);
  border-color: var(--secondary-fixed-dim);
  color: var(--primary-container);
}

[data-theme="light"] .home-hero .btn--ghost {
  background: transparent;
  border-color: rgba(251, 249, 245, 0.42);
  color: #FBF9F5;
}

[data-theme="light"] .home-hero .btn--ghost:hover {
  background: rgba(251, 249, 245, 0.1);
  border-color: rgba(251, 249, 245, 0.78);
  color: #FBF9F5;
}

/* --------------------------------------------------------------------------
   3. A gentler standard — editorial split
   -------------------------------------------------------------------------- */

.standard {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .standard {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-7);
    align-items: start;
  }
}

.standard__title {
  font-family: var(--font-display);
  font-size: var(--type-headline-lg-mobile, 2rem);
  line-height: var(--type-headline-lg-mobile-lh, 1.25);
  letter-spacing: var(--type-headline-lg-ls, -0.015em);
  color: var(--on-surface);
  text-wrap: balance;
}

@media (min-width: 900px) {
  .standard__title {
    font-size: var(--type-headline-lg, 2.75rem);
    line-height: var(--type-headline-lg-lh, 1.18);
  }
}

.standard__body p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: var(--type-body-lg, 18px);
  line-height: 1.7;
}

/* Two botanical hairlines under the body: decoration that ties the section
   to the brand's line-art language without adding a claim. */
.standard__rule {
  position: relative;
  margin-top: var(--space-5);
  height: 1.5rem;
  max-width: 22rem;
}

.standard__rule::before,
.standard__rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--botanical-line);
}

.standard__rule::before { top: 0; }
.standard__rule::after  { top: 8px; right: 22%; opacity: 0.6; }


/* --------------------------------------------------------------------------
   4. Why JOTL — four pillars
   -------------------------------------------------------------------------- */

.purpose__intro {
  margin-top: var(--space-4);
  max-width: 54rem;
  color: var(--on-surface-variant);
  font-size: var(--type-body-lg, 18px);
  line-height: 1.7;
}

.pillars {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pillar;
}

@media (min-width: 700px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

.pillar {
  position: relative;
  counter-increment: pillar;
  padding: var(--space-5) var(--space-4) var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-container-low);
  overflow: hidden;
}

/* A gold hairline that only shows on the top edge, brightening on hover. */
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-rim) 22%,
    var(--gold-rim) 78%,
    transparent
  );
  opacity: 0.7;
  transition: opacity var(--dur-base) var(--ease-standard);
}

.pillar:hover::before { opacity: 1; }

.pillar__num {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: var(--type-label-sm, 12px);
  font-weight: var(--weight-semibold, 600);
  letter-spacing: 0.14em;
  color: var(--gold-text);
}

.pillar__title {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-size: var(--type-headline-sm, 1.375rem);
  line-height: var(--type-headline-sm-lh, 1.36);
  font-weight: var(--type-headline-sm-weight, 600);
  color: var(--on-surface);
}

.pillar__copy {
  margin: var(--space-2) 0 0;
  color: var(--on-surface-variant);
  font-size: var(--type-body-md, 15px);
  line-height: 1.66;
}

.purpose__closing {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: var(--type-headline-md, 1.75rem);
  line-height: var(--type-headline-md-lh, 1.28);
  color: var(--on-surface);
}

.purpose__closing span {
  color: var(--gold-text);
}


/* --------------------------------------------------------------------------
   5. Shared card shell — products, skin types, journal, reviews
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Section header row: heading left, text link right, wrapping on small. */
.section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--link);
  font-size: var(--type-label-md, 14px);
  font-weight: var(--weight-medium, 500);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}

.section-link svg {
  flex: none;
  transition: transform var(--dur-fast) var(--ease-standard);
}

.section-link:hover svg { transform: translateX(3px); }


/* --------------------------------------------------------------------------
 6. Featured products
 .product-card now lives in components.css: the shop grid on /shop/ renders
 the same card, and every page loads components.css before its own sheet.
 -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
 7. Shop by skin type — portrait cards
 -------------------------------------------------------------------------- */

.skintype-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-container-low);
  color: var(--on-surface);
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard),
    transform var(--dur-base) var(--ease-standard);
}

/* The media fills the top of the card edge to edge, so the text below sits
  on the card surface rather than inside a padded box. */
.skintype-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-container);
}

.skintype-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.002);
  transition:
    transform 900ms var(--ease-standard),
    filter 900ms var(--ease-standard);
}

/* Gold hairline where the photograph meets the card. */
.skintype-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--gold-rim);
  opacity: 0.55;
}

.skintype-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.skintype-card__name {
  font-family: var(--font-display);
  font-size: var(--type-headline-sm, 1.375rem);
  line-height: 1.3;
}

.skintype-card__go {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--on-surface-variant);
  font-size: var(--type-label-md, 14px);
  transition: color var(--dur-fast) var(--ease-standard);
}

.skintype-card__go svg {
  transition: transform var(--dur-fast) var(--ease-standard);
}

/* Premium hover: the photograph breathes in, the edge turns gold and a soft
  gold halo lifts the card off the page. */
.skintype-card:hover,
.skintype-card:focus-visible {
  border-color: var(--gold-rim);
  box-shadow:
    var(--elev-3),
    0 0 0 1px var(--secondary),
    0 0 26px rgba(201, 162, 39, 0.22);
  transform: translateY(-2px);
}

.skintype-card:hover .skintype-card__img,
.skintype-card:focus-visible .skintype-card__img {
  transform: scale(1.06);
}

.skintype-card:hover .skintype-card__go,
.skintype-card:focus-visible .skintype-card__go {
  color: var(--gold-text);
}

.skintype-card:hover .skintype-card__go svg,
.skintype-card:focus-visible .skintype-card__go svg {
  transform: translateX(3px);
}

/* Light mode only: white cards with a visible edge and a soft lift, so the
  pillars and the standard block stop dissolving into the cream page. */
[data-theme="light"] .standard__body {
  padding: var(--space-5);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  background: var(--surface-container-lowest);
  box-shadow: var(--elev-2);
}

[data-theme="light"] .pillar {
  border-color: var(--outline-variant);
  background: var(--surface-container-lowest);
  box-shadow: var(--elev-2);
  transition:
    border-color var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
}

[data-theme="light"] .pillar:hover {
  border-color: var(--gold-rim);
  box-shadow: var(--elev-3);
}

[data-theme="light"] .skintype-card {
  border-color: var(--outline-variant);
  background: var(--surface-container-lowest);
  box-shadow: var(--elev-2);
}

[data-theme="light"] .skintype-card:hover,
[data-theme="light"] .skintype-card:focus-visible {
  border-color: var(--gold-rim);
  box-shadow:
    var(--elev-4),
    0 0 0 1px var(--secondary),
    0 0 30px rgba(201, 162, 39, 0.28);
}


/* --------------------------------------------------------------------------
   8. Quiz band — full bleed break
   -------------------------------------------------------------------------- */

.quiz-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: var(--space-7);
  background: var(--gradient-cosmic-deep);
  color: var(--on-surface);
  border-block: 1px solid var(--gold-rim);
}

/* The band is the one place the page goes dark in light mode too, so its
   text colours are pinned rather than inherited from the theme. */
[data-theme="light"] .quiz-band,
[data-theme="light"] .quiz-band .quiz-band__title,
[data-theme="light"] .quiz-band .quiz-band__copy {
  color: #FBF9F5;
}

[data-theme="light"] .quiz-band .quiz-band__copy { color: rgba(251, 249, 245, 0.78); }

[data-theme="dark"] .quiz-band {
  background: var(--surface-container-high);
  border-block-color: var(--gold-rim);
}

.quiz-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-7);
  align-items: center;
}

@media (min-width: 900px) {
  .quiz-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-7);
  }
}

.quiz-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #E9C349;
  font-size: var(--type-label-sm, 12px);
  font-weight: var(--weight-semibold, 600);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quiz-band__title {
  margin: var(--space-3) 0 0;
  max-width: 30rem;
  font-family: var(--font-display);
  font-size: var(--type-headline-lg-mobile, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .quiz-band__title {
    font-size: var(--type-headline-lg, 2.75rem);
  }
}

.quiz-band__copy {
  margin: var(--space-3) 0 0;
  max-width: 34rem;
  color: var(--on-surface-variant);
  font-size: var(--type-body-lg, 18px);
  line-height: 1.66;
}

.quiz-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* The band's own gold button, since .btn--gold assumes a light surface. */
.btn--on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height-lg, 48px);
  padding-inline: var(--space-5);
  border: 1px solid #E9C349;
  border-radius: var(--radius-pill, 999px);
  background: #E9C349;
  color: #0F2D24;
  font-family: var(--font-body);
  font-size: var(--type-label-md, 14px);
  font-weight: var(--weight-semibold, 600);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}

.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  background: #FFE088;
}

@media (prefers-reduced-motion: no-preference) {
  .btn--on-dark:hover { transform: translateY(-1px); }
}

.btn--on-dark-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-lg, 48px);
  padding-inline: var(--space-5);
  border: 1px solid rgba(251, 249, 245, 0.28);
  border-radius: var(--radius-pill, 999px);
  background: transparent;
  color: #FBF9F5;
  font-family: var(--font-body);
  font-size: var(--type-label-md, 14px);
  font-weight: var(--weight-medium, 500);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-standard);
}

.btn--on-dark-ghost:hover,
.btn--on-dark-ghost:focus-visible {
  border-color: rgba(251, 249, 245, 0.6);
}

/* Decorative constellation behind the band copy. */
.quiz-band__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.5px 1.5px at 82% 22%, #FFE088, transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 62%, #E9C349, transparent 60%),
    radial-gradient(1px 1px at 74% 74%, #ADCEC0, transparent 60%),
    radial-gradient(1px 1px at 96% 34%, #ADCEC0, transparent 60%);
}


/* --------------------------------------------------------------------------
   9. Journal teaser
   -------------------------------------------------------------------------- */

.journal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-container-lowest);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}

.journal-card:hover,
.journal-card:focus-within {
  border-color: var(--gold-rim);
  box-shadow: var(--elev-2);
}

.journal-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-container);
  overflow: hidden;
}

.journal-card__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: var(--card-cap);
  margin-inline: auto;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .journal-card:hover .journal-card__img { transform: scale(1.03); }
}

.journal-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--space-4);
}

.journal-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--on-surface-variant);
  font-size: var(--type-label-sm, 12px);
  font-weight: var(--weight-semibold, 600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-card__meta span[aria-hidden] {
  opacity: 0.45;
  letter-spacing: 0;
}

.journal-card__title {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-size: var(--type-headline-sm, 1.375rem);
  line-height: 1.32;
  color: var(--on-surface);
}

.journal-card__title a {
  color: inherit;
  text-decoration: none;
}

.journal-card__title a:hover { color: var(--gold-text); }

/* Stretched link: the whole card is clickable, the heading stays the
   accessible name, and nested links keep their own targets. */
.journal-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.journal-card { position: relative; }

.journal-card__excerpt {
  margin: var(--space-2) 0 0;
  color: var(--on-surface-variant);
  font-size: var(--type-body-md, 15px);
  line-height: 1.62;
}

.journal-card__more {
  margin-top: auto;
  padding-top: var(--space-3);
  color: var(--gold-text);
  font-size: var(--type-label-md, 14px);
  font-weight: var(--weight-medium, 500);
}


/* --------------------------------------------------------------------------
   10. Newsletter — Mailchimp
   -------------------------------------------------------------------------- */

.newsletter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-container-low);
  padding: var(--space-6) var(--space-4);
}

@media (min-width: 700px) {
  .newsletter { padding: var(--space-6); }
}

.newsletter__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .newsletter__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--space-7);
    align-items: center;
  }
}

.newsletter__title {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-size: var(--type-headline-lg-mobile, 2rem);
  line-height: 1.2;
  color: var(--on-surface);
  text-wrap: balance;
}

@media (min-width: 900px) {
  .newsletter__title { font-size: var(--type-headline-lg, 2.75rem); }
}

.newsletter__copy {
  margin: var(--space-3) 0 0;
  max-width: 32rem;
  color: var(--on-surface-variant);
  font-size: var(--type-body-lg, 18px);
  line-height: 1.66;
}

/* The honeypot. Positioned off-canvas rather than display:none, because some
   bots skip fields that are display:none and fill ones that merely moved. */
.newsletter__hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter__form {
  display: grid;
  gap: var(--space-3);
}

.newsletter__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.newsletter__field {
  flex: 1 1 16rem;
  min-width: 0;
}

.newsletter__label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--on-surface-variant);
  font-size: var(--type-label-sm, 12px);
  font-weight: var(--weight-semibold, 600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.newsletter__input {
  width: 100%;
  min-height: var(--control-height-lg, 48px);
  padding: 0 var(--space-3);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: var(--type-body-md, 15px);
  transition: border-color var(--dur-fast) var(--ease-standard);
}

.newsletter__input::placeholder { color: var(--on-surface-variant); opacity: 0.75; }

.newsletter__input:hover { border-color: var(--outline); }

.newsletter__input:focus-visible {
  border-color: var(--gold-text);
  outline: var(--focus-width, 2px) solid var(--focus-ring);
  outline-offset: var(--focus-offset, 2px);
}

.newsletter__submit {
  align-self: end;
}

.newsletter__note {
  color: var(--on-surface-variant);
  font-size: var(--type-body-sm, 13px);
  line-height: 1.6;
}

.newsletter__note a { color: var(--link); }

.newsletter__status {
  color: var(--gold-text);
  font-size: var(--type-body-sm, 13px);
  line-height: 1.6;
  min-height: 1.2em;
}

.newsletter__status[data-state="error"] { color: var(--error); }

/* The faint orbital arc behind the newsletter card. */
.newsletter::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -6rem;
  z-index: 0;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 1px solid var(--orbit-line);
  pointer-events: none;
}

.newsletter::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: 3.5rem;
  z-index: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--constellation);
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   11. Reviews teaser
   -------------------------------------------------------------------------- */

.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-container-lowest);
}

.review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.review-card__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold-text);
}

.review-card__stars svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
}

/* Verified Buyer. Shows only for reviews the owner has checked against a
   Paystack reference and published with verified:true — see the reviews
   collection in Decap. Mock cards on this page carry it so the styling is
   reviewable before the real collection exists. */
.review-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--gold-rim);
  border-radius: var(--radius-pill, 999px);
  background: transparent;
  color: var(--gold-text);
  font-size: 10px;
  font-weight: var(--weight-semibold, 600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.review-card__verified svg {
  width: 0.65rem;
  height: 0.65rem;
  display: block;
}

.review-card__quote {
  margin: 0;
  color: var(--on-surface);
  font-family: var(--font-display);
  font-size: var(--type-body-lg, 18px);
  line-height: 1.5;
}

.review-card__quote p { margin: 0; }

.review-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
  color: var(--on-surface-variant);
  font-size: var(--type-body-sm, 13px);
}

.review-card__author {
  font-weight: var(--weight-semibold, 600);
  color: var(--on-surface);
}

/* Skin type tag. Same chip as the shop facets, so the vocabulary is shared. */
.review-card__skin {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill, 999px);
  background: var(--surface-container);
  color: var(--on-surface-variant);
  font-size: var(--type-label-sm, 12px);
  font-weight: var(--weight-semibold, 600);
  letter-spacing: 0.06em;
}

/* Honest note under the reviews grid: mock cards are labelled as such on the
   page until the collection is live, so nobody reads them as real. */
.reviews__disclaimer {
  margin: var(--space-4) 0 0;
  color: var(--on-surface-variant);
  font-size: var(--type-body-sm, 13px);
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   12. Motion and print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .starfield {
    transform: none !important;
    will-change: auto;
  }

  .hero-plate__orbit { animation: none; }

  .product-card:hover,
  .product-card:hover .product-card__img,
  .journal-card:hover .journal-card__img,
  .btn--on-dark:hover {
    transform: none;
  }

  .section-link:hover svg,
  .skintype-card:hover .skintype-card__go svg {
    transform: none;
  }
}

@media print {
  .starfield,
  .starfield__veil,
  .hero-plate__orb,
  .hero-plate__orbit,
  .quiz-band__stars,
  .newsletter::before,
  .newsletter::after,
  .skintype-card::after {
    display: none !important;
  }

  .home-hero {
    background: #fff;
    border: 0;
  }
}
