/* OLAB Assist — site stylesheet. Tokens from the OLAB Assist design system.
   Theme: light by default, dark from the OS setting, or forced with <html data-theme="light|dark">. */

:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 10px; --control-height: 40px;
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-code: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --canvas: #f3f6fa; --surface: #ffffff; --surface-sunken: #e8edf3; --line: #d9e1ea; --line-strong: #7c8798;
  --ink: #0b1726; --ink-muted: #4b5768; --accent: #0072bb; --accent-soft: #e3eff8; --on-accent: #ffffff;
  --pass: #11774a; --pass-soft: #e2f3e9; --warn: #93570a; --warn-soft: #fcefd8; --fail: #b8261c; --fail-soft: #fce7e4;
  --pass-bar: #18a061; --warn-bar: #e39a1c; --fail-bar: #e0473b;
  --btn: #0072bb; --on-btn: #ffffff; --shadow-card: 0 1px 2px rgba(11, 23, 38, .05), 0 12px 28px -18px rgba(11, 40, 70, .28);
  --shadow-hero: 0 2px 6px rgba(11, 23, 38, .06), 0 36px 64px -32px rgba(0, 62, 115, .38);
  --tint-blue: #c9ddf0; --tint-blue-line: #9dbedc; --tint-ivory: #c9ddf0; --tint-ivory-line: #9dbedc; /* light: check cards and plan cards share one blue, two steps darker than the page */
  /* Light-only page structure: a tinted hero, alternating white bands; dark keeps one continuous canvas. */
  --hero-bg: radial-gradient(760px 420px at 80% 38%, rgba(0, 114, 187, .16), transparent 62%), linear-gradient(180deg, #e4eef8 0%, #eef4fa 55%, #f3f6fa 100%);
  --hero-grid: rgba(0, 114, 187, .08); --band-alt: #ffffff; --band-line: #dfe6ee; --section-rule: transparent;
  --strip-bg: #e9f1f9; --eyebrow: #0072bb; --topbar-bg: rgba(255, 255, 255, .86);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948; /* chart series, validated */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0b0e13; --surface: #12161d; --surface-sunken: #0e1117; --line: #232a35; --line-strong: #5e6878;
    --ink: #e7eaf0; --ink-muted: #9aa3b0; --accent: #5fb0e6; --accent-soft: #10222f; --on-accent: #0b0e13;
    --pass: #5fcb95; --pass-soft: #13261d; --warn: #e5b35c; --warn-soft: #2a2112; --fail: #f28a80; --fail-soft: #2c1715;
    --btn: #0072bb; --on-btn: #ffffff; --shadow-card: none;
    --pass-bar: #5fcb95; --warn-bar: #e5b35c; --fail-bar: #f28a80; --shadow-hero: none;
    --hero-bg: none; --hero-grid: transparent; --band-alt: transparent; --band-line: transparent; --section-rule: #232a35;
    --strip-bg: #12161d; --eyebrow: #9aa3b0; --topbar-bg: #12161d;
  --tint-blue: #0f1d28; --tint-blue-line: #1f3a50; --tint-ivory: #161b23; --tint-ivory-line: #2a3240;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0b0e13; --surface: #12161d; --surface-sunken: #0e1117; --line: #232a35; --line-strong: #5e6878;
  --ink: #e7eaf0; --ink-muted: #9aa3b0; --accent: #5fb0e6; --accent-soft: #10222f; --on-accent: #0b0e13;
  --pass: #5fcb95; --pass-soft: #13261d; --warn: #e5b35c; --warn-soft: #2a2112; --fail: #f28a80; --fail-soft: #2c1715;
  --btn: #0072bb; --on-btn: #ffffff; --shadow-card: none;
  --pass-bar: #5fcb95; --warn-bar: #e5b35c; --fail-bar: #f28a80; --shadow-hero: none;
  --hero-bg: none; --hero-grid: transparent; --band-alt: transparent; --band-line: transparent; --section-rule: #232a35;
  --strip-bg: #12161d; --eyebrow: #9aa3b0; --topbar-bg: #12161d;
  --tint-blue: #0f1d28; --tint-blue-line: #1f3a50; --tint-ivory: #161b23; --tint-ivory-line: #2a3240;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); font-weight: 300; font-size: 15px; line-height: 24px; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-4); top: -48px; z-index: 10; background: var(--surface); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--line-strong); }
.skip:focus { top: var(--space-2); }

.wrap { width: 100%; max-width: 1184px; margin: 0 auto; padding-inline: var(--space-8); }
.wrap--narrow { max-width: 760px; }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; line-height: 20px; font-weight: 400; }
strong, b { font-weight: 600; }
.label { font-weight: 500; }
.score__value, .metric__value { font-weight: 400; }
.t-display { font-size: 44px; line-height: 48px; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.t-1 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.t-2 { font-size: 21px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.t-3 { font-size: 16px; line-height: 22px; font-weight: 600; }
.prose { display: grid; gap: var(--space-4); max-width: 680px; }
.prose h2 { font-size: 21px; line-height: 28px; font-weight: 600; margin-top: var(--space-6); }
.prose ul { padding-left: 20px; display: grid; gap: var(--space-2); }

/* Header and footer */
.topbar { border-bottom: 1px solid var(--line); background: var(--topbar-bg); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 5; }
.topbar .wrap { height: 60px; display: flex; align-items: center; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.01em; flex-shrink: 0; }
a.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.logo--ondark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo--onlight { display: none; } :root:not([data-theme="light"]) .logo--ondark { display: inline-block; } }
:root[data-theme="dark"] .logo--onlight { display: none; }
:root[data-theme="dark"] .logo--ondark { display: inline-block; }
.nav { display: flex; gap: var(--space-6); font-size: 14px; }
.nav a { color: var(--ink-muted); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.spacer { flex: 1; }
.topbar .who { font-size: 13px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.footer { border-top: 1px solid var(--line); margin-top: var(--space-16); background: var(--surface); }
.footer .wrap { padding-block: var(--space-8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); font-size: 13px; color: var(--ink-muted); }
.footer .links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer .links a { color: var(--ink-muted); }
.footer .end { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.select { height: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: 13px; padding: 0 var(--space-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-height); padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--accent); background: var(--surface); color: var(--accent); font: 500 14px/1 var(--font-sans); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, filter .15s; }
a.btn:hover { text-decoration: none; }
.btn:hover { background: var(--accent-soft); }
.btn--primary { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.btn--primary:hover { background: var(--btn); filter: brightness(1.1); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--accent); padding: 0 var(--space-2); }
.btn--ghost:hover { border-color: transparent; text-decoration: underline; }
.btn--danger { color: var(--fail); }
.btn--sm { height: 32px; font-size: 13px; padding: 0 var(--space-3); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: default; pointer-events: none; }

/* Form controls */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; }
.input { height: var(--control-height); width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); padding: 0 var(--space-3); font-size: 14px; }
.input::placeholder { color: var(--ink-muted); }
.input--mono { font-family: var(--font-mono); }
.inline-form { display: flex; gap: var(--space-2); }
.inline-form .input { flex: 1; }
.form-error { font-size: 13px; line-height: 20px; color: var(--fail); }

/* Pills */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-sm); font: 500 12px/1 var(--font-sans); white-space: nowrap; }
.pill--pass { background: var(--pass-soft); color: var(--pass); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--fail { background: var(--fail-soft); color: var(--fail); }
.pill--neutral, .pill--info { background: var(--surface-sunken); color: var(--ink-muted); }
.pill--accent { background: var(--accent-soft); color: var(--accent); }

/* Panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); min-width: 0; box-shadow: var(--shadow-card); }
.panel--flush { padding: 0; overflow: hidden; }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.panel__body { padding: var(--space-6); display: grid; gap: var(--space-4); }

/* Score */
.score { display: grid; gap: var(--space-2); }
.score__row { display: flex; align-items: baseline; gap: var(--space-2); }
.score__value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 56px; line-height: 56px; font-weight: 500; letter-spacing: -.03em; }
.score__max { font-family: var(--font-mono); font-size: 15px; color: var(--ink-muted); }
.score__band { font-size: 13px; font-weight: 500; margin-left: var(--space-1); }
[data-band="pass"] .score__band, [data-band="pass"].score-num { color: var(--pass); }
[data-band="warn"] .score__band, [data-band="warn"].score-num { color: var(--warn); }
[data-band="fail"] .score__band, [data-band="fail"].score-num { color: var(--fail); }
.bar { position: relative; height: 6px; border-radius: 3px; background: var(--surface-sunken); }
.bar__fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background: var(--ink); }
[data-band="pass"] .bar__fill { background: var(--pass-bar); }
[data-band="warn"] .bar__fill { background: var(--warn-bar); }
[data-band="fail"] .bar__fill { background: var(--fail-bar); }
.bar__tick { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.scale { position: relative; height: 16px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; color: var(--ink-muted); }
.scale span { position: absolute; transform: translateX(-50%); }
.scale span:first-child { transform: none; }
.scale span:last-child { transform: translateX(-100%); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.metric { display: grid; gap: 6px; min-width: 0; }
.metric__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.metric__value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 24px; line-height: 28px; font-weight: 500; letter-spacing: -.02em; }
.metric__hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* Resource rows */
.rows { display: grid; }
.rows > div { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows .mono { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.code-ok { color: var(--pass); }
.code-bad { color: var(--fail); }

/* Findings */
.findings { display: grid; }
.finding { border-top: 1px solid var(--line); }
.finding:last-child { border-bottom: 1px solid var(--line); }
.finding { --c1: 44px; --c2: 88px; }
.finding > summary, .finding__row { list-style: none; display: grid; grid-template-columns: var(--c1) var(--c2) minmax(0, 1fr) auto; gap: var(--space-4); align-items: start; padding: var(--space-4) 0; cursor: pointer; }
.finding__row { grid-template-columns: var(--c1) var(--c2) minmax(0, 1fr); cursor: default; }
.finding .pill { justify-self: start; }
.finding > summary::-webkit-details-marker { display: none; }
.finding .label { line-height: 22px; }
.finding__title { display: block; font-size: 16px; line-height: 22px; font-weight: 600; }
.finding__evidence { display: block; font-size: 13px; line-height: 20px; color: var(--ink-muted); margin-top: 2px; overflow-wrap: anywhere; }
.finding__toggle { font-size: 13px; line-height: 22px; color: var(--accent); white-space: nowrap; }
.finding__toggle .is-open, .finding[open] .finding__toggle .is-closed { display: none; }
.finding[open] .finding__toggle .is-open { display: inline; }
.finding__body { padding: 0 0 var(--space-6) calc(var(--c1) + var(--c2) + 2 * var(--space-4)); display: grid; gap: var(--space-3); }
.finding__body p { max-width: 640px; }
.empty { padding: var(--space-8) 0; color: var(--ink-muted); text-align: center; font-size: 14px; }

/* Code block */
.code { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-sunken); overflow: hidden; min-width: 0; }
.code__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 var(--space-2) 0 var(--space-3); height: 36px; border-bottom: 1px solid var(--line); }
.code__path { font-family: var(--font-code); font-size: 12px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code__copy { height: 28px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--accent); font: 500 12px/1 var(--font-sans); cursor: pointer; }
.code pre { margin: 0; padding: var(--space-3); overflow-x: auto; font: 400 13px/20px var(--font-code); color: var(--ink); white-space: pre; }

/* Segmented control */
.seg { justify-self: start; display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.seg button { height: 26px; padding: 0 var(--space-3); border: 0; border-radius: 4px; background: transparent; color: var(--ink-muted); font: 500 12px/1 var(--font-sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.period { justify-self: center; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm, none); }
.period button { display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 20px; white-space: nowrap; border: 0; border-radius: 999px; background: transparent; color: var(--ink-muted); font: 500 15px/1 var(--font-sans); cursor: pointer; }
.period button:hover { color: var(--ink); }
.period button[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); }
.period__save { padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--pass) 16%, transparent); color: var(--pass); font-size: 12px; }
.period button[aria-pressed="true"] .period__save { background: rgba(255,255,255,.2); color: var(--on-btn); }
@media (max-width: 480px) { .period { justify-self: stretch; } .period button { flex: 1; justify-content: center; padding: 0 10px; font-size: 14px; } .period__save { font-size: 11px; padding: 3px 6px; } }

