/*
 * CostGrid website, "Midnight" design (approved 23 Oct 2026).
 * Shared by index.html and research.html. Dark on purpose, for every visitor.
 * Fonts are self-hosted (fonts/, SIL OFL 1.1): no third-party requests.
 */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --sidebar: #0f1218;
  --surface: #12151c;
  --surface-2: #171b24;
  --nav-active: #1b2029;
  --line: #252b37;
  --line-soft: #1f2430;
  --control: #333a48;
  --outline: #3a4150;
  --ink: #f1f2f5;
  --ink-2: #b4bac6;
  --ink-3: #8b93a1;
  --accent: #d9b46c;
  --on-accent: #1a1307;
  --accent-wash: #17140e;
  --accent-line: #3a3222;
  --mark: #b38b38;
  --mark-muted: #6b7383;
  --good: #7dd8a8; --good-bg: #13261c;
  --warn: #f2c46e; --warn-bg: #2c2312;
  --bad: #f4948a; --bad-bg: #321a17;
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  --font: "Manrope", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16.5px; line-height: 1.55; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
h1, h2, h3 { margin: 0; font-weight: 700; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
li { list-style: none; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.section { padding: 72px 0; scroll-margin-top: 24px; border-top: 1px solid var(--line-soft); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.overline { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
h2.head { font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; margin-top: 12px; max-width: 22ch; }
@media (min-width: 900px) { h2.head { font-size: 40px; } }
.lede { margin-top: 16px; max-width: 680px; font-size: 17.5px; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* buttons: fully rounded pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--outline);
  background: transparent; color: var(--ink); font: inherit; font-size: 15.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn-accent:hover { background: #e3c283; border-color: #e3c283; color: var(--on-accent); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

/* header */
.site-head { border-bottom: 1px solid var(--line-soft); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand svg { flex-shrink: 0; }
.site-nav { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
@media (min-width: 860px) {
  .head-in { padding-block: 22px; }
  .site-nav { order: 0; flex-basis: auto; gap: 32px; }
}

/* cards */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
@media (min-width: 900px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { padding: 24px; border-radius: 12px; border: 1px solid var(--line-soft); background: transparent; }
.card.raised { background: var(--surface); border-color: var(--line); }
.card h3 { font-size: 19px; line-height: 1.3; }
.card p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.step-no { font-size: 13px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 10px; }

/* status pills, always with a word */
.pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }

/* tables */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-2); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 15px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
.r { text-align: right; }

/* forms (optional email updates) */
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--control); border-radius: 10px; padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field { margin-bottom: 18px; }
.err { color: var(--bad); font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.field.invalid .err { display: block; }

/* note box */
.note { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.note strong { color: var(--ink); }

/* footer */
.site-foot { border-top: 1px solid var(--line-soft); padding: 40px 0 48px; font-size: 14px; color: var(--ink-2); }
.foot-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft); text-align: center; }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; color: var(--ink-3); }
.foot-bot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-bot a { color: var(--ink-2); }

/* ---------- home page ---------- */

/* Liquid glass: a dark, blurred pane with a light edge that fades out mid-height. */
.glass {
  position: relative; background: rgba(11, 13, 18, 0.45);
  -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.08) 80%, rgba(255, 255, 255, 0.22) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn.glass { border-color: transparent; }
.btn.glass:hover { background: var(--ink); color: var(--bg); }

/* The header floats over the hero as a glass bar. */
.site-head.floating { position: absolute; top: 0; left: 0; right: 0; z-index: 10; border-bottom: 0; padding-top: 16px; }
.site-head.floating .head-in { border-radius: 12px; padding: 10px 10px 10px 16px; flex-wrap: nowrap; }
.site-head.floating .site-nav { display: none; }
@media (min-width: 860px) {
  .site-head.floating { padding-top: 24px; }
  .site-head.floating .site-nav { display: flex; flex-basis: auto; order: 0; }
}

/* Full-screen hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; }
.hero-in { position: relative; flex: 1; width: 100%; padding-top: 112px; padding-bottom: 120px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.hero h1 { max-width: 1000px; font-size: 38px; line-height: 1.08; letter-spacing: -0.04em; }
@media (min-width: 640px) { .hero h1 { font-size: 52px; } }
@media (min-width: 1000px) { .hero-in { gap: 22px; } .hero h1 { font-size: 66px; line-height: 1.06; } }
@media (min-width: 1280px) { .hero h1 { font-size: 72px; } }
.hero h1 { text-wrap: balance; }
/* The two-line break is for wide screens; on a phone the sentence wraps where it fits. */
.hero h1 .line + .line::before { content: " "; }
@media (min-width: 640px) { .hero h1 .line { display: block; } .hero h1 .line + .line::before { content: none; } }
.hero h1 .word { display: inline-block; white-space: nowrap; }
.hero h1 .ch { display: inline-block; }
.hero .sub { max-width: 700px; font-size: 18px; color: var(--ink-2); }
@media (min-width: 900px) { .hero .sub { font-size: 20px; } }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 8px; }
.hero .small { font-size: 14px; }
.hero-tag { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 0 16px 40px; }
.hero-tag p { border-radius: 12px; padding: 12px 22px; font-size: 15.5px; font-weight: 500; color: var(--ink);
  text-align: center; text-wrap: balance; }
@media (min-width: 640px) { .hero-tag p { font-size: 17px; } }
@media (min-width: 900px) { .hero-tag { padding-bottom: 56px; } .hero-tag p { font-size: 20px; } }
@media (max-height: 640px) { .hero-tag { position: static; padding-top: 0; } .hero-in { padding-bottom: 32px; } }

/* The moving background: two slow glows and the grid the product is named after. */
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, #121826 0%, var(--bg) 60%); }
.hero-bg::before { content: ""; position: absolute; inset: -56px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  animation: grid-drift 32s linear infinite; }
/* The video, warmed toward the champagne accent and dimmed so the headline stays readable. */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  filter: saturate(0.7) sepia(0.15) brightness(0.95); transition: opacity 1.4s ease; pointer-events: none; }
.hero-video.on { opacity: 1; }
/* A shade behind the text and a fade into the page below, over the video and the glows alike. */
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 45% 40% at 50% 48%, rgba(11, 13, 18, 0.42), transparent 75%),
    linear-gradient(rgba(11, 13, 18, 0.12), rgba(11, 13, 18, 0) 25%, rgba(11, 13, 18, 0) 75%, var(--bg)); }
