/* Anibros CRM: marketing site. One stylesheet, no framework. Light and dark follow the visitor's system. */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --bg: #fbfbf9; --bg-2: #f4f4f0; --surface: #ffffff; --ink: #0c0d11; --ink-2: #3b3e49; --muted: #6a6e7c; --faint: #9a9eab;
  --line: rgba(12, 13, 17, .09); --line-2: rgba(12, 13, 17, .16);
  --brand: #4f46e5; --brand-ink: #ffffff; --brand-soft: #eceafe; --brand-2: #7c6cf5;
  --ok: #0f8a63; --warn: #b45309;
  --night: #0b0c10; --night-2: #12141a; --night-ink: #eef0f4; --night-muted: #9aa0ae; --night-line: rgba(255, 255, 255, .1);
  --shadow-s: 0 1px 2px rgba(12, 13, 17, .06), 0 1px 1px rgba(12, 13, 17, .04);
  --shadow-m: 0 10px 30px -10px rgba(12, 13, 17, .18), 0 2px 6px rgba(12, 13, 17, .05);
  --shadow-l: 0 40px 90px -30px rgba(30, 28, 90, .35), 0 12px 30px -12px rgba(12, 13, 17, .22);
  --radius: 14px; --radius-l: 22px; --max: 1200px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif; --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
/* Dark: either the visitor chose it with the switch (data-theme="dark") or they have not chosen and their system prefers it */
:root[data-theme="dark"] {
  --bg: #0a0b0e; --bg-2: #0f1115; --surface: #13151b; --ink: #f2f3f6; --ink-2: #c4c7d1; --muted: #8f94a3; --faint: #646a79;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17);
  --brand: #8b83ff; --brand-ink: #0b0b16; --brand-soft: #1d1b3d; --brand-2: #a79fff;
  --night: #07080b; --night-2: #101218;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .5); --shadow-m: 0 14px 34px -12px rgba(0, 0, 0, .7); --shadow-l: 0 50px 100px -34px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .05);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b0e; --bg-2: #0f1115; --surface: #13151b; --ink: #f2f3f6; --ink-2: #c4c7d1; --muted: #8f94a3; --faint: #646a79;
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17);
    --brand: #8b83ff; --brand-ink: #0b0b16; --brand-soft: #1d1b3d; --brand-2: #a79fff;
    --night: #07080b; --night-2: #101218;
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .5); --shadow-m: 0 14px 34px -12px rgba(0, 0, 0, .7); --shadow-l: 0 50px 100px -34px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .05);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11"; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.028em; line-height: 1.08; text-wrap: balance; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .9em; }