/* Report layout */
.page { padding-block: var(--space-8) 0; display: grid; gap: var(--space-8); }
.crumbs { font-size: 13px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.crumbs a { color: var(--ink-muted); }
.report-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-8); }
.report-head .domain { font-family: var(--font-mono); font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -.02em; overflow-wrap: anywhere; }
.report-head .actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.report-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.stack { display: grid; gap: var(--space-6); align-content: start; min-width: 0; }
.stack--tight { gap: var(--space-3); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.counts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.note { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); font-size: 13px; line-height: 20px; color: var(--ink-muted); background: var(--surface); }
.note strong { color: var(--ink); font-weight: 600; }
.note--warn { border-color: var(--warn); background: var(--warn-soft); color: var(--ink); }
.note--fail { border-color: var(--fail); background: var(--fail-soft); color: var(--ink); }

/* Loading */
.loading { display: grid; gap: var(--space-3); justify-items: center; padding: var(--space-16) 0; text-align: center; color: var(--ink-muted); }
.progress { width: 220px; height: 2px; background: var(--surface-sunken); overflow: hidden; border-radius: 1px; position: relative; }
.progress::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .progress::after { animation: none; width: 100%; opacity: .5; } }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; padding-block: var(--space-16) var(--space-12); }
.hero__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.hero__lede { font-size: 17px; line-height: 27px; color: var(--ink-muted); max-width: 540px; }
.domain-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); width: 100%; max-width: 560px; }
.domain-form__row { display: flex; gap: var(--space-2); }
.domain-box { flex: 1; min-width: 0; display: flex; align-items: center; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); padding: 0 var(--space-4); }
.domain-box:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.domain-box span { font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); }
.domain-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 15px var(--font-mono); padding: 0 0 0 2px; }
.domain-box input::placeholder { color: var(--ink-muted); }
.domain-form .btn { height: 48px; padding: 0 var(--space-6); }
.preview { padding: 0; overflow: hidden; }
.preview__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.preview__body { padding: var(--space-6); display: grid; gap: var(--space-6); }
.preview .finding__row { padding: 12px 0; }
.home-section { padding-block: var(--space-12); border-top: 1px solid var(--section-rule); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.home-section > header { display: grid; gap: var(--space-2); max-width: 680px; }
.checks { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.checks th { text-align: left; padding: 0 var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--line); }
.checks td { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.checks td:first-child { width: 72px; }
.checks td:nth-child(2) { width: 30%; font-weight: 500; }
.checks .mono { font-size: 13px; color: var(--ink-muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.step { display: grid; gap: var(--space-2); align-content: start; border-top: 1px solid var(--ink); padding-top: var(--space-4); }
.step .num { font-size: 13px; color: var(--ink-muted); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: var(--space-4); }
.plan__price { display: flex; align-items: baseline; gap: var(--space-2); }
.plan__price .num { font-size: 32px; line-height: 36px; font-weight: 500; letter-spacing: -.02em; }
.plan ul { padding: 0; list-style: none; display: grid; gap: var(--space-2); font-size: 14px; line-height: 22px; }
.plan li { padding-left: 14px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--ink-muted); }
.plan .btn { margin-top: auto; width: 100%; }
.plans .plan { background: var(--tint-ivory); border-color: var(--tint-ivory-line); }
.plans .plan--featured { background: var(--tint-ivory); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plans .plan .btn:not(.btn--primary) { background: var(--surface); }
.faq { display: grid; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; cursor: pointer; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .tog { color: var(--accent); font-size: 13px; font-weight: 500; white-space: nowrap; }
.faq details[open] .tog .c, .faq details:not([open]) .tog .o { display: none; }
.faq details p { padding-bottom: var(--space-4); color: var(--ink-muted); max-width: 680px; }

/* App */
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: 13px; color: var(--ink-muted); }
.site-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.site-table th { text-align: left; font-weight: 500; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); white-space: nowrap; }
.site-table td { padding: var(--space-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.site-table tr:last-child td { border-bottom: 0; }
.site-table .num { text-align: right; }
.site-table th.num { text-align: right; }
.site-table tbody tr { cursor: pointer; }
.site-table tbody tr:hover td { background: var(--surface-sunken); }
.site-table .domain-cell { font-family: var(--font-mono); font-weight: 500; overflow-wrap: anywhere; }
.score-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.signin { max-width: 420px; margin: var(--space-16) auto 0; display: grid; gap: var(--space-6); }
.signin .btn { height: 44px; }
.divider { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Dashboard tabs: a tinted track with raised, clearly clickable tabs; the active one is white with an accent bar. */
.tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-sunken); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 var(--space-4); border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink-muted); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tabs button:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; border-color: var(--line); box-shadow: 0 1px 2px rgba(11, 23, 38, .08); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chart { display: block; width: 100%; height: 200px; overflow: visible; }
[data-chart] { min-width: 0; }
.chart text { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-muted); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: 13px; color: var(--ink-muted); }
.list { display: grid; }
.list > li { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); font-size: 14px; min-width: 0; }
.list > li:last-child { border-bottom: 1px solid var(--line); }
.list > li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.list { padding: 0; }
.change { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--space-3); align-items: baseline; }
.toast { position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%); background: var(--ink); color: var(--canvas); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-size: 13px; z-index: 20; max-width: calc(100vw - 32px); }

/* AI prompts */
.prompt-list { display: grid; }
.prompt-row { display: grid; gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.prompt-row:last-child { border-bottom: 1px solid var(--line); }
.prompt-row__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.prompt-text { font-weight: 500; overflow-wrap: anywhere; }
.engine-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-2); }
.engine-cell { display: grid; gap: 6px; justify-items: start; text-align: left; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.engine-cell:hover:not([disabled]) { border-color: var(--line-strong); }
.engine-cell[aria-expanded="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.engine-cell[disabled] { cursor: default; }
.run-detail { display: grid; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-sunken); min-width: 0; }
.run-detail .list > li { gap: var(--space-2); }
.answer { overflow-wrap: anywhere; max-height: 520px; overflow-y: auto; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }

/* Guidance components */
.section-desc { font-size: 14px; line-height: 22px; color: var(--ink-muted); max-width: 680px; }
.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-6); align-items: center; padding: var(--space-4) var(--space-6); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); background: var(--surface); }
.callout__title { font-weight: 600; font-size: 15px; line-height: 22px; }
.callout__body { grid-column: 1; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.callout__actions { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.callout--warn { border-left-color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.callout--fail { border-left-color: var(--fail); background: var(--fail-soft); border-color: transparent; }
.callout--pass { border-left-color: var(--pass); }
.callout--warn .callout__body, .callout--fail .callout__body { color: var(--ink); }
.meter { display: grid; gap: 6px; min-width: 150px; }
.meter__top { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.meter__top .num { color: var(--ink); }
.meter .bar { height: 4px; }
.meter .bar__fill { background: var(--accent); }
.meter[data-full] .bar__fill { background: var(--warn); }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-3) var(--space-6); }
.panel-head > div:first-child { display: grid; gap: var(--space-1); min-width: 0; flex: 1 1 320px; }
.checklist { list-style: none; padding: 0; display: grid; }
.check { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.check__mark { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font: 500 12px/1 var(--font-mono); color: var(--ink-muted); }
.check[data-done] .check__mark { background: var(--pass); border-color: var(--pass); color: var(--surface); }
.check__title { font-weight: 500; }
.check[data-done] .check__title { color: var(--ink-muted); }
.check__desc { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.check[data-next] { background: var(--accent-soft); margin-inline: calc(-1 * var(--space-3)); padding-inline: var(--space-3); border-radius: var(--radius-md); border-top-color: transparent; }
.check[data-next] + .check { border-top-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px var(--space-3); border: 1px dashed var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font-size: 13px; line-height: 20px; cursor: pointer; text-align: left; }
.chip:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }
.chip .muted { font-family: var(--font-mono); font-size: 12px; }
.leaders { display: grid; }
.leader { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(150px, auto); gap: var(--space-4); align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.leader:last-child { border-bottom: 1px solid var(--line); }
.leader__name { display: flex; align-items: center; gap: var(--space-2); min-width: 0; font-family: var(--font-mono); font-size: 13px; }
.leader__name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader[data-own] .leader__name { font-weight: 600; }
.leader .bar__fill { background: var(--line-strong); }
.leader[data-own] .bar__fill { background: var(--accent); }
.leader__val { font-size: 13px; text-align: right; color: var(--ink-muted); line-height: 1.35; }
.leader__val .muted { display: block; }
@media (max-width: 640px) { .leader { grid-template-columns: minmax(0, 1fr) auto; } .leader .bar { grid-column: 1 / -1; grid-row: 2; } }
.leader__val strong { color: var(--ink); font-weight: 500; }
.priority { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.priority:last-child { border-bottom: 1px solid var(--line); }
.mentions-line { font-size: 12px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.mentions-line b { color: var(--ink); font-weight: 600; }

/* Rendered AI answers */
.md { display: grid; gap: var(--space-3); font-size: 14px; line-height: 22px; }
.md h4 { margin: var(--space-2) 0 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.md ul, .md ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.md p { margin: 0; }
.md strong { font-weight: 600; }
.md .md-table { overflow-x: auto; }
.md table { border-collapse: collapse; font-size: 13px; line-height: 20px; min-width: 100%; }
.md th, .md td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.md th { font-weight: 600; background: var(--surface-sunken); }
.md mark { background: var(--accent-soft); color: var(--accent); border-radius: 2px; padding: 0 2px; }

/* Home: live product window */
.live { padding: 0; overflow: hidden; display: grid; }
.live__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.live__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: var(--space-4) var(--space-6) 0; padding: 4px; border-radius: var(--radius-md); background: var(--surface-sunken); border: 1px solid var(--line); }
.live__tabs button { position: relative; height: 36px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: 5px; background: var(--canvas); color: var(--ink-muted); font: 500 12.5px/1 var(--font-sans); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s, color .15s, border-color .15s; }
.live__tabs button:hover { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.live__tabs button[aria-selected="true"] { color: var(--accent); background: var(--surface); border-color: var(--line-strong); box-shadow: 0 1px 3px rgba(14, 18, 24, .12); font-weight: 600; border-color: var(--accent); }
.live__tabs button:focus-visible { outline-offset: 1px; }
.live__timer { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; border-radius: 1px; background: transparent; overflow: hidden; }
.live__tabs button[aria-selected="true"] .live__timer::after { content: ""; position: absolute; inset: 0; width: 100%; background: var(--accent); opacity: .7; }
.live[data-playing] .live__tabs button[aria-selected="true"] .live__timer::after { width: 0; animation: timer var(--live-ms, 7000ms) linear forwards; }
@keyframes timer { to { width: 100%; } }
.live__scene { display: grid; gap: var(--space-5, 20px); padding: var(--space-6); min-height: 480px; align-content: start; }
.live__scene > .pill, .sim__visual > .pill { justify-self: start; }
.live__note { padding: 0 var(--space-6) var(--space-4); }
.live .findings .finding:last-child { border-bottom: 0; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
[data-type].typing .type-done::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.type-rest { color: transparent; }
/* Animated scenes share one cell, so the widget is always as tall as its tallest scene and never resizes the page. */
.scene-stack { display: grid; min-width: 0; }
.scene-stack > * { grid-area: 1 / 1; min-width: 0; align-self: start; }
.scene-stack > .is-off { visibility: hidden; pointer-events: none; }

/* Answer progress */
.running { gap: 6px; }
.running .dots i { background: currentColor; }
.cell-progress { position: relative; display: block; justify-self: stretch; width: 100%; height: 2px; border-radius: 1px; background: var(--surface-sunken); overflow: hidden; }
.cell-progress::after, .bar__shimmer { content: ""; position: absolute; inset: 0; width: 35%; background: var(--accent); border-radius: inherit; animation: slide 1.3s ease-in-out infinite; }
.bar__shimmer { opacity: .35; }
.run-status { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--accent); border-radius: var(--radius-md); background: var(--accent-soft); }
.run-status__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font-size: 14px; font-weight: 500; color: var(--accent); }
.run-status .bar { overflow: hidden; }
.run-status .bar__fill { background: var(--accent); transition: width .4s ease; }
@media (prefers-reduced-motion: reduce) { .cell-progress::after, .bar__shimmer { animation: none; } }

/* Home: signal strip */
.strip { border-block: 1px solid var(--line); background: var(--strip-bg); padding-block: var(--space-4); display: grid; gap: var(--space-3); overflow: hidden; }
.strip__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: var(--space-2); width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip--static { font-family: var(--font-code); cursor: default; border-style: solid; border-color: var(--line); color: var(--ink-muted); font-size: 12px; }

/* Page bands (light mode gets tinted hero + alternating white bands) */
.band { position: relative; }
.band--alt { background: var(--band-alt); border-block: 1px solid var(--band-line); }
.band--hero { background: var(--hero-bg); isolation: isolate; }
.band--hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 65% 35%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 65% 35%, #000 10%, transparent 75%); }
.hero__copy > .label, .how-hero > .label { color: var(--eyebrow); }
.band--hero .live, .band--hero .panel { box-shadow: var(--shadow-hero); }
.band--hero + .strip, .band--hero + .wrap > .sim:first-child { border-top-color: var(--band-line); }
.strip .chip--static { background: var(--surface); }

/* Home: check cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
/* Each card shares the row tracks of its neighbours, so labels, titles, visuals and signal lists line up. */
@supports (grid-template-rows: subgrid) {
  .cards { grid-template-rows: repeat(4, auto); }
  .cards .card { grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--space-3); }
}
.card .mini { align-self: stretch; }
.card { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6); border: 1px solid var(--tint-blue-line); border-radius: var(--radius-lg); background: var(--tint-blue); box-shadow: var(--shadow-card); transition: border-color .2s, transform .2s, box-shadow .2s; }
.card .mini { background: var(--surface); }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(14, 18, 24, .4); }
.card__top { display: grid; gap: 2px; align-content: start; }
.mini { margin: 0; min-height: 112px; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--canvas); display: grid; gap: 6px; align-content: start; font-size: 12px; line-height: 18px; overflow: hidden; }
.mini--code { font: 400 12px/18px var(--font-code); color: var(--ink); white-space: pre; }
.mini__url { color: var(--pass); font-family: var(--font-mono); }
.mini__title { color: var(--accent); font-size: 14px; line-height: 20px; font-weight: 500; }
.mini__line { height: 6px; border-radius: 3px; background: var(--surface-sunken); }
.mini__line--short { width: 60%; }
.mini__q { justify-self: start; padding: 4px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.mini--bars > div { display: grid; gap: 4px; }
.mini--bars > div + div .bar__fill { background: var(--line-strong); }

/* Home: video */
.video-block { grid-template-columns: minmax(0, 1fr); }
.video-block .video-frame { max-width: 960px; width: 100%; }
.video-block__copy { display: grid; gap: var(--space-6); align-content: start; }
.video-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 40px -24px rgba(14, 18, 24, .35); }
.video-frame .how-video { border: 0; border-radius: 0; display: block; }
.chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); max-width: 960px; }
.chapter { display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 400 13px/1 var(--font-sans); cursor: pointer; transition: border-color .15s, background .15s; }
.chapter:hover { border-color: var(--accent); }
.chapter .mono { color: var(--accent); font-size: 12px; font-weight: 500; }
.chapter:hover, .chapter[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }

/* Scroll reveal for whole sections */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in-view { opacity: 1; transform: none; }
.in-view .reveal { animation: rise .45s ease forwards; animation-delay: calc(var(--i, 0) * 120ms + 150ms); }
.in-view .grow { animation: grow 1s ease forwards; animation-delay: calc(var(--i, 0) * 200ms + 300ms); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .in-view .reveal, .in-view .grow { animation: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .dots i, .live__timer { animation: none !important; }
}

/* How it works */
.how-hero { display: grid; gap: var(--space-6); padding-block: var(--space-16) var(--space-12); max-width: 820px; }
.how-list { margin: 0; padding-left: 20px; display: grid; gap: var(--space-2); }
.how-list li::marker { color: var(--ink-muted); }
.how-video { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #000; }
.sim { display: grid; gap: var(--space-6); scroll-margin-top: 80px; }
.sim__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.sim__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sim__steps button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-2); align-items: baseline; padding: var(--space-2) var(--space-3); border: 0; border-left: 2px solid var(--line); background: transparent; color: var(--ink-muted); text-align: left; font-size: 14px; line-height: 20px; cursor: pointer; }
.sim__steps button .num { font-size: 12px; }
.sim__steps button[aria-current] { color: var(--ink); font-weight: 500; border-left-color: var(--accent); background: var(--accent-soft); }
.sim__stage { display: grid; gap: var(--space-4); min-width: 0; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); min-height: 440px; align-content: start; }
.sim__progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; }
.sim__progress .bar { height: 3px; }
.sim__progress .bar__fill { background: var(--accent); transition: width .4s ease; }
.sim__scene { display: grid; gap: var(--space-6); }
.sim__visual { display: grid; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.sim__caption { display: grid; gap: var(--space-1); max-width: 620px; }
.sim-q { font-size: 16px; font-weight: 500; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-sunken); justify-self: start; }
.sim-chart { height: auto; }
.chart .dot--alert { stroke: var(--fail); fill: var(--fail); }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 0; font-size: 15px; }
.caret { display: inline-block; width: 1px; height: 18px; margin-left: 1px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.is-active .typed { animation: type 1.4s steps(24, end) .3s forwards; }
@keyframes type { to { width: calc(var(--n) * 1ch); } }
.is-active .sim-press { animation: press .25s ease 1.9s both; }
@keyframes press { 50% { transform: scale(.96); filter: brightness(1.15); } }
.reveal { opacity: 0; transform: translateY(6px); }
.is-active .reveal { animation: rise .45s ease forwards; animation-delay: calc(var(--i, 0) * 380ms + 250ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.grow { width: 0; }
.is-active .grow { animation: grow 1s ease forwards; animation-delay: calc(var(--i, 0) * 200ms + 200ms); }
@keyframes grow { to { width: var(--w); } }
.sim-line { stroke-dasharray: 900; stroke-dashoffset: 900; }
.is-active .sim-line { animation: draw 2.4s ease .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .is-active .reveal, .is-active .grow, .is-active .typed, .is-active .sim-line, .is-active .sim-press, .caret { animation: none; }
  .typed { width: calc(var(--n) * 1ch); }
  .grow { width: var(--w); }
  .sim-line { stroke-dashoffset: 0; }
}

/* Evidence */
.proof { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); min-width: 0; }
.proof__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.proof__req { font-family: var(--font-code); min-width: 0; overflow-wrap: anywhere; color: var(--ink-muted); }
.proof__req a { color: var(--ink-muted); }
.proof .code pre { max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.print-only { display: none; }

/* Print / Save as PDF */
@media print {
  :root, :root[data-theme="dark"] {
    --canvas: #fff; --surface: #fff; --surface-sunken: #f3f4f6; --line: #d9dce1; --line-strong: #858d9a;
    --ink: #0e1218; --ink-muted: #4a5260; --accent: #0072bb; --accent-soft: #e6f1f8; --on-accent: #fff;
    --pass: #16714a; --pass-soft: #e6f3ec; --warn: #8a5a00; --warn-soft: #fbf1dd; --fail: #b0261f; --fail-soft: #fbe9e7;
    color-scheme: light;
  }
  @page { margin: 14mm 12mm; }
  body { font-size: 11pt; line-height: 1.45; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .footer, .skip, .actions, .report-head .actions, .seg, .tabs, .code__copy, .finding__toggle, .crumbs, #remove, #remove-confirm, .checklist, [data-goto], .toast, .upsell, .callout__actions, .panel-head > .btn { display: none !important; }
  .print-only { display: flex !important; }
  .print-head { justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 9pt; color: var(--ink-muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
  .print-head strong { color: var(--ink); }
  .wrap { max-width: none; padding: 0; }
  .page { padding: 0; gap: 16px; }
  .report-grid { grid-template-columns: 1fr; gap: 16px; }
  .panel { border-color: var(--line); padding: 12px 14px; }
  .report-grid > aside .panel { break-inside: avoid; }
  .finding > summary { break-after: avoid; }
  .proof, .code, .metric, .rows > div { break-inside: avoid; }
  .panel.stack:has(.finding) { break-inside: auto; }
  .finding__body { padding-left: 0; }
  .finding > summary { grid-template-columns: 44px 88px minmax(0, 1fr); }
  .finding[data-status] { display: block !important; }
  .code pre, .proof .code pre { max-height: none; overflow: visible; white-space: pre-wrap; font-size: 8.5pt; line-height: 1.4; }
  .answer { max-height: none; overflow: visible; }
  a { color: inherit; text-decoration: none; }
  .empty { display: none !important; }
  [role=tabpanel] { margin-bottom: 12px; }
}

/* Breakpoints */
@media (max-width: 960px) {
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim__body { grid-template-columns: minmax(0, 1fr); }
  .sim__steps { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-12) var(--space-8); }
  .steps, .plans { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Legal pages and contact ---------- */
.band--page { border-bottom: 1px solid var(--band-line); }
.page-head { display: grid; gap: var(--space-3); padding-block: var(--space-12) var(--space-6); max-width: 760px; }
.page-head .label { color: var(--eyebrow); }
.page-head__lede { font-size: 16px; line-height: 26px; max-width: 620px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-4); }
.legal-tabs a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.legal-tabs a:hover { color: var(--ink); border-color: var(--line-strong); }
.legal-tabs a[aria-current="page"] { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-12); align-items: start; padding-block: var(--space-12); }
.legal__toc { position: sticky; top: 84px; }
.legal__toc summary { list-style: none; cursor: default; margin-bottom: var(--space-3); }
.legal__toc summary::-webkit-details-marker { display: none; }
.legal__toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal__toc a { display: block; padding: 5px 0 5px var(--space-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-muted); font-size: 13px; line-height: 18px; text-decoration: none; }
.legal__toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.legal__body { max-width: 720px; font-size: 15px; line-height: 26px; }
.legal__body h2 { scroll-margin-top: 84px; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 18px; line-height: 26px; }
.legal__body h2:first-of-type { margin-top: var(--space-2); }
.legal__body > p:first-child { font-size: 16px; line-height: 27px; color: var(--ink); }
.legal__body li::marker { color: var(--accent); }
.contact { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; padding-block: var(--space-12); }
.contact__form { display: grid; gap: var(--space-6); }
.contact__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.contact__aside { display: grid; gap: var(--space-4); }
.contact__email { font-size: 17px; font-weight: 500; word-break: break-all; }
.contact__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.contact__submit .btn { min-width: 180px; height: 44px; }
#c-status:empty { display: none; }
#c-status[data-kind="error"] { color: var(--fail); }
#c-status[data-kind="success"] { color: var(--pass); font-weight: 500; }
#c-status[data-kind="pending"] { color: var(--ink-muted); }
.req { color: var(--fail); }
.field-error { color: var(--fail); font-size: 12.5px; line-height: 18px; }
.field-error:empty { display: none; }
.input[aria-invalid="true"] { border-color: var(--fail); }
.textarea { height: auto; min-height: 160px; padding: var(--space-3); line-height: 22px; resize: vertical; }
.dropzone { display: grid; justify-items: center; gap: 4px; padding: var(--space-6) var(--space-4); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-sunken); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone[data-over] { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone__title { font-weight: 500; color: var(--accent); }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.file-list:empty { display: none; }
.file-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-3); padding: 6px var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.file-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.file-item__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-item__remove { width: 28px; height: 28px; border: 0; border-radius: 4px; background: none; color: var(--ink-muted); font-size: 18px; cursor: pointer; }
.file-item__remove:hover { background: var(--fail-soft); color: var(--fail); }
.turnstile { min-height: 65px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); font-size: 14px; line-height: 21px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--pass-bar); border-bottom: 2px solid var(--pass-bar); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-8); }
  .legal__toc { position: static; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: var(--space-3) var(--space-4); }
  .legal__toc summary { cursor: pointer; margin: 0; }
  .legal__toc details[open] summary { margin-bottom: var(--space-3); }
  .contact { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-8); }
  .contact__row { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding-block: var(--space-8) var(--space-4); }
}

