/* ==========================================================================
   NEUROSALT — "The Formulary" design system
   A modern apothecary aesthetic: parchment, brass, deep botanical navy.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Public+Sans:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Color tokens — sampled directly from the NeuroSalt bottle label */
  --ink-navy: #0B3149;
  --ink-navy-deep: #072634;
  --amber: #C07632;
  --amber-dark: #9C5C24;
  --parchment: #FCFBF8;
  --parchment-dim: #F5F1E9;
  --sage: #2F6478;
  --sage-light: #6B8C99;
  --gold-hairline: #D9A860;
  --ink-text: #1C1B19;
  --ink-soft: #4B4740;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', sans-serif;
  --font-label: 'Space Mono', monospace;

  --radius-card: 6px;
  --shadow-card: 0 12px 32px -12px rgba(18, 48, 63, 0.25);
  --shadow-soft: 0 4px 16px -8px rgba(18, 48, 63, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-text);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-navy-deep);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 400; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.14; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }

/* Gradient headline — blends the bottle's navy into its amber */
.grad-heading {
  background: linear-gradient(100deg, var(--ink-navy-deep) 35%, var(--amber) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber-dark);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 16px 32px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  letter-spacing: 0.01em;
}
.btn:focus-visible {
  outline: 2px solid var(--ink-navy);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--amber);
  color: var(--parchment);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-outline {
  background: transparent;
  border-color: var(--ink-navy);
  color: var(--ink-navy);
}
.btn-outline:hover { background: var(--ink-navy); color: var(--parchment); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 22px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(18,48,63,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink-navy-deep);
}
.brand-logo { height: 40px; width: auto; display: block; }
.brand-bottle { height: 52px; width: auto; display: block; }
.brand .seal {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-label);
  font-size: 0.6rem;
  color: var(--amber-dark);
}
.main-nav ul { display: flex; gap: 34px; align-items: center; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-navy);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink-navy); cursor: pointer; }

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; background: var(--parchment); border-bottom: 1px solid rgba(18,48,63,0.1); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.2s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; padding: 20px 28px 28px; gap: 18px; align-items: flex-start; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(193,127,62,0.14), transparent 55%),
    var(--parchment);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .btn-primary { margin-top: 10px; }
.hero-badges {
  display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap;
}
.hero-badges span {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-navy);
  display: flex; align-items: center; gap: 8px;
}
.hero-badges span::before { content: "✓"; color: var(--sage); font-weight: 700; }
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art img {
  max-width: 420px;
  filter: drop-shadow(0 30px 40px rgba(18,48,63,0.28));
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border: 1px solid var(--gold-hairline);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0.5;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-badges { justify-content: center; }
  .hero-art::before { display: none; }
}

/* ---------- Sections generic ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-dark { background: var(--ink-navy-deep); color: var(--parchment); }
.section-dark h2, .section-dark h3 { color: var(--parchment); }
.section-dark p { color: rgba(246,241,231,0.75); }
.section-dark .eyebrow { color: var(--gold-hairline); }
.section-dark .eyebrow::before { background: var(--gold-hairline); }
.section-alt { background: var(--parchment-dim); }

.divider {
  border: none;
  border-top: 1px solid rgba(18,48,63,0.12);
  margin: 0;
}

/* ---------- Trust badges ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.trust-item {
  text-align: center;
  padding: 22px 14px;
  border: 1px solid rgba(18,48,63,0.1);
  border-radius: var(--radius-card);
  background: var(--white);
}
.trust-item .glyph {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--amber-dark);
  margin-bottom: 8px;
}
.trust-item p { font-size: 0.86rem; margin: 0; color: var(--ink-soft); }
.trust-item strong { display: block; font-size: 0.95rem; color: var(--ink-navy-deep); margin-bottom: 4px; }
@media (max-width: 760px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Problem / Solution ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split-card {
  padding: 34px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.split-card.problem { border-left: 3px solid #9E5B3F; }
.split-card.solution { border-left: 3px solid var(--sage); }
.split-card ul li { padding: 8px 0; color: var(--ink-soft); display: flex; gap: 10px; }
.split-card ul li::before { content: "—"; color: var(--amber-dark); flex-shrink: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.step .step-no {
  font-family: var(--font-label);
  font-size: 0.75rem;
  color: var(--amber-dark);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Formulary (ingredient) cards — signature element ---------- */
