/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0f1210;
  --bg-card:      #161c18;
  --bg-elevated:  #1c2620;
  --border:       #2a3830;
  --border-light: #344840;

  --green-bright: #4ade80;
  --green-mid:    #22c55e;
  --green-dim:    #16a34a;
  --green-muted:  #166534;
  --green-glow:   rgba(74, 222, 128, 0.08);

  --text:         #e8f0eb;
  --text-muted:   #7a9485;
  --text-faint:   #4a6458;

  --accent:       #4ade80;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  --shadow-card:  0 2px 8px rgba(0,0,0,.5), 0 0 0 1px var(--border);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ── */
.container { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ── */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.logo {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green-bright);
  text-decoration: none;
  letter-spacing: -.3px;
}
.logo-leaf { margin-right: .3rem; }
.tagline {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .2rem;
  letter-spacing: .02em;
}

/* ── Main ── */
.main-content { flex: 1; padding: 2.5rem 0 4rem; }

/* ── Hero ── */
.hero { text-align: center; margin-bottom: 2.5rem; }
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text);
  margin-bottom: .75rem;
  font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  color: var(--green-bright);
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Form ── */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.required { color: var(--green-bright); }
.optional { color: var(--text-faint); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.hint { font-size: .78rem; color: var(--text-faint); margin-top: .3rem; }

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
input::placeholder,
textarea::placeholder { color: var(--text-faint); }
select { cursor: pointer; }
select option { background: var(--bg-elevated); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-dim);
  box-shadow: 0 0 0 3px rgba(74,222,128,.1);
}
textarea { resize: vertical; min-height: 80px; }

.radio-group { display: flex; gap: 1rem; margin-top: .4rem; }
.radio-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  padding: .5rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: border-color .15s, background .15s;
}
.radio-label:has(input:checked) {
  border-color: var(--green-dim);
  background: var(--green-glow);
  color: var(--green-bright);
}
.radio-label input { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all .15s;
  font-family: inherit;
  letter-spacing: .01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green-mid);
  color: #0a1a0e;
  width: 100%;
  text-align: center;
  padding: .85rem;
  font-size: 1rem;
  margin-top: .5rem;
  box-shadow: 0 0 20px rgba(34,197,94,.2);
}
.btn-primary:hover { background: var(--green-bright); box-shadow: 0 0 28px rgba(74,222,128,.3); }
.btn-primary:disabled { background: var(--green-muted); color: var(--text-faint); cursor: not-allowed; box-shadow: none; }
.btn-secondary {
  background: transparent;
  color: var(--green-mid);
  border: 1px solid var(--green-muted);
  padding: .6rem 1.25rem;
  font-size: .9rem;
}
.btn-secondary:hover { background: var(--green-glow); border-color: var(--green-dim); }

/* ── Trust signals ── */
.trust-signals { margin-top: 2rem; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.trust-item strong {
  display: block;
  color: var(--green-bright);
  margin-bottom: .35rem;
  font-size: .9rem;
}
.trust-item p { font-size: .82rem; color: var(--text-muted); }

/* ── Loading ── */
.loading-section { text-align: center; padding: 4rem 0; }
.loader {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--green-mid);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 16px rgba(34,197,94,.2);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-section h2 { color: var(--text); margin-bottom: .5rem; font-family: 'Lora', serif; }
.loading-section p { color: var(--text-muted); }

/* ── Care Plan ── */
.plan-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.plan-header h2 {
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: .35rem;
}
.plan-meta {
  color: var(--text-muted);
  font-size: .85rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.plan-meta span {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: .15rem .6rem;
  border-radius: 20px;
  font-size: .78rem;
}

.plan-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}
.plan-section h3 {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--green-bright);
  margin-bottom: .85rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.plan-section h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--green-mid);
  border-radius: 2px;
}
.section-content {
  font-size: .93rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── Products ── */
.products-section { border-left: 2px solid var(--green-dim); }
.products-intro { font-size: .85rem; color: var(--text-faint); margin-bottom: 1rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .85rem; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product-card:hover {
  border-color: var(--green-dim);
  box-shadow: 0 0 20px rgba(34,197,94,.12);
  transform: translateY(-1px);
}
.product-type-badge {
  display: inline-block;
  background: var(--green-muted);
  color: var(--green-bright);
  font-size: .68rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .6rem;
  align-self: flex-start;
}
.product-use {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  flex: 1;
  line-height: 1.5;
}
.product-cta {
  font-size: .8rem;
  font-weight: 600;
  color: var(--green-mid);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.product-cta::after { content: '→'; }

.affiliate-note {
  font-size: .75rem;
  color: var(--text-faint);
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.plan-actions { margin-top: 2rem; text-align: center; }

/* ── Error ── */
.error-section { text-align: center; padding: 3rem 0; }
.error-section h2 { color: #f87171; }
.error { color: #f87171; }
a { color: var(--green-mid); }
a:hover { color: var(--green-bright); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .8rem;
  margin-top: auto;
}
.site-footer p + p { margin-top: .35rem; }
.disclaimer { font-size: .75rem; color: var(--text-faint); opacity: .7; }

/* ── Email gate ── */
.email-gate {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 480px;
  margin: 3rem auto;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.email-gate h2 { font-family: 'Lora', serif; color: var(--text); margin-bottom: .75rem; }
.email-gate p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: .9rem; }
.email-form .form-group { text-align: left; }
