/* ————————————————————————————————————————————————
   Healium Hair — concept redesign
   Airy botanical luxury · porcelain / sage / moss / rose-gold
   Libre Caslon Display + Libre Caslon Text + Mulish
———————————————————————————————————————————————— */

:root {
  --porcelain: #faf7f2;
  --porcelain-deep: #f2ecdf;
  --linen: #f6f1e7;
  --sage: #8ba888;
  --sage-mist: #e3eadf;
  --sage-line: #c6d4c2;
  --moss: #3c4a3a;
  --moss-deep: #2e392d;
  --rose: #d9a08c;
  --rose-ink: #9c5237; /* AA-safe rose for small text on porcelain */
  --ink: #333f32;
  --ink-soft: #5a6a58;

  --serif-d: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif-t: "Libre Caslon Text", Georgia, serif;
  --sans: "Mulish", -apple-system, "Segoe UI", sans-serif;

  --ease-soft: cubic-bezier(.22, .8, .3, 1);
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
html.no-smooth { scroll-behavior: auto; }

body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--sage); color: #fff; }

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif-d); font-weight: 400; line-height: 1.12; color: var(--moss); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--moss); color: var(--porcelain);
  padding: .6rem 1.1rem; border-radius: 999px; font-size: .85rem;
  text-decoration: none; transition: top .25s var(--ease-soft);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--rose-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ————— Header ————— */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background .4s var(--ease-soft), box-shadow .4s var(--ease-soft), padding .4s var(--ease-soft);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(60, 74, 58, .08);
  padding-block: .7rem;
}
.wordmark {
  font-family: var(--serif-d); font-size: 1.45rem; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; color: var(--moss);
  display: inline-flex; align-items: baseline; gap: .5rem;
}
.wordmark .leafdot { color: var(--rose-ink); font-size: .8em; transform: translateY(-.15em); }

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.main-nav a {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); position: relative; padding: .35rem 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--rose-ink); transition: right .35s var(--ease-soft);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.main-nav a:hover { color: var(--moss); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.9rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .3s var(--ease-soft), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--moss); color: var(--porcelain); }
.btn-solid:hover { background: var(--moss-deep); box-shadow: 0 10px 30px -12px rgba(46, 57, 45, .5); }
.btn-ghost { border-color: var(--sage-line); color: var(--moss); background: transparent; }
.btn-ghost:hover { border-color: var(--moss); background: rgba(139, 168, 136, .08); }
.btn-rose { background: var(--rose-ink); color: #fff; }
.btn-rose:hover { background: #83432c; box-shadow: 0 10px 30px -12px rgba(156, 82, 55, .55); }
.btn-sm { padding: .7rem 1.35rem; font-size: .74rem; }
.main-nav a.nav-cta { color: #fff; }
.main-nav a.nav-cta:hover { color: #fff; }
.main-nav a.nav-cta::after { display: none; }

/* ————— Hero ————— */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  overflow: hidden;
  background: var(--porcelain);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 32% center;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(250,247,242,0) 38%, rgba(250,247,242,.55) 62%, rgba(250,247,242,.9) 100%),
    linear-gradient(to bottom, rgba(250,247,242,.8) 0%, rgba(250,247,242,0) 16%),
    linear-gradient(to top, rgba(250,247,242,.95) 0%, rgba(250,247,242,0) 30%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(1200px, 100%); margin-inline: auto;
  padding: 8rem var(--gutter) 6.5rem;
  display: grid; justify-items: end;
}
.hero-copy { max-width: 34rem; text-align: left; }
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rose-ink); margin-bottom: 1.4rem;
}
.kicker::before { content: ""; width: 2.2rem; height: 1px; background: var(--rose-ink); }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  letter-spacing: -.01em;
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; font-family: var(--serif-t); color: var(--rose-ink); }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 30rem; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: .4rem 1.6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-soft);
}
.hero-proof .stars { color: var(--rose-ink); letter-spacing: .1em; }

.hero-botanical {
  position: absolute; z-index: 2; left: calc(var(--gutter) * .4); bottom: -1.5rem;
  width: clamp(140px, 20vw, 300px); color: var(--moss); opacity: .5; pointer-events: none;
}

