/* Firmbine — marketing site
   Honors DESIGN.md: Lagoon is the single presence hue on a quiet white record.
   Geist + Geist Mono, flat by default, tabular money, light/dark parity. */

/* ---- tokens ---- */
:root {
  --canvas: oklch(1 0 0);
  --panel: oklch(0.985 0.005 205);
  --surface: oklch(0.97 0.005 205);
  --ink: oklch(0.145 0 0);
  --slate: oklch(0.44 0 0);
  --faint: oklch(0.556 0 0);
  --hairline: oklch(0.922 0 0);
  --lagoon: oklch(0.55 0.115 205);
  --on-lagoon: oklch(0.99 0 0);
  --presence-text: oklch(0.40 0.10 205);
  --presence-wash: oklch(0.955 0.025 205);
  --settled-text: oklch(0.40 0.09 160);
  --settled-wash: oklch(0.95 0.04 160);
  --attention-text: oklch(0.44 0.11 70);
  --attention-wash: oklch(0.95 0.06 85);
  --danger-text: oklch(0.45 0.17 27);
  --danger-wash: oklch(0.94 0.04 25);

  --shadow-xs: 0 1px 2px oklch(0.145 0 0 / 0.05);
  --shadow-pop: 0 8px 30px oklch(0.145 0 0 / 0.08);

  --ui: "Geist", system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", "SFMono-Regular", "Consolas", monospace;

  --w: 1080px;
}

:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --canvas: oklch(0.17 0.006 220);
    --panel: oklch(0.205 0.007 220);
    --surface: oklch(0.24 0.008 220);
    --ink: oklch(0.96 0.004 220);
    --slate: oklch(0.72 0.008 220);
    --faint: oklch(0.64 0.008 220);
    --hairline: oklch(0.30 0.008 220);
    --lagoon: oklch(0.72 0.11 205);
    --on-lagoon: oklch(0.17 0.006 220);
    --presence-text: oklch(0.80 0.10 205);
    --presence-wash: oklch(0.30 0.045 210);
    --settled-text: oklch(0.82 0.10 160);
    --settled-wash: oklch(0.30 0.05 160);
    --attention-text: oklch(0.84 0.11 85);
    --attention-wash: oklch(0.33 0.06 80);
    --danger-text: oklch(0.78 0.14 25);
    --danger-wash: oklch(0.32 0.08 25);
    --shadow-xs: 0 1px 2px oklch(0 0 0 / 0.4);
    --shadow-pop: 0 8px 30px oklch(0 0 0 / 0.5);
  }
}
:root[data-theme="dark"] {
  --canvas: oklch(0.17 0.006 220);
  --panel: oklch(0.205 0.007 220);
  --surface: oklch(0.24 0.008 220);
  --ink: oklch(0.96 0.004 220);
  --slate: oklch(0.72 0.008 220);
  --faint: oklch(0.64 0.008 220);
  --hairline: oklch(0.30 0.008 220);
  --lagoon: oklch(0.72 0.11 205);
  --on-lagoon: oklch(0.17 0.006 220);
  --presence-text: oklch(0.80 0.10 205);
  --presence-wash: oklch(0.30 0.045 210);
  --settled-text: oklch(0.82 0.10 160);
  --settled-wash: oklch(0.30 0.05 160);
  --attention-text: oklch(0.84 0.11 85);
  --attention-wash: oklch(0.33 0.06 80);
  --danger-text: oklch(0.78 0.14 25);
  --danger-wash: oklch(0.32 0.08 25);
  --shadow-xs: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-pop: 0 8px 30px oklch(0 0 0 / 0.5);
}

/* ---- reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px oklch(0.55 0.115 205 / 0.5); border-radius: 8px; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.money { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--presence-text); margin: 0 0 14px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px; font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--lagoon); color: var(--on-lagoon); }
.btn-primary:hover { background: color-mix(in oklch, var(--lagoon) 90%, black); }
.btn-outline { background: var(--canvas); color: var(--ink); border-color: var(--hairline); box-shadow: var(--shadow-xs); }
.btn-outline:hover { background: var(--surface); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 30px; height: 30px; color: var(--lagoon); flex: none; }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand .word { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a.link {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--slate);
}
.nav a.link:hover { background: var(--surface); color: var(--ink); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
  background: transparent; border: 1px solid var(--hairline); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .nav a.link { display: none; }
}

/* ---- section rhythm ---- */
section { padding: 84px 0; }
.section-head { max-width: 62ch; margin: 0 0 40px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; text-wrap: balance;
}
.section-head p { margin-top: 14px; font-size: 17px; color: var(--slate); }
.section-head p strong { color: var(--ink); font-weight: 600; }
.divider { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ---- hero ---- */
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 60px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.04; text-wrap: balance;
}
.hero .stand { margin-top: 22px; font-size: 19px; line-height: 1.5; color: var(--slate); max-width: 46ch; }
.hero .stand strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--faint); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .stand { max-width: 56ch; }
}