.cell-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tone { font-size: 11.5px; font-weight: 600; }
.tone::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; background: currentColor; }
.tone--positive { color: var(--pass); }
.tone--neutral { color: var(--ink-muted); }
.tone--negative { color: var(--fail); }

.verify-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--line); }
.team-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.team-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-3); padding: 8px var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); }
.team-list .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

/* ---------- White-label reports ---------- */
.brand-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; min-width: 0; }
.brand-mark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark__logo, .topbar .brand-mark img { height: 28px; width: auto; max-width: 160px; object-fit: contain; border-radius: 0; }
a.brand-mark:hover { text-decoration: none; opacity: .85; }
.print-head .brand-mark__logo { height: 18px; }
.brand-preview { display: grid; gap: var(--space-2); }
.brand-preview__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 52px; padding: var(--space-3) var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-sunken); }
.brand-preview__bar img { height: 28px; width: auto; max-width: 140px; object-fit: contain; }

/* ---------- Sign-in ---------- */
.btn--provider { gap: 10px; color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.btn--provider:hover { background: var(--surface-2, var(--accent-soft)); border-color: var(--ink-muted); }
.btn--apple { background: #000; border-color: #000; color: #fff; }
.btn--apple:hover { background: #1d1d1f; border-color: #1d1d1f; }
:root[data-theme="dark"] .btn--apple { background: #fff; border-color: #fff; color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--apple { background: #fff; border-color: #fff; color: #000; } }
.divider { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.field > span.field__row .link-btn { font-size: 13px; }
.pw { position: relative; display: block; }
.pw .input { padding-right: 72px; }
.pw__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: 30px; padding: 0 10px; border: 0; border-radius: 4px; background: none; color: var(--ink-muted); font: 500 12px/1 var(--font-sans); cursor: pointer; }
.pw__toggle:hover { color: var(--ink); background: var(--accent-soft); }
.center { text-align: center; }
.signin .callout { margin: 0; }

/* ---------- Account: top nav, account menu, billing, settings ---------- */
.topbar #app-nav { margin-left: var(--space-2); }
.topbar #app-nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.topbar #app-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.user-area { display: flex; align-items: center; min-width: 0; }
.acct { position: relative; }
.acct__btn { display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-2) 0 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 400 13px/1 var(--font-sans); cursor: pointer; max-width: 300px; }
.acct__btn:hover, .acct__btn[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-2, var(--surface)); }
.acct__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acct__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); }
.acct__chev { flex: none; color: var(--ink-muted); transition: transform .15s; }
.acct__btn[aria-expanded="true"] .acct__chev { transform: rotate(180deg); }
.avatar { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--on-btn); font: 500 13px/1 var(--font-sans); }
.avatar--lg { width: 36px; height: 36px; font-size: 15px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06); overflow: hidden; }
.menu__head { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.menu__who { display: grid; min-width: 0; font-size: 13px; line-height: 18px; }
.menu__who > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__who strong { font-weight: 500; }
.menu__group { display: grid; padding: 4px; }
.menu__group + .menu__group { border-top: 1px solid var(--line); }
.menu [role="menuitem"] { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 4px; background: none; color: var(--ink); font: 400 14px/20px var(--font-sans); text-decoration: none; cursor: pointer; }
.menu [role="menuitem"]:hover, .menu [role="menuitem"]:focus-visible { background: var(--accent-soft); color: var(--accent); outline: none; }
.menu [role="menuitem"][aria-current="page"] { color: var(--accent); font-weight: 500; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-6); align-items: start; }
.plans .plan--current { border-color: var(--pass); box-shadow: 0 0 0 1px var(--pass); }
.btn[aria-disabled="true"] { opacity: .65; cursor: default; pointer-events: none; }
.switch-row, .pref-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); cursor: pointer; }
.pref-row { cursor: default; }
.switch-row__title { font-size: 14px; font-weight: 500; color: var(--ink); }
.switch { appearance: none; flex: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch:disabled { opacity: .6; }
.danger-zone { border-color: color-mix(in srgb, var(--fail) 35%, var(--line)); }
.danger-zone .btn--danger { background: var(--surface); border-color: color-mix(in srgb, var(--fail) 55%, var(--line)); color: var(--fail); }
.danger-zone .btn--danger:hover { background: color-mix(in srgb, var(--fail) 10%, var(--surface)); border-color: var(--fail); }
.danger-zone #del-submit:not([disabled]) { background: var(--fail); border-color: var(--fail); color: #fff; }
.danger-zone #del-submit[disabled] { opacity: .45; }
.topbar #app-nav a:hover { color: var(--ink); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
#invoices:focus { outline: none; }
@media (max-width: 860px) {
  .topbar #app-nav { display: none; }
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: var(--space-4); }
  .nav, .topbar .who { display: none; }
  .acct__email { display: none; }
  .acct__btn { padding-right: 6px; }
  .menu { position: fixed; left: var(--space-4); right: var(--space-4); top: 64px; width: auto; }
  .switch-row, .pref-row { align-items: flex-start; }
  .pref-row { flex-direction: column; }
  .topbar .wrap { gap: var(--space-3); }
  .t-display { font-size: 32px; line-height: 38px; }
  .t-1 { font-size: 24px; line-height: 30px; }
  .panel { padding: var(--space-4); }
  .panel__head { padding: var(--space-3) var(--space-4); }
  .panel__body { padding: var(--space-4); }
  .report-head .domain { font-size: 24px; line-height: 30px; }
  .report-head .actions { width: 100%; }
  .report-head .actions .btn { flex: 1; }
  .finding > summary, .finding__row { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--space-1); }
  .finding .pill { justify-self: end; }
  .finding__main, .finding__toggle { grid-column: 1 / -1; }
  .finding__body { padding-left: 0; }
  .domain-form__row, .inline-form { flex-direction: column; }
  .domain-box, .inline-form .input { flex: none; }
  .panel.preview, .panel.panel--flush { padding: 0; }
  .preview__head, .preview__body { padding: var(--space-4); }
  .domain-form .btn, .inline-form .btn { width: 100%; }
  .checks thead { display: none; }
  .checks, .checks tbody, .checks tr, .checks td { display: block; width: 100% !important; }
  .checks tr { border-bottom: 1px solid var(--line); padding-block: var(--space-3); }
  .checks td { border: 0; padding: 2px 0; }
  .site-table thead { display: none; }
  .site-table, .site-table tbody, .site-table tr { display: block; width: 100%; }
  .site-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
  .site-table tr:last-child { border-bottom: 0; }
  .site-table td { display: block; padding: 0; border: 0; }
  .site-table td.opt { display: none; }
  .site-table td.meta { grid-column: 1 / -1; font-size: 13px; }
  .site-table tr { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  .site-table td.row-actions { grid-row: 1; grid-column: 3; width: auto; padding: 0; }
  .change { grid-template-columns: auto minmax(0, 1fr); }
  .change .when { grid-column: 1 / -1; }
  .footer .end { margin-left: 0; }
  .sim__stage, .sim__visual { padding: var(--space-4); }
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); scrollbar-width: none; }
  .card { flex: 0 0 82%; scroll-snap-align: start; }
  .live__scene { padding: var(--space-4); min-height: 0; }
  .live__head { padding: var(--space-3) var(--space-4); }
  .live__note { padding: 0 var(--space-4) var(--space-3); }
  .sim__stage { min-height: 0; }
  .how-hero { padding-block: var(--space-12) var(--space-8); }
  .callout { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
  .callout__actions { grid-column: 1; grid-row: auto; margin-top: var(--space-2); }
  .leader { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .leader .bar { grid-column: 1 / -1; grid-row: 2; }
  .check { grid-template-columns: 28px minmax(0, 1fr); }
  .check > .btn { grid-column: 2; justify-self: start; }
  .priority { grid-template-columns: auto minmax(0, 1fr); }
  .priority > .btn { grid-column: 2; justify-self: start; }
}
.table-scroll { overflow-x: auto; }

/* Cookie consent */
.consent { position: fixed; z-index: 30; left: 16px; bottom: 16px; width: min(560px, calc(100vw - 32px)); display: grid; gap: var(--space-4); padding: var(--space-5, 20px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 12px 40px rgba(11, 23, 38, .16); }
.consent__title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.consent__text a, .consent-dialog a { color: var(--accent); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
.consent-dialog { width: min(520px, calc(100vw - 32px)); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); }
.consent-dialog::backdrop { background: rgba(11, 23, 38, .45); }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
label.consent-row { cursor: pointer; }
.consent-row__t { font-size: 14px; font-weight: 500; color: var(--ink); }
.footer .linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer .linklike:hover { color: var(--ink); }
@media (max-width: 560px) {
  .consent { left: 8px; right: 8px; bottom: 8px; width: auto; padding: var(--space-4); }
  .consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent__actions [data-consent="prefs"] { grid-column: 1 / -1; order: 3; }
}
/* 404 */
.nf { display: grid; gap: var(--space-4); justify-items: start; padding-block: var(--space-16) var(--space-12); }
.nf__code { font-size: 64px; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.nf__body { max-width: 520px; }
.nf__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nf__audit { display: grid; gap: var(--space-2); width: 100%; max-width: 520px; margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.nf__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); }
@media (max-width: 480px) { .nf__row { grid-template-columns: minmax(0, 1fr); } }

/* Plus-in-circle toggle (FAQ, How it works) */
.plus { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--accent); border-radius: 50%; color: var(--accent); transition: transform .2s ease, background .2s ease; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); border-radius: 1px; }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .plus { transform: rotate(45deg); background: var(--accent-soft); }
summary:hover .plus { background: var(--accent-soft); }
.faq summary { align-items: center; }
/* How it works accordion */
.acc { display: grid; gap: var(--space-3); max-width: 860px; }
.acc__item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .15s; }
.acc__item[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.acc__item summary { list-style: none; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5, 20px) var(--space-6); cursor: pointer; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__num { color: var(--accent); font-size: 13px; font-weight: 500; }
.acc__title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.acc__body { display: grid; gap: var(--space-4); justify-items: start; padding: 0 var(--space-6) var(--space-6) calc(var(--space-6) + 34px); }
.acc__body p { max-width: 660px; }
@media (max-width: 640px) {
  .acc__item summary { padding: var(--space-4); gap: var(--space-3); }
  .acc__body { padding: 0 var(--space-4) var(--space-4); }
  .acc__body .btn { width: 100%; justify-content: center; }
  /* Hero: centred headline and lede, no eyebrow */
  .hero__copy { text-align: center; justify-items: center; }
  .hero__copy > .label { display: none; }
  .hero__lede { margin-inline: auto; }
  .hero__copy .domain-form { justify-self: stretch; text-align: left; }
  .hero__copy .small { text-align: center; }
  /* Video chapters: tidy two-column grid */
  .chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter { width: 100%; height: auto; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-md); white-space: normal; text-align: left; line-height: 1.3; }
}
@media (min-width: 641px) {
  .chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); max-width: none; }
  .chapter { width: 100%; border-radius: var(--radius-md); }
}
.btn--wrap { white-space: normal; height: auto; min-height: 40px; padding-block: 8px; text-align: center; line-height: 1.35; }

/* Free trial explainer on the billing page */
.trial-how { display: grid; gap: var(--space-4); }
.trial-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.trial-steps li { position: relative; display: grid; gap: 2px; padding-left: 28px; }
.trial-steps li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.trial-steps li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: calc(-1 * var(--space-4) + 4px); width: 2px; background: var(--line); }
.trial-steps li.is-now::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.trial-steps li.is-now::after { background: var(--accent); }
.trial-steps strong { font-weight: 600; color: var(--ink); font-size: 14px; }
@media (min-width: 900px) { .trial-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .trial-steps li:not(:last-child)::after { left: 22px; right: -12px; top: 10px; bottom: auto; width: auto; height: 2px; } .trial-steps li { padding-left: 0; padding-top: 24px; } .trial-steps li::before { top: 5px; left: 0; } }

