:root {
  --ink: #111318; --ink-2: #3b3f4a; --ink-3: #4a4f5c; --ink-4: #5b6170;
  --paper: #fafaf8; --white: #fff; --line: #e6e6e1; --line-2: #d9d9d3;
  --accent: #4338ca; --accent-ink: #3730a3; --accent-wash: #f3f4ff; --accent-light: #a5b4fc;
  --ok: #0f7b4a; --no: #a0281c;
  --night: #111318; --night-2: #1c1d24; --night-line: #2e3039; --night-ink: #e7e7ea; --night-soft: #c4c6ce;
  --sans: Inter, system-ui, sans-serif; --display: 'Space Grotesk', Inter, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; }
a { color: var(--accent); } a:hover { color: #312e81; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 1000px; }
.mono { font-family: var(--mono); }
.muted { font-size: 13px; color: var(--ink-4); }
.strong { font-weight: 600; }
.soft { color: var(--ink-3); }
.soft-light { color: var(--night-soft); }
.small { font-size: 15px; }
.accent-text { color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

.top { border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; flex: 1 1 auto; }
.links a { color: var(--ink-2); text-decoration: none; padding: 10px 0; }
.links a[aria-current] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); }

.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 20px; border-radius: 12px; }
.btn.dark { background: var(--ink); color: var(--white); font-size: 15px; font-weight: 500; padding: 12px 18px; border-radius: 10px; }
.btn.accent { background: var(--accent); color: var(--white); }
.btn.light { background: var(--white); color: var(--ink); border: 1px solid var(--line-2); font-weight: 500; }
.btn.white { background: var(--white); color: var(--ink); }

.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow.light { color: var(--accent-light); }
.eyebrow.tight { margin: 0; color: var(--accent-ink); font-family: var(--sans); font-weight: 600; }

.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .eyebrow { margin: 0; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.035em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-3); max-width: 540px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.fine { font-size: 14px; color: var(--ink-4); }