/* With less shade, a soft shadow keeps the words readable on the bright parts of the video. */
.hero h1, .hero .sub, .hero .overline, .hero .small { text-shadow: 0 1px 2px rgba(11, 13, 18, 0.55), 0 0 24px rgba(11, 13, 18, 0.45); }
.glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.glow-a { left: -20vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(217, 180, 108, 0.20), transparent);
  animation: glow-a 26s ease-in-out infinite alternate; }
.glow-b { right: -25vmax; bottom: -35vmax; background: radial-gradient(closest-side, rgba(88, 112, 170, 0.24), transparent);
  animation: glow-b 30s ease-in-out infinite alternate; }
@keyframes grid-drift { to { transform: translate3d(56px, 56px, 0); } }
@keyframes glow-a { to { transform: translate3d(28vmax, 18vmax, 0) scale(1.15); } }
@keyframes glow-b { to { transform: translate3d(-24vmax, -14vmax, 0) scale(0.9); } }

/* Entrance, only once hero.js has set it up (no script: everything shows at once). */
.hero.animate .fade { opacity: 0; transition: opacity 1000ms ease; transition-delay: var(--delay, 0ms); }
.hero.animate .ch { opacity: 0; transform: translateX(-18px); transition: opacity 500ms ease, transform 500ms ease; }
.hero.animate.in .fade { opacity: 1; }
.hero.animate.in .ch { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before, .glow { animation: none; }
  .hero-video { display: none; }
}