/* Checkout dialog: trial timeline beside Paddle's inline card form */
.co-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); overflow: auto; }
.co-dialog::backdrop { background: rgba(11, 23, 38, .55); }
.co-close { position: absolute; top: 10px; right: 12px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.co-close:hover { background: var(--accent-soft); color: var(--ink); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pay" "how"; }
.co-head { grid-area: head; } .co-pay { grid-area: pay; } .co-how { grid-area: how; }
.co-summary { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-6); background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.co-how { border-top: 1px solid var(--line); border-bottom: 0; }
.co-summary h2 { margin: -8px 0 0; color: var(--accent); padding-right: 32px; }
.co-summary h3 { margin: var(--space-2) 0 0; }
.co-lines { display: grid; gap: 6px; margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.co-lines div { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 14px; }
.co-lines dt { color: var(--ink-muted); }
.co-lines dd { margin: 0; text-align: right; font-weight: 500; }
.co-lines .co-today { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; }
.co-lines .co-today dt { color: var(--ink); font-weight: 600; }
.co-lines .co-today dd { font-weight: 700; }
.co-pay { padding: var(--space-6) 20px; min-height: 420px; }
.co-loading { margin: var(--space-6) 0; text-align: center; }
/* the timeline stays vertical here, also on wide screens */
.co-steps { grid-template-columns: minmax(0, 1fr) !important; }
.co-steps li { padding-left: 28px !important; padding-top: 0 !important; }
.co-steps li::before { left: 4px !important; top: 6px !important; }
.co-steps li:not(:last-child)::after { left: 8px !important; right: auto !important; top: 20px !important; bottom: calc(-1 * var(--space-4) + 4px) !important; width: 2px !important; height: auto !important; }
@media (min-width: 860px) {
  .co-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "head pay" "how pay"; grid-template-rows: auto 1fr; min-height: 560px; }
  .co-summary { padding: var(--space-8) 28px 0; border: 0; border-right: 1px solid var(--line); }
  .co-how { padding-top: var(--space-6); padding-bottom: var(--space-8); }
  .co-pay { padding: var(--space-8) var(--space-6) var(--space-6); }
}

/* Signed-in account link on public pages */
.btn--account { gap: 8px; padding-left: 4px; }
.btn--account .avatar { width: 24px; height: 24px; font-size: 12px; }

/* Back to top */
.to-top { position: fixed; z-index: 25; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 6px 20px rgba(11, 23, 38, .16); cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.to-top[hidden] { display: none; }
@media (max-width: 640px) { .to-top { width: 40px; height: 40px; } }
body:has(.consent:not([hidden])) .to-top { display: none; }

/* AI visibility: explained cards, verdict and "why not named" */
.engine-cell .pill { white-space: normal; text-align: left; }
.cell-quote { font-size: 12px; line-height: 1.4; color: var(--ink-muted); font-style: italic; overflow-wrap: anywhere; }
.cell-open { margin-top: auto; font-size: 12px; font-weight: 500; color: var(--accent); }
.engine-cell[aria-expanded="true"] .cell-open { text-decoration: underline; }
.verdict { display: grid; gap: 6px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line); border-left-width: 3px; }
.verdict--pass { border-left-color: var(--pass); background: var(--pass-soft); }
.verdict--fail { border-left-color: var(--fail); background: var(--fail-soft); }
.verdict blockquote { margin: 0; padding-left: 10px; border-left: 2px solid var(--line-strong); color: var(--ink); }
.verdict a { color: var(--accent); overflow-wrap: anywhere; }
.why { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-4) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-sunken); }
.why h3 { margin: 0; }
.why__list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.why__list strong { font-weight: 600; }

/* Account control: Dashboard button + profile menu on desktop, one hamburger menu on phones and tablets */
.acct__burger { display: none; }
.menu__group--site { display: none; }
.user-area { gap: var(--space-3); }
.acct__dash { flex: none; }
@media (max-width: 860px) {
  .acct__dash { display: none; }
  .acct__btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: var(--radius-md); }
  .acct__btn .avatar, .acct__btn .acct__email, .acct__btn .acct__chev { display: none; }
  .acct__burger { display: block; }
  .menu { position: fixed; left: var(--space-4); right: var(--space-4); top: 64px; width: auto; max-height: calc(100dvh - 80px); overflow-y: auto; }
  .menu [role="menuitem"] { padding: 11px 12px; font-size: 15px; }
}
@media (max-width: 640px) { .menu__group--site { display: grid; } }

/* Footer social icons */
.footer .social { display: flex; gap: 4px; margin-right: var(--space-2); }
.footer .social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-muted); transition: color .15s, background-color .15s; }
.footer .social a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.footer .social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Plan change dialog: yearly offer */
.year-offer { display: grid; gap: 6px; justify-items: start; padding: var(--space-3) var(--space-4); border: 1px solid color-mix(in srgb, var(--pass) 40%, var(--line)); border-left: 3px solid var(--pass); border-radius: var(--radius-md); background: var(--pass-soft); }
.year-offer strong { color: var(--ink); font-weight: 600; }
.year-offer p { margin: 0; color: var(--ink); }
.year-offer .btn { margin-top: 4px; border-color: var(--pass); color: var(--pass); background: var(--surface); }

