/* VitaminFinder.ai — Organic, sun-warmed, botanical light theme
   Palette pulls from cream, sage, terracotta, honey gold.
   Typography: Fraunces (serif display) + Inter (clean sans body)
*/

/* ------------------ Reset ------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ------------------ Tokens ------------------ */
:root {
  /* Backgrounds */
  --cream: #FBF6EC;
  --cream-2: #F7EFE0;
  --paper: #FFFFFF;

  /* Greens */
  --sage: #7BA05B;
  --sage-deep: #4F7942;
  --sage-darkest: #2D3A2A;
  --moss: #365E2F;

  /* Warm */
  --honey: #E8A24A;
  --honey-light: #F4C77B;
  --terracotta: #C97B5E;
  --terracotta-deep: #A04848;

  /* Neutrals */
  --ink: #2D3A2A;
  --ink-soft: #4A5544;
  --muted: #7A8B6E;
  --line: #E5DDC8;
  --line-soft: rgba(125, 110, 90, 0.15);

  /* Type */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing & radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(60, 60, 30, 0.05), 0 2px 8px rgba(60, 60, 30, 0.04);
  --shadow-md: 0 4px 16px rgba(60, 60, 30, 0.08), 0 1px 3px rgba(60, 60, 30, 0.06);
  --shadow-lg: 0 12px 40px rgba(60, 60, 30, 0.10), 0 2px 8px rgba(60, 60, 30, 0.06);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--cream);
  background-image:
    radial-gradient(ellipse 90% 60% at 20% 0%, rgba(123, 160, 91, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 50% at 90% 30%, rgba(232, 162, 74, 0.08), transparent 60%),
    radial-gradient(ellipse 100% 50% at 50% 110%, rgba(201, 123, 94, 0.06), transparent 60%);
  background-attachment: fixed;
}

/* Subtle paper-like grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.1 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
}

main, header, footer { position: relative; z-index: 1; }

/* ------------------ Typography ------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--sage-darkest);
  margin: 0 0 0.6em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

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

.vf-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.5rem;
}

/* ------------------ Layout containers ------------------ */
.vf-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.vf-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ------------------ Header ------------------ */
.vf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: rgba(251, 246, 236, 0.78);
  border-bottom: 1px solid var(--line-soft);
}
.vf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  max-width: 1280px;
  margin: 0 auto;
}
.vf-logo { height: 44px; width: auto; }
.vf-logo-link { display: flex; align-items: center; text-decoration: none; }
.vf-nav { display: flex; gap: 28px; align-items: center; }
.vf-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 4px 0;
}
.vf-nav a:hover { color: var(--sage-deep); }
.vf-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--honey); transform: scaleX(0); transform-origin: left;
  transition: transform 250ms ease;
}
.vf-nav a:hover::after { transform: scaleX(1); }

.vf-nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.vf-nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

@media (max-width: 720px) {
  .vf-nav-toggle { display: block; }
  .vf-nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .vf-nav.open { display: flex; }
  .vf-nav a { padding: 14px 28px; border-bottom: 1px solid var(--line-soft); }
}

/* ------------------ Hero ------------------ */
.vf-subhero {
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 32px;
  position: relative;
}
.vf-subhero .vf-search-wrap { margin: 0 auto; }

.vf-hero {
  padding: 80px 0 60px;
  position: relative;
}
.vf-hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.vf-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.4em;
}
.vf-hero h1 em {
  font-style: italic;
  color: var(--sage-deep);
  font-weight: 500;
}
.vf-hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* Decorative botanical sprigs */
.vf-hero-sprig {
  position: absolute;
  pointer-events: none;
  opacity: 0.45;
}
.vf-hero-sprig.left { top: 60px; left: 10px; transform: rotate(-15deg); }
.vf-hero-sprig.right { bottom: 0; right: 10px; transform: rotate(20deg) scaleX(-1); }
@media (max-width: 1100px) {
  .vf-hero-sprig { display: none; }
}