/* page transitions between marketing pages (Chromium; other browsers simply navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ── header ───────────────────────────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s, backdrop-filter .25s; view-transition-name: site-header; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.brand small { font-weight: 500; color: var(--muted); margin-left: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; place-items: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; } .menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); } .menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── buttons ──────────────────────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 560; font-size: 15px; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--brand)); }
.btn.brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg-2); box-shadow: none; transform: none; }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn .arrow { transition: transform .25s var(--ease); } .btn:hover .arrow { transform: translateX(3px); }
.on-dark .btn { border-color: var(--night-line); background: rgba(255, 255, 255, .06); color: var(--night-ink); }
.on-dark .btn.primary, .on-dark .btn.light { background: #fff; color: #0b0c10; border-color: #fff; }

/* ── hero ─────────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 76px 0 0; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 620px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); opacity: .55; pointer-events: none; }
.hero-in { position: relative; z-index: 1; text-align: center; max-width: 920px; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 560; color: var(--ink-2); padding: 6px 14px 6px 8px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.eyebrow i { font-style: normal; background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 2px 8px; font-size: 11.5px; letter-spacing: .02em; }
.display { font-size: clamp(2.7rem, 6.6vw, 5.2rem); letter-spacing: -.045em; line-height: 1.01; margin-top: 26px; }
.display em, h2 em, h3 em, .serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--brand); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--ink-2); max-width: 680px; margin: 24px auto 0; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.micro { margin-top: 18px; color: var(--muted); font-size: 14px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.micro span::before { content: "✓"; color: var(--ok); margin-right: 7px; font-weight: 700; }
.stage { position: relative; z-index: 1; margin-top: 64px; perspective: 1800px; }
.frame { position: relative; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-l); border: 1px solid var(--line-2); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: color-mix(in srgb, var(--bg-2) 70%, var(--surface)); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.frame-bar b { margin-left: 10px; flex: 1; max-width: 360px; height: 22px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); font: 500 12px/20px var(--sans); color: var(--muted); text-align: center; }
.frame img { width: 100%; height: auto; }
.hero-phone { display: none; }
.hero .frame { transform: rotateX(6deg) translateY(0); transform-origin: 50% 0; transition: transform .8s var(--ease); }
.hero .frame.flat { transform: rotateX(0); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 2; pointer-events: none; }
.float { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-m); display: flex; gap: 12px; align-items: center; text-align: left; font-size: 14px; }
.float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.float .dot svg { width: 18px; height: 18px; }
.float b { display: block; font-weight: 600; letter-spacing: -.01em; } .float small { color: var(--muted); font-size: 12.5px; }
.float.a { left: -44px; top: 40%; animation: bob 7s ease-in-out infinite; } .float.b { right: -30px; top: 66%; animation: bob 8s ease-in-out -2s infinite; } .float.c { left: 6%; bottom: 14%; animation: bob 9s ease-in-out -4s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ── sections ─────────────────────────────────────────────────────────────────────────────────── */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 148px) 0; }
.sec.tight { padding: clamp(56px, 7vw, 96px) 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; display: block; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.sec-head p { margin-top: 20px; font-size: 1.15rem; color: var(--ink-2); text-wrap: pretty; }
.sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; font-weight: 520; color: var(--ink-2); background: var(--surface); }
.chip svg { width: 16px; height: 16px; color: var(--brand); }
.band { border-block: 1px solid var(--line); background: var(--bg-2); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.trio > div { padding: 40px 36px; border-left: 1px solid var(--line); }
.trio > div:first-child { border-left: 0; padding-left: 0; }
.trio h3 { font-size: 1.35rem; margin-bottom: 10px; }
.trio p { color: var(--ink-2); font-size: 1rem; }
.trio .num { font: 500 13px var(--mono); color: var(--faint); display: block; margin-bottom: 18px; }

.row2 { display: grid; grid-template-columns: 1fr 1.18fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.row2.flip { grid-template-columns: 1.18fr 1fr; } .row2.flip .copy { order: 2; }
.copy h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 18px; }
.copy > p { color: var(--ink-2); font-size: 1.08rem; text-wrap: pretty; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 1rem; }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks b { color: var(--ink); font-weight: 600; }
.shot { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-m); background: var(--surface); }
.shot img { width: 100%; height: auto; }
.shot.crop { aspect-ratio: 4 / 3.3; } .shot.crop img { height: 100%; object-fit: cover; object-position: left top; }
.phone { width: min(300px, 70%); margin-inline: auto; border-radius: 42px; border: 9px solid #15161b; background: #15161b; box-shadow: var(--shadow-l); overflow: hidden; }
.phone img { border-radius: 32px; width: 100%; height: auto; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; position: relative; overflow: hidden; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; } .tile.w6 { grid-column: span 6; }
.tile .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 22px; }
.tile .ico svg { width: 21px; height: 21px; }
.tile h4 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -.02em; }
.tile p { color: var(--ink-2); font-size: .98rem; text-wrap: pretty; }

/* dark bands */
.on-dark { background: var(--night); color: var(--night-ink); }
.on-dark .kicker { color: var(--brand-2); } .on-dark .sec-head p, .on-dark .copy > p, .on-dark .ticks li { color: var(--night-muted); } .on-dark .ticks b { color: #fff; }
.on-dark h2 em, .on-dark h3 em { color: var(--brand-2); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: var(--radius-l); overflow: hidden; }
.pillars > div { background: var(--night-2); padding: 30px 28px; }
.pillars h4 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; letter-spacing: -.015em; } .pillars p { color: var(--night-muted); font-size: .95rem; }
.pillars .ico { width: 20px; height: 20px; color: var(--brand-2); margin-bottom: 18px; }
.code { background: #0f1117; border: 1px solid var(--night-line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px 0 16px; border-bottom: 1px solid var(--night-line); background: #0c0e13; }
.code-tab { border: 0; background: none; color: #8d93a3; font: 500 13px var(--sans); padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; }
.code-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--brand-2); }
.code-copy { margin-left: auto; margin-bottom: 6px; border: 1px solid var(--night-line); background: transparent; color: #aab0bf; font: 500 12px var(--sans); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.code-copy:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 400 13.5px/1.7 var(--mono); color: #d7dae3; tab-size: 2; }
.code pre[hidden] { display: none; }
.tok-k { color: #c3a6ff; } .tok-s { color: #9ee6b6; } .tok-c { color: #6c7388; } .tok-f { color: #7fc4ff; } .tok-n { color: #ffcf8a; }

/* pricing */
.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.toggle button { border: 0; background: none; padding: 9px 20px; border-radius: 999px; font-weight: 560; font-size: 14.5px; cursor: pointer; color: var(--ink-2); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.toggle small { font-weight: 560; color: var(--ok); margin-left: 6px; }
.toggle button[aria-pressed="true"] small { color: inherit; opacity: .8; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-l); padding: 34px 30px 30px; display: flex; flex-direction: column; position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.plan.hot { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-m); }
.plan .tag { position: absolute; top: -12px; left: 30px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 650; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-size: 1.35rem; } .plan .sub { color: var(--muted); font-size: .95rem; margin-top: 6px; min-height: 2.9em; }
.price { margin: 26px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 3rem; letter-spacing: -.045em; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: .98rem; }
.price-note { color: var(--muted); font-size: .9rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; flex: 1; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .98rem; color: var(--ink-2); }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan li b { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-l); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: .98rem; }
.cmp thead th { font-weight: 600; background: var(--bg-2); } .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; } .cmp td:first-child { color: var(--ink-2); }

