/* HomeCalendar — UI spec §1 design tokens.
   Used by landing page, privacy, resend, and the React SPA imports this too. */

:root {
  --color-brand-primary: #2D6A4F;
  --color-brand-secondary: #52B788;
  --color-brand-light: #D8F3DC;
  --color-accent-warn: #E76F51;
  --color-accent-warn-light: #FDE8E1;
  --color-neutral-900: #1A1A1A;
  --color-neutral-700: #3D3D3D;
  --color-neutral-500: #737373;
  --color-neutral-300: #C4C4C4;
  --color-neutral-100: #F5F5F5;
  --color-neutral-50: #FAFAFA;
  --color-white: #FFFFFF;
  --color-success: #1B7C3A;
  --color-success-light: #E6F4EA;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-neutral-900);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--color-brand-primary); text-decoration: underline; }
a:hover { color: var(--color-brand-secondary); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ─── Hero ─── */
.hero { padding: 80px 0 64px; background: var(--color-neutral-50); }
.hero h1 {
  font-size: 36px; line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 16px;
}
.hero .sub { font-size: 18px; color: var(--color-neutral-700); margin: 0 0 32px; }
@media (min-width: 768px) {
  .hero h1 { font-size: 52px; }
}

/* ─── Zip widget ─── */
.zip-widget {
  background: var(--color-white); padding: 24px;
  border: 1px solid var(--color-neutral-300); border-radius: 12px;
  max-width: 560px;
}
.zip-widget label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.zip-widget .row { display: flex; gap: 8px; flex-wrap: wrap; }
.zip-widget input[type="text"] {
  flex: 1 1 200px; min-width: 0;
  font-family: monospace; font-size: 16px;
  padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--color-neutral-300);
  background: var(--color-white);
}
.zip-widget input[type="text"]:focus {
  outline: none; border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px var(--color-brand-light);
}
.zip-widget button {
  padding: 12px 24px; font-weight: 600; font-size: 14px;
  background: var(--color-brand-primary); color: var(--color-white);
  border: 0; border-radius: 8px; cursor: pointer;
}
.zip-widget button:hover { background: var(--color-brand-secondary); }
.zip-widget button:disabled { opacity: 0.5; cursor: not-allowed; }

.zip-result { margin-top: 16px; }
.zip-result.error { color: var(--color-accent-warn); }
.zip-result .zone-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--color-brand-light); color: var(--color-brand-primary);
  font-weight: 600; font-size: 14px; margin-right: 8px;
}
.zip-result ul { list-style: none; padding: 0; margin: 12px 0 0; }
.zip-result li {
  padding: 12px 0; border-top: 1px solid var(--color-neutral-300);
}
.zip-result li:first-child { border-top: 0; }
.zip-result .why { color: var(--color-neutral-500); font-size: 14px; }

/* ─── CTA buttons ─── */
.btn {
  display: inline-block; padding: 12px 24px;
  border-radius: 8px; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0;
  font-family: inherit;
}
.btn-primary { background: var(--color-brand-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-brand-secondary); }
.btn-secondary {
  background: var(--color-white); color: var(--color-brand-primary);
  border: 1px solid var(--color-brand-primary);
}

/* ─── Sections ─── */
section.standard { padding: 80px 0; }
@media (min-width: 768px) { section.standard { padding: 96px 0; } }
section h2 {
  font-size: 26px; line-height: 1.2; letter-spacing: -0.01em;
  margin: 0 0 24px; font-weight: 700;
}
@media (min-width: 768px) { section h2 { font-size: 34px; } }

.how-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-card {
  padding: 24px; background: var(--color-neutral-50);
  border-radius: 12px; border: 1px solid var(--color-neutral-300);
}
.how-card .step-num {
  display: inline-block; width: 32px; height: 32px;
  background: var(--color-brand-primary); color: var(--color-white);
  border-radius: 50%; text-align: center; line-height: 32px;
  font-weight: 700; margin-bottom: 12px;
}

/* ─── Pricing ─── */
.pricing-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card {
  padding: 32px; background: var(--color-white);
  border: 1px solid var(--color-neutral-300); border-radius: 12px;
  position: relative;
}
.price-card.featured {
  border-color: var(--color-brand-primary); border-width: 2px;
}
.price-card .badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--color-brand-primary); color: var(--color-white);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
}
.price-card h3 { margin: 0 0 8px; font-size: 24px; }
.price-card .price { font-size: 36px; font-weight: 700; margin: 0 0 16px; }
.price-card ul { padding: 0; list-style: none; margin: 0 0 24px; }
.price-card li { padding: 6px 0; }
.price-card li:before { content: "✓"; color: var(--color-success); margin-right: 8px; font-weight: 700; }

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid var(--color-neutral-300);
  padding: 16px 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 600;
  list-style: none; padding-right: 24px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 20px; color: var(--color-brand-primary);
}
.faq-item[open] summary:after { content: "−"; }
.faq-item p { margin: 8px 0 0; color: var(--color-neutral-700); }

/* ─── Footer ─── */
footer.site-footer {
  border-top: 1px solid var(--color-neutral-300);
  padding: 32px 0; color: var(--color-neutral-500); font-size: 14px;
}
footer.site-footer a { color: var(--color-neutral-700); margin-right: 16px; }

/* ─── Forms (privacy/resend pages and SPA) ─── */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="number"] {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--color-neutral-300); border-radius: 8px;
  font-size: 16px; font-family: inherit;
}
.form-field input:focus {
  outline: none; border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px var(--color-brand-light);
}
.form-error { color: var(--color-accent-warn); font-size: 14px; margin-top: 4px; }
.form-success {
  background: var(--color-success-light); color: var(--color-success);
  padding: 12px 16px; border-radius: 8px; margin-top: 16px;
}

/* ─── Small + accessibility ─── */
.muted { color: var(--color-neutral-500); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