.formulary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 26px;
}
@media (max-width: 940px) { .formulary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .formulary-grid { grid-template-columns: 1fr; } }

.specimen-card {
  background: var(--white);
  border-radius: 4px;
  padding: 28px 24px 24px;
  position: relative;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(18,48,63,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.specimen-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-card); }
.specimen-card:nth-child(even):hover { transform: translateY(-6px) rotate(0.4deg); }
.specimen-card .batch {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-label);
  font-size: 0.68rem;
  color: var(--sage-light);
  letter-spacing: 0.05em;
}
.specimen-icon {
  width: 52px; height: 52px;
  margin-bottom: 18px;
  color: var(--sage);
}
.specimen-icon svg { width: 100%; height: 100%; }
.specimen-card .latin {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--sage-light);
  display: block;
  margin-bottom: 2px;
}
.specimen-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.specimen-card p { font-size: 0.92rem; margin-bottom: 0; }
.seal-badge {
  position: absolute;
  bottom: -14px; left: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink-navy-deep);
  color: var(--gold-hairline);
  font-family: var(--font-label);
  font-size: 0.55rem;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--shadow-soft);
}

/* ---------- Benefits list ---------- */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
}
@media (max-width: 700px) { .benefit-list { grid-template-columns: 1fr; } }
.benefit-item { display: flex; gap: 16px; align-items: flex-start; }
.benefit-item .mark {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--amber);
  color: var(--amber-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}
.benefit-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.benefit-item p { font-size: 0.94rem; margin: 0; }

/* ---------- Reviews (flagged placeholders) ---------- */
.placeholder-flag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-navy-deep);
  background: var(--gold-hairline);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--white);
  padding: 28px 26px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.review-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { font-style: italic; }
.review-card .who { font-family: var(--font-label); font-size: 0.75rem; color: var(--sage-light); margin-top: 14px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 34px 28px;
  text-align: center;
  border: 1px solid rgba(18,48,63,0.1);
  display: flex;
  flex-direction: column;
}
.price-card.best {
  border: 2px solid var(--amber);
  transform: scale(1.035);
  box-shadow: var(--shadow-card);
  position: relative;
}
.price-card.best::before {
  content: "BEST VALUE";
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--amber);
  color: var(--parchment);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 20px;
}
@media (max-width: 900px) { .price-card.best { transform: none; } }
.price-card .qty { font-family: var(--font-label); font-size: 0.78rem; color: var(--sage-light); letter-spacing: 0.08em; margin-bottom: 10px; }
.price-card .amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink-navy-deep); }
.price-card .amount sup { font-size: 1.1rem; top: -1em; }
.price-card .per { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.price-card ul { margin: 18px 0 26px; text-align: left; }
.price-card ul li { padding: 6px 0; font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 8px; }
.price-card ul li::before { content: "✓"; color: var(--sage); }

/* ---------- Bonus ---------- */
.bonus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 760px) { .bonus-grid { grid-template-columns: 1fr; } }
.bonus-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 30px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-soft);
}
.bonus-card .tag {
  font-family: var(--font-label);
  font-size: 0.68rem;
  color: var(--amber-dark);
  border: 1px solid var(--amber);
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
  white-space: nowrap;
}