/* product shot: the app's Results screen */
.shot { padding-bottom: 72px; }
.win { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.win-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); background: var(--sidebar); }
.win-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2c3240; flex-shrink: 0; }
.win-bar .t { flex: 1; text-align: center; font-size: 13px; color: var(--ink-3); margin-right: 52px; }
.win-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.app-side { display: none; }
@media (min-width: 1000px) {
  .win-body { grid-template-columns: 224px minmax(0, 1fr); }
  .app-side { display: flex; flex-direction: column; gap: 18px; padding: 18px 12px; border-right: 1px solid var(--line-soft); background: var(--sidebar); }
}
.biz { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.biz b { font-size: 14px; font-weight: 600; }
.biz span { font-size: 12.5px; color: var(--ink-3); }
.app-nav { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.app-nav span { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); }
.app-nav span.on { color: var(--ink); background: var(--nav-active); font-weight: 600; }
.plan-box { margin-top: auto; padding: 14px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-wash); display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; }
.plan-box b { color: var(--accent); }
.plan-box span { color: var(--ink-2); }
.app-main { padding: 20px 16px 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (min-width: 760px) { .app-main { padding: 24px 28px 28px; gap: 20px; } }
.app-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.app-top h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.app-top .sub { font-size: 14px; color: var(--ink-3); }
.app-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fake-btn { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--control); color: var(--ink); white-space: nowrap; }
.fake-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.kpi { padding: 14px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (min-width: 760px) { .kpi { padding: 16px 18px; } }
.kpi .k { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
@media (min-width: 760px) { .kpi .v { font-size: 30px; } }
.kpi .v.gold { color: var(--accent); }
.kpi .n { font-size: 13px; color: var(--ink-3); }
.agents { min-width: 820px; }
.agents .name { font-weight: 600; }
.agents .kind { font-size: 13px; color: var(--ink-3); }
.agents .means { color: var(--ink-2); max-width: 300px; line-height: 1.45; }
.example-tag { display: inline-flex; align-self: flex-start; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--control); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* the problem */
/* The problem sits on a deep warm-black field with two soft champagne
   glows, top left and bottom right; the cards are frosted over it. */
#problem { background:
  radial-gradient(ellipse 55% 60% at 12% 10%, rgba(217, 180, 108, 0.26), transparent 72%),
  radial-gradient(ellipse 55% 60% at 88% 85%, rgba(179, 139, 56, 0.30), transparent 72%),
  #0c0b09;
  /* The site's cool neutrals, warmed to sit on the gold. */
  --surface-2: #1a1814; --bg: #0c0b09; --line: #2e2a22; --line-soft: #24211b; --outline: #4d4637; }

/* The problem: a bento grid of five cards. One column on a phone, two
   then three across on wider screens; the bottom two cards are wide. */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento-a, .bento-wide { grid-column: span 6; }
  .bento-b, .bento-c { grid-column: span 3; }
}
@media (min-width: 1000px) {
  .bento-a, .bento-b, .bento-c { grid-column: span 2; }
  .bento-wide { grid-column: span 3; }
}
.bento-card { position: relative; overflow: hidden; padding: 28px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(16, 15, 13, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bento-card h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }
.bento-card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.bento-a, .bento-b, .bento-c { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bento-a h3, .bento-b h3, .bento-c h3 { margin-top: 24px; }

.bento-swoosh { position: relative; display: flex; align-items: center; justify-content: center; width: 224px; height: 96px; }
.bento-swoosh svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--outline); }
.bento-big { position: relative; font-size: 48px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }

.bento-ring { position: relative; display: flex; width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); }
.bento-ring::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--line-soft); }
.bento-ring svg { margin: auto; width: 22px; height: 22px; fill: none; stroke: var(--ink-2);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bento-ring-lg { width: 112px; height: 112px; margin-top: 8px; }
.bento-ring-lg svg { width: 44px; height: 44px; stroke: var(--accent); stroke-width: 1.2; }

.bento-chart { width: 100%; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); padding: 12px 0 0; }
.bento-chart-head { display: flex; justify-content: space-between; gap: 8px; padding: 0 12px 8px;
  font-size: 12px; color: var(--ink-3); text-align: left; }
.bento-chart svg { display: block; width: 100%; height: 88px; }

.bento-wide { display: grid; gap: 24px; }
@media (min-width: 640px) { .bento-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.bento-text { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.bento-card .bento-stat { margin: 0 0 4px; font-size: 32px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--accent); }

.bento-window { position: relative; align-self: end; margin: 0 -28px -28px 0; padding: 30px 20px 20px;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-top-left-radius: 12px;
  background: var(--surface-2); }
.bento-dots { position: absolute; top: 10px; left: 12px; display: flex; gap: 5px; }
.bento-dots span { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--outline); }
.bento-card .bento-window-title { margin: 0 0 10px; font-size: 12px; color: var(--ink-3); }
.bento-bill { list-style: none; margin: 0; padding: 0; }
.bento-bill li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px;
  padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink); }
.bento-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.bento-tag.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-wash); }
.bento-tag.off { color: var(--ink-3); border-style: dashed; background: transparent; }

.bento-steps { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 12px 0; }
.bento-steps::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.bento-step { position: relative; display: flex; align-items: center; gap: 8px; }
.bento-step.left { width: calc(50% + 7px); justify-content: flex-end; }
.bento-step.right { margin-left: calc(50% - 7px); }
.bento-step i { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--surface); }
.bento-source { margin-top: 14px; }
.survey { margin-top: 28px; max-width: 820px; }

