:root {
  --teal: #123C3A;
  --teal-2: #1d5a56;
  --paper: #F5F1E8;
  --paper-2: #ECE6D8;
  --orange: #F1673A;
  --orange-ink: #B8431D;
  --sage: #DDE7DF;
  --ink: #123C3A;
  --muted: #4a625f;
  --line: #d8d1c1;
  --error: #A3261B;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 640px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--teal); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* Nav */
header.nav { position: sticky; top: 0; z-index: 10; background: rgba(245,241,232,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav img { height: 32px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 24px; font-weight: 500; font-size: 15px; }
.nav nav a:not(.btn) { text-decoration: none; }
.nav nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .hide-sm { display: none; } .nav nav { gap: 14px; } }
@media (max-width: 380px) { .nav img { height: 26px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--teal); color: var(--paper); text-decoration: none; font: inherit; font-weight: 600; padding: 0 24px; border-radius: 999px; font-size: 16px; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--teal-2); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn.ghost:hover { background: var(--sage); }
.btn.light { background: var(--paper); color: var(--teal); }
.btn.light:hover { background: #fff; }
.btn.ghost-light { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn.ghost-light:hover { background: rgba(245,241,232,.12); }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.fine { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

/* Hero */
.hero { padding: 44px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; } .hero { padding: 32px 0 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); flex: none; }
h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.035em; margin: 14px 0 20px; font-weight: 700; }
h1 .found { position: relative; z-index: 0; }
h1 .found::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--orange); border-radius: 3px; z-index: -1; opacity: .85; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.lede em { color: var(--ink); font-style: normal; font-weight: 600; }

/* Device images */
.devices { position: relative; margin: 0; padding: 0 0 40px; }
.devices .desktop { width: 84%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(18,60,58,.4); background: #fff; }
.devices .phone { position: absolute; right: 0; bottom: 0; width: 28%; border-radius: 22px; border: 6px solid var(--teal); box-shadow: 0 20px 40px -18px rgba(18,60,58,.55); background: #fff; }
.devices figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 70%; }
@media (max-width: 600px) {
  .devices { padding: 0; }
  .devices .desktop { width: 100%; }
  .devices .phone { position: static; width: 60%; margin: 20px auto 0; }
  .devices figcaption { max-width: none; }
}

/* Sections */
section { padding: 88px 0; }
@media (max-width: 600px) { section { padding: 56px 0; } }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; margin: 12px 0 16px; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.sub { color: var(--muted); font-size: 19px; max-width: 38em; margin: 0; }
.section-head { margin-bottom: 44px; }

/* Demo */
.demo { background: var(--teal); color: var(--paper); }
.demo .eyebrow, .demo .sub { color: #c2d4d0; }
.player { border-radius: 16px; overflow: hidden; background: #0b2524; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; }
.beats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: b; }
@media (max-width: 820px) { .beats { grid-template-columns: minmax(0, 1fr); } }
.beats li { counter-increment: b; }
.beats img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; border-radius: 12px; background: var(--paper); margin-bottom: 14px; }
.beats h3::before { content: counter(b) ". "; color: var(--orange); }
.beats p { margin: 0; color: #c2d4d0; font-size: 16px; }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: s; padding: 0; margin: 0; list-style: none; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.feature p { color: var(--muted); }
.words { background: var(--paper-2); }
.art img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 50px -26px rgba(18,60,58,.45); background: #fff; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px; background: var(--sage); box-shadow: inset 0 0 0 2px var(--teal); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Agents */
.agents { background: var(--paper-2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.code { background: var(--teal); color: var(--paper); border-radius: 12px; padding: 20px; margin: 0; overflow-x: auto; line-height: 1.6; }
.code .k { color: #f7a283; }
.code .c { color: #9dbcb7; }

/* Closing CTA */
.cta { background: var(--teal); color: var(--paper); text-align: center; }
.cta .sub { color: #c2d4d0; margin: 0 auto 32px; }
.cta .fine { color: #c2d4d0; }
.cta .mark { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 20px; }

/* Demo form */
.book h2 { margin-top: 0; }
.book .sub { margin-bottom: 28px; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 16px; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea { font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1.5px solid #b9b09c; border-radius: 10px; padding: 11px 14px; width: 100%; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--teal); }
input[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: 15px; margin: 0; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { justify-self: start; }
.status { margin: 0; min-height: 1.6em; font-size: 16px; }
.status.bad { color: var(--error); font-weight: 500; }
.done { background: var(--sage); border-radius: var(--radius); padding: 24px; }
.done h3 { margin-top: 0; }
.done p { margin: 0; }

/* Footer */
footer { padding: 36px 0 48px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
footer img { height: 24px; width: auto; }
footer p { margin: 0; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.privacy-note { flex: 1 1 280px; }
.copy { flex-basis: 100%; }

/* Prose pages (privacy) */
.prose { padding: 48px 0 72px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); }
.prose h2 { font-size: 24px; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--ink); max-width: 40em; }
.prose .meta { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
