:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-alt: #f3f4f1;
  --ink: #0f172a;
  --ink-muted: #475569;
  --border: #e2e8f0;
  --accent: #059669;
  --accent-dark: #047857;
  --accent-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.05);
  --max: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.nav-links a {
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #1e293b; }

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { border-color: #cbd5e1; background: var(--surface-alt); }

.btn-sm { padding: 9px 14px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 64px 0 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.hero-sub {
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: var(--ink-muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.trust-row span::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* Sections */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  overflow-wrap: anywhere;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
  line-height: 1.45;
}

.tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.tag-green { background: var(--accent-soft); color: var(--accent-dark); }
.tag-amber { background: var(--warn-soft); color: var(--warn); }
.tag-red { background: var(--danger-soft); color: var(--danger); }
.tag-slate { background: var(--surface-alt); color: var(--ink-muted); }

/* Sample preview band */
.preview-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.preview-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.score-tile {
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 16px;
}

.score-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.score-val {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.score-val.warn { color: var(--warn); }
.score-val.good { color: var(--accent-dark); }

/* Pricing */
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.price-num {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
}

.price-num span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.placeholder-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}

/* Intake Form */
.intake-wrap {
  max-width: 640px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.96rem;
  background: var(--surface);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(5, 150, 105, 0.25);
  border-color: var(--accent);
}

.status-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}

.status-box.show { display: block; }
.status-box.ok { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #a7f3d0; }
.status-box.err { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecaca; }

/* Report-specific */
.sample-banner {
  background: var(--warn-soft);
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.88rem;
  padding: 10px 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: var(--surface-alt);
}

.pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill-pass { background: var(--accent-soft); color: var(--accent-dark); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-fail { background: var(--danger-soft); color: var(--danger); }

.code-block {
  position: relative;
  max-width: 100%;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { background: #334155; }

/* Modal for placeholder checkout */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 50;
}
.modal-backdrop.open { display: grid; }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.modal h3 { margin: 0 0 8px; }
.modal p { margin: 0 0 16px; color: var(--ink-muted); font-size: 0.94rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

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

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

@media (max-width: 760px) {
  .nav-links .hide-mobile { display: none; }
  .grid-2, .grid-3, .score-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 40px 0; }
}
