/*
 * AffinEQ marketing site. Same identity as the dashboard (spec §10.3): warm
 * neutrals and a terracotta brand, Plus Jakarta Sans and JetBrains Mono,
 * self-hosted. The tokens below are copied from the dashboard's globals.css;
 * if they change there, change them here.
 *
 * No framework, no build step, no third-party request: the whole page is
 * a few tens of kilobytes, because the people we are building for pay for
 * every byte (VISION §1).
 */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --surface: oklch(0.985 0.004 80);
  --surface-raised: oklch(1 0 0);
  --surface-sunken: oklch(0.965 0.006 80);
  --line: oklch(0.90 0.008 80);
  --line-strong: oklch(0.80 0.010 80);
  --text: oklch(0.22 0.012 60);
  --text-muted: oklch(0.46 0.014 60);
  --text-faint: oklch(0.62 0.012 60);
  --brand: oklch(0.62 0.16 40);
  --brand-hover: oklch(0.56 0.16 40);
  --brand-text: oklch(0.99 0 0);
  --brand-soft: oklch(0.95 0.035 40);
  --brand-ink: oklch(0.48 0.15 40);
  --success: oklch(0.55 0.14 150);
  --success-soft: oklch(0.95 0.04 150);
  --warning: oklch(0.55 0.13 75);
  --warning-soft: oklch(0.96 0.05 75);
  --focus: oklch(0.62 0.16 40 / 0.45);
  --code-bg: oklch(0.20 0.010 60);
  --code-text: oklch(0.93 0.008 80);
  --code-muted: oklch(0.62 0.010 70);
  --code-key: oklch(0.78 0.12 40);
  --code-str: oklch(0.80 0.10 150);
  --code-fn: oklch(0.82 0.09 85);
  --shadow: 0 1px 2px oklch(0.2 0.02 60 / 0.06), 0 12px 32px -12px oklch(0.2 0.02 60 / 0.18);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --surface: oklch(0.17 0.008 60);
  --surface-raised: oklch(0.21 0.009 60);
  --surface-sunken: oklch(0.14 0.008 60);
  --line: oklch(0.28 0.010 60);
  --line-strong: oklch(0.38 0.012 60);
  --text: oklch(0.95 0.006 80);
  --text-muted: oklch(0.72 0.010 80);
  --text-faint: oklch(0.55 0.010 80);
  --brand: oklch(0.72 0.15 40);
  --brand-hover: oklch(0.78 0.14 40);
  --brand-text: oklch(0.15 0.02 40);
  --brand-soft: oklch(0.28 0.05 40);
  --brand-ink: oklch(0.80 0.12 40);
  --success: oklch(0.74 0.14 150);
  --success-soft: oklch(0.26 0.05 150);
  --warning: oklch(0.80 0.14 75);
  --warning-soft: oklch(0.28 0.06 75);
  --focus: oklch(0.72 0.15 40 / 0.5);
  --code-bg: oklch(0.12 0.008 60);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 16px 40px -12px oklch(0 0 0 / 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-soft); color: var(--text); }
code, pre, .mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--brand-text);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── type ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); max-width: 40em; line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.muted { color: var(--text-muted); }
.hl { color: var(--brand); }

