/* The public site (public/site/*). One stylesheet for every page: the header
   and footer, the hero, feature rows and grids, screenshots in a window frame,
   pricing, FAQ and the prose of the legal pages. Inter is served from this
   site (assets/fonts): the security policy loads nothing from other sites. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* The logo's violet: the one brand colour. */
  --brand: #5C4DE6;
  --brand-deep: #4537C8;
  --brand-soft: #EFEDFD;
  --ink: #121419;
  --ink-2: #3D424C;
  --muted: #5F6673;
  --faint: #8A919D;
  --border: #E6E8EC;
  --border-strong: #D6D9DF;
  --surface: #F6F7F9;
  --surface-2: #EFF0F3;
  --white: #FFFFFF;
  --dark: #121419;
  --dark-2: #1C1F26;
  --on-dark: #F4F5F7;
  --on-dark-muted: #A1A6B2;
  --success: #157242;
  --success-soft: #E8F6EE;
  --warn-soft: #FEF4E6;
  --warn: #8A4B05;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(18, 20, 25, 0.05), 0 4px 16px -4px rgba(18, 20, 25, 0.08);
  --shadow-lg: 0 2px 4px rgba(18, 20, 25, 0.04), 0 24px 56px -16px rgba(18, 20, 25, 0.2);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; font-weight: 650; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 2px 5px; border-radius: 5px; }
::selection { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.ic { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* -- Buttons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.1; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 1px 2px rgba(18, 20, 25, 0.12); }
.btn-primary:hover { background: var(--brand-deep); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--faint); background: var(--surface); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--brand); }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-on-dark { background: var(--white); color: var(--ink); }
.btn-on-dark:hover { background: var(--surface-2); color: var(--ink); }
.link { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--brand-deep); }

/* -- Header -------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.025em; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav > li { position: relative; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"], .nav li.is-active > a, .nav li.is-active > button { color: var(--ink); background: var(--surface-2); }
.nav .ic { color: var(--faint); transition: transform .15s ease; }
.nav li:not(.is-closed):hover > button .ic, .nav li.is-open > button .ic, .nav li:not(.is-closed):focus-within > button .ic { transform: rotate(180deg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--white); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

/* The product menu: a grid of every feature page. Opens on hover and on
   focus, and on a tap of the button (site.js). */
.menu { position: absolute; left: 0; top: calc(100% + 10px); width: 720px; padding: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: none; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.nav li:not(.is-closed):hover > .menu, .nav li:not(.is-closed):focus-within > .menu, .nav li.is-open > .menu { display: grid; }
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu a { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 10px 12px; border-radius: 10px; align-items: start; }
.menu a:hover { background: var(--surface); }
.menu .mi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--border); color: var(--ink-2); }
.menu a:hover .mi { color: var(--brand); border-color: var(--border-strong); }
.menu strong { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.menu span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.menu .menu-all { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; padding: 10px; color: var(--brand); font-weight: 600; border-top: 1px solid var(--border); margin-top: 6px; border-radius: 0; }

/* -- Hero ---------------------------------------------------------------------- */
.hero { position: relative; padding: 88px 0 48px; text-align: center; overflow: hidden; }
.hero > .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: border-color .15s ease; }
.eyebrow:hover { border-color: var(--border-strong); color: var(--ink); }
.eyebrow .pill { color: var(--brand); font-weight: 600; }
.eyebrow .ic { color: var(--faint); }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); max-width: 940px; margin: 22px auto 0; letter-spacing: -0.035em; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 760px; margin: 20px auto 0; line-height: 1.55; }
.hero .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .fineprint { margin-top: 14px; font-size: 13px; color: var(--faint); }
.hero .fineprint span + span::before { content: "·"; margin: 0 8px; }

/* A screenshot in a window frame. */
.shot { margin: 56px auto 0; max-width: 1100px; border-radius: 12px; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.shot-bar span { margin-left: 10px; font-size: 12px; color: var(--faint); font-family: var(--mono); }
.shot img { width: 100%; height: auto; }
.shot-caption { text-align: center; font-size: 13px; color: var(--faint); margin-top: 12px; }
.shot.is-phone { max-width: 390px; border-radius: 34px; border: 8px solid var(--dark); box-shadow: var(--shadow-lg); }
.shot.is-phone .shot-bar { display: none; }

/* -- Sections ------------------------------------------------------------------ */
.section { padding: 88px 0; }
.section.is-soft { background: var(--surface); }
.section.is-dark { background: var(--dark); color: var(--on-dark); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker, .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 12px; }
.kicker .ic { display: none; }
.is-dark .kicker { color: #B9B1FA; }
.section-head h2, .h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.028em; }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.is-dark .section-head p { color: var(--on-dark-muted); }
.section-head.is-left { text-align: left; margin-left: 0; }

/* Facts under the hero. */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); text-align: left; }
.fact .ic { color: var(--ink-2); margin-top: 2px; }
.fact strong { display: block; font-size: 15px; }
.fact span { font-size: 13px; color: var(--muted); }