/* ---------- Site dashboard: compact header, KPI cards, widgets, side panel ---------- */
.dash { gap: var(--space-6); }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-6); }
.dash-head .domain { font-family: var(--font-mono); font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dash-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-3); margin-top: 2px; }
.dash-head__meta > span::before { content: '·'; margin-right: var(--space-3); color: var(--line-strong); }
.dash-head .actions { display: flex; gap: var(--space-2); align-items: center; }
.linkish { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.linkish strong { color: var(--ink); font-weight: 500; }

.ddm { position: relative; }
.ddm > summary { list-style: none; }
.ddm > summary::-webkit-details-marker { display: none; }
.ddm__caret { font-size: 10px; }
.ddm__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; min-width: 230px; padding: 4px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06); }
.ddm__list [role="menuitem"] { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 4px; background: none; color: var(--ink); font: 400 14px/20px var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.ddm__list [role="menuitem"]:hover, .ddm__list [role="menuitem"]:focus-visible { background: var(--accent-soft); color: var(--accent); outline: none; }
.ddm__list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ddm__list .ddm__danger { color: var(--fail); }
.ddm__list .ddm__danger:hover { background: var(--fail-soft); color: var(--fail); }

.setup { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.setup__head { display: grid; grid-template-columns: auto auto minmax(80px, 160px) minmax(0, 1fr); align-items: center; gap: var(--space-2) var(--space-4); }
.setup__head .bar { height: 4px; }
.setup__head .bar__fill { background: var(--accent); }
.setup__next { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup__steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.setup__steps > li { display: grid; min-width: 0; }
.setup__step { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; column-gap: var(--space-2); row-gap: 2px; min-width: 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
.setup__step[data-done] { background: var(--surface-sunken); border-color: transparent; }
.setup__step[data-done] .setup__t { color: var(--ink-muted); }
.setup__step .check__mark { width: 22px; height: 22px; font-size: 11px; }
.setup__step[data-done] .check__mark { background: var(--pass); border-color: var(--pass); color: var(--surface); }
.setup__t { font-size: 13px; line-height: 17px; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.setup__go { grid-column: 2; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--accent); }
.setup__step--go { cursor: pointer; border-color: var(--tint-blue-line); transition: border-color .15s, background .15s, box-shadow .15s; }
.setup__step--go:hover { border-color: var(--accent); background: var(--accent-soft); }
.setup__step--go:hover .setup__go { text-decoration: underline; }
.setup__step--go[data-next] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.setup__step--go[data-next] .check__mark { border-color: var(--accent); color: var(--accent); }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.kpi { position: relative; outline: none; display: grid; align-content: start; gap: 2px; padding: var(--space-3) var(--space-4) var(--space-3); text-align: left; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
@media (hover: hover) { .kpi:hover { border-color: var(--accent); } }
.kpi[data-band="pass"] { border-top-color: var(--pass-bar); }
.kpi[data-band="warn"] { border-top-color: var(--warn-bar); }
.kpi[data-band="fail"] { border-top-color: var(--fail-bar); }
.kpi__value { font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -.02em; }
.kpi__value small { font-size: 14px; color: var(--ink-muted); font-weight: 400; margin-left: 2px; }
.kpi__sub { font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.kpi__cta { margin-top: var(--space-2); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--accent); }
@media (hover: hover) { .kpi:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 23, 38, .06), 0 16px 30px -18px rgba(0, 62, 115, .45); } .kpi:hover .kpi__cta { text-decoration: underline; } }
.kpi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.delta[data-dir="up"] { color: var(--pass); font-weight: 500; }
.delta[data-dir="down"] { color: var(--fail); font-weight: 500; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.dash-grid > .stack { gap: var(--space-4); }
.widget { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-6) var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); min-width: 0; }
.widget__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; }
.widget > .btn--ghost { justify-self: start; padding: 0; }
.empty-mini { display: grid; gap: var(--space-3); justify-items: start; }

.rows-list { display: grid; }
.row-btn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); width: 100%; padding: 10px var(--space-2); margin: 0 calc(-1 * var(--space-2)); width: calc(100% + 2 * var(--space-2)); border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.row-btn:first-child { border-top: 0; }
.row-btn:hover { background: var(--accent-soft); border-radius: var(--radius-md); }
.row-btn:hover + .row-btn { border-top-color: transparent; }
.row-btn__main { display: grid; min-width: 0; }
.row-btn__title { font-size: 14px; line-height: 20px; font-weight: 500; }
.row-btn__sub { font-size: 12px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-btn__go { font-size: 13px; color: var(--accent); white-space: nowrap; }

/* Questions × assistants matrix */
.mx { display: grid; border: 1px solid var(--line); border-radius: var(--radius-md); overflow-x: auto; overscroll-behavior-x: contain; }
.mx__row { min-width: calc(220px + var(--cols) * 104px); }
.mx[data-compact] .mx__row { grid-template-columns: minmax(200px, 1fr) repeat(var(--cols), minmax(64px, 84px)); min-width: calc(200px + var(--cols) * 64px); }
.mx[data-compact] .mx__row--head > span:not(:first-child) { padding-inline: 6px; font-size: 10px; line-height: 14px; letter-spacing: .04em; text-align: center; }
.mx[data-compact] .mx__cell { justify-items: center; padding-inline: 6px; }
.pill--sym { font-family: system-ui, "Segoe UI Symbol", sans-serif; min-width: 30px; justify-content: center; font-weight: 600; }
.mx-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.mx-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.mx__row { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(var(--cols), minmax(104px, 132px)); align-items: stretch; border-top: 1px solid var(--line); }
.mx__row:first-child { border-top: 0; }
.mx__row--head { background: var(--surface-sunken); font: 500 11px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.mx__row--head > span { padding: 8px var(--space-3); }
.mx__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 8px var(--space-3); font-size: 13px; line-height: 19px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.mx__cell { display: grid; align-content: center; justify-items: start; gap: 2px; padding: 8px var(--space-3); border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.mx__cell:hover:not([disabled]) { background: var(--accent-soft); }
.mx__cell[disabled] { cursor: default; }
.mx__cell .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mx__eng { display: none; }
.mx__recent { font-size: 11px; line-height: 14px; color: var(--ink-muted); }
.icon-btn { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.icon-btn:hover { background: var(--surface-sunken); color: var(--fail); }

.mini-leaders { display: grid; }
.mini-leader { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(40px, 1fr) auto; align-items: center; gap: var(--space-3); padding: 7px 0; border-top: 1px solid var(--line); }
.mini-leader:first-child { border-top: 0; }
.mini-leader__name { font-family: var(--font-mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-leader .bar { display: block; height: 5px; }
.mini-leader .bar__fill { display: block; background: var(--line-strong); }
.mini-leader[data-own] .bar__fill { background: var(--accent); }
.mini-leader[data-own] .mini-leader__name { font-weight: 600; }
.why-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-2); padding: var(--space-3); border: 1px solid transparent; border-left: 3px solid var(--warn); border-radius: var(--radius-md); background: var(--warn-soft); color: var(--ink); text-align: left; font: inherit; font-size: 13px; line-height: 19px; cursor: pointer; }
.why-link strong { font-weight: 600; }
.why-link span:not([aria-hidden]) { grid-column: 1; color: var(--ink-muted); }
.why-link [aria-hidden] { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 18px; color: var(--warn); }
.why-link:hover { border-color: var(--warn); }
.mini-list { list-style: none; padding: 0; display: grid; }
.mini-list li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
.mini-list li:first-child { border-top: 0; }
.mini-list .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-box { min-height: 60px; }
.widget .list > li { padding: 8px 0; font-size: 13px; }

/* Side panel (right on desktop, bottom sheet on phones) */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: -24px 0 48px -24px rgba(11, 23, 38, .35); }
.drawer::backdrop { background: rgba(11, 23, 38, .38); }
.drawer[open] { animation: drawer-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer__inner { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.drawer__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-3) var(--space-6); border-bottom: 1px solid var(--line); }
.drawer__head h2 { grid-column: 2; overflow-wrap: anywhere; }
.drawer__back { grid-column: 1; padding: 0 var(--space-2) 0 0; }
.drawer__close { grid-column: 3; width: 36px; height: 36px; font-size: 24px; }
.drawer__close:hover { color: var(--ink); }
.drawer__body { overflow-y: auto; overscroll-behavior: contain; padding: var(--space-6); }
.drawer__body > .stack { gap: var(--space-4); }
.drawer .panel { padding: 0; border: 0; box-shadow: none; }
.drawer .inline-form { flex-wrap: wrap; }
.drawer .inline-form .input { min-width: 200px; }
.drawer .verify-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }

@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .dash { gap: var(--space-4); }
  .dash-head { align-items: stretch; }
  .dash-head .domain { font-size: 22px; line-height: 28px; }
  .dash-head__meta { display: grid; gap: 2px; }
  .dash-head__meta > button { justify-self: start; }
  .dash-head__meta > span::before { content: none; }
  .dash-head .actions { width: 100%; }
  .dash-head .actions > * { flex: 1; }
  .dash-head .actions .ddm > summary { width: 100%; }
  .ddm__list { left: 0; right: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .kpis .kpi:first-child { grid-column: 1 / -1; }
  .kpi__value { font-size: 24px; line-height: 30px; }
  .setup { padding: var(--space-3) var(--space-4); }
  .setup__head { grid-template-columns: auto auto minmax(0, 1fr); }
  .setup__next { grid-column: 1 / -1; white-space: normal; }
  .setup__steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .setup__steps > li:has([data-done]), .setup__steps > [data-done] { display: none; }
  .setup__t { white-space: normal; }
  .widget { padding: var(--space-3) var(--space-4) var(--space-4); }
  .row-btn__go { display: none; }
  .mx { border: 0; border-radius: 0; gap: var(--space-2); }
  .mx__row--head { display: none; }
  .mx__row, .mx[data-compact] .mx__row { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); }
  .mx[data-compact] .mx__cell { justify-items: start; padding-inline: var(--space-3); }
  .mx__row:first-child { border-top: 1px solid var(--line); }
  .mx__q { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .mx__cell { border-left: 0; }
  .mx__cell:nth-child(odd) { border-left: 1px solid var(--line); }
  .mx__cell:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .mx__eng { display: block; font: 500 10px/14px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
  .drawer { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 92dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; }
  .drawer__inner { max-height: 92dvh; }
  .drawer[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  .drawer__head { padding-left: var(--space-4); }
  .drawer__body { padding: var(--space-4); padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); }
}
@media print { .setup, .ddm, .drawer, .kpi__cta, .why-link, .widget__head .btn { display: none !important; } .kpis { grid-template-columns: repeat(5, 1fr); } .dash-grid { grid-template-columns: 1fr; } }

/* Sites list: delete per row; confirm dialog */
.site-table .row-actions { width: 52px; text-align: right; padding-right: var(--space-3); }
.icon-btn--del:hover { color: var(--fail); background: var(--fail-soft); }
.btn--danger-solid { background: var(--fail); border-color: var(--fail); color: #fff; }
.btn--danger-solid:hover { background: var(--fail); filter: brightness(1.08); }

.confirm-dialog[open] { display: grid; gap: var(--space-4); }

/* Settings: API & integrations */
#int-body { gap: var(--space-8); }
#int-body > .stack h3.label { color: var(--ink); }
.kv { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunken); }
.kv code { overflow-wrap: anywhere; }
.secret-box { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--pass); border-left-width: 3px; border-radius: var(--radius-md); background: var(--pass-soft); }
.secret-box__row { display: flex; gap: var(--space-2); align-items: center; }
.secret-box__value { flex: 1; min-width: 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); font: 13px/20px var(--font-code); overflow-wrap: anywhere; user-select: all; }
.hook-row { align-items: flex-start !important; }
.hook-row__url { overflow-wrap: anywhere; }
.event-picks { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.event-picks legend { padding: 0; margin-bottom: 4px; }
.check-pill { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-2); padding: 6px var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; font-size: 13px; }
.check-pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-pill input { margin: 0; align-self: center; }
.deliveries summary { cursor: pointer; color: var(--accent); }
.deliveries .list { margin-top: var(--space-2); }
@media (max-width: 640px) { .secret-box__row { flex-direction: column; align-items: stretch; } .hook-row { flex-direction: column; } }

/* Developer docs */
.dev-docs h3 { font-size: 16px; line-height: 24px; font-weight: 600; margin-top: var(--space-4); font-family: var(--font-code); }
.dev-docs code { font: 13px/20px var(--font-code); background: var(--surface-sunken); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.dev-docs pre { margin: 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-sunken); overflow-x: auto; }
.dev-docs pre code { padding: 0; background: none; white-space: pre; overflow-wrap: normal; font-size: 12.5px; }

.steps-mini { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.drop-input { display: inline-flex; align-items: center; gap: 6px; }
.drop-input .input { width: 90px; }
#hook2-format { max-width: 100%; }

/* Intent and sentiment */
.pill--intent { background: var(--surface-sunken); color: var(--ink-muted); font-size: 11px; height: 20px; }
.pill--intent[data-intent="purchase"] { background: var(--pass-soft); color: var(--pass); }
.pill--intent[data-intent="comparison"] { background: var(--accent-soft); color: var(--accent); }
.pill--intent[data-intent="brand"] { background: var(--warn-soft); color: var(--warn); }
.ai-filters { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.ai-filters__group { display: grid; gap: 4px; }
.seg--wrap { flex-wrap: wrap; }
.mx__cell--dim { opacity: .28; }
.intent-sum { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-sunken); }
.intent-sum__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-2); }
.intent-sum__cell { display: grid; gap: 2px; justify-items: start; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--surface); }
.intent-sum__val { font-size: 22px; line-height: 28px; font-weight: 500; }

/* ---------- Integrations: icon tiles, header dropdown, mobile menu, footer menu ---------- */
.int-ico { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); }
.int-ico img { width: 20px; height: 20px; object-fit: contain; }
.int-ico--lg { width: 44px; height: 44px; border-radius: 11px; }
.int-ico--lg img { width: 26px; height: 26px; }

.nav { align-items: center; }
.nav-dd { position: relative; }
.nav-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-muted); cursor: pointer; user-select: none; }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary:hover, .nav-dd[open] > summary { color: var(--ink); }
.nav-dd > summary[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-dd__caret { transition: transform .15s; }
.nav-dd[open] .nav-dd__caret { transform: rotate(180deg); }
.nav-dd__panel { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); z-index: 30; width: min(820px, calc(100vw - 32px)); padding: var(--space-4); display: grid; gap: var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 48px -16px rgba(11, 23, 38, .28), 0 2px 6px rgba(11, 23, 38, .06); }
.nav-dd__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.nav-dd__group { display: grid; gap: 2px; align-content: start; }
.nav-dd__group > .label { padding: 0 var(--space-2) var(--space-2); }
.nav .nav-dd__item { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-2); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.nav .nav-dd__item:hover, .nav .nav-dd__item:focus-visible, .nav .nav-dd__item[aria-current="page"] { background: var(--accent-soft); text-decoration: none; }
.nav-dd__text { display: grid; gap: 2px; min-width: 0; }
.nav-dd__text strong { font-weight: 600; font-size: 14px; line-height: 20px; }
.nav-dd__text span { font-size: 12.5px; line-height: 17px; color: var(--ink-muted); }
.nav .nav-dd__all { justify-self: start; padding: var(--space-2); color: var(--accent); font-weight: 500; font-size: 13px; }

.nav-burger { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); cursor: pointer; }
.mnav { position: fixed; left: var(--space-4); right: var(--space-4); top: 64px; z-index: 30; max-height: calc(100dvh - 80px); overflow-y: auto; padding: 6px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 48px -16px rgba(11, 23, 38, .3); }
.mnav[hidden] { display: none !important; }
.mnav [role="menuitem"], .menu .mnav__int > summary { display: flex; align-items: center; gap: var(--space-3); padding: 11px 12px; border-radius: 6px; color: var(--ink); font: 400 15px/20px var(--font-sans); text-decoration: none; cursor: pointer; }
.mnav [role="menuitem"]:hover, .mnav [role="menuitem"]:focus-visible { background: var(--accent-soft); color: var(--accent); outline: none; text-decoration: none; }
.mnav__int > summary { list-style: none; justify-content: space-between; }
.mnav__int > summary::-webkit-details-marker { display: none; }
.mnav__int > summary svg { transition: transform .15s; }
.mnav__int[open] > summary svg { transform: rotate(180deg); }
.mnav__list { display: grid; padding: 0 0 6px 8px; margin-left: 12px; border-left: 1px solid var(--line); }
.mnav__list .int-ico { width: 28px; height: 28px; border-radius: 7px; }
.mnav .mnav__all { color: var(--accent); font-weight: 500; }
.menu .mnav__int > summary { padding: 9px 12px; font-size: 14px; }
.menu .mnav__list [role="menuitem"] { display: flex; gap: var(--space-3); align-items: center; }
@media (max-width: 860px) {
  .topbar .nav:not(#app-nav) { display: none; }
  .nav-burger { display: grid; }
  .menu__group--site { display: grid; }
}

.footer .foot-dd { position: relative; }
.foot-dd > summary { list-style: none; cursor: pointer; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 4px; }
.foot-dd > summary::-webkit-details-marker { display: none; }
.foot-dd > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(-45deg) translate(-1px, 2px); transition: transform .15s; }
.foot-dd[open] > summary::after { transform: rotate(135deg) translate(-2px, 0); }
.foot-dd > summary:hover, .foot-dd[open] > summary { color: var(--ink); }
.foot-dd__list { position: absolute; bottom: calc(100% + 10px); left: -8px; z-index: 20; min-width: 250px; padding: 6px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 -12px 32px rgba(15, 23, 42, .14); }
.footer .foot-dd__list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 4px; color: var(--ink); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.footer .foot-dd__list a:hover { background: var(--accent-soft); color: var(--accent); }
.foot-dd__list .int-ico { width: 26px; height: 26px; border-radius: 6px; }
.footer .foot-dd__list .foot-dd__all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 4px 4px; padding-top: 9px; color: var(--accent); font-weight: 500; }

