:root {
  color-scheme: light;
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-soft: #dcfce7;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 28rem),
    var(--bg);
  color: var(--ink);
}

.shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px 14px calc(92px + env(safe-area-inset-bottom));
}

.hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.28), transparent 55%),
    linear-gradient(135deg, var(--primary-dark), #22c55e);
  color: white;
  border-radius: 28px;
  padding: 24px 20px 22px;
  box-shadow: 0 18px 45px rgba(22, 163, 74, 0.24);
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.eyebrow {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(28px, 8vw, 36px); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: 21px; margin-bottom: 8px; letter-spacing: -0.015em; }
.hero-note { max-width: 34rem; margin-bottom: 0; line-height: 1.65; opacity: 0.94; }

.state-card,
.card,
.notice,
.cta-card {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  padding: 17px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.notice {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
}
.notice strong { color: #14532d; }
.notice p { margin: 8px 0 0; color: #14532d; line-height: 1.6; }

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  margin: 14px -14px 4px;
  padding: 10px 14px;
  overflow-x: auto;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.84);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-align: center;
  text-decoration: none;
  color: #166534;
  background: white;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.tabs a:focus-visible,
.cta-button:focus-visible,
.primary-button:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.34);
  outline-offset: 2px;
}

.price-section { scroll-margin-top: 78px; }
.section-kicker {
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-subtitle {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.price-list li {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.price-list span { color: #475569; line-height: 1.45; }
.price-list strong {
  justify-self: start;
  color: #14532d;
  font-size: 18px;
  line-height: 1.25;
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 6px 10px;
}
.compact li {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.compact strong { justify-self: end; }
.card-note {
  margin: 14px 0 0;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 12px;
  line-height: 1.6;
  font-size: 14px;
}

.accent {
  border-color: #fed7aa;
  background: #fffaf3;
}
.accent p { margin-bottom: 0; color: #7c2d12; line-height: 1.6; }
.highlight-price strong {
  display: inline-flex;
  margin-bottom: 8px;
  color: #14532d;
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 20px;
}

.cta-card {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
}
.cta-card p {
  margin-bottom: 12px;
  color: #14532d;
  font-weight: 800;
  line-height: 1.45;
}
.cta-actions,
.bottom-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
}
.cta-button.primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}
.cta-button.secondary {
  color: var(--primary-dark);
  background: white;
  border: 1px solid #86efac;
}
.bottom-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 15;
  width: min(100%, 520px);
  transform: translateX(-50%);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  background: rgba(15, 23, 42, 0.64);
  padding: 16px;
  z-index: 20;
}
.modal[hidden], [hidden] { display: none !important; }
.modal-panel {
  width: min(100%, 520px);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 28px;
  padding: 22px 18px 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}
.modal-kicker {
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}
.terms-body {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.terms-body p {
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  line-height: 1.6;
  margin: 0;
}
.checkbox-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  background: #f0fdf4;
  line-height: 1.5;
  font-weight: 700;
}
.checkbox-row input { width: 24px; height: 24px; margin: 0; accent-color: var(--primary); }
.primary-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: var(--primary);
  color: white;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.22);
}
.primary-button:disabled {
  background: #94a3b8;
  box-shadow: none;
}
.error {
  color: var(--danger);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 10px 12px;
}

@media (min-width: 520px) {
  .shell { padding-top: 24px; }
  .price-list li {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .price-list strong { justify-self: end; }
}