/* Feature rows: words on one side, a screenshot on the other. */
.row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 48px 0; }
.row.is-flipped .row-words { order: 2; }
.row-words .kicker { margin-bottom: 10px; }
.row-words h3 { font-size: clamp(26px, 3vw, 34px); }
.row-words > p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.checks { display: grid; gap: 10px; margin-top: 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checks .ic { color: var(--success); margin-top: 3px; width: 18px; height: 18px; }
.row-words .link { margin-top: 20px; }
.row .shot { margin: 0; }

/* Cards. */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s ease, border-color .15s ease; }
a.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); color: inherit; }
.card .ci { display: inline-flex; color: var(--ink); margin-bottom: 8px; }
.card .ci svg { width: 22px; height: 22px; }
a.card:hover .ci { color: var(--brand); }
.card h3 { font-size: 18px; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 15px; }
.card .figure { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.card .figure .ic { color: var(--faint); }
.card .link { margin-top: auto; padding-top: 8px; font-size: 14.5px; }
.is-dark .card { background: var(--dark-2); border-color: rgba(255, 255, 255, 0.08); }
.is-dark .card h3 { color: var(--on-dark); }
.is-dark .card p { color: var(--on-dark-muted); }
.is-dark .card .ci { color: var(--on-dark); }

/* Steps. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { list-style: none; position: relative; padding: 26px 26px 26px 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.step h3 { font-size: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.step code { font-size: 13px; }

/* A statement block. */
.quote { max-width: 860px; margin: 0 auto; text-align: center; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.quote small { display: block; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.is-dark .quote small { color: var(--on-dark-muted); }

/* A comparison table. */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp th { font-size: 13.5px; color: var(--muted); background: var(--surface); font-weight: 600; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 600; width: 32%; }
.cmp .ic { display: inline-block; vertical-align: -4px; color: var(--success); }
.cmp .no { color: var(--faint); }

/* The CTA band and the footer. */
.cta-band { padding: 96px 0; background: var(--dark); color: var(--on-dark); text-align: center; position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 46px); }
.cta-band p { margin: 16px auto 0; max-width: 620px; color: var(--on-dark-muted); font-size: 18px; }
.cta-band .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 56px 0 32px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer .brand { color: var(--on-dark); font-size: 19px; }
.site-footer .about { margin-top: 14px; max-width: 320px; line-height: 1.55; }
.site-footer h4, .site-footer .footer-heading { color: var(--on-dark); font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; line-height: 1.15; }
.site-footer li + li { margin-top: 9px; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }

/* -- Feature pages --------------------------------------------------------------- */
.page-hero { padding: 72px 0 40px; }
.page-hero .kicker { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); max-width: 860px; letter-spacing: -0.03em; }
.page-hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin-top: 18px; }
.page-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-hero .shot { margin-top: 48px; }
.page-hero.is-centered { text-align: center; }
.page-hero.is-centered h1, .page-hero.is-centered .lead { margin-inline: auto; }
.page-hero.is-centered .cta { justify-content: center; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); font-weight: 600; }
.related a .ic:first-child { color: var(--ink-2); }
.related a .ic:last-child { margin-left: auto; color: var(--faint); }
.related a:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: var(--ink); }
.honest { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); font-size: 14.5px; }
.honest .ic { margin-top: 2px; }

/* -- Pricing ------------------------------------------------------------------------ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pricing-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.pricing-card.is-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.pricing-card .ribbon { position: absolute; top: -11px; left: 24px; background: var(--brand); color: var(--white); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.tier-name { font-size: 19px; font-weight: 650; }
.tier-desc { color: var(--muted); margin: 6px 0 18px; font-size: 14.5px; min-height: 44px; }
.tier-price { font-size: 40px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.tier-price span { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tier-yearly { display: block; min-height: 1.25em; font-size: 12px; color: var(--muted); margin-top: 4px; }
.pricing-card .btn { margin: 22px 0 24px; }
.features-list { display: grid; gap: 11px; }
.features-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.check { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.soon { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--surface-2); color: var(--faint); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tag { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 600; white-space: nowrap; }
.every-plan { margin-top: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.every-plan h2 { font-size: 22px; margin-bottom: 16px; }
.every-plan ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px; }
.every-plan li { display: flex; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.small-print { margin-top: 22px; color: var(--faint); font-size: 13.5px; max-width: 900px; }
.small-print p + p { margin-top: 8px; }

/* FAQ. */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--faint); transition: transform .15s ease; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

