/* ConFacts website redesign: shared tokens, components and motion.
   Motion rule used everywhere: the default style is the FINAL state, so a page
   with no script still reads complete. `.js .io:not(.in)` holds the starting
   state, and `.js .io.in` plays the animation from it when the block scrolls
   into view. Load-in effects (.ar) play once on page load. */

@property --n { syntax: '<integer>'; initial-value: 0; inherits: false; }
@property --n2 { syntax: '<integer>'; initial-value: 0; inherits: false; }
/* Arial sized to Hanken Grotesk's widths and line metrics, so the text keeps
   its lines when the web font swaps in (the guide's hero moved 0.27 CLS). */
@font-face { font-family: 'Hanken Fallback'; font-weight: 100 500; src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Roboto'); size-adjust: 100.6%; ascent-override: 99.4%; descent-override: 29.8%; line-gap-override: 0%; }
@font-face { font-family: 'Hanken Fallback'; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Roboto Bold'); size-adjust: 94.6%; ascent-override: 105.7%; descent-override: 31.7%; line-gap-override: 0%; }
@counter-style cfpad3 { system: extends decimal; pad: 3 "0"; }

:root {
  --ink: #17161C;
  --ink2: #34323D;
  --muted: #5E5B68;
  --soft: #6B6876;   /* design: #8A8795, darkened to pass 4.5:1 on white, wash and lavender (handoff §11 QA) */
  --faint: #B8B5C2;
  --line: #EDEBF2;
  --line2: #E1DEE8;
  --wash: #F8F7FB;
  --wash2: #F3F1F8;
  --lav1: #F8F5FE;
  --lav2: #EFE9FC;
  --lav3: #E3D9F7;
  --dusk: #F0D9D2;
  --peach: #FCF1EA;
  --mark: #FFD9A6;
  --mark2: #FFEBCB;
  --brand: #FFC72C;
  --ok: #0C7650;
  --ok-bg: #E5F4EC;
  --ok-dot: #13A36E;
  --warn: #8F5B00;
  --warn-bg: #FFF2D3;
  --warn-dot: #F0AC1E;
  --bad: #BF2E3D;
  --bad-bg: #FCE8EA;
  --bad-dot: #E3475A;
  --idle: #DCDAE2;
  --night: #1A1823;
  --night2: #25222F;
  --night3: #2F2B3B;
  --night-line: #3A3647;
  --night-muted: #B3AFC0;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(23, 22, 28, .05), 0 12px 32px -16px rgba(23, 22, 28, .22);
  --shadow-lg: 0 2px 6px rgba(23, 22, 28, .04), 0 40px 80px -36px rgba(46, 26, 96, .38);
  --f: 'Hanken Grotesk', 'Hanken Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --dk: .6s;
  --df: .15;
  --m: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
}

/* ---------- base ---------- */
.cf { font-family: var(--f); color: var(--ink); background: #FFFFFF; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
.cf *, .cf *::before, .cf *::after { box-sizing: border-box; }
.cf img { display: block; max-width: 100%; }
.cf button:not(.btn) { font: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wrap-n { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 40px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--m); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { text-wrap: balance; }
.lead, .sub { text-wrap: pretty; }
.display { margin: 0; font-weight: 500; font-size: clamp(46px, 6.1vw, 82px); line-height: 1.0; letter-spacing: -.042em; }
.h1 { margin: 0; font-weight: 500; font-size: clamp(40px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -.038em; }
.h2 { margin: 0; font-weight: 500; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.06; letter-spacing: -.032em; }
.h3 { margin: 0; font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -.024em; }
.h4 { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.lead { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink2); }
.sub { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.small { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tiny { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .005em; }
.kicker { margin: 0; font-family: var(--m); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mk { background-image: linear-gradient(180deg, transparent 13%, var(--mark) 13%, var(--mark) 93%, transparent 93%); background-repeat: no-repeat; background-size: 100% 100%; padding: 0 .06em; margin: 0 -.03em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mk.draw { animation: cf-mk 1.1s var(--ease) .55s both; }
.mk-soft { background-image: linear-gradient(180deg, transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); }

/* ---------- links + buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #FFFFFF; font: 500 15px/1 var(--f); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(23, 22, 28, .55); color: #FFFFFF; }
.btn:active { transform: scale(.97); }
/* A button drawn inside an illustration is a <span>: it shows the control, so it
   must not answer the pointer like one (UI audit 2026-11-23, batch 3). */
span.btn { cursor: default; }
span.btn:hover, span.btn:active { transform: none; box-shadow: none; }
span.btn:hover .arr { transform: none; }
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr, .link:hover .arr { transform: translateX(3px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-ghost { background: #FFFFFF; color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { color: var(--ink); box-shadow: 0 8px 18px -10px rgba(23, 22, 28, .3); }
.btn-light { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.btn-light:hover { color: var(--ink); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .6); }
.btn-night { background: transparent; color: #FFFFFF; border-color: var(--night-line); }
.btn-night:hover { color: #FFFFFF; background: var(--night3); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--line2); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { color: var(--ink); border-color: var(--ink); }
.link .arr { display: inline-block; transition: transform .3s var(--ease); }
.link-night { color: #FFFFFF; border-color: var(--night-line); }
.link-night:hover { color: #FFFFFF; border-color: #FFFFFF; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 34px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav-links a { color: var(--ink2); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a.on { font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-signin { color: var(--ink2); text-decoration: none; font-size: 14.5px; padding: 0 6px; }
/* Hover that shows (UI audit 2026-11-23, batch 6): ink2 to ink was too
   close to see, and Sign in and the FAQ rows had none. The highlighter
   underline is the articles' link style. */
@media (hover: hover) {
  .nav-links a:hover, .nav-signin:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark);
    text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .faq summary:hover .pm { border-color: var(--ink); background: var(--wash2); }
}

/* ---------- surfaces ---------- */
.sec { padding: 120px 0; }
.sec-tight { padding: 88px 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.card { background: #FFFFFF; border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); }
.card-flat { background: #FFFFFF; border: 1px solid var(--line2); border-radius: 16px; }
.wash { background: var(--wash); }
.hero { padding: 14px 14px 0; }
.hero-card { position: relative; overflow: hidden; border-radius: 32px; background:
  radial-gradient(56% 34% at 50% 22%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)),
  linear-gradient(180deg, var(--lav1) 0%, var(--lav2) 38%, var(--lav3) 70%, var(--dusk) 100%); }
.hero-card::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 196, 160, .55), rgba(255, 196, 160, 0)); animation: cf-drift 14s ease-in-out 2 alternate; will-change: transform; pointer-events: none; }
.hero-in { position: relative; z-index: 1; text-align: center; padding-top: 96px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-in .lead { max-width: 640px; }
.hero-shot { position: relative; z-index: 1; padding-bottom: 72px; }
/* The 404 page (frontend/404.html). */
.nf-in { padding-top: 88px; padding-bottom: 72px; }
.nf-search .btn { flex-shrink: 0; }
.nf-reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.nf-read { display: flex; flex-direction: column; gap: 8px; padding: 22px; color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.35; }
.nf-read:hover { color: var(--ink); box-shadow: 0 2px 6px rgba(23, 22, 28, .05), 0 20px 40px -24px rgba(46, 26, 96, .35); }
.night { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 88% 108%, rgba(255, 168, 120, .20), rgba(255, 168, 120, 0) 70%), radial-gradient(40% 50% at 8% -10%, rgba(150, 120, 255, .16), rgba(150, 120, 255, 0) 70%), var(--night); color: #FFFFFF; border-radius: 32px; margin: 0 14px; }
.night .sub, .night .small, .night .eyebrow { color: var(--night-muted); }
.night-card { background: var(--night2); border: 1px solid var(--night-line); border-radius: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: #FFFFFF; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.chip-night { border-color: var(--night-line); background: var(--night2); color: #E7E4EF; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; }
.photo { border-radius: 24px; overflow: hidden; background: var(--wash2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- status pieces ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--idle); flex-shrink: 0; }
.dot.ok { background: var(--ok-dot); } .dot.bad { background: var(--bad-dot); } .dot.warn { background: var(--warn-dot); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--wash2); color: var(--ink2); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill .dot { width: 6px; height: 6px; }
.sq { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--idle); border: 1px solid #C9C6D1; flex-shrink: 0; }
.sq.ok { background: var(--ok-dot); border-color: var(--ok); }
.sq.bad { background: var(--bad-dot); border-color: var(--bad); }
.sq.warn { background: var(--warn-dot); border-color: #B67F06; }
.srcchip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--wash2); border: 1px solid var(--line2); font-size: 12px; color: var(--ink2); font-family: var(--m); white-space: nowrap; }
.srcchip svg { flex-shrink: 0; }

/* ---------- mini product UI ---------- */
.win { background: #FFFFFF; border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; text-align: left; }
.win-top { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.win-crumb { font-size: 13px; color: var(--muted); }
.win-crumb b { color: var(--ink); font-weight: 600; }
.win-search { display: flex; align-items: center; gap: 8px; height: 32px; width: 240px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 9px; color: var(--soft); font-size: 12.5px; margin-left: auto; }
.kbd { margin-left: auto; font-family: var(--m); font-size: 11px; color: var(--soft); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 5px; }
.win-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.win-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; background: #FCFBFE; }
.side-h { font-size: 11.5px; color: var(--soft); padding: 8px 10px 6px; }
.side-i { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--ink2); font-size: 13px; }
.side-i.on { background: #FFFFFF; box-shadow: 0 0 0 1px var(--line2); color: var(--ink); font-weight: 600; }
.side-i .ct { margin-left: auto; font-size: 11.5px; color: var(--soft); }
.win-main { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tab { padding: 0 0 10px; font-size: 13px; color: var(--muted); border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 2px 18px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi-l { font-size: 12.5px; color: var(--muted); }
.kpi-v { font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.kpi-s { font-size: 12px; color: var(--soft); }
.panel { border: 1px solid var(--line2); border-radius: 14px; background: #FFFFFF; min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.panel-t { font-size: 13.5px; font-weight: 600; }
.panel-s { font-size: 12px; color: var(--soft); }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .r-t { font-weight: 600; color: var(--ink); }
.row .r-s { font-size: 12px; color: var(--muted); }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* score ring */
.ring { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { fill: none; stroke: var(--line); stroke-width: 9; }
.ring .arc { fill: none; stroke: var(--bad-dot); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--off, 69); }
.ring.ok .arc { stroke: var(--ok-dot); } .ring.warn .arc { stroke: var(--warn-dot); }
.ring-v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring-n { font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.ring-d { font-size: 11px; color: var(--soft); margin-top: 3px; }

/* search bar */
.search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; height: 64px; padding: 0 8px 0 20px; background: #FFFFFF; border: 1px solid var(--line2); border-radius: 999px; box-shadow: 0 1px 2px rgba(23, 22, 28, .04), 0 18px 40px -22px rgba(46, 26, 96, .45); transition: box-shadow .3s var(--ease), border-color .3s; }
/* A focused search shows a 2px ink edge: an 18% lavender ring alone was
   faint on the lavender hero (UI audit 2026-11-23, batch 6). */
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px rgba(150, 128, 220, .25), 0 18px 40px -22px rgba(46, 26, 96, .45); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 400 17px var(--f); color: var(--ink); }
.search input::placeholder { color: var(--soft); }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }

/* check rows (status sequence) */
.chk { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.chk:first-child { border-top: 0; }
.chk-n { flex: 1; min-width: 0; color: var(--ink); }
.chk-n small { display: block; font-size: 11.5px; color: var(--soft); }
.chk-st { display: grid; justify-items: end; font-size: 12.5px; }
.chk-st > span { grid-area: 1 / 1; white-space: nowrap; }
.chk-st .s0 { color: var(--soft); opacity: 0; }
.chk-st .s1 { color: var(--warn); opacity: 0; display: inline-flex; align-items: center; gap: 6px; }
.chk-st .s2 { font-weight: 600; }
.chk.ok .s2 { color: var(--ok); } .chk.bad .s2 { color: var(--bad); } .chk.warn .s2 { color: var(--warn); }
.chk .sq { background: var(--idle); border-color: #C9C6D1; }
.chk.ok .sq { background: var(--ok-dot); border-color: var(--ok); }
.chk.bad .sq { background: var(--bad-dot); border-color: var(--bad); }
.chk.warn .sq { background: var(--warn-dot); border-color: #B67F06; }
.spin { width: 11px; height: 11px; border-radius: 999px; border: 2px solid rgba(143, 91, 0, .25); border-top-color: var(--warn); animation: cf-spin .8s linear infinite; }

/* count-up */
.cnt { --n: var(--to); counter-reset: n var(--n); }
.cnt::before { content: counter(n); }
.cnt2 { --n2: var(--to2); counter-reset: n2 var(--n2); }
.cnt2::before { content: counter(n2); }
.cnt3 { --n2: var(--to2); counter-reset: n2 var(--n2); }
.cnt3::before { content: counter(n2, cfpad3); }

/* typing */
.type { display: inline-block; white-space: nowrap; clip-path: inset(0 0 0 0); }
.caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--ink); margin-left: 2px; vertical-align: -0.18em; animation: cf-blink 1s steps(1) infinite; }

/* track (timeline) */
.track { position: relative; height: 2px; background: var(--line2); border-radius: 2px; }
.track-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(var(--fill, 1)); border-radius: 2px; }
.node { width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); box-shadow: 0 0 0 4px rgba(23, 22, 28, .06); }

/* bars */
.bar { height: 8px; border-radius: 99px; background: var(--wash2); overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--w, 50%); border-radius: 99px; background: var(--ink); transform-origin: left center; }

/* strike */
/* A background, cloned onto every line, so a claim that wraps is struck
   through on each line; one bar between the two lines read as an
   underline (UI audit 2026-11-23, batch 6b). */
.strike { display: inline; padding: 0 2px; margin: 0 -2px; background: linear-gradient(var(--bad-dot), var(--bad-dot)) no-repeat 0 56% / 100% 2.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@keyframes cf-strike { from { background-size: 0% 2.5px; } to { background-size: 100% 2.5px; } }

/* accordion (FAQ) */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; font-size: 16.5px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .35s var(--ease), background .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--wash2); }
.faq .ans { padding: 0 48px 22px 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.faq details[open] .ans { animation: cf-up .5s var(--ease) backwards; }

/* footer */
.foot { background: var(--night); color: #FFFFFF; border-radius: 32px 32px 0 0; margin: 0 14px; overflow: hidden; }
.foot-links a { color: #D9D6E2; text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: #FFFFFF; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.wordmark { display: flex; justify-content: center; font-weight: 500; font-size: clamp(56px, 21vw, 330px); letter-spacing: -.065em; line-height: .78; color: #FFFFFF; padding-top: 30px; white-space: nowrap; }
.wordmark span { display: inline-block; }

/* ---------- hover lifts ---------- */
.lift { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(23, 22, 28, .05), 0 26px 50px -24px rgba(46, 26, 96, .4); }

/* ---------- loops (always on) ---------- */
.live { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--ok-dot); }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--ok-dot); opacity: 0; animation: cf-ping 1.8s var(--ease) infinite; }
.beam { position: absolute; left: 0; right: 0; height: 46px; top: -46px; background: linear-gradient(180deg, rgba(150, 128, 220, 0), rgba(150, 128, 220, .22) 70%, rgba(124, 99, 214, .7) 100%); animation: cf-beam 2.6s ease-in-out infinite; pointer-events: none; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; gap: 12px; padding-right: 12px; flex-shrink: 0; animation: cf-marquee 38s linear infinite; }
.float { animation: cf-float 6s ease-in-out infinite; }

/* ---------- motion: load-in ---------- */
/* Every delay runs through one curve: real time up to --dk, then --df of the
   rest. Order is kept and long chains end within about 1.2s (0.7s on a phone)
   instead of 4 to 6s, so no panel sits blank while a reader scrolls past.
   The reveals fill "backwards": once done they carry no transform or filter. */
.ar { animation: cf-ar 1s var(--ease) calc(min(var(--d, 0s), var(--dk)) + max(var(--d, 0s) - var(--dk), 0s) * var(--df)) backwards; }

/* ---------- motion: in-view (state-driven .in) ---------- */
.js .io:not(.in) .a-up, .js .io:not(.in) .a-fade, .js .io:not(.in) .a-pop, .js .io:not(.in) .a-left, .js .io:not(.in) .a-right { opacity: 0; }
.js .io.in .a-up { animation: cf-up .95s var(--ease) calc(min(var(--d, 0s), var(--dk)) + max(var(--d, 0s) - var(--dk), 0s) * var(--df)) backwards; }
.js .io.in .a-fade { animation: cf-fade 1s ease calc(min(var(--d, 0s), var(--dk)) + max(var(--d, 0s) - var(--dk), 0s) * var(--df)) backwards; }
.js .io.in .a-pop { animation: cf-pop .7s var(--ease) calc(min(var(--d, 0s), var(--dk)) + max(var(--d, 0s) - var(--dk), 0s) * var(--df)) backwards; }
.js .io.in .a-left { animation: cf-left .95s var(--ease) calc(min(var(--d, 0s), var(--dk)) + max(var(--d, 0s) - var(--dk), 0s) * var(--df)) backwards; }
.js .io.in .a-right { animation: cf-right .95s var(--ease) calc(min(var(--d, 0s), var(--dk)) + max(var(--d, 0s) - var(--dk), 0s) * var(--df)) backwards; }

.js .io:not(.in) .mk { background-size: 0% 100%; }
.js .io.in .mk { animation: cf-mk 1.1s var(--ease) calc(min(var(--d, .3s), var(--dk)) + max(var(--d, .3s) - var(--dk), 0s) * var(--df)) both; }

/* status sequence: starts at (--base + i * --step) */
.chks { --base: .3s; --step: .55s; }
.js .io:not(.in) .chk .s0 { opacity: 1; }
.js .io:not(.in) .chk .s2 { opacity: 0; }
.js .io:not(.in) .chk .sq { background: var(--idle); border-color: #C9C6D1; }
.js .io.in .chk .s0 { animation: cf-out .25s ease calc(min(var(--base) + var(--i, 0) * var(--step), var(--dk)) + max(var(--base) + var(--i, 0) * var(--step) - var(--dk), 0s) * var(--df)) both; }
.js .io.in .chk .s1 { animation: cf-blip .75s ease calc(calc(min(var(--base) + var(--i, 0) * var(--step), var(--dk)) + max(var(--base) + var(--i, 0) * var(--step) - var(--dk), 0s) * var(--df)) + .25s) both; }
.js .io.in .chk .s2 { animation: cf-in .4s var(--ease) calc(calc(min(var(--base) + var(--i, 0) * var(--step), var(--dk)) + max(var(--base) + var(--i, 0) * var(--step) - var(--dk), 0s) * var(--df)) + .95s) both; }
.js .io.in .chk.ok .sq { animation: cf-sq-ok .95s ease calc(min(var(--base) + var(--i, 0) * var(--step), var(--dk)) + max(var(--base) + var(--i, 0) * var(--step) - var(--dk), 0s) * var(--df)) both; }
.js .io.in .chk.bad .sq { animation: cf-sq-bad .95s ease calc(min(var(--base) + var(--i, 0) * var(--step), var(--dk)) + max(var(--base) + var(--i, 0) * var(--step) - var(--dk), 0s) * var(--df)) both; }
.js .io.in .chk.warn .sq { animation: cf-sq-warn .95s ease calc(min(var(--base) + var(--i, 0) * var(--step), var(--dk)) + max(var(--base) + var(--i, 0) * var(--step) - var(--dk), 0s) * var(--df)) both; }
.js .io.in .chk-hl { animation: cf-hl 1.2s ease calc(min(var(--base) + var(--i, 0) * var(--step), var(--dk)) + max(var(--base) + var(--i, 0) * var(--step) - var(--dk), 0s) * var(--df)) both; }

.js .io:not(.in) .cnt { --n: 0; }
.js .io.in .cnt { animation: cf-count var(--dur, 1.8s) var(--ease) calc(min(var(--d, .2s), var(--dk)) + max(var(--d, .2s) - var(--dk), 0s) * var(--df)) both; }
.js .io:not(.in) .cnt2, .js .io:not(.in) .cnt3 { --n2: 0; }
.js .io.in .cnt2, .js .io.in .cnt3 { animation: cf-count2 var(--dur, 1.8s) var(--ease) calc(min(var(--d, .2s), var(--dk)) + max(var(--d, .2s) - var(--dk), 0s) * var(--df)) both; }

.js .io:not(.in) .ring .arc { stroke-dashoffset: 100; }
.js .io.in .ring .arc { animation: cf-ring 1.8s var(--ease) calc(min(var(--d, .25s), var(--dk)) + max(var(--d, .25s) - var(--dk), 0s) * var(--df)) both; }

.js .io:not(.in) .type { clip-path: inset(0 100% 0 0); }
.js .io.in .type { animation: cf-type var(--tdur, 1.4s) steps(var(--steps, 18)) calc(min(var(--d, .3s), var(--dk)) + max(var(--d, .3s) - var(--dk), 0s) * var(--df)) both; }

.js .io:not(.in) .track-fill { transform: scaleX(0); }
.js .io.in .track-fill { animation: cf-track var(--dur, 2.4s) var(--ease) calc(min(var(--d, .3s), var(--dk)) + max(var(--d, .3s) - var(--dk), 0s) * var(--df)) both; }
.js .io:not(.in) .node { background: #FFFFFF; border-color: var(--faint); box-shadow: none; }
.js .io.in .node { animation: cf-node .5s ease calc(min(calc(min(var(--d, .3s), var(--dk)) + max(var(--d, .3s) - var(--dk), 0s) * var(--df)) + var(--i, 0) * .5s, var(--dk)) + max(calc(min(var(--d, .3s), var(--dk)) + max(var(--d, .3s) - var(--dk), 0s) * var(--df)) + var(--i, 0) * .5s - var(--dk), 0s) * var(--df)) both; }

.js .io:not(.in) .bar > i { transform: scaleX(0); }
.js .io.in .bar > i { animation: cf-track 1.4s var(--ease) calc(min(var(--d, .2s), var(--dk)) + max(var(--d, .2s) - var(--dk), 0s) * var(--df)) both; }

.js .io:not(.in) .strike { background-size: 0% 2.5px; }
.js .io.in .strike { animation: cf-strike .6s var(--ease) calc(min(var(--d, .4s), var(--dk)) + max(var(--d, .4s) - var(--dk), 0s) * var(--df)) both; }

.js .io:not(.in) .wordmark span { opacity: 0; transform: translateY(45%); }
.js .io.in .wordmark span { animation: cf-rise 1.2s var(--ease) calc(var(--i, 0) * .06s) both; }

.js .io.in .press { animation: cf-press .5s ease calc(min(var(--d, 2s), var(--dk)) + max(var(--d, 2s) - var(--dk), 0s) * var(--df)) both; }

/* sticky story */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.story-steps { display: flex; flex-direction: column; }
.story-step { min-height: 520px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 40px 0; border-top: 1px solid var(--line); transition: opacity .5s; }
.story-step:first-child { border-top: 0; }
.story-step .idx { font-family: var(--m); font-size: 12.5px; color: var(--soft); }
.story-step.dim { opacity: .38; }
.story-stage { position: sticky; top: 120px; height: 560px; }
.story-card { position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .55s var(--ease), transform .7s var(--ease); pointer-events: none; }
.story-card.on { opacity: 1; transform: none; pointer-events: auto; }
.story-card.on .rec { animation: cf-up .7s var(--ease) .35s backwards; }
.story-card.on .strike { animation: cf-strike .55s var(--ease) .2s both; }
.story-dots { display: flex; gap: 6px; }
.story-dots i { width: 22px; height: 3px; border-radius: 3px; background: var(--line2); transition: background .4s, width .4s var(--ease); }
.story-dots i.on { background: var(--ink); width: 36px; }

/* scroll-driven extras (Chromium, Safari 26+): progress bars, parallax */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 80; background: var(--ink); transform-origin: left center; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: cf-track linear both; animation-timeline: scroll(root); }
  .parallax { animation: cf-par linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .shrink-in { animation: cf-shrink linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
}

/* ---------- keyframes ---------- */
@keyframes cf-mk { from { background-size: 0% 100%; } }
@keyframes cf-ar { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes cf-up { from { opacity: 0; transform: translateY(26px); filter: blur(4px); } }
@keyframes cf-fade { from { opacity: 0; } }
@keyframes cf-pop { from { opacity: 0; transform: scale(.86); } }
@keyframes cf-left { from { opacity: 0; transform: translateX(-36px); } }
@keyframes cf-right { from { opacity: 0; transform: translateX(36px); } }
@keyframes cf-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cf-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes cf-blip { 0% { opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cf-sq-ok { 0% { background: var(--idle); border-color: #C9C6D1; } 40% { background: var(--warn-dot); border-color: #B67F06; } 100% { background: var(--ok-dot); border-color: var(--ok); } }
@keyframes cf-sq-bad { 0% { background: var(--idle); border-color: #C9C6D1; } 45% { background: var(--warn-dot); border-color: #B67F06; } 100% { background: var(--bad-dot); border-color: var(--bad); } }
@keyframes cf-sq-warn { 0% { background: var(--idle); border-color: #C9C6D1; } 45% { background: #F5D27A; border-color: #B67F06; } 100% { background: var(--warn-dot); border-color: #B67F06; } }
@keyframes cf-hl { 0% { background: transparent; } 30% { background: #FFF6E2; } 100% { background: transparent; } }
@keyframes cf-count { from { --n: 0; } }
@keyframes cf-count2 { from { --n2: 0; } }
@keyframes cf-ring { from { stroke-dashoffset: 100; } }
@keyframes cf-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cf-track { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cf-node { from { background: #FFFFFF; border-color: var(--faint); box-shadow: none; } }
@keyframes cf-rise { from { opacity: 0; transform: translateY(45%); } }
@keyframes cf-press { 0% { transform: scale(1); } 40% { transform: scale(.94); box-shadow: 0 0 0 6px rgba(23, 22, 28, .08); } 100% { transform: scale(1); } }
@keyframes cf-spin { to { transform: rotate(360deg); } }
/* Every press shows, even before anything answers: .btn shrinks (above);
   chips, text buttons and links acting as buttons dim while held. */
.cf button:not(.btn):not(:disabled):active, .cf [role="button"]:not(.btn):active, .cf a.link:active { opacity: .7; }
/* A press waiting on the server (site.js, "Every click answers"). */
.is-busy { cursor: progress; }
.cf-busy { display: inline-block; flex-shrink: 0; width: 12px; height: 12px; margin-left: 8px; vertical-align: -2px; border-radius: 999px;
  border: 2px solid currentColor; border-right-color: transparent; opacity: .8; animation: cf-spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .cf-busy { animation: none; border-right-color: currentColor; opacity: .5; } }
@keyframes cf-blink { 50% { opacity: 0; } }
@keyframes cf-ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes cf-beam { 0% { top: -46px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes cf-marquee { to { transform: translateX(-100%); } }
@keyframes cf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes cf-drift { from { transform: translateX(-6%) scale(1); } to { transform: translateX(6%) scale(1.08); } }
@keyframes cf-par { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
@keyframes cf-shrink { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- living loops (always on, decorative) ---------- */
.flow { stroke-dasharray: 3 7; animation: cf-flow 1.1s linear infinite; }
.loop { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.loop > i { display: block; height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #8E7BE0, #FFC4A0); transform-origin: left center; animation: cf-loop var(--ld, 3.2s) var(--ease) var(--d, 0s) infinite; }
.pulse { animation: cf-pulse 1.6s ease-in-out infinite; }
.zoom { overflow: hidden; }
.zoom .zi { transition: transform .9s var(--ease); }
.zoom:hover .zi, a:hover .zoom .zi { transform: scale(1.045); }
@keyframes cf-flow { to { stroke-dashoffset: -20; } }
@keyframes cf-loop { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes cf-pulse { 50% { opacity: .35; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The sticky story, stacked: each card sits right under its own step, all
     shown, none dimmed. The steps and the stage dissolve into one column
     (display: contents) and order interleaves them. Before (UI audit
     2026-11-23): the cards were stacked in one 520px stage that only ever
     showed card 4, under three greyed-out steps. */
  .story { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .story-steps, .story-stage { display: contents; }
  .story-step { min-height: 0; padding: 36px 0 18px; }
  .story-step.dim { opacity: 1; }
  .story-step[data-step="1"] { order: 1; } .story-card[data-card="1"] { order: 2; }
  .story-step[data-step="2"] { order: 3; } .story-card[data-card="2"] { order: 4; }
  .story-step[data-step="3"] { order: 5; } .story-card[data-card="3"] { order: 6; }
  .story-step[data-step="4"] { order: 7; } .story-card[data-card="4"] { order: 8; }
  .story-card { position: static; inset: auto; opacity: 1; transform: none; pointer-events: auto; transition: none; }
  .story-dots { display: none; }
}
@media (max-width: 860px) {
  .wrap, .wrap-n { padding: 0 20px; }
  .nav-links, .nav-signin { display: none; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .sec { padding: 64px 0; }
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .win-side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .kpi:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-in { padding-top: 64px; }
  .search { height: 58px; }
  .win-search { display: none; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .search .btn { padding: 0 14px; }
}

/* ---------- phone utilities for inline layouts ---------- */
@media (max-width: 860px) {
  .m-stack { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
  .m-two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .m-wrap { flex-wrap: wrap !important; }
  .m-col { flex-direction: column !important; align-items: stretch !important; }
  .m-hide { display: none !important; }
  .m-scroll { overflow-x: auto; }
  /* Inline desktop paddings (120/110/104px) left 200-400px blank bands on
     phones (UI audit 2026-11-23); these cap them. */
  .m-pt { padding-top: 56px !important; }
  .m-pb { padding-bottom: 56px !important; }
  .m-py { padding-top: 56px !important; padding-bottom: 56px !important; }
  .m-night { padding: 56px 0 0 !important; }
  .m-unstick { position: static !important; }
  :root { --dk: .3s; --df: .1; }
  /* Tap targets of 44px (UI audit 2026-11-23, batch 6). A link's underline
     is its bottom border, so its target grows with an invisible ::after
     instead of moving the line away from the words. */
  .link, .logo, .foot-links a { position: relative; }
  .link { z-index: 1; }   /* its target above the block that follows it */
  .link::after { content: ""; position: absolute; inset: -11px -4px; }   /* measured inside its 1px underline */
  .logo::after { content: ""; position: absolute; inset: -9px -6px; }
  .foot-links { row-gap: 24px; }
  /* The hero chip wraps instead of overflowing its card at 320px. */
  .hero-in > .chip { max-width: 100%; height: auto; min-height: 32px; white-space: normal; padding-top: 5px; padding-bottom: 5px; line-height: 1.35; }
  .chip .live { margin-right: 2px; }
  /* A header over a dark section stays white, not a grey band. */
  .nav { background: rgba(255, 255, 255, .94); }
  /* Nothing under 12px on a phone (UI audit 2026-11-23, batch 6). Several of
     these sizes are inline in the page, hence !important. */
  .hr-tag, .ring-d, .fs-q-l, .mm-s, .chk-n small, .diff, .pr-chip .cl, .steps .n, .hr-kpis span,
  .hr-score .kicker, .rpt-score-txt .kicker, .rpt-kpi .tiny, .rp-nav > a .ct, .mono-lbl, .rpt-ev-note,
  .cx .cr-hc .s small, .cx .cr-k span, .sugg > span, .wi-stats span:not(.cnt):not(.sr) { font-size: 12px !important; }
  .foot-links a::after { content: ""; position: absolute; inset: -11px -8px; }
  a.btn, button.btn { min-height: 44px; }
  .flow-exit { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .logo::after { inset: -10px -6px; }
  .nf-in { padding-top: 56px; padding-bottom: 64px; }
  .nf-reads { grid-template-columns: 1fr; }
  .nav-cta { min-height: 44px; }
  .ar, .js .io.in .a-up, .js .io.in .a-fade, .js .io.in .a-pop, .js .io.in .a-left, .js .io.in .a-right { animation-duration: .6s; }
  /* No blur on phones: the same entrances, without the filter pass. */
  @keyframes cf-ar { from { opacity: 0; transform: translateY(14px); } }
  @keyframes cf-up { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- reduced motion: everything shows in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  .cf *, .cf *::before, .cf *::after { animation: none !important; transition: none !important; }
  .js .io:not(.in) .a-up, .js .io:not(.in) .a-fade, .js .io:not(.in) .a-pop, .js .io:not(.in) .a-left, .js .io:not(.in) .a-right { opacity: 1; }
  .js .io:not(.in) .chk .s0 { opacity: 0; } .js .io:not(.in) .chk .s2 { opacity: 1; }
  .js .io:not(.in) .cnt { --n: var(--to); } .js .io:not(.in) .cnt2, .js .io:not(.in) .cnt3 { --n2: var(--to2); }
  .js .io:not(.in) .ring .arc { stroke-dashoffset: var(--off, 69); }
  .js .io:not(.in) .type { clip-path: none; }
  .js .io:not(.in) .track-fill, .js .io:not(.in) .bar > i, .js .io:not(.in) .strike { background-size: 100% 2.5px; }
  .js .io:not(.in) .wordmark span { opacity: 1; transform: none; }
  .js .io:not(.in) .mk { background-size: 100% 100%; }
  .story-card { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Site additions (2026-11 redesign build). Everything above this line is the
   design's own cf.css, ported as-is. Below: what the real site needs on top —
   the body hook, visible focus, the AI accent, the shared header and footer
   as the served pages use them, and the signed-in header pieces.
   ═══════════════════════════════════════════════════════════════════════════ */
body.cf { margin: 0; }
/* Zero-specificity link colour, so every component's own link colour wins
   (the footer's light links on dark, the buttons' white). */
:where(.cf) a { color: var(--ink); }
:where(.cf) a:hover { color: var(--ink2); }
.cf button.btn { font: 500 15px/1 var(--f); }
.cf button.btn-sm { font-size: 14px; }
.cf button.btn-lg { font-size: 16px; }
.cf .btn[disabled], .cf .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.hidden { display: none !important; }

/* Visible focus on every control: the search bar's own ring, everywhere. */
.cf a:focus-visible, .cf button:focus-visible, .cf summary:focus-visible,
.cf [role="button"]:focus-visible, .cf [tabindex]:focus-visible, .cf input:focus-visible,
.cf select:focus-visible, .cf textarea:focus-visible {
  outline: none; box-shadow: 0 0 0 4px rgba(150, 128, 220, .35); border-radius: 8px;
}
.cf .btn:focus-visible { box-shadow: 0 0 0 4px rgba(150, 128, 220, .45); border-radius: 999px; }
.cf .search input:focus-visible { box-shadow: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #FFFFFF !important; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── AI accent: only for what ConFacts AI writes ── */
.ai-in { display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px 1px 8px; margin-right: 2px; border-radius: 999px; background: linear-gradient(135deg, #8E7BE0, #5B45C9); color: #FFFFFF; font-weight: 600; font-size: .92em; vertical-align: .06em; box-shadow: 0 4px 12px rgba(91, 69, 201, .25); white-space: nowrap; }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: #EFE9FC; border: 1px solid #E1DAF7; color: #5B45C9; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ai-dot { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #8E7BE0, #5B45C9); color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 16px rgba(91, 69, 201, .28); }
.ai-dot svg { width: 17px; height: 17px; }
.lead-b { font-weight: 600; color: var(--ink); }
.ilink { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ── The header as the served pages use it ──
   .site-nav / .nav-link / [data-auth] are the hooks app.js and auth.js read;
   .nav-links / .nav-cta are the design's layout. */
.nav .site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-auth:empty { display: none; }
.nav-mine { color: var(--ink2); text-decoration: none; font-size: 14.5px; padding: 0 6px; white-space: nowrap; }
.nav-credit { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--lav2); border: 1px solid #E1DAF7; color: #4A3AA8; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-credit:hover { color: #4A3AA8; background: var(--lav3); }
/* The account chip auth.js draws for a signed-in reader. */
.auth-chip { position: relative; }
.auth-avatar { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line2); background: var(--ink); color: #FFFFFF; font: 600 13px/1 var(--f); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; overflow: hidden; }
.auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.auth-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; min-width: 240px; padding: 8px; background: #FFFFFF; border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }
.auth-menu a, .auth-menu button { display: flex; align-items: center; height: 36px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent; color: var(--ink2); font: 400 14px var(--f); text-decoration: none; text-align: left; cursor: pointer; }
.auth-menu a:hover, .auth-menu button:hover { background: var(--wash); color: var(--ink); }
.auth-menu-id { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.auth-menu-id b { display: block; color: var(--ink); font-size: 14px; }
@media (max-width: 860px) {
  .nav-in { gap: 12px; }
  .nav-mine, .nav-credit { display: none; }
  .nav-cta .btn-sm { padding: 0 14px; font-size: 13.5px; }
}
/* The menu (site.js menu()): a button below 860px; the existing links as a
   sheet under the header while it is open. "My reports" is the sheet's own
   (it is in the account slot on wide screens). */
.nav-menu-btn, .nav-mine-m { display: none; }
@media (max-width: 860px) {
  .nav-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
  .nav-menu-btn:hover { background: var(--wash); }
  .nav-menu-btn:focus-visible { outline: 2px solid #8E7BE0; outline-offset: 1px; }
  .nav-menu-btn path { transition: transform .25s var(--ease), opacity .2s; transform-origin: 12px 12px; }
  .nav-open .nav-menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
  .nav-open .nav-menu-btn .l2 { opacity: 0; }
  .nav-open .nav-menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }
  .nav-open .nav .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px 20px 20px; background: #FFFFFF; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(23, 22, 28, .35);
    animation: cf-menu .22s var(--ease) both;
  }
  .nav-open .nav .site-nav a { display: flex; align-items: center; min-height: 52px; font-size: 17px; color: var(--ink); border-top: 1px solid var(--line); }
  .nav-open .nav .site-nav a:first-child { border-top: 0; }
  .nav-open .nav .site-nav .nav-mine-m { display: flex; }
}
@keyframes cf-menu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav-open .nav .site-nav { animation: none; } .nav-menu-btn path { transition: none; } }
/* The brand name stays down to 340px (it disappeared at 380 and below on the
   most common Android width); the button gets smaller instead. */
@media (max-width: 380px) {
  .nav-cta .btn-sm { padding: 0 12px; font-size: 12.5px; }
  .nav-in { gap: 8px; }
}
@media (max-width: 340px) {
  .logo span { display: none; }
}

/* ── The dark CTA footer, as every page closes ── */
.foot-in { padding-top: 100px; display: flex; flex-direction: column; gap: 22px; }
.foot-acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.foot-base { margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-legal { color: #8F8B9C; max-width: 860px; }
.foot .h1 { color: #FFFFFF; max-width: 760px; }
.foot .sub { color: var(--night-muted); max-width: 520px; }
@media (max-width: 860px) {
  .foot { margin: 0 8px; border-radius: 24px 24px 0 0; }
  .foot-in { padding-top: 64px; }
  .foot-base { margin-top: 48px; }
  .night { margin: 0 8px; border-radius: 24px; }
  .hero { padding: 8px 8px 0; }
  .hero-card { border-radius: 24px; }
}

/* ── Count-ups carry the real number for screen readers (handoff §11) ── */
.cnt > .sr, .cnt2 > .sr, .cnt3 > .sr { position: absolute; }

/* ── Step indicator for the two flows (check a contractor, compare bids) ── */
.flowbar { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.flowbar-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.steps { display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 0; list-style: none; font-size: 13.5px; color: var(--soft); }
.steps li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.steps li + li::before { content: ""; width: 26px; height: 1px; background: var(--line2); margin-right: 2px; }
.steps .n { width: 22px; height: 22px; border-radius: 999px; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; color: var(--soft); background: #FFFFFF; }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.on .n { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.steps li.done { color: var(--ink2); }
.steps li.done .n { background: var(--ok-bg); border-color: #BFE3CF; color: var(--ok); }
.flow-exit { color: var(--muted); font-size: 14px; text-decoration: none; }
@media (max-width: 860px) {
  .steps .t { display: none; }
  .steps li.on .t { display: inline; }
  .steps li + li::before { width: 12px; }
}
.foot-top { display: flex; flex-direction: column; gap: 22px; }
.foot-gap { margin-top: 120px; }
@media (max-width: 860px) { .foot-gap { margin-top: 80px; } }
/* The logo mark in the header: the wordmark's ink, drawn in currentColor. */
.brand-mark { display: block; flex: none; overflow: visible; color: var(--ink); }
@media (max-width: 560px) {
  .flowbar-in { gap: 10px; }
  .flowbar .logo span { display: none; }
  .steps { gap: 4px; }
  .steps li + li::before { width: 8px; margin-right: 0; }
}

/* The design preview (site.js CF.preview, staging only): parts of the design
   the product does not do yet are drawn only in preview, on sample data, and
   the live wording they replace only outside it. */
html:not(.preview) [data-preview] { display: none !important; }
html.preview [data-live] { display: none !important; }
html:not(.scope) [data-scope] { display: none !important; }
html.scope [data-no-scope] { display: none !important; }
/* The design's notifications bell in the signed-in header (auth.js; design
   preview only). */
.nav-bell { position: relative; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); background: #FFFFFF; flex: none; }
.nav-bell i { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 999px; background: var(--bad-dot); box-shadow: 0 0 0 2px #FFFFFF; }
@media (max-width: 860px) { .nav-bell { display: none !important; } }

/* Toast (A11, handoff §6): a dark pill with a green check, bottom centre,
   one at a time. Under reduced motion it appears without the rise. */
.cf-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 999px; background: #17161C; color: #FFFFFF; font-size: 14px; box-shadow: 0 18px 40px -16px rgba(23,22,28,.6); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.cf-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cf-toast-tk { width: 24px; height: 24px; border-radius: 999px; background: #2FA877; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cf-toast-x { position: relative; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #FFFFFF; font: inherit; cursor: pointer; flex-shrink: 0; }
/* A 44px target around the 28px dot. */
.cf-toast-x::after { content: ""; position: absolute; inset: -8px; }
@media (prefers-reduced-motion: reduce) { .cf-toast { transition: none; } }
@media print { .cf-toast { display: none !important; } }
