/* =========================================================
   ELICYNE Essentials — Sunscreen SPF 50 PA+++
   Crafted by Nature. Perfected by Science.
   Palette sampled from product packaging:
   cream/blush · terracotta brick · gilded gold · brand brown-red
   ========================================================= */

:root {
  /* Colour system (from the box) */
  --cream:      #f7ede6;  /* blush-cream background */
  --cream-2:    #f1e3d8;
  --sand:       #e7d3c2;
  --ink:        #2e211b;  /* warm brown-black text */
  --ink-soft:   #5a473e;  /* darkened for AA contrast on cream */
  --brick:      #a8412e;  /* terracotta accent (darker = readable as text) */
  --brick-deep: #8c3526;
  --brand:      #a8412e;  /* logo brown-red */
  --gold:       #c9a24b;
  --gold-2:     #e6c66e;
  --gold-deep:  #b08534;
  --glow:       #f6d9b8;  /* warm sun glow */
  --line:       rgba(58, 43, 37, 0.14);
  --white:      #fffaf4;

  /* Type */
  --serif:  "Cormorant Garamond", Georgia, serif;
  --sans:   "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Allura", "Cormorant Garamond", cursive; /* logo/script accents */

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --slow: 0.9s;

  --maxw: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  /* Lining, tabular figures everywhere so numbers read clearly & align */
  font-variant-numeric: lining-nums tabular-nums;
  -moz-font-feature-settings: "lnum" 1, "tnum" 1;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* Utility: render numeric/data text in the clean sans, not the display serif */
.num {
  font-family: var(--sans) !important;
  font-style: normal !important;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--glow); color: var(--ink); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 400;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}
.section-title em { font-style: italic; color: var(--brick); }

.section-head { max-width: 720px; margin: 0 auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05rem 2.2rem;
  border-radius: 100px;
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s, box-shadow 0.5s;
  will-change: transform;
}
.btn--solid {
  background: var(--brick);
  color: var(--white);
  box-shadow: 0 10px 30px -12px rgba(181,80,60,0.55);
}
.btn--solid:hover {
  background: var(--brick-deep);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px -14px rgba(156,65,48,0.7);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--white); transform: translateY(-3px); }
