:root {
  --primary: #00A676;
  --primary-dark: #00805c;
  --ink: #14251f;
  --muted: #5b6b66;
  --bg: #ffffff;
  --bg-soft: #f3faf7;
  --border: #e1ece8;
  --danger: #d64545;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #14c78e;
    --primary-dark: #3fe0ac;
    --ink: #eaf5f0;
    --muted: #9fb3ac;
    --bg: #0e1613;
    --bg-soft: #141f1b;
    --border: #24322d;
    --danger: #ff6b6b;
  }
  .phone-notch { background: #0a0a0a; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--primary-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.nav a:hover { color: var(--primary-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* hero */
.hero { background: var(--bg-soft); }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 72px 24px;
}

.hero-text { flex: 1; }

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 16px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 32px;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-row-center { justify-content: center; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  border-color: var(--primary);
  color: var(--primary-dark);
}
.btn-outline:hover { background: var(--bg-soft); }

.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-danger:hover { background: #b83636; }
.btn-danger:disabled { background: #c98585; cursor: not-allowed; }

.hero-art { flex: 1; display: flex; justify-content: center; }

.phone-mock {
  width: 220px;
  height: 440px;
  background: var(--ink);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

.phone-notch {
  width: 70px;
  height: 8px;
  background: #000;
  border-radius: 4px;
  margin: 0 auto 12px;
}

.phone-screen {
  background: var(--bg);
  height: calc(100% - 20px);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pill {
  height: 28%;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.pill-1 { background: var(--primary); opacity: 0.9; height: 20%; }
.pill-2 { height: 34%; }
.pill-3 { height: 34%; }

/* features */
.features { padding: 72px 0; }
.features h2 { text-align: center; font-size: 1.8rem; margin-bottom: 40px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card h3 { margin: 0 0 8px; color: var(--primary-dark); }
.feature-card p { margin: 0; color: var(--muted); }

.feature-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* pharmacies */
.pharmacies { padding: 72px 0; background: var(--bg-soft); }

.pharmacies-inner { max-width: 640px; margin: 0 auto; text-align: center; }

.pharmacies h2 { font-size: 1.8rem; margin: 0 0 16px; }

.pharmacy-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  color: var(--muted);
}

.pharmacy-benefits li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 8px;
}

/* cta band */
.cta-band {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0 0 32px; opacity: 0.9; }
.cta-band .btn-outline { border-color: white; color: white; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* legal / forms */
.legal { padding: 56px 0 96px; }
.legal-inner.narrow { max-width: 560px; }
.legal-inner.center { text-align: center; }

.legal h1 { margin-top: 0; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }
.legal .note { color: var(--muted); font-size: 0.9rem; }

.delete-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
}

.delete-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
}

.delete-form input,
.delete-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.delete-form button {
  margin-top: 24px;
  align-self: flex-start;
}

.form-error {
  color: var(--danger);
  font-weight: 600;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--muted);
}
.footer-links a:hover { color: var(--primary-dark); }

@media (max-width: 720px) {
  .hero-inner { flex-direction: column; padding: 48px 24px; }
  .hero h1 { font-size: 2rem; }

  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 24px 16px;
  }

  .nav.open { display: flex; }

  .nav a {
    margin-left: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav a:last-child { border-bottom: none; }
}
