/* MicroAuth website. Same monochrome palette as the app UI kit. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/https/microauth.com/static/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  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 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/https/microauth.com/static/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  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 {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f5;
  --ink: #0a0a0a;
  --ink-soft: #27272a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #0a0a0a;
  --muted: #52525b;
  --faint: #6b6b73;
  --ok: #067647;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgb(10 10 10 / 0.04), 0 1px 1px rgb(10 10 10 / 0.03);
  --shadow-lg: 0 24px 60px rgb(10 10 10 / 0.10), 0 2px 8px rgb(10 10 10 / 0.05);
  --font: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p, ul, ol { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: rgb(10 10 10 / 0.12); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { background: var(--bg); border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-muted); }
.btn-ghost-light { border-color: rgb(255 255 255 / 0.25); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: currentColor; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 0.9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-products { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.nav-trigger:hover, .nav-trigger.is-current, .nav-trigger[aria-expanded="true"] { color: var(--ink); }
.nav-trigger .chevron { width: 16px; height: 16px; transition: transform 0.15s; }
.nav-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.products-menu { position: absolute; top: calc(100% + 26px); left: -14px; width: 456px; max-width: calc(100vw - 40px); padding: 8px; box-shadow: var(--shadow-lg); }
.products-menu ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.nav .menu-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius); color: var(--ink); }
.nav .menu-item:hover, .nav .menu-item[aria-current="page"] { background: var(--bg-muted); }
.menu-item .feature-icon { flex: none; background: var(--bg); border: 1px solid var(--border); }
.menu-text { display: grid; min-width: 0; }
.menu-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.menu-line { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .nav-trigger .chevron { transition: none; } }
.nav-actions { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.nav-actions .signin { color: var(--muted); text-decoration: none; }
.nav-actions .signin:hover { color: var(--ink); }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle .ic-close, .nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.mobile-nav { border-top: 1px solid var(--border); background: #fff; padding: 12px 20px 20px; }
.mobile-nav a:not(.btn) { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 16px; }
.mobile-nav .btn { display: flex; width: 100%; margin-top: 12px; }
.mobile-label { padding: 8px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.mobile-nav a[aria-current="page"]:not(.btn) { font-weight: 600; }
.mobile-rest { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
@media (max-width: 1040px) { .nav { gap: 20px; } }
@media (max-width: 920px) {
  .nav, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; text-wrap: balance; }
.section-head h2 { margin-top: 12px; font-size: 38px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 30px; }
}

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; }
.hero h1 { max-width: 860px; margin: 18px auto 0; font-size: 60px; letter-spacing: -0.035em; line-height: 1.05; }
.hero .lead { max-width: 640px; margin: 22px auto 0; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--faint); }
.hero-visual { max-width: 860px; margin: 56px auto 0; text-align: left; }
.hero.product h1 { max-width: 820px; font-size: 52px; }
.hero.product .lead { max-width: 680px; }
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero h1, .hero.product h1 { font-size: 38px; }
  .hero .lead { font-size: 17px; }
}

.section-more { margin-top: 48px; text-align: center; }
.section-more .text-link { font-size: 16px; }

/* Home page */
.home-hero { padding: 80px 0 88px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: rgb(255 255 255 / 0.75); font-size: 13px; font-weight: 500; color: var(--muted); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
/* Sized so "Sign in for your apps." stays on one line in its column. */
.home-hero h1 { margin-top: 20px; font-size: clamp(42px, 4.4vw, 54px); letter-spacing: -0.035em; line-height: 1.06; text-wrap: balance; }
.home-hero h1 .soft { display: inline-block; color: var(--faint); text-wrap: balance; }
.home-hero .lead { max-width: 540px; margin-top: 20px; }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-notes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 10px no-repeat, var(--ink); }
.home .code-card pre { min-height: calc(16 * 1.7em + 40px); font-size: 13px; }
@media (max-width: 1180px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .home-hero-copy { max-width: 680px; }
  .home-code { max-width: 720px; }
}
@media (max-width: 640px) {
  .home-hero { padding: 48px 0 56px; }
  .home-hero h1 { font-size: clamp(32px, 9vw, 38px); }
  .home-hero .lead { font-size: 17px; }
  .home .code-card pre { min-height: 0; font-size: 12.5px; }
}