/* ------------------ Search ------------------ */
.vf-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.vf-search-input {
  width: 100%;
  padding: 18px 22px 18px 52px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
  box-shadow: var(--shadow-sm);
}
.vf-search-input::placeholder { color: var(--muted); }
.vf-search-input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(123, 160, 91, 0.18), var(--shadow-md);
}
.vf-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  stroke: var(--sage-deep);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}
.vf-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: none;
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
  text-align: left;
}
.vf-search-results.open { display: block; }
.vf-search-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: background 150ms;
}
.vf-search-row:last-child { border-bottom: 0; }
.vf-search-row:hover, .vf-search-row.active { background: var(--cream-2); }
.vf-search-emoji { font-size: 1.4rem; }
.vf-search-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vf-search-label { font-weight: 600; color: var(--sage-darkest); }
.vf-search-blurb { font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-search-kind {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-deep);
  background: var(--cream-2);
  padding: 4px 10px;
  border-radius: 999px;
}
.vf-search-empty {
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

/* ------------------ Trust strip ------------------ */
.vf-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  justify-content: center;
  padding: 40px 28px 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.vf-trust span { display: flex; align-items: center; gap: 8px; }
.vf-trust-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sage); opacity: 0.6;
}

/* ------------------ Section ------------------ */
.vf-section { padding: 80px 0; }
.vf-section-head { text-align: center; margin-bottom: 48px; }
.vf-section-head p { max-width: 580px; margin: 12px auto 0; color: var(--ink-soft); }

/* ------------------ Conditions grid ------------------ */
.vf-conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.vf-condition-card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 24px 22px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  position: relative;
  overflow: hidden;
}
.vf-condition-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(123, 160, 91, 0.06));
  opacity: 0;
  transition: opacity 250ms;
}
.vf-condition-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage);
}
.vf-condition-card:hover::before { opacity: 1; }
.vf-condition-emoji { font-size: 2rem; margin-bottom: 12px; }
.vf-condition-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--sage-darkest);
}
.vf-condition-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ------------------ Condition page ------------------ */
.vf-condition-header { text-align: center; margin-bottom: 56px; }
.vf-condition-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.vf-cond-emoji { font-style: normal; font-size: 0.85em; margin-right: 8px; }
.vf-condition-lede { max-width: 620px; margin: 0 auto; font-size: 1.05rem; color: var(--ink-soft); }

.vf-vitamin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.vf-vitamin-card {
  --accent: var(--sage);
  display: grid;
  grid-template-columns: 96px 1fr;
  background: var(--paper);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 250ms, box-shadow 250ms, border-color 250ms;
  box-shadow: var(--shadow-sm);
}
.vf-vitamin-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.vf-vitamin-thumb {
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 22%, var(--cream)), color-mix(in oklab, var(--accent) 8%, var(--cream)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}
.vf-vitamin-meta { padding: 18px 20px; min-width: 0; }
.vf-vitamin-meta h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--sage-darkest); }
.vf-vitamin-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-deep);
  margin: 0 0 10px;
}
.vf-vitamin-short {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vf-vitamin-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-deep);
}

@media (max-width: 480px) {
  .vf-vitamin-card { grid-template-columns: 76px 1fr; }
  .vf-vitamin-thumb { font-size: 2rem; }
}

/* ------------------ Disclaimer ------------------ */
.vf-disclaimer {
  margin-top: 56px;
  padding: 22px 28px;
  background: var(--cream-2);
  border-left: 4px solid var(--honey);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.vf-empty {
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
}
.vf-empty a { color: var(--sage-deep); }

/* ------------------ Vitamin article page ------------------ */
.vf-breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 28px 0 12px;
}
.vf-breadcrumb a { color: var(--sage-deep); text-decoration: none; }
.vf-breadcrumb a:hover { text-decoration: underline; }
.vf-breadcrumb span { margin: 0 6px; opacity: 0.6; }

.vf-article {
  --accent: var(--sage);
  padding-bottom: 80px;
}
.vf-article-header {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.vf-article-icon {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 28%, var(--cream)), color-mix(in oklab, var(--accent) 12%, var(--cream)));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  box-shadow: var(--shadow-md);
}
.vf-article-header h1 {
  margin: 4px 0 12px;
}
.vf-article-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

