/* ============================================================
   AxioVeris — marketing site
   Self-hosted type. No external requests. Cloudflare Pages ready.
   ============================================================ */

@font-face {
  font-family: "Inter Variable";
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0D2239;
  --navy-2: #12314F;
  --navy-3: #1A3F60;
  --ink: #16283B;
  --ink-2: #4B5D6C;
  --ink-3: #5F6D78;
  --cream: #F7F4EC;
  --cream-2: #ECE6DA;
  --tint: #F1EEE5;
  --paper: #FFFFFF;
  --line: #E2DDD1;
  --line-dark: rgba(236, 230, 218, .16);
  --ochre: #A17C40;
  --ochre-soft: #C4A875;
  --ochre-ink: #7A5B2D;
  --ochre-fill: #7A5B2D;
  --green: #2F6B52;
  --amber: #A9701C;
  --red: #9E463C;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow-sm: 0 4px 18px rgba(13, 34, 57, .06);
  --shadow: 0 22px 60px rgba(13, 34, 57, .10);
  --shadow-lg: 0 34px 90px rgba(13, 34, 57, .18);
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ochre-soft); color: var(--navy); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--navy); color: var(--cream); padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-size: 13px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 560; line-height: 1.2; letter-spacing: -.01em;
  transition: transform .22s var(--ease), background .22s, color .22s, border-color .22s, box-shadow .22s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 19px; font-size: 13px; }
.btn--lg { padding: 16px 30px; font-size: 15px; }
.btn--dark { background: var(--navy); color: var(--cream); box-shadow: 0 8px 22px rgba(13, 34, 57, .18); }
.btn--dark:hover { background: var(--navy-2); box-shadow: 0 14px 30px rgba(13, 34, 57, .24); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(13, 34, 57, .22); }
.btn--ghost:hover { background: rgba(13, 34, 57, .05); border-color: rgba(13, 34, 57, .4); }
.btn--outline { background: transparent; color: var(--navy); border-color: rgba(13, 34, 57, .3); }
.btn--outline:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(236, 230, 218, .45); }
.btn--outline-light:hover { background: rgba(236, 230, 218, .12); border-color: var(--cream); }
.btn--cream { background: var(--cream-2); color: var(--navy); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.btn--cream:hover { background: #FFF; }
.btn--light { background: var(--cream-2); color: var(--navy); }
.btn--light:hover { background: #FFF; }
.btn--full { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ochre-ink); font-size: 13.5px; font-weight: 560; border-bottom: 1px solid rgba(161, 124, 64, .35); padding-bottom: 2px; }
.text-link:hover { color: var(--navy); border-color: var(--navy); }
.text-link--light { color: var(--ochre-soft); border-color: rgba(196, 168, 117, .5); }
.text-link--light:hover { color: var(--cream); border-color: var(--cream); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 236, .86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(226, 221, 209, .8);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-word { font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: .18em; color: var(--navy); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ochre); transition: right .25s var(--ease); }
.nav a:hover { color: var(--navy); }
.nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 18px; height: 1.5px; background: var(--navy); border-radius: 2px; display: block; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- Shared section bits ---------------- */
.section { padding: 112px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: var(--cream-2); }
.section-head { max-width: 760px; margin: 0 auto 62px; text-align: center; }
.section-head--left { text-align: left; margin: 0 0 0; max-width: 420px; }
.section-head--left h2 { font-size: clamp(34px, 3.6vw, 48px); }
.eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre-ink); margin-bottom: 20px; font-weight: 700; }
.eyebrow--light { color: var(--ochre-soft); }
.section-head h2, .section--dark h2, .section h2 {
  font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.02em; color: var(--navy);
}
.section--dark h2 { color: var(--cream); }
.section-lede { margin-top: 20px; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); max-width: 62ch; margin-inline: auto; }
.section-head--left .section-lede { margin-inline: 0; }
.section--dark .section-lede { color: rgba(236, 230, 218, .74); }
.mini-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.section--dark .mini-label { color: rgba(236, 230, 218, .70); }