/* faq */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-weight: 580; font-size: 1.12rem; letter-spacing: -.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .ans { padding: 0 0 26px; color: var(--ink-2); max-width: 680px; text-wrap: pretty; animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* final CTA + footer */
.cta { border-radius: 32px; padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); text-align: center; background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%; background: radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); max-width: 760px; margin-inline: auto; color: #fff; }
.cta p { color: var(--night-muted); margin: 20px auto 0; max-width: 560px; font-size: 1.12rem; }
.cta .btn { margin-top: 34px; background: #fff; color: #0b0c10; border-color: #fff; }
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); margin-top: 120px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot p { color: var(--muted); font-size: .95rem; margin-top: 16px; max-width: 320px; }
.foot h5 { margin: 0 0 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--ink-2); font-size: .98rem; } .foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-line { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

/* inner pages */
.page-hero { padding: 84px 0 56px; position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.04em; max-width: 880px; }
.page-hero p { margin-top: 22px; font-size: 1.2rem; color: var(--ink-2); max-width: 680px; text-wrap: pretty; }
.prose { max-width: 740px; margin-inline: auto; }
.prose h2 { font-size: 1.7rem; margin: 56px 0 14px; letter-spacing: -.025em; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 10px; letter-spacing: -.015em; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.04rem; line-height: 1.75; }
.prose p { margin: 0 0 16px; } .prose ul { padding-left: 22px; margin: 0 0 18px; } .prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose .meta { color: var(--muted); font-size: .95rem; margin-bottom: 40px; }
.notice { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 14px; padding: 18px 22px; font-size: .96rem; color: var(--ink-2); margin: 28px 0; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .95rem; display: grid; gap: 4px; }
.toc a { padding: 6px 12px; border-radius: 8px; color: var(--muted); border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--brand); background: var(--bg-2); }
.layout-docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.doc-sec { padding: 0 0 72px; }
.doc-sec h2 { font-size: 2rem; margin-bottom: 16px; scroll-margin-top: 96px; }
.doc-sec h3 { font-size: 1.15rem; margin: 30px 0 10px; letter-spacing: -.015em; }
.doc-sec p, .doc-sec li { color: var(--ink-2); max-width: 720px; } .doc-sec p + p { margin-top: 14px; } .doc-sec ul { padding-left: 20px; }
.doc-sec code, .prose code { font: 500 .88em var(--mono); background: var(--bg-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.docs-code .code { margin: 22px 0; max-width: 820px; }
.tbl { width: 100%; max-width: 820px; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl th { color: var(--muted); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
.method { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 6px; margin-right: 8px; }
.method.get { background: #e5f4ee; color: #0b6b4c; } .method.post { background: var(--brand-soft); color: var(--brand); } .method.patch, .method.put { background: #fdf0dc; color: #8a4b05; } .method.delete { background: #fde8e6; color: #a4271d; }
:root[data-theme="dark"] .method.get { background: #12302a; color: #5fd6aa; } :root[data-theme="dark"] .method.patch, :root[data-theme="dark"] .method.put { background: #36290f; color: #f2b45a; } :root[data-theme="dark"] .method.delete { background: #3a1b19; color: #f27c71; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .method.get { background: #12302a; color: #5fd6aa; } :root:not([data-theme="light"]) .method.patch, :root:not([data-theme="light"]) .method.put { background: #36290f; color: #f2b45a; } :root:not([data-theme="light"]) .method.delete { background: #3a1b19; color: #f27c71; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-l); padding: 32px; box-shadow: var(--shadow-s); }
.field { display: grid; gap: 7px; } .field label { font-size: .9rem; font-weight: 560; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .msg { border-radius: 12px; padding: 14px 16px; font-size: .96rem; display: none; } .form .msg.ok { display: block; background: #e5f4ee; color: #0b6b4c; } .form .msg.err { display: block; background: #fde8e6; color: #a4271d; }
.info-list { display: grid; gap: 26px; margin-top: 36px; } .info-list h4 { font-size: 1rem; margin-bottom: 6px; } .info-list p { color: var(--ink-2); font-size: 1rem; }

/* motion */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .parallax { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @keyframes lift { from { transform: translateY(40px) scale(.97); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } .float, .parallax { animation: none !important; } .hero .frame { transform: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* responsive */
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn.ghost { display: none; }
  .menu-btn { display: grid; } .nav-cta { margin-left: 0; } .nav-cta .btn { height: 40px; padding: 0 16px; }
  .nav { gap: 12px; } .brand { margin-right: auto; } .menu-btn { margin-left: 0; }
  .mobile-menu { display: grid; align-content: start; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 68px); overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 28px; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .35); }
  .menu-open .mobile-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; } .mobile-menu > a { padding: 16px 4px; font-size: 1.12rem; font-weight: 520; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; } .mobile-menu > a[aria-current="page"] { color: var(--brand); }
  .mm-actions { display: grid; gap: 10px; margin-top: 20px; }
  .row2, .row2.flip, .contact-grid, .layout-docs { grid-template-columns: minmax(0, 1fr); } .row2.flip .copy { order: 0; } .tbl { display: block; overflow-x: auto; }
  .trio, .plans, .pillars { grid-template-columns: 1fr; } .trio > div { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; } .trio > div:first-child { border-top: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; } .tile, .tile.w3, .tile.w4, .tile.w6 { grid-column: span 1; }
  .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } .float { display: none; }
}
@media (min-width: 981px) { .mobile-menu { display: none !important; } }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); } .bento { grid-template-columns: 1fr; } .pillars { grid-template-columns: 1fr; } .hero { padding-top: 48px; }
  .stage { margin-top: 44px; } .hero .frame { transform: none; } .foot { grid-template-columns: 1fr; } .btn.lg { width: 100%; } .hero-cta { flex-direction: column; }
  .form { padding: 22px; }
}
@media print { .site-header, .site-footer, .cta { display: none; } body { background: #fff; color: #000; } }
/* code inside the dark code windows must not pick up the inline-code look */
.doc-sec .code code, .prose .code code { background: none; border: 0; padding: 0; border-radius: 0; color: inherit; font: inherit; }
.docs-code .code pre { white-space: pre; }

.row2 > *, .contact-grid > *, .layout-docs > *, .bento > *, .plans > *, .trio > * { min-width: 0; }

/* ── v4: theme switch, card-free feature lists, breadcrumbs, floating actions, phone polish ───────── */
.img-d { display: none; }
:root[data-theme="dark"] .img-l { display: none; } :root[data-theme="dark"] .img-d { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .img-l { display: none; } :root:not([data-theme="light"]) .img-d { display: block; } }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, fill .35s ease !important; }

.theme-btn { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: color .2s, background .2s, transform .2s var(--ease); }
.theme-btn:hover { color: var(--ink); background: var(--bg-2); } .theme-btn:active { transform: scale(.94); }
.theme-btn svg { width: 18px; height: 18px; } .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; } :root[data-theme="dark"] .theme-btn .i-sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } }
.nav-cta { gap: 10px; }
.btn .arrow svg, .btn svg { width: 18px; height: 18px; }

/* breadcrumbs / back link */
.crumbs { display: flex; align-items: center; gap: 10px; padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs .back { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); background: var(--surface); transition: transform .25s var(--ease), color .2s, background .2s; }
.crumbs .back svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.crumbs .back:hover { color: var(--ink); background: var(--bg-2); } .crumbs .back:hover svg { transform: translateX(-3px); }
.crumbs [aria-current] { color: var(--ink); font-weight: 520; } .crumbs .sep { color: var(--faint); }
.crumbs + .page-hero, .crumbs + section.page-hero { padding-top: 40px; }

/* floating actions: back to top, WhatsApp */
.fabs { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; view-transition-name: fabs; pointer-events: none; }
.fab { pointer-events: auto; position: relative; display: grid; place-items: center; border: 0; cursor: pointer; border-radius: 50%; box-shadow: var(--shadow-m); transition: transform .3s var(--ease), opacity .3s var(--ease), box-shadow .2s, background .2s; }
.fab svg { width: 26px; height: 26px; }
.fab.wa { width: 58px; height: 58px; background: #25D366; color: #fff; box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .6), 0 2px 6px rgba(0, 0, 0, .18); }
.fab.wa svg { width: 32px; height: 32px; }
.fab.wa:hover { transform: translateY(-2px) scale(1.04); } .fab.wa:active { transform: scale(.96); }
.fab.up { width: 56px; height: 56px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }
.fab.up svg { width: 24px; height: 24px; }
.fab.up.show { opacity: 1; transform: none; pointer-events: auto; } .fab.up.show:hover { transform: translateY(-2px); background: var(--bg-2); }
.fab-tip { position: absolute; right: 68px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; background: var(--ink); color: var(--bg); font: 500 13px var(--sans); padding: 7px 12px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.fab.wa:hover .fab-tip, .fab.wa:focus-visible .fab-tip { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .fab-tip { display: none; } }

/* feature ledger: replaces the card grid */
.ledger-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.ledger-head { position: sticky; top: 112px; }
.ledger-head h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); } .ledger-head p { margin-top: 20px; color: var(--ink-2); font-size: 1.12rem; max-width: 440px; text-wrap: pretty; }
.lgroup + .lgroup { margin-top: 48px; }
.lgroup-t { margin: 0; padding-bottom: 14px; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line-2); }
dl { margin: 0; } dd { margin: 0; }
.lrow { position: relative; display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 6px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.lrow::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--brand); transition: width .6s var(--ease); }
.lrow:hover::before { width: 100%; }
.lrow dt { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; font-size: 1.05rem; letter-spacing: -.015em; line-height: 1.35; transition: transform .35s var(--ease); }
.lrow:hover dt { transform: translateX(4px); }
.ln { font: 500 12px/2 var(--mono); color: var(--faint); min-width: 1.7em; }
.lt { display: inline-flex; gap: 10px; align-items: flex-start; } .lt svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brand); }
.lrow dd { color: var(--ink-2); font-size: .98rem; text-wrap: pretty; }
.spec { max-width: 940px; margin-inline: auto; border-top: 1px solid var(--line-2); }
.spec .lrow { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); padding: 26px 0; }
.spec .lrow dd { font-size: 1.02rem; }

