/* KNOWRIZ placeholder: the main site's brand (navy and sky blue on slate, teal secondary), Inter self-hosted.
   Follows the device setting; the theme button overrides it. No framework, no inline styles, no third-party requests.

   CLASS VOCABULARY FOR PAGE BODIES (pages/*.html). Page bodies sit inside <main id="main">; build.mjs adds header, banner,
   trust band and footer, so a body never repeats them.
   Layout: section, section.alt, .wrap, .page-head, .hero (.hero-grid), .prose
   Text: h1 h2 h3 (em = accent colour), .lead, .sub, .small, .mono
   Actions: .btn .btn-cta (primary), .btn .btn-ghost, .cta-row
   Cards and lists: .grid > .card (.tag label), .steps, .note (.note.warn), .plain (.plain.spaced), .facts, .kv
   Bands: .band.band--dark, .band.band--accent. Illustration: .win .win-bar .win-body .ask .reply .sources .badge, .pill + .dot
   Home pieces: .strip .strip-list, .head .eyebrow, .grid.three, .flow, .chips, .split, .faq, .narrow, [data-reveal]
   Utility: .sr-only
*/
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-latin-wght.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --background: #F8FAFC;
  --surface-card: #F1F5F9;
  --surface-elevated: #FFFFFF;
  --surface-border: #E2E8F0;
  --surface-border-hover: #CBD5E1;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-foreground: #FFFFFF;
  --accent-text: #1D4ED8;
  --secondary: #0F766E;
  --focus-ring: #1D4ED8;
  --radius: 0.5rem;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #0F172A;
    --surface-card: #162036;
    --surface-elevated: #1E293B;
    --surface-border: #2B3A52;
    --surface-border-hover: #475569;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --primary: #60A5FA;
    --primary-hover: #93C5FD;
    --primary-foreground: #0F172A;
    --accent-text: #60A5FA;
    --secondary: #2DD4BF;
    --focus-ring: #93C5FD;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0F172A;
  --surface-card: #162036;
  --surface-elevated: #1E293B;
  --surface-border: #2B3A52;
  --surface-border-hover: #475569;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --primary: #60A5FA;
  --primary-hover: #93C5FD;
  --primary-foreground: #0F172A;
  --accent-text: #60A5FA;
  --secondary: #2DD4BF;
  --focus-ring: #93C5FD;
}
/* Bands redefine the tokens, so every component inside one follows. They look the same in both themes. */
.band--dark {
  --background: #0B1B33;
  --surface-card: #102443;
  --surface-elevated: #142C50;
  --surface-border: #274A78;
  --surface-border-hover: #4A6C99;
  --text-primary: #F8FAFC;
  --text-secondary: #D3DEEF;
  --text-muted: #AFC0DA;
  --primary: #93C5FD;
  --primary-hover: #BFDBFE;
  --primary-foreground: #0B1B33;
  --accent-text: #93C5FD;
  --secondary: #5EEAD4;
  --focus-ring: #BFDBFE;
}
.band--accent {
  --background: #1E40AF;
  --surface-card: #1E3A8A;
  --surface-elevated: #1E3A8A;
  --surface-border: #3B5FD0;
  --surface-border-hover: #93C5FD;
  --text-primary: #FFFFFF;
  --text-secondary: #E0EAFF;
  --text-muted: #DBEAFE;
  --primary: #FFFFFF;
  --primary-hover: #DBEAFE;
  --primary-foreground: #1E3A8A;
  --accent-text: #FFFFFF;
  --secondary: #CCFBF1;
  --focus-ring: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text-primary); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--primary-foreground); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent-text); }
.lead { font-size: 1.2rem; color: var(--text-secondary); max-width: 62ch; }
.sub { color: var(--text-secondary); max-width: 66ch; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface-card) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--surface-border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-primary); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.brand:hover { color: var(--text-primary); }
.brand { letter-spacing: -.025em; }
.brand img { width: 32px; height: 32px; }
.main { display: flex; align-items: center; gap: 1.3rem; }
.main a { color: var(--text-secondary); text-decoration: none; font-size: .95rem; font-weight: 500; }
.main a:hover, .main a[aria-current="page"] { color: var(--text-primary); }
.main a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu-btn { display: none; background: var(--surface-elevated); color: var(--text-primary); border: 1px solid var(--surface-border-hover); border-radius: var(--radius); padding: .45rem .9rem; font: inherit; font-size: .95rem; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); padding: .7rem 1.25rem; font-weight: 650; text-decoration: none; border: 1px solid transparent; font-size: 1rem; text-align: center; }
.btn-cta { background: var(--primary); color: var(--primary-foreground); }
.btn-cta:hover { background: var(--primary-hover); color: var(--primary-foreground); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--surface-border-hover); }
.btn-ghost:hover { background: var(--surface-card); color: var(--text-primary); }
.main .btn-cta, .main .btn-cta:hover { color: var(--primary-foreground); padding: .5rem 1rem; font-size: .92rem; }

