/* Native Pledge Manager — public site styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
button { font: inherit; }

:root {
  --bg: #F6F7F5;
  --surface: #FFFFFF;
  --surface-alt: #F0FBF5;
  --ink: #0E1A14;
  --text-primary: #16241D;
  --text-secondary: #55635C;
  --border: #DDE3DE;
  --border-strong: #C4CCC6;

  --brand: #0F8F5F;
  --brand-dark: #0B6E49;
  --brand-light: #E4F6EC;
  --brand-ink: #06301F;
  --accent: #FF7A45;

  --danger: #C6402C;
  --warn: #B06000;
  --success: #0B6E49;

  --radius-lg: 16px;
  --radius: 10px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 26, 20, 0.08);
  --shadow-lg: 0 20px 48px rgba(14, 26, 20, 0.14);

  --font-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1120px;
}

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

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  border: none; cursor: pointer; line-height: 1; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 8px 4px; text-decoration: underline; text-decoration-color: var(--border-strong); border-radius: 0; }
.btn-ghost:hover { color: var(--brand-dark); text-decoration-color: var(--brand-dark); }
.btn-full { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ─── Topbar ─────────────────────────────────────────────────────────── */
.site-topbar {
  background: rgba(246, 247, 245, 0.85); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); }
.site-logo-mark {
  min-width: 38px; height: 26px; padding: 0 6px; border-radius: 7px; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; flex-shrink: 0;
}
.site-nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.site-nav a:hover { color: var(--text-primary); }
.site-nav .btn { margin-left: 4px; }
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(15, 143, 95, 0.10), transparent),
    radial-gradient(50% 50% at 10% 10%, rgba(255, 122, 69, 0.08), transparent);
}
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--brand-light); color: var(--brand-dark);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.12;
  color: var(--ink); margin-bottom: 20px; letter-spacing: -0.01em;
}
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-sub { font-size: 19px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px 24px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--brand); display: block; }
.hero-stat-label { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; line-height: 1.4; }
.hero-stats-divider { border-top: 1px solid var(--border); grid-column: 1 / -1; margin-top: 4px; padding-top: 16px; text-align: center; font-weight: 700; font-size: 15px; color: var(--text-primary); }

/* ─── Section shell ──────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em; }
.section-head p { font-size: 16px; color: var(--text-secondary); line-height: 1.6; }

/* ─── How it works ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; position: relative; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark);
  font-family: var(--font-head); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-card h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.step-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }

/* ─── What stays in your store ──────────────────────────────────────── */
.keep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.keep-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.keep-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--brand-light); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.keep-card h3 { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.keep-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }

/* ─── Core features ──────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; transition: box-shadow 0.15s, transform 0.15s; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { font-size: 24px; margin-bottom: 14px; }
.feature-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ─── Calculator ─────────────────────────────────────────────────────── */
.calc-wrap { max-width: 880px; margin: 0 auto; }
.calc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 36px; }
.calc-panel { display: none; }
.calc-panel.active { display: block; }

.calc-example-note {
  background: var(--surface-alt); border: 1px solid var(--border); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; color: var(--text-secondary); margin-bottom: 24px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-group { display: block; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group select {
  width: 100%; font-size: 14.5px; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text-primary); transition: border-color 0.12s, box-shadow 0.12s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,143,95,0.14); }
.calc-helper { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-top: 6px; }
.calc-helper-sub { display: block; font-size: 10.5px; color: var(--text-secondary); opacity: 0.75; margin-top: 2px; }
.input-money { position: relative; display: block; }
.input-money::before { content: "$"; position: absolute; left: 13px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--text-secondary); font-size: 14.5px; pointer-events: none; }
.input-money input { padding-left: 26px; }
.input-pct { position: relative; display: block; }
.input-pct::after { content: "%"; position: absolute; right: 13px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--text-secondary); font-size: 14.5px; pointer-events: none; }
.input-pct input { padding-right: 26px; }

.field-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(198,64,44,0.12) !important; }
.inline-error { color: var(--danger); font-size: 12.5px; margin-top: 10px; display: none; }
.inline-warn { color: var(--warn); font-size: 12px; margin-top: 6px; display: none; }

.adv-toggle {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--text-primary); cursor: pointer; margin-top: 20px;
}
.adv-toggle:hover { border-color: var(--brand); color: var(--brand-dark); }
.adv-toggle-chevron { transition: transform 0.15s; }
.adv-toggle[aria-expanded="true"] .adv-toggle-chevron { transform: rotate(180deg); }
.adv-fields { border-top: 2px solid var(--border); margin-top: 16px; padding-top: 22px; }
.adv-fields.collapsed { display: none; }
.adv-fields-note { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 16px; font-style: italic; }
.adv-fields h4 { font-family: var(--font-head); font-size: 14px; font-weight: 700; margin: 20px 0 12px; color: var(--ink); }
.adv-fields h4:first-child { margin-top: 0; }
.adv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.adv-prefill-link {
  display: inline-flex; align-items: center; gap: 4px; background: var(--brand-light); border: 1px solid rgba(15,143,95,0.28);
  border-radius: var(--radius-sm); padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--brand-dark); cursor: pointer; margin-bottom: 0;
}
.adv-prefill-link:hover { background: #d5f0e2; }
.adv-zero-link { background: var(--surface); border-color: var(--border-strong); color: var(--text-secondary); }
.adv-zero-link:hover { background: var(--bg); }

.calc-reset-row { display: flex; gap: 20px; margin-top: 28px; margin-bottom: 12px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.calc-run { margin-top: 20px; }

.checkbox-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.checkbox-row label { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* ─── Results ────────────────────────────────────────────────────────── */
.results-section { display: none; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.results-section h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; margin-bottom: 18px; color: var(--ink); }
.results-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.results-table th, .results-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.results-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); font-weight: 700; background: var(--bg); }
.results-table td:last-child, .results-table th:last-child,
.results-table td:nth-child(3), .results-table th:nth-child(3),
.results-table td:nth-child(4), .results-table th:nth-child(4) { text-align: right; white-space: nowrap; }
.results-table tr:last-child td { border-bottom: none; }
.results-table tr.row-npm td { background: var(--brand-light); font-weight: 700; }

.results-summary { text-align: center; margin: 28px 0 6px; }
.summary-savings { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--ink); }
.summary-sub { font-size: 13.5px; color: var(--text-secondary); margin-top: 6px; }