/* security principles on the dark band: a ruled list, not boxes */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--night-line); }
.principles li { position: relative; padding-top: 30px; }
.principles li::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 1px; background: var(--brand-2); transition: width .5s var(--ease); }
.principles li:hover::before { width: 100%; }
.pn { display: block; margin-bottom: 18px; font: 500 12.5px var(--mono); color: var(--brand-2); }
.principles h4 { margin-bottom: 8px; color: #fff; font-size: 1.12rem; letter-spacing: -.015em; } .principles p { color: var(--night-muted); font-size: .96rem; text-wrap: pretty; }

/* docs: base URL */
.baseurl { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; margin: 22px 0; padding: 8px 8px 8px 18px; max-width: 640px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.baseurl span { flex: none; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.baseurl code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; border: 0; background: none; padding: 0; font-size: .95em; scrollbar-width: none; }
.baseurl .btn { flex: none; }

.form .msg.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); } .form .msg.err { background: color-mix(in srgb, #d6453b 14%, var(--surface)); color: #d6453b; }

@media (max-width: 980px) {
  .ledger-wrap { grid-template-columns: minmax(0, 1fr); } .ledger-head { position: static; }
  .principles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; } .principles li { padding-bottom: 28px; }
  .layout-docs { gap: 20px; }
  .toc { display: flex; gap: 8px; overflow-x: auto; position: sticky; top: 68px; z-index: 20; margin: 0 -16px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { flex: none; white-space: nowrap; padding: 7px 14px; border: 1px solid var(--line-2); border-left-width: 1px; border-radius: 999px; font-size: 14px; background: var(--surface); }
  .toc a.on, .toc a:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
  .doc-sec h2 { scroll-margin-top: 140px; }
}
@media (max-width: 760px) {
  .lrow, .spec .lrow { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; }
  .lrow dt { transform: none !important; } .ln { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .sec { padding: 64px 0; } .sec.tight { padding: 44px 0; } .sec-head { margin-bottom: 36px; } .sec-head p { font-size: 1.05rem; }
  h2 { font-size: clamp(1.8rem, 8vw, 2.3rem); } .copy h3 { font-size: 1.65rem; }
  .nav { height: 62px; gap: 10px; } .mobile-menu { max-height: calc(100dvh - 62px); } .nav-cta .btn.primary { display: none; }
  .brand { font-size: 16px; } .brand svg { width: 28px; height: 28px; }
  .crumbs { padding-top: 18px; } .crumbs + .page-hero, .crumbs + section.page-hero { padding-top: 28px; } .page-hero { padding: 56px 0 36px; }
  .page-hero h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); } .page-hero p { font-size: 1.06rem; margin-top: 16px; }
  .display { font-size: clamp(2.3rem, 10.5vw, 3rem); margin-top: 22px; } .lede { font-size: 1.05rem; margin-top: 18px; } .hero-cta { margin-top: 26px; } .eyebrow { font-size: 12.5px; }
  .micro { gap: 6px 14px; font-size: 13.5px; margin-top: 14px; }
  /* the wide picture is replaced by the phone one (see .hero-phone): nothing is zoomed or cropped */
  .hero .frame { display: none; } .hero-phone { display: block; } .hero-phone .phone { max-height: 560px; } .frame-bar { height: 30px; padding: 0 12px; } .frame-bar i { width: 9px; height: 9px; } .frame-bar b { height: 18px; line-height: 16px; font-size: 11px; }
  .chip { padding: 7px 13px; font-size: 13.5px; } .trio > div { padding: 24px 0; } .trio h3 { font-size: 1.2rem; }
  .shot { border-radius: 14px; } .phone { width: min(250px, 72%); border-width: 7px; border-radius: 34px; } .phone img { border-radius: 26px; }
  .principles { grid-template-columns: minmax(0, 1fr); } .principles li { padding: 24px 0; border-bottom: 1px solid var(--night-line); display: grid; grid-template-columns: 38px minmax(0, 1fr); } .principles li::before { display: none; } .pn { margin: 3px 0 0; }
  .plan { padding: 28px 22px 24px; } .price b { font-size: 2.6rem; }
  .code pre { font-size: 12.5px; padding: 16px; } .code-bar { overflow-x: auto; scrollbar-width: none; } .code-tab { flex: none; padding: 10px; }
  .faq summary { font-size: 1.04rem; padding: 20px 36px 20px 0; }
  .cta { border-radius: 22px; } .cta .btn { width: 100%; }
  .site-footer { margin-top: 72px; padding-top: 48px; } .foot { gap: 28px 20px; } .legal-line { margin-top: 36px; flex-direction: column; gap: 6px; }
  .baseurl { flex-wrap: wrap; padding: 12px 14px; } .baseurl code { flex-basis: 100%; order: 3; } .baseurl .btn { margin-left: auto; }
  .contact-grid { gap: 36px; } .form { padding: 20px; }
  .fabs { right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); } .fab.wa, .fab.up { width: 52px; height: 52px; }
}
@media (max-width: 380px) { .foot { grid-template-columns: minmax(0, 1fr); } .nav-cta { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .lrow::before, .principles li::before, .fab, .lrow dt { transition: none; } html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: none !important; } .mobile-menu { transition: none; } }
.doc-sec p code, .doc-sec li code, .doc-sec td code, .prose code { overflow-wrap: anywhere; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.spec { max-width: none; margin-inline: 0; }
.brand svg { border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }

/* ── payment success page and printable receipt (server-rendered, same look as the website) ─────────────────────────────────── */
.pay-hero { padding: 48px 0 6px; }
.pay-hero::after { height: 420px; }
.pay-hero .hero-in { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.pay-badge { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; background: color-mix(in srgb, var(--ok) 13%, var(--surface)); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 7%, transparent); }
.pay-badge.wait { background: color-mix(in srgb, var(--brand) 13%, var(--surface)); box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 7%, transparent); }
.pay-badge svg { width: 48px; height: 48px; }
.pay-badge .ring { stroke: var(--ok); stroke-width: 2.4; stroke-dasharray: 145; stroke-dashoffset: 145; animation: pay-draw .7s var(--ease) .1s forwards; }
.pay-badge .tick { stroke: var(--ok); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: pay-draw .45s var(--ease) .65s forwards; }
.pay-badge.wait .ring, .pay-badge.wait .tick { stroke: var(--brand); }
@keyframes pay-draw { to { stroke-dashoffset: 0; } }
.pay-title { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-top: 18px; }
.pay-lede { margin-top: 14px; max-width: 60ch; color: var(--ink-2); font-size: 1.06rem; text-wrap: balance; }
.pay-lede b { color: var(--ink); font-weight: 600; }
.pay-wrap { position: relative; }