.theme-btn { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--surface-border-hover); border-radius: var(--radius); cursor: pointer; color: var(--text-primary); }
.theme-btn[hidden] { display: none; }
.theme-btn span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.menu-btn { min-height: 44px; }

/* placeholder banner: on every page */
.ph-banner { background: color-mix(in srgb, var(--primary) 12%, var(--background)); border-bottom: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); font-size: .92rem; padding: .6rem 0; }
.ph-banner strong { color: var(--text-primary); }

/* hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); background: radial-gradient(900px 400px at 80% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .55rem; background: var(--surface-elevated); border: 1px solid var(--surface-border-hover); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; color: var(--text-secondary); margin-bottom: 1.2rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* sections and cards */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section.alt { background: var(--surface-card); border-block: 1px solid var(--surface-border); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1rem; margin-top: 1.6rem; }
.grid + p { margin-top: 1.6rem; }
.card { background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.3); padding: 1.2rem 1.25rem; }
.card:hover { border-color: var(--surface-border-hover); }
.card p { color: var(--text-secondary); font-size: .96rem; margin: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); margin-bottom: .5rem; }
.tag.soon { color: var(--text-muted); }

/* steps and notes */
.steps { list-style: none; counter-reset: step; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.steps li { min-height: 2.4rem; counter-increment: step; position: relative; padding-left: 3.2rem; color: var(--text-secondary); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--secondary); border: 2px solid var(--secondary); }
.steps li strong { color: var(--text-primary); }
.note { background: var(--surface-card); border: 1px solid var(--surface-border); border-left: 4px solid var(--secondary); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1.4rem 0; max-width: 70ch; }
.note.warn { border-left-color: var(--primary); }
.note p { margin: 0 0 .6em; }
.note p:last-child { margin-bottom: 0; }

/* text pages */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
/* full-width text sections: heading on the left, text on the right */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 3rem; align-items: start; }
.cols + .cols { margin-top: 2.5rem; }
.cols ul { padding-left: 1.2rem; color: var(--text-secondary); margin-top: 0; }
.cols .facts { margin-top: 0; }
.cols .faq { margin-top: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 1rem 0 0; }
.facts dt { color: var(--text-muted); font-size: .92rem; }
.facts dd { margin: 0; }

/* trust block, above the footer on every page */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .9rem !important; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 0; }
.kv.one { grid-template-columns: 1fr; }
.kv dt { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.kv dd { margin: 0; color: var(--text-primary); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.plain { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .35rem; }
.plain.spaced { margin-top: 0; gap: .8rem; }
.small { font-size: .82rem; color: var(--text-muted); }

/* footer */


@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bar { flex-wrap: wrap; }
  .theme-btn { order: 0; }
  .main { order: 2; }
  .js .menu-btn { display: inline-block; }
  .main { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: .8rem; }
  .js .main { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface-card); border-bottom: 1px solid var(--surface-border); padding: .5rem 1rem 1rem; }
  .js .main.open { display: flex; }
  .main a { padding: .7rem .2rem; }
  .main .btn-cta { margin-top: .5rem; padding: .7rem 1rem; }
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { margin-bottom: .7rem; }
}
@media (max-width: 420px) {
  .kv { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* bands */
section.band { background: var(--background); color: var(--text-primary); }
.band .btn-cta:hover { color: var(--primary-foreground); }
.head { max-width: 40rem; }
section .eyebrow { color: var(--secondary); }
.closing { text-align: center; }
.closing p { color: var(--text-secondary); }
.closing .cta-row { justify-content: center; }
.closing h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.btn { min-height: 44px; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }

/* hero backdrop */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--surface-border) 1px, transparent 1px), linear-gradient(90deg, var(--surface-border) 1px, transparent 1px); background-size: 3rem 3rem; opacity: .5; mask-image: linear-gradient(to bottom, black, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }

