:root {
  --bg: #fbfaf7;
  --bg-alt: #f2f0ea;
  --card: #ffffff;
  --ink: #16181a;
  --ink-2: #4a4f55;
  --ink-3: #737a82;
  --line: #e4e1d8;
  --accent: #0e7a4e;
  --accent-ink: #ffffff;
  --accent-soft: #e3f2ea;
  --warn-soft: #fdf3e1;
  --warn-line: #f0d9a8;
  --bubble-in: #ffffff;
  --bubble-out: #16181a;
  --bubble-out-ink: #ffffff;
  --code-bg: #f2f0ea;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
  --radius: 14px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1112;
    --bg-alt: #16191b;
    --card: #1b1f21;
    --ink: #eceae4;
    --ink-2: #b3b8bd;
    --ink-3: #8a9096;
    --line: #2a2f33;
    --accent: #3cc489;
    --accent-ink: #06140d;
    --accent-soft: #14281f;
    --warn-soft: #2a2416;
    --warn-line: #4a3d1e;
    --bubble-in: #23282b;
    --bubble-out: #eceae4;
    --bubble-out-ink: #121416;
    --code-bg: #1b1f21;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font: 700 15px/1 var(--sans); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: var(--accent-ink); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.sm { padding: 7px 13px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06;
  letter-spacing: -.02em; margin: 18px 0 18px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 36em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--ink-3); margin-top: 14px; }

/* chat mock */
.phone { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 26px; padding: 18px 16px; box-shadow: var(--shadow); }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.phone-head b { display: block; font-size: 15px; }
.phone-head span { font-size: 12px; color: var(--ink-3); }
.msgs { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; white-space: pre-line; }
.msg.in { background: var(--bubble-in); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.out { background: var(--bubble-out); color: var(--bubble-out-ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.note { align-self: center; font-size: 12px; color: var(--ink-3); background: none; padding: 2px; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.015em; line-height: 1.15; margin: 0 0 12px; }
.section-lede { color: var(--ink-2); font-size: 18px; max-width: 40em; margin: 0 0 40px; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.005em; }

.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; }
.caption { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 19px; height: 19px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.checks b { color: var(--ink); }

.limits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .limits { grid-template-columns: 1fr; } }
.limit { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 20px 22px; }
.limit p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .dl { grid-template-columns: 1fr; } }
.dl a { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; transition: border-color .12s, transform .12s, box-shadow .12s; }
.dl a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.dl b { display: block; font-size: 18px; margin-bottom: 2px; }
.dl span { display: block; font-size: 14px; color: var(--ink-3); }
.dl .go { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 15px; }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
@media (max-width: 720px) { .specs { grid-template-columns: repeat(2, 1fr); } }
.specs div { background: var(--card); padding: 18px; }
.specs b { display: block; font-size: 22px; letter-spacing: -.01em; }
.specs span { font-size: 13.5px; color: var(--ink-3); }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--ink-3); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; color: var(--ink-2); }

footer { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer a { color: var(--ink-2); }

/* docs */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 48px 20px 80px; max-width: 1120px; margin: 0 auto; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; } .toc { position: static !important; margin-bottom: 24px; } .toc ol { display: grid; grid-template-columns: 1fr 1fr; } .toc a { padding: 4px 6px; font-size: 13.5px; } }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14.5px; }
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 5px 10px; color: var(--ink-2); text-decoration: none; border-radius: 6px; }
.toc a:hover { background: var(--bg-alt); color: var(--ink); }
.prose { max-width: 740px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 46px); margin-top: 0; }
.prose h2 { margin-top: 56px; padding-top: 8px; font-size: 30px; scroll-margin-top: 80px; }
.prose h3 { margin-top: 32px; font-size: 19px; scroll-margin-top: 80px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 8px 0; }
.prose figure { margin: 24px 0 28px; }
.prose figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.prose code { font: 14px var(--mono); background: var(--code-bg); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); }
.prose pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.6; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