.vf-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.vf-article-body h2 {
  margin-top: 1.8em;
  font-size: 1.5rem;
  color: var(--sage-darkest);
  position: relative;
  padding-left: 18px;
}
.vf-article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  bottom: 0.45em;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.vf-article-body p { font-size: 1rem; line-height: 1.75; }
.vf-benefits-list {
  list-style: none;
  padding: 0;
  margin: 1em 0 1.4em;
}
.vf-benefits-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--ink-soft);
}
.vf-benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  width: 22px; height: 22px;
  background: color-mix(in oklab, var(--accent) 20%, var(--cream));
  color: var(--sage-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.vf-related-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.vf-pill {
  text-decoration: none;
  color: var(--sage-deep);
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 150ms, transform 150ms, border-color 150ms;
}
.vf-pill:hover { background: var(--paper); border-color: var(--sage); transform: translateY(-1px); }

/* Article side */
.vf-article-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 92px;
}
.vf-buy-card, .vf-newsletter-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.vf-buy-card h3, .vf-newsletter-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.vf-buy-intro {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.vf-buy-btn {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--cream-2);
  color: var(--sage-darkest);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: all 200ms;
}
.vf-buy-btn small { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.vf-buy-btn:hover { background: var(--paper); border-color: var(--sage); transform: translateY(-1px); }
.vf-buy-btn.primary {
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  color: white;
}
.vf-buy-btn.primary small { color: rgba(255, 255, 255, 0.85); }
.vf-buy-btn.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: transparent; }
.vf-buy-btn.muted { opacity: 0.75; }

.vf-newsletter-card {
  background: linear-gradient(160deg, var(--cream-2), var(--paper));
  border-color: var(--line);
}
.vf-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.vf-newsletter-form input {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
}
.vf-newsletter-form input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(123, 160, 91, 0.18); }
.vf-newsletter-form button {
  padding: 12px;
  border-radius: var(--r-sm);
  border: 0;
  background: linear-gradient(135deg, var(--honey), var(--terracotta));
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 150ms, box-shadow 150ms;
}
.vf-newsletter-form button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.vf-form-msg {
  margin: 4px 0 0;
  font-size: 0.85rem;
  min-height: 1em;
}
.vf-form-msg.error { color: var(--terracotta-deep); }
.vf-form-msg.success { color: var(--sage-deep); }

.vf-disclaimer-inline {
  margin-top: 56px;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--cream-2);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--honey);
}

@media (max-width: 900px) {
  .vf-article-grid { grid-template-columns: 1fr; gap: 32px; }
  .vf-article-side { position: static; }
}
@media (max-width: 600px) {
  .vf-article-header { grid-template-columns: 64px 1fr; gap: 16px; }
  .vf-article-icon { width: 64px; height: 64px; font-size: 2rem; border-radius: 18px; }
}

/* ------------------ Big newsletter strip (homepage) ------------------ */
.vf-newsletter-strip {
  background: linear-gradient(135deg, var(--sage-deep), var(--moss));
  color: var(--cream);
  padding: 70px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vf-newsletter-strip::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g opacity='0.07' stroke='white' stroke-width='1.5' fill='none'><path d='M40 100 C 40 60, 80 30, 130 28 C 124 50, 116 70, 100 90 C 90 102, 70 108, 50 108 Z'/><path d='M44 104 C 60 94, 90 70, 124 36'/></g></svg>");
  background-size: 280px 280px;
  opacity: 0.4;
  pointer-events: none;
}
.vf-newsletter-strip h2 {
  color: var(--cream);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  position: relative;
  z-index: 1;
}
.vf-newsletter-strip p {
  color: rgba(251, 246, 236, 0.85);
  max-width: 540px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}