/* product window: invented sample content, labelled as such */
.win { margin: 0; min-width: 0; background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.6); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--text-primary) 45%, transparent); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem; background: var(--surface-card); border-bottom: 1px solid var(--surface-border); font-size: .82rem; color: var(--text-secondary); }
.win-bar .badge { margin-left: auto; }
.dots { display: inline-flex; gap: .3rem; }
.dots i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--surface-border-hover); }
.badge { border: 1px solid var(--surface-border-hover); border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; color: var(--text-muted); }
.win-body { display: grid; gap: .8rem; padding: 1.1rem; }
.win-body p { margin: 0; }
.ask { justify-self: end; max-width: 85%; background: var(--primary); color: var(--primary-foreground); border-radius: 1rem 1rem .2rem 1rem; padding: .6rem .9rem; font-size: .95rem; }
.reply { background: var(--background); border: 1px solid var(--surface-border); border-radius: 1rem 1rem 1rem .2rem; padding: .7rem .9rem; font-size: .95rem; }
.reply--none { border-style: dashed; border-color: var(--secondary); }
.cite { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 4px; border: 1px solid var(--primary); color: var(--accent-text); font-size: .7rem; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sources li { display: flex; gap: .7rem; border: 1px solid var(--surface-border); border-left: 3px solid var(--secondary); border-radius: var(--radius); padding: .55rem .75rem; font-size: .85rem; }
.sources b { color: var(--secondary); }
.sources strong { display: block; }
.sources q { color: var(--text-secondary); }
.win figcaption { padding: .6rem 1.1rem .9rem; font-size: .8rem; color: var(--text-muted); }

/* strip, grids, flow, chips, split, questions */
section.strip { padding: 1.4rem 0; background: var(--surface-elevated); border-block: 1px solid var(--surface-border); }
.strip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.strip-list li { border-left: 3px solid var(--secondary); padding-left: .8rem; }
.strip-list strong { display: block; }
.strip-list span { font-size: .85rem; color: var(--text-muted); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { transition: transform .2s ease, border-color .2s ease; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); border-color: var(--primary); } }
.flow { list-style: none; counter-reset: flow; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.flow li { counter-increment: flow; background: var(--surface-elevated); border: 1px solid var(--surface-border); border-top: 3px solid var(--secondary); border-radius: var(--radius); padding: 1.2rem; }
.flow li::before { content: counter(flow, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.6rem; color: var(--accent-text); margin-bottom: .4rem; }
.flow p { margin: 0; color: var(--text-secondary); }
.chips { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { border: 1px solid var(--surface-border-hover); border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; color: var(--text-secondary); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.faq { display: grid; gap: .6rem; margin-top: 1.6rem; }
.faq details { background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 650; }
.faq details p { margin: 0; padding: 0 1.1rem 1rem; color: var(--text-secondary); }

/* sticky button on phones, shown by site.js when no other call to action is on screen */
.stickybar { display: none; position: fixed; inset: auto 0 0 0; z-index: 60; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface-card); border-top: 1px solid var(--surface-border); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.stickybar.is-shown { transform: none; visibility: visible; }
.stickybar .btn { width: 100%; }

/* motion: reveal once; opacity and transform only */
.js-reveal [data-reveal] { transition: opacity .6s ease, transform .6s ease; }
.js-reveal [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: no-preference) {
  .hero .win .ask, .hero .win .reply, .hero .win .sources li { animation: rise .6s ease-out both; }
  .hero .win .reply { animation-delay: .35s; }
  .hero .win .sources li { animation-delay: .7s; }
  .hero .win .sources li + li { animation-delay: .9s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
/* icons and band texture */
.icon { width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: var(--radius); background: var(--surface-card); fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .icon { display: block; margin-bottom: .8rem; }
.strip-list .icon { display: block; margin-bottom: .5rem; }
section.band--dark { background-image: radial-gradient(48rem 24rem at 90% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%), radial-gradient(var(--surface-border) 1px, transparent 1px); background-size: 100% 100%, 1.6rem 1.6rem; }

/* background artwork */
.hero::before { background-image: url('/assets/images/geo-hex-light.svg'); background-size: 56px 98px; opacity: 1; }
:root[data-theme="dark"] .hero::before { background-image: url('/assets/images/geo-hex-dark.svg'); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero::before { background-image: url('/assets/images/geo-hex-dark.svg'); } }
section.alt, section.band, .page-head { position: relative; isolation: isolate; }
section.alt::before, section.band::after, .page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
section.alt::before, .page-head::before { background-image: url('/assets/images/geo-triangles-light.svg'); background-size: 60px 52px; mask-image: linear-gradient(180deg, black, transparent 55%); }
:root[data-theme="dark"] section.alt::before, :root[data-theme="dark"] .page-head::before { background-image: url('/assets/images/geo-triangles-dark.svg'); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) section.alt::before, :root:not([data-theme="light"]) .page-head::before { background-image: url('/assets/images/geo-triangles-dark.svg'); } }
section.band--dark::after { background-image: url('/assets/images/geo-diamond-dark.svg'); background-size: 48px 48px; mask-image: linear-gradient(115deg, black, transparent 55%); }
section.band--accent::after { background-image: url('/assets/images/geo-arcs-dark.svg'); background-size: 64px 64px; mask-image: linear-gradient(240deg, black, transparent 65%); }

/* header shadow and section list */
.top.is-scrolled { box-shadow: 0 8px 24px -18px color-mix(in srgb, var(--text-primary) 60%, transparent); }
section.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.subnav { position: sticky; top: 64px; z-index: 40; background: var(--background); border-bottom: 1px solid var(--surface-border); }
.subnav ul { list-style: none; margin: 0; padding: .4rem 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: flex; align-items: center; min-height: 44px; padding: 0 .85rem; white-space: nowrap; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.subnav a:hover { background: var(--surface-card); color: var(--text-primary); }
.subnav a[aria-current="true"] { background: var(--primary); color: var(--primary-foreground); }
section[id], h2[id] { scroll-margin-top: 8rem; }

/* capability cards */
.domains { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.domain { position: relative; overflow: hidden; padding: 1.4rem; border-radius: calc(var(--radius) * 1.6); border: 1px solid var(--surface-border); background: linear-gradient(160deg, var(--surface-elevated), var(--surface-card)); }
.domain--wide { grid-column: span 2; }
.domain h3 { margin: 0 0 .5rem; }
.domain p { color: var(--text-secondary); margin: 0; font-size: .95rem; }
.domain p.domain__tag { display: inline-block; margin-bottom: .8rem; padding: .1rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--secondary); border: 1px solid var(--secondary); }
.domain__glyph { display: block; margin-bottom: .8rem; }
.domain__glyph .icon { width: 3.4rem; height: 3.4rem; padding: .75rem; }

/* sample passage and file tree */
.passage { color: var(--text-secondary); font-size: .92rem; }
.passage mark { background: color-mix(in srgb, var(--secondary) 22%, transparent); color: var(--text-primary); border-radius: 3px; }
.tree { list-style: none; margin: 0; padding: .8rem 1.1rem; font-size: .88rem; }
.tree li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; padding: .35rem 0 .35rem 1.6rem; border-bottom: 1px dashed var(--surface-border); }
.tree li:last-child { border-bottom: 0; }
.tree li.tree__root { padding-left: 0; }
.tree .icon { width: 1.1rem; height: 1.1rem; padding: 0; background: none; }
.tree span { color: var(--text-muted); }

/* process */
.pipeline { list-style: none; counter-reset: pipe; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pipeline li { counter-increment: pipe; position: relative; padding: 1.4rem 1.2rem 1.2rem; border: 1px solid var(--surface-border); border-top: 3px solid var(--primary); border-radius: calc(var(--radius) * 1.6); background: var(--surface-elevated); }
.pipeline li:nth-child(even) { border-top-color: var(--secondary); }
.pipeline li::after { content: counter(pipe, decimal-leading-zero); position: absolute; top: .6rem; right: .9rem; font-weight: 800; font-size: 1.6rem; color: var(--text-muted); }
.pipeline__icon { display: block; margin-bottom: .8rem; }
.pipeline__icon .icon { width: 3rem; height: 3rem; padding: .65rem; }
.pipeline p { margin: 0; color: var(--text-secondary); font-size: .95rem; }

/* comparison table */
.table-wrap { margin-top: 1.6rem; overflow-x: auto; border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.6); background: var(--surface-elevated); }
.compare { width: 100%; min-width: 36rem; border-collapse: collapse; text-align: left; font-size: .95rem; }
.compare th, .compare td { padding: .85rem 1rem; border-bottom: 1px solid var(--surface-border); text-align: left; vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--surface-card); }
.compare thead th:last-child { color: var(--accent-text); }
.compare td { color: var(--text-secondary); }
.compare td:last-child { background: color-mix(in srgb, var(--primary) 7%, transparent); color: var(--text-primary); }

.steps--one { grid-template-columns: 1fr; margin-top: 0; }
.split--top { align-items: start; }

/* founders */
.founder { display: flex; gap: 1.1rem; align-items: center; margin: 1.2rem 0 0; padding: 1.1rem; border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.6); background: var(--surface-elevated); }
.founder img { width: 6rem; height: 6rem; flex: none; border-radius: 1.2rem; object-fit: cover; box-shadow: 0 0 0 2px var(--primary); }
.founder p { margin: 0; }
.founder + p { margin-top: 1rem; }
.founder__name { font-weight: 800; font-size: 1.1rem; }
.founder__role { color: var(--text-secondary); font-size: .9rem; }
.founder a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }

/* closing */
.closing { text-align: left; }
.closing__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.closing__card { padding: 1.4rem; border: 1px solid var(--surface-border-hover); border-radius: calc(var(--radius) * 1.6); background: var(--surface-card); }
.closing .closing__card .cta-row { justify-content: flex-start; margin: 0 0 1rem; }
.closing__card .small { margin: 0; }

/* footer */
.foot { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; background: var(--background); color: var(--text-secondary); font-size: .93rem; }
.foot a:not(.btn) { color: var(--accent-text); }
.foot-hero { display: grid; justify-items: center; text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--surface-border); }
.foot-hero .brand { margin: 0 0 .6rem; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem 0; }
.foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-primary); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { min-width: 0; overflow-wrap: anywhere; }
.foot-cols li > a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot-cols li .small { display: block; }
.foot-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tcard { min-width: 0; overflow-wrap: anywhere; padding: 1.4rem; border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.6); background: var(--surface-card); }
.tcard strong { color: var(--text-primary); }
.tcard--recognition { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.tcard--recognition > div { flex: 1 1 14rem; }
.foot-qr { display: block; padding: .4rem; border-radius: .6rem; background: white; line-height: 0; }
.legal-line { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--surface-border); text-align: center; font-size: .85rem; color: var(--text-muted); }