.home-products { padding: 16px 0 96px; }
.product-card { display: flex; flex-direction: column; padding: 24px; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.product-card:hover { border-color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card h3 { margin-top: 16px; font-size: 17px; letter-spacing: -0.01em; }
.product-card p { flex: 1; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.product-card .more { margin-top: 16px; font-size: 14px; font-weight: 500; }
.product-card .more::after, .home .section-more .text-link::after { content: ' \2192'; }
@media (prefers-reduced-motion: reduce) { .product-card, .product-card:hover { transition: none; transform: none; } }

.why { padding: 96px 0; background: var(--ink); color: #fff; }
.why .kicker { color: rgb(255 255 255 / 0.6); }
.why .section-head p { color: rgb(255 255 255 / 0.7); }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why-item { padding: 26px; border: 1px solid rgb(255 255 255 / 0.10); border-radius: var(--radius-lg); background: rgb(255 255 255 / 0.04); }
.why-item .feature-icon { background: rgb(255 255 255 / 0.08); color: #fff; }
.why-item h3 { margin-top: 18px; font-size: 17px; letter-spacing: -0.01em; }
.why-item p { margin-top: 8px; font-size: 15px; color: rgb(255 255 255 / 0.72); }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: minmax(0, 1fr); } .why { padding: 64px 0; } }

.home .ticks.lg { gap: 22px; }
.home .mock-scopes { margin-top: 4px; }

.home-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: home-step; }
.home-steps li { padding: 28px; counter-increment: home-step; }
.home-steps li::before { content: counter(home-step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.home-steps h3 { margin-top: 18px; font-size: 18px; letter-spacing: -0.01em; }
.home-steps p { margin-top: 8px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .home-steps { grid-template-columns: minmax(0, 1fr); } }

.teaser-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 56px; padding: 32px 36px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-subtle);
}
.teaser-card h2 { font-size: 26px; }
.teaser-card p { max-width: 600px; margin-top: 8px; color: var(--muted); }
@media (max-width: 640px) { .teaser-card { padding: 24px; } .teaser-card h2 { font-size: 22px; } }
.home-faq { border-bottom: 0; }

.page-hero { padding: 72px 0 40px; }
.page-hero h1 { margin-top: 12px; font-size: 48px; letter-spacing: -0.03em; }
.page-hero .lead { margin-top: 16px; max-width: 680px; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .page-hero { padding: 48px 0 28px; } .page-hero h1 { font-size: 36px; } }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-pad { padding: 28px; }
.feature h3 { margin-top: 18px; font-size: 17px; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-muted); color: var(--ink); }

/* Split rows (text and visual side by side) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.flip > :first-child { order: 2; }
.split h3 { margin-top: 14px; font-size: 28px; }
.split p { margin-top: 12px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--bg); }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split.flip > :first-child { order: 0; }
  .split + .split { margin-top: 64px; }
}

/* Code cards */
.code-card { overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: #e4e4e7; box-shadow: var(--shadow-lg); }
.code-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 46px; padding: 6px 10px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.code-title { margin-left: 6px; font-family: var(--mono); font-size: 12px; color: rgb(255 255 255 / 0.6); }
.code-tab { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: rgb(255 255 255 / 0.55); font-size: 13px; font-weight: 500; cursor: pointer; }
.code-tab:hover { color: #fff; }
.code-tab[aria-selected="true"] { background: rgb(255 255 255 / 0.1); color: #fff; }
@media (max-width: 640px) { .code-tab { padding: 0 9px; } }
.copy-btn { margin-left: auto; height: 28px; padding: 0 10px; border: 1px solid rgb(255 255 255 / 0.15); border-radius: 8px; background: none; color: rgb(255 255 255 / 0.7); font-size: 12px; cursor: pointer; }
.copy-btn:hover { color: #fff; border-color: rgb(255 255 255 / 0.4); }
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; }
.code-card pre code { display: inline-block; min-width: 100%; }
.code-card pre:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.7); }
.code-foot { padding: 12px 20px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 13px; color: rgb(255 255 255 / 0.5); }
.tok-k { color: #fff; font-weight: 600; }
.tok-s { color: #a1a1aa; }
.tok-c { color: #8b8b94; }
.tok-f { color: #fff; }
.code-card pre.diff { padding: 16px 0; }
.diff .line { display: block; padding: 0 20px 0 18px; border-left: 2px solid transparent; }
.diff .add { border-left-color: #fff; background: rgb(255 255 255 / 0.07); }
.code-light { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle); }
.code-light .code-head { min-height: 38px; border-bottom-color: var(--border); }
.code-light .code-title { color: var(--faint); }
.code-light pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.code-light pre:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--faint); }
.code-light .copy-btn { border-color: var(--border); color: var(--muted); }
.code-light .copy-btn:hover { color: var(--ink); border-color: var(--ink); }
.endpoints { list-style: none; padding: 20px; display: grid; gap: 10px; }
.endpoints li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 14px; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 10px; background: rgb(255 255 255 / 0.04); }
.endpoints .method { width: 40px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #fff; }
.endpoints code { font-size: 13px; color: #fff; }
.endpoints span:last-child { margin-left: auto; font-size: 13px; color: rgb(255 255 255 / 0.5); }
@media (max-width: 640px) { .endpoints span:last-child { margin-left: 54px; flex-basis: 100%; } }

/* Product mockups */
.mock { padding: 24px; }
.mock-bar { display: flex; align-items: center; gap: 6px; margin: -24px -24px 20px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-url { margin-left: 10px; padding: 3px 12px; border-radius: 8px; background: var(--bg-muted); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.mock-brand i { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); }
.mock-pill { padding: 3px 10px; border-radius: 999px; background: var(--bg-muted); font-size: 12px; color: var(--muted); }
.mock-box { margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-subtle); }
.mock-label { font-size: 12px; color: var(--muted); }
.mock-value { margin-top: 2px; font-size: 15px; font-weight: 600; }
.mock-key { margin-top: 2px; font-family: var(--mono); font-size: 13px; }
.mock-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mock-grid > div { padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; margin-top: 18px; }
.bars span { flex: 1; min-width: 0; border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--border-strong), var(--ink)); }
.mock-list { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 14px; }
.mock-list div { display: flex; justify-content: space-between; gap: 12px; }
.mock-signin { display: grid; gap: 10px; max-width: 320px; margin: 4px auto 0; }
.mock-signin .mock-brand { justify-content: center; }
.mock-title { margin: 4px 0 6px; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.mock-field { height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 14px; line-height: 38px; color: var(--ink); }
.mock-faint { color: var(--faint); }
.mock-block { justify-content: center; height: 40px; }
.mock-ghost { background: var(--bg); border: 1px solid var(--border-strong); color: var(--ink); }
.mock-or { text-align: center; font-size: 12px; color: var(--faint); }
.mock-users { margin-top: 16px; display: grid; gap: 4px; }
.mock-users > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mock-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-muted); font-size: 12px; font-weight: 600; color: var(--muted); }
.mock-who { display: grid; flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.mock-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }

/* Request lifecycle */
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: flow; }
.flow li { position: relative; counter-increment: flow; }
.flow li::before { content: counter(flow); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.flow li:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: 44px; right: -16px; height: 1px; background: var(--border-strong); }
.flow h3 { margin-top: 14px; font-size: 16px; letter-spacing: -0.01em; }
.flow p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.callout { max-width: 640px; margin: 48px auto 0; padding: 14px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); text-align: center; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li::after { display: none; }
}
@media (max-width: 520px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* Numbered setup steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; counter-reset: step; }
.steps > li { counter-increment: step; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-head::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.step-head h3 { font-size: 18px; letter-spacing: -0.01em; }
.step-body { margin-top: 12px; padding-left: 46px; min-width: 0; }
.step-body > p { color: var(--muted); }
.step-body > * + * { margin-top: 12px; }
.inline-code, .legal code, .faq code { padding: 1px 6px; border-radius: 6px; background: var(--bg-muted); font-size: 0.88em; }
@media (max-width: 640px) { .step-body { padding-left: 0; } }

/* Terminal responses */
.term { list-style: none; padding: 20px; display: grid; gap: 18px; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.term .cmd { color: rgb(255 255 255 / 0.6); overflow-wrap: anywhere; }
.term .res { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
.term .status { flex: none; padding: 0 7px; border-radius: 6px; background: rgb(255 255 255 / 0.12); color: #fff; font-weight: 700; }
.term .status.good { background: #fff; color: var(--ink); }
.term .body { color: rgb(255 255 255 / 0.85); overflow-wrap: anywhere; }

/* Checklist */
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; margin-top: calc((1lh - 18px) / 2); border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ticks.off li::before { background: var(--bg-muted); }
.ticks li.off { color: var(--faint); }
.ticks li.off::before { background: var(--bg-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b73' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ticks.lg li { gap: 14px; }
.ticks.lg li::before { margin-top: 0; }
.ticks.lg h3 { margin-top: 0; font-size: 16px; letter-spacing: -0.01em; }
.ticks.lg p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Pricing */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.jump a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.jump a:hover { border-color: var(--ink); }
.plan-switch { display: inline-flex; gap: 4px; margin-top: 32px; padding: 4px; border-radius: 999px; background: var(--bg-muted); scroll-margin-top: 88px; }
.plan-switch [role="tab"] { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.plan-switch [role="tab"]:hover { color: var(--ink); }
.plan-switch [aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--border), var(--shadow); }
@media (max-width: 400px) { .plan-switch [role="tab"] { padding: 0 14px; font-size: 14px; } }
.plan-group { scroll-margin-top: 88px; }
.plan-group + .plan-group { margin-top: 88px; }
.group-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.group-head h2 { font-size: 32px; }
.group-head p { max-width: 620px; margin-top: 10px; color: var(--muted); }
.group-head .per-note { font-size: 14px; color: var(--faint); }
@media (max-width: 640px) { .group-head h2 { font-size: 26px; } .plan-group + .plan-group { margin-top: 64px; } }
.tabbed .plan-group + .plan-group { margin-top: 0; }
.tabbed .group-head { display: block; text-align: center; }
.tabbed .group-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabbed .group-head p { margin: 0 auto; }
.tabbed .group-head .per-note { margin-top: 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-lg); }
.plan h2, .plan .plan-name { font-size: 20px; letter-spacing: -0.01em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.plan .amount { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan .per { font-size: 14px; color: var(--muted); }
.plan .ticks { margin: 24px 0 28px; font-size: 15px; }
.plan .btn { margin-top: auto; }
.plan .blurb { margin-top: 8px; font-size: 14px; color: var(--muted); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 30px; }
.trial-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgb(10 10 10 / 0.18); }
.trial-badge svg { width: 15px; height: 15px; flex: none; }
.trial-note { max-width: 680px; margin: 24px auto 0; font-size: 14px; line-height: 1.55; color: var(--muted); text-align: center; text-wrap: balance; }
.included { margin-top: 20px; }
.included .ticks { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 15px; }
@media (max-width: 900px) { .included .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .included .ticks { grid-template-columns: minmax(0, 1fr); } }
.custom-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 28px; }
.custom-plan h2 { font-size: 20px; letter-spacing: -0.01em; }
.custom-plan p { margin-top: 6px; max-width: 620px; color: var(--muted); }

/* FastAPI page */
.fa-hero h1 { max-width: 1080px; font-size: clamp(38px, 5vw, 54px); text-wrap: balance; }
.hero h1 .soft { display: block; color: var(--faint); }
.hero .hero-notes { justify-content: center; }
.examples { padding: 8px 0 104px; }
.usecase-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; scroll-margin-top: 88px; }
.usecase-tabs [role="tab"] { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s; }
.usecase-tabs [role="tab"]:hover { border-color: var(--ink); }
.usecase-tabs [role="tab"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.usecase-tabs .feature-icon { width: 36px; height: 36px; margin-bottom: 12px; }
.usecase-tabs strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.usecase-tabs small { font-size: 14px; line-height: 1.45; color: var(--muted); }
.usecase-tabs [aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.usecase-tabs [aria-selected="true"] small { color: rgb(255 255 255 / 0.7); }
.usecase-tabs [aria-selected="true"] .feature-icon { background: rgb(255 255 255 / 0.12); color: #fff; }
.usecase { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "head head" "steps side"; gap: 36px 48px; margin-top: 20px; padding: 40px; box-shadow: var(--shadow-lg); }
.usecase[hidden] { display: none; }
.usecase-head { grid-area: head; }
.usecase-head h3 { font-size: 28px; }
.usecase-head p { max-width: 660px; margin-top: 8px; font-size: 17px; color: var(--muted); }
.usecase .steps { grid-area: steps; gap: 36px; }
.usecase .step-head h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.usecase-list { display: grid; gap: 8px; padding-left: 20px; color: var(--muted); }
.usecase-side { grid-area: side; align-self: start; position: sticky; top: 88px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-subtle); }
.usecase-side h4 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.usecase-side .ticks { margin-top: 16px; gap: 10px; font-size: 15px; }
.usecase-side .btn { width: 100%; height: auto; min-height: 44px; margin-top: 24px; padding: 10px 20px; white-space: normal; text-align: center; }
.usecase-plan { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.usecase-side > .text-link { display: inline-block; margin-top: 14px; font-size: 14.5px; }
@media (max-width: 1000px) {
  .usecase { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "steps"; }
  .usecase-side { position: static; }
}
@media (max-width: 860px) { .usecase-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .fa-hero h1 { font-size: 32px; }
  .usecase { padding: 20px; gap: 28px; }
  .usecase-head h3 { font-size: 24px; }
  .usecase-tabs [role="tab"] { padding: 14px; }
  .usecase-tabs .feature-icon { margin-bottom: 8px; }
  .usecase-tabs strong { font-size: 15px; }
  .usecase-tabs small { font-size: 13px; }
}
.why-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .why-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 1.7px solid var(--muted); border-bottom: 1.7px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > p { padding: 0 32px 22px 0; color: var(--muted); }
.faq details > p + p { margin-top: -10px; }

/* Call to action */
.cta { background: var(--ink); color: #fff; }
.cta .wrap { padding-top: 80px; padding-bottom: 80px; text-align: center; }
.cta h2 { font-size: 36px; }
.cta p { max-width: 560px; margin: 14px auto 0; color: rgb(255 255 255 / 0.65); font-size: 17px; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
@media (max-width: 640px) { .cta h2 { font-size: 28px; } }

/* Contact */
.contact-card { display: flex; flex-direction: column; padding: 28px; }
.contact-card h2 { font-size: 19px; letter-spacing: -0.01em; }
.contact-card p { flex: 1; margin-top: 8px; color: var(--muted); font-size: 15px; }
.contact-card a { margin-top: 18px; font-weight: 500; }

/* Legal and long form */
.legal { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.legal h2 { margin: 44px 0 12px; font-size: 22px; color: var(--ink); }
.legal h3 { margin: 26px 0 8px; font-size: 17px; color: var(--ink); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal a { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: currentColor; }
.updated { margin-top: 12px; font-size: 14px; color: var(--faint); }

.diagram { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 28px; }
.diagram .node { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); text-align: center; }
.diagram .node.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.diagram .node strong { display: block; font-size: 15px; }
.diagram .node span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.diagram .node.dark span { color: rgb(255 255 255 / 0.6); }
.diagram .link { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--faint); text-align: center; }
.diagram .link i { display: block; width: 56px; height: 1px; margin: 0 auto; background: var(--border-strong); }
@media (max-width: 760px) {
  .diagram { grid-template-columns: minmax(0, 1fr); }
  .diagram .link i { width: 1px; height: 22px; }
}

/* Report a page */
.report { padding-bottom: 96px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.report-card { display: grid; gap: 24px; padding: 28px; }
.report-card h2 { font-size: 19px; letter-spacing: -0.01em; }
.report-card > p { color: var(--muted); font-size: 15px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { padding: 0; font-size: 15px; font-weight: 600; }
.field .optional { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--faint); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 15px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(10 10 10 / 0.08); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b42318; }
.field .hint { font-size: 14px; color: var(--muted); }
.field-error { font-size: 14px; color: #b42318; }
.form-problem { padding: 12px 14px; border-radius: var(--radius); background: #fef3f2; color: #b42318; font-size: 15px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--bg-subtle); }
.choice input { margin: 3px 0 0; accent-color: var(--ink); }
.choice span { font-size: 15px; font-weight: 400; color: var(--muted); }
.choice strong { display: block; font-weight: 600; color: var(--ink); }
.report-aside { padding: 4px 0; font-size: 15px; color: var(--muted); }
.report-aside h2 { font-size: 16px; color: var(--ink); }
.report-aside ul { display: grid; gap: 12px; margin-top: 12px; padding-left: 18px; }
@media (max-width: 860px) { .report-grid { grid-template-columns: minmax(0, 1fr); } }

/* Not found */
.not-found { padding: 120px 0; text-align: center; }
.not-found h1 { margin-top: 12px; font-size: 44px; }
.not-found p { max-width: 460px; margin: 16px auto 0; color: var(--muted); }
.not-found .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-subtle); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer .about p { max-width: 300px; margin-top: 16px; color: var(--muted); }
.site-footer h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--ink); }
.site-footer .legalline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