/* ── buttons & chips ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 0.97rem; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-text); box-shadow: 0 6px 18px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-sunken); border-color: var(--text-faint); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn svg { width: 16px; height: 16px; transition: transform 150ms var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.chip-live { background: var(--success-soft); color: var(--success); }
.chip-next { background: var(--warning-soft); color: var(--warning); }
.chip-plain { background: var(--surface-sunken); color: var(--text-muted); border-color: var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; } 50% { opacity: .55; box-shadow: 0 0 0 5px transparent; } }

/* ── header ───────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--brand-text);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; letter-spacing: 0;
}
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 0.93rem; font-weight: 550; color: var(--text-muted); text-decoration: none; transition: color 150ms, background 150ms; }
.nav a:hover { color: var(--text); background: var(--surface-sunken); }
.nav a[aria-current="page"] { color: var(--text); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-end .signin { display: none; }
/* the drawer carries the call to action on a phone; the bar keeps room for the menu */
@media (max-width: 559px) { .header-end > .btn-primary { display: none; } .header .wrap { gap: 12px; } }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background 150ms, border-color 150ms;
}
.icon-btn:hover { background: var(--surface-sunken); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.menu-btn { display: grid; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-end .signin { display: inline-flex; }
  .menu-btn { display: none; }
}
.drawer { display: none; border-top: 1px solid var(--line); background: var(--surface); padding: 12px 20px 20px; }
.drawer.open { display: block; }
.drawer a { display: block; padding: 14px 4px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 16px; width: 100%; }
@media (min-width: 900px) { .drawer, .drawer.open { display: none; } }

/* ── hero ─────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
@media (min-width: 900px) { .hero { padding: 88px 0 104px; } }
/* A woven field: diamonds and bars in the line colour, faded out toward the
   edges so it reads as texture rather than pattern. Abstract on purpose. */
.weave {
  position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23c9a893' stroke-opacity='.38' stroke-width='1.4'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 28%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 78% 28%, #000 0%, transparent 72%);
}
:root[data-theme="dark"] .weave { filter: brightness(.7); }
.hero::after {
  content: ""; position: absolute; z-index: -2; inset: -20% -10% auto auto; width: 70%; height: 90%;
  background: radial-gradient(closest-side, var(--brand-soft), transparent 70%); opacity: .8;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
/* minmax(0,…): a track's minimum is its content's, and the code card's is wide */
.hero-grid > * { min-width: 0; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.hero h1 { margin: 22px 0 22px; }
.hero h1 .hl { white-space: nowrap; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 0.88rem; color: var(--text-faint); }
.hero-note a { color: var(--text-muted); text-underline-offset: 3px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-raised);
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-decoration: none;
}
.status-pill .dot { color: var(--success); }
.status-pill b { color: var(--text); font-weight: 650; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.facts li { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* the code card and the phone */
.stage { position: relative; }
.code-card {
  background: var(--code-bg); color: var(--code-text); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid oklch(0.3 0.01 60 / .6); overflow: hidden;
}
.code-tabs { display: flex; gap: 2px; padding: 10px 10px 0; border-bottom: 1px solid oklch(0.3 0.01 60); overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs button {
  font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--code-muted);
  background: none; border: 0; padding: 10px 14px; cursor: pointer; border-radius: 8px 8px 0 0; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.code-tabs button:hover { color: var(--code-text); }
.code-tabs button[aria-selected="true"] { color: var(--code-text); border-bottom-color: var(--brand); }
.code-tabs button:focus-visible { outline-offset: -2px; }
.code-card pre { margin: 0; padding: 22px 24px 26px; font-size: 0.84rem; line-height: 1.75; overflow-x: auto; min-height: 300px; tab-size: 2; }
.code-card [role="tabpanel"][hidden] { display: none; }
.k { color: var(--code-key); } .s { color: var(--code-str); } .f { color: var(--code-fn); } .c { color: var(--code-muted); font-style: italic; }
.code-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid oklch(0.3 0.01 60); font-size: 0.78rem; color: var(--code-muted); }
.code-foot a { color: var(--code-text); text-underline-offset: 3px; }

.phone {
  display: none; position: absolute; width: 176px; z-index: 2;
  background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 30px; padding: 9px;
  box-shadow: var(--shadow); transform: rotate(3deg);
}
/* The phone hangs off the card's right edge into the page margin, so it
   never covers a line of code. That margin exists only on wide screens. */
@media (min-width: 1360px) {
  .phone { display: block; right: -128px; bottom: -36px; width: 176px; }
  .stage .code-card pre { padding-right: 84px; }
}
.phone-screen { background: var(--surface-sunken); border-radius: 22px; padding: 18px 12px 16px; min-height: 286px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.phone-notch { width: 54px; height: 5px; background: var(--line-strong); border-radius: 4px; margin: -6px auto 6px; }
.phone-title { font-weight: 750; font-size: 0.95rem; letter-spacing: -.02em; }
.phone-field { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 0.74rem; color: var(--text-muted); }
.phone-field b { display: block; color: var(--text); font-weight: 650; font-size: 0.8rem; }
.phone-btn { background: var(--brand); color: var(--brand-text); text-align: center; padding: 8px; border-radius: 10px; font-size: 0.78rem; font-weight: 700; }
.sms {
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px;
  padding: 8px 10px; font-size: 0.72rem; color: var(--text); box-shadow: 0 4px 14px -6px oklch(0.2 0.02 60 / .25);
  opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.sms small { display: block; color: var(--text-faint); margin-bottom: 2px; }
.sms .otp { font-family: "JetBrains Mono", monospace; font-weight: 700; letter-spacing: .06em; color: var(--brand-ink); white-space: nowrap; }
.welcome {
  position: absolute; inset: auto 10px 12px 10px; background: var(--success-soft); color: var(--success);
  border-radius: 12px; padding: 10px; font-size: 0.76rem; font-weight: 700; text-align: center;
  opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.phone[data-stage="sms"] .sms, .phone[data-stage="done"] .sms { opacity: 1; transform: none; }
.phone[data-stage="done"] .welcome { opacity: 1; transform: none; }
.phone[data-stage="done"] .phone-btn { opacity: 0; }
.phone-btn { transition: opacity 300ms var(--ease); }
.phone-cap { margin-top: 8px; text-align: center; font-size: 0.66rem; color: var(--text-faint); letter-spacing: .04em; text-transform: uppercase; }

/* ── sections ─────────────────────────────────────────────────── */
section { padding: 88px 0; }
@media (max-width: 719px) { section { padding: 64px 0; } }
.band { background: var(--surface-sunken); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head .lede { max-width: 38em; }

.cards { display: grid; gap: 18px; }
@media (min-width: 720px) { .cards.c2 { grid-template-columns: repeat(2, 1fr); } .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; transition: border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.6; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 6px; }
.ico svg { width: 22px; height: 22px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card .more { margin-top: auto; padding-top: 6px; font-size: 0.9rem; font-weight: 650; color: var(--brand-ink); text-decoration: none; }
.card .more:hover { text-decoration: underline; text-underline-offset: 3px; }

.here .card { background: transparent; }
.here .card:hover { background: var(--surface-raised); }
.here .num { font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--brand-ink); font-weight: 700; letter-spacing: .08em; }

/* proof */
.proof { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .proof { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.checks { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-raised); }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check svg { width: 22px; height: 22px; color: var(--success); margin-top: 2px; }
.check b { display: block; font-weight: 700; margin-bottom: 2px; letter-spacing: -.01em; }
.check span { color: var(--text-muted); font-size: 0.94rem; line-height: 1.55; display: block; }
.term {
  background: var(--code-bg); color: var(--code-text); border-radius: var(--radius-lg); padding: 22px 24px;
  font-family: "JetBrains Mono", ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 0.8rem; line-height: 1.8; box-shadow: var(--shadow); border: 1px solid oklch(0.3 0.01 60 / .6);
}
.term .p { color: var(--code-key); } .term .ok { color: var(--code-str); }
.term-title { display: flex; gap: 7px; margin-bottom: 16px; }
.term-title i { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.4 0.01 60); }

/* moving over */
.move { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .move { grid-template-columns: 1fr 1fr; gap: 72px; } }
.diff { background: var(--code-bg); color: var(--code-text); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.diff pre { margin: 0; padding: 22px 24px; font-size: 0.84rem; line-height: 1.8; overflow-x: auto; }
.diff .del { color: oklch(0.72 0.12 25); display: block; } .diff .add { color: var(--code-str); display: block; }
.diff .del::before { content: "−  "; } .diff .add::before { content: "+  "; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-muted); font-size: 0.97rem; }
.ticks svg { width: 20px; height: 20px; color: var(--brand); margin-top: 3px; }
.ticks b { color: var(--text); }

/* letter */
.letter { display: grid; gap: 40px; max-width: 880px; margin: 0 auto; }
.letter-body { position: relative; padding: 44px 40px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 719px) { .letter-body { padding: 30px 22px; } }
.letter-body::before {
  content: "“"; position: absolute; top: -6px; right: 28px; font-size: 8rem; line-height: 1; color: var(--brand-soft);
  font-weight: 800; pointer-events: none; user-select: none;
}
.letter-body > * { position: relative; }
.letter-body p { font-size: 1.1rem; line-height: 1.75; color: var(--text); margin-bottom: 1.1em; }
.letter-body p.first::first-line { font-weight: 700; }
.letter-body .sign { margin: 28px 0 0; padding-top: 22px; border-top: 1px dashed var(--line-strong); display: flex; align-items: center; gap: 14px; }
.sign .mark { width: 42px; height: 42px; font-size: 1.2rem; border-radius: 12px; }
.sign b { display: block; font-size: 1rem; }
.sign div span { font-size: .88rem; color: var(--text-muted); }
.letter h2 { text-align: center; }

/* not yet */
.todo { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-raised); }
.todo-row { display: grid; gap: 6px 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); align-items: baseline; }
.todo-row:last-child { border-bottom: 0; }
@media (min-width: 820px) { .todo-row { grid-template-columns: 240px 1fr 130px; } .todo-row .chip { justify-self: end; } }
.todo-row b { font-weight: 700; letter-spacing: -.01em; }
.todo-row span { color: var(--text-muted); font-size: .95rem; }

/* partners teaser */
.cta-partners { position: relative; overflow: hidden; border-radius: 24px; background: var(--code-bg); color: var(--code-text); padding: 56px 40px; isolation: isolate; }
@media (max-width: 719px) { .cta-partners { padding: 40px 24px; } }
.cta-partners::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23d6805a' stroke-opacity='.35' stroke-width='1.4'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000, transparent 70%);
}
.cta-partners h2 { max-width: 16em; }
.cta-partners p { color: var(--code-muted); max-width: 38em; margin: 18px 0 30px; font-size: 1.08rem; }
.cta-partners .eyebrow { color: var(--code-key); }
.cta-partners .btn-primary { box-shadow: none; }
.cta-partners .btn-ghost { color: var(--code-text); border-color: oklch(0.4 0.01 60); }
.cta-partners .btn-ghost:hover { background: oklch(0.26 0.01 60); }
.duo { display: grid; gap: 14px; margin: 0 0 32px; max-width: 46rem; }
@media (min-width: 720px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo div { border: 1px solid oklch(0.32 0.01 60); border-radius: 14px; padding: 18px 20px; background: oklch(0.2 0.01 60 / .6); }
.duo b { display: block; margin-bottom: 4px; }
.duo span { color: var(--code-muted); font-size: .92rem; line-height: 1.5; }

/* closing */
.closing { text-align: center; padding: 100px 0 96px; }
.closing h2 { margin: 18px auto 18px; max-width: 14em; }
.closing .lede { margin: 0 auto 34px; }
.closing .hero-cta { justify-content: center; margin-top: 0; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--surface-sunken); }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; color: var(--text-muted); font-size: .95rem; }
.footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-note { margin-top: 12px; font-size: .9rem; color: var(--text-muted); max-width: 26em; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .84rem; color: var(--text-faint); }

/* ── partners page ────────────────────────────────────────────── */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 56px; isolation: isolate; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 20px 0; max-width: 15em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
table.tracks { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .96rem; }
.tracks th, .tracks td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tracks tr:last-child td, .tracks tr:last-child th { border-bottom: 0; }
.tracks thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); background: var(--surface-sunken); }
.tracks tbody th { font-weight: 700; width: 18%; color: var(--text); }
.tracks td { color: var(--text-muted); line-height: 1.55; }

.steps { counter-reset: s; display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; margin-bottom: 14px; font-family: "JetBrains Mono", monospace;
}
.steps b { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.steps span { color: var(--text-muted); font-size: .94rem; line-height: 1.55; display: block; }

.apply { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .apply { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.apply aside { position: sticky; top: 96px; display: grid; gap: 22px; }
@media (max-width: 959px) { .apply aside { position: static; } }
.form { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 22px; }
@media (max-width: 719px) { .form { padding: 22px; } }
.row2 { display: grid; gap: 22px; }
@media (min-width: 720px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: .88rem; font-weight: 650; padding: 0; }
.field .hint { font-size: .82rem; color: var(--text-faint); font-weight: 450; }
.field input[type=text], .field input[type=email], .field input[type=url], .field textarea, .field select {
  font: inherit; font-size: 1rem; width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  transition: border-color 150ms, box-shadow 150ms;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }
.field input:user-invalid, .field textarea:user-invalid { border-color: oklch(0.58 0.19 25); }
fieldset.field { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
fieldset.field legend { margin-bottom: 8px; }
.opts { display: grid; gap: 10px; }
@media (min-width: 560px) { .opts.two { grid-template-columns: 1fr 1fr; } }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color 150ms, background 150ms; }
.opt:hover { background: var(--surface-sunken); }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt input { margin-top: 4px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.opt b { display: block; font-size: .95rem; line-height: 1.3; }
.opt > span { display: block; }
.opt > span > span { display: block; font-size: .84rem; color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-muted); }
.consent .hint { font-size: .82rem; color: var(--text-faint); }
.consent input { margin-top: 4px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-note { font-size: .85rem; color: var(--text-faint); line-height: 1.5; }
.result { display: none; border-radius: 12px; padding: 16px 18px; background: var(--success-soft); color: var(--text); border: 1px solid var(--success); font-size: .95rem; line-height: 1.55; }
.result.show { display: block; }
.result pre { white-space: pre-wrap; margin: 12px 0 0; font-size: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 220px; overflow: auto; }
.gets { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.gets li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .96rem; color: var(--text-muted); }
.gets svg { width: 20px; height: 20px; color: var(--brand); margin-top: 3px; }
.gets b { color: var(--text); }
.honest { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; color: var(--text-muted); font-size: .95rem; }

/* reveal on scroll; content is visible without JS and under reduced motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .phone[data-stage] .sms, .phone[data-stage] .welcome { opacity: 1; transform: none; }
}
@media print { .header, .weave, .phone { display: none; } }

/* inline icons come from the sprite at the top of each page */
svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── inner pages ──────────────────────────────────────────────── */
a.link-card { text-decoration: none; color: inherit; }
a.link-card:hover h3 { color: var(--brand-ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--text-faint); margin-bottom: 18px; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-hero .lede { margin-top: 4px; }
.tight { padding: 56px 0; }
.stack { display: grid; gap: 18px; }
.callout { border: 1px solid var(--line-strong); border-left: 3px solid var(--brand); background: var(--surface-raised); border-radius: var(--radius); padding: 18px 22px; color: var(--text-muted); font-size: .97rem; line-height: 1.6; }
.callout b { color: var(--text); }
.callout.warn { border-left-color: var(--warning); }

/* code blocks outside the hero */
pre.cb { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: var(--radius); border: 1px solid oklch(0.3 0.01 60 / .6); padding: 18px 20px; overflow-x: auto; font-size: .84rem; line-height: 1.75; tab-size: 2; }
pre.cb + pre.cb, .prose pre.cb { margin-top: 14px; }
code.i { font-size: .88em; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* prose: blog posts and long copy */
.prose { max-width: 42rem; margin: 0 auto; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .55em; }
.prose a { color: var(--brand-ink); text-underline-offset: 3px; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--text-muted); font-size: 1.12rem; }
.prose strong { font-weight: 700; }
.post-head { max-width: 42rem; margin: 0 auto; padding: 64px 0 8px; }
.post-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 16px 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: .9rem; color: var(--text-muted); margin-top: 14px; }
.post-end { max-width: 42rem; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.posts { display: grid; gap: 18px; }
@media (min-width: 820px) { .posts { grid-template-columns: repeat(2, 1fr); } .posts .feature { grid-column: 1 / -1; } }

/* changelog */
.timeline { display: grid; gap: 0; max-width: 56rem; }
.entry { display: grid; gap: 14px 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 820px) { .entry { grid-template-columns: 170px 1fr; } .entry .when { position: sticky; top: 96px; align-self: start; } }
.when b { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.when span { font-size: .85rem; color: var(--text-faint); }
.entry h3 { margin-bottom: 4px; }
.changes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.changes li { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: baseline; color: var(--text-muted); font-size: .98rem; line-height: 1.6; }
.changes li b { color: var(--text); font-weight: 650; }
.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; text-align: center; }
.tag-new { background: var(--brand-soft); color: var(--brand-ink); }
.tag-imp { background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--line); }
.tag-fix { background: var(--success-soft); color: var(--success); }
@media (max-width: 519px) { .changes li { grid-template-columns: 1fr; gap: 4px; } .tag { justify-self: start; } }

/* docs */
.docs { display: grid; gap: 40px; padding-block: 48px 88px; align-items: start; }
@media (min-width: 960px) { .docs { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; } }
.docs-nav { position: sticky; top: 88px; display: none; }
@media (min-width: 960px) { .docs-nav { display: block; } }
.docs-nav h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin: 0 0 10px; }
.docs-nav ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.docs-nav a { display: block; padding: 6px 14px; font-size: .92rem; color: var(--text-muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--text); }
.docs-nav a.on { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 650; }
.doc { min-width: 0; max-width: 46rem; }
.doc section { padding: 0 0 56px; scroll-margin-top: 88px; }
.doc h2 { font-size: 1.8rem; margin: 0 0 14px; }
.doc h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--text-muted); line-height: 1.7; font-size: 1rem; }
.doc p + p, .doc p + pre, .doc pre + p, .doc ul + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; display: grid; gap: 6px; margin: 12px 0; }
.doc a { color: var(--brand-ink); text-underline-offset: 3px; }
.doc b, .doc strong { color: var(--text); }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.doclist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-raised); }
.doclist div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
.doclist div:last-child { border-bottom: 0; }
.doclist b { color: var(--text); }
.doclist span.d { grid-column: 1; color: var(--text-muted); font-size: .92rem; }

