/* RankHint marketing site. Served as a static asset; pages are rendered by src/worker/marketing. */

@font-face { font-family: "Schibsted Grotesk"; src: url("/m/fonts/display.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/m/fonts/body.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/m/fonts/mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ── tokens ─────────────────────────────────────────────────────────── */
/* colors come from src/theme/palette.css, inlined into every page by src/worker/marketing/layout.ts */
:root {
  /* the site's accent is teal in light mode, not the app's pink (palette.css › Marketing site) */
  --accent: var(--site-accent);
  --accent-strong: var(--site-accent-strong);
  --accent-soft: var(--site-accent-soft);
  --ease-out: cubic-bezier(.32, .72, 0, 1); /* sheets, iOS-style */
  --ease-out-soft: cubic-bezier(.2, .8, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --display: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 4px;
  --wrap: 1180px;
}

/* ── base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: color-mix(in srgb, var(--brand) 50%, transparent); color: var(--text); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 3px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 3px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 3px; }
/* cut top-right corner, drawn with a gradient so the focus outline still shows. border-box + no-repeat: otherwise the
   gradient is sized to the padding box and tiles into the transparent border, drawing a dark edge around the cut */
.btn-primary { --btn-bg: var(--brand); background: linear-gradient(225deg, transparent 8px, var(--btn-bg) 8.5px) border-box no-repeat; border-color: transparent; color: var(--brand-ink); border-radius: 2px; }
.btn-primary:hover { --btn-bg: var(--brand-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-text { color: var(--text-2); padding: 0 10px; }
.btn-text:hover { color: var(--text); }
/* signed in to the app / platform admin: classes theme.js sets from the app's hint cookies before first paint */
html:not(.signed-in) .if-signed-in, html.signed-in .if-signed-out, html:not(.rh-admin) .if-admin { display: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ── header ────────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.hdr.scrolled { border-bottom-color: var(--border); }
.hdr .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.03em; color: var(--text); }
.logo svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 3px; font-size: 14.5px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
.hdr-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; margin-right: -6px; border-radius: 4px; border: 0; background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; transition: background-color .15s, scale .15s var(--ease-out); }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn:hover { background: var(--bg-2); }
.menu-btn:active { scale: .92; }
@media (max-width: 860px) {
  .nav, .hdr-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr .wrap { height: 60px; }
}

/* ── mobile menu: a side sheet on the top layer (<dialog>: focus trap, Esc, inert page for free).
   Enters with an iOS-style spring curve, leaves faster; @starting-style + allow-discrete animate the
   open/close of the native element. site.js adds drag-to-dismiss. ─────────────────────────── */
dialog.mnav {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(88vw, 400px); height: 100dvh; max-width: none; max-height: none;
  background: var(--bg); color: var(--text);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 80px rgb(10 12 20 / .22);
  translate: 100% 0;
  transition: translate .28s var(--ease-in), overlay .28s var(--ease-in) allow-discrete, display .28s var(--ease-in) allow-discrete;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
dialog.mnav[open] { translate: 0 0; transition-duration: .5s; transition-timing-function: var(--ease-out); }
@starting-style { dialog.mnav[open] { translate: 100% 0; } }
dialog.mnav::backdrop {
  background: rgb(8 9 13 / 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
  transition: background-color .28s var(--ease-in), backdrop-filter .28s var(--ease-in), overlay .28s allow-discrete, display .28s allow-discrete;
}
dialog.mnav[open]::backdrop { background: rgb(8 9 13 / .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition-duration: .4s; transition-timing-function: ease-out; }
@starting-style { dialog.mnav[open]::backdrop { background: rgb(8 9 13 / 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); } }
html:has(dialog.mnav[open]) { overflow: hidden; }

.mnav-panel { display: flex; flex-direction: column; height: 100%; padding: max(env(safe-area-inset-top), 0px) 0 max(env(safe-area-inset-bottom), 16px); }
.mnav-top { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 14px 0 24px; flex: none; }
.mnav-close { width: 44px; height: 44px; border: 0; border-radius: 4px; background: var(--bg-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: scale .15s var(--ease-out); }
.mnav-close:active { scale: .92; }
.mnav-close svg { width: 20px; height: 20px; }
.mnav-links { flex: 1; overflow-y: auto; padding: 12px 12px 0; display: grid; align-content: start; gap: 2px; }
.mnav-links a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 14px; border-radius: 4px;
  font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; color: var(--text);
  -webkit-tap-highlight-color: transparent; transition: background-color .15s, scale .15s var(--ease-out);
}
.mnav-links a svg { width: 18px; height: 18px; color: var(--text-3); transition: translate .2s var(--ease-out); }
.mnav-links a:hover, .mnav-links a:active { background: var(--bg-2); }
.mnav-links a:active { scale: .985; }
.mnav-links a[aria-current="page"] { color: var(--accent); }
.mnav-links a[aria-current="page"] svg { color: var(--accent); }
.mnav-btns { display: grid; gap: 10px; padding: 16px 24px 8px; flex: none; }
.mnav-btns .btn { height: 52px; font-size: 16px; border-radius: 4px; }
/* links and buttons arrive one after another as the sheet lands */
dialog.mnav[open] .mnav-links a, dialog.mnav[open] .mnav-btns { animation: mnav-in .55s var(--ease-out) both; animation-delay: calc(80ms + var(--i, 7) * 32ms); }
@keyframes mnav-in { from { opacity: 0; translate: 24px 0; } }
dialog.mnav.dragging { transition: none; }
/* closing (site.js): slide out + fade the backdrop together while still on the top layer, then close() */
dialog.mnav[open].closing { translate: 100% 0; transition-duration: .28s; transition-timing-function: var(--ease-in); }
dialog.mnav[open].closing::backdrop { background: rgb(8 9 13 / 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition-duration: .28s; transition-timing-function: var(--ease-in); }

/* ── type helpers ──────────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px/1.2 var(--body); color: var(--accent-strong); }
.lede { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.6; color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: 13.5px; color: var(--text-3); }
.h-xl { font-size: clamp(40px, 5.6vw, 70px); letter-spacing: -0.04em; line-height: 1.1; font-weight: 700; }
.h-lg { font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -0.035em; line-height: 1.06; }
.h-md { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.025em; }
.h-sm { font-size: 18.5px; letter-spacing: -0.015em; line-height: 1.3; }
.hl { background: var(--hl-bg); color: var(--hl-ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .1em; }

/* ── sections ──────────────────────────────────────────────────────── */
.sec { padding: clamp(72px, 10vw, 128px) 0; overflow-x: clip; } /* the glows stay inside the page width */
.sec-tint { background: var(--bg-2); border-block: 1px solid var(--border); }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head .lede { margin-top: 18px; }

/* ── hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; background: var(--hero-bg); }
.hero .btn-primary { --btn-bg: var(--hero-btn-bg); color: var(--hero-btn-ink); }
.hero .btn-primary:hover { --btn-bg: var(--hero-btn-bg); opacity: .88; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 1100px; height: 700px; left: 50%; top: 260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hero-glow) 18%, transparent), transparent);
  filter: blur(20px);
}
.hero-top { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(30px, 9.6vw, 58px); line-height: 1.2; } /* sized so "Your site's traffic," stays one line */
@media (min-width: 981px) { .hero h1 { font-size: clamp(38px, 4.4vw, 62px); } }
.hero-copy .lede { max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.reassure { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-size: 13.5px; color: var(--text-3); padding: 0; list-style: none; }
.reassure li { display: inline-flex; align-items: center; gap: 6px; }
.reassure svg { width: 15px; height: 15px; color: var(--good); }
.hero-vis { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.hero-note { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--text-3); }
@media (max-width: 980px) { .hero-top { grid-template-columns: 1fr; gap: 22px; } }

/* ── the app, rebuilt with a sample site (demo.ts): same tokens as the real thing ─ */
.app { position: relative; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: var(--shadow-lg); font-size: 14px; }
.app-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface); border-radius: 6px 6px 0 0; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.app-bar span { flex: 1; text-align: center; margin-right: 40px; font: 12px var(--mono); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-in { display: grid; grid-template-columns: 188px minmax(0, 1fr); }
.app-side { background: var(--sidebar); border-right: 1px solid var(--sidebar-border); padding: 14px 10px; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--text-2); border-bottom-left-radius: 6px; }
.app-tabs { display: flex; flex-direction: column; gap: 1px; }
.app-tabs button { all: unset; box-sizing: border-box; padding: 6px 10px; border-radius: 3px; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.app-tabs button:hover { background: var(--nav-hover); color: var(--text); }
.app-tabs button[aria-current="page"] { background: var(--nav-active); color: var(--text); font-weight: 500; }
/* a section's tabs: the app's TabStrip, the current one underlined */
.app-strip { position: relative; display: flex; gap: 18px; margin: 8px 0 16px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.app-strip button { all: unset; flex: none; padding: 6px 0 8px; font-size: 13px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.app-strip button:hover { color: var(--text); }
.app-strip button[aria-current="page"] { color: var(--text); font-weight: 500; border-bottom-color: var(--text); }
.app-strip button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-main > .crumb + .app-head { margin-top: 2px; }
.sg b .sm { font-size: 15px; letter-spacing: 0; }
.dot-live { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--good); animation: breathe 3.2s ease-in-out infinite; }
.app-card .live-bars { margin-bottom: 0; }
.app-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* every view in one cell: the window is as tall as the tallest view, so switching never moves the page */
.app-views { display: grid; min-width: 0; }
.app-views > .app-main { grid-area: 1 / 1; transition: opacity .22s var(--ease-out-soft), visibility .22s; }
.app-views > .app-main[aria-hidden="true"] { opacity: 0; visibility: hidden; }
.app:not([data-view="overview"]) .receipt { display: none; }
.app-grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.app-main > .app-card { margin-top: 0; }
/* tables inside a card run edge to edge */
.tbl-wrap { position: relative; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--text-3); background: color-mix(in srgb, var(--surface-2) 50%, transparent); padding: 7px 10px; white-space: nowrap; }
.tbl td { padding: 8px 10px; border-top: 1px solid var(--border); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr { transition: background-color .12s; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl .up { color: var(--good); }
.tbl .dn { color: var(--bad); }
.tbl .mono { font-size: 12.5px; }
.plan-l .item { grid-template-columns: 1.6rem minmax(0, 1fr) auto; }
.plan-l .num { font: 600 13px/1.5 var(--body); color: var(--text-3); font-variant-numeric: tabular-nums; }
.attr { padding: 10px 18px 8px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.rep { list-style: none; margin: 0; padding: 0; }
.rep li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--border); }
.rep b { display: block; font-size: 13.5px; font-weight: 600; }
.rep span:not(.st) { font-size: 12.5px; color: var(--text-3); }
.app-card .gut li { grid-template-columns: 4.4rem minmax(0, 1fr); }
.app-card .gut li > div > b { font-size: 13.5px; }
.app-card .gut li > div > span { font-size: 12.5px; }
.st.quiet { color: var(--text-3); }
.app-main > .sg + .app-card { margin-top: 16px; }
.app-site { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); padding: 2px 8px 12px; }
.app-site b { width: 20px; height: 20px; border-radius: 3px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 11px; }
.app-main { padding: 22px 24px 24px; min-width: 0; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; }
.crumb { font-size: 12.5px; color: var(--text-3); }
.app-title { font: 650 24px/1.2 var(--display); letter-spacing: -0.02em; margin-top: 2px; }
.app-range { font-size: 12.5px; font-weight: 500; border: 1px solid var(--border); background: var(--surface); padding: 6px 10px; border-radius: 3px; white-space: nowrap; }
.app-range span { color: var(--text-3); font-weight: 400; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
.app-card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 16px 18px 14px; min-width: 0; }
.app-card.flush { padding: 16px 0 4px; }
.app-card.flush .app-card-h { padding: 0 18px; }
.app-card-h { display: flex; flex-direction: column; margin-bottom: 12px; }
.app-card-h b { font-weight: 600; font-size: 14px; }
.app-card-h span { font-size: 12px; color: var(--text-3); }
.take { margin: 16px 0 14px; font: 600 18px/1.4 var(--display); letter-spacing: -0.01em; color: var(--text); text-wrap: pretty; }

/* StatGroup: one panel with dividers */
.sg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); background: var(--surface); border-radius: 4px; margin-top: 18px; }
.sg > div { padding: 13px 16px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sg > div + div { border-left: 1px solid var(--border); }
.sg .k { font-size: 12.5px; color: var(--text-2); }
.sg b { font: 600 24px/1.25 var(--body); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sg b small { font-size: 14px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.sg b.sm { font-size: 15px; line-height: 1.3; white-space: normal; padding: 4px 0 2px; }
.sg .d { font-size: 12px; color: var(--text-3); text-align: left; }
.sg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d.up { color: var(--good); }
.d.bad { color: var(--bad); }
.ba s { color: var(--text-3); font-weight: 400; margin-right: 5px; font-size: .7em; text-decoration-thickness: 1px; }

/* what changed: status in a gutter, rows divided by hairlines */
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 18px; border-top: 1px solid var(--border); transition: background-color .2s; }
.item.on { background: var(--hover); }
.item .ti { font-weight: 600; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.item .sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.item .gain { text-align: right; font: 650 15px/1.2 var(--display); color: var(--good); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item .gain.down { color: var(--bad); }
.item .gain small { display: block; font: 500 10.5px var(--mono); color: var(--text-3); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.st.bad { color: var(--bad); }
.st.warn { color: var(--warn); }
.st.good { color: var(--good); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 7px; border-radius: 3px; font: 500 11px/1 var(--mono); white-space: nowrap; }
.tag.win { background: var(--good-soft); color: var(--good); }
.tag.maybe { background: var(--warn-soft); color: var(--warn); }
.tag.hard { background: var(--bad-soft); color: var(--bad); }
.tag.src { background: var(--bg-2); color: var(--text-2); }
.tag.acc { background: var(--accent-soft); color: var(--accent-strong); }

/* receipts: an underlined number opens where it came from (site.js places the popover under it) */
.ev {
  all: unset; cursor: pointer; border-bottom: 1.5px dotted color-mix(in srgb, var(--accent) 70%, transparent); color: var(--text);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.ev:hover, .ev[aria-expanded="true"] { background: var(--accent-soft); border-bottom-style: solid; border-radius: 3px 3px 0 0; }
.ev:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.receipt {
  position: absolute; z-index: 3; left: 0; top: 0; width: 310px; box-sizing: border-box;
  background: var(--paper); border: 1px solid var(--border-strong); border-radius: 4px; box-shadow: var(--shadow-pop);
  font: 12px/1.55 var(--mono); color: var(--text-2); padding: 14px 16px 16px;
  transition: opacity .25s, transform .25s, left .35s var(--ease-out-soft), top .35s var(--ease-out-soft);
}
.receipt .rh { display: flex; justify-content: space-between; color: var(--text); font-weight: 600; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--border-strong); }
.receipt dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; }
.receipt dt { color: var(--text-3); }
.receipt dd { margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.receipt .rf { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border-strong); color: var(--text-3); font-size: 11px; }
.receipt.swap { opacity: 0; transform: translateY(4px); }
.receipt:empty { display: none; }
@media (max-width: 980px) {
  .app-in { grid-template-columns: minmax(0, 1fr); }
  /* phones and tablets: the sidebar becomes a row of tabs over the view */
  .app-side { border-right: 0; border-bottom: 1px solid var(--sidebar-border); border-radius: 0; padding: 8px 0; }
  .app-site { display: none; }
  .app-tabs { flex-direction: row; gap: 2px; overflow-x: auto; position: relative; padding: 0 10px; scrollbar-width: none; }
  .app-grid.even { grid-template-columns: minmax(0, 1fr); }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .receipt { position: relative; left: auto !important; top: auto !important; width: auto; margin: 0 12px 12px; }
}
@media (max-width: 620px) {
  .app-main { padding: 16px 12px; }
  .app-range span, .hero-note { display: none; }
  .sg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg > div:nth-child(3) { border-left: 0; }
  .sg > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .sg3 > div:nth-child(3) { grid-column: 1 / -1; }
  .item { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 14px; }
  .item .st { grid-column: 1 / -1; }
  .take { font-size: 16px; }
}
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 45%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--good) 0%, transparent); } }

/* ── proof strip ───────────────────────────────────────────────────── */
.proof { padding: 36px 0 8px; }
.proof p { text-align: center; font-size: 13.5px; color: var(--text-3); margin-bottom: 22px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 48px; color: var(--text-3); }
.logos span { font: 650 19px/1 var(--display); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; opacity: .85; }
.logos span i { width: 18px; height: 18px; border-radius: 5px; background: currentColor; opacity: .55; display: inline-block; }
.logos span:nth-child(2n) i { border-radius: 50%; }
.logos span:nth-child(3n) i { transform: rotate(45deg) scale(.8); border-radius: 3px; }

/* the hero's soft yellow light, fainter, behind each section's main visual as you scroll down */
.glow { position: relative; isolation: isolate; }
.glow::before, .ask-rh::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -18% -10%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hero-glow) 14%, transparent), transparent);
  filter: blur(32px);
}

/* ── sources strip under the hero ──────────────────────────────────── */
.srcs { padding: 26px 0; border-block: 1px solid var(--border); background: var(--surface); }
.srcs .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 36px; }
.srcs p { font-size: 13.5px; color: var(--text-3); }
.srcs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.srcs li { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--display); letter-spacing: -0.01em; color: var(--text-2); }
.srcs svg { width: 17px; height: 17px; color: var(--text-3); }

/* ── the problem: one question, two ways ───────────────────────────── */
.ask-qs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.ask-qs button { all: unset; box-sizing: border-box; padding: 11px 18px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); font: 600 15.5px/1.2 var(--display); letter-spacing: -0.01em; color: var(--text-2); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.ask-qs button:hover { background: var(--hover); color: var(--text); }
.ask-qs button[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.ask-qs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-p { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; animation: fade .35s var(--ease-out-soft); isolation: isolate; }
.ask-p[hidden] { display: none; }
.ask-ga, .ask-rh { display: flex; flex-direction: column; min-width: 0; border-radius: 4px; padding: 24px 26px; }
.ask-ga { background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px dashed var(--border-strong); color: var(--text-2); }
/* the glow sits behind RankHint's answer only (.ask-p keeps it above the section's tint) */
.ask-rh { position: relative; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.ask-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.ask-h { align-items: center; }
.ask-h b { display: block; font: 650 18px/1.2 var(--display); letter-spacing: -0.015em; color: var(--text); }
.ask-h span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.ask-n { flex: none; font: 700 clamp(22px, 2.4vw, 30px)/1 var(--display); letter-spacing: -0.03em; color: var(--bad); text-align: right; }
.ask-n.good { color: var(--good); }
.ask-chart { margin-bottom: 14px; }
.ga-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.ga-steps li { counter-increment: s; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; }
.ga-steps li::before { content: counter(s); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; font: 600 11.5px/1 var(--body); color: var(--text-3); }
.ga-steps b { font: 500 14px/1.4 var(--mono); font-size: 13px; color: var(--text); }
.ga-steps span { font-size: 13.5px; color: var(--text-3); }
.ga-mess { position: relative; margin-top: 18px; padding: 10px 12px; border-radius: 3px; background: var(--bg-2); font: 11.5px/1.5 var(--mono); color: var(--text-3); filter: saturate(0); opacity: .85; }
.ga-mess table { width: 100%; border-collapse: collapse; }
.ga-mess td { padding: 2px 6px 2px 0; white-space: nowrap; }
.ga-mess td:not(:first-child) { text-align: right; }
.ga-mess .flag { display: inline-block; margin-top: 6px; padding: 1px 6px; border: 1px solid var(--border-strong); border-radius: 3px; font-size: 10.5px; }
.ask-v { margin-top: auto; padding-top: 18px; font: 600 15px/1.4 var(--display); }
.ask-v.bad { color: var(--bad); }
.ask-v.good { color: var(--good); }
.ask-a { font: 600 clamp(19px, 1.9vw, 23px)/1.4 var(--display); letter-spacing: -0.015em; color: var(--text); text-wrap: pretty; }
.ask-proof { margin-top: 18px; }
.ask-proof .sg { margin: 0; }
.mini-mail { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--paper); font-size: 13px; }
.mini-mail .from { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--text-3); }
.mini-mail > span { color: var(--text-2); }
.mini-mail s { color: var(--text-3); }
.mini-plan { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.mini-plan li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); }
.mini-plan li:first-child { border-top: 0; padding-top: 0; }
.mini-plan li > span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.mini-plan b { color: var(--good); font-variant-numeric: tabular-nums; }
.ask-note { margin-top: 28px; text-align: center; font-size: 15px; color: var(--text-2); }
@media (max-width: 820px) { .ask-p { grid-template-columns: minmax(0, 1fr); } .ask-rh { order: -1; } }
@media (max-width: 560px) { .ask-ga, .ask-rh { padding: 18px; } .ask-qs button { font-size: 14px; padding: 10px 14px; } }

