/* ─────────────────────────────────────────────────────────────
   Grantwell — landing page
   Aesthetic: warm editorial "executive report" — cream paper,
   brick-red ink, serif headings, soft warm shadows. The framed
   product mocks mirror a synthetic client portal:
   a light cream + brick-red sidebar workspace, NOT
   the old dark/teal Grant Radar prototype.
   ───────────────────────────────────────────────────────────── */

:root {
  /* page surfaces — warm cream / ivory */
  --paper: #fbf4e8;
  --paper-2: #f5ead6;
  --card: #fffaf4;
  --card-2: #fff7e9;

  /* text — warm browns */
  --ink: #3b2a21;        /* body */
  --ink-soft: #5c4639;
  --ink-mute: #806859;
  --heading: #2c1d15;    /* near-black brown */

  /* borders / dividers — tan */
  --line: #eadcc8;
  --line-soft: #f1e8d7;

  /* brand — brick / terracotta */
  --brick: #9f2f27;      /* primary brand red */
  --brick-d: #8d2c2a;    /* solid button */
  --brick-dd: #7c2624;   /* button hover */
  --terra: #b34f43;      /* secondary / sub-labels */
  --active: #f3e6d4;     /* active nav tan pill */

  /* status */
  --success: #2f7c47;
  --amber: #d99425;
  --amber-d: #8a4a12;
  --urgent: #b8322a;
  --slate: #8aa9bc;

  --maxw: 1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* warm-tinted shadows (pulled from the real product) */
  --shadow-soft: 0 18px 50px rgba(93, 58, 31, 0.14);
  --shadow-card: 0 8px 22px rgba(92, 61, 32, 0.07);
  --shadow-app: 0 30px 60px -28px rgba(93, 58, 31, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

/* overflow guards — grid/flex items default to min-width:auto (min-content),
   which can refuse to shrink and push layout wider than the viewport on
   narrow screens. Force them to shrink, and cap media to their container. */
.hero, .module, .scan-inner, .prob-grid, .why-grid, .steps,
.hero-copy, .hero-shot, .module-copy, .module-shot, .scan-copy, .scan-form,
.device, .app-shell, .app-main, .app-metrics, .app-filters,
.opp-row, .opp-main, .pl-row, .pl-main, .price-main, .nav { min-width: 0; }
.device, img { max-width: 100%; }
body {
  margin: 0;
  padding-top: 65px;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 88% -8%, rgba(159, 47, 39, 0.07) 0%, transparent 55%),
    radial-gradient(900px 700px at -8% 4%, rgba(217, 148, 37, 0.09) 0%, transparent 55%),
    var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle paper grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; color: var(--heading); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 0; }
h3 { margin: 0; }
em { font-style: italic; }
a { color: inherit; }

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brick-d);
  color: #fdf6ee;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 24px -14px rgba(124, 38, 36, 0.9);
}
.btn:hover { background: var(--brick-dd); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(124, 38, 36, 0.95); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.btn.block { display: flex; width: 100%; }
.btn-ghost {
  font-weight: 600; text-decoration: none; color: var(--brick);
  border-bottom: 2px solid transparent; transition: border-color 0.18s ease;
  font-size: 0.98rem;
}
.btn-ghost:hover { border-color: var(--terra); }

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(100%, var(--maxw)); max-width: var(--maxw); margin: 0 auto; padding: 16px 28px;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled {
  background: rgba(251, 244, 232, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--heading); }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.02em; }

/* 6-point radar/asterisk brand mark — echoes the real product's logo */
.brand-mark {
  position: relative; width: 28px; height: 28px; flex: none;
  display: inline-block;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark.sm { width: 22px; height: 22px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
  position: relative; padding: 2px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--terra); transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--heading); }