/* pricing */
.tiers { display: grid; gap: 0; }
.tiers-note { font-size: .9rem; color: var(--text-faint); margin-top: 14px; }
.tracks td.yes { color: var(--text); font-weight: 600; }
.tracks td.no { color: var(--text-faint); }
.tracks thead th.hl-col { color: var(--brand-ink); }

/* solutions */
.sol { display: grid; gap: 28px 56px; padding: 56px 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: 80px; }
.sol:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .sol { grid-template-columns: .9fr 1.1fr; } }
.sol h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 14px 0; }
.sol .for { font-size: 1.05rem; color: var(--text-muted); line-height: 1.65; }
.fit { display: grid; gap: 14px; }
.fit h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin: 0 0 8px; }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fit li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .96rem; color: var(--text-muted); line-height: 1.55; }
.fit li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--success); }
.fit.soon li svg { color: var(--warning); }
.fit-box { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; display: grid; gap: 20px; }
.usecases { display: grid; gap: 18px; }
@media (min-width: 720px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .usecases { grid-template-columns: repeat(3, 1fr); } }

/* faq */
.faq { display: grid; gap: 0; max-width: 52rem; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-raised); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--text-faint); transition: transform 150ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq details p { padding: 0 22px 20px; color: var(--text-muted); line-height: 1.7; font-size: .98rem; }
.faq details p + p { margin-top: -8px; }