/* the four numbers that matter */
.pay-stats { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); margin-top: 30px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-l); box-shadow: var(--shadow-m); overflow: hidden; }
.pay-stat { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; min-width: 0; border-left: 1px solid var(--line); }
.pay-stat:first-child { border-left: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--surface)), var(--surface)); }
.pay-stat .k { font-size: .74rem; font-weight: 640; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pay-stat b { font: 620 1.25rem/1.3 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pay-stat.lead b { font-size: clamp(1.7rem, 3.3vw, 2.25rem); letter-spacing: -.035em; line-height: 1.15; }
.pay-stat small { color: var(--muted); font-size: .86rem; line-height: 1.4; overflow-wrap: anywhere; }

.pay-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; margin: 30px 0 0; align-items: start; }

/* the receipt itself, drawn like a document */
.pay-doc { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-l); box-shadow: var(--shadow-s); overflow: hidden; }
.pay-doc-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 22px 30px; border-bottom: 1px solid var(--line); }
.pay-doc-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pay-doc-brand svg { border-radius: 10px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.pay-doc-brand b { display: block; font-weight: 640; letter-spacing: -.01em; }
.pay-doc-brand span { display: block; color: var(--muted); font-size: .88rem; }
.pay-doc-id { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.pay-doc-id .mono { color: var(--ink-2); font-size: .88rem; }
.pay-chip { font: 640 11.5px/1 var(--sans); padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pay-chip.wait { background: var(--brand-soft); color: var(--brand); }
.pay-test { margin: 0; padding: 10px 30px; font-size: .88rem; font-weight: 540; background: color-mix(in srgb, var(--warn) 11%, var(--surface)); color: var(--warn); border-bottom: 1px solid var(--line); }
.pay-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; padding: 24px 30px; border-bottom: 1px solid var(--line); }
.pay-parties > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-parties .k { font-size: .74rem; font-weight: 640; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pay-parties b { font-weight: 620; }
.pay-parties span:not(.k) { color: var(--ink-2); font-size: .95rem; overflow-wrap: anywhere; }
.pay-parties a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.pay-lines { width: 100%; border-collapse: collapse; }
.pay-lines th, .pay-lines td { padding: 15px 30px; text-align: left; vertical-align: top; }
.pay-lines .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-lines thead th { font-size: .74rem; font-weight: 640; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-top: 18px; padding-bottom: 8px; }
.pay-lines tbody td { border-top: 1px solid var(--line); }
.pay-lines td b { display: block; font-weight: 580; }
.pay-lines td small, .pay-lines tfoot small { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; margin-top: 2px; }
.pay-lines tr.credit td.r { color: var(--ok); font-weight: 580; }
.pay-lines tr.later td.r { color: var(--muted); }
.pay-lines tfoot th, .pay-lines tfoot td { border-top: 2px solid var(--ink); padding-top: 18px; padding-bottom: 20px; font-weight: 640; }
.pay-lines tfoot th span { font-size: 1.05rem; }
.pay-lines tfoot td { font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -.03em; }
.pay-details { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.pay-details > div { padding: 15px 30px; min-width: 0; border-top: 1px solid var(--line); }
.pay-details > div:nth-child(-n+2) { border-top: 0; }
.pay-details dt { color: var(--muted); font-size: .8rem; font-weight: 560; margin-bottom: 3px; }
.pay-details dd { margin: 0; display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 520; font-size: .95rem; }
.pay-details dd span { min-width: 0; overflow-wrap: anywhere; }
.pay-details dd.mono { font-family: var(--mono); font-size: .86rem; }
.pay-copy { margin-left: auto; flex: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; font: 560 12px/1 var(--sans); padding: 7px 11px; cursor: pointer; }
.pay-copy:hover { background: var(--bg); }
.pay-doc-foot { padding: 20px 30px 24px; border-top: 1px solid var(--line); }
.pay-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-note { margin: 14px 0 0; color: var(--muted); font-size: .88rem; }
.pay-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* beside it: what happens next, and help */
.pay-side { display: grid; gap: 18px; min-width: 0; position: sticky; top: 88px; }
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px 26px; box-shadow: var(--shadow-s); }
.pay-card h2 { font-size: 1.1rem; letter-spacing: -.02em; }
.pay-steps { list-style: none; margin: 16px 0 0; padding: 0; }
.pay-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
.pay-steps li:last-child { padding-bottom: 0; }
.pay-steps li::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--line-2); }
.pay-steps li:last-child::before { display: none; }
.pay-steps .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: #fff; }
.pay-steps .done .dot { background: var(--ok); border-color: var(--ok); }
.pay-steps .dot svg { width: 14px; height: 14px; stroke-width: 3; }
.pay-steps b { display: block; font-weight: 600; }
.pay-steps p { color: var(--ink-2); font-size: .94rem; margin-top: 2px; }
.pay-help p { color: var(--ink-2); font-size: .94rem; margin: 8px 0 12px; }
.pay-help-links { display: flex; flex-direction: column; gap: 4px; }
.pay-help-links a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; font-size: .94rem; padding-block: 4px; overflow-wrap: anywhere; }