.nav-links a:hover::after { width: 100%; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.9);
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brick);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  padding: 8px;
}
.mobile-menu-panel a {
  display: block;
  border-radius: 8px;
  padding: 9px 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.mobile-menu-panel a:hover { background: var(--active); color: var(--brick); }

/* ── layout helpers ── */
main { position: relative; z-index: 1; }
.band { max-width: var(--maxw); margin: 0 auto; padding: 78px 28px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; font-weight: 700;
  color: var(--terra); margin: 0 0 14px;
}
.eyebrow.light { color: #f0c9a6; }

/* ── hero ── */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px 28px 70px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center;
}
.hero-rings {
  position: absolute; right: -120px; top: -80px; width: 560px; height: 560px;
  pointer-events: none; z-index: 0; opacity: 0.45;
}
.hero-rings span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--brick); opacity: 0.16;
}
.hero-rings span:nth-child(1) { width: 140px; height: 140px; animation: sweep 6s ease-out infinite; }
.hero-rings span:nth-child(2) { width: 290px; height: 290px; animation: sweep 6s ease-out infinite 1.5s; }
.hero-rings span:nth-child(3) { width: 440px; height: 440px; animation: sweep 6s ease-out infinite 3s; }
.hero-rings span:nth-child(4) { width: 560px; height: 560px; opacity: 0.09; }
@keyframes sweep {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.hero-copy { position: relative; z-index: 1; }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.74rem; font-weight: 700; color: var(--terra); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.04; margin: 0 0 22px; font-weight: 600;
}
.hero h1 em { color: var(--brick); font-style: italic; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 540px; margin: 0 0 30px; }
.lede strong { color: var(--heading); font-weight: 700; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 9px;
  margin: 26px 0 0; font-size: 0.9rem; color: var(--ink-mute);
}
.tick { width: 16px; height: 16px; border-radius: 50%; background: var(--brick); flex: none; position: relative; }
.tick::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 0.66rem; font-weight: 800; }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT MOCKS — light cream + brick-red "report" workspace
   Synthetic grant operations portal: a sidebar shell
   with serif headings, metric cards, tables, status pills, donut.
   ═══════════════════════════════════════════════════════════════ */

.device {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-app);
  overflow: hidden;
}
.app-shell { display: flex; align-items: stretch; }

/* sidebar — cream, tan right border, logo + nav + role */
.app-side {
  width: 128px; flex: none;
  background: #fffdf8;
  border-right: 1px solid var(--line);
  padding: 13px 11px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.app-brand { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.app-mark { width: 19px; height: 19px; flex: none; display: block; }
.app-brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.app-word { font-family: var(--serif); font-weight: 700; color: var(--brick); font-size: 0.84rem; letter-spacing: -0.01em; }
.app-sub { font-size: 0.46rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; font-weight: 600; }
.nav-sec { font-size: 0.45rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; margin: 9px 5px 3px; }
.nav-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.63rem; color: var(--ink-soft); font-weight: 500;
  padding: 5px 7px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-item .ni-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); flex: none; }
.nav-item.active { background: var(--active); color: var(--brick); font-weight: 700; }
.nav-item.active .ni-dot { background: var(--brick); }
.app-role {
  margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 6px;
  font-size: 0.52rem; color: var(--ink-mute);
}
.app-role .role-badge {
  width: 17px; height: 17px; border-radius: 5px; flex: none;
  background: var(--active); color: var(--brick); font-weight: 800; font-size: 0.52rem;
  display: grid; place-items: center;
}

/* main content area */
.app-main {
  flex: 1; min-width: 0; background: var(--paper);
  padding: 14px 16px 16px; position: relative; overflow: hidden;
}
/* faint concentric "radar rings" decoration in the header corner */
.app-rings {
  position: absolute; right: -46px; top: -46px; width: 150px; height: 150px;
  pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(circle, transparent 30px, rgba(159, 47, 39, 0.07) 31px 32px, transparent 33px),
    radial-gradient(circle, transparent 50px, rgba(159, 47, 39, 0.06) 51px 52px, transparent 53px),
    radial-gradient(circle, transparent 70px, rgba(159, 47, 39, 0.05) 71px 72px, transparent 73px);
}
.app-eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.5rem; letter-spacing: 0.04em; color: var(--ink-mute); font-weight: 600; margin: 0 0 6px;
}
.app-eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brick); }
.app-h1 { font-family: var(--serif); font-size: 1.18rem; color: var(--heading); margin: 0; line-height: 1.05; position: relative; z-index: 1; }
.app-desc { font-size: 0.58rem; color: var(--ink-mute); margin: 4px 0 12px; position: relative; z-index: 1; }