/* channels / ways to help */
.ways { display: grid; gap: 18px; }
@media (min-width: 720px) { .ways.c2 { grid-template-columns: repeat(2, 1fr); } .ways.c3 { grid-template-columns: repeat(3, 1fr); } }
.card .meta-line { font-size: .84rem; color: var(--text-faint); margin-top: auto; padding-top: 6px; }
.card .meta-line a { color: var(--brand-ink); }

/* ── menus, search, migrate, customers ────────────────────────── */
.nav { gap: 2px; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 8px;
  font: inherit; font-size: .93rem; font-weight: 550; color: var(--text-muted); text-decoration: none;
  background: none; border: 0; cursor: pointer; transition: color 150ms, background 150ms;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--text); background: var(--surface-sunken); }
.nav-link[aria-current="page"], .nav-trigger[aria-current="page"] { color: var(--text); }
.nav-trigger .chev { width: 14px; height: 14px; transition: transform 150ms var(--ease); }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-group { position: relative; }
.menu {
  position: absolute; top: calc(100% + 6px); left: -8px; z-index: 60; width: 21rem; padding: 8px;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.menu[hidden] { display: none; }
.nav .menu-item { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.nav .menu-item b { display: block; font-size: .93rem; font-weight: 650; letter-spacing: -.01em; }
.nav .menu-item span { display: block; margin-top: 1px; font-size: .82rem; color: var(--text-muted); line-height: 1.4; }
.nav .menu-item:hover, .nav .menu-item:focus-visible { background: var(--surface-sunken); }
.drawer-label { margin: 18px 0 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); }
.drawer a.drawer-top { font-weight: 700; }
.drawer { max-height: calc(100dvh - 68px); overflow-y: auto; }

/* The full navigation needs room: below this the menu button carries it. */
@media (min-width: 900px) and (max-width: 1099px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .drawer.open { display: block; }
  .header-end .signin { display: none; }
}
@media (min-width: 1100px) { .nav { display: flex; } }

/* search */
dialog.search {
  margin: 12vh auto 0; padding: 0; width: min(40rem, calc(100vw - 24px)); max-height: 72vh;
  background: var(--surface-raised); color: var(--text); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 24px 80px -16px oklch(0 0 0 / .45); overflow: hidden; flex-direction: column;
}
dialog.search[open] { display: flex; }
dialog.search::backdrop { background: oklch(0.1 0.01 60 / .55); backdrop-filter: blur(3px); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-box svg { width: 20px; height: 20px; color: var(--text-faint); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 1.05rem; outline: none; }
.search-box input::-webkit-search-cancel-button { display: none; }
kbd { font-family: "JetBrains Mono", monospace; font-size: .72rem; padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text-faint); background: var(--surface-sunken); }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search-results a b { display: block; font-size: .95rem; font-weight: 650; }
.search-results a span { display: block; font-size: .8rem; color: var(--text-muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--brand-soft); }
.search-results mark { background: none; color: var(--brand-ink); font-weight: 800; }
.search-foot { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--text-faint); }
.search-empty { padding: 22px 16px; color: var(--text-muted); font-size: .95rem; }

