/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* TOKENS */
:root {
  --black: #111111;
  --mid: #888888;
  --light: rgba(0,0,0,0.3);
  --border: #E8E8E8;
  --bg: #FFFFFF;
  --green: #DDEF5A;
  --green-bg: rgba(198,226,110,0.12);
  --cream: #FFFFFF;
  --deep: #1F3D2E;
  --olive: #6A7F5E;
  --olive-light: #DDEF5A;
  --amber: #DDEF5A;
  --amber-light: #DDEF5A;
  --muted: #888888;
  --charcoal: #111111;
  --card-bg: #FFFFFF;
  --warm-white: #FFFFFF;
  --red: #E04444;
}



html { scroll-behavior: smooth; }

/* REVEAL (shared animation utility) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }


/* ══════════════════════════════════════════════
   LANDING PAGE  (body.page-site)
   ══════════════════════════════════════════════ */

body.page-site {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--black);
  overflow-x: hidden;
}

/* ── TYPE SYSTEM ──────────────────────────────
   h1   Playfair Display 700  — hero only
   h2   Playfair Display 700  — section headings
   h3   Montserrat 600 caps   — card/pillar headings
   body Montserrat 300        — all paragraph text
   tag  neon-green pill       — section labels & step numbers
   ─────────────────────────────────────────── */

body.page-site h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 1.5rem;
}
body.page-site h1 em { font-style: normal; color: #111111; white-space: nowrap; }

body.page-site h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.15;
}

body.page-site h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

body.page-site p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
}

/* ── TAG (neon-green pill — section labels & step numbers) ── */
body.page-site .tag {
  display: inline-block;
  background: #DDEF5A;
  color: #1F3D2E;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
}

body.page-site .pillar-tag { display: none; }

/* ── NAV ── */
body.page-site nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: #DDEF5A;
  border-bottom: none;
}
body.page-site .nav-logo {
  font-family: 'Recoleta', serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: #1F3D2E;
}
body.page-site .nav-cta {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #DDEF5A;
  background: #1F3D2E;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  transition: opacity 0.2s;
  justify-self: end;
  white-space: nowrap;
}
body.page-site .nav-cta:hover { opacity: 0.75; }

/* ── HERO ── */
body.page-site .hero {
  position: relative;
  background: var(--bg);
  height: 80vh;
  overflow: hidden;
}
body.page-site .hero-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.25);
}
body.page-site .hero-content {
  position: absolute;
  top: 56%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  width: 100%; max-width: 600px;
  padding: 2rem;
}
body.page-site .hero-sub {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}
body.page-site .hero-btns { display: flex; align-items: center; justify-content: center; gap: 2rem; }

