* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: .86em; background: var(--bg-sunk); padding: 1px 5px; border-radius: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.small { font-size: 14.5px; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); background: transparent; font: 500 15.5px/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16.5px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font: 600 24px/1 var(--font-serif); letter-spacing: -.015em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--ink); }
.top .btn { min-height: 38px; padding: 0 14px; font-size: 14.5px; }

/* hero */
.hero { padding: 88px 0 64px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.hero h1 { font: 400 clamp(42px, 7.2vw, 92px)/1.0 var(--font-serif); letter-spacing: -.028em; max-width: 1000px; }
.hero-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-top: 44px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 620px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.capabilities { list-style: none; margin: 56px 0 0; padding: 18px 0 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 14.5px; color: var(--ink-2); }

/* sections */
.section-label { display: flex; align-items: baseline; gap: 16px; }
.section-label .num { font: 400 14px/1 var(--font-mono); color: var(--ink-3); }
.section-label h2 { font: 400 clamp(28px, 3.4vw, 40px)/1.12 var(--font-serif); letter-spacing: -.015em; }
.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.two .section-label { flex-direction: column; gap: 10px; align-self: start; position: sticky; top: 96px; }
.prose { font-size: 18px; line-height: 1.65; max-width: 680px; }
.prose + .prose, .prose + .states, .states + .prose, .prose + .pairs, .prose + .table-wrap { margin-top: 22px; }
.prose em { font-style: italic; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 400 15px/1.7 var(--font-mono); color: var(--accent); }
.steps h3, .steps p { grid-column: 2; }
.steps h3 { font: 500 22px/1.3 var(--font-serif); margin-bottom: 6px; }
.steps p { color: var(--ink-2); }

.states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.states li { padding: 14px 16px 16px 0; position: relative; }
.states li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.states b { display: block; font-weight: 600; font-size: 15.5px; }
.states span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.states li:last-child b { color: var(--accent); }

.pairs { margin: 0; border-top: 1px solid var(--line); }
.pairs > div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pairs dt { font-weight: 600; font-size: 15px; }
.pairs dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.table-wrap { overflow-x: auto; }
table.example { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.example caption { text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 8px; }
table.example th { text-align: left; font-weight: 500; font-size: 13.5px; color: var(--ink-3); padding: 10px 16px 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
table.example td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.example td:first-child { font-weight: 500; white-space: nowrap; }

.uses { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.uses li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.uses b { color: var(--ink); font-weight: 600; }

/* demo */
.demo { padding: 72px 0 80px; border-bottom: 1px solid var(--line); background: var(--bg-sunk); }
.section-intro { margin: 16px 0 36px; max-width: 720px; font-size: 18px; color: var(--ink-2); }
.section-intro em { font-style: normal; font-weight: 600; color: var(--ink); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.demo-chat { height: 640px; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: var(--bg); }
.demo-side { padding-top: 4px; }
.sample-note { font-size: 13px; color: var(--warn); margin-bottom: 10px; }
.demo-side h3 { font: 500 28px/1.15 var(--font-serif); margin-bottom: 14px; }
.brief { margin: 0 0 14px; border-top: 1px solid var(--line-strong); }
.brief > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.brief dt { color: var(--ink-3); }
.brief dd { margin: 0; }
.demo-form { margin-top: 26px; padding: 20px 22px 22px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; }
.form-title { font-weight: 600; margin-bottom: 14px; }
.form-title span { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.elementor-field-group { margin-bottom: 14px; }
.elementor-field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.elementor-field { width: 100%; height: 42px; padding: 0 11px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; font-size: 15.5px; }
.elementor-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.demo-form .btn { width: 100%; margin-top: 4px; }
.form-result { margin-top: 12px; font-size: 14.5px; color: var(--success); }

/* cta + footer */
.cta { padding: 96px 0; text-align: left; }
.cta h2 { font: 400 clamp(34px, 5vw, 60px)/1.05 var(--font-serif); letter-spacing: -.02em; }
.cta p { margin: 16px 0 28px; color: var(--ink-2); font-size: 19px; }
.foot { border-top: 1px solid var(--ink); padding: 28px 0 40px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 960px) {
  .hero-foot, .two, .demo-grid { grid-template-columns: 1fr; gap: 28px; }
  .actions { justify-content: flex-start; }
  .two .section-label { position: static; flex-direction: row; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .states { grid-template-columns: 1fr 1fr; }
  .states li:nth-child(3) { padding-left: 0; border-left: 0; }
  .states li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 44px; }
  .lede, .prose, .section-intro { font-size: 17px; }
  .block, .demo { padding: 52px 0; }
  .demo-chat { height: 580px; }
  .pairs > div { grid-template-columns: 1fr; gap: 2px; }
  .capabilities { grid-template-columns: 1fr; gap: 10px; }
  .states { grid-template-columns: 1fr; }
  .states li, .states li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .states li:first-child { border-top: 0; }
  .cta { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
