/* ===========================================================
   ELIXR — Lovable-inspired warm system
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;1,400&family=Newsreader:ital,opsz,wght@0,18..72,400;0,18..72,500;1,18..72,400&family=Onest:wght@400;500;600&family=Figtree:wght@400;500;600&display=swap');

:root {
  /* Core palette */
  --cream: #f7f4ed;
  --charcoal: #1c1c1c;
  --offwhite: #fcfbf8;
  --muted: #5f5f5d;

  /* Opacity-derived neutrals (all from charcoal) */
  --ink-83: rgba(28, 28, 28, 0.83);
  --ink-82: rgba(28, 28, 28, 0.82);
  --ink-40: rgba(28, 28, 28, 0.40);
  --ink-08: rgba(28, 28, 28, 0.08);
  --ink-04: rgba(28, 28, 28, 0.04);
  --ink-03: rgba(28, 28, 28, 0.03);

  /* Brand (from ELIXR logo) */
  --navy: #16243f;
  --navy-deep: #0f1a2e;
  --gold: #c6a14a;
  --gold-soft: rgba(198, 161, 74, 0.5);
  --gold-faint: rgba(198, 161, 74, 0.16);

  /* Borders */
  --border: #eceae4;
  --border-strong: rgba(28, 28, 28, 0.40);

  /* Type */
  --font: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Depth */
  --inset: rgba(255,255,255,0.2) 0px 0.5px 0px 0px inset,
           rgba(0,0,0,0.2) 0px 0px 0px 0.5px inset,
           rgba(0,0,0,0.05) 0px 1px 2px 0px;
  --focus: rgba(0,0,0,0.1) 0px 4px 12px;

  /* Accent wash (tweakable) */
  --wash-1: #f6d9c4;
  --wash-2: #e7cfe0;
  --wash-3: #cdd9ee;
  --wash-4: #f2e6c9;

  /* Radii */
  --r-micro: 4px;
  --r-std: 6px;
  --r-comfy: 8px;
  --r-card: 12px;
  --r-container: 16px;
  --r-pill: 9999px;

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(28,28,28,0.12); }

img { display: block; max-width: 100%; }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(40px, 6.2vw, 60px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -1.5px;
  text-wrap: balance;
}
.display-alt {
  font-weight: 480;
  letter-spacing: -1px;
}
.h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -1.2px;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.9px;
  text-wrap: balance;
}
.card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.lead {
  font-size: 18px;
  line-height: 1.38;
  color: var(--muted);
  text-wrap: pretty;
}
.body { font-size: 16px; line-height: 1.5; }
.caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--gold);
  flex: none;
}
.sec-head.center .eyebrow, .quote .eyebrow, .hero .eyebrow { /* centered: keep mark */ }
.protocol .eyebrow::before { background: var(--gold); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 11vw, 128px); }
.section-tight { padding-block: clamp(56px, 8vw, 96px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 20px;
  border-radius: var(--r-std);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .18s ease, box-shadow .2s ease, transform .12s ease;
}
.btn:active { opacity: .8; transform: translateY(0.5px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn-dark {
  background: var(--navy);
  color: var(--offwhite);
  box-shadow: var(--inset);
}
.btn-dark:hover { box-shadow: var(--inset), var(--focus); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--ink-04); }

.btn-cream {
  background: var(--cream);
  color: var(--charcoal);
}
.btn-cream:hover { background: var(--ink-04); }

.btn-sm { font-size: 14px; padding: 9px 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 14px 7px 10px;
  font-size: 13px;
  color: var(--ink-82);
  box-shadow: var(--inset);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4f9a6a;
  box-shadow: 0 0 0 3px rgba(79,154,106,0.18);
}

/* ---------- Cards ---------- */
.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: border-color .2s ease, box-shadow .2s ease, transform .25s ease;
}
.card:hover { border-color: var(--ink-40); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,244,237,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--charcoal);
  text-decoration: none;
}
.wordmark { letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.wordmark .mark {
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background: var(--offwhite);
  box-shadow: 0 0 0 1px var(--gold-soft), var(--inset);
  object-fit: cover;
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--ink-82);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: var(--r-std);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--ink-04); color: var(--charcoal); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- Hero (split 40/60) ---------- */
.hero-split {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
}
.hero-wash {
  position: absolute;
  inset: -18% -10% auto -10%;
  height: 820px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 54% at 78% 16%, var(--wash-1) 0%, transparent 62%),
    radial-gradient(42% 52% at 92% 48%, var(--wash-2) 0%, transparent 60%),
    radial-gradient(50% 60% at 64% 84%, var(--wash-3) 0%, transparent 66%),
    radial-gradient(36% 46% at 48% 22%, var(--wash-4) 0%, transparent 60%);
  filter: blur(40px) saturate(108%);
  opacity: 0.7;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
}