.timeline { flex: 1 1 440px; min-width: 0; margin: 0; padding: 28px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.timeline li { position: relative; padding: 0 0 22px 30px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.last::before { display: none; }
.timeline li:nth-child(2)::before { background: repeating-linear-gradient(var(--line-2) 0 4px, transparent 4px 8px); }
.dot { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 99px; }
.dot.on { background: var(--accent); } .dot.ok { background: var(--ok); } .dot.off { border: 2px solid #b9bab4; }
.timeline p + p { margin-top: 4px; }
.call { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); background: var(--accent-wash); padding: 8px 10px; border-radius: 8px; margin-top: 6px !important; overflow-wrap: anywhere; }
.call.dark { color: var(--accent-light); background: var(--night-2); border: 1px solid var(--night-line); border-radius: 10px; padding: 12px 14px; line-height: 1.7; white-space: pre-wrap; }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.strip-row { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; padding-top: 22px; padding-bottom: 22px; font-size: 16px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); }
.soon { color: var(--ink-4); font-size: 15px; }

.block { padding-top: 104px; padding-bottom: 104px; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 12px; }
.h3size { font-size: 32px; margin-bottom: 32px; }
.sub { font-size: 18px; color: var(--ink-3); max-width: 700px; line-height: 1.55; margin-bottom: 40px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.accent-border { border: 2px solid var(--accent); padding: 31px; }
.compare { display: flex; flex-wrap: wrap; gap: 20px; } .compare .card { flex: 1 1 440px; }
.compare h3 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.checks li { display: flex; gap: 12px; }
.checks.no li { color: var(--ink-3); } .checks.no li::before { content: '×'; color: var(--no); font-family: var(--mono); }
.checks.yes li::before { content: '✓'; color: var(--ok); font-family: var(--mono); }

.dark-band { background: var(--night); color: #f2f2ef; }
.dark-band a { color: var(--accent-light); }
.recipe { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 28px; }
.recipe-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.6; color: var(--night-soft); }
.files { flex: 1.4 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.code { margin: 0; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; overflow: hidden; }
.code figcaption { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--night-line); font-family: var(--mono); font-size: 13px; color: #a9acb7; }
.copy { font: inherit; font-size: 13px; background: var(--night-line); color: var(--night-ink); border: 0; border-radius: 8px; padding: 8px 12px; min-height: 36px; cursor: pointer; }
.code pre { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--night-ink); white-space: pre-wrap; word-break: break-word; overflow-x: auto; }

.steps { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; }
.step { flex: 1 1 240px; padding: 24px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 18px; font-weight: 600; } .step p { color: var(--ink-3); line-height: 1.55; }
.num { font-size: 13px; color: var(--accent); }
.waitlist { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; background: var(--accent-wash); border-radius: 16px; padding: 24px 28px; }
.waitlist > div { flex: 1 1 480px; } .waitlist p + p { margin-top: 6px; font-size: 17px; color: #1e1b4b; }

.grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.grid > div { flex: 1 1 340px; background: var(--white); padding: 24px 28px; }
.grid h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; } .grid p { color: var(--ink-3); }

.white-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
thead tr { background: var(--paper); text-align: left; }
th, td { padding: 16px 20px; text-align: left; } th[scope=row] { font-weight: 500; width: 36%; }
tbody tr { border-top: 1px solid var(--line); }

.readable { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.readable > div:first-child { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.readable .sub { margin: 0; }
.tools { flex: 1 1 520px; min-width: 0; padding: 0; overflow: hidden; border-radius: 16px; }
.tools-head { padding: 14px 20px; font-size: 14px; font-weight: 600; }
.tool { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 14px 20px; border-top: 1px solid #f0f0ec; color: var(--ink-3); font-size: 15px; }
.tool .name { flex: 0 0 180px; font-size: 14px; color: var(--accent-ink); }
.tool span:last-child { flex: 1 1 240px; }
.tool.later { opacity: 0.7; } .tool em { font-style: normal; font-size: 13px; color: var(--ink-4); }

.closing { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 96px; padding-bottom: 96px; }
.closing h2 { color: var(--white); margin-bottom: 14px; } .closing p { font-size: 18px; }

.foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px 32px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--ink-4); }
.foot-row a { color: var(--ink-4); }

@media (max-width: 640px) {
  .hero { padding-top: 48px; gap: 40px; }
  .block { padding-top: 64px; padding-bottom: 64px; }
  .card, .accent-border { padding: 22px; }
  .nav .btn { display: none; }
  .code pre { font-size: 12px; padding: 16px; }
}

/* ---- homepage ---- */
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .signin { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 8px; }
.hero-code { flex: 1 1 480px; min-width: 0; background: #14151a; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(17, 19, 24, 0.18); }
.hero-code .tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid #2a2c34; }
.hero-code [role='tab'] { font-family: var(--mono); font-size: 13px; padding: 12px 16px; min-height: 44px; border: 0; cursor: pointer; border-radius: 8px 8px 0 0; background: transparent; color: #a9acb7; }
.hero-code [role='tab'][aria-selected='true'] { background: #22242c; color: #fff; }
.hero-code pre { margin: 0; padding: 24px; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--night-ink); white-space: pre-wrap; word-break: break-word; min-height: 300px; }
.hero-code pre:focus-visible, .hero-code [role='tab']:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 24px; border-top: 1px solid #2a2c34; font-size: 13px; color: #a9acb7; }
.ok-dot { display: inline-flex; align-items: center; gap: 8px; color: #7ee2a8; }
.ok-dot::before { content: ''; width: 10px; height: 10px; border-radius: 99px; background: #7ee2a8; }
.ok-text { color: #7ee2a8; }
.cards3 { display: flex; flex-wrap: wrap; gap: 20px; }
.cards3 .card { flex: 1 1 300px; padding: 28px; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
.cards3 h3 { font-family: var(--display); font-size: 24px; font-weight: 600; }
.cards3 p { color: var(--ink-3); line-height: 1.55; }
.tight-top { padding-top: 24px; }
.agents-band { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.agents-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.agents-copy h2 { color: #fff; margin: 0; }
.agents-copy .eyebrow { margin: 0; }
.lede-dark { font-size: 18px; line-height: 1.6; }
.arrows { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: #e2e3e8; }
.arrows li { position: relative; padding-left: 26px; }
.arrows li::before { content: '→'; position: absolute; left: 0; font-family: var(--mono); color: var(--accent-light); }
.dark-band .btn.white { color: var(--ink); }
.chat { flex: 1 1 460px; min-width: 0; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.bubble-user { align-self: flex-end; max-width: 80%; background: var(--night-line); border-radius: 14px; padding: 12px 16px; line-height: 1.5; }
.bubble-agent { max-width: 88%; line-height: 1.55; color: #d9dae0; }
.chat .call.dark { margin: 0 !important; background: #14151a; color: var(--night-soft); }
.features { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.features > div { flex: 1 1 300px; }
.features h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.features p { color: var(--ink-3); line-height: 1.55; }
code { font-family: var(--mono); font-size: 0.9em; }
.plans { display: flex; flex-wrap: wrap; gap: 20px; }
.plan { flex: 1 1 300px; border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--paper); }
.plan.featured { border: 2px solid var(--accent); padding: 31px; background: var(--white); }
.plan h3 { font-size: 18px; font-weight: 600; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.badge { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: #eef0ff; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.price { font-family: var(--display); font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.price span { font-size: 18px; color: var(--ink-4); font-family: var(--sans); font-weight: 500; letter-spacing: 0; }
.plan .btn { margin-top: auto; text-align: center; }
.after { margin-top: 28px; color: var(--ink-3); }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; min-height: 28px; }
.faq details p { margin-top: 12px; color: var(--ink-3); line-height: 1.6; }

/* ---- legal pages ---- */
.legal { max-width: 820px; padding-top: 56px; padding-bottom: 96px; line-height: 1.65; color: var(--ink-2); }
.legal h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; margin-bottom: 20px; color: var(--ink); }
.legal h2, .legal h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: 0; line-height: 1.35; margin: 32px 0 8px; color: var(--ink); }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }

@media (max-width: 640px) {
  .nav-cta .btn { display: none; }
  .hero-code pre { font-size: 12px; padding: 16px; min-height: 0; }
  .agents-band, .chat { gap: 24px; }
  .plan, .plan.featured { padding: 24px; }
}