.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 2.4rem; background: var(--ink-soft);
  animation: hint-drop 2.4s var(--ease-soft) infinite;
  transform-origin: top;
}
@keyframes hint-drop { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ————— Shared section chrome ————— */
.section { padding: clamp(4.5rem, 9vw, 8.5rem) var(--gutter); position: relative; }
.section-inner { width: min(1200px, 100%); margin-inline: auto; }
.section-tag {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--rose-ink); margin-bottom: 1.6rem;
}
.section-tag .no { font-family: var(--serif-t); font-style: italic; letter-spacing: 0; font-weight: 400; font-size: .95rem; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 22ch; margin-bottom: 1.2rem; }
.section-lede { color: var(--ink-soft); max-width: var(--measure); font-size: 1.08rem; }

/* ————— Trust strip ————— */
.trust {
  background: var(--moss); color: var(--porcelain);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
}
.trust-inner {
  width: min(1200px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.stat { text-align: left; border-left: 1px solid rgba(250,247,242,.22); padding-left: 1.4rem; }
.stat-num {
  font-family: var(--serif-d); font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--porcelain); display: block; line-height: 1.05; font-variant-numeric: tabular-nums;
}
.stat-num .suffix { color: var(--rose); }
.stat-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,247,242,.72); margin-top: .5rem; display: block; }

.badge-row {
  width: min(1200px, 100%); margin: 2.8rem auto 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1rem;
  border-top: 1px solid rgba(250,247,242,.16); padding-top: 1.8rem;
}
.badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--porcelain); border: 1px solid rgba(250,247,242,.32);
  padding: .45rem 1rem; border-radius: 999px;
}

/* ————— The Letter ————— */
.letter-section { background: var(--porcelain); overflow: hidden; }
.letter-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.letter-aside { position: sticky; top: 7rem; }
.letter-aside .section-title { font-size: clamp(2rem, 3.6vw, 3rem); }
.letter-aside-note { color: var(--ink-soft); font-size: .95rem; max-width: 30ch; }
.letter-botanical { width: clamp(120px, 14vw, 210px); color: var(--sage); margin-top: 2.5rem; }

.letter-paper {
  background: #fffdf9;
  border: 1px solid rgba(60, 74, 58, .1);
  box-shadow: 0 30px 60px -40px rgba(60, 74, 58, .35);
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 4.5rem);
  position: relative;
}
.letter-paper::before {
  content: ""; position: absolute; inset: .65rem;
  border: 1px solid rgba(139, 168, 136, .28); border-radius: 2px; pointer-events: none;
}
.letter-body { font-family: var(--serif-t); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.85; color: var(--moss-deep); }
.letter-body > * + * { margin-top: 1.35em; }
.letter-salutation { font-style: italic; font-size: 1.25em; }
.letter-body .drop::first-letter {
  font-family: var(--serif-d); font-size: 3.1em; float: left;
  line-height: .82; padding: .06em .12em 0 0; color: var(--rose-ink);
}
.letter-sig { margin-top: 2.2em; }
.letter-sig .sig-name {
  font-family: var(--serif-t); font-style: italic; font-size: 1.9em; line-height: 1.2;
  color: var(--moss); display: block;
}
.letter-sig .sig-role { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: .5rem; }
.letter-ps { font-size: .92em; color: var(--ink-soft); border-top: 1px solid rgba(139,168,136,.3); padding-top: 1.3em; }