.btn--block { width: 100%; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   Announcement bar
   ========================================================= */
.announce {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.announce__track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  padding: 0.6rem 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.announce__track span { opacity: 0.85; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.3rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(247, 237, 230, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s;
}
.nav.is-scrolled {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-color: var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__logo {
  height: 46px;
  width: auto;
  transition: height 0.4s var(--ease);
}
.nav.is-scrolled .nav__logo { height: 38px; }
.nav__brand-fallback {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--brand);
  line-height: 1;
}
.nav__brand-fallback em {
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: block;
  text-align: center;
  color: var(--ink-soft);
}
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links--right { justify-content: flex-end; }
.nav__links a {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 0.55rem 1.1rem !important;
  transition: background 0.4s, color 0.4s;
}
.nav__cta:hover { background: var(--ink); color: var(--cream); }

.nav__menu { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav__menu span { height: 1.5px; background: var(--ink); transition: transform 0.4s, opacity 0.3s; }
.nav__menu.is-open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav__menu.is-open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(78vw, 340px);
  background: var(--cream-2);
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
  padding: 3rem;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer a {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  /* Fill the viewport minus the announcement bar + sticky nav, so the whole
     hero is visible without scrolling. svh avoids mobile URL-bar overflow. */
  min-height: calc(100svh - var(--header-h, 104px));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding: clamp(1rem, 3vh, 2.5rem) clamp(1.2rem, 5vw, 5rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__sun {
  position: absolute;
  top: -22%;
  right: -10%;
  width: 75vh;
  height: 75vh;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    var(--glow) 0%, #ffe7c2 28%, var(--cream-2) 60%, transparent 72%);
  filter: blur(8px);
  opacity: 0.85;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  50% { transform: scale(1.06); opacity: 1; }
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; max-width: 560px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 1.2rem 0;
}
.hero__title span { display: block; }
.hero__title--it { font-style: italic; color: var(--brick); padding-left: 0.6em; }
.hero__tagline {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 1rem;
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 440px;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 1.8rem;
  font-size: 0.74rem; letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.hero__trust span { white-space: nowrap; }

/* Reveal helper inside hero title */
.hero__title .reveal {
  opacity: 0; transform: translateY(40px);
  animation: heroIn 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.hero__inner .reveal:not(.hero__title .reveal) {
  opacity: 0; transform: translateY(24px);
  animation: heroIn 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Product */
.hero__product {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.hero__glow {
  position: absolute;
  width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-2) 0%, var(--glow) 35%, transparent 68%);
  filter: blur(18px);
  opacity: 0.7;
  z-index: -1;
  animation: breathe 8s ease-in-out infinite;
}
.hero__bottle {
  position: relative;
  width: min(260px, 62%);
  height: auto;
  /* Soft, stable shadow that does NOT rotate with the tilt */
  filter: drop-shadow(0 26px 30px rgba(120,60,40,0.22));
  animation: float 6s ease-in-out infinite;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.hero__pedestal {
  position: absolute;
  bottom: 4%;
  width: 50%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(58,43,37,0.22), transparent 70%);
  filter: blur(5px);
}
.shop__bottle { width: min(220px, 75%); height: auto; filter: drop-shadow(0 24px 36px rgba(120,60,40,0.25)); }

/* ---- CSS bottle (placeholder for product photo) ---- */
.bottle {
  position: relative;
  width: 170px;
  filter: drop-shadow(0 30px 40px rgba(120,90,40,0.25));
  animation: float 6s ease-in-out infinite;
  transition: transform 0.2s ease-out;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.bottle--sm { width: 130px; animation: none; }
.bottle__cap {
  width: 58px; height: 46px; margin: 0 auto;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #3b352c, var(--ink));
}
.bottle__neck {
  width: 40px; height: 14px; margin: 0 auto;
  background: linear-gradient(180deg, #d8c9ad, #c9b894);
}
.bottle__body {
  position: relative;
  width: 100%; height: 250px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbf4e7 0%, #f0e3cb 50%, #e2cfa9 100%);
  border: 1px solid rgba(255,255,255,0.6);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.bottle__shine {
  position: absolute; top: 0; left: -30%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-18deg);
  animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen { 0%,60% { left: -40%; } 100% { left: 130%; } }
.bottle__label {
  text-align: center;
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1rem;
}
.bottle__brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: var(--ink);
}
.bottle__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold-deep);
}
.bottle__spf {
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
  margin-top: 0.2rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 3;
}
.hero__scroll-line { width: 1px; height: 40px; background: var(--ink-soft); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content:""; position:absolute; inset:0; background: var(--gold-deep);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* =========================================================
   Value strip (marquee)
   ========================================================= */
.strip {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 1.4rem 0;
}
.strip__track {
  display: flex; align-items: center; gap: 2.5rem;
  width: max-content;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.strip__dot { color: var(--gold); font-style: normal; font-size: 0.7em; }

/* =========================================================
   Science / Benefits
   ========================================================= */
.science {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 3rem);
}
.science__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.feature {
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--white), transparent);
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px -28px rgba(120,90,40,0.4);
  border-color: var(--gold);
}
.feature__num {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--brick);
  display: block;
  font-variant-numeric: lining-nums tabular-nums;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 1rem 0 0.6rem;
}
.feature p { font-size: 0.9rem; color: var(--ink-soft); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
/* Unified big value — same scale & baseline for every stat */
.stat__value {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  display: inline-flex;
  align-items: baseline;
}
.stat__num { font: inherit; color: inherit; }
.stat__unit { font-size: 0.5em; color: var(--ink-soft); margin-left: 0.1em; font-weight: 400; }
.stat__plus { font-size: 0.55em; color: var(--brick); margin-left: 0.06em; letter-spacing: -0.05em; }
.stat__label {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: 0.7rem;
  line-height: 1.1;
}
.stat__sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

/* =========================================================
   Editorial split
   ========================================================= */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 3rem);
}
.editorial__img {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  /* SWAP: replace this gradient with a product/texture photo */
  background:
    radial-gradient(120% 90% at 30% 20%, var(--glow), transparent 55%),
    linear-gradient(150deg, #f3e7d0, var(--sand) 60%, var(--gold) 130%);
}
.editorial__img::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(80% 60% at 70% 80%, rgba(255,255,255,0.5), transparent 60%);
}
.editorial__tag {
  position: absolute; bottom: 1.6rem; left: 1.6rem;
  font-family: var(--serif); font-style: italic; font-size: 1.4rem;
  color: var(--ink);
  z-index: 2;
}
.editorial__text { color: var(--ink-soft); margin: 1.4rem 0 2rem; max-width: 460px; }
.ritual__list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.ritual__list li {
  display: flex; gap: 1rem; align-items: baseline;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.ritual__list span {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  color: var(--brick); min-width: 2rem;
}

/* =========================================================
   Reviews
   ========================================================= */
.reviews {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.reviews .section-head { padding: 0 1.2rem; }
.reviews__rail {
  display: flex;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 0 clamp(1.2rem, 5vw, 3rem) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews__rail::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(86vw, 360px);
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.review__stars { color: var(--gold); letter-spacing: 0.15em; }
.review blockquote {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
}
.review figcaption {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: auto;
}

/* Reviews controls */
.reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 2.5rem;
  padding: 0 1.2rem;
}
.reviews__arrow {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--ink);
  display: grid; place-items: center;
  transition: background 0.4s var(--ease), color 0.4s, transform 0.4s var(--ease), border-color 0.4s;
}
.reviews__arrow:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: scale(1.08);
}
.reviews__arrow:disabled { opacity: 0.3; cursor: default; transform: none; background: none; color: var(--ink); }
.reviews__dots { display: flex; gap: 0.55rem; align-items: center; }
.reviews__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: width 0.4s var(--ease), background 0.4s;
}
.reviews__dots button.is-active { width: 26px; border-radius: 100px; background: var(--brick); }

/* =========================================================
   Shop card
   ========================================================= */
.shop {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 3rem);
}
.shop__card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  background:
    radial-gradient(110% 80% at 20% 10%, var(--glow), transparent 50%),
    linear-gradient(160deg, var(--cream-2), var(--sand));
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  border: 1px solid rgba(255,255,255,0.6);
}
.shop__visual { display: grid; place-items: center; }
.shop__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem,4vw,2.8rem); margin: 0.4rem 0 1rem; }
.shop__price { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.4rem; }
.shop__now { font-family: var(--sans); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.01em; }
.shop__was { font-family: var(--sans); text-decoration: line-through; color: var(--ink-soft); font-size: 1rem; }
.shop__save {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--brick); color: var(--white);
  padding: 0.25rem 0.6rem; border-radius: 100px;
}
.shop__desc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.6rem; }
.shop__qty {
  display: inline-flex; align-items: center; gap: 1.4rem;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.5rem 1.2rem; margin-bottom: 1.4rem;
}
.shop__qty button { font-size: 1.2rem; width: 1.5rem; line-height: 1; transition: color 0.3s; }
.shop__qty button:hover { color: var(--brick); }
.shop__qty span { min-width: 1.2rem; text-align: center; }
.shop__note { font-size: 0.74rem; color: var(--ink-soft); margin-top: 1rem; text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 5vw, 3rem) 2rem;
}
.footer__top {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand {
  font-family: var(--serif); font-size: 1.8rem;
  letter-spacing: 0.3em; padding-left: 0.3em;
}
.footer__brandcol p { color: rgba(246,239,227,0.6); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer__col h4, .footer__news h4 {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem; font-weight: 400;
}
.footer__col a {
  display: block; font-size: 0.9rem; margin-bottom: 0.7rem;
  color: rgba(246,239,227,0.75); transition: color 0.3s;
}
.footer__col a:hover { color: var(--cream); }
.footer__news p { color: rgba(246,239,227,0.6); font-size: 0.88rem; margin-bottom: 1rem; }
.footer__form { display: flex; border-bottom: 1px solid rgba(255,255,255,0.3); }
.footer__form input {
  flex: 1; background: none; border: none; color: var(--cream);
  padding: 0.6rem 0; font-family: var(--sans); font-size: 0.9rem; outline: none;
}
.footer__form input::placeholder { color: rgba(246,239,227,0.45); }
.footer__form button { font-size: 1.2rem; padding: 0 0.5rem; transition: transform 0.3s; }
.footer__form button:hover { transform: translateX(4px); color: var(--gold); }
.footer__msg { color: var(--gold); font-size: 0.8rem; min-height: 1.2rem; margin-top: 0.5rem; }
.footer__contact { color: rgba(246,239,227,0.6); font-size: 0.85rem; margin-top: 1.4rem; line-height: 1.6; }
.footer__contact a { color: rgba(246,239,227,0.85); transition: color 0.3s; word-break: break-word; }
.footer__contact a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--maxw); margin: 2rem auto 0;
  display: flex; justify-content: space-between;
  font-size: 0.74rem; color: rgba(246,239,227,0.5);
  letter-spacing: 0.08em;
}

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translate(-50%, 150%);
  background: var(--ink); color: var(--cream);
  padding: 1rem 1.8rem; border-radius: 100px;
  font-size: 0.8rem; letter-spacing: 0.08em;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5);
  z-index: 90;
  transition: transform 0.6s var(--ease);
  white-space: nowrap;
}
.toast.is-show { transform: translate(-50%, 0); }