/* ---------- Guarantee ---------- */
.guarantee-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 46px;
  align-items: center;
}
@media (max-width: 760px) { .guarantee-wrap { grid-template-columns: 1fr; text-align: center; } }
.guarantee-seal {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 2px solid var(--gold-hairline);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--parchment);
  margin: 0 auto;
  padding: 16px;
  line-height: 1.25;
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(18,48,63,0.12);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink-navy-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q:focus-visible { outline: 2px solid var(--ink-navy); outline-offset: 2px; }
.faq-q .icon { font-size: 1.3rem; color: var(--amber-dark); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding: 0 4px 22px; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta h2 { max-width: 700px; margin-left: auto; margin-right: auto; }
.final-cta .bg-bottle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 640px;
  width: 60%;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta .price-tag {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--amber-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-navy-deep);
  color: rgba(246,241,231,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--parchment); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-label); font-weight: 400; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-hairline); }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--parchment); margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(246,241,231,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.disclaimer-text { font-size: 0.78rem; color: rgba(246,241,231,0.5); max-width: 900px; margin: 0 0 24px; }

/* ---------- Social proof popup ---------- */
.proof-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px 34px 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  transform: translateY(140%);
  transition: transform 0.4s ease;
  z-index: 200;
  border: 1px solid rgba(18,48,63,0.08);
}
.proof-popup.show { transform: translateY(0); }
.proof-thumb {
  width: 40px; height: 40px;
  object-fit: cover; object-position: center 30%;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--parchment-dim);
}
.proof-body { min-width: 0; }
.proof-stars { color: var(--amber); font-size: 0.72rem; letter-spacing: 1px; line-height: 1; margin-bottom: 3px; }
.proof-text { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.35; }
.proof-text strong { color: var(--ink-navy-deep); }
.proof-time { font-size: 0.72rem; color: var(--sage-light); margin-top: 3px; }
.proof-popup .close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft); font-size: 1rem; line-height: 1; padding: 2px;
}
.proof-tag {
  position: absolute; bottom: 6px; right: 10px;
  font-family: var(--font-label);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--sage-light);
  opacity: 0.75;
}

/* ---------- Generic content page (legal/blog) ---------- */
.page-hero {
  padding: 70px 0 40px;
  background: var(--parchment-dim);
  border-bottom: 1px solid rgba(18,48,63,0.08);
}
.content-page { padding: 60px 0 90px; }
.content-page .container { max-width: 780px; }
.content-page h2 { margin-top: 1.6em; }
.content-page h3 { margin-top: 1.3em; }
.content-page p, .content-page li { color: var(--ink-soft); }
.content-page ul, .content-page ol { padding-left: 22px; margin-bottom: 1.2em; }
.content-page li { padding: 4px 0; }
.byline { font-family: var(--font-label); font-size: 0.78rem; color: var(--sage-light); margin-bottom: 20px; }

/* Blog card list */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: var(--white); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.blog-card .body { padding: 24px; }
.blog-card .cat { font-family: var(--font-label); font-size: 0.68rem; color: var(--amber-dark); letter-spacing: 0.08em; text-transform: uppercase; }
.blog-card h3 { margin: 10px 0; }
.blog-card a.readmore { font-size: 0.88rem; font-weight: 600; color: var(--ink-navy); }
.related-posts { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 20px; }
@media (max-width: 700px) { .related-posts { grid-template-columns: 1fr; } }

/* Opt-in page */
.optin-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .optin-wrap { grid-template-columns: 1fr; } }
.optin-form { background: var(--white); padding: 34px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.optin-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-navy-deep); }
.optin-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(18,48,63,0.2);
  border-radius: 4px;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.optin-form input:focus-visible { outline: 2px solid var(--ink-navy); outline-offset: 1px; }
.form-note { font-size: 0.78rem; color: var(--sage-light); margin-top: 14px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(18,48,63,0.2); border-radius: 4px;
  font-family: var(--font-body); font-size: 0.95rem; min-height: 140px; resize: vertical;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink-navy); color: var(--parchment); padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Hero entrance animation (plays on load, not scroll) ---------- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy .eyebrow { animation: heroRise 0.7s ease both; }