/* ── who it's for ──────────────────────────────────────────────────── */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.who-c { display: flex; flex-direction: column; min-width: 0; padding: 22px 24px 26px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.who-v { display: grid; align-content: center; height: 176px; overflow: hidden; margin: -2px -4px 20px; padding: 14px 16px 10px; border-radius: 3px; background: var(--bg-2); }
.who-cap { margin-top: 8px; font-size: 11.5px; color: var(--text-3); }
.who-c h3 { margin-bottom: 8px; }
.who-c > p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.who-c .feats { font-size: 14px; }
.who-c .more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 14.5px; color: var(--accent-strong); text-decoration: none; }
.mini-ln { width: 100%; height: 112px; overflow: visible; }
.grid-map.mini { width: 132px; margin: 0 auto; gap: 2px; }
.grid-map.mini i { font-size: 9.5px; }
.mini-clients { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.mini-clients li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.mini-clients li:first-child { border-top: 0; }
.mini-clients .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 11.5px; }
.mini-clients .st { flex: none; font-size: 11.5px; }
@media (max-width: 960px) { .who { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* ── how it works: the three moments ───────────────────────────────── */
.setup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.setup > li { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.setup-n { width: 30px; height: 30px; margin-bottom: 18px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font: 650 14px/1 var(--display); }
.setup h3 { margin-bottom: 8px; }
.setup > li > p { font-size: 15px; color: var(--text-2); }
.setup-ui { margin-top: auto; padding-top: 22px; }
.setup-ui > * + * { margin-top: 8px; }
.consent .c-h { font: 600 13px var(--body); color: var(--text); }
.consent .c-r { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px; font-size: 13px; color: var(--text); }
.consent svg { width: 16px; height: 16px; color: var(--good); margin-top: 1px; }
.consent .c-f { font-size: 12px; color: var(--text-3); }
.imp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13px; }
.imp b { font-weight: 600; font-variant-numeric: tabular-nums; }
.imp i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: linear-gradient(var(--hero-bars), var(--hero-bars)) no-repeat 0 0 / 0% 100%, var(--surface-2); transition: background-size 1.6s var(--ease-out-soft) .3s; }
.imp + .imp i { transition-delay: .6s; }
.imp + .imp + .imp i { transition-delay: .9s; }
.rv.in .imp i, .no-js .imp i { background-size: var(--to) 100%, auto; }
.setup-take { font: 600 15px/1.4 var(--display); color: var(--text); padding: 12px 14px; border: 1px solid var(--border); border-radius: 3px; }
.setup-mail { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.setup-mail svg { width: 15px; height: 15px; color: var(--text-3); }
@media (max-width: 900px) { .setup { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }

/* ── trust: the exact permissions ──────────────────────────────────── */
.trust2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.scopes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.scopes li { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.scopes code { font-size: 13px; color: var(--text); }
.scopes span { font-size: 14px; color: var(--text-2); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; }
.promises li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-top: 1px solid var(--border); }
.promises li:first-child { border-top: 0; }
.promises svg { width: 20px; height: 20px; color: var(--text-2); margin-top: 2px; }
.promises b { display: block; font-size: 16.5px; margin-bottom: 2px; }
.promises span { color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .trust2 { grid-template-columns: minmax(0, 1fr); } }

/* ── charts (charts.ts): thin lines, the comparison dashed, hairline grid; site.js adds the crosshair ── */
/* one series is ink in light mode and the neon yellow on black; then cyan and violet/pink (palette.css) */
.k-main { --c: var(--hero-bars); }
.k-prev { --c: var(--text-3); }
.k-s2 { --c: var(--series-2); }
.k-s3 { --c: var(--series-3); }
.k-other { --c: var(--series-other); }
/* defaults for the sizes the markup sets inline (charts.ts / demo.ts) */
.ch { --h: 200px; } .imp i { --to: 100%; } .grid-map { --n: 7; } .bl li i { --w: 0%; } .live-bars i { --h: 0%; }
.ch { margin: 0; min-width: 0; }
.ch-body { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: var(--h) 22px; }
.ch-y { position: relative; }
.ch-y span { position: absolute; right: 8px; translate: 0 -50%; font-size: 11px; line-height: 1; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ch-plot { position: relative; touch-action: pan-y; cursor: crosshair; }
.ch-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ch-x { grid-column: 2; position: relative; }
.ch-x span { position: absolute; top: 6px; translate: -50% 0; font-size: 11px; line-height: 1; color: var(--text-3); white-space: nowrap; }
.ch-x span:first-child { translate: 0 0; }
.ch-x span:last-child { translate: -100% 0; }
@media (max-width: 560px) { .ch-x span:nth-child(2n):not(:last-child) { display: none; } }
.gl { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.ln { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ln.k-prev { stroke-width: 1.5; stroke-dasharray: 4 4; }
.band { fill: color-mix(in srgb, var(--text-3) 16%, transparent); }
.mk { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.ch-mark { position: absolute; top: -2px; margin-left: 6px; font-size: 11.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; background: var(--surface); padding: 0 4px; }
.ch-cross { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--border-strong); opacity: 0; pointer-events: none; transition: opacity .12s; }
.ch-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); translate: -50% -50%; pointer-events: none; }
.ch.hov .ch-cross { opacity: 1; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--text-2); margin-top: 8px; padding-left: 34px; }
.ch-legend span { display: inline-flex; align-items: center; }
.sw { display: inline-block; flex: none; width: 12px; height: 2px; margin-right: 7px; background: var(--c); }
.sw.k-prev { height: 0; background: none; border-top: 2px dashed var(--text-3); }
.sw.k-band { height: 9px; background: color-mix(in srgb, var(--text-3) 22%, transparent); }
/* lines draw in from the left as the chart scrolls in */
.rv .ch-plot svg { clip-path: inset(-8px 100% -8px 0); transition: clip-path 1.5s var(--ease-out-soft) .25s; }
.rv.in .ch-plot svg, .no-js .ch-plot svg { clip-path: inset(-8px -8px -8px 0); }

/* the tooltip every chart shares (site.js) */
.tipbox { position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none; min-width: 140px; max-width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow-pop); padding: 8px 10px; font-size: 12px; line-height: 1.5; color: var(--text); opacity: 0; transition: opacity .12s; }
.tipbox.on { opacity: 1; }
.tipbox .th { font-weight: 600; margin-bottom: 3px; }
.tipbox .tr { display: flex; align-items: center; gap: 0; color: var(--text-2); }
.tipbox .tr b { margin-left: auto; padding-left: 14px; white-space: nowrap; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
[data-tip] { cursor: default; }

/* ── product tour ──────────────────────────────────────────────────── */
.tour-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: -28px 0 16px; }
.tour-nav a { padding: 7px 12px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background-color .15s, color .15s; }
.tour-nav a:hover { background: var(--hover); color: var(--text); }
.tour-nav + .frow { border-top: 0; }
.tour-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 28px 0 0; border-top: 1px solid var(--border); }
.tour-cta p { font: 600 clamp(19px, 2vw, 23px)/1.35 var(--display); letter-spacing: -0.015em; }
.tour-cta p span { color: var(--text-2); font-weight: 500; }
.frow .h-md { margin: 12px 0 14px; }
.frow .lede { font-size: 17px; }
.frow > div { min-width: 0; }
.frow.wide { display: block; }
.wide-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 64px; align-items: end; margin-bottom: 32px; }
.wide-head .h-md { margin-bottom: 0; }
.wide-head .feats { margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 900px) { .wide-head { grid-template-columns: minmax(0, 1fr); } }
.frow.wide .shot { padding: 24px 28px; }
.frow.wide .shot .sg { margin-inline: -28px; }
.frow.wide .shot .sg > div:first-child { padding-left: 28px; }
.frow.wide .shot-f { margin: 16px -28px -24px; padding: 14px 28px; }
.frow.wide .rank-split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; }
.shot { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow-card); padding: 20px; min-width: 0; }
.shot-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.shot-h b { display: block; font: 650 17px/1.3 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; margin-top: 2px; }
.shot-h > span { flex: none; }
.shot .sg { margin: 0 -20px 18px; border-width: 1px 0; border-radius: 0; background: none; }
.shot .sg > div:first-child { padding-left: 20px; }
.shot-f { margin: 14px -20px -20px; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.shot-f b { color: var(--text); font-weight: 600; }

/* journeys: the app's Sankey (charts.ts sankey). Pages pink, other sites cyan, "Other pages" gray; ribbons take the
   color of where they go. Hovering a page highlights its ribbons; clicking one follows it (site.js). */
.sk-wrap { position: relative; overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.sk { min-width: 640px; }
.sk[hidden] { display: none; }
.sk:not([hidden]) { animation: fade .35s var(--ease-out-soft); }
.sk-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--text-3); }
.sk-crumbs b { color: var(--text); font-weight: 600; }
.sk-crumbs button { all: unset; cursor: pointer; color: var(--accent-strong); }
.sk-crumbs button:hover { text-decoration: underline; }
.sk-heads { position: relative; height: 18px; margin-bottom: 10px; font-size: 12px; color: var(--text-3); }
.sk-h { position: absolute; top: 0; white-space: nowrap; }
.sk-h.l { translate: calc(-100% - 8px) 0; }
.sk-h.r { margin-left: calc(.7% + 8px); }
.sk-plot { position: relative; }
.sk-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sk-page { --c: var(--series-1); }
.sk-site { --c: var(--series-2); }
.sk-other { --c: var(--series-other); }
.nd { fill: var(--c); }
.lk { fill: var(--c); opacity: .26; transition: opacity .15s; }
.lk:hover { opacity: .55; }
.sk.dim .lk { opacity: .07; }
.sk.dim .lk.hi { opacity: .5; }
.sk-l { position: absolute; translate: 0 -50%; max-width: 23%; font-size: 12.5px; line-height: 1.2; white-space: nowrap; }
.sk-l.l { translate: calc(-100% - 8px) -50%; text-align: right; }
.sk-l.r, .sk-l.m { margin-left: calc(.7% + 8px); }
.sk-l.m { max-width: 26%; }
.sk-l.m > * { padding: 3px 7px; border-radius: 3px; background: var(--surface); box-shadow: var(--shadow-sm); }
.sk-l > * { all: unset; display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; }
.sk-l button { cursor: pointer; }
.sk-l button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sk-t { overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 12px; color: var(--text); }
.sk-l button .sk-t { color: var(--accent-strong); }
.sk-l button:hover .sk-t { text-decoration: underline; }
.sk-l.sk-other .sk-t, .sk-l.sk-site .sk-t { font-family: var(--body); font-size: 12.5px; }
.sk-l.center .sk-t { font-weight: 600; }
.sk-v { flex: none; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sk-l .tag { height: 17px; font-size: 10px; padding: 0 5px; }

/* alerts: the audit's gutter list, and the email it sends */
.gut { list-style: none; margin: 0; padding: 0; }
.gut li { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.gut li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 560px) { .gut li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.gut li > div > b { display: block; font-size: 14px; font-weight: 600; }
.gut li > div > span { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.gut s, .email s { color: var(--text-3); }
.email { position: relative; margin: 14px -40px -44px 48px; padding: 14px 16px; display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--border-strong); border-radius: 4px; box-shadow: var(--shadow-lg); font-size: 13px; }
.email .from { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--text-3); }
.email .from span { display: inline-flex; align-items: center; gap: 6px; }
.email .from svg { width: 13px; height: 13px; }
.email > span { color: var(--text-2); }
@media (max-width: 1100px) { .email { margin: 16px -8px -8px 24px; } }

/* rankings + the local grid */
.rank-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.local-h b { display: block; font-size: 13px; font-weight: 600; }
.local-h span { font-size: 12px; color: var(--text-3); }
.grid-map { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.grid-map i { aspect-ratio: 1; display: grid; place-items: center; border-radius: 2px; font: 600 11px/1 var(--mono); font-style: normal; transition: scale .15s var(--ease-out); }
.grid-map i:hover { scale: 1.15; }
.grid-map .r1 { background: var(--rank-1); color: var(--seq-text-high); }
.grid-map .r2 { background: var(--rank-2); color: var(--seq-text-high); }
.grid-map .r3 { background: var(--rank-3); color: var(--text); }
.grid-map .r4 { background: var(--rank-4); color: var(--text); }
.grid-map .r0 { background: var(--surface-2); color: var(--text-3); font-size: 9.5px; }
.app-card .grid-map { max-width: 280px; }
.grid-map .home { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--text); }
@media (max-width: 760px) { .rank-split, .frow.wide .rank-split { grid-template-columns: minmax(0, 1fr); } }

/* ── analytics bento ───────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { grid-column: span 2; position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); padding: 24px; }
.cell.w3 { grid-column: span 3; }
.cell.w4 { grid-column: span 4; }
.cell h3 { margin-bottom: 6px; }
.cell p { color: var(--text-2); font-size: 15px; }
.cell .viz { margin-top: auto; padding-top: 22px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cell, .cell.w3, .cell.w4 { grid-column: span 2; } }

.heat { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 10.5px; color: var(--text-3); align-items: center; }
.heat i { height: 18px; border-radius: 1px; transition: outline-color .1s; outline: 1.5px solid transparent; outline-offset: 0; }
.heat i:hover { outline-color: var(--text); }
.heat .s1 { background: var(--seq-1); } .heat .s2 { background: var(--seq-2); } .heat .s3 { background: var(--seq-3); }
.heat .s4 { background: var(--seq-4); } .heat .s5 { background: var(--seq-5); } .heat .s6 { background: var(--seq-6); }
.heat-h { white-space: nowrap; overflow: visible; padding-top: 4px; }
.heat-take { margin-bottom: 14px; font-size: 14px; color: var(--text-2); }
.heat-take b { color: var(--text); font-weight: 600; }
.heat-key { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 10px; font-size: 11px; color: var(--text-3); }
.heat-key i { width: 16px; height: 8px; }
.heat-key span:first-child { margin-right: 6px; } .heat-key span:last-child { margin-left: 6px; }
.heat-key .s1 { background: var(--seq-1); } .heat-key .s2 { background: var(--seq-2); } .heat-key .s3 { background: var(--seq-3); }
.heat-key .s4 { background: var(--seq-4); } .heat-key .s5 { background: var(--seq-5); } .heat-key .s6 { background: var(--seq-6); }

.bl-head { display: grid; grid-template-columns: 1fr auto 5rem; gap: 12px; font-size: 12px; color: var(--text-3); padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.bl-head span:nth-child(n+2) { text-align: right; }
.bl { list-style: none; margin: 0; padding: 0; }
.bl li { position: relative; display: grid; grid-template-columns: 1fr auto 5rem; gap: 12px; padding: 8px 0 12px; font-size: 13.5px; }
.bl-v, .bl-r { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.bl-r.hi { color: var(--good); font-weight: 600; }
.bl li i { position: absolute; left: 0; bottom: 4px; height: 4px; width: var(--w); background: var(--hero-bars); border-radius: 2px; transition: opacity .15s; }
.bl li:hover i { opacity: .7; }

.sc-plot { position: relative; height: 230px; margin: 4px 4px 0; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sc-med { position: absolute; border: 0 dashed var(--border-strong); }
.sc-med.v { top: 0; bottom: 0; border-left-width: 1px; }
.sc-med.h { left: 0; right: 0; border-top-width: 1px; }
.sc-q { position: absolute; font-size: 11.5px; color: var(--text-3); padding: 4px 8px; }
.sc-q.tl { top: 0; left: 0; } .sc-q.tr { top: 0; right: 0; } .sc-q.br { bottom: 0; right: 0; color: var(--bad); }
.sc .dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--hero-bars); opacity: .72; translate: -50% -50%; transition: scale .15s var(--ease-out), opacity .15s; }
.sc .dot.fix { background: var(--bad); }
.sc .dot:hover { scale: 1.7; opacity: 1; }
.sc-ax { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

.live-n { display: flex; align-items: baseline; gap: 8px; }
.live-n b { font: 650 34px/1 var(--display); letter-spacing: -.03em; }
.live-n span { font-size: 12.5px; color: var(--text-3); }
.live-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; margin: 14px 0 12px; }
.live-bars i { flex: 1; height: var(--h); background: var(--hero-bars); border-radius: 1px 1px 0 0; transition: opacity .15s; }
.live-bars i:hover { opacity: .65; }
.live-p { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.live-p li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.live-p span { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* mini visuals */
.rows { display: grid; gap: 6px; font: 12px var(--mono); }
.rowv { display: grid; grid-template-columns: 1fr 52px 56px; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 3px; background: var(--bg-2); color: var(--text-2); }
.rowv b { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up { color: var(--good); text-align: right; }
.down { color: var(--bad); text-align: right; }
.rk { text-align: right; color: var(--text); }
.spark { width: 100%; height: 90px; }
.spark .a { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.spark .l { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .g { stroke: var(--border); stroke-dasharray: 3 4; }
.meter { display: grid; gap: 10px; font-size: 13px; }
.meter .bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.meter .bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.meter .lbl { display: flex; justify-content: space-between; color: var(--text-2); font: 12px var(--mono); margin-bottom: 4px; }
.mail { border: 1px solid var(--border); border-radius: 3px; padding: 12px 14px; background: var(--bg-2); font-size: 13px; }
.mail .from { display: flex; justify-content: space-between; color: var(--text-3); font: 11.5px var(--mono); }
.mail .subj { font-weight: 600; margin: 6px 0 4px; }
.mail .prev { color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── receipts / evidence section ───────────────────────────────────── */
.evi { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.evi-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.evi-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.evi-list .ic { width: 28px; height: 28px; color: var(--text-2); display: grid; place-items: center; }
.evi-list .ic svg { width: 18px; height: 18px; }
.evi-list b { display: block; margin-bottom: 2px; }
.evi-list span { color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .evi { grid-template-columns: 1fr; gap: 40px; } }

/* ── checked against real results: a Google-shaped results page; a click shows how a result was rated ── */
.serp2 { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow-card); overflow: clip; }
.serp2-q { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.sbox { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; max-width: 560px; height: 44px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 15px; }
.sbox svg { width: 17px; height: 17px; color: var(--text-3); }
.serp2-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--text-3); }
.serp2-meta .st { font-size: 14px; }
.serp2-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.serp2-list { padding: 18px 24px 16px; min-width: 0; }
.serp2-list ol { list-style: none; margin: 0; padding: 0; }
.aio { padding: 0 0 16px; margin-bottom: 6px; border-bottom: 1px solid var(--border); font-size: 14px; }
.aio-h { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.aio p { color: var(--text-2); }
.aio-c { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.res { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 8px; width: 100%; padding: 12px 10px; margin: 0 -10px; border-radius: 3px; cursor: pointer; transition: background-color .15s; }
.res:hover { background: var(--hover); }
.res[aria-pressed="true"] { background: var(--surface-2); }
.res:focus-visible { outline: 2px solid var(--accent); }
.pos { padding-top: 2px; text-align: right; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.res-b { display: grid; gap: 3px; min-width: 0; }
.res-site { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--text); }
.res-site > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs { color: var(--text-3); }
.res-t { font-size: 16.5px; line-height: 1.35; color: var(--accent-strong); }
.res:hover .res-t { text-decoration: underline; }
.res-s { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-c { font-size: 12px; color: var(--text-3); }
.est { font: 500 9.5px var(--mono); color: var(--text-3); border: 1px solid var(--border-strong); border-radius: 3px; padding: 0 3px; vertical-align: 1px; }
.serp2-more { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.why { padding: 22px 24px; border-left: 1px solid var(--border); background: var(--paper); min-width: 0; }
.why-h { display: grid; gap: 2px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--border-strong); }
.why-h b { font: 650 18px/1.3 var(--display); overflow-wrap: anywhere; }
.why-in { position: sticky; top: 88px; }
.why-in > p { font-size: 14.5px; color: var(--text); }
.why dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 16px 0 0; font: 12.5px/1.5 var(--mono); }
.why dt { color: var(--text-3); }
.why dd { margin: 0; text-align: right; color: var(--text); }
.why-f { margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--border-strong); font-size: 12px !important; color: var(--text-3) !important; }
@media (max-width: 900px) { .serp2-body { grid-template-columns: minmax(0, 1fr); } .why { border-left: 0; border-top: 1px solid var(--border); } }
@media (max-width: 560px) { .serp2-q, .serp2-list, .why { padding-inline: 16px; } .res-t { font-size: 15px; } }
.evi-row { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.evi-row li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.evi-row .ic { color: var(--text-2); padding-top: 2px; }
.evi-row .ic svg { width: 19px; height: 19px; }
.evi-row b { display: block; margin-bottom: 3px; }
.evi-row span:not(.ic):not(.est) { color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) { .evi-row { grid-template-columns: minmax(0, 1fr); } }

/* ── stats + testimonials ──────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 4px; background: var(--surface); margin-bottom: 40px; }
.stat { padding: 26px 24px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat .v { font: 700 clamp(30px, 3.4vw, 40px)/1 var(--display); letter-spacing: -0.035em; }
.stat .k { margin-top: 8px; font-size: 14px; color: var(--text-2); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--border); } }
.quotes { columns: 3 300px; column-gap: 16px; }
.quote { break-inside: avoid; margin: 0 0 16px; padding: 24px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.quote blockquote { margin: 0; font-size: 15.5px; line-height: 1.6; }
.quote.big blockquote { font: 500 21px/1.45 var(--display); letter-spacing: -0.015em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; }
.quote figcaption b { display: block; font-weight: 600; color: var(--text); }
.quote figcaption .av { color: #fff; font-size: 13px; }
.quote figcaption span { color: var(--text-3); font-size: 13px; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--display); color: #fff; flex: none; }
.quote .res { display: inline-block; margin-bottom: 14px; }

/* ── pricing ───────────────────────────────────────────────────────── */
.bill { display: inline-flex; padding: 4px; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--border); gap: 2px; margin-top: 28px; }
.bill button { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 3px; font-size: 14px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.bill button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.bill button:focus-visible { outline: 2px solid var(--accent); }
.bill .save { font: 500 11px var(--mono); color: var(--good); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plans.four { grid-template-columns: repeat(4, 1fr); }
.plan-c { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.plan-c.pop { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.plan-c .badge { position: absolute; top: -11px; left: 28px; }
.plan-c h3 { font-size: 19px; }
.plan-c .for { color: var(--text-2); font-size: 14.5px; margin-top: 6px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 4px; }
.price .amt { font: 700 44px/1 var(--display); letter-spacing: -0.04em; }
.price .per { color: var(--text-3); font-size: 14px; }
.plan-c .note { font-size: 13px; color: var(--text-3); min-height: 20px; }
.plan-c .btn { margin: 22px 0 24px; width: 100%; }
.feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.feats li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--text-2); }
.feats li b { color: var(--text); font-weight: 600; }
.feats svg { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.feats .h { display: block; grid-template-columns: none; font: 500 13px var(--body); color: var(--text-3); margin-top: 4px; }
@media (max-width: 1080px) { .plans.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .plans.four { grid-template-columns: 1fr; } }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
.cmp th, .cmp td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp thead th { position: sticky; top: 0; background: var(--surface); font: 600 15px var(--display); }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; width: 18%; }
.cmp tbody th { font-weight: 400; color: var(--text-2); }
.cmp .grp th { background: var(--bg-2); font: 600 13px var(--body); color: var(--text-3); padding-block: 10px; }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }
.cmp .y { color: var(--accent); display: inline-block; width: 18px; height: 18px; }
.cmp .x { color: var(--text-3); }

/* ── faq ───────────────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq-list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--body); color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 640px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 32px; } }

/* small two-column status rows (features, agencies) */
.conn { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; }
.conn + .conn { border-top: 1px dashed var(--border-strong); }
.ok { color: var(--good); }

/* ── trust row ─────────────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust > div { padding: 22px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.trust .ic { color: var(--text-2); margin-bottom: 14px; }
.trust .ic svg { width: 20px; height: 20px; }
.trust b { display: block; margin-bottom: 4px; }
.trust span { font-size: 14.5px; color: var(--text-2); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* ── final CTA ─────────────────────────────────────────────────────── */
.final-sec { padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 128px); }
.final { position: relative; overflow: hidden; text-align: center; border-radius: 4px; padding: clamp(48px, 7vw, 88px) 24px; background: var(--inverse-bg); color: var(--inverse-text); border: 1px solid var(--border); }
.final::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 80%); }
.final::after { content: ""; position: absolute; width: 700px; height: 400px; left: 50%; top: -220px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent); }
.final > * { position: relative; z-index: 1; }
.final h2 { max-width: 760px; margin: 0 auto; }
.final p { max-width: 560px; margin: 18px auto 0; opacity: .72; font-size: 18px; }
.final .hero-ctas { justify-content: center; }
.final .btn-ghost { background: transparent; color: inherit; border-color: rgb(255 255 255 / .25); box-shadow: none; }
.final .btn-ghost:hover { border-color: #fff; }
.final .btn.btn-primary.btn { --btn-bg: var(--brand); color: var(--brand-ink); }
.final .btn.btn-primary.btn:hover { --btn-bg: var(--brand-hover); }
.final p.small { color: inherit; opacity: .55; margin-top: 18px; font-size: 13.5px; }

/* ── page header (inner pages) ─────────────────────────────────────── */
.phead { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); text-align: center; overflow: hidden; }
.phead::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 20%, transparent 70%); }
.phead h1 { margin: 18px auto 0; max-width: 860px; }
.phead .lede { margin: 20px auto 0; max-width: 640px; }
.phead .hero-ctas { justify-content: center; }

