/* Funding Sniper AI — stylesheet. Clean, professional, light. One coherent file. */

:root {
  --bg: #ffffff;
  --bg-2: #f7f8f8;
  --bg-3: #f0f2f1;
  --surface: #ffffff;
  --ink: #101613;
  --ink-2: #3f4c46;
  --muted: #6b756f;
  --faint: #939c96;
  --line: #e4e7e5;
  --line-2: #d6dbd8;
  --accent: #0b6b43;
  --accent-hover: #095a38;
  --accent-soft: #e8f3ee;
  --accent-line: #b9d8c9;
  --gold: #9a6b12;
  --danger: #b3261e;
  --danger-soft: #fbeceb;
  --ok: #0b6b43;
  --wrap: 1080px;
  --pad: clamp(20px, 5vw, 40px);
  --r: 10px;
  --shadow: 0 1px 2px rgba(16, 22, 19, 0.04), 0 4px 16px rgba(16, 22, 19, 0.05);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -0.018em; line-height: 1.18; color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--bg-3); padding: 1px 5px; border-radius: 4px; color: var(--accent-hover); }

.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; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: 8px;
  font-weight: 550; font-size: 14.5px; text-decoration: none; cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--faint); background: var(--bg-2); }

.link-button { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 550; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-button:hover { color: var(--accent-hover); }
.link-arrow { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 550; font-size: 14px; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 2px; }
.eyebrow { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 620; letter-spacing: 0.06em; text-transform: uppercase; }
.fine { margin: 0; color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.wordmark-text { font-size: 14.5px; font-weight: 640; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark-text strong { font-weight: 640; }
.wordmark-text i { color: var(--muted); font-style: normal; font-weight: 500; }

.primary-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.primary-nav > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border: 0; border-radius: 7px;
  background: none; color: var(--ink-2);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}
.primary-nav > a:hover, .nav-trigger:hover { color: var(--ink); background: var(--bg-2); }
body[data-page="programs"] .primary-nav a[data-nav="programs"],
body[data-page="pricing"] .primary-nav a[data-nav="pricing"],
body[data-page="about"] .primary-nav a[data-nav="about"],
body[data-page="investors"] .primary-nav a[data-nav="investors"] { color: var(--accent); }
.nav-trigger svg { opacity: 0.5; transition: transform 160ms ease; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-group { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 110;
  min-width: 290px; padding: 6px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
}
.nav-menu.open { opacity: 1; visibility: visible; transform: none; }
.nav-menu a, .nav-menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 10px; border: 0; border-radius: 7px;
  background: none; color: var(--ink); text-decoration: none;
  font-size: 14px; cursor: pointer;
}
.nav-menu a:hover, .nav-menu button:hover { background: var(--bg-2); }
.nav-menu a strong { display: block; font-weight: 560; }
.nav-menu a span { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.account-menu { position: relative; }
.account-button {
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 550; cursor: pointer;
}
.account-button:hover { background: var(--bg-2); }
.account-dropdown { left: auto; right: 0; min-width: 180px; }
.header-cta { height: 36px; min-height: 0; padding: 0 15px; font-size: 13px; }

.menu-button { display: none; width: 38px; height: 38px; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); cursor: pointer; }
.menu-button span { width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform 150ms, opacity 150ms; }
body.nav-open .menu-button span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .menu-button span:nth-child(2) { opacity: 0; }
body.nav-open .menu-button span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .menu-button { display: flex; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: 64px 0 auto 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 12px var(--pad) 20px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
  }
  body.nav-open .primary-nav { transform: none; opacity: 1; visibility: visible; }
  .primary-nav > a, .nav-trigger { padding: 12px 11px; font-size: 15px; }
  .nav-menu { position: static; min-width: 0; padding: 2px 0 4px 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-menu.open { display: block; }
  .nav-menu a span { display: none; }
}

/* ---------------------------------------------------------------- layout bands */

main { display: block; }
.band { padding: clamp(52px, 7vw, 88px) var(--pad); }
.band-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.band-inner { max-width: var(--wrap); margin: 0 auto; }

.section-heading { max-width: 620px; margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { font-size: clamp(24px, 3vw, 33px); }
.section-heading > p { margin-top: 12px; color: var(--muted); font-size: 16px; }

.page-hero {
  padding: clamp(48px, 6vw, 76px) var(--pad) clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.page-hero .band-inner { max-width: var(--wrap); }
.page-hero .eyebrow { display: block; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 46px); max-width: 17ch; }
.lede { max-width: 62ch; margin-top: 14px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; }
.page-hero .button { margin-top: 22px; }

.cta-band { padding: clamp(52px, 7vw, 80px) var(--pad); text-align: center; border-top: 1px solid var(--line); background: var(--bg-2); }
.cta-inner { max-width: 46ch; margin: 0 auto; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin: 10px 0 22px; color: var(--muted); }

/* ---------------------------------------------------------------- home hero */

.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) var(--pad);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 56px); align-items: center;
}
.hero-copy .eyebrow { display: block; margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p { margin-top: 18px; max-width: 52ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-fine { margin-top: 16px; color: var(--faint); font-size: 13px; max-width: 46ch; }
.hero-checks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-checks li { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 13.5px; }
.hero-checks b { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; }

/* hero-right: a restrained product panel, not decoration */
.target-card {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden; padding: 22px;
}
.target-card .logo-img,
.target-glow, .target-status { display: none; }
.hero-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hero-panel-head strong { color: var(--accent); font-size: 20px; font-weight: 640; }
.hero-panel-head span { color: var(--muted); font-size: 12px; }
.hero-panel-list { list-style: none; margin: 12px 0 0; padding: 0; }
.hero-panel-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.hero-panel-list li:last-child { border-bottom: 0; }
.hero-panel-list b { color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------- home: cards */

.sample-card { margin-top: 28px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.sample-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 4px 10px rgba(16,22,19,0.06), 0 14px 34px rgba(16,22,19,0.08); }
.sample-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sample-big { display: block; font-size: clamp(22px, 3.2vw, 30px); font-weight: 640; color: var(--accent); letter-spacing: -0.02em; }
.sample-label { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.sample-list { list-style: none; margin: 20px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.sample-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; }
.sample-list li + li { border-top: 1px solid var(--line); }
.sample-list strong { display: block; font-size: 14px; font-weight: 560; }
.sample-list span { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }
.sample-list b { color: var(--accent); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.sample-ruled { margin-top: 13px; color: var(--muted); font-size: 13px; }
.sample-card > .button { margin-top: 18px; }

.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tri-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.tri-grid article:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 10px 26px rgba(16,22,19,0.08); }
.tri-num { color: var(--accent); font-size: 12px; font-weight: 620; letter-spacing: 0.08em; display: inline-block; transition: transform 160ms ease; }
.tri-grid article:hover .tri-num { transform: scale(1.15); }
.tri-grid h3 { margin: 10px 0 7px; font-size: 18px; }
.tri-grid p { color: var(--muted); font-size: 14px; }

.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trust-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.trust-grid article:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 10px 26px rgba(16,22,19,0.08); }
.trust-grid h3 { margin-bottom: 7px; font-size: 15.5px; color: var(--ink); }
.trust-grid p { color: var(--muted); font-size: 14px; }

/* two-product hub */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.hub-card {
  display: flex; flex-direction: column; padding: 28px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.hub-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 2px 4px rgba(16,22,19,0.05), 0 8px 28px rgba(16,22,19,0.07); }
.hub-card .eyebrow { margin-bottom: 12px; }
.hub-card h2 { font-size: 22px; }
.hub-card p { margin: 10px 0 16px; color: var(--muted); font-size: 14.5px; flex: 1; }
.hub-card .link-arrow { margin: 0; }

/* ---------------------------------------------------------------- how it works */

.steps-detailed { display: grid; gap: 36px; }
.steps-detailed article { max-width: 68ch; display: grid; gap: 9px; }
.step-tag { color: var(--accent); font-size: 12px; font-weight: 620; letter-spacing: 0.06em; text-transform: uppercase; }
.steps-detailed h2 { font-size: clamp(21px, 2.6vw, 27px); }
.steps-detailed p { color: var(--muted); }
.steps-detailed strong { color: var(--ink); font-weight: 560; }
.steps-detailed em { color: var(--ink-2); font-style: italic; }
.check-list { margin: 4px 0 0; padding-left: 20px; color: var(--muted); }
.check-list li { margin-bottom: 7px; }

/* ---------------------------------------------------------------- FAQ */

.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); overflow: hidden; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { padding: 15px 16px; font-size: 15px; font-weight: 550; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 16px; color: var(--accent); font-weight: 600; }
.faq details[open] summary::before { content: "\2013"; }
.faq p { padding: 0 16px 15px 32px; color: var(--muted); font-size: 14px; }
.faq a { color: var(--accent); }

/* ---------------------------------------------------------------- directory (programs + investors) */

.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.filter-bar button {
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--surface); color: var(--muted);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: color 120ms, border-color 120ms, background 120ms;
}
.filter-bar button:hover { color: var(--ink); }
.filter-bar button.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.program-card { display: grid; gap: 6px; align-content: start; padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.program-card.is-closed { opacity: 0.55; }
.program-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.program-card-head h3 { font-size: 15px; line-height: 1.35; font-weight: 560; }
.program-badge { flex-shrink: 0; padding: 2px 8px; border: 1px solid var(--accent-line); border-radius: 6px; background: var(--accent-soft); color: var(--accent-hover); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.program-badge.badge-closed { border-color: var(--line-2); color: var(--muted); background: none; }
.program-admin { color: var(--muted); font-size: 12px; }
.program-worth { font-size: 13px; color: var(--ink-2); }
.program-worth b { color: var(--accent); font-weight: 600; }
.program-elig { color: var(--muted); font-size: 13px; }
.program-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; padding-top: 9px; border-top: 1px solid var(--line); }
.program-verified { color: var(--faint); font-size: 11px; }
.program-card-foot a { color: var(--accent); font-size: 12px; font-weight: 550; text-decoration: none; }
.catalog-disclaimer { margin-top: 22px; max-width: 66ch; }

/* ---------------------------------------------------------------- pricing */

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.plan { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.plan.is-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan.is-founding { border-color: var(--accent-line); }
.plan-tag { color: var(--muted); font-size: 12px; font-weight: 550; letter-spacing: 0.02em; text-transform: uppercase; }
.plan.is-founding .plan-tag { color: var(--gold); }
.plan-price { margin: 10px 0 5px; font-size: 30px; font-weight: 640; letter-spacing: -0.02em; }
.plan-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-sub { min-height: 48px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.plan ul { list-style: none; flex: 1; margin: 0 0 18px; padding: 0; }
.plan li { position: relative; margin: 7px 0; padding-left: 20px; color: var(--ink-2); font-size: 13.5px; }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------- prose */

.prose { max-width: 68ch; }
.prose h2 { margin: 32px 0 11px; font-size: 21px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 13px; color: var(--muted); }
.prose em { color: var(--ink-2); font-style: italic; }
.prose a { color: var(--accent); }

/* ---------------------------------------------------------------- contact */

.contact-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 42px; align-items: start; }
.contact-aside h3 { margin-bottom: 5px; font-size: 14px; color: var(--ink); }
.contact-aside h3:not(:first-child) { margin-top: 20px; }
.contact-aside p { color: var(--muted); font-size: 14px; }
.contact-aside a { color: var(--accent); }

/* ---------------------------------------------------------------- forms */

.stack-form { display: grid; gap: 13px; max-width: 440px; }
.contact-form { max-width: none; }
.field { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field input, .field textarea, .field select,
.intake-grid input, .intake-grid select, .note-add input, .reply-capture input {
  padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-size: 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field :focus, .intake-grid :focus, .note-add input:focus, .reply-capture input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-error { min-height: 18px; color: var(--danger); font-size: 13px; }
.form-message { min-height: 22px; color: var(--accent); font-size: 14px; }

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad) 26px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
}
.footer-brand { max-width: 34ch; }
.footer-brand .wordmark { margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-size: 13px; }
.footer-brand .footer-note { margin-top: 9px; color: var(--faint); font-size: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer h4 { margin-bottom: 2px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.site-footer nav a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 16px var(--pad);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--faint); font-size: 12px;
}

/* ---------------------------------------------------------------- modals */

.modal {
  width: min(460px, calc(100vw - 28px)); padding: 26px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 8px 40px rgba(16, 22, 19, 0.18);
}
.modal::backdrop { background: rgba(16, 22, 19, 0.35); backdrop-filter: blur(2px); }
.modal-close { float: right; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.modal .eyebrow { display: block; margin-bottom: 6px; }
.modal h2 { font-size: 23px; }
.modal-sub { margin: 6px 0 18px; color: var(--muted); font-size: 14px; }
.modal #authSwitch { margin-top: 12px; }
.cart-price { display: flex; align-items: baseline; gap: 10px; margin: 5px 0 12px; }
.cart-price strong { font-size: 32px; font-weight: 640; }
.cart-price span { color: var(--muted); font-size: 12px; }
.cart-features { list-style: none; margin: 0 0 14px; padding: 0; }
.cart-features li { position: relative; padding: 5px 0 5px 20px; color: var(--ink-2); font-size: 14px; }
.cart-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); }

/* ---------------------------------------------------------------- support chat + toast */

.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--surface); color: var(--accent); font-size: 20px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow);
}
.chat-launcher:hover { background: var(--bg-2); }
.chat-panel {
  position: fixed; right: 20px; bottom: 78px; z-index: 119;
  width: min(360px, calc(100vw - 28px)); height: min(520px, calc(100vh - 130px));
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  box-shadow: 0 8px 40px rgba(16, 22, 19, 0.18);
  opacity: 0; pointer-events: none; transform: translateY(10px); transform-origin: bottom right;
  transition: 150ms ease;
}
.chat-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.chat-head strong { font-size: 14px; font-weight: 560; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.chat-head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chat-head button { border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.chat-messages { display: flex; flex-direction: column; gap: 9px; overflow: auto; padding: 15px; }
.bot-message, .user-message { max-width: 86%; padding: 9px 11px; border-radius: 10px; font-size: 14px; white-space: pre-wrap; }
.bot-message { align-self: flex-start; background: var(--bg-2); color: var(--ink-2); }
.user-message { align-self: flex-end; background: var(--accent); color: #fff; }
.thinking { font-style: italic; color: var(--muted); }
.chat-form { display: grid; grid-template-columns: 1fr 40px; gap: 7px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 40px; max-height: 100px; resize: none; padding: 9px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.chat-form button { border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; }

/* ---------------------------------------------------------------- founder <-> investor inbox (floating) */

.inbox-launcher {
  position: fixed; left: 20px; bottom: 20px; z-index: 130;
  width: 58px; height: 58px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #12a866 100%);
  color: #fff; cursor: pointer;
  box-shadow: 0 6px 20px rgba(11, 107, 67, 0.35), 0 2px 6px rgba(11, 107, 67, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.inbox-launcher:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 26px rgba(11, 107, 67, 0.4), 0 3px 8px rgba(11, 107, 67, 0.28); }
.inbox-launcher.is-open { transform: scale(0.94); }
.inbox-launcher.has-unread::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0.55; pointer-events: none;
  animation: inbox-ring 2200ms ease-out infinite;
}
@keyframes inbox-ring { 0% { transform: scale(0.85); opacity: 0.55; } 100% { transform: scale(1.35); opacity: 0; } }
.inbox-badge {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #e0483e; color: #fff;
  font-size: 11px; font-weight: 700; border: 2px solid var(--bg);
  animation: inbox-pop 220ms ease;
}
@keyframes inbox-pop { from { transform: scale(0.4); } to { transform: scale(1); } }

.inbox-panel {
  position: fixed; left: 20px; bottom: 90px; z-index: 129;
  width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: var(--surface);
  box-shadow: 0 20px 60px rgba(16, 22, 19, 0.22), 0 4px 16px rgba(16, 22, 19, 0.12);
  opacity: 0; pointer-events: none; transform: translateY(14px) scale(0.97); transform-origin: bottom left;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(.2, .9, .3, 1.2);
}
.inbox-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.inbox-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-shrink: 0;
  padding: 18px 18px 16px; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #12a866 100%);
}
.inbox-head strong { display: block; font-size: 15.5px; font-weight: 640; }
.inbox-head small { display: block; margin-top: 3px; font-size: 11.5px; opacity: 0.85; font-weight: 500; line-height: 1.3; }
.inbox-close { border: 0; background: rgba(255, 255, 255, 0.18); color: #fff; width: 26px; height: 26px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.inbox-close:hover { background: rgba(255, 255, 255, 0.3); }
.inbox-body { flex: 1; overflow-y: auto; background: var(--bg-2); }
.inbox-loading { padding: 24px; color: var(--muted); font-size: 13.5px; text-align: center; }
.inbox-empty { padding: 30px 22px; text-align: center; color: var(--muted); }
.inbox-empty p:first-child { color: var(--ink); font-weight: 600; margin-bottom: 6px; }

.inbox-section-label { padding: 12px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.inbox-paywall { margin: 12px; padding: 20px 18px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); text-align: center; }
.inbox-paywall .inbox-lock { display: block; font-size: 22px; margin-bottom: 8px; }
.inbox-paywall p { margin: 0 0 5px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.inbox-paywall strong { color: var(--accent-hover); }
.inbox-paywall .button { display: flex; align-items: center; justify-content: center; margin-top: 12px; width: 100%; font-size: 13px; }
.inbox-match-row { cursor: default; }
.inbox-request-btn { flex-shrink: 0; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 6px 13px; cursor: pointer; transition: background 120ms; }
.inbox-request-btn:hover { background: var(--accent-hover); }

.inbox-list { display: flex; flex-direction: column; padding: 8px; gap: 4px; }
.inbox-row {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 10px;
  border: 0; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  transition: background 120ms ease;
}
.inbox-row:hover { background: var(--surface); }
.inbox-row.is-unread .inbox-row-main strong { color: var(--accent-hover); }
.inbox-avatar {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-line));
  color: var(--accent-hover); font-weight: 700; font-size: 15px;
}
.inbox-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.inbox-row-main strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row-sub { font-size: 12px; color: var(--muted); }
.inbox-row.is-unread .inbox-row-sub { color: var(--accent); font-weight: 600; }
.inbox-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.inbox-thread { display: flex; flex-direction: column; height: 100%; }
.inbox-back { align-self: flex-start; margin: 10px 14px 0; border: 0; background: none; color: var(--accent); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.inbox-back:hover { color: var(--accent-hover); }
.inbox-thread-name { margin: 2px 14px 6px; font-size: 14px; font-weight: 640; color: var(--ink); }
.inbox-msgs { flex: 1; overflow-y: auto; padding: 6px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.inbox-msg { position: relative; max-width: 78%; padding: 9px 40px 16px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; color: var(--ink-2); white-space: pre-wrap; }
.inbox-msg time { position: absolute; right: 10px; bottom: 4px; font-size: 10px; color: var(--faint); white-space: nowrap; }
.inbox-msg.mine { align-self: flex-end; margin-left: auto; background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #fff; border-color: transparent; }
.inbox-msg.mine time { color: rgba(255, 255, 255, 0.75); }

.inbox-composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); flex-shrink: 0; }
.inbox-composer textarea { flex: 1; resize: none; max-height: 90px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg-2); font: inherit; font-size: 13.5px; }
.inbox-composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inbox-composer button { flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 120ms; }
.inbox-composer button:hover { background: var(--accent-hover); }

@media (max-width: 480px) {
  .inbox-panel { left: 10px; right: 10px; width: auto; bottom: 84px; }
  .inbox-launcher { left: 14px; bottom: 14px; }
}

#toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 200;
  max-width: min(480px, 90vw); padding: 10px 17px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--ink); color: #fff;
  box-shadow: 0 8px 30px rgba(16, 22, 19, 0.25);
  opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: 150ms ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================================================================ workspace */

.workspace { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--pad) 64px; min-height: 68vh; }
.workspace-locked { max-width: 46ch; margin: 44px auto; text-align: center; }
.workspace-locked .eyebrow { display: block; margin-bottom: 12px; }
.workspace-locked h1 { font-size: clamp(26px, 3.6vw, 34px); }
.workspace-locked .lede { margin: 12px auto 0; }
.workspace-locked .button { margin-top: 20px; }

.dashboard { display: grid; grid-template-columns: 208px 1fr; gap: 28px; align-items: start; }
.dashboard-side { position: sticky; top: 84px; display: grid; gap: 12px; }
.dashboard-user { padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.dashboard-user strong { display: block; font-size: 14px; font-weight: 560; }
.dashboard-user span { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--accent); }
.dashboard-tabs { display: grid; gap: 2px; }
.dashboard-group-label { margin: 10px 0 2px; padding-left: 11px; font-size: 10.5px; font-weight: 620; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.dashboard-tab { text-align: left; padding: 8px 11px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.dashboard-tab:hover { color: var(--ink); background: var(--bg-2); }
.dashboard-tab[aria-selected="true"] { border-color: var(--line); background: var(--bg-2); color: var(--accent); }
.dashboard-main { min-width: 0; }
.dashboard-main h2 { margin-bottom: 16px; font-size: 20px; }
.dashboard-panel { min-width: 0; }

.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 20px; }
.stat { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.stat .label { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value { margin-top: 3px; font-size: 18px; font-weight: 640; color: var(--accent); }

.past-scans-wrap { margin-top: 26px; max-width: 560px; }
.past-scans-wrap h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 9px; }
.past-scans { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.past-scan-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; text-align: left; color: var(--ink); transition: background 120ms ease; }
.past-scans li:last-child .past-scan-row { border-bottom: 0; }
.past-scan-row:hover { background: var(--bg-2); }
.past-scan-when { color: var(--muted); font-size: 12.5px; flex-shrink: 0; width: 92px; }
.past-scan-estimate { flex: 1; font-size: 13.5px; font-weight: 550; color: var(--ink); }
.past-scan-row span[aria-hidden] { color: var(--accent); }

.notif-wrap { position: relative; }
.notif-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 550; cursor: pointer; }
.notif-button:hover { background: var(--bg-2); }
.notif-badge { min-width: 17px; height: 17px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; }
.notif-panel { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 60; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.notif-item { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--bg-2); }
.notif-item.is-unseen { border-left: 2px solid var(--accent); }
.notif-item strong { display: block; font-weight: 560; }
.notif-item.awarded strong { color: var(--accent); }
.notif-item span { color: var(--muted); font-size: 11px; }
.notif-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }

.intake-form { display: grid; gap: 16px; max-width: 720px; }
.intake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 15px; }
.intake-grid label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.intake-fieldset { display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; }
.intake-fieldset legend { padding: 0 5px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.intake-fieldset .check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.intake-fieldset .check input { width: 14px; height: 14px; accent-color: var(--accent); }
.intake-form > label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.intake-form textarea { min-height: 88px; padding: 10px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.doc-attach { display: grid; gap: 5px; }
.doc-attach select { padding: 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); }

.result { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 9px; background: var(--surface); color: var(--ink-2); font-size: 14px; }
.result strong { color: var(--ink); }
.result h1, .result h2, .result h3 { color: var(--ink); font-size: 15px; margin: 15px 0 5px; }
.result p, .result ul, .result ol { margin: 0 0 11px; }
.result ul, .result ol { padding-left: 19px; }
.result li { margin-bottom: 4px; }
.result hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.match-results { margin-top: 18px; display: grid; gap: 11px; }
.match-results h3 { font-size: 16px; }
.match-card { display: grid; gap: 7px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.match-card.is-ineligible { opacity: 0.6; }
.match-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.match-card-top strong { font-size: 14.5px; font-weight: 560; }
.match-value { color: var(--accent); font-weight: 640; font-size: 14px; white-space: nowrap; }
.match-card p { color: var(--muted); font-size: 13px; }
.match-meta { color: var(--muted); font-size: 12px; }
.match-card a { color: var(--accent); font-size: 13px; text-decoration: none; }
.match-card details { margin-top: 2px; }
.match-card summary { cursor: pointer; }

.verdict-pill, .status-pill {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-hover);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
}
.verdict-pill.likely, .status-pill.filed, .status-pill.acknowledged { color: var(--gold); border-color: #e3cfa5; background: #faf3e6; }
.verdict-pill.insufficient_data { color: var(--muted); border-color: var(--line-2); background: none; }
.status-pill.info_requested { color: var(--danger); border-color: #e9c4c1; background: var(--danger-soft); }
.status-pill.awarded { color: #fff; background: var(--accent); border-color: var(--accent); }
.status-pill.with_filer { color: var(--gold); border-color: #e3cfa5; background: #faf3e6; }
.status-pill.declined, .status-pill.withdrawn { color: var(--muted); border-color: var(--line-2); background: none; }

.pipeline-board { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pipeline-stat { flex: 1 1 110px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.pipeline-stat .label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.pipeline-stat .value { margin-top: 2px; font-size: 17px; font-weight: 640; color: var(--accent); }
.applications-list { display: grid; gap: 9px; }
.application-card { display: grid; gap: 7px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; transition: border-color 120ms; }
.application-card:hover { border-color: var(--accent-line); }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.application-card strong { font-size: 14px; font-weight: 560; }
.app-sub { color: var(--muted); font-size: 12px; }

.application-detail { display: grid; gap: 16px; }
.back-link { justify-self: start; }
.detail-head h3 { font-size: 19px; }
.detail-head .detail-meta { margin-top: 5px; color: var(--muted); font-size: 13px; }
.detail-head .detail-meta a { color: var(--accent); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-actions .button { min-height: 36px; padding: 7px 13px; font-size: 13px; }
.draft-editor { display: grid; gap: 9px; }
.draft-editor label { font-size: 13px; color: var(--muted); }
.draft-editor strong { color: var(--ink); }
.draft-editor textarea { min-height: 300px; padding: 13px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink-2); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.draft-hint { color: var(--muted); font-size: 12px; }
.note-add { display: grid; gap: 5px; }
.note-add label { font-size: 13px; color: var(--muted); }
.note-add strong { color: var(--ink); }
.note-add input { width: 100%; }

.timeline { display: grid; margin: 9px 0 0 4px; padding-left: 15px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding: 7px 0; }
.timeline-item::before { content: ""; position: absolute; left: -22px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline-item.is-note::before { background: var(--faint); }
.timeline-item .t-detail { font-size: 13px; }
.timeline-item .t-date { font-size: 11px; color: var(--muted); }

.documents-list { display: grid; gap: 9px; }
.document-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.document-row strong { display: block; font-size: 14px; font-weight: 560; }
.document-row small { color: var(--muted); font-size: 12px; }
.doc-form .field-row { grid-template-columns: 1fr 1fr; }
.billing-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.billing-card .label { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.billing-card strong { font-size: 17px; color: var(--accent); }
.account-info { display: grid; gap: 13px; margin-bottom: 18px; }
.account-info .label { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.account-info strong { font-size: 15px; }

/* filing choice / package */
.filing-choice { padding: 17px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-soft); }
.filing-choice h4 { margin-bottom: 5px; font-size: 15px; }
.filing-choice .detail-actions { margin-top: 11px; }
.filing-banner { padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 9px; background: var(--surface); font-size: 14px; color: var(--ink-2); }
.filing-banner strong { color: var(--ink); }
.filing-banner.is-overdue { border-left-color: var(--gold); }
.discover-box { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 16px 18px; margin: 4px 0 22px; display: grid; gap: 12px; }
.discover-box .field { display: grid; gap: 5px; }
.discover-box .app-row { display: flex; gap: 8px; align-items: center; }
.discover-box .app-row input { flex: 1; min-width: 0; }
.lead-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.lead-detail textarea { width: 100%; font-family: inherit; font-size: 13.5px; }
.lead-detail .field { display: grid; gap: 5px; }

.guarantee-line { margin: 0 0 22px; padding: 12px 16px; border: 1px solid var(--accent-line, var(--line)); background: var(--accent-soft); border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.guarantee-line strong { color: var(--ink); }

/* ---- investor marketplace ---- */
.tab-count { display: inline-block; min-width: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 17px; text-align: center; margin-left: 4px; }
.mkt-list { display: grid; gap: 12px; margin: 12px 0 26px; }
.mkt-card { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 15px 17px; display: grid; gap: 9px; }
.mkt-card.is-locked { opacity: .82; }
.mkt-card-head { display: grid; gap: 3px; }
.mkt-card-head > div:first-child { display: flex; align-items: baseline; gap: 9px; }
.mkt-card-head strong { font-size: 15px; color: var(--ink); }
.mkt-score { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; }
.mkt-meta { font-size: 12.5px; color: var(--muted); text-transform: capitalize; }
.mkt-traction { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.mkt-reasons { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13px; color: var(--ink-2); }
.mkt-note { margin: 0; padding: 8px 12px; border-left: 3px solid var(--line-2); background: var(--surface-2, var(--surface)); font-size: 13px; color: var(--ink-2); border-radius: 0 6px 6px 0; }
.mkt-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.locked-note { font-size: 13px; color: var(--muted); background: var(--accent-soft); padding: 9px 12px; border-radius: 8px; margin: 0 0 12px; }
.mkt-profile { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 4px 16px; margin: 12px 0 22px; }
.mkt-profile > summary { padding: 11px 0; cursor: pointer; font-size: 14px; }
.mkt-thread-row { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.mkt-thread-row:hover { border-color: var(--line-2); }
.mkt-thread-row.is-unread { border-left: 3px solid var(--accent); }
.mkt-thread-row span { font-size: 12px; color: var(--muted); }
.thread-detail { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 16px 18px; margin-top: 12px; }
.mkt-msgs { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; padding: 6px 2px; margin: 10px 0; }
.mkt-msg { max-width: 82%; padding: 8px 12px; border-radius: 10px; background: var(--surface-2, #f1f3f1); font-size: 13.5px; }
.mkt-msg.mine { margin-left: auto; background: var(--accent-soft); }
.mkt-msg p { margin: 0; color: var(--ink); }
.mkt-msg time { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.mkt-msg-form { display: grid; gap: 8px; }

.reply-capture { padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); display: grid; gap: 8px; }
.reply-capture strong { color: var(--ink); font-size: 14px; }
.reply-capture code { background: var(--accent-soft); color: var(--ink); padding: 1px 6px; border-radius: 5px; font-size: 13px; word-break: break-all; }
.reply-capture .app-row { display: flex; gap: 8px; align-items: center; }
.reply-capture input { flex: 1; min-width: 0; }
.submission-package { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.submission-package summary { padding: 13px 15px; cursor: pointer; font-size: 14px; }
.submission-package > *:not(summary) { padding: 0 15px; }
.package-text {
  margin: 0 0 15px; padding: 13px; max-height: 420px; overflow: auto;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2);
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .tri-grid, .trust-grid, .program-grid, .contact-layout, .hub-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard-side { position: static; }
  .dashboard-tabs { display: flex; flex-wrap: wrap; }
  .dashboard-group-label { width: 100%; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .intake-grid, .field-row, .doc-form .field-row { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .sample-list li { flex-wrap: wrap; }
}

/* -------------------------------------------------- partners / DFY callout */
.calc-table-wrap { overflow-x: auto; margin-top: 8px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.calc-table th, .calc-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.calc-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.calc-table tbody tr:last-child td { border-bottom: 0; }
.calc-table td:last-child, .calc-table th:last-child { color: var(--accent); font-weight: 600; }

.dfy-callout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center;
  padding: 26px 28px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r); }
.dfy-callout h3 { margin: 0 0 8px; }
.dfy-callout p { margin: 0; color: var(--ink-2); }
.dfy-callout .dfy-fee { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 720px) { .dfy-callout { grid-template-columns: 1fr; gap: 14px; } }

/* -------------------------------------------------- outreach pipeline status pills */
.match-card .verdict-pill { margin-right: 5px; }
.status-pill.matched, .status-pill.stalled { color: var(--muted); border-color: var(--line-2); background: none; }
.status-pill.drafted, .status-pill.approved { color: var(--gold); border-color: #e3cfa5; background: #faf3e6; }
.status-pill.sent, .status-pill.replied, .status-pill.meeting, .status-pill.diligence { color: var(--accent-hover); border-color: var(--accent-line); background: var(--accent-soft); }
.status-pill.committed { color: #fff; background: var(--accent); border-color: var(--accent); }
.status-pill.passed { color: var(--muted); border-color: var(--line-2); background: none; }

/* -------------------------------------------------- free-scan locked teaser */
.locked-card { border: 1px solid var(--accent-line); background: var(--accent-soft); }
.locked-card p { margin: 6px 0 12px; color: var(--ink-2); }

/* -------------------------------------------------- admin dashboard (/admin) */
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 22px 0; }
@media (max-width: 720px) { .admin-cols { grid-template-columns: 1fr; } }
.admin-chart { border: 1px solid var(--line); border-radius: 9px; padding: 12px 12px 8px; background: var(--surface); margin: 8px 0 20px; }
.admin-bars { width: 100%; height: 160px; display: block; }
.admin-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.admin-ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); margin-top: 2px; overflow: hidden; }
.admin-chart .swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.admin-chart .swatch-a { background: var(--accent); }
.admin-chart .swatch-b { background: rgba(0,0,0,0.35); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 18px; }
.admin-table th, .admin-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table td { word-break: break-word; }

/* -------------------------------------------------- done-for-you filing choice */
.filing-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
@media (max-width: 640px) { .filing-options { grid-template-columns: 1fr; } }
.filing-option { border: 1px solid var(--line); border-radius: 9px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.filing-option.is-managed { border-color: var(--accent-line); background: var(--accent-soft); }
.filing-option strong { font-size: 14px; }
.filing-option .button { margin-top: auto; align-self: flex-start; }
.polish-box { font-size: 13px; }
.polish-box summary { cursor: pointer; color: var(--accent); }
.polish-box textarea { width: 100%; margin: 8px 0; padding: 8px; border: 1px solid var(--line-2); border-radius: 7px; font: inherit; resize: vertical; }

/* -------------------------------------------------- pricing: managed-filing tier grid */
.filing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .filing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .filing-grid { grid-template-columns: 1fr; } }
.filing-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.filing-card.is-active { border-color: var(--accent-line); box-shadow: var(--shadow); }
.filing-card.is-soon { background: var(--bg-2); border-style: dashed; opacity: 0.72; }
.filing-card .filing-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filing-card .filing-price { font-size: 26px; font-weight: 680; color: var(--ink); }
.filing-card.is-soon .filing-price { color: var(--muted); }
.filing-card ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 5px; }
.filing-card .button { margin-top: auto; align-self: flex-start; }
.filing-card .button:disabled { opacity: 0.55; cursor: not-allowed; }
.soon-pill { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--gold); background: #faf3e6; border: 1px solid #e3cfa5; border-radius: 999px; padding: 2px 7px; }

/* -------------------------------------------------- email verification + auth links */
.verify-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between;
  margin-bottom: 18px; padding: 12px 16px; border-radius: 10px;
  background: #faf3e6; border: 1px solid #e3cfa5; color: var(--ink); font-size: 14px; }
.verify-banner .button { flex: none; }
.modal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.form-note { margin: 8px 0 0; font-size: 13px; color: var(--accent); }

/* -------------------------------------------------- survey */
.survey-progress-label { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; max-width: 640px; }
.survey-progress { display: flex; gap: 6px; margin: 4px 0 26px; max-width: 640px; }
.survey-progress i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background 200ms ease, transform 200ms ease; }
.survey-progress i.on { background: var(--accent); transform: scaleY(1.15); }
.survey-form { display: grid; gap: 16px; max-width: 640px; }
.survey-q {
  position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 22px;
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.survey-q:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,22,19,0.07); }
.survey-q:has(input[required]) { border-left: 3px solid var(--accent); }
.survey-q:not(:has(input[required])) { border-style: dashed; background: var(--bg-2); box-shadow: none; }
.survey-q .q-index { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 620; }
.survey-q .q-index .optional { color: var(--muted); font-weight: 500; margin-left: 6px; }
.survey-q legend { padding: 0; margin-bottom: 12px; font-size: 15.5px; font-weight: 620; color: var(--ink); line-height: 1.35; }
.survey-options { display: flex; flex-wrap: wrap; gap: 9px; }
.survey-options.scale .check { flex: 1; min-width: 48px; justify-content: center; text-align: center; }
.survey-options .check {
  position: relative; margin: 0; border: 1.5px solid var(--line-2); border-radius: 9px; padding: 9px 15px;
  background: var(--surface); cursor: pointer; font-size: 13.5px; color: var(--ink); font-weight: 500;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.survey-options .check:hover { border-color: var(--accent); transform: translateY(-2px) scale(1.03); box-shadow: 0 4px 10px rgba(16,22,19,0.08); }
.survey-options .check:has(input:checked) { border-color: var(--accent); background: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(11,107,67,0.25); }
.survey-options .check input { position: absolute; opacity: 0; width: 0; height: 0; }
.survey-q textarea, .survey-q input[type="email"] { width: 100%; }
.survey-submit-row { display: flex; align-items: center; gap: 14px; }
.survey-thanks { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r); padding: 28px 26px; text-align: center; max-width: 640px; }
.survey-thanks h3 { margin-bottom: 6px; }
.survey-bar { margin: 9px 0; }
.survey-bar .survey-bar-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.survey-bar .survey-bar-track { height: 7px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.survey-bar .survey-bar-fill { height: 100%; border-radius: 4px; background: var(--accent); }

/* -------------------------------------------------- home: product-proof carousel */
.proof-carousel { position: relative; margin-top: 8px; }
.proof-track { position: relative; min-height: 420px; }
.proof-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; transform: scale(0.97) translateY(6px); pointer-events: none;
  transition: opacity 420ms ease, transform 420ms ease;
}
.proof-slide.is-active { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.proof-window {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: 0 4px 10px rgba(16,22,19,0.06), 0 20px 48px rgba(16,22,19,0.09);
  overflow: hidden;
}
.proof-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.proof-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.proof-url { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.proof-body { padding: clamp(22px, 3.4vw, 34px); min-height: 300px; }
.proof-eyebrow { color: var(--accent); font-size: 12px; font-weight: 620; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }

.proof-report .proof-stat { font-size: clamp(26px, 3.6vw, 36px); font-weight: 640; color: var(--ink); letter-spacing: -0.02em; }
.proof-report .proof-stat span { color: var(--muted); font-weight: 500; margin: 0 4px; }
.proof-report .proof-stat small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.proof-substat { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.proof-lines { list-style: none; margin: 20px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.proof-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 13.5px; color: var(--ink-2); }
.proof-lines li + li { border-top: 1px solid var(--line); }
.proof-lines b { color: var(--accent); font-weight: 600; font-size: 12px; white-space: nowrap; }
.proof-lines .proof-locked { background: var(--bg-2); }
.proof-lines .proof-locked b { color: var(--muted); }

.proof-fields { margin: 0; display: grid; gap: 15px; }
.proof-fields > div { display: grid; gap: 3px; }
.proof-fields dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.proof-fields dd { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.proof-needs { color: var(--accent-hover); background: var(--accent-soft); display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.proof-pipeline-list { list-style: none; margin: 4px 0 0; padding: 0; }
.proof-pipeline-list li { display: flex; align-items: center; gap: 11px; padding: 13px 4px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.proof-pipeline-list li:last-child { border-bottom: 0; }
.proof-pipeline-list span { flex: 1; }
.proof-pipeline-list b { font-size: 12.5px; font-weight: 620; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--line-2); }
.dot-review { background: #d9a441; }
.dot-ready { background: #3f7fd0; }
.dot-filed { background: var(--accent); }
.dot-won { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.proof-pipeline-list li:has(.dot-won) b { color: var(--accent); }

.proof-msg { max-width: 86%; padding: 12px 15px; border-radius: 12px; font-size: 14px; line-height: 1.55; margin-top: 12px; }
.proof-msg-them { background: var(--bg-2); color: var(--ink-2); border-bottom-left-radius: 3px; }
.proof-msg-you { margin-left: auto; background: var(--accent-soft); color: var(--accent-hover); border-bottom-right-radius: 3px; font-style: italic; }

.proof-caption { margin: 14px 4px 0; color: var(--muted); font-size: 13px; text-align: center; }

.proof-arrow {
  position: absolute; top: 46%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: transform 140ms ease, border-color 140ms ease, color 140ms ease;
}
.proof-arrow:hover { transform: translateY(-50%) scale(1.1); border-color: var(--accent-line); color: var(--accent); }
.proof-prev { left: -14px; }
.proof-next { right: -14px; }
.proof-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.proof-dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; transition: background 140ms ease, transform 140ms ease; }
.proof-dots button.is-active { background: var(--accent); transform: scale(1.3); }

@media (max-width: 720px) {
  .proof-track { min-height: 460px; }
  .proof-arrow { display: none; }
}

/* -------------------------------------------------- home: survey plug */
.survey-plug {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-2));
  border: 1px solid var(--accent-line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.survey-plug:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16,22,19,0.08); }
.survey-plug-badge {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(11,107,67,0.28);
}
.survey-plug-copy { display: grid; gap: 4px; flex: 1; min-width: 220px; }
.survey-plug-copy strong { font-size: 16.5px; color: var(--ink); font-weight: 640; }
.survey-plug-copy p { margin: 0; color: var(--ink-2); font-size: 14px; }
.survey-plug .button { flex-shrink: 0; }
@media (max-width: 640px) { .survey-plug { padding: 20px; } .survey-plug-badge { display: none; } }