/* ————— The Science ————— */
.science-section { background: var(--linen); overflow: hidden; }
.science-hero {
  position: relative; border-radius: 6px; overflow: hidden; margin-top: 3rem;
}
.science-hero img { width: 100%; height: auto; object-fit: cover; }
.science-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(246,241,231,.15), rgba(246,241,231,0) 45%);
}
.science-botanical {
  position: absolute; right: clamp(.5rem, 4vw, 3rem); top: 50%; transform: translateY(-50%);
  width: clamp(130px, 22vw, 320px); color: var(--moss); opacity: .8;
}
.ingredients {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.2rem;
}
.ingredient {
  background: var(--porcelain);
  border: 1px solid rgba(60, 74, 58, .08);
  border-radius: 6px; padding: 1.8rem 1.6rem 1.6rem;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft), border-color .35s;
}
.ingredient:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -30px rgba(60, 74, 58, .4);
  border-color: var(--sage-line);
}
.ingredient .glyph { width: 44px; height: 44px; color: var(--sage); margin-bottom: 1.1rem; }
.ingredient:hover .glyph { color: var(--rose-ink); }
.ingredient h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.ingredient p { font-size: .93rem; color: var(--ink-soft); line-height: 1.65; }
.science-note {
  margin-top: 2.4rem; max-width: var(--measure);
  font-size: .9rem; color: var(--ink-soft);
  border-left: 2px solid var(--rose); padding-left: 1.2rem;
}

/* ————— The Ritual ————— */
.ritual-section { background: var(--porcelain); }
.ritual-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  counter-reset: step; margin: 3rem 0 4rem;
}
.step {
  border-top: 1px solid var(--sage-line); padding-top: 1.4rem; counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--serif-t); font-style: italic; font-size: 1.1rem; color: var(--rose-ink);
  display: block; margin-bottom: .8rem;
}
.step h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.step .step-product { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-ink); display: block; margin-bottom: .55rem; }
.step p { font-size: .94rem; color: var(--ink-soft); }

.ritual-photo { border-radius: 6px; overflow: hidden; margin-bottom: 4rem; position: relative; }
.ritual-photo img { width: 100%; }
.ritual-photo figcaption {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: rgba(250,247,242,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--moss);
  padding: .5rem 1rem; border-radius: 999px;
}

.bundles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.bundle {
  position: relative;
  background: var(--linen); border: 1px solid rgba(60,74,58,.08); border-radius: 6px;
  padding: 2rem 1.6rem 1.7rem;
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.bundle:hover { transform: translateY(-5px); box-shadow: 0 28px 50px -32px rgba(60,74,58,.45); }
.bundle.is-featured { background: var(--moss); color: var(--porcelain); }
.bundle.is-featured h3 { color: var(--porcelain); }
.bundle.is-featured .bundle-desc { color: rgba(250,247,242,.78); }
.bundle.is-featured .bundle-meta { color: rgba(250,247,242,.6); }
.bundle-flag {
  position: absolute; top: -0.8rem; left: 1.4rem;
  background: var(--rose-ink); color: #fff;
  font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 999px;
}
.bundle h3 { font-size: 1.6rem; }
.bundle .bundle-for { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-ink); }
.bundle.is-featured .bundle-for { color: var(--rose); }
.bundle-desc { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.bundle-meta { font-size: .78rem; color: var(--ink-soft); letter-spacing: .04em; }
.bundle .btn { justify-content: center; }

.price-list {
  margin-top: 3.2rem; border-top: 1px solid var(--sage-line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem;
}
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(139,168,136,.25);
  font-size: .95rem;
}
.price-row .p-name { font-family: var(--serif-t); font-size: 1.05rem; color: var(--moss); }
.price-row .p-price { font-weight: 700; color: var(--rose-ink); white-space: nowrap; }

.shipping-strip {
  margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .05em; color: var(--ink-soft);
}
.shipping-strip span::before { content: "❧"; color: var(--sage); margin-right: .5rem; }

/* ————— Rewards ————— */
.rewards {
  background: var(--sage-mist);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter);
}
.rewards-inner {
  width: min(1200px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 3rem; align-items: center;
}
.rewards h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .8rem; }
.rewards p { color: var(--ink-soft); max-width: 46ch; }
.rewards-tiers { display: grid; gap: .8rem; }
.tier {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--porcelain); border-radius: 6px; padding: 1rem 1.4rem;
  font-size: .92rem; border: 1px solid rgba(60,74,58,.07);
}
.tier b { font-family: var(--serif-t); font-weight: 400; font-size: 1.05rem; color: var(--moss); }
.tier span { color: var(--rose-ink); font-weight: 700; font-size: .85rem; letter-spacing: .06em; }

