/* Stillrate design system
   Night navy for trust, a mint-to-ocean gradient for the brand (the logo tile, primary buttons, highlights),
   Bricolage Grotesque for headlines and figures, Geist for everything else. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/Bricolage.woff2") format("woff2"); font-weight: 500 800; font-stretch: 75% 100%; font-display: swap; }

:root {
  --navy-900: #0a1222;   /* night: hero, footer, dark bands */
  --navy-800: #101b31;
  --navy-700: #1a2a48;
  --ink: #0b1b33;
  --ink-2: #2e4560;
  --muted: #5b6e84;
  --line: #e1e7ee;
  --line-2: #cdd6e0;
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --mint: #22d3a0;       /* brand gradient: mint → teal → ocean */
  --teal: #0ea5a0;
  --ocean: #0b6e8e;
  --brand-grad: linear-gradient(135deg, #22d3a0 0%, #0ea5a0 55%, #0b6e8e 100%);
  --btn-grad: linear-gradient(135deg, #3ee8b6 0%, #1cc7a6 100%);
  --on-mint: #04241d;    /* text on mint buttons */
  --accent: #0a7c6a;     /* text-safe green for links, ticks and icons on white */
  --accent-2: #075e54;
  --accent-soft: #e2f7f0;
  --gold: #c9a227;
  --amber: #9a5b06;
  --amber-soft: #fdf1dc;
  --red: #b42318;
  --red-soft: #fde8e6;
  --blue: #1d5fa3;
  --blue-soft: #e6eff9;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-card: 0 1px 2px rgba(10, 18, 34, .05), 0 8px 24px -12px rgba(10, 18, 34, .14);
  --shadow-lift: 0 2px 4px rgba(10, 18, 34, .06), 0 28px 60px -18px rgba(10, 18, 34, .35);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bricolage", "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Base ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; font-stretch: 88%; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; font-stretch: 90%; letter-spacing: -.03em; }
h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.hl { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-dark .hl, .hero-dark .hl, .page-head .hl, .cta-band .hl { background: linear-gradient(120deg, #5ff2c4, #22d3a0 45%, #3fc7e0); -webkit-background-clip: text; background-clip: text; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums slashed-zero; letter-spacing: .01em; color: var(--ink-2); } /* case references */
code.mono { font-family: var(--mono); font-size: .88em; color: inherit; }
.num, .figure { font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
main { padding: 32px 0 72px; min-height: 60vh; }
main.flush { padding-top: 0; }
.stack > * + * { margin-top: 1rem; }
.container > h2:not(:first-child) { margin-top: 1.7em; }
.container > h3:not(:first-child) { margin-top: 1.5em; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.split { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 920px) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* Header ------------------------------------------------------------------------ */
.site-header { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 700 1.42rem/1 var(--display); letter-spacing: -.035em; }
.wordmark:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 32px; filter: drop-shadow(0 4px 10px rgba(14, 165, 160, .28)); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--surface-2); }
.nav form { margin: 0; }
.nav .nav-cta { margin-left: 8px; }
.nav a.btn { color: var(--on-mint); background: var(--btn-grad); padding: 9px 18px; }
.nav a.btn:hover { color: var(--on-mint); background: var(--btn-grad); filter: brightness(1.05); }
.btn.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 8px 20px 20px; flex-direction: column; align-items: stretch;
    box-shadow: 0 12px 24px -12px rgba(11, 34, 57, .25); }
  .nav.open { display: flex; }
  .nav .nav-cta { margin: 8px 0 0; }
  .btn.menu-toggle { display: inline-flex; }
}

/* Buttons ------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; min-height: 44px;
  border-radius: 10px; border: 1px solid transparent; background: var(--btn-grad); color: var(--on-mint);
  font: 600 .98rem/1.2 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 16px -6px rgba(14, 165, 160, .55);
  transition: transform .18s cubic-bezier(.2,.8,.2,1.2), box-shadow .18s, filter .15s, background .15s, border-color .15s; }
.btn:hover { color: var(--on-mint); filter: brightness(1.05); transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 22px -8px rgba(14, 165, 160, .6); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(34, 211, 160, .55); outline-offset: 2px; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(10,18,34,.05); }
.btn.secondary:hover { border-color: var(--ink-2); background: var(--surface); color: var(--ink); box-shadow: 0 6px 14px -8px rgba(10,18,34,.25); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); transform: none; box-shadow: none; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; box-shadow: none; }
.btn.danger:hover { color: #fff; }
.btn.small { padding: 7px 12px; min-height: 34px; font-size: .875rem; }
.btn.large { padding: 14px 24px; min-height: 52px; font-size: 1.03rem; }
.btn.on-dark { background: var(--btn-grad); color: var(--on-mint); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px -8px rgba(34, 211, 160, .55); }
.btn.on-dark:hover { color: var(--on-mint); }
.btn.outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.btn.outline-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent-2); text-decoration: underline; cursor: pointer; font: inherit; }

/* Surfaces -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-card); }
.card.flat { background: var(--surface); box-shadow: none; }
.card h2, .card h3 { margin-top: 0; }
.card-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.kicker { font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.green, .badge.strong { background: var(--accent-soft); color: var(--accent-2); border-color: #bfe0d8; }
.badge.amber, .badge.possible { background: var(--amber-soft); color: var(--amber); border-color: #f2d9a8; }
.badge.red, .badge.missed { background: var(--red-soft); color: var(--red); border-color: #f5c6c0; }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: #c8dbf0; }
.badge.grey, .badge.none, .badge.unlikely, .badge.unknown { background: #eef2f6; color: var(--muted); }
.alert { display: block; border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.alert.success { background: var(--accent-soft); border-color: #bfe0d8; color: var(--accent-2); }
.alert.error { background: var(--red-soft); border-color: #f5c6c0; color: var(--red); }
.alert.info { background: var(--blue-soft); border-color: #c8dbf0; color: var(--blue); }
.alert.warn { background: var(--amber-soft); border-color: #f2d9a8; color: #6e4204; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-card);
  text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--brand-grad); opacity: .9; }
.stat .label { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.stat .value { font: 700 2rem/1.15 var(--display); font-stretch: 85%; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat .sub { font-size: .85rem; color: var(--muted); }

/* Forms ---------------------------------------------------------------------------- */
form { margin: 0; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .94rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
  font: 400 1rem/1.3 var(--sans); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
textarea.code { font-family: var(--mono); font-size: .85rem; min-height: 140px; }
input[type=file] { font: inherit; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.radio-cards label { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px; display: flex; gap: 8px; align-items: center;
  background: #fff; font-weight: 500; cursor: pointer; }
.radio-cards label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-cards input { accent-color: var(--accent); }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.inline-form { display: inline; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 6px; }
details > summary { cursor: pointer; }

/* Tables ------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; background: var(--surface-2); }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 500; }

/* Marketing: hero -------------------------------------------------------------- */
.hero-dark { background: var(--navy-900); color: #d5e2ee; position: relative; overflow: hidden; isolation: isolate; }
.hero-dark::before, .page-head::before { /* a fine dot grid, fading in from the left */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(100deg, transparent 20%, #000 75%); -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); }
.hero-dark::after, .page-head::after { /* the brand glow */
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 760px; height: 760px; right: -240px; top: -320px;
  background: radial-gradient(closest-side, rgba(34, 211, 160, .30), rgba(14, 165, 160, .14) 45%, rgba(11, 110, 142, 0) 72%); }
.hero-dark .container { position: relative; }

/* Inner public pages open with the same navy band as the homepage */
.page-head { background: var(--navy-900); color: #c3d3e3; position: relative; overflow: hidden; isolation: isolate; }
.page-head .container { position: relative; padding-top: 48px; padding-bottom: 44px; }
@media (min-width: 900px) { .page-head .container { padding-top: 64px; padding-bottom: 56px; } }
.page-head h1 { color: #fff; margin-bottom: 14px; max-width: 24ch; }
.page-head h1.long { font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 32ch; }
.page-head .lead { color: #c3d3e3; margin: 0; font-size: 1.15rem; }
.page-head .head-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .92rem; }
.page-head .head-facts li { display: flex; gap: 8px; align-items: center; }
.page-head .head-facts .icon { color: var(--mint); width: 18px; height: 18px; }
.crumbs { font-size: .86rem; margin-bottom: 16px; color: #8ea4ba; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: #c3d3e3; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .sep { color: #5d7790; }
main:has(> .page-head) { padding-top: 0; }
.head-search { display: flex; gap: 10px; max-width: 640px; margin-top: 26px; }
.head-search input { flex: 1; min-height: 52px; font-size: 1.02rem; border-color: transparent; }
.head-search .btn { min-height: 52px; padding: 0 24px; }
.page-head + .container { padding-top: 44px; }
.page-head + .container > .creds:first-child { margin-top: 0; }

/* A form with the data promise beside it */
.form-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .form-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; } .form-layout .promise { position: sticky; top: 92px; } }
.promise { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-md); padding: 22px 22px 18px; }
.promise h2 { font-size: 1.06rem; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; letter-spacing: -.005em; }
.promise h2 .icon { color: var(--accent); }
.promise ul { list-style: none; margin: 0; padding: 0; }
.promise li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); padding: 10px 0; border-top: 1px solid var(--line); }
.promise li .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.promise li strong { color: var(--ink); font-weight: 600; }
.promise .creds.compact { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.promise .creds.compact .cred { color: var(--ink); }
.promise-link { margin: 14px 0 0; font-size: .9rem; }
.hero-grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 64px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; padding-top: 88px; padding-bottom: 96px; } }
.hero-dark h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.6rem); max-width: 14ch; }
.hero-dark .lead { color: #c3d3e3; font-size: 1.15rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.trust-row { list-style: none; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; font-size: .93rem; color: #dbe6f1; }
.trust-row li { display: flex; gap: 10px; align-items: flex-start; }
.trust-row .icon { color: var(--mint); margin-top: 3px; }

/* The product panel: what a finished check looks like */
.product-panel { margin: 0; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.pp-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pp-head strong { font-family: var(--display); font-size: 1.08rem; }
.pp-head span { font-size: .85rem; color: var(--muted); }
@media (max-width: 520px) { .pp-head { flex-direction: column; align-items: flex-start; } .pp-head, .pp-body, .pp-foot { padding-left: 16px; padding-right: 16px; } }
.trust-row { grid-template-columns: 1fr; }
@media (min-width: 560px) { .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pp-body { padding: 18px 22px 8px; }
.pp-row { padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.pp-row:last-child { border-bottom: 0; }
.pp-row .row.between { margin-bottom: 8px; }
.pp-row h4 { margin: 0; font: 600 .98rem/1.3 var(--sans); display: flex; gap: 8px; align-items: center; letter-spacing: 0; }
.pp-figure { font: 700 1.45rem/1.2 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pp-note { font-size: .85rem; color: var(--muted); margin: 2px 0 0; }
.ruler { margin: 14px 0 6px; }
.ruler-track { position: relative; height: 8px; border-radius: 4px; background: #e8eef4; }
.ruler-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #9fb3c8; }
.ruler-mark { position: absolute; top: -5px; width: 3px; height: 18px; border-radius: 2px; background: var(--red); }
.ruler-legend { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.ruler-legend b { color: var(--ink); font-weight: 600; }
.pp-foot { background: var(--surface-2); border-top: 1px solid var(--line); padding: 12px 22px; display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--ink-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-700); color: #fff; display: inline-grid; place-items: center; font: 600 .75rem/1 var(--sans); flex: 0 0 auto; }
.illustration-note { font-size: .78rem; color: #8ea4ba; margin: 12px 0 0; }

/* Marketing: sections -------------------------------------------------------------- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 38em; }

.evidence { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 820px) { .evidence { grid-template-columns: repeat(3, 1fr); } }
.evidence div { padding: 24px 24px 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .evidence div { border-bottom: 0; border-right: 1px solid var(--line); padding: 26px 28px; } .evidence div:first-child { padding-left: 0; } .evidence div:last-child { border-right: 0; } }
.evidence .fig { font: 700 3.4rem/1 var(--display); font-stretch: 80%; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.evidence p { margin: 10px 0 6px; color: var(--ink-2); }
.evidence cite { font-style: normal; font-size: .8rem; color: var(--muted); }

.process { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .process::before { content: ""; position: absolute; left: 18px; right: 18px; top: 18px; height: 2px; background: var(--line); } }
.process li { position: relative; }
.process li::before { counter-increment: step; content: counter(step); position: relative; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand-grad); border: 0; color: #fff;
  font: 700 1.05rem/1 var(--display); margin-bottom: 16px; box-shadow: 0 8px 18px -8px rgba(14, 165, 160, .6); }
.process h3 { margin-bottom: 6px; }
.process p { color: var(--muted); margin: 0; font-size: .96rem; }

.usp { display: grid; gap: 40px; align-items: start; }
@media (min-width: 920px) { .usp { grid-template-columns: 1fr 1fr; gap: 64px; } }
.usp-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.usp-table caption { caption-side: bottom; text-align: left; font-size: .82rem; color: var(--muted); padding: 10px 12px; }

.controls { display: grid; gap: 0; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
@media (min-width: 760px) { .controls { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .controls { grid-template-columns: repeat(3, 1fr); } }
.control { padding: 22px 24px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.control h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 1.02rem; }
.control .icon { color: var(--accent); width: 22px; height: 22px; }
.control p { margin: 0; color: var(--muted); font-size: .94rem; }

.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cred { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); font-size: .88rem; color: var(--ink); }
.cred .icon { color: var(--accent); }
.cred small { display: block; color: var(--muted); font-size: .78rem; }
.cred.dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); color: #dbe6f1; }
.cred.dark small { color: #9db2c7; }
.creds.compact { flex-direction: column; gap: 8px; margin-top: 18px; }
.creds.compact .cred { padding: 0; border: 0; background: none; font-size: .85rem; gap: 8px; }
.creds.compact .cred small { display: inline; margin-left: 4px; }
.creds.compact .icon { width: 16px; height: 16px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }

.cta-band { background: var(--navy-900); color: #dbe6f1; border-radius: var(--r-lg); padding: 44px; display: grid; gap: 20px; align-items: center;
  position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -200px; bottom: -380px;
  background: radial-gradient(closest-side, rgba(34, 211, 160, .32), rgba(11, 110, 142, 0) 70%); }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #c3d3e3; }
.cta-band .btn { background: var(--btn-grad); color: var(--on-mint); }

/* Lists ------------------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-2); font-weight: 700; margin-bottom: 10px; }

/* Check wizard progress ------------------------------------------------------------- */
.progress { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; flex-wrap: wrap; }
.progress li { flex: 1; min-width: 0; font-size: .84rem; color: var(--muted); border-top: 3px solid var(--line); padding-top: 8px; }
@media (max-width: 520px) { .progress { flex-wrap: nowrap; } .progress li { font-size: .74rem; line-height: 1.3; } }
.progress li.done { border-color: var(--accent); color: var(--accent-2); }
.progress li.current { border-color: var(--navy-700); color: var(--ink); font-weight: 600; }

/* Timeline ------------------------------------------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 16px 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); }
.timeline .when { font-size: .8rem; color: var(--muted); }
.timeline .signoff { font-size: .82rem; color: var(--accent-2); font-weight: 500; }
.timeline li.internal::before { border-color: var(--amber); }

/* Uploads and lists -------------------------------------------------------------------- */
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: 18px; background: var(--surface-2); }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }

/* Messages ------------------------------------------------------------------------- */
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.msg.mine { align-self: flex-end; background: var(--accent-soft); border-color: #bfe0d8; }
.msg .meta { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.msg.held { border-style: dashed; border-color: var(--amber); }

/* Estimates and comparisons ----------------------------------------------------------- */
.estimate { font: 700 1.8rem/1.2 var(--display); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.caveat { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.compare-bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #d7efe8, #f7e7c4, #f7d4cf); position: relative; margin: 28px 0 8px; }
.compare-bar .marker { position: absolute; top: -8px; width: 3px; height: 26px; background: var(--ink); border-radius: 2px; }
.compare-bar .marker span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .76rem; white-space: nowrap; font-weight: 600; }

/* Articles (guides, legal, security) ----------------------------------------------------- */
.article { font-size: 1.04rem; line-height: 1.7; }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article table { margin: 1em 0; background: var(--surface); border: 1px solid var(--line); }
.article blockquote { margin: 1em 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface); }
.article li { margin-bottom: .4em; }

/* Footer ------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #9db2c7; padding: 64px 0 32px; font-size: .9rem; position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; left: -200px; bottom: -420px; width: 760px; height: 760px;
  background: radial-gradient(closest-side, rgba(14, 165, 160, .22), rgba(11, 110, 142, 0) 70%); }
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--brand-grad); opacity: .7; }
.site-footer a { color: #c3d3e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer.slim { padding: 24px 0; }
.site-footer.slim .footer-legal { border: 0; padding: 0; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); margin-bottom: 36px; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-cols h4 { color: #fff; font: 600 .95rem/1.3 var(--sans); margin: 0 0 12px; letter-spacing: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-brand .wordmark { color: #fff; margin-bottom: 12px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: .82rem; line-height: 1.6; }
.footer-legal p { margin: 0 0 8px; }

/* Print (invoices) ------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .card { border: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* App chrome: the flow and the account --------------------------------------- */
body.app { background: var(--bg); }
.app-bar { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.app-bar-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-bar-right { display: flex; align-items: center; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bar-link { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.bar-link:hover, .bar-link.active { color: var(--ink); background: var(--surface-2); }
.bar-nav { display: flex; gap: 2px; }
.bar-nav .dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-grad); color: #fff; font-size: .7rem; font-weight: 600; vertical-align: middle; }
.saved { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .82rem; }
.saved .icon { width: 15px; height: 15px; color: var(--accent); }
.flow-steps { list-style: none; margin: 0 auto; padding: 0 20px 10px; max-width: 640px; display: flex; gap: 6px; }
.flow-steps li { flex: 1; min-width: 0; border-top: 3px solid var(--line); padding-top: 6px; font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-steps li.done { border-color: var(--accent); color: var(--accent-2); }
.flow-steps li.current { border-color: var(--navy-900); color: var(--ink); font-weight: 600; }
main.flow { max-width: 640px; margin: 0 auto; padding: 28px 16px 64px; min-height: 70vh; }
main.flow.wide { max-width: 1000px; }
.bar-link.as-button { background: none; border: 0; font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; }
.bar-nav form { margin: 0; }
@media (min-width: 700px) { main.flow { padding-top: 44px; } }
.flow-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--shadow-card); }
@media (min-width: 700px) { .flow-card { padding: 36px 40px; } }
.flow-card + .flow-card, .flow-card + .flow-note, .flow-card + details { margin-top: 14px; }
.flow-card.quiet { background: var(--surface-2); box-shadow: none; padding: 18px 22px; }
.flow-card.centre { text-align: center; }
.flow-card.centre .lead { margin-left: auto; margin-right: auto; }
.flow-card h1 { font-size: clamp(1.6rem, 4.2vw, 2.15rem); margin-bottom: 10px; }
.flow-card .lead { font-size: 1.05rem; margin-bottom: 22px; }
.flow-card .h-sub { font-size: 1.05rem; margin: 18px 0 10px; }
.flow-note { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--muted); padding: 0 6px; }
.flow-note .icon { width: 16px; height: 16px; margin-top: 3px; flex: 0 0 auto; }
.flow-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.flow-head h1 { margin: 0; }
.eyebrow-plain { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-soft); color: var(--blue); font-size: .85rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; margin: 0 0 14px; }
.pill.ok { background: var(--accent-soft); color: var(--accent-2); }
.pill .icon { width: 16px; height: 16px; }
.big-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand-grad); color: #fff; margin-bottom: 16px;
  box-shadow: 0 12px 28px -10px rgba(14, 165, 160, .6); }
.big-icon .icon { width: 30px; height: 30px; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-icon.spin .icon { animation: spin 6s linear infinite; }
.fine { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.btn.block { width: 100%; }
.flow-actions { margin-top: 20px; }
.flow-actions .back { display: block; text-align: center; margin-top: 12px; font-size: .9rem; }

/* Finding a venue */
.find-form { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 560px) { .find-form { grid-template-columns: 1fr auto; } }
.find-input { position: relative; }
.find-input .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.find-input input { padding-left: 44px; min-height: 52px; font-size: 1.05rem; }
.pick-list { list-style: none; margin: 16px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pick-list li + li { border-top: 1px solid var(--line); }
.pick-list a, .pick-list button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); background: var(--surface); border: 0; font: inherit; text-align: left; cursor: pointer; }
.pick-list a:hover, .pick-list button:hover { background: var(--accent-soft); color: var(--ink); }
.pick-main { display: flex; flex-direction: column; min-width: 0; }
.pick-main strong { font-weight: 600; }
.pick-main span { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-side { text-align: right; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; }
.pick-side .num { font-weight: 600; font-variant-numeric: tabular-nums; }
.pick-side small { font-size: .74rem; color: var(--muted); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-side .icon { color: var(--accent); }
.pick-list form { margin: 0; }
.empty { color: var(--muted); margin: 16px 0 0; }
.alt-action { margin: 18px 0 0; font-size: .92rem; }
.chosen { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: .9rem; margin: 0 0 20px; }
.chosen .icon { color: var(--accent); flex: 0 0 auto; }
.chosen span { flex: 1; }
.chosen a { white-space: nowrap; }
.fact-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 18px 0 6px; }
.fact-row > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.fact-label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.fact { display: block; font: 700 1.6rem/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.verdict { font-size: 1.02rem; margin: 10px 0 0; }
.choice { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 560px) { .choice { grid-template-columns: 1fr 1fr; } }

/* The reviewer */
.reviewer { display: flex; gap: 14px; align-items: flex-start; }
.reviewer .avatar.lg { width: 48px; height: 48px; font-size: 1rem; }
.reviewer .avatar .icon { width: 22px; height: 22px; stroke: #fff; }
.reviewer strong { display: block; font-weight: 600; }
.reviewer strong .muted { font-weight: 400; }
.reviewer small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 2px; }
.reviewer.compact small { font-size: .82rem; }
.who { display: grid; gap: 36px; align-items: start; }
@media (min-width: 920px) { .who { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.who .reviewer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin-top: 10px; }
.controls.compact { grid-template-columns: 1fr; }
@media (min-width: 640px) { .controls.compact { grid-template-columns: repeat(2, 1fr); } }
.controls.compact .control { padding: 18px 20px; }

/* Bills */
.upload-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.upload { border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface); }
.upload.has { border-style: solid; border-color: #bfe0d8; background: #f6fbf9; }
.upload-head { display: flex; align-items: center; gap: 12px; }
.upload-head > div { flex: 1; min-width: 0; }
.upload-head strong { display: block; font-weight: 600; }
.upload-head small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.upload-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--muted); flex: 0 0 auto; }
.upload.has .upload-icon { background: var(--accent-soft); color: var(--accent-2); }
.upload-icon .icon { width: 18px; height: 18px; }
.upload-form { margin: 0; flex: 0 0 auto; }
.upload-form label.btn { cursor: pointer; }
.files { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: .9rem; }
.files li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 4px 0; }
.link-button.small { font-size: .85rem; }
.later { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.later p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.later .btn { gap: 8px; }

/* Result */
.summary { white-space: pre-line; font-size: 1.02rem; line-height: 1.65; background: var(--surface-2); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 0 0 18px; }
.outcomes { display: grid; gap: 12px; }
@media (min-width: 600px) { .outcomes { grid-template-columns: 1fr 1fr; } }
.outcome { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.outcome.go { border-color: #bfe0d8; background: #f6fbf9; }
.outcome h3 { display: flex; gap: 8px; align-items: center; font-size: 1rem; margin-bottom: 6px; }
.outcome h3 .icon { color: var(--accent); width: 20px; height: 20px; }
.outcome p { font-size: .94rem; color: var(--ink-2); }
details.sent summary { cursor: pointer; font-weight: 500; }
details.sent .files { border: 0; margin-top: 8px; }

/* Account overview */
.venue-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 14px; box-shadow: var(--shadow-card); }
.venue-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.venue-head h2 { font-size: 1.25rem; margin: 0 0 2px; }
.venue-head .mono { font-size: .82rem; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracks li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tracks li:last-child { border-bottom: 0; }
.tracks li > div { flex: 1; min-width: 0; }
.tracks strong { display: block; font-size: .95rem; }
.tracks span { font-size: .88rem; color: var(--muted); }
.track-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); color: var(--navy-700); flex: 0 0 auto; }
.track-icon .icon { width: 18px; height: 18px; }
.tracks a { font-weight: 500; white-space: nowrap; }
.app-foot { max-width: 640px; margin: 0 auto; padding: 0 20px 32px; font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.app-foot a { color: var(--muted); }

/* Homepage search hero */
.hero-search .container { padding-top: 64px; padding-bottom: 72px; max-width: 880px; }
@media (min-width: 900px) { .hero-search .container { padding-top: 96px; padding-bottom: 104px; } }
.hero-search h1 { max-width: 14ch; }
.hero-search .lead { max-width: 40em; margin-bottom: 28px; }
.hero-form { display: grid; gap: 10px; grid-template-columns: 1fr; max-width: 680px; }
@media (min-width: 600px) { .hero-form { grid-template-columns: 1fr auto; } }
.hero-form .find-input input { min-height: 60px; font-size: 1.1rem; border-color: transparent; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px -16px rgba(0,0,0,.6); }
.hero-form .btn { min-height: 60px; padding: 0 28px; border-radius: 12px; font-size: 1.04rem; }
.trust-row.three { display: grid; gap: 10px 24px; }
@media (min-width: 760px) { .trust-row.three { grid-template-columns: repeat(3, auto); justify-content: start; } }
.process.three { grid-template-columns: 1fr; }
@media (min-width: 800px) { .process.three { grid-template-columns: repeat(3, 1fr); } }

/* Homepage hero: search on the left, an example result on the right */
.hero-search .container.hero-split { max-width: 1160px; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1020px) { .hero-search .container.hero-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; } }
.result-card { margin: 0; background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -24px rgba(0,0,0,.65), 0 0 120px -20px rgba(34,211,160,.35);
  overflow: hidden; max-width: 440px; width: 100%; }
@media (min-width: 1020px) { .result-card { transform: rotate(1.5deg); } }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.rc-head strong { display: block; font: 700 1.2rem/1.2 var(--display); letter-spacing: -.02em; }
.rc-head span { font-size: .85rem; color: var(--muted); }
.rc-head .badge { color: var(--accent-2); }
.rc-body { padding: 18px 22px 20px; }
.rc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rc-line span { color: var(--muted); font-size: .9rem; }
.rc-line b { font: 700 1.5rem/1 var(--display); font-stretch: 85%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rc-range { left: 30%; width: 28%; background: linear-gradient(90deg, #9be7cf, #22d3a0); }
.rc-you { left: 82%; }
.rc-saving { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--navy-900); color: #c3d3e3; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rc-saving span { font-size: .88rem; }
.rc-saving b { font: 700 2rem/1 var(--display); font-stretch: 82%; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #5ff2c4, #22d3a0 45%, #3fc7e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-foot { display: flex; gap: 10px; align-items: center; padding: 12px 22px; background: var(--surface-2); border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.rc-foot .icon { color: var(--accent); }
.rc-wrap { display: grid; justify-items: center; }
@media (min-width: 1020px) { .rc-wrap { justify-items: end; } }
.rc-note { color: #6f86a0; margin: 18px 0 0; max-width: 440px; width: 100%; text-align: center; }
.hero-split .trust-row.three { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-split .trust-row.three li { white-space: nowrap; align-items: center; }
.hero-split .trust-row.three .icon { margin-top: 0; }

/* Short pages: keep the footer at the bottom of the window, not floating mid-screen */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > .site-footer, body > .app-foot { flex-shrink: 0; }
.nav a.nav-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; color: var(--ink-2); }
.nav a.nav-icon:hover { background: var(--surface-2); color: var(--ink); }
.nav a.nav-icon .icon { width: 20px; height: 20px; vertical-align: 0; }
.stage-strip { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.stage { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; color: var(--ink); }
.stage b { font: 700 1.6rem/1 var(--display); font-stretch: 85%; letter-spacing: -.03em; }
.stage span { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.stage:hover { border-color: var(--teal); color: var(--ink); }
.stage.zero b { color: var(--line-2); }
.demo-bar { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  padding: 10px 20px; background: #3b2a00; color: #ffe8a3; font-size: .9rem; }
.demo-bar strong { color: #fff; }
.demo-actions { display: flex; gap: 8px; }
.demo-actions button { font: 600 .85rem/1 var(--sans); padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,232,163,.5); background: transparent; color: #ffe8a3; cursor: pointer; }
.demo-actions button.primary { background: #ffe8a3; color: #3b2a00; border-color: #ffe8a3; }
.demo-bar ~ .site-header, .demo-bar ~ .app-bar { top: 44px; }
.owner-bar { background: #fff7e6; border-bottom: 1px solid #f2d9a8; font-size: .86rem; color: #6e4204; }
.owner-bar .container { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 8px; padding-bottom: 8px; }
.owner-bar a { color: #6e4204; text-decoration: underline; text-underline-offset: 2px; }
.owner-bar .warn { color: var(--red); }
.owner-bar .warn a { color: var(--red); }
/* Signed-in footer: one quiet line */
.app-foot.wide { max-width: 1160px; padding: 18px 20px 26px; border-top: 1px solid var(--line); margin-top: 0; }
/* Public footer: tighter */
.site-footer { padding: 44px 0 24px; }
.footer-cols { margin-bottom: 24px; }
.footer-legal { font-size: .78rem; padding-top: 16px; }
/* The cog and sign-out sit together at the end of the bar */
.nav-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 6px 0 10px; }
.nav .btn.ghost { padding: 8px 12px; min-height: 38px; font-weight: 500; }
@media (max-width: 860px) { .nav-sep { width: auto; height: 1px; margin: 8px 0; } }
/* Case types: rates are Stillrate green, energy is amber, everywhere */
:root { --rates: #0a7c6a; --rates-soft: #e2f7f0; --energy: #b86e00; --energy-soft: #fff3d6; --energy-line: #f4d394; }
.kind-tag { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .07em;
  padding: 5px 9px 5px 8px; border-radius: 999px; vertical-align: middle; }
.kind-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kind-tag.rates { background: var(--rates-soft); color: var(--rates); }
.kind-tag.energy { background: var(--energy-soft); color: var(--energy); }
.kicker .kind-tag { margin-right: 6px; }
.track-icon.rates { background: var(--rates-soft); color: var(--rates); }
.track-icon.energy { background: var(--energy-soft); color: var(--energy); }
.kind-energy { border-top: 3px solid var(--energy); }
.kind-rates { border-top: 3px solid var(--rates); }
.stat.energy::before { background: linear-gradient(90deg, #f6c453, #e08a00); }
.stage.energy:hover { border-color: var(--energy); }
/* Settings: one collapsible card per section */
.settings-section { margin-bottom: 10px; padding: 0; }
.settings-section > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 22px; cursor: pointer; }
.settings-section > summary::-webkit-details-marker { display: none; }
.settings-section > summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--muted); line-height: 1; }
.settings-section[open] > summary::after { content: "–"; }
.settings-section .ss-title { font: 600 1.08rem/1.2 var(--display); letter-spacing: -.01em; }
.settings-section .ss-done { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rates-soft); color: var(--rates); font-weight: 700; font-size: .8rem; }
.settings-section > form { padding: 0 22px 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.copy-block { white-space: pre-wrap; font: .82rem/1.55 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; max-height: 220px; overflow: auto; }

/* Sign-in: form on the left, brand panel on the right ------------------------- */
body.auth { background: var(--surface); }
.auth-split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .auth-split { grid-template-columns: minmax(420px, 5fr) 7fr; } }
.auth-main { display: flex; flex-direction: column; padding: 28px 20px 24px; }
@media (min-width: 900px) { .auth-main { padding: 36px 56px 28px; } }
.auth-body { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; margin: 40px auto; }
.auth-form h1 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.auth-form .lead { color: var(--ink-2); margin-bottom: 26px; }
.auth-form .field input { padding: 14px 14px; font-size: 1.05rem; }
.auth-fine { font-size: .8rem; color: var(--muted); margin: 0; }
.auth-fine a { color: var(--muted); }
.auth-side { display: none; }
@media (min-width: 900px) {
  .auth-side { display: flex; flex-direction: column; justify-content: space-between; padding: 56px; }
}
.auth-art { width: min(58%, 420px); height: auto; align-self: center; margin-top: 6vh;
  filter: drop-shadow(0 30px 60px rgba(34, 211, 160, .25)); }
.auth-points { max-width: 560px; }
.auth-tag .hl { white-space: nowrap; }
.auth-tag { font-family: var(--display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 800; font-stretch: 88%; letter-spacing: -.03em; line-height: 1.05; color: #fff; margin: 0 0 22px; }
.auth-points ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; color: #c3d3e3; font-size: .95rem; }
.auth-points .icon { color: var(--mint); margin-top: 2px; flex: 0 0 auto; }

/* Heavier display weight for the big headlines */
.hero-dark h1, .page-head h1, .cta-band h2 { font-weight: 800; }

/* Floating call to action on public pages, shown once the hero is out of view */
.float-cta { position: fixed; left: 50%; bottom: 18px; z-index: 40; transform: translate(-50%, 140%); opacity: 0;
  transition: transform .28s ease, opacity .28s ease; box-shadow: 0 12px 32px -8px rgba(10, 18, 34, .45); white-space: nowrap; }
.float-cta.show { transform: translate(-50%, 0); opacity: 1; }
@media print { .float-cta { display: none; } }
.float-cta.show:hover { transform: translate(-50%, -1px); }

/* Platform polish: one look across public, client, surveyor and owner pages ---- */
h1 { font-weight: 800; }
main > .container > h1 + p.muted, main > .container > .row > h1 + p.muted { font-size: 1.04rem; max-width: 72ch; }
/* Top bar: the page you're on is marked */
.nav a.active, .nav a[aria-current] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--mint); }
.nav a.nav-icon.active { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--mint); }
/* Tabs: filters and the settings menu, one segmented control everywhere */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 4px 0 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 1px 2px rgba(10,18,34,.04); width: fit-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 9px; font-size: .88rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.tab:hover { background: var(--surface-2); color: var(--ink); }
.tab.active { background: var(--navy-900); color: #fff; font-weight: 600; }
.tab.active:hover { color: #fff; }
/* Card titles: one size, one weight */
.card-title { font-size: 1.2rem; font-weight: 700; font-stretch: 92%; letter-spacing: -.02em; margin: 0 0 12px; }
h2.card-title + p.muted, h2.card-title + p.small { margin-top: -4px; }
/* Tables sit in a clean card */
.card.table-card { padding: 0; overflow: hidden; }
.card.table-card th:first-child, .card.table-card td:first-child { padding-left: 18px; }
.card.table-card th:last-child, .card.table-card td:last-child { padding-right: 18px; }
th { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fafcfd; }
td[colspan].muted { text-align: center; padding: 30px 12px; font-style: normal; }
/* Back links above a page title */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--muted); text-decoration: none; margin-bottom: 10px; }
.back-link::before { content: "←"; transition: transform .15s; }
.back-link:hover { color: var(--ink); }
.back-link:hover::before { transform: translateX(-3px); }
/* Links inside the app: brand green, underline on hover only where they're dense */
td a, .doc-list a, .card .small a { text-decoration-color: rgba(10, 124, 106, .35); }
td a:hover, .doc-list a:hover, .card .small a:hover { text-decoration-color: currentColor; }
/* Badges: crisper, with a status dot */
.badge { padding: 4px 10px; font-size: .76rem; letter-spacing: .005em; }
.badge.green::before, .badge.amber::before, .badge.red::before, .badge.blue::before, .badge.strong::before, .badge.possible::before, .badge.missed::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
/* Banners */
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 13px 16px; font-size: .95rem; line-height: 1.5; border-left-width: 4px; }
.alert.success { border-left-color: var(--accent); }
.alert.error { border-left-color: var(--red); }
.alert.info { border-left-color: var(--blue); }
.alert.warn { border-left-color: #d98e04; }
a.alert:hover { filter: brightness(.98); }
/* The owner's setup strip */
.owner-bar { background: linear-gradient(90deg, #fff8e8, #fffbf2); }
.owner-bar .container { align-items: center; gap: 6px 18px; padding-top: 9px; padding-bottom: 9px; }
.owner-bar .ob-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.owner-bar .ob-label { font-weight: 600; margin-right: 2px; }
.owner-bar a.ob-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #f2d9a8;
  text-decoration: none; font-weight: 500; font-size: .8rem; color: #6e4204; transition: border-color .15s, background .15s; }
.owner-bar a.ob-chip:hover { border-color: #d98e04; background: #fffdf8; }
.owner-bar .warn a.ob-chip { color: var(--red); border-color: #f5c6c0; }
/* Details toggles inside cards */
.card details > summary:not(.ss) { font-weight: 500; color: var(--ink-2); }
.card details > summary:not(.ss):hover { color: var(--ink); }
/* Stats: a touch more presence */
.stat .value { font-weight: 800; }
/* Error and empty pages */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state .big-icon { margin: 0 auto 18px; }
.empty-state p { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; }
.bar-link.active { box-shadow: inset 0 -2px 0 var(--mint); }
/* File pickers match the secondary button */
input[type=file] { font-size: .9rem; color: var(--muted); }
input[type=file]::file-selector-button { font: 600 .86rem/1.2 var(--sans); padding: 8px 14px; margin-right: 10px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
input[type=file]::file-selector-button:hover { border-color: var(--ink-2); box-shadow: 0 6px 14px -8px rgba(10,18,34,.25); }

/* Signed-in pages: a calmer, fixed scale -------------------------------------
   Title 30px, one short line under it, cards titled at 17px, body 15px.
   Every page starts at the same height and uses the same two button sizes. */
.signed-in main { padding-top: 28px; }
.signed-in h1, body.app main.flow > h1, body.app .flow-head h1 {
  font-size: 1.9rem; font-weight: 700; font-stretch: 92%; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 4px; max-width: none; }
.signed-in h2:not(.card-title) { font-size: 1.3rem; }
.signed-in h3 { font-size: 1.02rem; }
.signed-in .card-title, body.app .card-title { font-size: 1.06rem; margin-bottom: 10px; }
.signed-in main > .container { font-size: .95rem; }
.page-sub { color: var(--muted); font-size: .95rem; margin: 0 0 14px; max-width: 70ch; }
.signed-in .container > p.muted:first-of-type { max-width: 70ch; }
/* "How this works": the long explanation, folded away */
.page-help { margin: -6px 0 18px; font-size: .9rem; color: var(--ink-2); }
.page-help > summary { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent-2); list-style: none; }
.page-help > summary::-webkit-details-marker { display: none; }
.page-help > summary::before { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2); font-size: .72rem; font-weight: 700; }
.page-help[open] > summary { margin-bottom: 8px; }
.page-help > p, .page-help > form { max-width: 75ch; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 8px; }
.page-help > form { gap: 10px; }
/* Stats: smaller numbers, same card */
.signed-in .stat { padding: 16px 18px; }
.signed-in .stat .value { font-size: 1.6rem; }
.signed-in .grid-4 { margin: 4px 0 18px; }
/* Buttons: two sizes only on signed-in pages. Normal (40px) for actions, small (32px) inside tables and lists. */
.signed-in .btn, .signed-in .btn.large, body.app .card .btn { min-height: 40px; padding: 9px 16px; font-size: .9rem; border-radius: 9px; }
.signed-in .btn.small, body.app .btn.small { min-height: 32px; padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.signed-in .btn:not(.secondary):not(.ghost):not(.danger) { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 6px -2px rgba(14,165,160,.45); }
.signed-in .btn:hover { transform: none; }
.signed-in .nav .btn.ghost { min-height: 38px; font-size: .95rem; }
/* Tabs and the setup strip a touch smaller so they don't compete with the page */
.signed-in .tabs { margin-bottom: 14px; }
.signed-in .tab { padding: 6px 12px; font-size: .85rem; }