.vf-newsletter-strip .vf-newsletter-form {
  flex-direction: row;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.vf-newsletter-strip .vf-newsletter-form input {
  flex: 1;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
}
.vf-newsletter-strip .vf-newsletter-form button {
  background: var(--honey);
  white-space: nowrap;
  padding: 12px 22px;
}
.vf-newsletter-strip .vf-form-msg {
  color: rgba(251, 246, 236, 0.85);
  position: relative;
  z-index: 1;
}
@media (max-width: 540px) {
  .vf-newsletter-strip .vf-newsletter-form { flex-direction: column; }
}

/* ------------------ How it works (3 steps) ------------------ */
.vf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.vf-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform 250ms;
}
.vf-step:hover { transform: translateY(-3px); }
.vf-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--honey), var(--terracotta));
  color: white;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(232, 162, 74, 0.35);
}

/* ------------------ Footer ------------------ */
.vf-footer {
  background: var(--sage-darkest);
  color: rgba(251, 246, 236, 0.8);
  padding: 60px 28px 30px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.vf-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.vf-footer h4 {
  color: var(--cream);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
}
.vf-footer ul { list-style: none; padding: 0; margin: 0; }
.vf-footer li { margin-bottom: 8px; }
.vf-footer a { color: rgba(251, 246, 236, 0.75); text-decoration: none; font-size: 0.9rem; }
.vf-footer a:hover { color: var(--honey-light); }
.vf-footer-brand p { color: rgba(251, 246, 236, 0.65); font-size: 0.9rem; max-width: 340px; }
.vf-footer-bottom {
  border-top: 1px solid rgba(251, 246, 236, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(251, 246, 236, 0.5);
}
@media (max-width: 720px) {
  .vf-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ------------------ Reveal animation ------------------ */
.vf-reveal { opacity: 0; transform: translateY(12px); animation: vfFadeIn 700ms ease forwards; }
@keyframes vfFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------ Ad slot placeholder (for future Yahoo / display ads) ------------------ */
.vf-ad-slot {
  background: var(--cream-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 32px 0;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   PLAN BUILDER
   ============================================================ */

.vf-plan-form { display: block; }

.vf-symptom-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px 26px;
  margin: 0 0 18px;
  background: var(--cream-2);
}
.vf-symptom-group legend {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vf-symptom-group-icon {
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
}
.vf-symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.vf-symptom-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all .14s ease;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.vf-symptom-check:hover {
  border-color: var(--sage);
  background: #FBFAF5;
}
.vf-symptom-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--sage);
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  background: #fff;
  transition: all .14s ease;
}
.vf-symptom-check input[type="checkbox"]:checked {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}
.vf-symptom-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px; left: 5px;
  width: 4px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.vf-symptom-check:has(input:checked) {
  border-color: var(--sage-deep);
  background: #F4F8EE;
  color: var(--ink);
  font-weight: 500;
}
.vf-symptom-emoji {
  font-size: 1.05em;
  line-height: 1;
}
.vf-symptom-label { flex: 1; line-height: 1.3; }

.vf-plan-actions {
  position: sticky;
  bottom: 16px;
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(251, 246, 236, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(46, 61, 41, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 30;
}
.vf-plan-counter {
  font-weight: 600;
  color: var(--ink-soft);
}
.vf-plan-counter #vf-plan-count {
  color: var(--sage-deep);
  font-size: 1.4rem;
  font-family: "Fraunces", Georgia, serif;
}
.vf-plan-submit {
  background: var(--sage-deep);
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .14s ease;
}
.vf-plan-submit:hover:not(:disabled) {
  background: var(--moss);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 107, 58, 0.3);
}
.vf-plan-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   PLAN RESULTS / LOADING
   ============================================================ */

.vf-plan-loading {
  text-align: center;
  padding: 60px 20px;
}
.vf-plan-loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--line);
  border-top-color: var(--sage-deep);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: vf-spin 0.9s linear infinite;
}
@keyframes vf-spin { to { transform: rotate(360deg); } }
.vf-plan-loading h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.vf-plan-loading p { color: var(--ink-soft); margin: 0 0 20px; }
.vf-plan-loading-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.vf-plan-loading-list li {
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Plan header */
.vf-plan-print-header { display: none; }
.vf-plan-header h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 2.2rem;
  margin: 0 0 12px;
  color: var(--ink);
}
.vf-plan-symptoms-summary {
  color: var(--ink-soft);
  font-size: 0.96rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.vf-plan-symptoms-summary .vf-pill {
  font-size: 0.84rem;
  padding: 4px 12px;
  background: #F4F8EE;
  color: var(--sage-deep);
  border: 1px solid var(--line-soft);
}

.vf-plan-ai-summary {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-2);
  border-left: 4px solid var(--sage);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 24px 0;
}

.vf-plan-cautions {
  background: #FFF6E5;
  border: 1px solid #F1D8A0;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0 28px;
}
.vf-plan-cautions strong { color: #8C5A00; display: block; margin-bottom: 6px; }
.vf-plan-cautions p { margin: 0; color: #5C3D00; line-height: 1.55; }

/* Action bar */
.vf-plan-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 20px;
  padding: 18px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.vf-plan-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all .14s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vf-plan-btn:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
  transform: translateY(-1px);
}
.vf-plan-btn-print { border-color: var(--sage); color: var(--sage-deep); }
.vf-plan-btn-reset { border-color: #DCBCAA; color: var(--terracotta); }
.vf-plan-btn-reset:hover { background: #FBEEE5; border-color: var(--terracotta); }

/* Email form */
.vf-plan-email-wrap {
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 24px;
}
.vf-plan-email-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--ink);
}
.vf-plan-email-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vf-plan-email-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.96rem;
}
.vf-plan-email-row input[type="email"]:focus {
  outline: none;
  border-color: var(--sage);
}
.vf-plan-email-row button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: var(--sage-deep);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.vf-plan-email-row button:hover { background: var(--moss); }
.vf-plan-email-cancel {
  background: transparent !important;
  color: var(--ink-soft) !important;
  border: 1px solid var(--line) !important;
}

/* Time-slot sections */
.vf-plan-slot {
  margin: 32px 0;
  page-break-inside: avoid;
}
.vf-plan-slot-heading {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 2px solid var(--sage);
  padding-bottom: 8px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vf-plan-slot-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Plan supplement card */
.vf-plan-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--accent, var(--sage));
  border-radius: 10px;
  padding: 18px 20px;
  page-break-inside: avoid;
}
.vf-plan-card-print-check { display: none; font-size: 1.4rem; }
.vf-plan-card-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.vf-plan-card-body { flex: 1; min-width: 0; }
.vf-plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.vf-plan-card-head h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
}
.vf-plan-card-head h3 a {
  color: var(--ink);
  text-decoration: none;
}
.vf-plan-card-head h3 a:hover { color: var(--sage-deep); text-decoration: underline; }
.vf-plan-card-food {
  font-size: 0.82rem;
  background: #F4F8EE;
  color: var(--sage-deep);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.vf-plan-card-dosage,
.vf-plan-card-note,
.vf-plan-card-cautions,
.vf-plan-card-helps {
  margin: 6px 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.vf-plan-card-note { color: var(--ink); }
.vf-plan-card-cautions { color: #8B6F4E; font-size: 0.88rem; }
.vf-plan-card-buys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.vf-plan-buy-link {
  font-size: 0.82rem;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  transition: all .14s ease;
}
.vf-plan-buy-link:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.vf-plan-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .vf-symptom-grid { grid-template-columns: 1fr; }
  .vf-plan-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .vf-plan-submit { width: 100%; }
  .vf-plan-header h1 { font-size: 1.7rem; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  /* Reset */
  body { background: #fff !important; color: #000 !important; }
  body::before, body::after { display: none !important; }

  /* Hide chrome */
  .vf-no-print,
  .vf-header,
  .vf-subhero,
  .vf-footer,
  .vf-section-head,
  .vf-hero-sprig,
  .vf-ad-slot { display: none !important; }

  /* Show print-only elements */
  .vf-plan-print-header { display: block !important; text-align: center; margin-bottom: 24pt; }
  .vf-plan-print-header h1 {
    font-size: 22pt;
    margin: 0 0 6pt;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
  }
  .vf-plan-print-header p { font-size: 10pt; margin: 0; color: #555; }
  .vf-plan-card-print-check { display: inline-block !important; }

  /* Container resets for print */
  main, section, .vf-container { padding: 0 !important; margin: 0 !important; max-width: 100% !important; display: block !important; }
  .vf-section { padding: 0 !important; }

  /* Result wrap visible always when printing */
  #vf-plan-results-section { display: block !important; }
  #vf-plan-builder-section { display: none !important; }

  /* Plan card simplification */
  .vf-plan-card {
    background: transparent !important;
    border: 1px solid #999 !important;
    border-left: 3px solid #000 !important;
    box-shadow: none !important;
    padding: 10pt !important;
    margin-bottom: 8pt !important;
    page-break-inside: avoid;
  }
  .vf-plan-card-icon { display: none; }
  .vf-plan-card-head h3 { font-size: 12pt; }
  .vf-plan-card-head h3 a { color: #000 !important; text-decoration: none !important; }
  .vf-plan-card-head h3 a::after { display: none; }
  .vf-plan-card-food {
    background: transparent !important;
    border: 1px solid #999 !important;
    color: #000 !important;
    font-size: 9pt !important;
    padding: 2px 8px !important;
  }

  .vf-plan-slot { margin-bottom: 14pt !important; page-break-inside: avoid; }
  .vf-plan-slot-heading {
    font-size: 13pt !important;
    border-bottom: 1.5pt solid #000 !important;
    color: #000 !important;
  }

  .vf-plan-ai-summary {
    background: transparent !important;
    border: none !important;
    border-left: 2pt solid #000 !important;
    padding: 6pt 10pt !important;
    font-size: 10pt !important;
  }
  .vf-plan-cautions {
    background: transparent !important;
    border: 1px solid #000 !important;
    padding: 8pt 10pt !important;
  }
  .vf-plan-cautions strong, .vf-plan-cautions p { color: #000 !important; }

  /* Hide the digital "Your personalized vitamin plan" header — print uses its own */
  .vf-plan-header { display: none !important; }
}

/* Hero CTA for Plan Builder */
.vf-hero-or {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  margin: 22px 0 14px;
  font-size: 1rem;
  letter-spacing: 1px;
}
.vf-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sage-deep);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all .14s ease;
  box-shadow: 0 4px 14px rgba(74, 107, 58, 0.25);
}
.vf-hero-cta:hover {
  background: var(--moss);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(74, 107, 58, 0.35);
}
.vf-hero-cta-sub {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Cross-page CTA — sends users from condition pages into the plan builder */
.vf-cross-cta {
  margin: 40px 0 28px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #F4F8EE 0%, #FBF6EC 100%);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  text-align: center;
}
.vf-cross-cta p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.vf-cross-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-deep);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  margin-top: 12px;
  transition: all .14s ease;
}
.vf-cross-cta-btn:hover {
  background: var(--moss);
  transform: translateY(-1px);
}

/* ============================================================
   PLAN FEATURE SECTION (homepage)
   ============================================================ */

.vf-plan-feature {
  background: linear-gradient(180deg, #FBF6EC 0%, #F4F8EE 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.vf-plan-feature .vf-section-head .vf-eyebrow { color: var(--terracotta); }
.vf-plan-feature-grid {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.vf-plan-feature-grid p { margin: 0 0 18px; }
.vf-plan-feature-grid ul {
  margin: 18px 0 24px;
  padding-left: 0;
  list-style: none;
}
.vf-plan-feature-grid ul li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px dashed var(--line-soft);
}
.vf-plan-feature-grid ul li:last-child { border-bottom: none; }
.vf-plan-feature-grid ul li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-deep);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.vf-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vf-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  transition: all .14s ease;
}
.vf-faq-item:hover {
  border-color: var(--sage);
}
.vf-faq-item[open] {
  border-color: var(--sage-deep);
  background: #FBFAF5;
}
.vf-faq-item summary {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.vf-faq-item summary::-webkit-details-marker { display: none; }
.vf-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--sage-deep);
  font-weight: 400;
  transition: transform .14s ease;
}
.vf-faq-item[open] summary::after {
  content: "−";
}
.vf-faq-item p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}