/* ————— Reviews ————— */
.reviews-section { background: var(--porcelain); }
.review-wall { columns: 3; column-gap: 1.2rem; margin-top: 3rem; }
.review {
  break-inside: avoid; margin-bottom: 1.2rem;
  background: #fffdf9; border: 1px solid rgba(60,74,58,.09); border-radius: 6px;
  padding: 1.6rem 1.5rem 1.4rem;
}
.review .stars { color: var(--rose-ink); font-size: .85rem; letter-spacing: .18em; margin-bottom: .8rem; display: block; }
.review blockquote { font-family: var(--serif-t); font-size: 1.02rem; line-height: 1.7; color: var(--moss-deep); }
.review blockquote::before { content: "“"; color: var(--sage); font-size: 1.4em; line-height: 0; margin-right: .05em; }
.review blockquote::after { content: "”"; color: var(--sage); font-size: 1.4em; line-height: 0; margin-left: .05em; }
.review footer { margin-top: 1rem; font-size: .78rem; letter-spacing: .08em; color: var(--ink-soft); }
.review footer b { color: var(--ink); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; }
.review .tag { color: var(--rose-ink); }
.reviews-cta { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.reviews-cta .fine { font-size: .8rem; color: var(--ink-soft); }

/* ————— Signup ————— */
.signup {
  background: var(--moss); color: var(--porcelain);
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
  position: relative; overflow: hidden;
}
.signup-inner { width: min(760px, 100%); margin-inline: auto; text-align: center; position: relative; z-index: 1; }
.signup h2 { color: var(--porcelain); font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: .9rem; }
.signup p { color: rgba(250,247,242,.75); margin-bottom: 2rem; }
.signup-form { display: flex; gap: .7rem; max-width: 460px; margin-inline: auto; }
.signup-form input {
  flex: 1; min-width: 0;
  background: rgba(250,247,242,.1); border: 1px solid rgba(250,247,242,.35);
  border-radius: 999px; padding: .95rem 1.4rem;
  font-family: var(--sans); font-size: .95rem; color: var(--porcelain);
}
.signup-form input::placeholder { color: rgba(250,247,242,.55); }
.signup-form input:focus-visible { outline-color: var(--rose); }
.signup-fine { font-size: .74rem; color: rgba(250,247,242,.55); margin-top: 1.1rem; }
.signup-botanical {
  position: absolute; right: -2rem; bottom: -2.5rem; width: clamp(180px, 24vw, 340px);
  color: rgba(250,247,242,.5); pointer-events: none;
}

/* ————— Footer ————— */
.site-footer { background: var(--moss-deep); color: rgba(250,247,242,.8); padding: 3.5rem var(--gutter) 2.5rem; }
.footer-inner { width: min(1200px, 100%); margin-inline: auto; }
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
  padding-bottom: 2.2rem; border-bottom: 1px solid rgba(250,247,242,.14);
}
.footer-brand .wordmark { color: var(--porcelain); }
.footer-brand p { font-size: .85rem; max-width: 34ch; margin-top: .9rem; color: rgba(250,247,242,.6); }
.footer-col h3 { font-family: var(--sans); font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; font-size: .9rem; }
.footer-col a { text-decoration: none; color: rgba(250,247,242,.8); }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  padding-top: 1.8rem; font-size: .78rem; color: rgba(250,247,242,.55);
  display: grid; gap: .4rem;
}
.footer-legal a { color: var(--rose); }

/* ————— Toast ————— */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 300;
  transform: translate(-50%, 150%);
  visibility: hidden;
  background: var(--moss-deep); color: var(--porcelain);
  font-size: .88rem; padding: .9rem 1.5rem; border-radius: 999px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.45);
  transition: transform .45s var(--ease-soft), visibility 0s .45s;
  max-width: min(92vw, 30rem); text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

/* ————— Botanical draw-on-scroll ————— */
/* Stroke styling lives on the svg root so it inherits into <use> shadow
   clones (no-JS fallback renders fully drawn line art, never black fills). */