/* ---------- Integrations: connection picture ---------- */
.connect { display: grid; gap: var(--space-4); justify-items: start; margin: var(--space-2) 0 var(--space-2); }
.connect__row { display: flex; align-items: center; gap: var(--space-3); }
.connect__node { display: grid; justify-items: center; gap: 6px; }
.connect__name { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.connect__tile { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); box-shadow: var(--shadow-card); }
.connect__tile img { width: 38px; height: 38px; object-fit: contain; }
.connect__tile--olab { border-color: var(--tint-blue-line); }
.connect--sm .connect__tile { width: 48px; height: 48px; border-radius: 12px; }
.connect--sm .connect__tile img { width: 26px; height: 26px; }
.connect__tile--xs { width: 38px; height: 38px; border-radius: 10px; }
.connect__line { position: relative; width: clamp(64px, 14vw, 160px); height: 2px; margin-bottom: 22px; background: repeating-linear-gradient(90deg, var(--tint-blue-line) 0 8px, transparent 8px 14px); }
.connect__line::before, .connect__line::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); transform: translateY(-50%); }
.connect__line::before { left: -5px; } .connect__line::after { right: -5px; }
.connect__dot { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: connect-flow 2.4s cubic-bezier(.5, 0, .5, 1) infinite; }
.connect__dot--2 { animation-delay: 1.2s; }
@keyframes connect-flow { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .connect__dot { animation: none; left: calc(50% - 4px); } .connect__dot--2 { display: none; } }
.connect__cap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); max-width: 640px; }
.connect__cap .pill { height: auto; min-height: 22px; padding-block: 3px; white-space: normal; }

.hub-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
.hub-strip .connect__tile--olab { width: 52px; height: 52px; border-radius: 14px; }
.hub-strip .connect__tile--olab img { width: 30px; height: 30px; }
.hub-strip__line { width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--tint-blue-line) 0 6px, transparent 6px 10px); }

/* ---------- Integrations: hub and guide pages ---------- */
.int-hub { display: grid; gap: var(--space-12); padding-block: var(--space-12); }
.int-group { display: grid; gap: var(--space-4); }
.int-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.int-card { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-card); transition: border-color .15s, transform .15s; }
.int-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.int-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); margin-bottom: var(--space-2); }
.int-card__go { margin-top: var(--space-2); color: var(--accent); font-weight: 500; }
.guide .int-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.guide-head .crumbs { margin-bottom: var(--space-2); }
.guide-meta { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); margin: var(--space-2) 0; }
.guide-meta div { display: grid; gap: 2px; }
.guide-meta dd { margin: 0; font-weight: 500; font-size: 14px; }
.guide-head .counts { margin-top: var(--space-2); }
.guide__body { display: grid; gap: var(--space-4); }
.guide__sec { display: grid; gap: var(--space-3); }
.guide__sec h2 { scroll-margin-top: 84px; }
.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: none; }
.guide-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-4); padding-bottom: var(--space-6); scroll-margin-top: 84px; }
.guide-steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.guide-steps__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 15px; border: 1px solid var(--tint-blue-line); }
.guide-steps h3 { margin: 6px 0 4px; font-family: var(--font-sans); font-size: 16px; line-height: 22px; font-weight: 600; }
.guide-steps p { color: var(--ink); }
.dev-docs .guide-steps h3 { font-family: var(--font-sans); margin-top: 6px; }
.code-box { position: relative; }
.code-box__copy { position: absolute; top: 8px; right: 8px; }
.code-box pre { padding-right: 90px; }
.chat-mock { display: grid; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.chat-mock__msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-3); font-size: 14px; line-height: 21px; }
.chat-mock__msg strong { font-weight: 600; }
.chat-mock__msg p { margin-top: 2px; }
.chat-mock__av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft); }
.chat-mock__av img { width: 22px; height: 22px; }
.table-scroll { overflow-x: auto; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 21px; }
.guide-table th { text-align: left; font: 500 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 12px; border-bottom: 1px solid var(--line-strong); }
.guide-table td { vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.guide-table td:first-child { width: 34%; }
.guide-table strong { font-weight: 600; }
.faq--guide { max-width: none; }
.faq--guide details p { color: var(--ink); }
.guide__end { display: grid; gap: var(--space-4); margin-top: var(--space-8); }
.guide__end h2 { scroll-margin-top: 84px; }

.home-int__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-3); }
.home-int__item { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.home-int__item:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.home-int__item > span:last-child { display: grid; gap: 2px; }
.home-int__item strong { font-weight: 600; }
.plan li a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

@media (max-width: 960px) { .int-cards, .guide .int-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .int-cards, .guide .int-cards--3 { grid-template-columns: minmax(0, 1fr); }
  .connect__tile { width: 60px; height: 60px; border-radius: 15px; }
  .connect__tile img { width: 32px; height: 32px; }
  .guide-table td:first-child { width: 40%; }
  .foot-dd__list { left: 0; }
}
@media print { .nav-dd, .nav-burger, .mnav, .foot-dd { display: none !important; } }

/* ---------- App: Connect menu on the site dashboard, guide links in settings ---------- */
.cm__list { min-width: 360px; padding: 6px; gap: 2px; }
.cm__title { padding: 6px 8px 4px; }
.cm__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: 6px 8px; border-radius: 6px; }
.cm__row:hover { background: var(--surface-sunken); }
.cm__row .int-ico { width: 30px; height: 30px; border-radius: 8px; }
.cm__name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm__acts { display: flex; align-items: center; gap: var(--space-3); }
.cm__acts .btn--sm { height: 28px; }
.cm__acts .btn--ghost { border-color: transparent; padding: 0 4px; }
.cm__guide { font-size: 13px; white-space: nowrap; }
.int-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.int-h__guide { font-weight: 500; }
#int-notion, #int-looker, #int-keys, #int-hooks, #int-mcp, #alerts { scroll-margin-top: 84px; }
.flash { animation: flash-bg 1.6s ease-out; border-radius: var(--radius-md); }
@keyframes flash-bg { 0%, 30% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 5px var(--accent); } 100% { box-shadow: 0 0 0 4px transparent, 0 0 0 5px transparent; } }
@media (max-width: 640px) { .cm .cm__list { position: fixed; left: var(--space-4); right: var(--space-4); top: 72px; width: auto; min-width: 0; max-height: calc(100dvh - 88px); overflow-y: auto; box-shadow: 0 24px 64px rgba(15, 23, 42, .3); } }
@media print { .cm { display: none !important; } }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: var(--space-8) var(--space-12); align-items: center; }
.guide-hero .guide-head { grid-column: 1; grid-row: 1; }
.connect-card { grid-column: 2; grid-row: 1; display: grid; justify-items: center; padding: var(--space-8) var(--space-6); box-shadow: var(--shadow-hero); }
.connect-card .connect { justify-items: center; margin: 0; }
.connect-card .connect__cap { flex-direction: column; text-align: center; gap: var(--space-2); }
@media (max-width: 860px) {
  .guide-hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding-top: var(--space-6); }
  .connect-card { grid-column: 1; grid-row: 1; padding: var(--space-6) var(--space-4); }
  .guide-hero .guide-head { grid-row: 2; padding-top: var(--space-4); }
}