/* migrate */
.sources { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-raised); }
.source { display: grid; gap: 14px 40px; padding: 30px 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.source:last-child { border-bottom: 0; }
@media (min-width: 900px) { .source { grid-template-columns: 230px 1fr; } }
.source h3 { font-size: 1.3rem; margin-bottom: 8px; }
.source dl { margin: 0; display: grid; gap: 12px; }
.source dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.source dd { margin: 2px 0 0; color: var(--text-muted); line-height: 1.6; font-size: .98rem; }
.source dd b { color: var(--text); }
.flow { counter-reset: f; display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow li { counter-increment: f; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.flow li::before { content: counter(f); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; margin-bottom: 12px; font-family: "JetBrains Mono", monospace; font-size: .9rem; }
.flow b { display: block; margin-bottom: 4px; }
.flow span { color: var(--text-muted); font-size: .92rem; line-height: 1.5; display: block; }

/* customers */
.story { display: grid; gap: 28px 56px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .story { grid-template-columns: 1.1fr .9fr; padding: 44px; } }
.story h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 14px 0; }
.story .for { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.facts-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-muted); font-size: .97rem; line-height: 1.55; }
.facts-list svg { width: 20px; height: 20px; color: var(--success); margin-top: 3px; }
.facts-list li.open svg { color: var(--warning); }
.facts-list b { color: var(--text); }
.logo-slot { display: flex; align-items: center; gap: 14px; }
.logo-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; letter-spacing: -.04em; }
.logo-slot b { display: block; font-size: 1.1rem; letter-spacing: -.01em; }
.logo-slot span { font-size: .86rem; color: var(--text-faint); }
.compare { display: grid; gap: 14px 28px; }
@media (min-width: 820px) { .compare { grid-template-columns: repeat(3, 1fr); } }