/* ── BUTTONS ── */
body.page-site .btn-primary {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #DDEF5A;
  color: #111111;
  padding: 1.4rem 3.8rem;
  border-radius: 100px;
  border: 1px solid #1F3D2E;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  transition: box-shadow 0.2s, opacity 0.2s;
  display: inline-block;
}
body.page-site .btn-primary:hover { opacity: 0.85; box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

/* ── MOBILE HERO IMAGE ── */
body.page-site .hero-mobile-img { display: none; }

/* ── STICKY MOBILE CTA BAR ── */
body.page-site .sticky-cta-bar { display: none; }

/* ── DIVIDER ── */
body.page-site .divider { display: none; }

/* ── HOW IT WORKS ── */
body.page-site .how-section { background: #F5F5F5; padding: 2.5rem 4rem 3rem; }
body.page-site .how-header { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }
body.page-site .how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
body.page-site .how-card { padding: 1.2rem 2rem 1.2rem 0; border-right: 1px solid var(--border); }
body.page-site .how-card:last-child { border-right: none; padding-right: 0; padding-left: 2rem; }
body.page-site .how-card:nth-child(2) { padding-left: 2rem; }
body.page-site .how-num {
  margin-bottom: 0.8rem;
}

/* ── SECTION HEADER (pillars band) ── */
body.page-site .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

/* ── PILLARS BAND ── */
body.page-site .dark-band { background: #FFFFFF; padding: 4rem 4rem; }
body.page-site .pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
body.page-site .pillar { padding: 0 2rem 0 0; border-right: 1px solid var(--border); text-align: center; }
body.page-site .pillar:last-child { border-right: none; padding-right: 0; padding-left: 2rem; }
body.page-site .pillar:nth-child(2), body.page-site .pillar:nth-child(3) { padding-left: 2rem; }
body.page-site .pillar h3 { color: #1F3D2E; margin-bottom: 0.5rem; }
body.page-site .pillar p { font-size: 0.82rem; font-weight: 400; color: #1F3D2E; line-height: 1.6; }

/* ── CTA ── */
body.page-site .cta-section {
  background: #FFFFFF;
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
body.page-site .cta-label { margin-bottom: 1.5rem; }
body.page-site .cta-right p { margin-bottom: 2rem; }
body.page-site .cta-note {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--light);
  margin-top: 1rem;
}

/* ── FOOTER ── */
body.page-site footer {
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  body.page-site nav { padding: 1.2rem 2rem; }
  body.page-site .hero-content { padding: 2rem; }
  body.page-site .how-section { padding: 1.5rem 2rem 2rem; }
  body.page-site .dark-band { padding: 2rem; }
  body.page-site .cta-section { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 2rem; }
  body.page-site .how-grid { grid-template-columns: 1fr; }
  body.page-site .how-card { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
  body.page-site .how-card:last-child { border-bottom: none; padding-left: 0; }
  body.page-site .how-card:nth-child(2) { padding-left: 0; }
  body.page-site .pillars-grid { grid-template-columns: 1fr; }
  body.page-site .pillar { padding: 1.5rem 0; border-right: none; border-bottom: 1px solid #EFEFEF; text-align: left; }
  body.page-site .pillar:last-child { border-bottom: none; }
  body.page-site .pillar:nth-child(2),
  body.page-site .pillar:nth-child(3) { padding-left: 0; }
  body.page-site .pillar h3 { margin-bottom: 0.9rem; }
  body.page-site footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 2rem; }
}

@media (max-width: 768px) {
  body.page-site nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
  }
  body.page-site nav > div:first-child { display: none; }

  /* Stacked hero: image on top, text below */
  body.page-site .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 58px;
    overflow: visible;
  }
  body.page-site .hero-bg { display: none; }
  body.page-site .hero-mobile-img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 0.75rem;
  }
  body.page-site .hero-content {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 1.5rem 2.5rem;
    text-align: left;
    background: var(--bg);
  }
  body.page-site h1 { font-size: 2.6rem; }
  body.page-site .hero-btns { justify-content: flex-start; }
  body.page-site .hero-sub { font-size: 1rem; margin: 0 0 2rem; max-width: 100%; }
  body.page-site .btn-primary { font-size: 0.95rem; padding: 1.1rem 2.5rem; min-height: 52px; }
  body.page-site .dark-band { padding: 1.5rem; }
  body.page-site .how-num { font-size: 0; letter-spacing: 0; padding: 0; }
  body.page-site .how-num::before { font-size: 0.62rem; letter-spacing: 0.1em; padding: 3px 10px; }
  body.page-site .how-card:nth-child(1) .how-num::before { content: '01'; }
  body.page-site .how-card:nth-child(2) .how-num::before { content: '02'; }
  body.page-site .how-card:nth-child(3) .how-num::before { content: '03'; }
  body.page-site .cta-section { padding: 2rem 1.5rem; }
  body.page-site .cta-label { margin-bottom: 0.75rem; }
}

@media (max-width: 480px) {
  body.page-site .nav-logo { font-size: 1.6rem; }
  body.page-site .dark-band { padding: 2rem 1.25rem; }
  body.page-site .how-section { padding: 1.5rem 1.25rem 2rem; }
  body.page-site .cta-section { padding: 3rem 1.25rem; }
  body.page-site footer { padding: 1.5rem 1.25rem; }
  body.page-site .btn-primary { font-size: 0.85rem; padding: 1rem 2rem; min-height: 52px; }
  body.page-site .hero-content { padding: 1.25rem; }
}


/* ══════════════════════════════════════════════
   SURVEY PAGE  (body.page-survey)
   ══════════════════════════════════════════════ */

body.page-survey {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--deep);
  min-height: 100vh;
}

/* HERO */
body.page-survey .hero {
  background: var(--deep);
  padding: 60px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
body.page-survey .hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(198,226,110,.18) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 100%, rgba(106,127,94,.2) 0%, transparent 55%);
}
body.page-survey .hero-tag {
  display: inline-block;
  background: var(--amber);
  color: #1F3D2E;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 22px;
  position: relative;
}
body.page-survey .hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  position: relative;
}
body.page-survey .hero h1 em { color: var(--amber-light); font-style: italic; }
body.page-survey .hero p {
  margin-top: 16px;
  color: rgba(244,241,232,0.65);
  font-size: 15px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
  line-height: 1.65;
  position: relative;
}

/* LAYOUT */
body.page-survey .container { max-width: 680px; margin: 0 auto; padding: 48px 20px 80px; }

/* STEP TRACKER */
body.page-survey .steps { display: flex; gap: 6px; margin-bottom: 40px; }
body.page-survey .step-dot {
  height: 4px; border-radius: 2px; flex: 1;
  background: var(--border);
  transition: background .3s;
}
body.page-survey .step-dot.active { background: var(--olive); }
body.page-survey .step-dot.done { background: var(--olive-light); }

/* SECTION CARDS */
body.page-survey .section-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  margin-bottom: 20px;
  display: none;
  animation: fadeUp .35s ease both;
}
body.page-survey .section-card.visible { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.page-survey .section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 8px;
}
body.page-survey .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.25;
}

/* FORM FIELDS */
body.page-survey .field { margin-bottom: 22px; }
body.page-survey .field label { display: block; font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 7px; }
body.page-survey .field label span.req { color: var(--amber); margin-left: 3px; }
body.page-survey .field label span.hint { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }

