:root {
  --paper: #f5f4ef;
  --white: #ffffff;
  --ink: #0d1b2a;
  --muted: #4a5867;
  --line: #d9d8d0;
  --signal: #d94a1e;
  --signal-dark: #b53a14;
  --tg: #229ed9;
  --head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; font-weight: 700; margin-bottom: 20px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; font-weight: 700; margin-bottom: 10px; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 12px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.sub { color: var(--muted); margin-bottom: 32px; }
.eyebrow { font: 600 .85rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--signal-dark); margin-bottom: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { max-width: 1080px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font: 500 1.4rem var(--head); text-decoration: none; }
.logo b { font-weight: 700; color: var(--signal); }
nav { display: flex; gap: 24px; font-size: .95rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; background: var(--signal); color: #fff; padding: 14px 26px; border: 0; border-radius: 6px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--signal-dark); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-tg { background: var(--tg); }
.btn-tg:hover { background: #1a82b3; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.chat { background: var(--ink); color: #fff; border-radius: 14px; padding: 18px; display: grid; gap: 10px; box-shadow: 8px 8px 0 var(--signal); }
.chat-top { font-size: .85rem; color: #9fb0c2; padding-bottom: 8px; border-bottom: 1px solid #22344a; display: flex; align-items: center; gap: 8px; }
.chat-top i { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .98rem; line-height: 1.45; }
.msg.them { background: #1e3149; justify-self: start; border-bottom-left-radius: 4px; }
.msg.us { background: var(--paper); color: var(--ink); justify-self: end; border-bottom-right-radius: 4px; }
.js .msg { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.js .msg.show { opacity: 1; transform: none; }

/* Sections */
.section { padding-top: 76px; padding-bottom: 76px; }
.band { background: var(--white); border-block: 1px solid var(--line); padding: 76px 0; }
.band.dark { background: var(--ink); color: #fff; border: 0; }
.band.dark p { color: #b8c4d1; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid article { border-top: 3px solid var(--signal); padding: 16px 4px 4px; }
.grid article p { color: var(--muted); margin: 0; }
.grid.two { grid-template-columns: repeat(2, 1fr); gap: 32px 56px; margin-top: 32px; }
.steps { list-style: none; padding: 0; margin: 32px 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.1rem var(--head); }
.steps p { color: var(--muted); }
.tools { color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }

/* Quote */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
form { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea { width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; }
input.err { border-color: var(--signal); }
textarea { min-height: 90px; resize: vertical; }
#status { margin: 0; font-size: .95rem; color: var(--muted); min-height: 1.4em; }

footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .9rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (max-width: 860px) {
  nav { display: none; }
  .hero, .quote { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 44px; padding-bottom: 56px; }
  .grid, .steps, .grid.two { grid-template-columns: 1fr; }
  .section, .band { padding-top: 52px; padding-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .msg { transition: none; }
}