/* =========================================================
   Back-to-top button
   ========================================================= */
.to-top {
  position: fixed;
  bottom: 1.6rem; right: 1.6rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--brick); color: var(--white);
  border: none; border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem; line-height: 1;
  box-shadow: 0 12px 28px -10px rgba(168,65,46,0.6);
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s;
  z-index: 80;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brick-deep); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .to-top { bottom: 1.1rem; right: 1.1rem; width: 42px; height: 42px; } }

/* =========================================================
   Trust badges (leaf / droplet / shield / sun — from box)
   ========================================================= */
.badges {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 5vw, 3rem) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.badge {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
}
.badge:hover {
  transform: translateY(-6px);
  border-color: var(--brick);
  box-shadow: 0 24px 44px -26px rgba(181,80,60,0.4);
}
.badge svg {
  width: 38px; height: 38px;
  margin: 0 auto 1rem;
  fill: var(--brick);
  stroke: none;
}
.badge svg .badge__stroke { fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.badge h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-bottom: 0.3rem; }
.badge p { font-size: 0.82rem; color: var(--ink-soft); }

/* =========================================================
   Checklist (editorial)
   ========================================================= */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.6rem; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.98rem;
  color: var(--ink);
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem;
  display: grid; place-items: center;
  background: var(--brick); color: var(--white);
  border-radius: 50%; font-size: 0.7rem;
}

