/* AllergyBuster landing page */

:root {
  --green-900: #1b4310;
  --green-800: #235916;
  --green-700: #2e6b1a;
  --green-600: #3a8423;
  --green-500: #4ea534;
  --green-100: #e8f1e2;
  --green-50:  #f3f8ef;
  --ink-900:   #0e1a09;
  --ink-700:   #2c3a26;
  --ink-500:   #5a6a52;
  --ink-300:   #aab3a4;
  --cream:     #fafaf6;
  --white:     #ffffff;
  --radius:    14px;
  --shadow:    0 8px 30px rgba(14, 26, 9, 0.18);
  --maxw:      1100px;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 720px; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(78, 165, 52, 0.35), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-600) 100%);
  color: var(--white);
  padding-bottom: 64px;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--white);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.brand img { border-radius: 8px; }
.brand:hover { text-decoration: none; }

.nav-cta {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 { color: var(--white); }
.hero-copy em { font-style: italic; color: var(--green-100); }

.lede {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  margin-top: 1rem;
  margin-bottom: 1.8rem;
  max-width: 32em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.hero-art img {
  max-width: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.4));
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--white);
  color: var(--green-800);
}
.btn-primary:hover { background: var(--green-50); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-large { padding: 16px 30px; font-size: 1.05rem; }

.btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--green-50);
}
.section-privacy {
  background: var(--green-100);
  text-align: center;
}
.section-cta {
  background: linear-gradient(160deg, var(--green-800), var(--green-600));
  color: var(--white);
  text-align: center;
}
.section-cta h2 { color: var(--white); }
.section-cta p { color: rgba(255,255,255,0.9); }
.section-cta .fineprint { color: rgba(255,255,255,0.7); }

.section-lede {
  font-size: 1.1rem;
  color: var(--ink-700);
  max-width: 44em;
  margin-bottom: 2rem;
}
.section-privacy .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.steps li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--green-100);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-700); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Two-col ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.two-col-copy p { color: var(--ink-700); font-size: 1.05rem; }
.two-col-art img {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.feature-list {
  padding-left: 0;
  list-style: none;
  margin-top: 1.2rem;
}
.feature-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--ink-700);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
}

/* ---------- Features grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--green-100);
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--ink-700); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- CTA ---------- */

.cta-buttons {
  margin: 32px 0 12px;
}

.fineprint {
  font-size: 0.9rem;
  color: var(--ink-500);
}
.disclaimer { font-style: italic; margin-top: 8px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.75);
  padding: 28px 0;
  font-size: 0.92rem;
}
.footer a { color: var(--white); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer p { margin: 0; }
.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* ---------- Privacy page ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
}
.doc h1 { font-size: 2rem; }
.doc h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.96rem;
}
.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--green-100);
  vertical-align: top;
}
.doc th { background: var(--green-50); }
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ---------- Beta steps ---------- */

.beta-steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.beta-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 24px;
}

.beta-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-800);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.beta-step-body h3 {
  color: var(--white);
  margin-bottom: 6px;
}

.beta-step-body p {
  color: rgba(255,255,255,0.85);
  font-size: 0.97rem;
  margin-bottom: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }
  .hero-art img { max-width: 260px; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .two-col-art { order: -1; }
  .two-col-art img { max-width: 240px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .hero-cta .btn { flex: 1; text-align: center; }
}
