:root {
  --navy: #1f2a44;
  --navy-dark: #16203a;
  --green: #34a853;
  --green-dark: #1e7e34;
  --amber: #d9a400;
  --red: #c0392b;
  --bg: #f7f8fb;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #1a1a2e;
  --muted: #6b7280;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

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

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--navy); }
.nav-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--navy); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---- Hero ---- */
.hero { padding: 88px 0 64px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-dark); background: #eaf7ed; border: 1px solid #bfe6c9; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 18px; color: var(--navy); letter-spacing: -0.02em; }
.hero h1 span { color: var(--green-dark); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .microcopy { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---- Proof strip ---- */
.proof {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #fff;
}
.proof .stat { text-align: center; }
.proof .stat .num { font-size: 26px; font-weight: 800; color: var(--navy); }
.proof .stat .label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---- Sections ---- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--green-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.section-head h2 { font-size: 30px; color: var(--navy); margin: 8px 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---- Feature grid ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px;
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: #eaf7ed; margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin: 0 0 8px; color: var(--navy); }
.feature-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; padding: 8px; }
.step .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 14px;
}
.step h4 { font-size: 15px; margin: 0 0 6px; color: var(--navy); }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---- Sample report preview (reuses email brand colors) ---- */
.sample-card {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border);
}
.sample-header { background: var(--navy); color: #fff; padding: 20px 24px; }
.sample-header .t { font-weight: 800; font-size: 16px; }
.sample-header .s { font-size: 12.5px; color: #aeb8d0; margin-top: 4px; }
.sample-body { padding: 20px 24px; }
.sample-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 8px; margin-bottom: 10px; font-size: 13.5px;
}
.sample-row.ok { background: #e6f4ea; border: 1px solid #34a853; }
.sample-row.warn { background: #fff8e6; border: 1px solid #d9a400; }
.sample-row .badge { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; white-space: nowrap; }
.sample-row.ok .badge { background: var(--green); }
.sample-row.warn .badge { background: var(--amber); }
.sample-row .co { font-weight: 700; }
.sample-row .role { color: var(--muted); }

/* ---- Pricing ---- */
.pricing-grid {
  display: flex; gap: 24px; justify-content: center; align-items: stretch; flex-wrap: wrap;
}
.pricing-card {
  width: 340px; background: var(--card); border: 2px solid var(--navy); border-radius: 16px;
  padding: 36px; text-align: center; box-shadow: var(--shadow); position: relative;
  display: flex; flex-direction: column;
}
.pricing-card.secondary { border: 2px solid var(--border); box-shadow: none; }
.pricing-card .badge-pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 999px;
}
.pricing-card .plan { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 12.5px; letter-spacing: .06em; }
.pricing-card .price { font-size: 48px; font-weight: 800; color: var(--navy); margin: 10px 0 0; }
.pricing-card .price span { font-size: 16px; font-weight: 600; color: var(--muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; flex: 1; }
.pricing-card li { padding: 8px 0; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.pricing-card li::before { content: "✓"; color: var(--green-dark); font-weight: 800; }
.pricing-or {
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em; width: 40px;
}
@media (max-width: 760px) {
  .pricing-or { width: 100%; padding: 4px 0; }
}

/* ---- Footer ---- */
footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ---- Auth pages / dashboard ---- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 22px; color: var(--navy); margin: 0 0 4px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14.5px;
  font-family: inherit; background: #fff; color: var(--text);
}
.field textarea { resize: vertical; min-height: 220px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-option {
  display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
  padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer;
  background: #fff; color: var(--text);
}
.radio-option:has(input:checked) { border-color: var(--navy); background: #f3f5fa; color: var(--navy); }
.radio-option:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.radio-option input { margin: 0; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--muted); }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #fdecea; border: 1px solid #f2b8b0; color: #7a2e24; }
.alert-success { background: #eaf7ed; border: 1px solid #bfe6c9; color: #1e7e34; }
.alert-info { background: #f3f5fa; border: 1px solid #d7dce8; color: var(--navy); }

.dash-shell { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.dash-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.dash-card h2 { font-size: 18px; color: var(--navy); margin: 0 0 6px; }
.dash-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.status-pill.active { background: #e6f4ea; color: var(--green-dark); border: 1px solid #34a853; }
.status-pill.none { background: #fdecea; color: var(--red); border: 1px solid #eab6ae; }

.blog-shell { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.blog-shell .kicker { color: var(--green-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.blog-index-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.blog-index-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px;
  box-shadow: var(--shadow); text-decoration: none; display: block;
}
.blog-index-item h2 { font-size: 19px; color: var(--navy); margin: 0 0 8px; }
.blog-index-item p { color: var(--muted); font-size: 14.5px; margin: 0; }
.blog-index-item:hover h2 { color: var(--green-dark); }

.article-shell { max-width: 680px; margin: 0 auto; padding: 56px 24px 80px; }
.article-back { font-size: 13.5px; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 18px; }
.article-back:hover { color: var(--navy); }
.article-eyebrow { color: var(--green-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.article-shell h1 { font-size: 32px; line-height: 1.2; color: var(--navy); margin: 10px 0 10px; letter-spacing: -0.01em; }
.article-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 36px; }
.article-body { font-size: 16px; line-height: 1.7; color: var(--text); }
.article-body h2 { font-size: 22px; color: var(--navy); margin: 36px 0 14px; }
.article-body h3 { font-size: 17.5px; color: var(--navy); margin: 28px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--navy); }
.article-cta {
  background: var(--navy); color: #fff; border-radius: 14px; padding: 28px 32px; margin-top: 44px; text-align: center;
}
.article-cta h3 { color: #fff; font-size: 19px; margin: 0 0 8px; }
.article-cta p { color: #aeb8d0; font-size: 14px; margin: 0 0 18px; }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  .article-shell h1 { font-size: 26px; }
}