/* ---------- Home: automatic intent and sentiment ---------- */
.home-intent__eyebrow { color: var(--eyebrow); }
.intent-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.intent-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.intent-card > p.small { min-height: 60px; }
.intent-list { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: grid; gap: var(--space-3); }
.intent-list li { display: grid; gap: 4px; justify-items: start; }
.intent-list li .small { line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 24px; padding: 0 8px; border-radius: var(--radius-sm); font: 500 12px/1 var(--font-sans); white-space: nowrap; background: var(--accent-soft); color: var(--accent); }
.tag--comparison { background: var(--warn-soft); color: var(--warn); }
.tag--purchase, .tag--positive { background: var(--pass-soft); color: var(--pass); }
.tag--none { background: transparent; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); }
.tag--brand, .tag--neutral { background: var(--surface-sunken); color: var(--ink-muted); }
.tag--negative { background: var(--fail-soft); color: var(--fail); }
.intent-card__foot { margin-top: auto; padding-top: var(--space-2); display: grid; gap: var(--space-2); }
.tone-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.tone-bar { display: flex; height: 10px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-sunken); }
.tone-bar span { width: var(--w); }
.tone-bar__pos { background: var(--pass-bar); } .tone-bar__neu { background: var(--line-strong); opacity: .5; } .tone-bar__neg { background: var(--fail-bar); }
.intent-example { padding: var(--space-3) var(--space-4); border-left: 3px solid var(--accent); border-radius: var(--radius-md); background: var(--accent-soft); color: var(--ink); }
@media (max-width: 960px) { .intent-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home hero without the product window; How it works: dashboard preview ---------- */
.hero--solo { grid-template-columns: minmax(0, 1fr); }
.hero--solo .hero__copy { max-width: 760px; }
.hero__more { font-weight: 500; }
.how-panel { border-top: 0; padding-top: var(--space-8); }
.live--wide .live__scene { min-height: 0; gap: var(--space-4); background: var(--canvas); }
.live--wide .live__tabs { max-width: 620px; }
.live--wide .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi--static { cursor: default; }
.kpi--static:hover { transform: none; }
.live--wide .mx__cell { display: grid; gap: 2px; align-content: center; }
.live--wide .mx__cell .tone { font-size: 10.5px; }
.live--wide .dash-grid .widget { align-content: start; }
.live--wide .callout--pass { display: block; }
@media (max-width: 960px) { .live--wide .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.live--wide .live__scene.is-off { display: none; }
.live--wide .widget > .pill { justify-self: start; }
@media (max-width: 640px) {
  .live--wide .live__tabs { margin-inline: var(--space-3); }
  .live--wide .live__tabs button { height: auto; min-height: 40px; padding: 6px 4px; white-space: normal; line-height: 1.2; font-size: 12px; }
  .live--wide .live__scene { padding: var(--space-3); }
}

/* ---------- Home hero: agency workflow ---------- */
.flow { display: grid; gap: var(--space-4); padding: var(--space-6); box-shadow: var(--shadow-hero); overflow: hidden; }
.flow__head { display: grid; gap: 4px; }
.flow__head .label { color: var(--eyebrow); }
.flow__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.flow__mini { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); text-align: center; transition: opacity .35s, transform .35s; }
.flow__mini:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: 100%; width: 12px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 6px); opacity: .55; }
.flow__mini .flow__ico { width: 32px; height: 32px; border-radius: 8px; }
.flow__s { font-size: 11.5px; line-height: 14px; font-weight: 600; overflow-wrap: anywhere; }
.flow__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.flow__ico--lg { width: 52px; height: 52px; border-radius: 13px; }
.flow__ico--lg svg { width: 24px; height: 24px; }
.flow__n { font-size: 10.5px; color: var(--ink-muted); font-weight: 500; }
.flow__area { display: grid; min-height: 196px; }
.flow__stage, .flow__slogan { grid-area: 1 / 1; }
.flow__stage { position: relative; display: none; }
.flow__big { position: absolute; inset: 0 0 auto 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-6); border: 1px solid var(--accent); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 18px 40px -22px rgba(0, 62, 115, .45); opacity: 0; transform: translateX(48px); pointer-events: none; }
.flow__big.is-in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.flow__body { display: grid; gap: 6px; min-width: 0; }
.flow__t { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 17px; line-height: 23px; }
.flow__d { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.flow__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.flow__chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-muted); font: 500 11.5px/1 var(--font-sans); white-space: nowrap; }
.flow__chip--ico svg { color: var(--accent); }
.flow__slogan { display: grid; gap: var(--space-2); align-content: center; padding: var(--space-4) var(--space-2) 0; transition: opacity .6s ease, transform .6s ease; }
.flow__claim { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.015em; background: linear-gradient(90deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-2); }
/* While playing: the row starts empty, the stage shows one large card at a time, the slogan waits. */
.flow.is-playing .flow__stage { display: block; }
.flow.is-playing .flow__mini:not(.is-on) { border-style: dashed; background: transparent; }
.flow.is-playing .flow__mini:not(.is-on) > * { opacity: 0; }
.flow.is-playing .flow__mini:not(.is-on)::after { opacity: .2; }
.flow__mini > * { transition: opacity .35s; }
.flow.is-playing .flow__slogan { opacity: 0; transform: translateY(12px); pointer-events: none; }
.flow__mini.is-on::after { animation: flow-dash 1.2s linear infinite; }
@keyframes flow-dash { to { background-position: 12px 0; } }
.flow__mini.is-pop { animation: flow-pop .5s ease; }
@keyframes flow-pop { 40% { transform: scale(1.08); border-color: var(--accent); } }
@media (max-width: 640px) {
  .flow { padding: var(--space-4); }
  .flow__row { gap: 8px; }
  .flow__mini:not(:last-child)::after { width: 8px; }
  .flow__mini .flow__ico { width: 28px; height: 28px; }
  .flow__s { font-size: 10px; }
  .flow__big { padding: var(--space-4); grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-3); }
  .flow__ico--lg { width: 44px; height: 44px; }
  .flow__t { font-size: 15px; }
  .flow__d { font-size: 13px; line-height: 19px; }
  .flow__claim { font-size: 20px; line-height: 26px; }
  .flow__area { min-height: 220px; }
}
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* Home: six check cards in one row (four audit groups + AI visibility + intent and tone) */
.cards--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); }
.cards--6 .card { padding: var(--space-4); gap: var(--space-2); }
.cards--6 .card h3 { font-size: 14.5px; line-height: 20px; }
.cards--6 .card .mini { font-size: 11.5px; }
.cards--6 .mini--code { font-size: 10.5px; line-height: 15px; padding: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cards--6 .mini--serp .mini__title { font-size: 12.5px; line-height: 17px; }
.cards--6 .card > p.small { font-size: 11.5px; line-height: 17px; }
.mini--sov .mini__own { font-weight: 600; color: var(--ink); }
.bar__fill--muted { background: var(--line-strong); }
.mini--tags { display: flex; flex-wrap: wrap; align-content: start; gap: 6px; padding: 10px; }
.mini--tags .tag { min-width: 0; }
.mini__tones { display: flex; flex-wrap: wrap; gap: 4px 10px; width: 100%; margin-top: 2px; font-size: 11px; }
@media (max-width: 1180px) and (min-width: 961px) { .cards--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; } .cards--6 .card { grid-row: auto; grid-template-rows: none; } }
/* Check cards: blue at the top right fading to white at the bottom left */
.cards .card { background: radial-gradient(140% 100% at 100% 0%, color-mix(in srgb, var(--tint-blue) 55%, var(--surface)) 0%, color-mix(in srgb, var(--tint-blue) 22%, var(--surface)) 45%, var(--surface) 85%); }
/* Pricing (CTA) cards: same blue to white gradient from the top right corner */
.plans .plan { background: radial-gradient(140% 100% at 100% 0%, color-mix(in srgb, var(--tint-ivory) 55%, var(--surface)) 0%, color-mix(in srgb, var(--tint-ivory) 22%, var(--surface)) 45%, var(--surface) 85%); }
/* Home pricing: monthly / yearly switch changes the cards in place */
.plans[data-interval="month"] [data-show="year"], .plans[data-interval="year"] [data-show="month"] { display: none; }
.plan__save { color: var(--pass); margin-top: calc(-1 * var(--space-2)); }
.pricing-box { display: grid; gap: var(--space-4); }
#pricing .period { justify-self: center; }
/* Pricing: add-ons inside the Growth and Agency cards */
.plan__addons { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px dashed var(--tint-blue-line); border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.plan__addons .label { color: var(--eyebrow); }
.plan__addons ul { gap: 6px; font-size: 13px; line-height: 19px; }
.plan__addons li::before { content: "+"; width: auto; height: auto; top: 0; background: none; color: var(--accent); font-weight: 600; }
.plans__more { justify-self: center; font-size: 14px; font-weight: 500; }
/* Billing: add-on steppers */
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; gap: var(--space-2); flex: none; }
.stepper .btn { min-width: 36px; padding-inline: 0; justify-content: center; font-size: 18px; line-height: 1; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 600; font-size: 16px; }
.addon-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding-top: var(--space-3); border-top: 1px solid var(--line); }
/* Add-ons: when question packs open (trial), checkout note, plan comparison table */
.addon-note { margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-3); border-left: 3px solid var(--warn-bar); background: var(--warn-soft); border-radius: 0 6px 6px 0; color: var(--ink); max-width: 60ch; }
.co-addons { display: grid; gap: 4px; padding: var(--space-3); border: 1px dashed var(--tint-blue-line); border-radius: var(--radius-md); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.co-addons p { margin: 0; }
.cmp-table td:first-child { color: var(--ink); }
.cmp-table th.num, .cmp-table td.num { text-align: center; }
.cmp-table .is-current { background: var(--accent-soft); }
.cmp-yes { color: var(--pass); font-weight: 600; }
/* Phones: one card per feature; each plan's value sits in its own labelled cell */
@media (max-width: 640px) {
  .cmp-table tbody tr { cursor: default; display: grid; grid-template-columns: repeat(var(--plans, 3), minmax(0, 1fr)); gap: var(--space-2); padding: var(--space-3) var(--space-4); align-items: stretch; }
  .cmp-table tbody tr:hover td { background: none; }
  .cmp-table td:first-child { grid-column: 1 / -1; grid-row: auto; font-weight: 500; font-size: 14px; }
  .cmp-table td.num { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: var(--space-2) 4px; border-radius: 8px; background: var(--surface-sunken); text-align: center; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; }
  .cmp-table tbody tr:hover td.num { background: var(--surface-sunken); }
  .cmp-table td.num::before { content: attr(data-plan); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--ink-muted); }
  .cmp-table td.num.is-current, .cmp-table tbody tr:hover td.num.is-current { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--tint-blue-line); }
  .cmp-table .cmp-yes { font-size: 13px; }
}
/* Integrations page: colour-coded groups, separators, one card per integration */
.ia-page { display: grid; gap: var(--space-8); }
.ia-group { --g: var(--warn-bar); --g-soft: var(--warn-soft); display: grid; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.ia-page > .ia-group:first-of-type, .ia-page > .callout + .ia-group { border-top: 0; padding-top: 0; }
.ia-group--reports { --g: var(--accent); --g-soft: var(--accent-soft); }
.ia-group--dev { --g: var(--pass-bar); --g-soft: var(--pass-soft); }
.ia-group__head { display: flex; align-items: center; gap: var(--space-2); }
.ia-group__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 4px var(--g-soft); }
.ia-group__title { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.ia-group__cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.ia-card { --g: var(--warn-bar); --g-soft: var(--warn-soft); display: grid; border: 1px solid var(--line); border-top: 3px solid var(--g); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm, none); min-width: 0; }
.ia-card--reports { --g: var(--accent); --g-soft: var(--accent-soft); }
.ia-card--dev { --g: var(--pass-bar); --g-soft: var(--pass-soft); }
.ia-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5, 20px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--g-soft), transparent); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.ia-card__head .int-ico { width: 38px; height: 38px; border-color: transparent; background: var(--g-soft); color: var(--g); }
.ia-card__title { display: grid; gap: 2px; min-width: 0; }
.ia-card__name { font-weight: 600; font-size: 15px; color: var(--ink); }
.ia-card__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ia-card__meta .int-h__guide { font-size: 12px; white-space: nowrap; }
.ia-card__body { padding: var(--space-4) var(--space-5, 20px) var(--space-5, 20px); gap: var(--space-3); }
.ia-card__body > p:first-child { margin: 0; }
.ia-card .int-subform { padding-top: var(--space-3); border-top: 1px dashed var(--line); }
.int-locked { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); border-radius: 8px; background: var(--surface-sunken); }
.int-locked p { margin: 0; max-width: 46ch; }
.int-hint { margin: 0; padding: var(--space-2) var(--space-3); border-left: 3px solid var(--warn-bar); background: var(--warn-soft); border-radius: 0 6px 6px 0; color: var(--ink); }
.int-moved .pref-row { border: 0; padding: 0; }
/* Dashboard panel: the card without its own frame */
.int-panel .ia-card { border: 0; border-top: 0; box-shadow: none; }
.int-panel .ia-card__head { padding: 0 0 var(--space-4); background: none; border-radius: 0; }
.int-panel .ia-card__body { padding: var(--space-4) 0 0; }
.int-panel__all { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); }
@media (max-width: 560px) { .ia-card__head { grid-template-columns: auto minmax(0, 1fr); } .ia-card__meta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; } }
.ia-card .event-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.ia-card .event-picks legend { grid-column: 1 / -1; margin-bottom: 4px; }
.ia-card .check-pill { padding: 6px 8px; }
.ia-add { border-top: 1px dashed var(--line); padding-top: var(--space-3); }
.ia-add > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); list-style: none; }
.ia-add > summary::before { content: "+ "; }
.ia-add[open] > summary::before { content: "− "; }
.ia-add > summary::-webkit-details-marker { display: none; }
.ia-add .int-subform { border-top: 0; padding-top: var(--space-3); }
.ia-card .check-pill { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 8px; row-gap: 2px; }
.ia-card .check-pill input { margin-top: 3px; }
.ia-card .check-pill .small { grid-column: 2; }

/* Trends tab */
.trends { display: grid; gap: var(--space-4); }
.trends__filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.trends__filters .seg button { height: 32px; font-size: 13px; }
.trends__custom { display: inline-flex; align-items: center; gap: var(--space-2); }
.trends__custom .input { height: 34px; width: auto; }
.trends__movers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-4); }
.trends__mover { display: grid; gap: var(--space-2); padding: var(--space-4); border-top: 3px solid var(--pass-bar); }
.trends__mover--down { border-top-color: var(--fail-bar); }
.trends__mover ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.trends__mover li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-2); font-size: 14px; }
.trends__mover li .linklike { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trends__card { display: grid; gap: var(--space-3); transition: opacity .2s; }
.trends__card.is-loading { opacity: .55; }
.trends__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.trends__head p { margin: 2px 0 0; }
.trends__chart { position: relative; width: 100%; min-height: 120px; }
.trends__chart svg { display: block; width: 100%; height: auto; }
.trends__chart svg rect[tabindex]:focus { outline: none; }
.trends__empty { display: grid; place-items: center; min-height: 160px; margin: 0; border: 1px dashed var(--line); border-radius: 8px; }
.trends__tip { position: absolute; top: 8px; z-index: 3; min-width: 170px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px -12px rgba(11, 23, 38, .35); font-size: 12px; pointer-events: none; }
.trends__tip-h { margin-bottom: 4px; color: var(--ink-muted); }
.trends__tip-row { display: grid; grid-template-columns: 14px auto minmax(0, 1fr); align-items: center; gap: 6px; line-height: 20px; }
.trends__tip-row i { width: 12px; height: 2px; border-radius: 2px; }
.trends__tip-row strong { color: var(--ink); }
.trends__tip-row span { color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trends__tip-foot { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); color: var(--ink-muted); }
.trends__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink); }
.trends__key { display: inline-flex; align-items: center; gap: 6px; }
.trends__key i, .trends__swatch { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.trends__sub { display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.trends__pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.trends__group { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; margin: 0; padding: var(--space-3); border: 1px solid var(--line); border-radius: 10px; }
.trends__group legend { padding: 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.trends__group .check-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 13px; }
.trends__group .check-pill.is-empty { opacity: .55; }
.trends__group .check-pill:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.trends__tablebar { display: flex; justify-content: flex-end; }
.trends__table td:first-child { white-space: nowrap; }
.trends__changelist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px var(--space-3); }
.trends__changelist .is-better .trends__ci { color: var(--pass); }
.trends__changelist .is-worse .trends__ci { color: var(--fail); }
.trends__changelist .is-new .trends__ci { color: var(--warn); }
@media (max-width: 640px) { .trends__export { width: 100%; } .tabs button { padding: 0 var(--space-3); height: 36px; } }
.trends .linklike { appearance: none; border: 0; background: none; padding: 0; margin: 0; height: auto; box-shadow: none; color: var(--accent); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.trends .linklike:hover { text-decoration: underline; }
.trends__filters .seg { flex-wrap: wrap; }
.trends__filters .seg button { white-space: nowrap; }
@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; width: 100%; }
  .tabs button { flex: 1 1 auto; justify-content: center; }
  .trends__filters .seg { width: 100%; }
  .trends__filters .seg button { flex: 1 1 auto; }
}
.trends__mover { align-content: start; }