/* -- Prose (legal, about, security) ------------------------------------------------- */
.prose { max-width: 780px; margin: 0 auto; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose h1 { font-size: clamp(34px, 4.5vw, 46px); color: var(--ink); margin-bottom: 10px; }
.prose .updated { color: var(--faint); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-size: 24px; color: var(--ink); margin: 44px 0 12px; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 26px 0 8px; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--brand-deep); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 3px; }
.prose .box { padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin: 18px 0; font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.toc a:hover { border-color: var(--brand); color: var(--brand); }

/* Contact. */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); }
.contact-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card .btn { margin-top: 18px; }

/* -- Documentation & Integrations (/docs) ------------------------------------------ */
pre code { background: none; padding: 0; border-radius: 0; color: inherit; font-size: inherit; }
.docs-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; padding-right: 8px; }
.docs-nav-group + .docs-nav-group { margin-top: 22px; }
.docs-nav-title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; padding: 0 10px; }
.docs-nav-list { display: grid; gap: 2px; }
.docs-nav-list a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .12s ease, color .12s ease; }
.docs-nav-list a:hover { background: var(--surface-2); color: var(--ink); }
.docs-nav-list a.is-active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.docs-main { min-width: 0; }
.docs-section { scroll-margin-top: 92px; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--border); }
.docs-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.docs-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.docs-section h2 { font-size: clamp(24px, 3vw, 32px); display: flex; align-items: center; gap: 10px; }
.docs-section h2 .ic { color: var(--ink-2); }
.docs-section h3 { font-size: 19px; margin: 28px 0 10px; }
.docs-section p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.docs-section p + p { margin-top: 12px; }
.docs-callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); font-size: 14.5px; margin: 18px 0; line-height: 1.55; }
.docs-callout .ic { color: var(--brand); margin-top: 2px; }
.code-block { background: var(--dark); color: var(--on-dark); border: 1px solid var(--dark-2); border-radius: var(--radius); overflow: hidden; margin: 16px 0; box-shadow: var(--shadow); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--dark-2); border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 12.5px; color: var(--on-dark-muted); font-family: var(--mono); }
.code-copy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: var(--on-dark); font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.code-copy:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); }
.code-block pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--on-dark); }
.platform-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 14px; }
.platform-tab { padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--white); color: var(--ink-2); font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.platform-tab:hover { border-color: var(--border-strong); color: var(--ink); }
.platform-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.platform-panel { display: none; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; background: var(--surface); }
.platform-panel.is-active { display: block; }
.platform-panel h4, .platform-panel > h3 { font-size: 17px; margin-bottom: 8px; }
.platform-panel ol { margin: 10px 0 0; padding-left: 20px; list-style: decimal; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.platform-panel li + li { margin-top: 6px; }
.http-method { display: inline-block; padding: 2px 8px; border-radius: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; }
.http-get { background: #dbeafe; color: #1d4ed8; }
.http-post { background: #dcfce7; color: #15803d; }
.http-patch { background: #fef3c7; color: #b45309; }
.http-delete { background: #fee2e2; color: #b91c1c; }
.docs-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.docs-badge.is-live { background: var(--success-soft); color: var(--success); }
.docs-dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* -- Responsive ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer .cols > :first-child { grid-column: 1 / -1; }
  .related { grid-template-columns: 1fr 1fr; }
  .docs-shell { grid-template-columns: 1fr; gap: 32px; }
  .docs-sidebar { position: static; max-height: none; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
  .docs-nav-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); margin: 0; }
  .site-header.is-open .nav { display: flex; }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 16px; }
  .menu { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 0 8px 8px; grid-template-columns: 1fr; }
  .nav li:hover > .menu { display: none; }
  .nav li.is-open > .menu { display: grid; }
  .nav-actions { display: none; }
  .nav .mobile-actions { display: flex; gap: 10px; padding: 12px 4px 4px; border-top: 1px solid var(--border); margin-top: 6px; }
  .nav .mobile-actions a { flex: 1; width: auto; justify-content: center; border-radius: 10px; padding: 12px 16px; }
  .nav .mobile-actions a.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--border-strong); }
  .nav .mobile-actions a.btn-primary { background: var(--brand); color: var(--white); }
  .nav .mobile-actions a.btn-primary:hover { background: var(--brand-deep); color: var(--white); }
  .row, .row.is-flipped { grid-template-columns: 1fr; gap: 28px; }
  .row.is-flipped .row-words { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (min-width: 861px) { .nav .mobile-actions { display: none; } }
@media (max-width: 640px) {
  .hero { padding: 56px 0 36px; }
  .section { padding: 60px 0; }
  .facts, .grid-3, .grid-2, .grid-4, .pricing-grid, .related { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .btn-lg { padding: 14px 22px; font-size: 16px; }
  .hero .cta .btn, .page-hero .cta .btn, .cta-band .cta .btn { width: 100%; }
  .cmp th, .cmp td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .nav .ic, .faq summary .ic { transition: none; }
}