/* feature rows (features page) */
.frow { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border); }
.frow:first-child { border-top: 0; }
.frow.flip > :first-child { order: 2; }
.frow h2 { margin: 14px 0 16px; }
.frow .feats { margin-top: 24px; }
.evi .feats { margin: 24px 0 28px; }
.panel { border: 1px solid var(--border); border-radius: 4px; background: var(--surface); box-shadow: var(--shadow-card); padding: 20px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
@media (max-width: 900px) { .frow { grid-template-columns: 1fr; gap: 32px; } .frow.flip > :first-child { order: 0; } }

/* prose (legal, about) */
.prose { max-width: 720px; margin: 0 auto; padding: 0 24px clamp(64px, 8vw, 104px); overflow-wrap: break-word; }
.prose h1 { font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -0.035em; margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin: 44px 0 12px; }
.prose h3 { font-size: 17px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.prose a { color: var(--accent-strong); }
.prose pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: 3px; padding: 14px 16px; font: 13px var(--mono); overflow-x: auto; }
.prose .upd { font: 12.5px var(--mono); color: var(--text-3); }

/* split cards (agencies, about, contact) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.card { border: 1px solid var(--border); border-radius: 4px; background: var(--surface); padding: 26px; }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.card .ic { width: 36px; height: 36px; border-radius: 3px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 16px; }
.card .ic svg { width: 19px; height: 19px; }
.card a.more { display: inline-flex; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 14.5px; color: var(--accent-strong); text-decoration: none; }
@media (max-width: 900px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* form */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form textarea, .form select { font: 15px var(--body); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 3px; padding: 11px 13px; width: 100%; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }

/* ── footer ────────────────────────────────────────────────────────── */
.ftr-legal { margin-top: 16px; font-size: 12.5px; color: var(--text-3); }
.ftr { border-top: 1px solid var(--border); padding: 64px 0 36px; margin-top: 0; background: var(--bg); }
.ftr-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.ftr-brand p { color: var(--text-2); font-size: 14.5px; margin-top: 14px; max-width: 290px; }
.ftr h4 { font: 600 13.5px var(--body); letter-spacing: 0; color: var(--text-3); margin-bottom: 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a { color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.ftr ul a:hover { color: var(--text); }
.ftr-base { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-3); }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.theme { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); }
.theme button { all: unset; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.theme button svg { width: 15px; height: 15px; }
.theme button:hover { color: var(--text); }
.theme button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.theme button:focus-visible { outline: 2px solid var(--accent); }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }

/* ── motion ────────────────────────────────────────────────────────── */
.rv { opacity: 0; translate: 0 14px; transition: opacity .7s var(--ease-out-soft), translate .7s var(--ease-out-soft); }
.rv.in { opacity: 1; translate: 0 0; }
.no-js .rv { opacity: 1; translate: 0 0; }

/* page-to-page: cross-document view transitions. The header holds still; the page underneath fades out
   quickly and the new one rises in. Browsers without support just navigate. */
@view-transition { navigation: auto; }
.hdr { view-transition-name: hdr; }
::view-transition-group(hdr), ::view-transition-old(hdr), ::view-transition-new(hdr) { animation: none; }
::view-transition-old(root) { animation: .16s var(--ease-in) both vt-out; }
::view-transition-new(root) { animation: .42s var(--ease-out-soft) .04s both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 12px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; transition: none !important; }
  .rv { opacity: 1; translate: 0 0; }
}