/* ---- product surface (the crew, working) ---- */
.surface-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 10px;
}
.app {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: 14px;
  box-shadow: var(--shadow-xs); overflow: hidden;
}
.appbar { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid var(--hairline); }
.appbar .mm { width: 18px; height: 18px; color: var(--lagoon); flex: none; }
.appbar .mm svg { width: 100%; height: 100%; display: block; }
.appbar .nn { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.appbar .spacer { flex: 1; }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lagoon);
  box-shadow: 0 0 0 0 var(--presence-wash); animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.55 0.115 205 / 0.5); }
  70% { box-shadow: 0 0 0 7px oklch(0.55 0.115 205 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.55 0.115 205 / 0); }
}
.chatbody { padding: 16px 15px; display: flex; flex-direction: column; gap: 15px; }
.msg { display: flex; gap: 11px; }
.ava {
  width: 28px; height: 28px; border-radius: 50%; background: var(--lagoon); color: var(--on-lagoon);
  display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none;
}
.bubble { min-width: 0; }
.who { font-size: 12px; color: var(--presence-text); font-weight: 600; margin-bottom: 3px; }
.who span { color: var(--faint); font-weight: 400; }
.said { font-size: 14.5px; line-height: 1.5; }
.said b { font-weight: 600; }
.chip {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 500;
}
.chip svg { width: 13px; height: 13px; flex: none; }
.chip.needs { background: var(--attention-wash); color: var(--attention-text); }
.chip.settled { background: var(--settled-wash); color: var(--settled-text); }

/* user's own message: right-aligned, presence wash (DESIGN.md) */
.msg.me { justify-content: flex-end; }
.ubub {
  background: var(--presence-wash); color: var(--ink);
  border-radius: 10px; padding: 10px 13px; font-size: 14.5px; line-height: 1.5; max-width: 84%;
}
.ubub .attach {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--presence-text);
}
.ubub .attach svg { width: 13px; height: 13px; flex: none; }

/* agent's inline proposal summary */
.mini {
  margin-top: 10px; border: 1px solid var(--hairline); border-radius: 10px;
  padding: 12px 13px; display: flex; flex-direction: column; gap: 6px;
}
.mini-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--slate); align-items: center; }
.mini-row.head { color: var(--ink); font-weight: 600; }
.mini-row .money { color: var(--ink); font-weight: 500; }
.mini .tag {
  font-size: 11.5px; font-weight: 500; padding: 2px 9px; border-radius: 999px;
  background: var(--settled-wash); color: var(--settled-text);
}
.mini-link {
  margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--presence-text);
  display: inline-flex; align-items: center; gap: 4px;
}
.mini-link svg { width: 13px; height: 13px; }

/* ---- capability grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.card .ic { width: 22px; height: 22px; color: var(--lagoon); }
.card .ic svg { width: 100%; height: 100%; display: block; }
.card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--slate); }

/* two supporting surfaces alongside the grid intro */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 720px) { .proof { grid-template-columns: 1fr; } }
.doc, .sig {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: 10px; padding: 18px 18px;
}
.doc .drow { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.doc .drow.head { font-weight: 600; }
.doc .drow.tot { border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 10px; font-weight: 600; }
.doc .foot, .sig .block {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 9px; color: var(--presence-text); font-size: 13px; font-weight: 500;
}
.doc .foot .mm, .sig .block .mm { width: 18px; height: 18px; color: var(--lagoon); flex: none; }
.doc .foot .mm svg, .sig .block .mm svg { width: 100%; height: 100%; display: block; }
.sig .from { font-size: 12.5px; color: var(--faint); }
.sig .from b { color: var(--ink); }
.sig .line { font-size: 14.5px; margin: 8px 0 0; }
.sig .block .txt { font-size: 13px; line-height: 1.4; color: var(--ink); }
.sig .block .txt span { color: var(--faint); }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; gap: 24px; } }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .num {
  width: 32px; height: 32px; border-radius: 999px; background: var(--presence-wash); color: var(--presence-text);
  display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 500;
}
.step h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.step p { font-size: 15px; color: var(--slate); }

/* ---- trust band ---- */
.band { background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band .section-head { margin-bottom: 28px; }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .trust-list { grid-template-columns: 1fr; gap: 18px; } }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .ic { width: 20px; height: 20px; color: var(--lagoon); flex: none; margin-top: 2px; }
.trust-item .ic svg { width: 100%; height: 100%; }
.trust-item h3 { font-size: 15px; font-weight: 600; }
.trust-item p { font-size: 14px; color: var(--slate); margin-top: 3px; }

/* ---- early access ---- */
.cta-wrap { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-wrap h2 { font-size: clamp(28px, 3.8vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.cta-wrap p { margin-top: 14px; font-size: 17px; color: var(--slate); }
.waitlist {
  display: flex; gap: 10px; justify-content: center; margin: 28px auto 0; max-width: 460px; flex-wrap: wrap;
}
.waitlist input {
  flex: 1; min-width: 220px; height: 44px; padding: 0 14px; font: inherit; font-size: 15px;
  background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline); border-radius: 8px;
  box-shadow: var(--shadow-xs);
}
.waitlist input::placeholder { color: var(--faint); }
.waitlist input:focus-visible { border-color: var(--lagoon); }
.cta-note { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-row .tag { font-size: 14px; color: var(--slate); }
.footer-row .meta { font-size: 13px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
