/* khirad.ai v3.1 shared stylesheet. Light theme, mobile first, no build step.
   Four surfaces: page (#F3F2F6), white, ink, accent. Cards separate by tone and a faint shadow, not by borders. */
:root {
  --ink: #15152B;
  --page: #F3F2F6;
  --paper: var(--page);
  --mist: var(--page);
  --white: #FFFFFF;
  --line: #E4E2EC;
  --muted: #55546A;
  --accent: #4F46E5;
  --accent-dark: #4338CA;
  --accent-light: #A5B4FC;
  --accent-tint: #ECEBFF;
  --green: #15803D;
  --green-dot: #16A34A;
  --amber: #B45309;
  --amber-dot: #F59E0B;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(21,21,43,.05);
  --shadow-lift: 0 24px 48px -32px rgba(21,21,43,.28);
  --nav-h: 62px;
  --maxw: 1120px;
  --gutter: 16px;
  --display: 'Poppins', 'Poppins Fallback', Arial, sans-serif;
  --sans: 'Barlow', 'Barlow Fallback', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sec: 56px;
}
@media (min-width: 900px) { :root { --sec: 80px; --gutter: 24px; } }

/* Self-hosted Poppins and Barlow (latin files from Google Fonts' CSS API, 2026-10-24). Three are preloaded in each page head. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-700.woff2') format('woff2'); }

/* Metric-matched fallbacks so the swap to the web fonts does not shift layout (ratios measured against Arial). */
@font-face { font-family: 'Poppins Fallback'; src: local('Arial'); font-weight: 500; size-adjust: 112.8%; ascent-override: 93%; descent-override: 31%; line-gap-override: 9%; }
@font-face { font-family: 'Poppins Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600 700; size-adjust: 105.6%; ascent-override: 99%; descent-override: 33%; line-gap-override: 9%; }
@font-face { font-family: 'Barlow Fallback'; src: local('Arial'); font-weight: 400 500; size-adjust: 95.1%; ascent-override: 105%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: 'Barlow Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600 700; size-adjust: 90%; ascent-override: 111%; descent-override: 28%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--page);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
  padding-top: 86px;
}
main { flex: 1; }
[id] { scroll-margin-top: 92px; }
img, svg { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
p a, li a, .ans a, .article a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
p a:hover, li a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.06; font-weight: 500; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.03em; }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.55; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--page); padding: 2px 6px; border-radius: 6px; }

/* Skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons: two styles. Primary is a text block with a detached arrow square; ghost is an outline. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px; line-height: 1.2; letter-spacing: .005em;
  padding: 11px 20px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; border: 0; padding: 4px 4px 4px 20px; gap: 14px; justify-content: space-between; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary .arr { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 7px; background: #fff; color: var(--accent); }
.btn-primary .arr svg { width: 16px; height: 16px; }
.btn-primary:hover .arr { color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #CFCDDC; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 16.5px; padding: 13px 24px; }
.btn-lg.btn-primary { padding: 5px 5px 5px 24px; }
.btn-lg.btn-primary .arr { width: 40px; height: 40px; border-radius: 8px; }
.btn-sm { font-size: 14.5px; padding: 8px 15px; }
.btn-sm.btn-primary { padding: 3px 3px 3px 16px; gap: 12px; }
.btn-sm.btn-primary .arr { width: 32px; height: 32px; border-radius: 7px; }
.btn-sm.btn-primary .arr svg { width: 14px; height: 14px; }
.dark .btn-ghost, .closer .btn-ghost, .cta-band .btn-ghost, .register .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.dark .btn-ghost:hover, .closer .btn-ghost:hover, .cta-band .btn-ghost:hover, .register .btn-ghost:hover { border-color: #fff; }
.cta-row { display: flex; gap: 12px 14px; flex-wrap: wrap; align-items: center; }
.cta-row.center { justify-content: center; }
.textlink { font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.textlink svg { width: 16px; height: 16px; flex: none; }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) {
  .hero .cta-row .btn, .closer .cta-row .btn, .cta-band .cta-row .btn, .register .cta-row .btn, .live-tile .btn, .built-card .cta-row .btn, .dark .cta-row .btn, .calc-actions .btn { width: 100%; }
}

/* Nav: a fixed white pill, 62px tall, no blur, no border. */
.site-nav { position: fixed; top: 12px; left: max(16px, calc(50% - 560px)); right: max(16px, calc(50% - 560px)); z-index: 50; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px -16px rgba(21,21,43,.25); }
.site-nav .wrap { max-width: none; padding: 0 10px 0 18px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 9px; background: var(--page); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ic-close, .site-nav.open .nav-toggle .ic-menu { display: none; }
.site-nav.open .nav-toggle .ic-close { display: block; }
.site-nav.open .nav-links {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 8px); padding: 10px 10px 14px;
  background: #fff; border-radius: 12px; box-shadow: 0 24px 48px -24px rgba(21,21,43,.35);
  max-height: calc(100vh - var(--nav-h) - 44px); overflow-y: auto;
}
body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(21,21,43,.45); }
.nav-links > a, .nav-dd > summary { display: block; padding: 12px 10px; font-weight: 500; font-size: 16px; color: var(--ink); border-radius: 8px; }
.nav-links > a:hover, .nav-dd > summary:hover { background: var(--page); }
.nav-dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-dd[open] > summary svg { transform: rotate(180deg); }
.nav-menu { display: grid; gap: 2px; padding: 4px 0 8px 10px; }
.nav-menu a { display: grid; padding: 9px 10px; border-radius: 8px; line-height: 1.3; }
.nav-menu a b { font-weight: 600; font-size: 15.5px; }
.nav-menu a span { font-size: 13.5px; color: var(--muted); }
.nav-menu a:hover { background: var(--page); }
.nav-links .btn { margin-top: 10px; width: 100%; }
.nav-links > a.btn-primary { display: inline-flex; color: #fff; font-weight: 600; font-size: 14.5px; border-radius: 10px; }
.nav-links > a.btn-primary:hover { color: #fff; background: var(--accent-dark); }
@media (min-width: 961px) {
  .nav-toggle { display: none; }
  .nav-links, .site-nav.open .nav-links { display: flex; flex-direction: row; align-items: center; gap: 4px; position: static; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .nav-links > a, .nav-dd > summary { padding: 8px 12px; font-size: 15px; color: var(--muted); }
  .nav-links > a:hover, .nav-dd > summary:hover, .nav-dd[open] > summary { color: var(--ink); }
  .nav-dd { position: relative; }
  .nav-menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 20px 40px -18px rgba(21,21,43,.3); }
  .nav-links .btn { margin: 0 0 0 10px; width: auto; }
}

/* Sections. One page tone; white and ink are the only other surfaces. */
.block { padding: var(--sec) 0; }
.block.tight { padding-top: calc(var(--sec) * .6); }
.dark { background: var(--ink); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark .muted, .dark .lede { color: #B9B8CE; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.dark .tag { color: var(--accent-light); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 72% 10%, rgba(79,70,229,.10), transparent 70%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 13ch; }
.hero h1.long { font-size: clamp(34px, 4.4vw, 60px); max-width: 18ch; line-height: 1.1; }
.hero .intro, .hero .lede { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 600px; }
.hero .sub { margin-top: 18px; max-width: 52ch; }
.hero .cta-row { margin-top: 30px; }
.hero .who { margin-top: 12px; color: var(--muted); font-size: 16px; }
.hero .badge { margin-bottom: 18px; }
.hero.center h1, .hero.center .sub, .hero.center .intro { margin-left: auto; margin-right: auto; }
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(32px, 5vw, 72px); align-items: center; }
}

/* Live tile: the hero's proof card. The number Nida answers, right now. */
.live-tile { margin-top: 36px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lift); padding: 26px 24px; display: grid; gap: 14px; }
@media (min-width: 900px) { .live-tile { margin-top: 0; padding: 30px 28px; } }
@media (max-width: 899px) { .live-tile.tile-desktop { display: none; } }
.lt-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
.lt-num { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(27px, 3vw, 38px); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.lt-num:hover { color: var(--accent); }
.lt-sub { color: var(--muted); font-size: 15.5px; }
.live-tile .btn { justify-self: start; }
.lt-facts { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lt-facts li { display: flex; gap: 9px; align-items: flex-start; }
.lt-facts .dot { margin-top: 6px; }
.lt-facts b { color: var(--ink); font-weight: 600; }

/* Dots and badges */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-live { background: var(--green-dot); box-shadow: 0 0 0 0 rgba(22,163,74,.45); animation: pulse 2.2s ease-out infinite; }
.dot-early { background: var(--amber-dot); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; background: var(--page); white-space: nowrap; }
.hero .badge { background: #fff; box-shadow: var(--shadow); }
.badge-live { color: var(--green); }
.badge-early { color: var(--amber); }
.badge-lab { color: var(--accent); }

/* Grids and cards: no borders, 12px radius, a faint shadow. */
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.card.product { position: relative; overflow: hidden; padding-bottom: 30px; }
.card.product::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); font-size: 16px; }
.card .who { font-size: 14.5px; color: var(--muted); }
.card .who b { color: var(--ink); font-weight: 600; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-top.stack { flex-direction: column-reverse; justify-content: flex-end; align-items: flex-start; gap: 10px; }
.card-cta { margin-top: auto; padding-top: 10px; display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }
@media (max-width: 599px) { .card-cta { flex-direction: column; align-items: stretch; } .card-cta .textlink { justify-content: flex-start; } }
.card.flat { background: transparent; box-shadow: none; padding: 0; }
.card .num { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--accent); }
.dark .card { background: rgba(255,255,255,.05); box-shadow: none; }
.dark .card p { color: #C9C8DA; }

/* Columns of definition */
.cols { display: grid; gap: 28px; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 32px; } .cols > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; align-content: start; } .cols h3 { margin-bottom: 0; } }
.cols h3 { margin-bottom: 10px; }
.cols p { color: var(--muted); font-size: 16.5px; }
.bridge { margin-top: 36px; padding: 22px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-left: 4px solid var(--accent); font-family: var(--display); font-weight: 500; font-size: clamp(17px, 2vw, 20px); line-height: 1.45; color: var(--ink); }

/* Proof list */
.proof { display: grid; gap: 14px; }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(2, 1fr); gap: 18px 32px; } }
.proof li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 18px 18px 18px 16px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.proof li .dot { margin-top: 9px; }
.proof b { display: block; font-weight: 600; font-size: 17px; }
.proof p { color: var(--muted); font-size: 15.5px; margin-top: 3px; }
.proof .st { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-left: 8px; }
.dark .proof li { background: transparent; box-shadow: none; padding: 6px 0; }
.dark .proof b { color: #fff; }
.dark .proof p { color: #C9C8DA; }
.dark .proof p a, .dark p a { color: #C7D2FE; }
.dark .section-head p { color: #B9B8CE; }

/* Steps, with accent chips */
.chip, .steps li::before, .deliver .dn, .leak-item .ln { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0; line-height: 1; flex: none; }
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.steps li { counter-increment: step; padding: 22px 20px 22px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step, decimal-leading-zero); margin-bottom: 12px; }
.steps li p { font-size: 16.5px; }

/* Before and after */
.ba { display: grid; gap: 16px; }
@media (min-width: 760px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba-col { border-radius: var(--radius); padding: 28px 24px 24px; background: #fff; box-shadow: var(--shadow); }
.ba-col.after { box-shadow: var(--shadow), inset 0 4px 0 var(--accent); }
.ba-col h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ba-col.after h3 { color: var(--accent-dark); }
.ba-col li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 16.5px; }
.ba-col li:first-child { border-top: 0; padding-top: 0; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.stat { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--accent); background: #fff; box-shadow: var(--shadow); border-radius: 0 12px 12px 0; font-size: 16px; color: var(--muted); }
.stat b { color: var(--ink); font-family: var(--display); font-size: 24px; margin-right: 6px; }

/* Does and does not */
.dd { display: grid; gap: 16px; }
@media (min-width: 760px) { .dd { grid-template-columns: 1fr 1fr; } }
.dd-col { padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.dd-col h3 { font-size: 19px; margin-bottom: 12px; }
.list-check li, .list-x li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 16.5px; }
.list-check svg, .list-x svg { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.list-check svg { color: var(--green); }
.list-x svg { color: #9A99AE; }
.dark .list-check li { color: #E8E7F2; }

/* Sample panel */
.panel { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(21,21,43,.35), var(--shadow); max-width: 760px; }
.panel-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--page); font-size: 13.5px; color: var(--muted); }
.panel-bar .pd { display: inline-flex; gap: 5px; }
.panel-bar .pd i { width: 10px; height: 10px; border-radius: 50%; background: #D9D7E6; display: block; }
.panel-bar .pt { font-weight: 600; color: var(--ink); }
.panel-bar .sample { margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.panel-body { padding: 18px; }
.chat { display: grid; gap: 10px; }
.chat .msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 15.5px; line-height: 1.45; }
.chat .in { background: var(--page); border-bottom-left-radius: 4px; justify-self: start; }
.chat .out { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.chat .sys { justify-self: center; font-size: 13px; color: var(--muted); background: var(--page); border-radius: 999px; padding: 5px 12px; max-width: 100%; }
.chat .who { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.queue { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.queue td, .queue th { text-align: left; padding: 11px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.queue th { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.queue .id { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.queue .st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--page); white-space: nowrap; }
.queue .st.ok { background: #DCFCE7; color: var(--green); }
.queue .st.warn { background: #FEF3C7; color: var(--amber); }
.queue .st.ai { background: var(--accent-tint); color: var(--accent-dark); }
.queue .sub { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.report { font-size: 15px; }
.report .rh { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.report .rh b { font-family: var(--display); }
.report .sec { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.report .sec b { display: block; }
.report .sec span { color: var(--muted); font-size: 14px; }
.report .mark { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--accent); }
.report .mark.d { color: var(--amber); }
.panel-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); background: #fff; }
@media (max-width: 600px) { .queue .hide-sm { display: none; } .panel-body { padding: 14px; } }

/* Two-column feature layout */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.rev > :first-child { order: 2; } }
.built-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: clamp(28px, 4vw, 48px); }
.built-card { align-items: center; }
@media (min-width: 900px) { .built-card { grid-template-columns: 1.4fr 1fr; } .built-card .cta-row { flex-direction: column; align-items: flex-start; justify-self: end; } }

/* FAQ */
.faq { max-width: 820px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; width: 20px; height: 20px; color: var(--accent); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item .ans { padding: 0 0 22px; color: var(--muted); max-width: 66ch; font-size: 16.5px; }
.faq-item .ans p + p { margin-top: 10px; }

/* Closer: the ink band before the footer. */
.closer { background: var(--ink); color: #fff; padding: var(--sec) 0; }
.closer .tag { color: var(--accent-light); }
.closer h2 { color: #fff; font-weight: 500; font-size: clamp(36px, 5.6vw, 78px); letter-spacing: -0.04em; line-height: 1.05; max-width: 15ch; margin-top: 6px; }
.closer h2.num { max-width: none; font-variant-numeric: tabular-nums; }
.closer h2 a { color: inherit; }
.closer h2 a:hover { color: var(--accent-light); }
.closer p { color: #B9B8CE; font-size: 18px; max-width: 54ch; margin-top: 20px; text-wrap: pretty; }
.closer .cta-row { margin-top: 32px; }

/* CTA band (rounded ink card inside a page, used by the calculator results) */
.cta-band { background: var(--ink); color: #fff; border-radius: 18px; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(ellipse at 50% 100%, rgba(79,70,229,.45), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0 auto; font-size: clamp(28px, 3.6vw, 40px); }
.cta-band p { color: #B9B8CE; margin: 14px auto 0; max-width: 54ch; font-size: 17px; }
.cta-band .cta-row { justify-content: center; margin-top: 26px; }
.cta-band .fine { color: #B9B8CE; }

/* Founder */
.founder { display: grid; gap: 18px; max-width: 620px; }
.founder .sig { font-family: var(--display); font-weight: 600; }
.founder p { color: var(--muted); font-size: 17px; }

/* Footer: two columns on phones, five from 720px, the legal row last. */
.site-footer { padding: 56px 0 32px; background: #fff; font-size: 14.5px; }
.foot-grid { display: grid; gap: 28px 24px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 24px; } .foot-brand { grid-column: auto; } }
.foot-brand p { color: var(--muted); margin-top: 12px; max-width: 30ch; }
.foot-h { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot-col a { display: block; padding: 4px 0; color: var(--ink); }
.foot-col a:hover { color: var(--accent); }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Article (legal pages) */
.article { max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 96px); font-size: 17.5px; line-height: 1.6; }
.article h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px; }
.article .effective { color: var(--muted); margin-bottom: 28px; }
.article h2 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; margin: 36px 0 10px; }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 14px 22px; list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 8px; }
.article .sms { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 22px 24px; margin-top: 12px; }
.article .sms h2 { margin-top: 0; }
.article .sms strong { font-weight: 600; }
.article .quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin: 0 0 14px; }
.article .notice-img { width: 100%; max-width: 420px; border-radius: 10px; box-shadow: var(--shadow); display: block; margin: 8px 0 14px; }
.article .notice-img.wide { max-width: 640px; }
.article .num { font-family: var(--display); font-weight: 700; font-size: 26px; }

/* Printable notice sheet (Keyvio texting notice) */
.sheet { background: #fff; width: 8.5in; max-width: 100%; min-height: 11in; margin: 24px auto; padding: 0.7in 0.75in; box-shadow: var(--shadow-lift); font-size: 17px; line-height: 1.5; }
.sheet .brand { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; display: block; }
.sheet h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 6px 0 18px; }
.sheet .number { font-family: var(--display); font-weight: 700; font-size: 34px; margin: 4px 0 2px; }
.sheet .lead { font-size: 19px; margin-bottom: 18px; }
.sheet h2 { font-size: 17px; letter-spacing: -0.01em; margin: 18px 0 6px; }
.sheet ul { margin: 0 0 6px 20px; list-style: disc; }
.sheet li { margin-bottom: 5px; }
.sheet .agree { border: 2px solid var(--ink); border-radius: 10px; padding: 16px 18px; margin: 22px 0 18px; font-size: 16.5px; display: flex; gap: 14px; align-items: flex-start; }
.sheet .box { flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 3px; margin-top: 2px; }
.sheet .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-top: 8px; }
.sheet .field { border-bottom: 1.5px solid var(--ink); padding-top: 26px; font-size: 13px; color: var(--muted); }
.sheet .field.wide { grid-column: 1 / -1; }
.sheet .small { font-size: 13.5px; color: var(--muted); margin-top: 22px; }
@media screen and (max-width: 860px) { .sheet { width: auto; min-height: 0; margin: 0 0 32px; padding: 28px 16px; box-shadow: none; } .sheet .fields { grid-template-columns: 1fr; } }
@page { size: letter; margin: 0; }
@media print {
  body { background: #fff; display: block; padding-top: 0; }
  .site-nav, .site-footer, .skip, #nida-widget, .nida-widget, .nida-open { display: none !important; }
  .sheet { margin: 0; box-shadow: none; width: auto; min-height: auto; padding: 0.5in 0.7in; font-size: 15px; line-height: 1.42; }
  .sheet .number { font-size: 30px; }
  .sheet h1 { margin-bottom: 12px; }
  .sheet h2 { margin-top: 12px; }
  .sheet .agree { margin: 14px 0 10px; padding: 12px 16px; font-size: 15px; }
  .sheet .fields { gap: 18px 28px; }
  .sheet .field { padding-top: 30px; }
  .sheet .small { margin-top: 16px; }
}

/* Calculator */
.calc-card { background: #fff; border-radius: 16px; box-shadow: 0 24px 48px -28px rgba(21,21,43,.2), var(--shadow); padding: 26px 20px 24px; }
@media (min-width: 720px) { .calc-card { padding: 40px 40px 34px; } }
.slider-row { padding: 20px 0; border-top: 1px solid var(--line); }
.slider-row:first-of-type { border-top: none; padding-top: 4px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.slider-head label { font-weight: 600; font-size: 17px; }
.slider-val { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; display: block; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%), var(--line) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); margin-top: -9px; box-shadow: 0 2px 6px rgba(21,21,43,.2); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 2px 6px rgba(21,21,43,.2); }
.scale-hint { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.total-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding: 20px 22px; border-radius: 12px; background: var(--ink); color: #fff; text-align: center; }
.total-bar .t-num { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.total-bar .t-unit { font-weight: 600; font-size: 16px; }
.calc-actions { margin-top: 24px; text-align: center; }
.calc-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.results { display: none; }
.results.visible { display: block; animation: resultsIn .5s ease both; }
@keyframes resultsIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stats { display: grid; gap: 14px; margin-bottom: 32px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats .stat { margin: 0; border-left: 0; border-radius: 12px; padding: 24px 20px; text-align: center; background: #fff; box-shadow: var(--shadow); }
.stats .s-num { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stats .s-num.accent { color: var(--accent); }
.stats .s-label { color: var(--muted); font-size: 14px; margin-top: 8px; }
.tm-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 24px 20px 20px; margin-bottom: 32px; }
@media (min-width: 720px) { .tm-card { padding: 30px 30px 26px; } }
.tm-title { font-family: var(--display); font-weight: 600; font-size: 20px; }
.tm-row { margin-top: 18px; }
.tm-label { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; letter-spacing: .1em; text-transform: uppercase; }
.tm-label .delta { color: var(--accent); }
.tm-bar { display: flex; height: 58px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.seg { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 0 8px; min-width: 0; border-right: 1px solid #fff; overflow: hidden; }
.seg:last-child { border-right: none; }
.seg b { font-family: var(--display); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.seg i { font-style: normal; font-size: 10.5px; font-weight: 500; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg.s-work { background: var(--ink); color: #fff; }
.seg.s-leak { background: repeating-linear-gradient(135deg, #F4F3F9 0 6px, #E4E2EC 6px 12px); color: var(--ink); }
.seg.s-gain { background: var(--accent); color: #fff; }
.seg.s-self { background: var(--page); color: var(--muted); }
@media (max-width: 600px) { .seg i { display: none; } .seg b { font-size: 12px; } }
.leak-list { margin-bottom: 32px; }
.leak-list h2 { font-size: 24px; margin-bottom: 14px; }
.leak-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.leak-item:last-child { border-bottom: 1px solid var(--line); }
.leak-item .ln { margin-top: 2px; }
.leak-item b { display: block; font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.leak-item b .lh { color: var(--muted); font-weight: 500; font-size: 14px; }
.leak-item p { color: var(--muted); font-size: 15.5px; }
.benchmark { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 20px 22px; color: var(--muted); font-size: 15.5px; margin-bottom: 32px; }
.benchmark b { color: var(--ink); }
.fine { margin-top: 20px; font-size: 13.5px; color: var(--muted); text-align: center; }
.edit-link { display: inline-block; margin-top: 18px; font-size: 14.5px; color: var(--muted); text-decoration: underline; }
.edit-link:hover { color: var(--ink); }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot-live { animation: none; box-shadow: none; }
  .results.visible { animation: none; }
  .btn, .btn:hover { transition: none; transform: none; }
  .nav-dd > summary svg { transition: none; }
}

/* Lab tools */
.tools { display: grid; gap: 8px; margin-top: 16px; }
.tools li { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; font-size: 15px; color: var(--muted); }
.tools code { color: var(--ink); white-space: nowrap; }
@media (min-width: 720px) { .tools { grid-template-columns: 1fr 1fr; } }
.lab-card { padding: 28px 24px; }
.lab-card h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; }
.lab-card .live { font-size: 15px; color: var(--ink); padding: 12px 14px; background: var(--page); border-radius: 10px; }
.lab-card .live b { font-weight: 600; }

/* Services */
.ladder .card .n { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ladder .card .price { font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--ink); }
.deliver { max-width: 820px; }
.deliver li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.deliver li:last-child { border-bottom: 1px solid var(--line); }
.deliver .dn { margin-top: 2px; }
.deliver b { display: block; font-family: var(--display); font-weight: 500; font-size: 19px; margin-bottom: 4px; }
.deliver p { color: var(--muted); font-size: 16px; max-width: 62ch; }
.week { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 760px) { .week { grid-template-columns: repeat(5, 1fr); } }
.day { border-top: 2px solid var(--ink); padding-top: 14px; }
.day .d { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day h3 { font-size: 18px; margin-top: 8px; }
.day p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.price-row { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.price-row .amount { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; line-height: 1; }
.price-row .of { color: var(--muted); font-size: 15px; }
.notes { margin-top: 18px; }
.notes li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.notes li svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 5px; }
.notes b { color: var(--ink); font-weight: 600; }
.wont .card b { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.3; }
@media (min-width: 720px) and (max-width: 979px) { .wont .card:nth-child(5) { grid-column: span 2; } }
@media (min-width: 980px) { .wont { grid-template-columns: repeat(6, 1fr); } .wont .card { grid-column: span 2; } .wont .card:nth-child(n+4) { grid-column: span 3; } }
