/* =============================================
   Homepage — layout and section styles.
   Loaded after base.css.
   ============================================= */

/* ── Site nav ──────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, var(--topbar-bg-1), var(--topbar-bg-2)),
    var(--topbar);
  border-bottom: 1px solid var(--topbar-line);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 14px 0;
}
.site-nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 17px;
}
.site-nav-brand:hover { color: var(--ink); }
.site-nav-brand img {
  width: 28px;
  height: 28px;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}
.site-nav-links a {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
}
.site-nav-links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .site-nav-links { display: none; }
}

/* ── Hero ──────────────────────────────────── */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, var(--accent-soft), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(14, 138, 74, 0.05), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-eyebrow {
  color: var(--accent);
  margin: 0 0 var(--space-4);
}
.hero-headline {
  font-size: var(--font-size-hero);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 var(--space-5);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-subhead {
  font-size: var(--font-size-xl);
  color: var(--ink-secondary);
  line-height: 1.35;
  max-width: 56ch;
  margin: 0 auto var(--space-8);
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

/* ── Trust row (under hero CTA) ────────────── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.trust-row li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  margin-right: 4px;
}

/* ── Trust band (3-icon row) ───────────────── */
.trust-band {
  padding: var(--space-12) 0;
}
.trust-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.trust-band-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.trust-band-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
}
.trust-band-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.trust-band-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .trust-band-grid { grid-template-columns: 1fr; }
}

/* ── Section scaffolding ───────────────────── */
.section {
  padding: var(--space-16) 0;
}
.section-eyebrow {
  text-align: center;
  margin-bottom: var(--space-5);
}
.section-heading {
  font-size: var(--font-size-2xl);
  text-align: center;
  margin-bottom: var(--space-10);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Proof grid ────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.proof-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 1px 2px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  margin-bottom: var(--space-1);
}
.proof-dot--danger { background: var(--danger); }
.proof-dot--warn { background: var(--warm); }
.proof-dot--info { background: var(--accent); }
.proof-dot--success { background: var(--success); }
.proof-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.proof-metric {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2px 0 4px;
}
.proof-metric--danger { color: var(--status-danger-ink); }
.proof-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 960px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* ── Preview mock (browser chrome) ─────────── */
.preview-section { padding: var(--space-10) 0; }
.preview-frame {
  max-width: 900px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(15, 15, 20, 0.08);
  overflow: hidden;
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-subtle);
}
.preview-chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.preview-url {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.preview-body {
  padding: var(--space-8);
}
.preview-eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.preview-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-5);
}
.preview-tabs {
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-5);
  font-size: 13px;
  color: var(--muted);
  overflow-x: auto;
}
.preview-tab--active {
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.preview-tab--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: calc(-1 * var(--space-5) - 1px);
  height: 2px;
  background: var(--accent);
}
.preview-card {
  background: var(--status-info-bg);
  border: 1px solid var(--status-info-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.preview-card-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}
.preview-chip {
  display: inline-block;
  padding: 2px 8px;
  background: var(--status-danger-bg);
  color: var(--status-danger-ink);
  border: 1px solid var(--status-danger-border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.preview-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.preview-card p {
  color: var(--muted);
  font-size: 13px;
}
.preview-card-meta {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
  font-size: 12px;
  color: var(--muted);
}
.preview-card-meta b { color: var(--ink); font-size: 14px; }
.preview-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
}
.preview-value--ok { color: var(--status-success-ink); }
.preview-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--muted);
}
.preview-strip b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}
@media (max-width: 720px) {
  .preview-card { grid-template-columns: 1fr; }
  .preview-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── What it catches ───────────────────────── */
.catches-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8) var(--space-6);
}
.catches-item svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.catches-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.catches-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .catches-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .catches-grid { grid-template-columns: 1fr; }
}

/* ── How it works (step flow) ──────────────── */
.steps-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}
.step {
  text-align: center;
}
.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.step-circle svg { width: 24px; height: 24px; }
.step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.step-time {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  padding: 2px 8px;
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  letter-spacing: 0;
}
.step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.step-line {
  align-self: center;
  margin-top: 28px;
  width: 100%;
  height: 1px;
  background: var(--border);
}
@media (max-width: 720px) {
  .steps-flow {
    grid-template-columns: 1fr;
  }
  .step-line { display: none; }
}

/* ── FAQ ───────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-10);
  max-width: 900px;
  margin: 0 auto;
}
.faq-item strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-size: 15px;
}
.faq-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ── Expanded trust cards ──────────────────── */
.trust-full-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.trust-full-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 1px 2px var(--shadow-color);
}
.trust-full-card svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.trust-full-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: var(--space-2);
}
.trust-full-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.legal-links {
  text-align: center;
  margin-top: var(--space-8);
  color: var(--muted);
  font-size: 13px;
}
.legal-links a { color: var(--ink-secondary); }
.legal-links a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .trust-full-grid { grid-template-columns: 1fr; }
}

/* ── Final CTA ─────────────────────────────── */
.final-cta {
  padding: var(--space-20) 0;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--border-subtle);
}
.final-cta h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-6);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-note {
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 13px;
}

/* ── Footer ────────────────────────────────── */
.site-footer {
  padding: var(--space-10) 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border-subtle);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