/* integrations */
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter button { font: inherit; font-size: .88rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-muted); cursor: pointer; transition: background 150ms, color 150ms, border-color 150ms; }
.filter button:hover { color: var(--text); background: var(--surface-raised); }
.filter button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-text); }
.filter-count { margin-left: auto; font-size: .85rem; color: var(--text-faint); }
.int[hidden] { display: none; }
.int-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.logo-mark.sm { width: 40px; height: 40px; border-radius: 11px; font-size: .95rem; }
.int p a { color: var(--brand-ink); text-underline-offset: 3px; }

/* integrations: search, the logo tile, who built it, and the price line */
.int-tools { display: grid; gap: 14px; }
.int-search { position: relative; display: block; max-width: 34rem; }
.int-search .i { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.int-search input { width: 100%; font: inherit; padding: 11px 14px 11px 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--text); }
.int-search input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* a company's own mark on a light tile, so a black or white mark reads in both themes */
.logo-tile { display: inline-block; position: relative; overflow: hidden; flex: none; width: 96px; height: 44px; padding: 7px 10px; border-radius: 11px; background: #fff; border: 1px solid var(--line); box-sizing: border-box; }
.logo-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-tile.dark { background: #0b1b34; border-color: transparent; }
.logo-tile.mono-tile { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-sunken); color: var(--text-muted); font-weight: 800; letter-spacing: -.04em; font-size: 1.05rem; }
.int-where { margin: 2px 0 8px; font-size: .84rem; color: var(--text-muted); }
.built-by { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .01em; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.int-price { margin-top: 8px; font-size: .82rem; color: var(--text-faint); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.logo-tile.sq { width: 44px; padding: 8px; }
.int h3 a { color: inherit; text-decoration: none; } .int h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