/* Editorial photo + fallback */
.editorial__media { position: relative; border-radius: 20px; overflow: hidden; }
.editorial__photo { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/4; display: block; }
.editorial__media--fallback {
  aspect-ratio: 4/5;
  background:
    radial-gradient(120% 90% at 30% 20%, var(--glow), transparent 55%),
    linear-gradient(150deg, var(--cream-2), var(--sand) 60%, var(--gold) 130%);
}

/* =========================================================
   Ingredients
   ========================================================= */
.ingredients {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 3rem);
  text-align: center;
}
.ing__highlights {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  margin: 3rem 0 2.5rem;
}
.ing__chip {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.3rem;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease), border-color 0.4s;
}
.ing__chip:hover { background: var(--brick); color: var(--white); border-color: var(--brick); transform: translateY(-3px); }
.ing__full {
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}
.ing__full summary {
  cursor: pointer;
  padding: 1.1rem 1.6rem;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brick);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.ing__full summary::-webkit-details-marker { display: none; }
.ing__full summary::after { content: "+"; font-size: 1.3rem; transition: transform 0.4s; }
.ing__full[open] summary::after { transform: rotate(45deg); }
.ing__full p {
  padding: 0 1.6rem 1.6rem;
  font-size: 0.86rem; line-height: 1.8;
  color: var(--ink-soft);
}

/* =========================================================
   How to use
   ========================================================= */
.howto {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.2rem, 5vw, 3rem);
}
.howto__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  counter-reset: step;
}
.howstep {
  padding: 2.4rem 2rem;
  border-top: 2px solid var(--brick);
  background: linear-gradient(180deg, var(--white), transparent);
  border-radius: 0 0 16px 16px;
}
.howstep__num {
  font-family: var(--sans); font-weight: 400;
  font-size: 1.1rem; letter-spacing: 0.1em;
  color: var(--brick);
  font-variant-numeric: lining-nums;
}
.howstep h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0.8rem 0 0.5rem; }
.howstep p { font-size: 0.92rem; color: var(--ink-soft); }

/* Shop rating */
.shop__rating { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 1rem; }
.shop__stars { color: var(--gold-deep); letter-spacing: 0.1em; }

/* =========================================================
   Footer legal (real manufacturer / marketer details)
   ========================================================= */
.footer__legal {
  max-width: var(--maxw); margin: 2rem auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2.5rem;
  font-size: 0.76rem; line-height: 1.6;
  color: rgba(247,237,230,0.55);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer__legal strong { color: rgba(247,237,230,0.8); font-weight: 400; }
.footer__logo { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__brand-fallback { font-family: var(--script); font-size: 2.2rem; color: var(--cream); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links--left { display: none; }
  .nav__links--right a:not(.nav__cta) { display: none; }
  .nav__menu { display: flex; }
  .nav__brand { justify-content: flex-start; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 3rem;
    gap: 2rem;
  }
  .hero__inner { margin: 0 auto; order: 1; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__title--it { padding-left: 0; }
  .hero__scroll { display: none; }
  /* Text leads; bottle sits BELOW the copy and is smaller */
  .hero__product { order: 2; }
  .hero__bottle { width: min(190px, 44vw); }
  .hero__glow { width: 60%; }

  .science__grid { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .howto__steps { grid-template-columns: 1fr; }
  .editorial, .shop__card, .footer__top { grid-template-columns: 1fr; }
  /* .editorial__photo { aspect-ratio: 16/12; } */
  .editorial__media--fallback { aspect-ratio: 16/12; }
  .shop__visual { order: -1; }
  .footer__top { gap: 2rem; }
  .footer__legal { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .science__grid { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; gap: 1.4rem; }
  .hero__title { font-size: clamp(2.8rem, 17vw, 4rem); }
  .hero__tagline { font-size: 1.4rem; }
  .hero__sub { font-size: 0.98rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__bottle { width: min(160px, 42vw); }
  .footer__bottom { flex-direction: column; gap: 0.6rem; text-align: center; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