.assumptions-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-top: 24px; }
.assumptions-box h4 { font-family: var(--font-head); font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.assumptions-formula p { font-size: 12.5px; color: var(--text-secondary); font-family: var(--font-mono); line-height: 1.7; margin-bottom: 4px; }
.assumptions-formula .assumptions-total { font-weight: 700; color: var(--text-primary); font-family: var(--font-body); margin-top: 6px; }
.assumptions-detail { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.assumptions-detail summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--brand-dark); }
.assumptions-detail summary:hover { color: var(--brand); }
.assumptions-provider-label { font-weight: 700; color: var(--text-primary); margin: 10px 0 2px; }
.calc-disclaimer { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-top: 18px; }

/* ─── Pricing card ────────────────────────────────────────────────────── */
.pricing-wrap { display: flex; justify-content: center; }
.pricing-card {
  max-width: 420px; width: 100%; background: var(--surface); border: 1px solid var(--brand);
  box-shadow: 0 0 0 3px rgba(15,143,95,0.14), var(--shadow-lg); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center;
}
.pricing-name { font-size: 13px; font-weight: 700; color: var(--brand-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.pricing-price { font-family: var(--font-head); font-size: 48px; font-weight: 800; color: var(--ink); }
.pricing-duration { font-size: 14px; color: var(--text-secondary); margin-bottom: 22px; }
.pricing-body { font-size: 15px; color: var(--text-primary); line-height: 1.6; margin-bottom: 12px; }
.pricing-try { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 26px; }

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 15.5px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-secondary); flex-shrink: 0; transition: transform 0.15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--brand-dark); }
.faq-a { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; margin-top: 10px; }

/* ─── CTA ────────────────────────────────────────────────────────────── */
.cta-section { padding: 72px 0; }
.cta-card {
  max-width: 820px; margin: 0 auto; text-align: center; background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 24px; padding: 56px 40px; color: #fff; box-shadow: var(--shadow-lg);
}
.cta-card h2 { font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; margin-bottom: 12px; }
.cta-card p { font-size: 16px; color: rgba(255,255,255,0.88); line-height: 1.6; margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-card .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-card .btn-primary:hover { background: #f0fbf5; }
.cta-card .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-card .btn-secondary:hover { border-color: #fff; }

.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; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.waitlist-message { max-width: 460px; margin: 0 auto 20px; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.16); color: #fff; }
.waitlist-message-invalid, .waitlist-message-unavailable, .waitlist-message-rate_limited { background: rgba(198,64,44,0.28); }

.waitlist-form { max-width: 460px; margin: 0 auto; }
.waitlist-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-form-row input[type="email"] {
  flex: 1 1 220px; font-size: 15px; padding: 13px 16px; border-radius: 999px; border: none; color: var(--text-primary);
}
.waitlist-form-row input[type="email"]:focus { outline: 3px solid rgba(255,255,255,0.5); }
.waitlist-consent { font-size: 12.5px; color: rgba(255,255,255,0.75); margin-top: 14px; line-height: 1.6; }
.cta-alt-contact { font-size: 13.5px; color: rgba(255,255,255,0.85); margin-top: 22px; }
.cta-alt-contact a { text-decoration: underline; color: #fff; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.site-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer small { color: var(--text-secondary); font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--brand-dark); }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .steps, .features-grid { grid-template-columns: 1fr 1fr; }
  .keep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  .site-nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-stats { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .steps, .features-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 22px; }
  .cta-card { padding: 40px 24px; }

  .results-table thead { display: none; }
  .results-table, .results-table tbody, .results-table tr, .results-table td { display: block; width: 100%; }
  .results-table tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; padding: 12px 14px; background: var(--surface); }
  .results-table tr.row-npm { background: var(--brand-light); }
  .results-table td { border-bottom: none; padding: 6px 0; text-align: left !important; display: flex; justify-content: space-between; gap: 12px; }
  .results-table td::before { content: attr(data-label); font-weight: 600; font-size: 12px; color: var(--text-secondary); flex-shrink: 0; }

  .site-footer-inner { flex-direction: column; align-items: flex-start; }

  .waitlist-form-row { flex-direction: column; }
  .waitlist-form-row input[type="email"], .waitlist-form-row button { width: 100%; flex: none; }
}
