/* cockpitify.app, direction F (2026-10-23): a dark lock-screen opening, then a light ledger: hairline rules,
   2px ink rules over tables, Archivo for display, IBM Plex for text and figures (the app's own faces). */
@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo-latin-wdth.woff2') format('woff2-variations'), url('/fonts/Archivo-latin-wdth.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('/fonts/IBMPlexSans_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('/fonts/IBMPlexSans_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('/fonts/IBMPlexSans_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('/fonts/IBMPlexSans_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/IBMPlexMono_600SemiBold.ttf') format('truetype'); font-weight: 500 600; font-display: swap; }

:root {
  --paper: #fbfbfa;
  --card: #ffffff;
  --soft: #f4f5f7;
  --tint: #f1f5f9;
  --ink: #0f172a;
  --text: #1e293b;
  --body: #334155;
  --sub: #526072;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-2: #d9dee5;
  --row: #eef1f5;
  --indigo: #3730a3;
  --indigo-ink: #1e1b4b;
  --indigo-soft: #e0e7ff;
  --mint: #10b981;
  --pos: #0f766e;
  --neg: #c2410c;
  --warn-ink: #9a3412;
  --warn-bg: #ffedd5;
  --warn-soft: #fff7ed;
  --good-bg: #ccfbf1;
  --night: #070b16;
  --night-2: #0b1120;
  --night-card: rgba(30, 41, 59, 0.86);
  --night-line: #1e293b;
  --night-text: #e5e9f0;
  --night-sub: #94a3b8;
  --night-faint: #8b97ab;
  --band: #0f172a;
  --display: 'Archivo', 'Plex', system-ui, sans-serif;
  --wrap: 1200px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1120;
    --card: #111a2c;
    --soft: #0e1626;
    --tint: #1b2436;
    --ink: #f1f5f9;
    --text: #e5e9f0;
    --body: #cbd5e1;
    --sub: #a7b3c6;
    --faint: #64748b;
    --line: #243047;
    --line-2: #2c3a55;
    --row: #1b2436;
    --indigo: #a5b4fc;
    --indigo-ink: #e0e7ff;
    --indigo-soft: #1e1b4b;
    --pos: #2dd4bf;
    --neg: #fb923c;
    --warn-ink: #fdba74;
    --warn-bg: #431407;
    --warn-soft: #2a1407;
    --good-bg: #042f2e;
    --band: #111a2c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.6 'Plex', system-ui, -apple-system, 'Segoe UI', sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--indigo-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
input, button { font: inherit; color: inherit; }
input::placeholder { color: var(--sub); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--card); padding: 10px 14px; border-radius: 10px; z-index: 30; }
.skip:focus { top: 12px; }
.num { font-family: 'Plex Mono', ui-monospace, monospace; font-weight: 600; font-variant-numeric: tabular-nums; }
.sub { color: var(--sub); }
.small { font-size: 14px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.lead { color: var(--sub); font-size: 18px; max-width: 64ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn-xs { min-height: 34px; padding: 4px 14px; font-size: 14px; border-radius: 8px; }
.btn-light { background: #ffffff; color: #0b1120; }
.btn-light:hover { background: #e0e7ff; }
.btn-ghost { background: transparent; color: #ffffff; border-color: #475569; }
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-ink { background: var(--ink); color: var(--paper); border-radius: 10px; }
.btn-ink:hover { background: var(--indigo); color: #ffffff; }
.btn-line { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover, .btn-line[aria-pressed="true"] { border-color: var(--ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand i { position: relative; width: 11px; height: 11px; border-radius: 6px; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); }
/* Radar: two rings leave the dot in turn and fade as they widen. */
.brand i::before, .brand i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--mint); opacity: 0; animation: radar 2.8s cubic-bezier(.2, .6, .35, 1) infinite; pointer-events: none; }
.brand i::after { animation-delay: 1.4s; }
@keyframes radar { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(3.4); opacity: 0; } }
.brand-sub { font-weight: 500; color: var(--sub); }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a, .quiet { color: var(--body); text-decoration: none; font-size: 15px; padding: 10px 0; white-space: nowrap; }
.top nav a:hover, .quiet:hover { color: var(--ink); }
.search-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 8px 6px 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--sub); text-decoration: none; font-size: 14px; background: var(--card); }
.search-btn:hover { color: var(--ink); border-color: var(--sub); }
.search-btn kbd, .esc { font: 500 12px 'Plex Mono', monospace; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--sub); background: transparent; }
.top-dark { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.top-dark .brand, .top-dark nav a:hover, .top-dark .quiet:hover { color: #ffffff; }
.top-dark nav a, .top-dark .quiet { color: #cbd5e1; }
.top-dark .search-btn { background: transparent; border-color: #334155; color: #cbd5e1; }
.top-dark .search-btn kbd { border-color: #334155; color: var(--night-sub); }
@media (max-width: 1080px) { .top nav { display: none; } .top .search-btn { margin-left: auto; } }
@media (max-width: 640px) { .top .quiet, .top .btn, .search-btn span, .search-btn kbd { display: none; } .top .wrap { gap: 12px; } }

/* The opening: the copy beside an iPhone whose lock screen holds the clock and the alerts. */
.opening { background: var(--night); color: var(--night-text); }
.hero { padding: 112px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.hero h1 { margin: 0; max-width: 18ch; font-family: var(--display); font-stretch: 112%; font-weight: 750; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.03; letter-spacing: -0.025em; color: #ffffff; text-wrap: balance; }
.hero-lead { margin: 18px 0 0; max-width: 52ch; font-size: 18px; color: #cbd5e1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
/* Join the beta: the Google Play address under the demo button, drawn like the ghost button. */
.beta { margin-top: 16px; max-width: 480px; text-align: left; }
.beta [hidden] { display: none; }
.beta-form { display: flex; gap: 6px; padding: 5px; border: 1px solid #475569; border-radius: 999px; background: rgba(15, 23, 42, .7); transition: border-color .15s; }
.beta-form:focus-within { border-color: #cbd5e1; }
.beta-form input { flex: 1; min-width: 0; padding: 0 16px; min-height: 44px; border: 0; outline: none; background: transparent; color: #ffffff; font-size: 16px; }
.beta-form input::placeholder { color: var(--night-faint); }
.beta-form .btn { min-height: 44px; padding: 8px 20px; flex: none; }
.beta-form .btn:disabled { opacity: .6; cursor: progress; }
.beta-hint { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--night-sub); max-width: 48ch; }
.beta-err { margin: 8px 0 0; font-size: 14px; color: #fdba74; }
.beta-done { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; margin: 0; padding: 14px 16px; border: 1px solid var(--night-line); border-radius: 16px; background: var(--night-card); font-size: 15px; line-height: 1.45; }
.beta-done svg { flex: none; margin-top: 2px; color: var(--mint); }
.beta-done span { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.beta-done b { color: #ffffff; }
.beta-again { color: #a5b4fc; font-size: 14px; }
@media (max-width: 860px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 48px; text-align: center; }
  .hero h1, .hero-lead, .beta, .beta-hint { margin-inline: auto; }
  .cta-row, .stores { justify-content: center; }
}
@media (max-width: 480px) {
  .beta-form { flex-direction: column; border-radius: 18px; }
  .beta-form input { min-height: 48px; }
}

.iphone { position: relative; width: 340px; max-width: 100%; aspect-ratio: 340 / 700; border-radius: 56px; padding: 11px; background: #1c1c20; box-shadow: inset 0 0 0 1.5px #3a3a42, 0 0 0 1px #000, 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(99, 102, 241, .35); }
.iphone::before, .iphone::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #3a3a42; }
.iphone::before { left: -3px; top: 150px; height: 56px; box-shadow: 0 70px 0 #3a3a42; }
.iphone::after { right: -3px; top: 190px; height: 90px; }
.iphone-screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; color: #ffffff; background: radial-gradient(120% 70% at 20% 0%, #312e81 0%, transparent 60%), radial-gradient(90% 60% at 100% 100%, #0f766e 0%, transparent 55%), linear-gradient(180deg, #111a2c, var(--night)); }
.iphone-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 104px; height: 31px; border-radius: 20px; background: #000; }
.iphone-status { position: absolute; top: 20px; right: 28px; display: flex; gap: 6px; align-items: center; }
.iphone-bars { display: flex; gap: 2px; align-items: flex-end; height: 11px; }
.iphone-bars i { width: 3px; height: 4px; background: #ffffff; border-radius: 1px; }
.iphone-bars i:nth-child(2) { height: 6px; }
.iphone-bars i:nth-child(3) { height: 8px; }
.iphone-bars i:nth-child(4) { height: 11px; }
.iphone-batt { width: 24px; height: 12px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .5); padding: 1px; }
.iphone-batt i { display: block; width: 80%; height: 100%; border-radius: 2px; background: #ffffff; }
.iphone-lock { position: absolute; inset: 54px 12px 0; text-align: center; }
.iphone-padlock { display: block; margin: 0 auto; width: 14px; height: 18px; }
.hero-date { margin-top: 6px; font-weight: 600; font-size: 17px; line-height: 1.2; color: rgba(255, 255, 255, .88); }
.hero-clock { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 84px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .94); transition: opacity .25s; }
.iphone-keys { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: space-between; padding: 0 40px; }
.iphone-keys i { width: 46px; height: 46px; border-radius: 50%; background: rgba(40, 40, 46, .6); backdrop-filter: blur(20px); display: grid; place-items: center; }
.iphone-keys svg { width: 20px; height: 20px; }
.iphone-home { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .85); }

/* An alert as an iOS notification: frosted material, app icon, title and time, one line of body. */
.pushes { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; text-align: left; }
.push { border-radius: 22px; background: rgba(44, 44, 50, .58); backdrop-filter: blur(28px) saturate(1.7); transition: background-color .2s; }
.push[open] { background: rgba(70, 70, 80, .72); }
.push summary { list-style: none; display: flex; gap: 10px; align-items: center; padding: 10px 12px 11px 10px; cursor: pointer; border-radius: 22px; }
.push summary::-webkit-details-marker { display: none; }
.push-ic { flex: 0 0 38px; height: 38px; border-radius: 9px; background: linear-gradient(160deg, #111a2c, var(--night)); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); display: grid; place-items: center; }
.push-ic i { width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); }
.push-text { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); font-size: 14px; line-height: 1.3; }
.push-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.push-top b { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push-top time { flex: none; font-size: 13px; color: rgba(235, 235, 245, .62); }
.push-body { color: rgba(255, 255, 255, .92); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push-opens { margin: 0 14px; padding: 9px 0 12px; border-top: .5px solid rgba(255, 255, 255, .18); display: flex; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.35; }
.push-opens span:last-child { color: rgba(235, 235, 245, .62); }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border: 1px solid #475569; border-radius: 10px; background: #000; color: var(--night-text); font: 600 17px/1.15 'Plex', sans-serif; text-align: left; }
.store-badge img { width: 24px; height: 24px; filter: invert(1); }
.store-badge span { display: flex; flex-direction: column; }
.store-badge small { font-size: 11px; font-weight: 600; color: #fdba74; letter-spacing: .02em; }

/* Logo strip */
.works { border-top: 1px solid var(--night-line); padding: 20px 0 24px; overflow: hidden; }
.works-head { text-align: center; padding-bottom: 16px; }
.works h2 { font: 600 18px 'Plex', sans-serif; color: var(--night-text); letter-spacing: -0.01em; }
.works-head p { color: var(--night-faint); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.works:hover .marquee-track, .works:focus-within .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; }
.marquee li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 26px; white-space: nowrap; font-weight: 600; font-size: 15px; color: #cbd5e1; }
.marquee img { width: 22px; height: 22px; filter: invert(1); opacity: .8; }
.marquee .wordmark { font-family: var(--display); font-stretch: 112%; font-weight: 700; letter-spacing: -0.01em; color: var(--night-text); }
.marquee .soon span { color: #64748b; }
.marquee .soon img { opacity: .35; }
.marquee small { font-size: 11px; font-weight: 600; color: #fdba74; background: #431407; padding: 2px 8px; border-radius: 999px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.sec { padding: 88px 0; }
.sec-card { background: var(--card); border-block: 1px solid var(--line); }
.sec-soft { background: var(--soft); border-top: 1px solid var(--line); }
.sec h2, .band h2, .stuck h2 { font-family: var(--display); font-stretch: 112%; font-weight: 750; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
.sec h2 + .lead { margin-top: 14px; }
.sec-head { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; justify-content: space-between; }
.sec-head > h2 { flex: 1 1 420px; }
.sec-head > p { flex: 1 1 420px; color: var(--sub); max-width: 60ch; }
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-text h2 { max-width: 15ch; }

/* What it watches: a tab per category (radios + labels), its sample alerts on a lock screen beside it. */
.watch-grid { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.watch-text { flex: 1 1 380px; min-width: 0; }
.watch-text h2 { max-width: 16ch; }
.watch-text .lead { margin-top: 14px; max-width: 40ch; }
.w-tabs { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.w-tabs label { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; color: var(--ink); cursor: pointer; }
.w-tabs label:hover { background: var(--tint); }
.w-tabs small { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--sub); }
.w-tabs svg { color: var(--faint); transform: rotate(-90deg); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-money { background: #3730a3; } .dot-users { background: #0f766e; } .dot-stability { background: #be123c; } .dot-custom { background: #64748b; } .dot-reports { background: #94a3b8; }
@media (prefers-color-scheme: dark) { .dot-money { background: #a5b4fc; } .dot-users { background: #2dd4bf; } .dot-stability { background: #fb7185; } }
.w-screen { flex: 1.3 1 480px; min-width: 0; min-height: 480px; display: flex; flex-direction: column; padding: 28px; border-radius: 28px; color: #ffffff; background: radial-gradient(120% 70% at 20% 0%, #312e81 0%, transparent 60%), radial-gradient(90% 60% at 100% 100%, #0f766e 0%, transparent 55%), linear-gradient(180deg, #111a2c, var(--night)); }
.w-panel { display: none; }
.w-cap { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #cbd5e1; }
.w-cap span:last-child { font-weight: 400; color: var(--night-sub); }
.w-pushes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.w-push { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 22px; background: rgba(44, 44, 50, .62); }
.w-push .push-ic { flex-basis: 40px; height: 40px; }
.w-push .push-text { font-size: 15px; line-height: 1.35; }
.w-to { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #cbd5e1; }
.w-to span { padding: 4px 10px; border: 1px solid #334155; border-radius: 999px; color: var(--night-text); }
.w-to em { flex-basis: 100%; font-style: normal; color: var(--night-sub); }
#w-money:checked ~ .watch-grid .wp-money, #w-users:checked ~ .watch-grid .wp-users, #w-stability:checked ~ .watch-grid .wp-stability,
#w-custom:checked ~ .watch-grid .wp-custom, #w-reports:checked ~ .watch-grid .wp-reports { display: block; }
#w-money:checked ~ .watch-grid label[for="w-money"], #w-users:checked ~ .watch-grid label[for="w-users"], #w-stability:checked ~ .watch-grid label[for="w-stability"],
#w-custom:checked ~ .watch-grid label[for="w-custom"], #w-reports:checked ~ .watch-grid label[for="w-reports"] { background: var(--indigo-soft); }
#w-money:focus-visible ~ .watch-grid label[for="w-money"], #w-users:focus-visible ~ .watch-grid label[for="w-users"], #w-stability:focus-visible ~ .watch-grid label[for="w-stability"],
#w-custom:focus-visible ~ .watch-grid label[for="w-custom"], #w-reports:focus-visible ~ .watch-grid label[for="w-reports"] { outline: 2px solid var(--indigo); outline-offset: -2px; }
@media (max-width: 640px) { .w-screen { min-height: 0; padding: 18px 14px; border-radius: 22px; } .w-push .push-text { font-size: 14px; } }

/* Ledger: a bordered sheet with a 2px rule under its caption. */
.ledger { margin: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 4px; }
.ledger figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 2px solid var(--ink); font-weight: 700; }
.ledger figcaption .sub { font-weight: 400; font-size: 13px; }
.ledger figcaption.plain { padding: 0 0 12px; border: 0; }
.ledger.pad { padding: 20px; }
.ledger.soft { background: var(--soft); }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger th, .ledger td { padding: 12px 20px; text-align: left; border-top: 1px solid var(--row); font-weight: 400; }
.ledger thead th { border-top: 0; padding-top: 10px; padding-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--sub); }
.ledger tbody th b { font-weight: 600; }
.ledger .num, .ledger th.num { text-align: right; }
.ledger .end { text-align: right; }
.scroll { overflow-x: auto; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tag-bad { color: var(--warn-ink); background: var(--warn-bg); }
.tag-warn { color: var(--warn-ink); background: var(--warn-soft); }
.tag-calm { color: var(--body); background: var(--tint); }
.tag-good { color: var(--pos); background: var(--good-bg); }

/* Revenue */
.money-grid { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px; align-items: flex-start; }
.stats { flex: 1 1 300px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.stats div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-size: 13px; color: var(--sub); }
.stats dd { margin: 2px 0 0; font-size: 26px; color: var(--ink); }
.stats dd.pos { color: var(--pos); }
.stats p { grid-column: 1 / -1; margin-top: 10px; font-size: 13px; }
.margin { flex: 2 1 560px; min-width: 0; }
.margin table { min-width: 520px; }
#m-losing:checked ~ .scroll .m-earning, #m-earning:checked ~ .scroll .m-losing { display: none; }
.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 8px; background: var(--tint); font-weight: 600; }
.seg label { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 6px; font-size: 13px; color: var(--sub); cursor: pointer; }
#m-losing:checked ~ figcaption label[for="m-losing"], #m-earning:checked ~ figcaption label[for="m-earning"],
#bill-y:checked ~ .seg label[for="bill-y"], #bill-m:checked ~ .seg label[for="bill-m"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
#m-losing:focus-visible ~ figcaption label[for="m-losing"], #m-earning:focus-visible ~ figcaption label[for="m-earning"],
#bill-y:focus-visible ~ .seg label[for="bill-y"], #bill-m:focus-visible ~ .seg label[for="bill-m"] { outline: 2px solid var(--indigo); outline-offset: 2px; }
.limit { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--soft); }
.limit label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 14px; font-weight: 600; }
.limit input { width: 100%; margin: 8px 0 2px; accent-color: var(--pos); min-height: 28px; }
.limit p { font-size: 14px; color: var(--body); }
.limit:not(.live) input, .limit:not(.live) output { display: none; }

/* Users and product */
.leaders { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.leaders li { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.leaders li > span:first-child { font-weight: 600; color: var(--ink); }
.leaders i { flex: 1; border-bottom: 1px dotted var(--faint); transform: translateY(-4px); }
.leaders .sub { font-size: 14px; }
.stack { display: grid; gap: 20px; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.f-row { display: flex; justify-content: space-between; }
.bar { display: block; height: 8px; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--indigo); border-radius: 2px; }
.w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; }
.w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }
.ledger .small.sub { margin-top: 12px; font-size: 13px; }
.ask-q { margin-top: 2px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--body); }
.ask-q + .small { margin-top: 10px; color: var(--body); }

/* Phone and web, drawn from the app's tokens */
.devices { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px; align-items: flex-end; }
.phone { flex: 0 0 auto; margin: 0 auto; width: 250px; height: 500px; border-radius: 36px; border: 9px solid #0f172a; background: #f4f5f7; padding: 36px 12px 12px; overflow: hidden; color: #0f172a; display: flex; flex-direction: column; }
.ds-sub { font-size: 12px; color: #526072; }
.ds-h { margin: 2px 0 10px; font-size: 19px; font-weight: 700; }
.ds-warn { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px; font-size: 12px; line-height: 1.45; color: #7c2d12; }
.ds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ds-grid div { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 9px; }
.ds-grid span { display: block; font-size: 11px; color: #526072; }
.ds-grid b { font: 600 15px 'Plex Mono', monospace; }
.ds-grid .pos { color: #0f766e; }
.ds-tabs { margin-top: auto; display: flex; justify-content: space-around; font-size: 11px; color: #526072; }
.ds-tabs .on { color: #3730a3; font-weight: 600; }
.browser { flex: 999 1 600px; min-width: 0; background: #f4f5f7; border: 1px solid #d5dae2; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(15, 23, 42, .4); color: #0f172a; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #e2e8f0; background: #ffffff; font-size: 13px; color: #526072; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar span { margin-left: 12px; }
.browser-body { display: flex; flex-wrap: wrap; }
.side { flex: 0 0 170px; background: #ffffff; border-right: 1px solid #e2e8f0; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #334155; }
.side span { padding: 8px 10px; border-radius: 8px; }
.side .on { background: #e0e7ff; color: #3730a3; font-weight: 600; }
.pane { flex: 999 1 380px; min-width: 0; padding: 20px; display: grid; gap: 10px; }
.ds-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.ds-grid.four { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 0; }
.ds-ask { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; color: #526072; font-size: 14px; }
@media (max-width: 640px) { .side { display: none; } }

/* Privacy band */
.band { background: var(--band); color: #e5e9f0; padding: 64px 0; }
.band h2 { color: #ffffff; font-size: clamp(28px, 3.4vw, 42px); }
.band-grid { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: baseline; }
.band-grid > * { flex: 1 1 420px; }
.band p { color: #cbd5e1; }

/* Pricing: a card per plan saying what it adds, the full table folded under them. */
.pricing .seg-lg { margin-top: 28px; }
.seg-lg label { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.seg-lg small { margin-left: 6px; font-size: 12px; color: var(--pos); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 24px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px; background: var(--card); border: 1px solid var(--line-2); border-radius: 4px; }
.plan.hot { border: 2px solid var(--ink); padding: 23px 21px; }
.plan-badge { position: absolute; top: -12px; left: 20px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; }
.plan-name { display: block; font-size: 20px; font-weight: 700; }
.plan-who { margin-top: 2px; font-size: 14px; color: var(--sub); }
.plan-price { display: block; font-size: 32px; line-height: 1.1; margin-top: 16px; color: var(--ink); }
.plan-price small { font: 400 14px 'Plex', sans-serif; color: var(--sub); }
.plan-note { display: block; min-height: 21px; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--sub); }
.plan-plus { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--sub); }
.plan ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 9px; }
.plan li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.plan li svg { flex: none; margin-top: 2px; color: var(--pos); }
.y, .m { display: block; }
#bill-y:checked ~ * .m, #bill-m:checked ~ * .y { display: none; }
.compare { margin-top: 24px; }
.compare summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--indigo); cursor: pointer; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary svg { transition: transform .2s; }
.compare[open] summary svg { transform: rotate(180deg); }
.compare .ledger { margin-top: 10px; }
.compare table { min-width: 760px; table-layout: fixed; }
.compare th, .compare td { padding: 13px 16px; }
.compare thead th { vertical-align: top; color: var(--ink); padding-top: 22px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.compare thead th:first-child { width: 30%; }
.compare thead .plan-name { font-size: 18px; }
.compare thead .plan-price { font-size: 22px; margin-top: 6px; }
.compare tbody th { font-weight: 500; color: var(--ink); }
/* One left edge per plan column: the price, the counts, the words and the ticks all start there. */
.compare .ledger th, .compare .ledger td, .compare .ledger .num { text-align: left; }
.compare tbody td { font-weight: 500; color: var(--ink); }
.yes { color: var(--pos); }
.no { color: var(--faint); }
.pricing + .small { margin-top: 14px; }
@media (max-width: 760px) {
  .compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: 1px 0 0 var(--line); }
  .compare thead th:first-child { width: 150px; }
}

/* FAQ */
#faq .split { align-items: flex-start; }
#faq .split > h2 { flex: 1 1 300px; }
.faq { flex: 2 1 560px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--body); max-width: 70ch; }

/* Search fields */
.help-search { display: flex; gap: 8px; }
.help-search input { flex: 1; min-width: 0; padding: 13px 16px; min-height: 50px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); }
.help-search input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--indigo-soft); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--sub); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.foot a { color: var(--sub); }
.foot .spacer { flex: 1; }

/* Simple pages (delete account, 404, legal) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.025em; line-height: 1.05; }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc p, .doc li { color: var(--body); }
.doc p { margin-top: 14px; }
.doc ol, .doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal .updated { color: var(--sub); font-size: 15px; margin-top: 10px; }
.legal .toc { margin-top: 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.legal .toc p { margin: 0; font-weight: 600; }
.legal .toc ul { columns: 2; column-gap: 32px; display: block; padding-left: 18px; }
.legal .toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 600px) { .legal .toc ul { columns: 1; } }
.legal .prose h2 { font-size: 22px; margin-top: 40px; }
.legal .prose p, .legal .prose li { color: var(--text); }

/* ⌘K search */
.palette { position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 42, .45); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-box { width: min(640px, 100%); background: var(--card); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55); overflow: hidden; }
.palette-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--sub); }
.palette-field input { flex: 1; min-width: 0; border: 0; outline: none; padding: 16px 0; font-size: 17px; background: transparent; color: var(--ink); }
.esc { cursor: pointer; min-height: 28px; }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: min(420px, 60vh); overflow: auto; }
.palette-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.palette-list a b { font-weight: 600; }
.palette-list a span { font-size: 12px; color: var(--sub); white-space: nowrap; }
.palette-list a[aria-selected="true"], .palette-list a:hover { background: var(--indigo-soft); }
.palette-empty { padding: 14px 18px; color: var(--sub); }

/* Ask a question: the corner button and its panel, a bottom sheet on a phone. Indigo reads on the dark opening and on the light body alike. */
.ask { position: fixed; right: 24px; bottom: 24px; z-index: 30; }
.ask [hidden] { display: none; }
.ask-launch { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px 10px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: #3730a3; color: #ffffff; font-weight: 600; cursor: pointer; box-shadow: 0 12px 32px -10px rgba(15, 23, 42, .7); transition: background-color .15s; }
.ask-launch::-webkit-details-marker { display: none; }
.ask-launch:hover { background: #4338ca; }
.ask-launch:focus-visible { outline: 2px solid #ffffff; outline-offset: 0; box-shadow: 0 0 0 5px #3730a3; border-radius: 999px; }
.ask-panel { position: absolute; right: 0; bottom: 60px; width: 372px; max-height: calc(100vh - 108px); overflow-y: auto; display: grid; gap: 16px; padding: 20px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55); }
.ask-scrim { display: none; }
.ask-who { display: flex; gap: 12px; align-items: center; }
.ask-av { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); font-weight: 700; }
.ask-who b { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ask-who span span { display: block; font-size: 14px; line-height: 1.4; color: var(--sub); }
.ask-x { flex: none; align-self: flex-start; margin: -6px -8px 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--sub); cursor: pointer; }
.ask-x:hover { background: var(--tint); color: var(--ink); }
.ask-form { display: grid; gap: 12px; }
.ask-form label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ask-form input, .ask-form textarea { display: block; width: 100%; font: inherit; padding: 11px 14px; min-height: 46px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); resize: none; }
.ask-form input:focus, .ask-form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--indigo-soft); }
.ask-form textarea::placeholder { color: var(--sub); }
.ask-form .btn { width: 100%; }
.ask-form .btn:disabled { opacity: .6; cursor: progress; }
.ask-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-err { font-size: 14px; line-height: 1.45; color: var(--neg); }
.ask-note { font-size: 13px; line-height: 1.45; color: var(--sub); }
.ask-done { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.ask-done svg { flex: none; margin-top: 2px; color: var(--pos); }
.ask-done b { color: var(--ink); }
.ask-done a { white-space: nowrap; }
@media (max-width: 640px) {
  .ask { right: 16px; bottom: 16px; }
  .ask-launch { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .ask-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ask-scrim { display: block; position: fixed; inset: 0; width: 100%; padding: 0; border: 0; background: rgba(15, 23, 42, .45); }
  .ask-scrim[hidden] { display: none; }
  .ask-panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 100dvh; padding: 20px 16px 24px; border: 0; border-radius: 20px 20px 0 0; box-shadow: none; }
}
@media print { .ask { display: none; } }

/* Docs (help center, direction G3) */
.docs-top .wrap { gap: 18px; }
.docs-top .search-btn { flex: 0 1 380px; margin: 0 auto; }
.docs-top .search-btn span { flex: 1; }
.docs { display: flex; flex-wrap: wrap; min-height: 70vh; }
.docs-nav { flex: 0 0 272px; border-right: 1px solid var(--line); background: var(--paper); padding: 20px 14px 48px; font-size: 14px; position: sticky; top: 67px; align-self: flex-start; max-height: calc(100vh - 67px); overflow-y: auto; }
.dn-home, .docs-nav li a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--body); text-decoration: none; }
.dn-home { font-weight: 600; }
.dn-home:hover, .docs-nav li a:hover { background: var(--tint); color: var(--ink); }
.dn-home[aria-current], .docs-nav li a[aria-current] { background: var(--indigo-soft); color: var(--indigo); font-weight: 600; }
.dn-group { margin-top: 12px; }
.dn-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; min-height: 32px; font-size: 12px; font-weight: 700; color: var(--sub); cursor: pointer; border-radius: 6px; }
.dn-group summary::-webkit-details-marker { display: none; }
.dn-group summary svg { transition: transform .15s; }
.dn-group:not([open]) summary svg { transform: rotate(-90deg); }
.dn-group ul { list-style: none; margin: 2px 0 0; padding: 0; }
.docs-main { flex: 999 1 640px; min-width: 0; padding: 40px 48px 96px; }
@media (max-width: 900px) {
  .docs-nav { position: static; flex: 1 1 100%; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-main { padding: 28px 20px 72px; }
  .docs-top .search-btn { flex: 1 1 auto; }
}

.ov { max-width: 880px; }
.ov h1, .art h1 { font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: clamp(32px, 4vw, 52px); line-height: 1.03; letter-spacing: -0.03em; }
.ov > .lead { margin-top: 12px; }
.ov .help-search { margin-top: 24px; max-width: 640px; }
.ov h2 { font-size: 16px; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.ov-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 40px; margin-top: 40px; }
.ov-list { list-style: none; margin: 0; padding: 0; }
.ov-list li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ov-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.ov-list a:hover { color: var(--indigo); text-decoration: underline; }
.ov-news .num { flex: 0 0 56px; font-size: 13px; padding-top: 2px; }
.ov-demo { margin-top: 40px; padding: 20px 22px; background: var(--night-2); color: var(--night-text); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.ov-demo b { display: block; color: #ffffff; }
.ov-demo > span > span { display: block; font-size: 14px; color: var(--night-sub); }
.ov-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 8px 40px; margin-top: 24px; }
.ov-group { padding-top: 28px; }
.ov-group ul { list-style: none; margin: 0; padding: 0; }
.ov-group a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ov-group a b { display: block; font-weight: 600; }
.ov-group a span { display: block; color: var(--sub); font-size: 14px; margin-top: 2px; }
.ov-group a:hover b { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.stuck { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.stuck h2 { font-size: 26px; border: 0; padding: 0; }
.stuck p { margin-top: 8px; color: var(--body); }

.art-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.art { flex: 999 1 520px; min-width: 0; max-width: 740px; }
.crumbs { font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.crumbs a { color: var(--sub); }
.art h1 { font-size: clamp(30px, 3.6vw, 44px); }
.art-meta { margin-top: 10px; font-size: 13px; color: var(--sub); }
.art > .lead { margin-top: 16px; font-size: 18px; color: var(--body); }
.docs-toc { flex: 1 1 180px; max-width: 230px; position: sticky; top: 96px; font-size: 13px; }
.docs-toc p { margin: 0 0 8px; font-weight: 700; color: var(--sub); }
.docs-toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 6px; }
.docs-toc a { color: var(--sub); text-decoration: none; }
.docs-toc a:hover, .docs-toc a.on { color: var(--indigo); font-weight: 600; }
@media (max-width: 1180px) { .docs-toc { display: none; } }

.prose { margin-top: 8px; color: var(--text); }
.prose h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin-top: 44px; scroll-margin-top: 88px; }
.prose h3 { font-size: 18px; font-weight: 700; margin-top: 30px; scroll-margin-top: 88px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 8px; }
.prose li::marker { color: var(--sub); }
.prose ol > li::marker { font-weight: 600; color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code { font: 500 0.88em 'Plex Mono', ui-monospace, monospace; background: var(--tint); color: var(--ink); padding: 1px 6px; border-radius: 5px; }
.prose pre { margin: 18px 0 0; padding: 14px 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.prose pre[data-lang]::before { content: attr(data-lang); display: block; margin: -4px 0 8px; font: 500 12px 'Plex', sans-serif; color: var(--sub); }
.prose pre code { background: none; padding: 0; font-size: 1em; color: var(--text); }
.prose .table-box { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 4px; background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--row); vertical-align: top; }
.prose thead th { border-top: 0; border-bottom: 2px solid var(--ink); font-weight: 600; color: var(--ink); }
.prose tbody th { font-weight: 500; }
.callout { margin-top: 18px; padding: 14px 18px; border-radius: 8px; background: var(--tint); color: var(--body); }
.callout p { margin: 0; }
.callout.tip { background: color-mix(in srgb, var(--mint) 12%, var(--card)); }
.callout.plan { background: var(--indigo-soft); color: var(--indigo-ink); }
.callout.important { background: var(--warn-soft); color: var(--warn-ink); }
.helpful { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.helpful > span:first-child { font-weight: 600; color: var(--ink); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pager a { display: block; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 6px; text-decoration: none; font-weight: 600; color: var(--ink); background: var(--card); }
.pager a:hover { border-color: var(--ink); }
.pager a small { display: block; color: var(--sub); font-weight: 400; font-size: 13px; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager .next { grid-column: 1; } }

.results { margin-top: 24px; max-width: 760px; }
.results > p { color: var(--sub); font-size: 14px; }
.results ul { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.results li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.results li b { display: block; font-weight: 600; }
.results li span { display: block; font-size: 14px; color: var(--sub); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden] { display: none; }
  .brand i::before, .brand i::after { animation: none; display: none; }
  *, *::before, *::after { transition: none !important; }
}

/* Setup page (your own Postgres): the code box, numbered steps and the commands. */
.setup-eyebrow { margin: 0 0 10px; font: 600 12px 'Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
.setup-code { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.setup-code p { margin: 0; }
.setup-code-label, .setup-code-note { font-size: 14px; color: var(--sub); }
.setup-code-value { margin: 4px 0 !important; font: 600 28px 'Plex Mono', monospace; letter-spacing: .12em; color: var(--ink); }
.setup-nocode { padding: 14px 16px; border-radius: 10px; background: var(--warn-soft); color: var(--warn-ink) !important; }
.setup h2 { display: flex; align-items: center; gap: 12px; }
.setup-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 13px 'Plex Mono', monospace; flex: none; }
.setup-run { margin-top: 18px; }
.setup-run-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setup-run h3 { margin: 0; font-size: 15px; }
.setup-run pre { margin: 8px 0 0; padding: 14px 16px; background: #0f172a; color: #e2e8f0; border-radius: 10px; overflow-x: auto; font: 500 13px/1.6 'Plex Mono', monospace; }
.setup-run [data-code] { color: #5eead4; }
.setup-table { margin-top: 14px; width: 100%; border-collapse: collapse; font-size: 15px; }
.setup-table th, .setup-table td { padding: 10px 8px; border-top: 1px solid var(--row); text-align: left; vertical-align: top; color: var(--body); }
.setup-table th { font-weight: 500; white-space: nowrap; }
.setup-stuck { font-size: 14px; color: var(--sub) !important; }
.setup-ai { margin-top: 28px; padding: 4px 20px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.setup-ai h2 { margin-top: 18px; font-size: 18px; }
.setup-ai pre { white-space: pre-wrap; }
