:root {
  --ink: #0e2a3b;
  --ink-soft: #4a6170;
  --paper: #fbfcfd;
  --mist: #e7f0ed;
  --leaf: #0f7f63;
  --leaf-deep: #0a5e49;
  --amber: #e5a23a;
  --line: #d6e2de;
  --bubble-in: #ffffff;
  --bubble-out: #d9f2e8;
  --radius-lg: 22px;
  --radius-sm: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6eef0; --ink-soft: #a6b8bf; --paper: #0d1c26; --mist: #13293a;
    --leaf: #3cc79d; --leaf-deep: #7fe0bf; --line: #23404f; --bubble-in: #1a3243; --bubble-out: #154236;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
}
a { color: var(--leaf); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--leaf); position: relative; }
.logo-mark::after { content: ""; position: absolute; left: 9px; top: 9px; width: 16px; height: 12px; border-radius: 6px 6px 6px 1px; background: var(--paper); }
.logo-word { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: .98rem; }
.top nav a:hover { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 48px 0 88px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; } }
.hero h1 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 22px;
}
.hero p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 30px; }
.cta { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 14px 24px; border-radius: 999px; font-weight: 600; }
.cta:hover { background: var(--leaf-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { color: #0d1c26; } }

/* hero artifact: conversation becoming a lead record */
.artifact { position: relative; padding: 28px 0 40px; }
.phone {
  background: var(--mist); border-radius: var(--radius-lg); padding: 22px 20px 26px; max-width: 400px;
  border: 1px solid var(--line);
}
.phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; font-size: .9rem; color: var(--ink-soft); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--leaf); opacity: .85; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; margin: 8px 0; font-size: .95rem; line-height: 1.45; }
.msg.in { background: var(--bubble-in); border-bottom-left-radius: 4px; }
.msg.out { background: var(--bubble-out); margin-left: auto; border-bottom-right-radius: 4px; }
.msg small { display: block; color: var(--ink-soft); font-size: .75rem; margin-top: 2px; }
.record {
  position: absolute; right: 0; bottom: 0; width: min(270px, 70%);
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 18px 40px -18px rgba(14, 42, 59, .35);
}
.record h3 { font-family: "Bricolage Grotesque", sans-serif; margin: 0 0 10px; font-size: 1.05rem; }
.record dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .88rem; }
.record dt { color: var(--ink-soft); }
.record dd { margin: 0; font-weight: 600; }
.record .next { color: var(--ink); background: color-mix(in srgb, var(--amber) 28%, transparent); border-radius: 6px; padding: 0 6px; }
@media (max-width: 520px) { .record { position: relative; width: 100%; margin-top: 16px; } .artifact { padding-bottom: 0; } }

/* one orchestrated load sequence */
@media (prefers-reduced-motion: no-preference) {
  .msg, .record { opacity: 0; transform: translateY(8px); animation: appear .5s ease-out forwards; }
  .msg:nth-of-type(1) { animation-delay: .2s; }
  .msg:nth-of-type(2) { animation-delay: .9s; }
  .msg:nth-of-type(3) { animation-delay: 1.6s; }
  .record { animation-delay: 2.4s; }
  @keyframes appear { to { opacity: 1; transform: none; } }
}

/* flow */
.flow { padding: 24px 0 88px; }
.flow h2, .commit h2, .who h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; margin: 0 0 32px; max-width: 22em; line-height: 1.15; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 9px; left: 9px; right: 9px; height: 2px; background: var(--line); }
.steps li { position: relative; padding: 34px 28px 0 0; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--leaf); }
.steps h3 { margin: 0 0 8px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 30ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { top: 9px; bottom: 9px; left: 9px; right: auto; width: 2px; height: auto; }
  .steps li { padding: 0 0 30px 42px; }
}

/* who */
.who { padding: 0 0 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.who h2 { margin-bottom: 0; }
.who p { color: var(--ink-soft); margin: 0 0 14px; }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; gap: 16px; } }

/* commitments */
.commit { background: var(--mist); border-radius: var(--radius-lg); padding: 48px 44px; margin-bottom: 88px; }
.commit ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.commit li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.commit li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--leaf); }
.commit li strong { color: var(--ink); display: block; }
@media (max-width: 760px) { .commit { padding: 32px 22px; } .commit ul { grid-template-columns: 1fr; } }

/* contact + footer */
.contact { padding: 0 0 88px; }
.contact h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 12px; }
.contact p { color: var(--ink-soft); margin: 0 0 24px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: .92rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* document pages */
.doc { max-width: 720px; padding: 32px 0 72px; }
.doc h1 { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 6px; line-height: 1.1; }
.doc .meta { color: var(--ink-soft); margin: 0 0 32px; }
.doc h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.3rem; margin: 36px 0 8px; }
.doc p { margin: 0 0 12px; }
