:root {
  --paper: #ffffff;
  --ink: #18221e;
  --muted: #5b6862;
  --grid: #dde5e1;
  --head: #f3f6f4;
  --green: #0f6b43;
  --green-dark: #0a4d30;
  --mark: #fff1a8;
  --chat: #eef3f0;
  --radius-s: 6px;
  --radius-l: 18px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--grid); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid var(--green);
}
.button:hover { background: var(--green-dark); color: #fff; }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--grid); }
.button.quiet:hover { border-color: var(--ink); color: var(--ink); }
.button.small { min-height: 38px; padding: 0 16px; font-size: .92rem; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; gap: 56px; }
.hero-copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 56px; align-items: end; }
.hero h1 { max-width: 13ch; }
.hero-copy .lead { margin-top: 0; }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* The demo: a chat on top of the sheet it fills */
.demo { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: center; padding: 28px; border-radius: 28px; background: var(--head); border: 1px solid var(--grid); }
.sheet {
  border: 1px solid var(--grid); border-radius: var(--radius-l); overflow: hidden;
  background: #fff; box-shadow: 0 24px 60px -30px rgba(15, 60, 40, .35);
  font-size: .86rem;
}
.sheet-bar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--grid); color: var(--muted); }
.sheet-bar b { color: var(--ink); font-weight: 600; }
.sheet-tabs { display: flex; gap: 2px; margin-left: auto; }
.sheet-tabs span { padding: 2px 10px; border-radius: 4px; }
.sheet-tabs .on { background: #e2efe8; color: var(--green-dark); font-weight: 600; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet th, .sheet td { border: 1px solid var(--grid); padding: 7px 10px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet thead th { background: var(--head); color: var(--muted); font-weight: 500; font-size: .78rem; text-align: center; }
.sheet .col-num { width: 34px; background: var(--head); color: var(--muted); text-align: center; font-size: .78rem; }
.sheet .labels td { font-weight: 600; }
.sheet .num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet tr.new td { background: var(--mark); }
.sheet tr.new td.col-num { background: #f4e48a; color: var(--ink); }
.sheet tr.new.pending td { background: transparent; color: transparent; }
.sheet tr.new.pending td.col-num { background: var(--head); color: var(--muted); }
.sheet tr.new.landed td { animation: land .9s ease-out; }
@keyframes land { from { background: #ffe25c; } }

.chat {
  position: relative;
  background: #fff; border: 1px solid var(--grid); border-radius: var(--radius-l);
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 30px 50px -28px rgba(15, 60, 40, .45);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--grid); font-size: .85rem; }
.chat-head .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--display); }
.chat-head small { display: block; color: var(--muted); font-size: .75rem; }
.bubble { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: .88rem; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--chat); border-bottom-left-radius: 4px; }
.bubble.bot dl { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; margin: 6px 0; }
.bubble.bot dt { color: var(--muted); }
.bubble.bot dd { margin: 0; font-weight: 600; }
.demo [data-step] { transition: opacity .35s ease, transform .35s ease; }
.demo.playing [data-step].hidden { opacity: 0; transform: translateY(6px); }
.demo.playing [data-step].gone { display: none; }

/* Sections */
section { padding: 88px 0; }
section.tinted { background: var(--head); border-block: 1px solid var(--grid); }
.section-head { max-width: 40rem; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--muted); }

/* "Send it any way" as a real table */
.ledger { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--grid); border-radius: var(--radius-l); overflow: hidden; }
.ledger th, .ledger td { padding: 16px 20px; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: top; }
.ledger thead th { background: var(--head); font-size: .9rem; color: var(--muted); font-weight: 500; }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger td:first-child { font-weight: 600; white-space: nowrap; }
.ledger .says { font-style: italic; color: var(--ink); }
.ledger .row { font-variant-numeric: tabular-nums; color: var(--green-dark); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 18px 0; border-bottom: 1px solid var(--grid); }
.facts li:first-child { padding-top: 0; }
.facts strong { display: block; font-family: var(--display); font-size: 1.15rem; margin-bottom: 4px; }
.facts span { color: var(--muted); }

.consultants { background: var(--green); color: #e9f4ee; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.consultants h2 { color: #fff; }
.consultants p { margin-top: 16px; }
.consultants ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.consultants .button { background: #fff; color: var(--green-dark); border-color: #fff; margin-top: 28px; }
.consultants .button:hover { background: var(--mark); border-color: var(--mark); }

.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--grid); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); }

.closing { text-align: center; }
.closing h2 { max-width: 18ch; margin-inline: auto; }
.closing p { margin: 18px auto 0; color: var(--muted); max-width: 32rem; }
.closing .hero-actions { justify-content: center; }

.site-foot { border-top: 1px solid var(--grid); padding: 36px 0; font-size: .92rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-foot nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal .updated { color: var(--muted); margin-top: 10px; }
.legal h2 { font-size: 1.45rem; margin-top: 44px; }
.legal p, .legal ul { margin-top: 14px; }
.legal li { margin-top: 6px; }
.legal blockquote { margin: 18px 0 0; padding: 16px 20px; border-left: 4px solid var(--green); background: var(--head); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--grid); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--head); }

.notfound { padding: 120px 0; text-align: center; }
.notfound p { margin: 16px auto 28px; color: var(--muted); }

@media (max-width: 920px) {
  .hero .wrap, .split, .consultants { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-copy { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; padding: 16px; }
  .steps { grid-template-columns: 1fr; }
  .consultants { padding: 36px 24px; }
  .nav { display: none; }
  .site-head .button { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr { border-bottom: 1px solid var(--grid); padding: 12px 0; }
  .ledger td { border: 0; padding: 4px 16px; }
  .sheet .hide-sm { display: none; }
  .site-foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo [data-step], .sheet tr.new.landed td { transition: none; animation: none; }
}
.ledger .row { display: flex; flex-wrap: wrap; gap: 0; }
.ledger .row span { border: 1px solid var(--grid); margin: -1px 0 0 -1px; padding: 3px 9px; background: #fbfdfc; font-size: .9rem; white-space: nowrap; }
.ledger .row span:only-child { background: transparent; border: 0; padding: 0; margin: 0; font-size: inherit; }
@media (max-width: 640px) {
  .sheet { font-size: .8rem; }
  .sheet th, .sheet td { padding: 6px 6px; }
  .sheet .col-num { width: 26px; }
}