.hero-copy h1 { animation: heroRise 0.7s ease 0.1s both; }
.hero-copy .lede { animation: heroRise 0.7s ease 0.2s both; }
.hero-copy .btn-primary { animation: heroRise 0.7s ease 0.3s both; }
.hero-badges span { animation: heroRise 0.6s ease both; }
.hero-badges span:nth-child(1) { animation-delay: 0.4s; }
.hero-badges span:nth-child(2) { animation-delay: 0.48s; }
.hero-badges span:nth-child(3) { animation-delay: 0.56s; }
.hero-badges span:nth-child(4) { animation-delay: 0.64s; }
.hero-art { animation: heroRise 0.9s ease 0.2s both; }

/* ---------- Custom cursor glow (desktop, fine pointer only) ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,127,62,0.55), rgba(193,127,62,0) 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease;
  mix-blend-mode: multiply;
}
.cursor-glow.active { opacity: 1; }
.cursor-glow.big {
  width: 54px; height: 54px;
  background: radial-gradient(circle, rgba(11,49,73,0.35), rgba(11,49,73,0) 70%);
}
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------- Ambient hero particles ---------- */
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-particles span {
  position: absolute;
  bottom: -20px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.35;
  animation: driftUp linear infinite;
}
.hero-particles span:nth-child(1) { left: 6%;  animation-duration: 14s; animation-delay: 0s;   background: var(--amber); }
.hero-particles span:nth-child(2) { left: 18%; animation-duration: 18s; animation-delay: 2s;   background: var(--gold-hairline); }
.hero-particles span:nth-child(3) { left: 30%; animation-duration: 12s; animation-delay: 1s;   background: var(--sage-light); }
.hero-particles span:nth-child(4) { left: 44%; animation-duration: 16s; animation-delay: 3.5s; background: var(--amber); }
.hero-particles span:nth-child(5) { left: 58%; animation-duration: 13s; animation-delay: 0.8s; background: var(--gold-hairline); }
.hero-particles span:nth-child(6) { left: 68%; animation-duration: 17s; animation-delay: 4s;   background: var(--sage-light); }
.hero-particles span:nth-child(7) { left: 76%; animation-duration: 15s; animation-delay: 1.6s; background: var(--amber); }
.hero-particles span:nth-child(8) { left: 85%; animation-duration: 19s; animation-delay: 2.6s; background: var(--gold-hairline); }
.hero-particles span:nth-child(9) { left: 93%; animation-duration: 11s; animation-delay: 0.4s; background: var(--sage-light); }
.hero-particles span:nth-child(10){ left: 50%; animation-duration: 20s; animation-delay: 5s;   background: var(--amber); }
@keyframes driftUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.4; }
  50%  { transform: translateY(-260px) translateX(14px); }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-520px) translateX(-10px); opacity: 0; }
}

/* ---------- 3D tilt on cards (JS sets --rx/--ry custom properties) ---------- */
.specimen-card, .price-card {
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.specimen-card:hover, .price-card:hover { box-shadow: var(--shadow-card); }

/* ---------- Icon draw-in on scroll reveal ---------- */
.specimen-icon svg path,
.specimen-icon svg circle,
.specimen-icon svg ellipse {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  transition: stroke-dashoffset 1s ease;
}
.reveal.in-view .specimen-icon svg path,
.reveal.in-view .specimen-icon svg circle,
.reveal.in-view .specimen-icon svg ellipse {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
  .hero-particles { display: none; }
  .specimen-card, .price-card { transform: none !important; }
}

/* ---------- Bottle pop-open scene ---------- */
.routine-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .routine-grid { grid-template-columns: 1fr; } }