/* what the plan includes: one tile per allowance, across the whole width */
.pay-incl { margin-top: 44px; }
.pay-incl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.pay-incl-head h2 { font-size: 1.35rem; letter-spacing: -.025em; }
.pay-incl-head p { color: var(--muted); font-size: .94rem; }
.pay-tiles { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pay-tiles li { display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); min-width: 0; }
.pay-tiles .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.pay-tiles .ic svg { width: 20px; height: 20px; }
.pay-tiles b { font: 620 1.3rem/1.2 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pay-tiles li > span:last-child { color: var(--muted); font-size: .9rem; }

.pay-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 44px 0 60px; }
.pay-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.pay-foot a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 6px; }

@media (max-width: 1040px) { .pay-stats { grid-template-columns: 1fr 1fr; } .pay-stat:nth-child(3) { border-left: 0; } .pay-stat:nth-child(n+3) { border-top: 1px solid var(--line); } .pay-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 880px) { .pay-grid { grid-template-columns: 1fr; } .pay-side { position: static; } .pay-header .nav-cta .btn.ghost { display: none; } .pay-hero { padding-top: 34px; } }
@media (max-width: 600px) {
  .pay-stat { padding: 16px 18px; } .pay-stat b { font-size: 1.1rem; } .pay-stat.lead b { font-size: 1.6rem; }
  .pay-doc-head, .pay-parties, .pay-doc-foot, .pay-test { padding-left: 20px; padding-right: 20px; } .pay-parties { grid-template-columns: 1fr; }
  .pay-lines th, .pay-lines td { padding-left: 20px; padding-right: 20px; } .pay-details { grid-template-columns: 1fr; } .pay-details > div { padding: 13px 20px; } .pay-details > div:nth-child(2) { border-top: 1px solid var(--line); }
  .pay-card { padding: 20px; } .pay-tiles { grid-template-columns: 1fr 1fr; } .pay-tiles li { padding: 16px; } .pay-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .pay-badge .ring, .pay-badge .tick { animation: none; stroke-dashoffset: 0; } }