svg.draw {
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Only hydrated (real-DOM) paths get the hidden-until-drawn treatment. */
svg.draw.hydrated path, svg.draw.hydrated circle, svg.draw.hydrated ellipse {
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
html.motion-off svg.draw path, html.motion-off svg.draw circle, html.motion-off svg.draw ellipse {
  stroke-dashoffset: 0 !important;
}

/* ————— Reveal ————— */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
html.motion-off .reveal { opacity: 1; transform: none; transition: none; }

/* ————— 404 ————— */
.err-page {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 2rem var(--gutter); background: var(--porcelain);
}
.err-inner { max-width: 34rem; }
.err-inner .err-code { font-family: var(--serif-d); font-size: clamp(5rem, 16vw, 9rem); color: var(--moss); line-height: 1; }
.err-inner .err-code em { font-style: italic; color: var(--rose-ink); }
.err-inner h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 1rem 0 .8rem; }
.err-inner p { color: var(--ink-soft); margin-bottom: 2rem; }
.err-botanical { width: 150px; margin: 0 auto 1rem; color: var(--sage); }

/* ————— Guide ————— */
.guide-main { width: min(880px, 100%); margin-inline: auto; padding: 8rem var(--gutter) 5rem; }
.guide-main > section { margin-bottom: 3.6rem; }
.guide-main h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.guide-main h2 {
  font-size: 1.6rem; margin-bottom: .9rem; padding-top: 1.2rem;
  border-top: 1px solid var(--sage-line);
}
.guide-main h2 .gno { font-family: var(--serif-t); font-style: italic; color: var(--rose-ink); font-size: .85em; margin-right: .6rem; }
.guide-main p, .guide-main li { color: var(--ink-soft); font-size: .98rem; }
.guide-main ul, .guide-main ol { padding-left: 1.3rem; display: grid; gap: .45rem; margin-top: .6rem; }
.guide-main strong { color: var(--moss); }
.guide-main code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em;
  background: var(--sage-mist); color: var(--moss-deep);
  padding: .12em .4em; border-radius: 4px;
}
.guide-lede { font-family: var(--serif-t); font-size: 1.15rem; color: var(--ink); max-width: 60ch; }
.swatches { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.swatch { display: grid; gap: .35rem; font-size: .74rem; color: var(--ink-soft); }
.swatch i { display: block; width: 86px; height: 56px; border-radius: 6px; border: 1px solid rgba(60,74,58,.15); }
.gtable { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .9rem; }
.gtable th, .gtable td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid rgba(139,168,136,.3); color: var(--ink-soft); }
.gtable th { color: var(--moss); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }

/* ————— Responsive ————— */
@media (max-width: 1023px) {
  .ingredients { grid-template-columns: repeat(2, 1fr); }
  .bundles { grid-template-columns: repeat(2, 1fr); }
  .review-wall { columns: 2; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .price-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  .main-nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 767px) {
  .hero-inner { justify-items: start; padding-top: 7rem; }
  .hero-scrim {
    background:
      linear-gradient(to bottom, rgba(250,247,242,.85) 0%, rgba(250,247,242,0) 14%),
      linear-gradient(to top, rgba(250,247,242,.97) 8%, rgba(250,247,242,.6) 45%, rgba(250,247,242,.08) 78%);
  }
  .hero-copy { max-width: 100%; }
  .hero-botanical { display: none; }
  .letter-grid { grid-template-columns: 1fr; }
  .letter-aside { position: static; }
  .letter-botanical { display: none; }
  .ritual-steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .ingredients { grid-template-columns: 1fr; }
  .bundles { grid-template-columns: 1fr; }
  .review-wall { columns: 1; }
  .rewards-inner { grid-template-columns: 1fr; }
  .price-list { grid-template-columns: 1fr; }
  .signup-form { flex-direction: column; }
  .signup-form .btn { justify-content: center; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .stat { padding-left: 1rem; }
  .science-botanical { display: none; }
}

@media (max-width: 420px) {
  .trust-inner { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ————— Reduced motion ————— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  svg.draw path, svg.draw circle, svg.draw ellipse { stroke-dashoffset: 0; }
  .scroll-hint::after { animation: none; }
}