/* LEFT */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.hero-headline {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: clamp(52px, 7.2vw, 92px);
  line-height: 0.96;
  letter-spacing: -1px;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
}
.hero-headline .hl { display: block; }
.hero-headline .acc {
  font-style: normal;
  color: var(--gold);
}
.hero-copy .lead { max-width: 420px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* RIGHT — scene */
.hero-scene {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.scene-mol {
  position: absolute;
  width: 78%;
  max-width: 460px;
  top: -4%;
  right: -2%;
  opacity: 0.55;
  pointer-events: none;
}
.scene-stage {
  position: relative;
  width: min(86%, 460px);
  aspect-ratio: 3 / 4;
  border-radius: var(--r-container);
  padding: 14px;
  background:
    radial-gradient(80% 70% at 50% 16%, color-mix(in srgb, var(--wash-1) 70%, transparent) 0%, transparent 72%),
    var(--offwhite);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 24px 60px -28px rgba(22,36,63,0.4);
}
.scene-stage image-slot {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--r-container) - 8px);
  border: 1px solid var(--border);
}
.scene-stage .hero-family {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--r-container) - 8px);
  border: 1px solid var(--border);
}
.spec-card {
  position: absolute;
  background: rgba(252,251,248,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: 0 0 0 1px var(--gold-faint), var(--focus);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}
.spec-card .spec-k { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.spec-card .spec-v { font-family: 'Newsreader', Georgia, serif; font-size: 28px; line-height: 1; color: var(--navy); }
.spec-card .spec-v.small { font-size: 16px; font-weight: 500; display: block; }
.spec-tl { top: 8%; left: 0; }
.spec-br { right: 0; bottom: 10%; flex-direction: row; align-items: center; gap: 12px; }
.spec-br .spec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-faint);
  flex: none;
}

/* Entrance: content is visible by default. When JS arms the cascade it hides
   the items, animates them via WAAPI, and a setTimeout failsafe force-finishes
   them to visible even if the animation clock is frozen. */
@media (prefers-reduced-motion: no-preference) {
  html.cascade-armed .hx,
  html.cascade-armed .sc { opacity: 0; }
}

/* ---------- Trust strip ---------- */
.trust {
  border-block: 1px solid var(--border);
  background: var(--ink-03);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding-block: 26px;
}
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-82); font-size: 15px; }
.trust-item svg { width: 18px; height: 18px; flex: none; color: var(--charcoal); }

/* ---------- Section heading ---------- */
.sec-head {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 52px;
}
.sec-head.center { margin-inline: auto; text-align: center; align-items: center; }

/* ---------- Benefits grid ---------- */
.bgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.benefit {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.benefit .ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--cream);
  border: 1px solid var(--border);
  box-shadow: var(--inset);
}
.benefit .ico svg { width: 20px; height: 20px; color: var(--charcoal); }
.benefit p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.benefit h4 { margin: 0; }