/* metric strip */
.app-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; box-shadow: var(--shadow-card); }
.metric-num { font-family: var(--serif); font-size: 1.04rem; font-weight: 600; color: var(--brick); line-height: 1; letter-spacing: -0.01em; }
.metric-num.ink { color: var(--heading); }
.metric-label { font-size: 0.5rem; color: var(--ink-soft); margin-top: 5px; font-weight: 600; line-height: 1.2; }
.metric-sub { font-size: 0.44rem; color: var(--ink-mute); margin-top: 2px; }

/* report panel */
.app-panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; box-shadow: var(--shadow-card); }
.app-panel + .app-panel { margin-top: 10px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.panel-title { font-family: var(--serif); font-size: 0.82rem; color: var(--heading); }
.panel-meta { font-size: 0.48rem; color: var(--ink-mute); }

/* filter chips */
.app-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 11px; }
.fchip {
  font-size: 0.52rem; color: var(--ink-soft); background: var(--card);
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px;
  display: inline-flex; align-items: center; gap: 5px;
}
.fchip b { color: var(--ink-mute); font-weight: 600; }
.fcount { margin-left: auto; font-size: 0.52rem; color: var(--ink-mute); }
.fcount b { color: var(--heading); }

/* opportunity rows (Grant Radar) */
.opp-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}
.opp-row:first-of-type { border-top: none; }
.opp-score {
  flex: none; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px;
  display: grid; place-items: center; font-size: 0.62rem; font-weight: 800;
  background: #e9f3ec; color: var(--success); border: 1px solid #cfe6d6;
}
.opp-score.warn { background: #fbf0db; color: var(--amber-d); border-color: #efd9ac; }
.opp-score.gated { background: #f7e2e0; color: var(--brick); border-color: #ecc8c4; }
.opp-main { flex: 1; min-width: 0; }
.opp-name { font-size: 0.68rem; color: var(--heading); font-weight: 700; line-height: 1.25; }
.opp-funder { font-size: 0.52rem; color: var(--ink-mute); margin-top: 2px; }
.opp-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.tag {
  font-size: 0.5rem; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--card-2);
}
.tag.fit { color: var(--success); border-color: #cfe6d6; background: #eef6f0; }
.tag.lvl { color: var(--terra); border-color: #ecccc4; background: #fbeeea; }
.opp-side { flex: none; text-align: right; }
.opp-amt { font-size: 0.66rem; color: var(--brick); font-weight: 700; }
.opp-deadline { font-size: 0.5rem; color: var(--ink-mute); margin-top: 3px; white-space: nowrap; }
.opp-deadline.soon { color: var(--amber-d); font-weight: 600; }
.opp-deadline.urgent { color: var(--urgent); font-weight: 700; }

/* eligibility callout row */
.elig {
  margin-top: 9px; font-size: 0.56rem; border-radius: 8px; padding: 7px 9px;
  display: flex; align-items: center; gap: 7px;
}
.elig .e-ico { font-weight: 900; flex: none; }
.elig.ok { background: #eef6f0; border: 1px solid #cfe6d6; color: var(--success); }
.elig.blocked { background: #fbeae8; border: 1px solid #eecbc7; color: var(--brick); }
.elig b { font-weight: 800; }
.elig-alt { font-size: 0.52rem; color: var(--ink-mute); margin-top: 6px; padding-left: 2px; }

/* pipeline rows (Pipeline Tracker) */
.pl-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}
.pl-row:first-of-type { border-top: none; }
.pl-main { flex: 1; min-width: 0; }
.pl-name { font-size: 0.67rem; color: var(--heading); font-weight: 700; line-height: 1.25; }
.pl-funder { font-size: 0.5rem; color: var(--ink-mute); margin-top: 2px; }
.pl-status {
  flex: none; font-size: 0.5rem; font-weight: 700; padding: 3px 9px 3px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--card-2);
}
.pl-status::after { content: "▾"; font-size: 0.5rem; opacity: 0.6; }
.pl-status .st-dot { width: 5px; height: 5px; border-radius: 50%; flex: none; background: var(--ink-mute); }
.pl-status.active { color: var(--success); background: #eef6f0; border-color: #cfe6d6; }
.pl-status.active .st-dot { background: var(--success); }
.pl-status.draft { color: var(--amber-d); background: #fbf0db; border-color: #efd9ac; }
.pl-status.draft .st-dot { background: var(--amber); }
.pl-status.submit { color: var(--terra); background: #fbeeea; border-color: #ecccc4; }
.pl-status.submit .st-dot { background: var(--terra); }
.pl-status.watch { color: #4f6b7d; background: #eef2f5; border-color: #d4dee4; }
.pl-status.watch .st-dot { background: var(--slate); }
.pl-side { flex: none; text-align: right; min-width: 64px; }
.pl-amt { font-size: 0.66rem; color: var(--brick); font-weight: 700; }
.pl-due { font-size: 0.5rem; color: var(--ink-mute); margin-top: 3px; white-space: nowrap; }
.pl-due.soon { color: var(--amber-d); font-weight: 600; }
.pl-due.over { color: var(--urgent); font-weight: 700; }

/* two-up: a list panel + a side donut/evidence panel */
.app-twoup { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; align-items: start; }
.app-twoup .app-panel { margin: 0; }

/* alerts donut */
.donut-wrap { display: flex; align-items: center; gap: 11px; }
.donut {
  width: 62px; height: 62px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--urgent) 0 33%, var(--amber) 33% 58%, var(--slate) 58% 100%);
}
.donut::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--card); }
.donut-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 0.92rem; font-weight: 600; color: var(--heading); z-index: 1; }
.donut-legend { display: flex; flex-direction: column; gap: 5px; }
.leg { display: flex; align-items: center; gap: 6px; font-size: 0.52rem; color: var(--ink-soft); }
.leg .lg-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.leg.u .lg-dot { background: var(--urgent); }
.leg.s .lg-dot { background: var(--amber); }
.leg.w .lg-dot { background: var(--slate); }
.leg b { color: var(--heading); font-weight: 700; }

/* evidence mini-rows */
.ev-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 0.55rem; border-top: 1px solid var(--line-soft); }
.ev-row:first-child { border-top: none; }
.ev-row span { color: var(--ink-mute); }
.ev-row b { color: var(--heading); font-weight: 700; }

/* operations-module cards (dashboard hero) */
.mod-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.mod-card { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; box-shadow: var(--shadow-card); }
.mod-kicker { font-size: 0.45rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra); font-weight: 700; }
.mod-name { font-family: var(--serif); font-size: 0.82rem; color: var(--heading); margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mod-badge { font-size: 0.55rem; font-weight: 800; color: var(--brick); background: var(--active); border-radius: 6px; padding: 1px 6px; }
.mod-desc { font-size: 0.5rem; color: var(--ink-mute); margin-top: 5px; line-height: 1.3; }
.mod-link { font-size: 0.5rem; color: var(--brick); font-weight: 700; margin-top: 7px; }

.shot-caption {
  margin: 16px 4px 0; font-size: 0.86rem; color: var(--ink-mute); font-family: var(--serif);
  font-style: italic; text-align: center;
}
.shot-caption em { color: var(--brick); font-weight: 600; }
.hero-shot { position: relative; z-index: 1; }
.module-shot { position: relative; }

/* ── problem ── */
.problem { padding-top: 30px; }
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prob {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.prob-num {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--terra);
  display: inline-block; margin-bottom: 14px; letter-spacing: 0.04em;
}
.prob h3 { font-size: 1.22rem; margin-bottom: 10px; }
.prob p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ── solution / modules ── */
.solution { background: linear-gradient(180deg, transparent, rgba(245, 234, 214, 0.6), transparent); }
.module {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center;
  margin-bottom: 70px;
}
.module:last-child { margin-bottom: 0; }
.module.reverse .module-copy { order: 2; }
.module.reverse .module-shot { order: 1; }
.module-tag {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700;
  color: var(--terra); display: inline-block; margin-bottom: 10px;
}
.module-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.module-copy p { color: var(--ink-soft); margin: 0 0 18px; font-size: 1.02rem; }
.module-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.module-list li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 0.98rem; }
.module-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brick); font-weight: 800;
  background: rgba(159, 47, 39, 0.12); width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.66rem; margin-top: 2px;
}