@media print {
  .pay-header, .pay-hero::before, .pay-hero::after, .pay-actions, .pay-cta, .pay-copy, .pay-side, .pay-incl, .pay-stats, .pay-badge, .pay-lede, .eyebrow, .fabs, .pay-foot { display: none !important; }
  body.pay-page { background: #fff; color: #000; }
  .pay-hero { padding: 0; } .pay-title { font-size: 1.6rem; margin: 0 0 10px; }
  .pay-grid { grid-template-columns: 1fr; margin: 8px auto; }
  .pay-doc { box-shadow: none; border-color: #999; } .pay-details { background: #fff; }
}

/* API reference: one block per endpoint */
.ref-op { padding: 30px 0 44px; border-top: 1px solid var(--line); }
.ref-op:first-of-type { border-top: 0; padding-top: 0; }
.ref-op h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 8px; font-size: 1.05rem; scroll-margin-top: 96px; overflow-wrap: anywhere; }
.ref-op h3 .method { margin-right: 0; }
.ref-op p { max-width: 720px; }
.ref-op .tbl small { margin-left: 6px; color: var(--brand); font-weight: 600; font-size: .75rem; }
.ref-resp { color: var(--muted); font-size: .9rem; }
.ref-resp code { margin-right: 4px; }
.tbl td > a, .tbl td > a > b { display: inline-block; padding: 6px 0; } /* a finger-sized target for the group links in the reference index */