/* ---------- Product gallery ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product { overflow: hidden; display: flex; flex-direction: column; }
.product .pmedia {
  position: relative;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(70% 80% at 50% 18%, var(--wash-1) 0%, transparent 70%),
    var(--ink-03);
}
.product .pmedia image-slot { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.product .pbody { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product .ptop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.product .price { font-size: 16px; font-weight: 500; white-space: nowrap; }
.product .price-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.product .price-wrap .per { font-size: 11.5px; color: var(--muted); letter-spacing: 0.01em; }
.product p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.product .pfoot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag {
  font-size: 12px; font-weight: 500;
  white-space: nowrap;
  color: var(--ink-82);
  background: var(--ink-04);
  border-radius: var(--r-pill);
  padding: 4px 11px;
}

/* ---------- Protocol / how it works ---------- */
.protocol {
  background: var(--navy);
  color: var(--offwhite);
  border-radius: var(--r-container);
  padding: clamp(36px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--gold-faint);
}
.protocol .eyebrow { color: rgba(252,251,248,0.6); }
.protocol h2 { color: var(--offwhite); }
.protocol .lead { color: rgba(252,251,248,0.72); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step {
  border: 1px solid rgba(252,251,248,0.14);
  border-radius: var(--r-card);
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(252,251,248,0.03);
}
.step .num {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600; font-size: 15px;
}
.step { border-color: rgba(252,251,248,0.12); }
.step:hover { border-color: var(--gold-soft); }
.step h4 { margin: 0; color: var(--offwhite); font-size: 19px; font-weight: 500; letter-spacing: -0.3px; }
.step p { margin: 0; color: rgba(252,251,248,0.6); font-size: 15px; line-height: 1.5; }

/* ---------- Testimonial ---------- */
.quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.quote blockquote {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 480;
  line-height: 1.24;
  letter-spacing: -0.7px;
  text-wrap: balance;
}
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who image-slot { width: 44px; height: 44px; }
.quote .who .meta { text-align: left; }
.quote .who .meta strong { font-weight: 500; display: block; font-size: 15px; }
.quote .who .meta span { font-size: 14px; color: var(--muted); }

/* ---------- Closing CTA ---------- */
.cta-final {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-container);
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  text-align: center;
}
.cta-final .hero-wash { height: 100%; inset: 0; opacity: 0.6; }
.cta-final .inner {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.cta-mark {
  width: 72px; height: 72px;
  border-radius: var(--r-pill);
  background: var(--offwhite);
  box-shadow: 0 0 0 1px var(--gold-soft), var(--focus);
  object-fit: cover;
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer .wrap { padding-block: 64px 40px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.foot-brand { display: flex; flex-direction: column; gap: 16px; max-width: 280px; }
.foot-brand p { margin: 0; color: var(--muted); font-size: 15px; }
.foot-col h5 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--ink-82); text-decoration: none; font-size: 15px; }
.foot-col a:hover { text-decoration: underline; }
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.foot-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-bottom a { color: var(--muted); text-decoration: none; }
.foot-bottom a:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
/* ---------- Entrance (transform-only; never hides content) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-scene { order: -1; min-height: 380px; }
  .hero-copy { align-items: flex-start; }
  .pgrid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 600px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.menu-open .mobile-menu { display: block; }
  .bgrid { grid-template-columns: 1fr; }
  .trust-inner { justify-content: flex-start; gap: 16px 28px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
}
.mobile-menu .wrap {
  display: flex;
  flex-direction: column;
  padding-block: 10px 16px;
}
.mobile-menu a {
  color: var(--ink-82);
  text-decoration: none;
  font-size: 17px;
  padding: 13px 12px;
  border-radius: var(--r-std);
}
.mobile-menu a:hover,
.mobile-menu a.active { background: var(--ink-04); color: var(--charcoal); }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--offwhite);
  text-decoration: none;
  padding: 12px 20px 12px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), var(--inset);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.wa-fab:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.30), var(--inset);
}
.wa-fab:active { transform: translateY(0); opacity: 0.9; }
.wa-fab svg { flex-shrink: 0; }
@media (max-width: 600px) {
  .wa-fab { padding: 13px; border-radius: 50%; }
  .wa-fab span { display: none; }
}