/* ---------------- Hero ---------------- */
.hero { padding: 88px 0 0; background: linear-gradient(180deg, #FBF9F3 0%, var(--cream) 58%, var(--cream) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 68px; align-items: center; }
.hero-copy { padding-bottom: 30px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(54px, 6.2vw, 88px); line-height: .99; letter-spacing: -.035em; color: var(--navy); margin-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--ochre); }
.hero-lede { font-size: 17px; line-height: 1.78; color: var(--ink-2); max-width: 560px; }
.hero-pains { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-pains li { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px 9px 12px; font-size: 13px; font-weight: 550; color: var(--navy); box-shadow: var(--shadow-sm); }
.hero-pains .mono { font-size: 10px; letter-spacing: .08em; color: var(--cream); background: var(--navy); border-radius: 999px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 22px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .02em; color: var(--ink-3); }

.hero-visual { position: relative; padding: 0 0 56px; }
.app-frame { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.app-frame__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; background: #F3F0E8; border-bottom: 1px solid var(--line); }
.app-frame__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #D8D2C4; }
.app-frame__bar .dot:first-child { background: #D9A79B; }
.app-frame__bar .dot:nth-child(2) { background: #DCC48F; }
.app-frame__bar .dot:nth-child(3) { background: #A9C3AA; }
.app-frame__title { margin-left: auto; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--ink-3); }
.shot-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.shot-zoom::after { content: "Tap to enlarge"; position: absolute; right: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #FFF; background: rgba(13, 34, 57, .82); border: 1px solid rgba(236, 230, 218, .35); border-radius: 999px; padding: 7px 12px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.shot-zoom:hover::after { opacity: 1; }
@media (hover: none) { .shot-zoom::after { opacity: 1; } }
.shot-zoom img { width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.shot-zoom:hover img { transform: scale(1.015); }
.hero-visual .shot-zoom img { aspect-ratio: 914 / 618; }
.float-card {
  position: absolute; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px; max-width: 262px;
}
.float-card__k { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; color: var(--ochre-ink); font-weight: 700; }
.float-card strong { font-size: 15px; color: var(--navy); font-weight: 620; letter-spacing: -.01em; }
.float-card__s { font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.float-card--a { left: -34px; bottom: 8px; }
.float-card--b { right: -26px; top: 22%; }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 76px; }
.proof-strip > div { background: var(--paper); padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 7px; }
.proof-strip strong { font-size: 15px; font-weight: 620; color: var(--navy); }
.proof-strip span { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------------- The problem ---------------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.problem-card { background: rgba(255, 255, 255, .045); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 38px 38px 34px; }
.problem-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.problem-card__no { font-size: 12px; color: var(--ochre-soft); letter-spacing: .1em; }
.problem-card__tag { font-size: 9.5px; letter-spacing: .14em; color: rgba(236, 230, 218, .70); border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 12px; }
.problem-card h3 { font-family: var(--font-display); font-size: 38px; line-height: 1.1; color: var(--cream); margin-bottom: 16px; letter-spacing: -.02em; }
.problem-card > p { font-size: 15px; line-height: 1.78; color: rgba(236, 230, 218, .76); }
.problem-card blockquote { margin: 28px 0 0; padding: 22px 24px; background: rgba(161, 124, 64, .09); border-left: 2px solid var(--ochre-soft); border-radius: 0 var(--r-md) var(--r-md) 0; }
.problem-card blockquote p { font-family: var(--font-display); font-size: 21px; font-style: italic; line-height: 1.45; color: var(--cream); }
.problem-card blockquote footer { margin-top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--ochre-soft); }
.problem-card__note { margin-top: 18px !important; font-size: 12px !important; line-height: 1.65; color: rgba(236, 230, 218, .70) !important; }
.problem-close { margin-top: 44px; text-align: center; }
.problem-close > p:first-child { font-family: var(--font-display); font-size: 27px; color: var(--cream); line-height: 1.45; }
.problem-close strong { color: var(--ochre-soft); font-weight: 400; }
.sources-note { margin-top: 18px; font-size: 11.5px; color: rgba(236, 230, 218, .62); }
.sources-note a { color: var(--ochre-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Principles ---------------- */
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principle { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 32px 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.principle__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.principle__no { font-family: var(--font-display); font-size: 46px; line-height: 1; color: var(--ochre); }
.principle__rule { font-family: var(--font-mono); font-size: 9px; letter-spacing: .13em; color: var(--ink-3); text-align: right; font-weight: 700; }
.principle h3 { font-family: var(--font-display); font-size: 29px; line-height: 1.18; color: var(--navy); letter-spacing: -.015em; margin-bottom: 14px; }
.principle__body { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.principle__block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.principle__block .mini-label { display: block; margin-bottom: 14px; }
.refuse-list li { font-size: 13px; color: var(--ink-2); padding: 6px 0 6px 22px; position: relative; }
.refuse-list li::before { content: "×"; position: absolute; left: 0; top: 5px; color: var(--red); font-size: 15px; font-weight: 600; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-list li { font-size: 11.5px; color: var(--navy); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.chip-list--warn li { background: rgba(158, 70, 60, .05); border-color: rgba(158, 70, 60, .18); color: #7E3B33; }
.principle__test { margin-top: auto; padding-top: 26px; font-size: 12.5px; color: var(--ink-2); }
.principle__test .mono { font-size: 9px; letter-spacing: .12em; color: var(--ochre-ink); margin-right: 9px; font-weight: 700; }

/* ---------------- Data boundary ---------------- */
.boundary-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; margin-bottom: 36px; }
.boundary-hero__stat, .boundary-hero__only { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 36px; }
.boundary-hero__stat { background: var(--navy); border-color: var(--navy); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.boundary-hero__stat strong { font-family: var(--font-display); font-size: 72px; line-height: .95; color: var(--cream); letter-spacing: -.03em; }
.boundary-hero__stat span { font-size: 13.5px; line-height: 1.7; color: rgba(236, 230, 218, .72); max-width: 320px; }
.boundary-hero__only .mono { display: block; font-size: 9.5px; letter-spacing: .14em; color: var(--ochre-ink); font-weight: 700; margin-bottom: 16px; }
.boundary-hero__only p { font-family: var(--font-display); font-size: 25px; line-height: 1.4; color: var(--navy); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-sm); }
.boundary-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
.boundary-table th { text-align: left; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 18px 24px; border-bottom: 1px solid var(--line); background: #FBF9F3; }
.boundary-table td { padding: 17px 24px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.boundary-table tr:last-child td { border-bottom: 0; }
.boundary-table td:first-child { color: var(--navy); font-weight: 560; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.pill--no { background: rgba(47, 107, 82, .1); color: var(--green); }
.pill--warn { background: rgba(122, 91, 45, .10); color: var(--ochre-ink); }
.boundary-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; }
.boundary-notes strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 8px; font-weight: 620; }
.boundary-notes p { font-size: 13px; line-height: 1.7; color: var(--ink-2); }

/* ---------------- Product browser ---------------- */
.product-browser { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.product-tabs { display: flex; flex-wrap: nowrap; gap: 4px; padding: 14px; background: #FBF9F3; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.product-tab { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; white-space: nowrap; border: 0; background: transparent; border-radius: 999px; padding: 11px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .01em; color: var(--ink-2); transition: background .2s, color .2s; }
.product-tab:hover { background: rgba(13, 34, 57, .05); color: var(--navy); }
.product-tab.is-active { background: var(--navy); color: var(--cream); }
.chat-states[hidden] { display: none; }
.chat-states { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 22px; background: #F3F0E8; border-bottom: 1px solid var(--line); }
.chat-states__label { font-size: 9px; letter-spacing: .13em; color: var(--ink-3); font-weight: 700; }
.chat-states__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.state-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 999px; padding: 8px 15px; font-size: 12px; font-weight: 550; transition: all .2s; }
.state-btn .mono { font-size: 10px; margin-left: 6px; color: var(--ink-3); }
.state-btn:hover { border-color: var(--ochre); color: var(--navy); }
.state-btn.is-active { background: var(--ochre-fill); border-color: var(--ochre-fill); color: #FFF; }
.state-btn.is-active .mono { color: rgba(255, 255, 255, .8); }
.product-stage { background: #F3F0E8; padding: 22px; }
.product-stage .shot-zoom { border-radius: var(--r-md); border: 1px solid var(--line); }
.product-stage .shot-zoom img { aspect-ratio: 1440 / 900; }
.product-stage .shot-zoom img.is-tall { aspect-ratio: 1440 / 1180; }
.product-caption { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 26px; border-top: 1px solid var(--line); }
.product-caption p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-caption .mono { font-size: 9px; letter-spacing: .1em; color: var(--ochre-ink); flex: 0 0 auto; white-space: nowrap; font-weight: 700; }

/* ---------------- Trust ---------------- */
.trust-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.trust-quote blockquote { margin: 0; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 38px 38px 32px; }
.trust-quote blockquote p { font-family: var(--font-display); font-size: 29px; font-style: italic; line-height: 1.42; color: var(--cream); }
.trust-quote blockquote footer { margin-top: 20px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--ochre-soft); }
.trust-cap { display: flex; align-items: center; gap: 24px; margin-top: 22px; padding: 24px 30px; background: rgba(161, 124, 64, .1); border: 1px solid rgba(196, 168, 117, .25); border-radius: var(--r-lg); }
.trust-cap strong { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--ochre-soft); letter-spacing: -.03em; }
.trust-cap p { font-family: var(--font-display); font-size: 22px; color: var(--cream); margin-bottom: 4px; }
.trust-cap span { font-size: 12.5px; line-height: 1.65; color: rgba(236, 230, 218, .75); }
.trust-bands { background: rgba(255, 255, 255, .045); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 32px 34px; }
.trust-bands > .mini-label { display: block; margin-bottom: 20px; }
.band { display: grid; grid-template-columns: 130px 90px 1fr; align-items: baseline; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line-dark); }
.band:first-of-type { border-top: 0; }
.band__name { font-size: 14px; font-weight: 600; }
.band__range { font-size: 11px; color: rgba(236, 230, 218, .70); }
.band p { font-size: 12.5px; line-height: 1.6; color: rgba(236, 230, 218, .7); }
.band--supported .band__name { color: #8FC7A9; }
.band--partial .band__name { color: #E0BE7E; }
.band--weak .band__name { color: #D9A07C; }
.band--insufficient .band__name { color: #DE9A93; }
.trust-foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line-dark); }
.trust-foot .mini-label { display: block; margin-bottom: 16px; }
.signals li { font-size: 13px; color: rgba(236, 230, 218, .8); padding: 5px 0 5px 20px; position: relative; }
.signals li::before { content: "+"; position: absolute; left: 0; color: var(--ochre-soft); font-family: var(--font-mono); }
.signals--no li::before { content: "−"; color: #DE9A93; }
.trust-foot__cta p { font-family: var(--font-display); font-size: 23px; line-height: 1.4; color: var(--cream); margin-bottom: 18px; }

/* ---------------- Evidence chain ---------------- */
.chain__flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.chain__flow span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; }
.chain__flow i { font-style: normal; color: var(--ochre); font-size: 16px; }
.chain__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.answer-card, .evidence-card { border-radius: var(--r-lg); padding: 32px 34px; box-shadow: var(--shadow-sm); }
.answer-card { background: var(--paper); border: 1px solid var(--line); }
.answer-card__head, .evidence-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.answer-card__badge { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--green); background: rgba(47, 107, 82, .09); border-radius: 999px; padding: 6px 11px; font-weight: 700; }
.answer-card__kb { font-size: 10px; color: var(--ink-3); }
.answer-card__q { font-family: var(--font-display); font-size: 23px; line-height: 1.35; color: var(--navy); margin-bottom: 20px; }
.answer-card__body p { font-size: 14px; line-height: 1.85; color: var(--ink-2); margin-bottom: 10px; }
.answer-card__note { font-size: 12px !important; color: var(--ink-3) !important; font-style: italic; margin-top: 16px !important; }
.cite { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 21px; padding: 0 5px; border-radius: 6px; border: 1px solid rgba(161, 124, 64, .4); background: rgba(161, 124, 64, .09); color: var(--ochre-ink); font-family: var(--font-mono); font-size: 10.5px; vertical-align: 1px; transition: all .2s; }
.cite:hover, .cite.is-active { background: var(--ochre-fill); color: #FFF; border-color: var(--ochre-fill); }
.cite::after { content: ""; position: absolute; inset: -8px; }
.answer-card__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.evidence-pill { font-size: 12px; color: var(--ink-2); }
.evidence-pill b { font-family: var(--font-mono); color: var(--navy); }
.trace-line { font-size: 9.5px; letter-spacing: .06em; color: var(--ink-3); }
.evidence-card { background: var(--navy); color: var(--cream); border: 1px solid var(--navy); }
.evidence-card__head h3 { font-family: var(--font-display); font-size: 22px; color: var(--cream); margin-top: 8px; }
.evidence-card__idx { font-size: 10px; color: var(--ochre-soft); }
.evidence-fields { display: grid; grid-template-columns: 112px 1fr; gap: 0; }
.evidence-fields dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: #8FA9BC; padding: 11px 0; border-top: 1px solid var(--line-dark); }
.evidence-fields dd { padding: 11px 0; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: rgba(236, 230, 218, .9); line-height: 1.55; word-break: break-word; }
.evidence-fields dd.quote { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--cream); }
.evidence-card__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.evidence-card__note { font-size: 11px; color: rgba(236, 230, 218, .70); max-width: 220px; line-height: 1.5; }
.chain__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.chain__facts > div { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.chain__facts strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--navy); margin-bottom: 6px; }
.chain__facts span { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }

.uncertainty-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; margin-top: 96px; align-items: center; }
.uncertainty-block__copy h3 { font-family: var(--font-display); font-size: 38px; line-height: 1.15; color: var(--navy); margin: 16px 0 18px; letter-spacing: -.02em; }
.uncertainty-block__copy > p:last-child { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.uncertainty-demo { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.unc-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; background: #FBF9F3; border-bottom: 1px solid var(--line); }
.unc-tab { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 999px; padding: 9px 14px; font-size: 11.5px; color: var(--ink-2); transition: all .2s; }
.unc-tab:hover { background: rgba(13, 34, 57, .05); }
.unc-tab.is-active { background: var(--navy); color: var(--cream); }
.unc-panel { padding: 28px 30px 30px; }
.unc-panel__status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--red); font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(158, 70, 60, .12); }
.unc-panel__answer { font-family: var(--font-display); font-size: 23px; line-height: 1.45; color: var(--navy); margin: 18px 0 20px; }
.unc-panel__meta { border-top: 1px solid var(--line); padding-top: 16px; }
.unc-panel__meta .mono { font-size: 10.5px; color: var(--ink-3); }
.unc-panel__refuse { margin-top: 16px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); background: var(--tint); border-radius: var(--r-sm); padding: 13px 16px; }

.audit-note { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; margin-top: 90px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 42px; align-items: center; }
.audit-note h3 { font-family: var(--font-display); font-size: 32px; color: var(--navy); margin: 14px 0 14px; letter-spacing: -.02em; }
.audit-note p { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.audit-note__limit { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ochre); border-radius: var(--r-md); padding: 22px 24px; font-size: 12.5px !important; line-height: 1.7 !important; }
.audit-note__limit strong { color: var(--navy); }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px 32px; box-shadow: var(--shadow-sm); }
.steps__no { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--ochre-ink); font-weight: 700; margin-bottom: 22px; }
.steps h3 { font-family: var(--font-display); font-size: 24px; line-height: 1.2; color: var(--navy); margin-bottom: 12px; }
.steps p { font-size: 13px; line-height: 1.75; color: var(--ink-2); }

/* ---------------- Pricing ---------------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 940px; margin: 0 auto; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 38px 36px 36px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan--featured { background: var(--navy); border-color: var(--navy); color: var(--cream); box-shadow: var(--shadow); }
.plan__flag { position: absolute; top: -13px; left: 36px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .13em; font-weight: 700; background: var(--ochre); color: #FFF; border-radius: 999px; padding: 7px 14px; }
.plan__head { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.plan--featured .plan__head { border-color: var(--line-dark); }
.plan__head h3 { font-family: var(--font-display); font-size: 34px; color: var(--navy); }
.plan--featured .plan__head h3 { color: var(--cream); }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 14px; }
.plan__price span { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.plan--featured .plan__price span { color: var(--cream); }
.plan__price small { font-size: 13px; color: var(--ink-3); }
.plan--featured .plan__price small { color: rgba(236, 230, 218, .6); }
.plan__desc { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.plan--featured .plan__desc { color: rgba(236, 230, 218, .80); }
.plan__list { margin: 26px 0 32px; flex: 1 1 auto; }
.plan__list li { position: relative; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); padding: 9px 0 9px 26px; }
.plan--featured .plan__list li { color: rgba(236, 230, 218, .85); }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ochre); }
.plan--featured .plan__list li::before { border-color: var(--ochre-soft); background: var(--ochre-soft); }
.plan__hint { margin-top: 14px !important; font-size: 11.5px !important; line-height: 1.6; text-align: center; color: var(--ink-3) !important; }
.plan--featured .plan__hint { color: rgba(236, 230, 218, .72) !important; }
.plan__hint a { color: var(--ochre-ink); text-decoration: underline; text-underline-offset: 3px; }
.plan--featured .plan__hint a { color: var(--ochre-soft); }
.plan--featured .btn--dark { background: var(--cream); color: var(--navy); border-color: var(--cream); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.plan--featured .btn--dark:hover { background: #FFFFFF; color: var(--navy); }
.pricing-notes .text-link { font-size: 12px; margin-left: 4px; }
.pricing-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; max-width: 940px; margin: 34px auto 0; text-align: center; }
.pricing-notes span { font-size: 12px; color: var(--ink-3); }

/* ---------------- FAQ ---------------- */
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: start; }
.faq-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { cursor: pointer; padding: 21px 26px; font-size: 15px; font-weight: 560; color: var(--navy); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); font-size: 18px; color: var(--ochre-ink); flex: 0 0 auto; transition: transform .2s; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 26px 24px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); max-width: 62ch; }

/* ---------------- Download ---------------- */
.download { background: var(--navy); color: var(--cream); padding: 100px 0 96px; text-align: center; }
.download-inner { max-width: 760px; }
.download-logo { margin: 0 auto 28px; }
.download h2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 62px); line-height: 1.08; color: var(--cream); margin: 18px 0 20px; letter-spacing: -.025em; }
.download-inner > p:not(.eyebrow):not(.download-meta):not(.download-support):not(.download-alt):not(.download-intro) { font-size: 16px; line-height: 1.8; color: rgba(236, 230, 218, .72); max-width: 620px; margin: 0 auto; }
.download-intro { margin: 0 auto 12px; font-size: 12.5px; line-height: 1.6; letter-spacing: .01em; color: rgba(236, 230, 218, .58); }
.download-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 34px 0 26px; }
.download-meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .02em; color: rgba(236, 230, 218, .62); }
.download-alt { margin-top: 12px; font-size: 12px; color: rgba(236, 230, 218, .70); }
.download-alt a { color: var(--ochre-soft); text-decoration: underline; text-underline-offset: 3px; }
.download-support { margin-top: 20px; font-size: 13px; color: rgba(236, 230, 218, .6); }
.download-support a { color: var(--ochre-soft); text-decoration: underline; text-underline-offset: 3px; }

/* Installation channels */
.install-store { max-width: 760px; margin: 0 auto 34px; padding: 30px 32px 24px; border-radius: var(--r-lg); background: var(--cream-2); color: var(--ink); text-align: left; }
.install-store__tag { margin: 0 0 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ochre-ink); }
.install-store h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 36px); line-height: 1.1; letter-spacing: -.01em; color: var(--navy); }
.install-store > p:not(.install-store__tag) { max-width: none; margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.install-store strong { color: var(--navy); }
.install-store__cta { margin: 0 0 22px; }
.install-steps { display: block; width: 100%; height: auto; border-radius: 14px; }
.install-direct { max-width: 760px; margin: 0 auto 26px; }
.install-direct__label { margin: 0 0 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: rgba(236, 230, 218, .62); }
.download-note { max-width: 620px; margin: 0 auto 22px; font-size: 12.5px; line-height: 1.7; color: rgba(236, 230, 218, .78); }
.download-note strong { color: var(--cream); }

/* ---------------- Footer ---------------- */
.site-footer { background: #F1EEE5; border-top: 1px solid var(--line); padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 54px; }
.footer-brand p { font-size: 13px; line-height: 1.75; color: var(--ink-2); max-width: 290px; margin-top: 18px; }
.footer-facts { margin-top: 18px !important; font-size: 9.5px !important; letter-spacing: .06em; color: var(--ochre-soft) !important; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }
.footer-col a { font-size: 13px; color: var(--ink-2); width: fit-content; transition: color .2s; }
.footer-col a:hover { color: var(--ochre-ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0 26px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 20, 34, .92); display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 1500px); max-height: 88vh; object-fit: contain; border-radius: var(--r-md); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.lightbox__close { position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(236, 230, 218, .35); background: rgba(236, 230, 218, .08); color: var(--cream); font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lightbox__close:hover { background: rgba(236, 230, 218, .2); }

/* ---------------- Contact sheet (injected) ---------------- */
.contact-sheet { position: fixed; inset: 0; z-index: 310; display: flex; align-items: center; justify-content: center; padding: 24px; }
.contact-sheet[hidden] { display: none; }
.contact-sheet__veil { position: absolute; inset: 0; background: rgba(8, 20, 34, .68); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact-sheet__card { position: relative; width: min(100%, 480px); max-height: calc(100vh - 48px); overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--cream); border-radius: var(--r-xl); padding: 38px 38px 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-sheet__close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--navy); font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.contact-sheet__k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ochre-ink); font-weight: 700; }
.contact-sheet__card h2 { font-family: var(--font-display); font-size: 36px; color: var(--navy); margin: 12px 0 10px; letter-spacing: -.02em; }
.contact-sheet__lede { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 20px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 17px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; }
.contact-row__body { flex: 1 1 220px; min-width: 0; }
.contact-row__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--ink-3); display: block; margin-bottom: 5px; font-weight: 700; }
.contact-row__mail { display: block; font-family: var(--font-mono); font-size: 13.5px; color: var(--navy); word-break: break-all; }
.contact-row__desc { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }
.contact-row__actions { display: flex; gap: 8px; }
.contact-mini { border: 1px solid var(--line); background: var(--cream); color: var(--navy); border-radius: 999px; padding: 8px 14px; font-size: 11.5px; font-weight: 560; min-width: 96px; text-align: center; transition: all .2s; }
.contact-mini:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.contact-sheet__foot { margin-top: 20px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.contact-sheet__foot a { color: var(--ochre-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Reveal (progressive enhancement) ----------------
   Content is visible by default. Only when JS is running (html.js) do
   sections start hidden and fade in, so a script failure can never leave
   a blank page. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 12.5px; }
  .hero-grid { gap: 44px; }
  .float-card--a { left: -14px; }
  .float-card--b { right: -12px; }
  .product-caption p { white-space: normal; }
}
@media (max-width: 1024px) {
  .section { padding: 88px 0; }
  .site-header .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px; box-shadow: var(--shadow);
    display: none;
  }
  .site-header .nav.is-open { display: flex; }
  .site-header .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .site-header .nav a::after { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { padding-bottom: 40px; }
  .float-card--a { left: 0; bottom: -14px; }
  .float-card--b { right: 0; top: auto; bottom: 8px; }
  .proof-strip { grid-template-columns: 1fr 1fr; margin-top: 70px; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .principles-grid .principle:last-child { grid-column: 1 / -1; }
  .boundary-hero { grid-template-columns: 1fr; }
  .trust-layout { grid-template-columns: 1fr; }
  .trust-foot { grid-template-columns: 1fr 1fr; }
  .trust-foot__cta { grid-column: 1 / -1; }
  .chain__grid { grid-template-columns: 1fr; }
  .uncertainty-block { grid-template-columns: 1fr; gap: 30px; }
  .audit-note { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .section-head--left { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: clamp(48px, 11vw, 68px); }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { padding: 30px 26px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid .principle:last-child { grid-column: auto; }
  .boundary-notes { grid-template-columns: 1fr; gap: 20px; }
  .chain__facts { grid-template-columns: 1fr; }
  .trust-bands { padding: 26px 22px; }
  .band { grid-template-columns: 100px 76px 1fr; gap: 8px; }
  .trust-foot { grid-template-columns: 1fr; gap: 26px; }
  .product-tabs { flex-wrap: wrap; }
  .product-tab { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; }
  .chat-states { padding: 14px 16px; }
  .product-caption { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
  .product-caption .mono { white-space: normal; }
  .product-stage { padding: 14px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; }
  .steps { grid-template-columns: 1fr; }
  .boundary-hero__stat strong { font-size: 58px; }
  .audit-note { padding: 30px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-col a { padding-block: 6px; }
  /* Boundary table becomes stacked cards on narrow screens. */
  .boundary-table { min-width: 0; font-size: 13.5px; }
  .boundary-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .boundary-table tr { display: grid; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .boundary-table tr:last-child { border-bottom: 0; }
  .boundary-table td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; border: 0; padding: 0; align-items: start; }
  .boundary-table .pill { white-space: normal; display: inline-block; line-height: 1.5; max-width: 100%; }
  .boundary-table td:first-child { grid-column: 1 / -1; font-size: 14.5px; margin-bottom: 2px; }
  .boundary-table td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
  .boundary-table td:first-child::before { content: none; }
  .lightbox { display: block; overflow: auto; padding: 64px 12px 24px; }
  .lightbox img { max-width: none; width: 1200px; max-height: none; }
  .lightbox__close { position: fixed; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .header-inner { height: 68px; gap: 12px; }
  .brand-word { font-size: 12px; letter-spacing: .12em; }
  .header-cta { display: none; }
  .site-header .nav { top: 68px; }
  .hero h1 { font-size: 46px; }
  .hero-lede { font-size: 15.5px; }
  .hero-actions .btn { width: 100%; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div { padding: 20px 22px; }
  .float-card { position: static; max-width: none; margin-top: 12px; }
  .hero-visual { padding-bottom: 0; display: flex; flex-direction: column; gap: 12px; }
  .float-card--a, .float-card--b { order: 2; }
  .app-frame { order: 1; }
  .section-head h2, .section h2 { font-size: 36px; }
  .problem-card h3 { font-size: 32px; }
  .problem-card blockquote p { font-size: 19px; }
  .answer-card, .evidence-card { padding: 26px 22px; }
  .evidence-fields { grid-template-columns: 96px 1fr; }
  .chain__flow { gap: 8px; }
  .chain__flow span { font-size: 9px; padding: 7px 11px; }
  .uncertainty-block__copy h3 { font-size: 32px; }
  .unc-panel { padding: 22px 20px; }
  .unc-panel__answer { font-size: 20px; }
  .download { padding: 76px 0 70px; }
  .download-actions .btn { width: 100%; }
  .install-store { padding: 22px 18px 18px; }
  .install-store h3 { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .contact-sheet__card { padding: 30px 24px 26px; }
  .contact-sheet__card h2 { font-size: 30px; }
  .contact-row__actions { width: 100%; }
  .contact-mini { flex: 1 1 0; }
  .lightbox { padding: 16px; }
  .band { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .band__range { text-align: right; }
  .band p { grid-column: 1 / -1; margin-top: 4px; }
  .mini-label, .problem-card__tag, .answer-card__badge, .float-card__k, .plan__flag, .trace-line, .footer-facts, .chat-states__label, .boundary-table th, .contact-sheet__foot, .download-meta { font-size: 10.5px; }
}
@media (max-width: 390px) {
  .product-tab { flex: 1 1 45%; }
  .pricing-notes { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- Legal pages ---------------- */
.legal-hero { padding: 88px 0 76px; background: linear-gradient(180deg, #FBF9F3 0%, var(--cream) 100%); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 62px); line-height: 1.08; letter-spacing: -.025em; color: var(--navy); max-width: 900px; margin: 18px 0 22px; }
.legal-lede { font-size: 16.5px; line-height: 1.8; color: var(--ink-2); max-width: 780px; }
.legal-draft { margin-top: 26px; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ochre); border-radius: var(--r-md); font-size: 13px; line-height: 1.7; color: var(--ink-2); max-width: 780px; }
.legal-draft strong { color: var(--navy); }
.canonical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.canonical-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.canonical-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ochre); }
.canonical-card__k { font-size: 9.5px; letter-spacing: .14em; color: var(--ochre-ink); font-weight: 700; }
.canonical-card strong { font-family: var(--font-display); font-size: 28px; color: var(--navy); }
.canonical-card strong span { font-family: var(--font-body); font-size: 16px; color: var(--ochre-ink); }
.canonical-card__u { font-size: 10.5px; color: var(--ink-3); word-break: break-all; }
.legal-body { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: start; }
.legal-aside h2 { font-family: var(--font-display); font-size: 40px; line-height: 1.12; color: var(--navy); margin: 16px 0 16px; letter-spacing: -.02em; }
.legal-aside__note { font-size: 12.5px; line-height: 1.7; color: var(--ink-3); font-style: italic; max-width: 300px; }
.legal-copy h3 { font-family: var(--font-display); font-size: 25px; line-height: 1.25; color: var(--navy); margin: 0 0 10px; }
.legal-copy h3:not(:first-child) { margin-top: 34px; }
.legal-copy p { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); max-width: 66ch; }
.legal-copy a { color: var(--ochre-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-contact { background: var(--navy); color: var(--cream); padding: 84px 0; text-align: center; }
.legal-contact__inner { max-width: 720px; }
.legal-contact h2 { font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 50px); color: var(--cream); margin: 16px 0 18px; letter-spacing: -.02em; }
.legal-contact p:not(.eyebrow) { font-size: 14.5px; line-height: 1.8; color: rgba(236, 230, 218, .72); }
.legal-contact p a { color: var(--ochre-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal-contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.legal-contact + .site-footer .footer-bottom { border-top: 1px solid var(--line-dark); }
.legal-contact + .site-footer { background: #0A1C2E; color: rgba(236, 230, 218, .6); }
.legal-contact + .site-footer a:hover { color: var(--ochre-soft); }

/* ---------------- 404 ---------------- */
.notfound { padding: 96px 0 110px; background: linear-gradient(180deg, #FBF9F3 0%, var(--cream) 100%); }
.notfound__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.notfound__code { display: inline-block; font-size: 10.5px; letter-spacing: .16em; color: var(--ochre-ink); border: 1px solid rgba(161, 124, 64, .35); border-radius: 999px; padding: 7px 15px; background: rgba(161, 124, 64, .07); }
.notfound h1 { font-family: var(--font-display); font-size: clamp(48px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -.03em; color: var(--navy); margin: 28px 0 24px; }
.notfound h1 em { font-style: italic; color: var(--ochre); }
.notfound__lede { font-size: 16.5px; line-height: 1.8; color: var(--ink-2); max-width: 620px; margin: 0 auto; }
.notfound__suggest { margin: 46px auto 0; max-width: 560px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.notfound__suggest > .mini-label { display: block; margin-bottom: 18px; }
.notfound__suggest ol { display: flex; flex-direction: column; }
.notfound__suggest li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.notfound__suggest li:first-child { border-top: 0; }
.notfound__suggest li .mono { font-size: 10px; color: var(--ochre-ink); font-weight: 700; }
.notfound__suggest li a { color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.notfound__suggest li a:hover { color: var(--ochre-ink); }
.notfound__suggest li a span { color: var(--ochre-ink); }
.notfound__foot { margin-top: 30px; font-size: 13px; color: var(--ink-3); }
.notfound__foot a { color: var(--ochre-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .legal-body { grid-template-columns: 1fr; gap: 30px; }
  .legal-aside h2 { font-size: 34px; }
}
@media (max-width: 760px) {
  .legal-hero { padding: 64px 0 56px; }
  .canonical-grid { grid-template-columns: 1fr; }
  .canonical-card { padding: 24px 24px; }
  .notfound { padding: 72px 0 84px; }
  .notfound__suggest { padding: 24px 22px; }
}

.page-404 .header-actions { margin-left: auto; }
@media (max-width: 560px) { .page-404 .header-cta { display: inline-flex; font-size: 12px; padding: 9px 14px; } }
@media print {
  .site-header, .hero-visual, .download, .site-footer, .lightbox, .contact-sheet, .menu-toggle, .legal-contact__actions { display: none !important; }
  .section { padding: 30px 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------------- Install options modal ---------------- */
html.install-modal-open, body.install-modal-open { overflow: hidden; }
.install-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 20px 20px; }
.install-modal[hidden] { display: none; }
.install-modal__scrim { position: absolute; inset: 0; background: rgba(13, 34, 57, .68); backdrop-filter: blur(3px); }
.install-modal__panel { position: relative; width: min(920px, 100%); max-height: 90vh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 40px 44px 44px; outline: none; }
.install-modal__close { position: sticky; top: 0; float: right; z-index: 3; width: 36px; height: 36px; margin: -10px -10px 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); color: var(--navy); cursor: pointer; transition: background .2s, border-color .2s; }
.install-modal__close:hover { background: var(--cream-2); border-color: var(--line-strong); }
.install-modal__head { padding-right: 40px; }
.install-modal__head .eyebrow { margin: 0 0 10px; }
.install-modal__head h2 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.02em; color: var(--navy); margin: 0 0 12px; }
.install-modal__lede { margin: 0; max-width: 64ch; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.install-modal__section { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.install-modal__section .eyebrow { margin: 0 0 8px; }
.install-modal__section h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.2; letter-spacing: -.01em; color: var(--navy); margin: 0 0 10px; }
.install-modal__section p { margin: 0 0 8px; max-width: 68ch; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.install-modal__cta { margin: 20px 0 0 !important; }
.install-modal__cta--store { margin: 16px 0 22px !important; }
.install-modal__shot { display: block; width: 100%; max-width: 760px; height: auto; margin: 20px auto 0; border-radius: 14px; }
.install-modal__alt { margin: 18px 0 0 !important; font-size: 12.5px !important; color: var(--ink-3) !important; }
.install-modal__alt a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .install-modal { padding: 0; }
  .install-modal__panel { width: 100%; max-height: 100vh; height: 100%; border: 0; border-radius: 0; padding: 22px 18px 30px; }
  .install-modal__close { top: 8px; margin: -4px -2px 0 8px; }
  .install-modal__head { padding-right: 30px; }
  .install-modal__head h2 { font-size: 30px; }
  .install-modal__section { margin-top: 26px; padding-top: 26px; }
  .install-modal__section h3 { font-size: 22px; }
  .install-modal__shot { border-radius: 10px; }
}

/* ---------------- Two-column download area ---------------- */
.download-grid { max-width: 760px; margin: 0 auto; text-align: center; }
.install-direct h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.01em; color: var(--cream); }
@media (min-width: 1024px) {
  .download-inner { max-width: 1200px; }
  .download-grid { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: start; text-align: left; }
  .download-grid .install-store { max-width: none; margin: 0 32px 0 0; }
  .download-grid .install-direct { max-width: none; margin: 0; padding: 30px 56px 0 32px; border-left: 1px solid rgba(236, 230, 218, .18); text-align: left; }
  .download-grid .download-actions { justify-content: flex-start; margin: 22px 0 18px; }
  .download-grid .download-note { max-width: none; margin: 0 0 18px; text-align: left; }
  .download-grid .download-alt { text-align: left; }
}

/* ---------------- Two-column install modal ---------------- */
.install-modal__panel { width: min(1000px, 92vw); }
.install-modal__grid { display: block; }
@media (min-width: 900px) {
  .install-modal__panel { padding: 40px 40px 44px; }
  .install-modal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: start; }
  .install-modal__grid .install-modal__section { margin-top: 0; padding-top: 0; border-top: 0; }
  .install-modal__grid .install-modal__section:first-child { padding-right: 28px; }
  .install-modal__grid .install-modal__section:last-child { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .install-modal__panel { width: 100%; }
}

/* ---------------- Equal-height columns ---------------- */
.install-figure { width: 100%; }
.install-figure img { display: block; width: 100%; height: auto; }
.download-alt--shared { margin: 18px auto 0 !important; text-align: center; }
.install-modal__alt--shared { margin: 26px 0 0 !important; text-align: left; }

@media (min-width: 1024px) {
  .download-grid { align-items: stretch; }
  .download-grid .install-store,
  .download-grid .install-direct { display: flex; flex-direction: column; }
  .download-grid .install-direct { padding: 30px 64px 24px 32px; }
  .download-grid .install-store h3,
  .download-grid .install-direct h3 { font-size: clamp(26px, 2.6vw, 32px); margin: 0 0 10px; }
  .download-grid .install-store__tag,
  .download-grid .install-direct__label { margin: 0 0 8px; }
  .download-grid .install-figure { margin-top: auto; aspect-ratio: 760 / 440; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
  .download-grid .install-figure img { height: 100%; object-fit: contain; object-position: bottom center; }
}

@media (min-width: 900px) {
  .install-modal__grid { align-items: stretch; }
  .install-modal__grid .install-modal__section { display: flex; flex-direction: column; }
  .install-modal__grid .install-figure { margin-top: auto; aspect-ratio: 760 / 440; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
  .install-modal__grid .install-figure img { height: 100%; object-fit: contain; object-position: bottom center; }
  .install-modal__grid .install-figure .install-modal__shot { margin: 0; max-width: none; }
}