/* back to top */
.totop { position: fixed; right: 1rem; bottom: 1rem; z-index: 55; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-elevated); box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--text-primary) 60%, transparent); }
.totop[hidden] { display: none; }
.totop svg { fill: none; stroke-width: 4; stroke-linecap: round; }
.totop__track { stroke: var(--surface-border); }
.totop__bar { stroke: var(--primary); }
.totop__arrow { stroke: var(--accent-text); stroke-width: 3; stroke-linejoin: round; }


/* narrow screens: kept after the component rules above so these win */
@media (max-width: 860px) {
  .split, .grid.three, .flow, .cols, .steps { grid-template-columns: 1fr; }
  .strip-list { grid-template-columns: 1fr 1fr; }
  .stickybar { display: block; }
  body { padding-bottom: 4.5rem; }
}
@media (max-width: 420px) { .strip-list { grid-template-columns: 1fr; } }
/* header order: the theme button sits at the far right on wide screens, beside Menu on narrow ones */
.brand { margin-right: auto; }
@media (min-width: 861px) { .theme-btn { order: 3; } }
@media (max-width: 420px) { .bar { column-gap: .5rem; } .brand { font-size: 1.1rem; gap: .45rem; } }
@media print { .stickybar { display: none; } .js-reveal [data-reveal] { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .domains, .pipeline, .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .closing__grid, .foot-trust { grid-template-columns: 1fr; }
  .totop { bottom: 5.5rem; }
}
@media (max-width: 600px) {
  .domains, .pipeline, .foot-cols { grid-template-columns: 1fr; }
  .domain--wide { grid-column: auto; }
  .founder { flex-direction: column; align-items: flex-start; }
}
@media print { .subnav, .totop { display: none; } }