/* ── why different ── */
.why-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; align-items: start; }
.why-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.why-card h3 { font-size: 1.32rem; margin-bottom: 12px; }
.why-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.98rem; }
.why-card p:last-child { margin-bottom: 0; }
.why-card.feature {
  background: linear-gradient(162deg, var(--brick), var(--brick-dd));
  border-color: var(--brick-dd); color: #f8e6df;
}
.why-card.feature h3 { color: #fff; font-size: 1.5rem; }
.why-card.feature p { color: #f3d9d1; }
.why-card.feature em { color: #ffd9b0; font-style: normal; font-weight: 600; }
.why-card.feature strong { color: #fff; }
.why-badge {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem;
  font-weight: 700; color: var(--brick); background: #ffe9d6;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 16px;
}
.why-proof { font-size: 0.9rem !important; color: #ffd9b0 !important; font-weight: 600; margin-top: 16px !important; }

/* ── proof ── */
.proof { text-align: center; }
.proof-inner { max-width: 820px; margin: 0 auto; position: relative; }
.quote-mark {
  font-family: var(--serif); font-size: 7rem; line-height: 0.5; color: var(--terra); opacity: 0.35;
  display: block; height: 48px;
}
.proof-quote {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35; font-weight: 500;
  color: var(--heading); margin: 0 0 24px;
}
.proof-quote em { color: var(--brick); font-style: italic; }
.proof-attr { color: var(--ink-mute); font-size: 0.95rem; letter-spacing: 0.02em; }

/* ── how it works ── */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: start; }
.step { text-align: center; padding: 0 18px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  background: var(--card); border: 1.5px solid var(--brick); color: var(--brick);
  box-shadow: var(--shadow-card);
}
.step h3 { font-size: 1.22rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
.step-line {
  height: 1.5px; background: repeating-linear-gradient(90deg, var(--terra) 0 8px, transparent 8px 16px);
  margin-top: 26px; min-width: 40px; align-self: start; opacity: 0.55;
}

/* ── pricing ── */
.pricing .section-head { margin-bottom: 36px; }
.price-card {
  max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 40px 40px 34px; box-shadow: var(--shadow-soft); position: relative;
  overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(159, 47, 39, 0.12), transparent 70%);
}
.price-flag {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem;
  font-weight: 700; color: var(--terra); background: rgba(179, 79, 67, 0.12);
  border: 1px solid rgba(179, 79, 67, 0.3); padding: 5px 13px; border-radius: 999px; margin-bottom: 24px;
}
.price-main { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.price-block { display: flex; flex-direction: column; }
.price-amt { font-family: var(--serif); font-size: 2.9rem; font-weight: 600; color: var(--heading); line-height: 1; letter-spacing: -0.02em; }
.price-amt span { font-size: 1.3rem; color: var(--ink-mute); }
.price-unit { font-size: 0.84rem; color: var(--ink-mute); margin-top: 8px; }
.price-plus { font-family: var(--serif); font-size: 1.8rem; color: var(--terra); }
.price-year1 { margin: 22px 0 24px; font-size: 1.05rem; color: var(--ink-soft); }
.price-year1 strong { color: var(--brick); font-family: var(--serif); font-size: 1.2rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.price-list li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 0.98rem; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brick); font-weight: 800;
  background: rgba(159, 47, 39, 0.12); width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.66rem;
}
.price-fine { margin: 18px 0 0; font-size: 0.86rem; color: var(--ink-mute); text-align: center; }

/* ── scan / cta ── */
.scan {
  background: linear-gradient(158deg, var(--brick), var(--brick-dd));
  max-width: none; margin: 40px 0 0; border-radius: 0;
  scroll-margin-top: 86px;
}
.scan-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 0.9fr; gap: 56px; align-items: start;
}
.scan h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.scan-copy { color: #f3d9d1; }
.scan-lede { font-size: 1.06rem; color: #f3d9d1; margin: 0 0 22px; }
.scan-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.scan-points li { position: relative; padding-left: 28px; color: #f8e6df; font-size: 0.98rem; }
.scan-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brick); font-weight: 800;
  background: #ffd9b0; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.66rem;
}

.scan-form, .scan-success {
  background: var(--card); border-radius: 18px; padding: 30px 28px; box-shadow: 0 30px 60px -30px rgba(60, 28, 20, 0.5);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--heading); margin-bottom: 7px; letter-spacing: 0.01em; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #b6a68f; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(159, 47, 39, 0.16);
}
.field.invalid input, .field.invalid textarea { border-color: var(--urgent); box-shadow: 0 0 0 3px rgba(184, 50, 42, 0.14); }
.field-error {
  display: none;
  margin: 7px 0 0;
  color: var(--urgent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}
.field.invalid .field-error { display: block; }
.form-fine { font-size: 0.8rem; color: var(--ink-mute); margin: 14px 0 0; text-align: center; line-height: 1.45; }
.form-fine strong { color: var(--heading); font-weight: 800; }
.form-fine.error { color: var(--urgent); font-weight: 700; }

/* ── global keyboard focus (a11y): visible ring for links/buttons/anything
   reachable by Tab. Inputs keep their stronger custom focus ring above. ── */
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; border-radius: 4px; }
/* skip-to-content: off-screen until keyboard-focused, then slides into view */
.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 1000;
  background: var(--brick); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 10px; font-family: var(--sans); font-weight: 600;
  font-size: 0.9rem; text-decoration: none; transition: top 0.16s ease;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: -3px; }

.scan-success { text-align: center; padding: 48px 32px; }
.success-ring {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; color: #fff;
  background: var(--success); box-shadow: 0 0 0 8px rgba(47, 124, 71, 0.16);
}
.scan-success h3 { font-size: 1.5rem; margin-bottom: 12px; }
.scan-success p { color: var(--ink-soft); margin: 0; }
.scan-success strong { color: var(--brick); }

/* ── faq ── */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px; font-family: var(--serif); font-size: 1.18rem;
  font-weight: 500; color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--terra); font-weight: 400;
  transition: transform 0.2s ease; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 4px 24px; }