/* example result: bar chart on one shared $0-$8 scale + receipt */
.ex-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 980px) { .ex-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.chart { display: flex; flex-direction: column; gap: 18px; }
.chart h3, .receipt h3 { font-size: 17px; }
.bar-row { display: grid; gap: 6px; }
.bar-row .lbl { font-size: 14.5px; color: var(--ink-2); }
.bar-row .lbl b { color: var(--ink); font-weight: 600; }
.track { position: relative; display: flex; align-items: center; gap: 8px; height: 28px; }
.bar { height: 18px; border-radius: 0 4px 4px 0; background: var(--mark); flex: none; min-width: 3px; }
.bar.person { background: var(--mark-muted); }
.bar-val { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.axis { position: relative; height: 22px; border-top: 1px solid var(--line); margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.axis span { position: absolute; top: 4px; transform: translateX(-50%); }
.axis span:first-child { transform: none; }
.axis span:last-child { transform: translateX(-100%); }
.receipt dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; margin-top: 16px; font-size: 15px; }
.receipt dt { color: var(--ink-2); }
.receipt dd { text-align: right; font-weight: 600; }
.receipt .sum { border-top: 1px solid var(--line); padding-top: 10px; color: var(--ink); font-weight: 700; }
.receipt dd.sum.gold { color: var(--accent); }
.receipt .sub-i { padding-left: 14px; }

/* pricing */
.plans { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.plan.control { border-color: var(--accent-line); background: var(--accent-wash); }
.plan h3 { font-size: 22px; }
.plan .price { margin-top: 10px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.plan.control .price { color: var(--accent); }
.plan ul { margin-top: 20px; display: grid; gap: 10px; font-size: 15.5px; color: var(--ink-2); flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 2px; background: var(--mark); }
.plan .btn { margin-top: 24px; align-self: flex-start; }

/* privacy */
.facts { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* faq */
.faq { margin-top: 32px; max-width: 820px; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 20px; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }

/* download */
.dl-box { margin-top: 40px; padding: 28px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.dl-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }

/* ---------- research page ---------- */
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.section.deep { background: var(--sidebar); }
.r-hero { padding: 56px 0 64px; }
.r-hero h1 { font-size: 38px; line-height: 1.08; letter-spacing: -0.03em; margin-top: 14px; max-width: 20ch; }
@media (min-width: 900px) { .r-hero { padding: 80px 0 88px; } .r-hero h1 { font-size: 56px; } }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.tag.built { color: var(--good); background: var(--good-bg); }
.tag.shapes { color: var(--warn); background: var(--warn-bg); }
.tag.context { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
.tag.method { color: var(--on-accent); background: var(--accent); }
.source { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-top: 16px; display: grid; gap: 18px; }
@media (min-width: 900px) { .source { grid-template-columns: 0.9fr 1.1fr 1.1fr; padding: 26px; } }
.source > * { min-width: 0; }
.source h3 { font-size: 19px; line-height: 1.3; margin-top: 10px; }
.source p { font-size: 15.5px; }
.source p + p { margin-top: 8px; }
.cite { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.cite a { color: var(--ink-2); }
.col-title { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.where { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.caveat { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-wrap table { min-width: 720px; }
td.id { font-size: 13.5px; font-weight: 600; min-width: 190px; }
td .nist { color: var(--ink-3); font-weight: 400; font-size: 13px; display: block; margin-top: 4px; }
td.evidence { color: var(--ink-2); font-size: 13.5px; }
@media (max-width: 700px) {
  .crosswalk table { min-width: 0; }
  .crosswalk thead { display: none; }
  .crosswalk tr { display: block; border-bottom: 1px solid var(--line); }
  .crosswalk tbody tr:last-child { border-bottom: 0; }
  .crosswalk td { display: block; border: 0; padding: 4px 16px; }
  .crosswalk td.id { padding-top: 16px; min-width: 0; }
  .crosswalk td.evidence { padding-bottom: 16px; }
  .crosswalk td.evidence::before { content: "Evidence: "; font-weight: 600; color: var(--ink-3); }
}
.claims { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 900px) { .claims { grid-template-columns: 1fr 1fr; } }
.claim { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: 15.5px; }
.claim strong { display: block; margin-bottom: 4px; }
.lcso { margin-top: 16px; padding: 22px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-wash); scroll-margin-top: 24px; }
@media (min-width: 900px) { .lcso { padding: 32px; } }
.lcso h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; margin-top: 12px; }
.lcso h4 { margin: 28px 0 8px; font-size: 17px; }
.lcso p, .lcso li { font-size: 15.5px; color: var(--ink-2); }
.lcso p + p { margin-top: 10px; }
.lcso ul.dots { display: grid; gap: 8px; }
.lcso ul.dots li { display: flex; gap: 10px; }
.lcso ul.dots li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 2px; background: var(--mark); }
.lcso strong { color: var(--ink); }
.lcso .table-wrap { margin-top: 12px; }
.lcso .table-wrap table { min-width: 560px; }
.layers { display: grid; gap: 12px; }
@media (min-width: 900px) { .layers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.layer { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.layer b { display: block; color: var(--accent); font-size: 15px; }
.layer p { margin-top: 6px; font-size: 14.5px; }
.callout { margin-top: 24px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 17px; font-weight: 600; color: var(--ink); }