body.page-survey input[type=text],
body.page-survey input[type=email],
body.page-survey input[type=tel],
body.page-survey input[type=number],
body.page-survey select,
body.page-survey textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--deep);
  background: var(--warm-white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
body.page-survey input:focus,
body.page-survey select:focus,
body.page-survey textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(92,107,58,.12);
}
body.page-survey textarea { resize: vertical; min-height: 90px; line-height: 1.55; }

body.page-survey .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { body.page-survey .field-row { grid-template-columns: 1fr; } }

/* RADIO / CHECKBOX */
body.page-survey .options { display: flex; flex-direction: column; gap: 10px; }
body.page-survey .options.cols { flex-direction: row; flex-wrap: wrap; gap: 10px; }

body.page-survey .opt-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: 14px;
  user-select: none;
}
body.page-survey .opt-card:hover { border-color: var(--olive-light); background: rgba(198,226,110,0.12); }
body.page-survey .opt-card input { display: none; }
body.page-survey .opt-card .dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
body.page-survey .opt-card.checkbox .dot { border-radius: 4px; }
body.page-survey .opt-card input:checked ~ .dot,
body.page-survey .opt-card.selected .dot { border-color: var(--olive); background: var(--olive); }
body.page-survey .opt-card.selected { border-color: var(--olive); background: rgba(198,226,110,0.12); }
body.page-survey .dot::after {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: #F4F1E8;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .15s;
}
body.page-survey .opt-card.selected .dot::after { opacity: 1; }
body.page-survey .opt-card.checkbox.selected .dot::after {
  width: 10px; height: 7px; border-radius: 0;
  background: transparent;
  border-left: 2px solid #F4F1E8; border-bottom: 2px solid #F4F1E8;
  transform: rotate(-45deg) translate(1px,-1px);
}
body.page-survey .opt-card.cols-item { flex: 0 0 auto; }

/* BUTTONS */
body.page-survey .btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 12px; }
body.page-survey .btn {
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
body.page-survey .btn-primary { background: var(--olive); color: #F4F1E8; flex: 1; }
body.page-survey .btn-primary:hover { background: #1F3D2E; transform: translateY(-1px); }
body.page-survey .btn-secondary { background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
body.page-survey .btn-secondary:hover { border-color: var(--charcoal); color: var(--charcoal); }
body.page-survey .btn-full { width: 100%; font-size: 15px; }

/* RESULT / OUTCOME SCREENS */
body.page-survey #result-screen,
body.page-survey #mid-result { display: none; }
body.page-survey #mid-result-cta { display: none; margin-top: 16px; }
body.page-survey #db-view { display: none; margin-top: 20px; }
body.page-survey #allergy-detail { display: none; margin-top: -10px; }

body.page-survey .result-hero { border-radius: 14px; padding: 48px 32px; text-align: center; margin-bottom: 28px; }
body.page-survey .result-hero.beta { background: linear-gradient(135deg, rgba(198,226,110,0.2), rgba(198,226,110,0.4)); border: 1px solid #DDEF5A; }
body.page-survey .result-hero.waitlist { background: linear-gradient(135deg, rgba(106,127,94,0.1), rgba(106,127,94,0.22)); border: 1px solid #6A7F5E; }
body.page-survey .result-icon { font-size: 52px; margin-bottom: 16px; }
body.page-survey .result-hero h2 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; margin-bottom: 10px; }
body.page-survey .result-hero p { color: var(--charcoal); font-size: 15px; line-height: 1.6; max-width: 380px; margin: 0 auto; }

/* SPEND FIELD */
body.page-survey .spend-wrap { position: relative; max-width: 180px; }
body.page-survey .currency-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--muted); pointer-events: none;
}
body.page-survey .spend-wrap input[type=number] { padding-left: 28px; }

/* HINT TEXT */
body.page-survey .hint-text { text-align: center; margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ADMIN DB VIEW */
body.page-survey #admin-panel { margin-top: 40px; }
body.page-survey .admin-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all .2s;
}
body.page-survey .admin-toggle:hover { border-color: var(--charcoal); color: var(--charcoal); }
body.page-survey .db-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
body.page-survey .db-tab {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; gap: 8px;
}
body.page-survey .db-tab.active.beta-tab { background: var(--deep); color: #F4F1E8; border-color: var(--deep); }
body.page-survey .db-tab.active.waitlist-tab { background: var(--olive-light); color: #1F3D2E; border-color: var(--olive-light); }
body.page-survey .db-badge { background: rgba(255,255,255,.3); border-radius: 10px; padding: 1px 8px; font-size: 11px; }

body.page-survey .db-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
body.page-survey table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 700px; }
body.page-survey th {
  background: var(--deep);
  color: var(--cream);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: 11px;
  white-space: nowrap;
}
body.page-survey td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
  vertical-align: top;
  max-width: 160px;
}
body.page-survey tr:last-child td { border-bottom: none; }
body.page-survey tr:nth-child(even) td { background: rgba(244,241,232,0.5); }
body.page-survey .empty-db { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }

body.page-survey .field-error { border-color: var(--red) !important; }
body.page-survey .error-msg { color: var(--red); font-size: 12px; margin-top: 5px; }
body.page-survey .progress-text { font-size: 12px; color: var(--muted); }