.faq-body p { margin: 0; color: var(--ink-soft); font-size: 1rem; max-width: 700px; }

/* ── footer ── */
.site-foot { position: relative; z-index: 1; background: var(--paper-2); border-top: 1px solid var(--line); }
.foot-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 28px 26px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-line { flex: 1; min-width: 240px; color: var(--ink-mute); font-size: 0.92rem; margin: 0; }
.foot-fine {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px 34px; color: var(--ink-mute);
  font-size: 0.8rem; border-top: 1px solid var(--line-soft); padding-top: 18px;
}
.mobile-scan-cta { display: none; }

/* ── reveal animation ── */
/* Default VISIBLE so no-JS visitors, crawlers, or a thrown app.js still see all
   content — the #1 conversion sample lives below the hero. app.js adds .js-anim to
   arm the hidden-start only when IntersectionObserver is available (CSP-safe, no
   inline script). prefers-reduced-motion below keeps everything visible. (Part B.) */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .hero-rings { display: none; }
  .prob-grid, .why-grid, .sample-grid { grid-template-columns: 1fr; }
  .privacy-inner { flex-direction: column; gap: 16px; padding: 28px 24px; }
  .module, .module.reverse .module-copy, .module.reverse .module-shot { grid-template-columns: 1fr; order: 0; }
  .module { gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step-line { display: none; }
  .scan-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .mobile-menu { display: block; }
}
@media (max-width: 520px) {
  body { padding-top: 60px; padding-bottom: 68px; }
  .nav { gap: 8px; padding: 12px 14px; }
  .brand { gap: 8px; }
  .brand-word { font-size: 1.12rem; }
  .nav .btn-sm { display: none; }
  .mobile-menu summary { padding: 7px 11px; font-size: 0.8rem; }
  .band { padding: 56px 20px; }
  .scan { padding-top: 38px; padding-bottom: 44px; scroll-margin-top: 70px; }
  .scan-inner { gap: 22px; }
  .scan h2 { margin-bottom: 12px; }
  .scan-lede { font-size: 1rem; line-height: 1.48; margin-bottom: 0; }
  .scan-points { display: none; }
  .scan-form, .scan-success { padding: 24px 22px; border-radius: 16px; }
  .field { margin-bottom: 14px; }
  .field input, .field textarea { padding: 10px 13px; }
  .field textarea { min-height: 90px; }
  .form-fine { font-size: 0.74rem; margin-top: 10px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .price-card { padding: 30px 24px; }
  .price-main { gap: 16px; }
  .app-twoup { grid-template-columns: 1fr; }
  .app-side { width: 110px; }
  /* Compact corner pill (not a full-width bar) — hugs the bottom-right so it
     never covers card content as you scroll; still auto-hides over the hero +
     #scan CTAs below. Min 44px tap target; clears the iOS home indicator. */
  .mobile-scan-cta {
    position: fixed;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    z-index: 50;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: 999px;
    background: var(--brick-d);
    color: #fffaf4;
    box-shadow: 0 10px 24px -10px rgba(60, 28, 20, 0.7);
    padding: 11px 18px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
  }
  .scan-visible .mobile-scan-cta { display: none; }
  /* While the hero's own CTA is on screen, suppress the sticky bar so the two
     don't stack at the top of the page (toggled by app.js heroCtaObserver). */
  .hero-cta-visible .mobile-scan-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Must also override the .js-anim hidden-start (higher specificity), or
     reduced-motion users WITH js still get blank-until-scroll. */
  .reveal,
  .js-anim .reveal,
  .js-anim .reveal.in { opacity: 1; transform: none; transition: none; }
  .hero-rings span { animation: none; }
  * { scroll-behavior: auto; }
}

/* ── No-login sample (Part B: see real value before the form) ───────── */
.sample-sub { margin-top: 14px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; max-width: 780px; }
.sample-sub em { font-style: italic; color: var(--brick); font-weight: 600; }
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.sample-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 22px 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
}
.sample-card.gated { border-color: #ecc8c4; background: #fff8f6; }
.sc-head { display: flex; gap: 13px; align-items: flex-start; }
.sc-score {
  flex: none; width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.22rem; border: 1px solid;
}
.sc-score.ok { background: #e8f6e7; color: var(--success); border-color: #b9dec1; }
.sc-score.warn { background: #fff0d1; color: var(--amber-d); border-color: #f0d7a9; }
.sc-score.gate { background: #f7e2e0; color: var(--brick); border-color: #ecc8c4; }
.sc-id h3 { font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; color: var(--heading); margin: 0; }
.sc-funder { font-size: 0.82rem; color: var(--ink-mute); margin-top: 4px; }
.sc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.s-badge { font-size: 0.76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.s-badge.ok { background: #e8f6e7; color: var(--success); border-color: #b9dec1; }
.s-badge.warn { background: #fff0d1; color: var(--amber-d); border-color: #f0d7a9; }
.s-badge.alert { background: #fdecea; color: var(--urgent); border-color: #f1c4bf; }
.s-badge.ghost { background: transparent; color: var(--ink-mute); border-color: var(--line); }
.sc-reason { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; margin: 0 0 14px; flex: 1; }
.sc-reason strong { color: var(--heading); }
.sc-src { font-size: 0.8rem; color: var(--terra); font-weight: 600; margin: 0; }
.sample-card.gated .sc-src { color: var(--ink-mute); font-weight: 500; font-style: italic; }

/* Hero fit-card preview — a compact variant of the sample cards, rendered inside
   the hero device frame (replaces the old dashboard screenshot). */
.device-body.hero-fit { padding: 14px; display: grid; gap: 12px; background: var(--paper); }
.hero-shot .hero-card { padding: 14px 15px; border-radius: 12px; box-shadow: none; }
.hero-shot .hero-card .sc-head { gap: 11px; }
.hero-shot .hero-card .sc-score { width: 40px; height: 40px; border-radius: 9px; font-size: 1.02rem; }
.hero-shot .hero-card .sc-id h3 { font-size: 0.93rem; }
.hero-shot .hero-card .sc-funder { font-size: 0.73rem; margin-top: 3px; }
.hero-shot .hero-card .sc-badges { margin: 10px 0 9px; gap: 6px; }
.hero-shot .hero-card .s-badge { font-size: 0.69rem; padding: 3px 8px; }
.hero-shot .hero-card .sc-reason { font-size: 0.81rem; line-height: 1.45; margin: 0; flex: none; }
.sample-foot { margin-top: 34px; text-align: center; }
.proof-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin-bottom: 24px; }
.proof-stats span { font-size: 0.92rem; color: var(--ink-soft); }
.proof-stats strong { font-family: var(--serif); color: var(--brick); font-size: 1.12rem; }
.sample-fine { margin: 16px auto 0; font-size: 0.82rem; color: var(--ink-mute); max-width: 640px; }

/* ── Privacy headline (Part B: data control, not fine print) ───────── */
.privacy-inner {
  display: flex; gap: 26px; align-items: flex-start; max-width: 940px; margin: 0 auto;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 20px;
  padding: 38px 42px; box-shadow: var(--shadow-card);
}
.privacy-icon { flex: none; color: var(--brick); margin-top: 4px; }
.privacy-inner h2 { font-size: 1.72rem; margin: 6px 0 12px; }
.privacy-inner p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.62; }

/* ── final mobile pass ──
   These live after the late-loaded sample/privacy component rules so the mobile
   grid and spacing overrides win in the cascade. */
@media (max-width: 900px) {
  .sample-grid { grid-template-columns: minmax(0, 1fr); }
  .privacy-inner { flex-direction: column; gap: 16px; padding: 28px 24px; }
}

@media (max-width: 520px) {
  body { padding-bottom: 76px; } /* reserve room for the kept sticky scan CTA so it never hides content */
  .band { padding: 46px 20px; }
  .section-head { margin-bottom: 28px; }

  .hero {
    gap: 28px;
    padding: 36px 20px 46px;
  }
  .hero-shot { display: none; }
  .hero h1 { margin-bottom: 18px; }
  .lede { font-size: 1.04rem; line-height: 1.56; margin-bottom: 24px; }
  .hero-trust { margin-top: 20px; }

  .sample { padding-top: 44px; }
  .sample-sub { font-size: 0.98rem; line-height: 1.5; }
  .sample-grid { gap: 16px; }
  .sample-card { padding: 18px 18px 17px; }
  .sample-foot { margin-top: 26px; }
  .proof-stats {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    text-align: left;
  }
  .proof-stats span { font-size: 0.88rem; }

  .module {
    gap: 22px;
    margin-bottom: 52px;
  }
  .module-copy h3 { font-size: 1.55rem; }
  .module-copy p { font-size: 0.98rem; }
  .module-list { gap: 8px; }
  .module-shot .device { border-radius: 12px; }

  .why-grid { gap: 16px; }
  .why-card { padding: 24px 22px; border-radius: 16px; }
  .privacy-inner { padding: 26px 22px; border-radius: 16px; }
  .proof { padding-top: 38px; padding-bottom: 38px; }
  .steps { gap: 24px; }
  .price-card { padding: 26px 22px; }

  /* Keep the sticky "Free funder-fit scan" CTA visible on phones (primary
     conversion nudge); the body padding-bottom above reserves room so it never
     hides content, and it already auto-hides over the hero + #scan CTAs. */
}
