/* ===========================================================
   Verdalyn — botanical herbarium design system
   =========================================================== */

:root{
  --ink:        #14232C;
  --ink-soft:   #3E5561;
  --bark:       #1C4E6B;
  --sage:       #6EC1B4;
  --sage-pale:  #DCEFEA;
  --paper:      #F4F8F9;
  --paper-2:    #E7F1F1;
  --gold:       #FF6F59;
  --line:       rgba(20,35,44,0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  --wrap: 1180px;
  --radius: 14px;
}

*, *::before, *::after{ box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}

html, body{ margin:0; padding:0; }

body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link{
  position:absolute; left:-9999px; top:0;
  background: var(--ink); color:var(--paper);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus{ left: 16px; top: 16px; }

:focus-visible{
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.4em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.06; font-weight: 500; }
h2{ font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.16; }
h3{ font-size: 1.18rem; line-height: 1.3; }

p{ margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
  margin: 0 0 0.9em;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-primary{
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover{ background: var(--ink-soft); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--ink); }
.btn-small{ padding: 9px 18px; font-size: 0.85rem; }
.btn-wide{ width: 100%; padding: 16px 26px; font-size: 1rem; }

/* ===================== HEADER ===================== */
.site-header{
  position: sticky; top:0; z-index: 40;
  background: rgba(244,239,227,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 16px; padding-bottom: 16px;
  gap: 24px;
}
.wordmark{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-decoration:none;
  color: var(--ink);
}
.wordmark.small{ font-size: 1.15rem; }
.wordmark-mark{ width: 26px; height:26px; color: var(--bark); }
.site-nav{
  display:flex; gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a{ text-decoration:none; color: var(--ink-soft); }
.site-nav a:hover{ color: var(--ink); }

/* ===================== HERO ===================== */
.hero{ padding: 72px 0 40px; }
.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items:center;
}
.hero-lede{ font-size: 1.08rem; max-width: 46ch; }
.hero-actions{ display:flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-fineprint{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--bark);
  max-width: 42ch;
}
.hero-art{
  justify-self:center;
  color: var(--sage);
}
.root-illustration{ width: 100%; max-width: 380px; }
.root-lines path{
  fill:none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: grow 2.2s ease forwards;
}
.root-nodes circle{ fill: var(--gold); opacity:0; animation: fadeIn 0.6s ease forwards 1.8s; }
@keyframes grow{ to{ stroke-dashoffset: 0; } }
@keyframes fadeIn{ to{ opacity:1; } }
@media (prefers-reduced-motion: reduce){
  .root-lines path{ animation:none; stroke-dashoffset:0; }
  .root-nodes circle{ animation:none; opacity:1; }
}

/* ===================== TRUST STRIP ===================== */
.trust-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.trust-inner{
  display:flex; flex-wrap:wrap; gap: 10px 14px;
  justify-content:center;
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.trust-inner .dot{ color: var(--gold); }

/* ===================== FORMULA ===================== */
.formula{ padding: 96px 0 40px; }
.section-head{ max-width: 62ch; margin-bottom: 48px; }
.formula-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.formula-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.formula-icon{ width:40px; height:40px; color: var(--bark); margin-bottom: 18px; }
.formula-card p{ font-size: 0.96rem; }
.formula-caveat{
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--bark);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

/* ===================== SPECIMENS ===================== */
.specimens{ padding: 90px 0; background: var(--paper-2); }
.specimen-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.specimen-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px 24px;
  position: relative;
}
.specimen-card::before{
  content:"";
  position:absolute; inset: 8px;
  border: 1px dashed rgba(28,78,107,0.28);
  border-radius: 6px;
  pointer-events:none;
}
.specimen-head{
  display:flex; justify-content:space-between; align-items:baseline;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.specimen-no{ color: var(--gold); letter-spacing: 0.06em; }
.specimen-latin{ font-style: italic; color: var(--ink-soft); }
.specimen-card h3{ font-size: 1.08rem; margin-bottom: 10px; }
.dose{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--bark);
  background: var(--sage-pale);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.specimen-card p{ font-size: 0.92rem; margin-bottom:0; }
.specimen-card--empty{ background: transparent; border-style: dashed; }

/* ===================== HONESTY ===================== */
.honesty{ padding: 96px 0; }
.honesty-inner{
  display:grid;
  grid-template-columns: 1.15fr 0.6fr;
  gap: 56px;
  align-items:center;
}
.honesty-list{ list-style:none; margin:0; padding:0; display:grid; gap: 18px; }
.honesty-list li{
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.honesty-list li::before{
  content:"";
  position:absolute; left:0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
}
.honesty-list strong{ color: var(--ink); }
.honesty-card{
  justify-self:center;
  color: var(--bark);
  opacity: 0.85;
}
.leaf-press{ width: 100%; max-width: 220px; }

/* ===================== BUY ===================== */
.buy{ padding: 30px 0 100px; }
.buy-inner{ display:flex; justify-content:center; }
.buy-card{
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: 52px 48px;
  max-width: 560px;
  width: 100%;
  text-align:center;
}
.buy-card .specimen-no{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.buy-card h2{ color: var(--paper); margin: 10px 0 18px; }
.buy-price{
  font-family: var(--font-display);
  font-size: 2.6rem;
  margin: 0 0 22px;
  color: var(--paper);
}
.buy-price span{ font-size: 1rem; color: var(--sage-pale); font-family: var(--font-body); }
.buy-points{
  list-style:none; padding:0; margin: 0 0 30px;
  display:grid; gap: 10px;
  text-align:left;
  font-size: 0.92rem;
  color: var(--sage-pale);
}
.buy-points li{ padding-left: 20px; position:relative; }
.buy-points li::before{
  content:"✓";
  position:absolute; left:0; color: var(--gold);
}
.buy-card .btn-primary{ background: var(--gold); color: var(--ink); }
.buy-card .btn-primary:hover{ background:#c99a5f; }
.buy-fineprint{
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(244,239,227,0.65);
  line-height: 1.5;
}

/* ===================== FAQ ===================== */
.faq{ padding: 20px 0 110px; }
.faq-list{ max-width: 760px; }
.faq-list details{
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-list summary{
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  list-style: none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker{ display:none; }
.faq-list summary::after{
  content:"+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink:0;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after{ content:"–"; }
.faq-list p{ margin-top: 14px; font-size: 0.96rem; max-width: 64ch; }

/* ===================== FOOTER ===================== */
.site-footer{
  background: var(--ink);
  color: var(--sage-pale);
  padding: 56px 0 28px;
}
.footer-inner{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(244,239,227,0.14);
}
.footer-brand p{ color: var(--sage-pale); max-width: 32ch; margin-top: 8px; font-size: 0.92rem; }
.site-footer .wordmark{ color: var(--paper); }
.footer-links{ display:flex; gap: 22px; align-items:flex-start; font-size: 0.9rem; }
.footer-links a{ text-decoration:none; color: var(--sage-pale); }
.footer-links a:hover{ color: var(--paper); }
.footer-legal{
  padding-top: 22px;
  display:grid; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(244,239,227,0.55);
  line-height: 1.6;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px){
  .site-nav{ display:none; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; max-width: 280px; margin: 0 auto; }
  .formula-grid{ grid-template-columns: 1fr; }
  .specimen-grid{ grid-template-columns: 1fr 1fr; }
  .honesty-inner{ grid-template-columns: 1fr; }
  .honesty-card{ order:-1; }
}
@media (max-width: 560px){
  .wrap{ padding: 0 20px; }
  .specimen-grid{ grid-template-columns: 1fr; }
  .buy-card{ padding: 40px 26px; }
  .footer-inner{ flex-direction:column; }
}