.bottle-open-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
}
.bottle-cap-layer {
  position: relative;
  z-index: 2;
  transform-origin: 50% 100%;
}
.bottle-open-scene.in-view .bottle-cap-layer {
  animation: capOpen 2.4s cubic-bezier(0.34, 1.2, 0.4, 1) forwards;
}
@keyframes capOpen {
  0%   { transform: translateY(0) rotate(0deg); }
  12%  { transform: translateY(0) rotate(10deg); }
  24%  { transform: translateY(-1px) rotate(-6deg); }
  36%  { transform: translateY(-2px) rotate(14deg); }
  48%  { transform: translateY(-2px) rotate(-4deg); }
  62%  { transform: translateY(-6px) rotate(20deg); }
  78%  { transform: translateY(-20px) rotate(-16deg); }
  90%  { transform: translateY(-30px) rotate(-10deg); }
  100% { transform: translateY(-26px) rotate(-14deg); }
}
.bottle-cap-layer img { display: block; max-width: 220px; margin: 0 auto; }
.bottle-body-layer { position: relative; z-index: 1; margin-top: -2px; }
.bottle-body-layer img { display: block; max-width: 220px; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(18,48,63,0.22)); }

.bottle-neck-glow {
  position: absolute;
  top: 68px; left: 50%;
  width: 90px; height: 26px;
  transform: translateX(-50%) scale(0.6);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(193,127,62,0.55), rgba(193,127,62,0) 70%);
  opacity: 0;
  transition: opacity 0.6s ease 1.6s, transform 0.6s ease 1.6s;
  z-index: 1;
  pointer-events: none;
}

.pour-sparkle { position: absolute; top: 40px; left: 50%; width: 4px; height: 4px; pointer-events: none; }
.pour-sparkle span {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-hairline);
  opacity: 0;
}
.pour-sparkle span:nth-child(1) { left: -34px; top: 10px; }
.pour-sparkle span:nth-child(2) { left: -14px; top: -18px; }
.pour-sparkle span:nth-child(3) { left: 10px;  top: -22px; }
.pour-sparkle span:nth-child(4) { left: 30px;  top: -6px; }
.pour-sparkle span:nth-child(5) { left: 4px;   top: -34px; }

.bottle-open-scene.in-view .bottle-neck-glow {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.bottle-open-scene.in-view .pour-sparkle span {
  animation: sparklePop 1.6s ease 1.7s forwards;
}
.bottle-open-scene.in-view .pour-sparkle span:nth-child(2) { animation-delay: 1.8s; }
.bottle-open-scene.in-view .pour-sparkle span:nth-child(3) { animation-delay: 1.9s; }
.bottle-open-scene.in-view .pour-sparkle span:nth-child(4) { animation-delay: 2.0s; }
.bottle-open-scene.in-view .pour-sparkle span:nth-child(5) { animation-delay: 1.85s; }
@keyframes sparklePop {
  0%   { opacity: 0; transform: translateY(0) scale(0.4); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-46px) scale(1); }
}

.routine-steps { display: flex; flex-direction: column; gap: 26px; }
.routine-step {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  border-left: 3px solid var(--amber);
}
.routine-step .step-no {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--amber-dark);
  display: block;
  margin-bottom: 8px;
}
.routine-step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.routine-step p { font-size: 0.94rem; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .bottle-cap-layer { animation: none !important; }
  .bottle-open-scene.in-view .bottle-cap-layer { transform: translateY(-26px) rotate(-14deg); }
}

/* ---------- Scroll-reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Floating hero + CTA bottle imagery ---------- */
@keyframes floatBottle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-art img { animation: floatBottle 6s ease-in-out infinite; }

@keyframes driftScale {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50% { transform: translate(-50%, -50%) scale(1.05) rotate(2deg); }
}
.final-cta .bg-bottle { animation: driftScale 11s ease-in-out infinite; }

/* ---------- Button shimmer sweep ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* ---------- Specimen card icon float on hover ---------- */
.specimen-card:hover .specimen-icon { transform: translateY(-3px) rotate(-4deg); transition: transform 0.35s ease; }
.specimen-icon { transition: transform 0.35s ease; }

/* ---------- Eyebrow underline draw-in ---------- */
@keyframes drawLine {
  from { width: 0; }
  to { width: 22px; }
}
.reveal.in-view .eyebrow::before { animation: drawLine 0.6s ease 0.15s both; }
