/* Kayak CybeAssist public website. Brand: Kayak Innovations palette (Deep Current, Teal, Amber), Archivo and Source Serif 4.
   No third-party assets. Every colour pair used for text meets WCAG 2.2 AA on its background. */
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/app/assets/fonts/Archivo-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 200 900; font-display: swap; src: url(/app/assets/fonts/SourceSerif4-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/app/assets/fonts/SourceSerif4-italic.woff2) format('woff2'); }

:root {
  --ink: #061A22;          /* obsidian navy, darkest surface */
  --deep: #0E2F3C;         /* Deep Current */
  --deep-2: #0B2631;
  --deep-3: #123B4B;
  --teal: #17807E;         /* Teal, on light */
  --teal-hi: #3FB8B3;      /* Teal on dark */
  --teal-ink: #126E6C;     /* Teal for text on light surfaces (5.3:1 or better on every light band) */
  --mint: #CDE8E3;
  --mist: #EEF4F1;
  --paper: #F8FAF9;        /* off-white */
  --amber: #EE9B1E;        /* risk and assessment indicator */
  --bronze: #9C630E;       /* amber for text on light */
  --blue: #6FA8FF;         /* restrained electric blue, accent on dark only */
  --slate: #3E5563;
  --line: #D4DEE2;
  --line-dark: #24495A;
  --text-dark: #E9F2EF;    /* body text on dark */
  --muted-dark: #A9C2C6;   /* secondary text on dark (>= 7:1 on --ink) */
  --sev-critical: #B42318; --sev-high: #C4501B; --sev-medium: #9C630E; --sev-low: #3E5563; --sev-info: #5B6B6D;
  --r: 14px; --r-sm: 8px;
  --wrap: 1180px;
  --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --shadow: 0 1px 2px rgba(6, 26, 34, .06), 0 8px 28px rgba(6, 26, 34, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--deep); font: 18px/1.6 var(--serif); text-rendering: optimizeLegibility; }
body.plain { background: var(--paper); }
img, svg, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
h1, h2, h3, h4, .eyebrow, .btn, nav, label, th, .chip, .kicker, summary, legend, .tabs, .mono-label { font-family: var(--display); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5.6vw, 68px); font-stretch: 118%; font-weight: 750; }
h2 { font-size: clamp(28px, 3.4vw, 44px); font-stretch: 114%; font-weight: 720; }
h3 { font-size: 21px; font-stretch: 108%; font-weight: 680; }
h4 { font-size: 16px; margin: 0 0 .4em; font-weight: 680; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; max-width: 760px; }
.muted { color: var(--slate); }
.small { font-size: 15px; }
code, pre, .mono { font-family: var(--mono); font-size: .86em; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-head :focus-visible, .site-foot :focus-visible { outline-color: var(--amber); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 14px; font-family: var(--display); font-weight: 700; }
.skip:focus { left: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 17px; } }

/* ------------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(6, 26, 34, .92); color: var(--text-dark); border-bottom: 1px solid rgba(63, 184, 179, .18); }
@supports (backdrop-filter: blur(8px)) { .site-head { background: rgba(6, 26, 34, .94); backdrop-filter: saturate(140%) blur(12px); } }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.site-head .wrap { max-width: calc(var(--wrap) + 120px); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; white-space: nowrap; margin-left: auto; }
.nav a { color: var(--text-dark); text-decoration: none; font-size: 15px; font-weight: 560; padding: 10px 9px; border-radius: 6px; }
.nav a:hover { background: rgba(63, 184, 179, .12); color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--teal-hi); border-radius: 0; }
.head-cta { display: flex; gap: 10px; align-items: center; flex: none; }
.portal { color: var(--mint); font-family: var(--display); font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 6px; display: inline-flex; gap: 6px; align-items: center; }
.portal:hover { color: #fff; }
.portal svg { width: 16px; height: 16px; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-dark); color: var(--text-dark); border-radius: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; font: 600 15px var(--display); cursor: pointer; }
@media (max-width: 1240px) {
  .js .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .head-row { flex-wrap: wrap; }
  .js .nav, .js .head-cta { display: none; }
  .js .site-head.open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0 0 8px; }
  .js .site-head.open .head-cta { display: flex; width: 100%; padding-bottom: 16px; flex-wrap: wrap; }
  .js .site-head.open .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line-dark); border-radius: 0; box-shadow: none; }
  .js .site-head.open .nav a[aria-current="page"] { color: var(--teal-hi); }
  .nav { margin-left: 0; }
}

/* ------------------------------------------------------------------ buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-size: 16px; font-weight: 680; text-decoration: none; cursor: pointer; line-height: 1.2; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #F6AE3F; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text-dark); border-color: rgba(205, 232, 227, .55); }
.btn-ghost:hover { border-color: var(--teal-hi); color: #fff; background: rgba(63, 184, 179, .1); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-line:hover { background: var(--deep); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.head-cta .btn { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; white-space: nowrap; border: 1px solid currentColor; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-live { color: #0E6B67; background: #E3F3F0; border-color: #9FD3CC; }
.st-partial { color: #7A4C08; background: #FCF0DA; border-color: #EBC583; }
.st-planned { color: #3E5563; background: #EEF1F3; border-color: #C3CDD3; }
.st-concept { color: #5B3D8F; background: #F1ECF9; border-color: #CDBDE8; }
.st-expert { color: #6E3A10; background: #F7EBE1; border-color: #DDBB9E; }
.st-blocked { color: #8F1D1D; background: #FBEAEA; border-color: #E4AFAF; }
.dark .st-live { color: #7FE0D8; background: rgba(63, 184, 179, .12); border-color: rgba(63, 184, 179, .45); }
.dark .st-partial { color: #F5C26E; background: rgba(238, 155, 30, .12); border-color: rgba(238, 155, 30, .45); }
.dark .st-planned { color: #C3D3D7; background: rgba(195, 211, 215, .08); border-color: rgba(195, 211, 215, .35); }
.dark .st-concept { color: #D2C2F2; background: rgba(170, 140, 230, .1); border-color: rgba(170, 140, 230, .4); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; }
.dark .eyebrow, .hero-story .eyebrow { color: var(--teal-hi); }
.kicker { font-size: 14px; font-weight: 700; color: var(--bronze); letter-spacing: .02em; }

/* ------------------------------------------------------------------ sections */
.band { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.band.tight { padding: clamp(48px, 6vw, 80px) 0; }
.band.alt { background: var(--mist); }
.band.white { background: #fff; }
.dark { background: var(--ink); color: var(--text-dark); }
.dark a:not(.btn) { color: var(--teal-hi); }
.dark a:not(.btn):hover { color: #fff; }
.dark .muted, .dark .lede { color: var(--muted-dark); }
.dark.deep { background: var(--deep); }
.section-head { max-width: 820px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--slate); font-size: 19px; }
.dark .section-head p { color: var(--muted-dark); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split > *, .grid > *, .tab-panel, [role="tabpanel"] { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--slate); font-size: 17px; }
.card .chip { align-self: flex-start; }
.card .more { margin-top: auto; padding-top: 6px; font-family: var(--display); font-weight: 650; font-size: 15px; }
.dark .card { background: rgba(14, 47, 60, .6); border-color: var(--line-dark); box-shadow: none; }
.dark .card p { color: var(--muted-dark); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--deep); flex: none; }
.icon svg { width: 24px; height: 24px; }
.dark .icon { background: rgba(63, 184, 179, .14); color: var(--teal-hi); }
.list-check { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 30px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.list-x li::before { background: var(--slate) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.dark .list-check li::before { background-color: var(--teal); }
.note { border-left: 4px solid var(--amber); background: #FFF8EC; padding: 16px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 16.5px; color: var(--deep); }
.note strong { font-family: var(--display); }
.dark .note { background: rgba(238, 155, 30, .1); color: var(--text-dark); }
.page-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(63, 184, 179, .22), transparent 60%), radial-gradient(900px 500px at 0% 120%, rgba(111, 168, 255, .12), transparent 60%), var(--ink);
  color: var(--text-dark); padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(63, 184, 179, .35) 1px, transparent 1.4px); background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 85%); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 85%); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; font-size: clamp(36px, 5vw, 60px); }
.page-hero .lede { color: var(--muted-dark); }
.crumbs { font-family: var(--display); font-size: 14px; color: var(--muted-dark); margin-bottom: 18px; }
.crumbs a { color: var(--mint); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--mint); text-decoration: none; border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; }
.toc a:hover { border-color: var(--teal-hi); color: #fff; }

/* ------------------------------------------------------------------ home hero (WebGL story) */
.hero-story { position: relative; background: var(--ink); color: var(--text-dark); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; margin-bottom: -100vh; margin-bottom: -100svh; z-index: 0; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { position: absolute; inset: 0; background:
  radial-gradient(600px 400px at 70% 40%, rgba(63, 184, 179, .30), transparent 70%),
  radial-gradient(500px 360px at 20% 80%, rgba(111, 168, 255, .16), transparent 70%),
  url("/site/img/network-fallback.svg") center/cover no-repeat, var(--ink); }
.webgl-on .hero-fallback { opacity: 0; transition: opacity .8s ease; }
.hero-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 26, 34, .92) 0%, rgba(6, 26, 34, .55) 42%, rgba(6, 26, 34, 0) 70%), linear-gradient(0deg, rgba(6, 26, 34, .9), transparent 22%); }
@media (max-width: 800px) { .hero-stage::after { background: linear-gradient(0deg, rgba(6, 26, 34, .94) 10%, rgba(6, 26, 34, .45) 60%, rgba(6, 26, 34, .2)); } }
.hero-intro, .story-step { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero-intro { padding: 110px 0 80px; }
.hero-intro .wrap, .story-step .wrap { width: 100%; }
.hero-copy { max-width: 700px; }
.hero-copy h1 { font-size: clamp(40px, 6.2vw, 78px); margin-bottom: 22px; text-shadow: 0 2px 30px rgba(6, 26, 34, .6); }
.hero-copy h1 .accent { color: var(--teal-hi); }
.hero-copy .lede { color: #CFE0E2; margin-bottom: 30px; font-size: clamp(19px, 1.9vw, 23px); text-shadow: 0 1px 18px rgba(6, 26, 34, .8); }
.hero-proof { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--display); font-size: 14.5px; color: var(--muted-dark); }
.hero-proof span { display: inline-flex; gap: 8px; align-items: center; }
.hero-proof span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-hi); box-shadow: 0 0 10px var(--teal-hi); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 1.5px; height: 34px; background: linear-gradient(var(--teal-hi), transparent); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue::after { animation: cue 2.2s ease-in-out infinite; } }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
.story-step .panel { max-width: 470px; background: rgba(6, 26, 34, .72); border: 1px solid rgba(63, 184, 179, .28); border-radius: var(--r); padding: 28px 30px; backdrop-filter: blur(6px); }
.story-step .panel h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.story-step .panel p { color: #CFE0E2; margin: 0 0 10px; font-size: 17.5px; }
.story-step .panel .chip { margin-top: 6px; }
.story-step .step-no { font-family: var(--mono); font-size: 13px; color: var(--teal-hi); letter-spacing: .1em; margin-bottom: 10px; display: block; }
.story-step.right .wrap { display: flex; justify-content: flex-end; }
@media (max-width: 800px) { .story-step { align-items: flex-end; padding-bottom: 12vh; } .story-step.right .wrap { justify-content: flex-start; } }
.story-progress { position: absolute; z-index: 3; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.story-progress li { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--teal-hi); opacity: .6; }
.story-progress li.on { background: var(--teal-hi); opacity: 1; box-shadow: 0 0 12px var(--teal-hi); }
@media (max-width: 800px) { .story-progress { display: none; } }
.motion-toggle { position: absolute; z-index: 4; right: 18px; bottom: 18px; display: inline-flex; gap: 8px; align-items: center; background: rgba(6, 26, 34, .75); color: var(--text-dark);
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: 600 14px var(--display); cursor: pointer; }
.motion-toggle:hover { border-color: var(--teal-hi); }
.motion-toggle svg { width: 14px; height: 14px; }
.motion-toggle[hidden] { display: none; }

/* preloader: a pulsing security node; it never blocks reading (removed on load, and by CSS after 2.4 s if scripts fail) */
.preloader { position: fixed; inset: 0; z-index: 90; background: var(--ink); display: grid; place-items: center; animation: pre-out .45s ease 2.4s forwards; }
.preloader.done { animation: pre-out .45s ease forwards; }
.pre-node { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.pre-node i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(63, 184, 179, .5); }
.pre-node i:nth-child(2) { inset: 18px; border-color: rgba(63, 184, 179, .35); }
.pre-node i:nth-child(3) { inset: 36px; border-color: rgba(111, 168, 255, .35); }
.pre-node b { width: 18px; height: 18px; border-radius: 50%; background: var(--teal-hi); box-shadow: 0 0 22px var(--teal-hi), 0 0 60px rgba(63, 184, 179, .6); }
.pre-label { position: absolute; top: calc(50% + 96px); left: 0; right: 0; text-align: center; font: 600 12px var(--display); letter-spacing: .3em; color: var(--muted-dark); text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .pre-node i { animation: ring 1.8s ease-out infinite; }
  .pre-node i:nth-child(2) { animation-delay: .3s; } .pre-node i:nth-child(3) { animation-delay: .6s; }
  .pre-node b { animation: glow 1.4s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }
@keyframes ring { 0% { transform: scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes glow { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes pre-out { to { opacity: 0; visibility: hidden; } }

/* ------------------------------------------------------------------ flow and diagrams */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: flow; position: relative; }
.flow > li { list-style: none; position: relative; padding: 0 14px; text-align: center; }
.flow > li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--deep); color: var(--teal-hi); font: 700 16px var(--mono); position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--mist); }
.flow > li::after { content: ""; position: absolute; top: 28px; left: calc(50% + 28px); right: calc(-50% + 28px); height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px); }
.flow > li:last-child::after { display: none; }
.flow h3 { font-size: 18px; margin-bottom: 6px; }
.flow p { font-size: 15.5px; color: var(--slate); margin: 0; }
.dark .flow > li::before { background: var(--deep-3); box-shadow: 0 0 0 6px var(--ink); }
.dark .flow p { color: var(--muted-dark); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow > li { text-align: left; padding: 0 0 0 76px; min-height: 56px; }
  .flow > li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .flow > li::after { left: 27px; right: auto; top: 60px; bottom: -18px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 14px); }
}

/* architecture explorer */
.arch { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 980px) { .arch { grid-template-columns: 1fr; } }
.arch-map { background: var(--ink); border-radius: var(--r); padding: 22px; color: var(--text-dark); display: grid; gap: 14px; position: relative; overflow: hidden; }
.arch-map::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(63, 184, 179, .18) 1px, transparent 1.4px); background-size: 22px 22px; pointer-events: none; }
.arch-lane { position: relative; border: 1px dashed rgba(63, 184, 179, .35); border-radius: 12px; padding: 14px; }
.arch-lane > h3 { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-hi); margin: 0 0 10px; }
.arch-nodes { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-node { font: 600 14.5px var(--display); color: var(--text-dark); background: rgba(14, 47, 60, .95); border: 1px solid var(--line-dark); border-radius: 9px; padding: 9px 12px; min-height: 42px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; text-align: left; }
.arch-node::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-hi); flex: none; }
.arch-node[data-status="partial"]::before { background: var(--amber); }
.arch-node[data-status="planned"]::before { background: transparent; border: 1.5px solid #C3D3D7; }
.arch-node:hover, .arch-node[aria-pressed="true"] { border-color: var(--teal-hi); background: rgba(63, 184, 179, .16); color: #fff; }
.arch-arrow { text-align: center; color: var(--teal-hi); font: 700 13px var(--mono); letter-spacing: .1em; position: relative; }
.arch-panel { position: sticky; top: 92px; }
.arch-detail { display: none; }
.arch-detail.on, .no-js .arch-detail { display: block; }
.no-js .arch-detail { margin-bottom: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font: 600 13.5px var(--display); color: var(--muted-dark); margin-top: 6px; position: relative; }
.legend span { display: inline-flex; gap: 7px; align-items: center; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--teal-hi); }
.legend i.p { background: var(--amber); } .legend i.n { background: transparent; border: 1.5px solid #C3D3D7; }

/* API workflow stepper */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.pipeline li { position: relative; padding: 0 0 18px 58px; }
.pipeline li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--line-dark), var(--line-dark)); }
.pipeline li:last-child::before { display: none; }
.pipe-btn { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: rgba(14, 47, 60, .7); border: 1px solid var(--line-dark); color: var(--text-dark);
  border-radius: 12px; padding: 12px 16px; cursor: pointer; font: inherit; min-height: 52px; }
.pipe-btn strong { font: 680 16.5px var(--display); }
.pipe-btn small { grid-column: 1 / -1; color: var(--muted-dark); font-size: 15px; }
.pipe-btn:hover, .pipe-btn[aria-expanded="true"] { border-color: var(--teal-hi); background: rgba(63, 184, 179, .12); }
.pipe-dot { position: absolute; left: 8px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--deep-3); border: 2px solid var(--teal-hi); color: var(--teal-hi); font: 700 12px var(--mono); }
.pipeline li.active .pipe-dot { background: var(--teal-hi); color: var(--ink); box-shadow: 0 0 0 6px rgba(63, 184, 179, .2); }
.pipeline li[data-status="partial"] .pipe-dot { border-color: var(--amber); color: var(--amber); }
.pipeline li[data-status="planned"] .pipe-dot { border-color: #8FA6AC; color: #C3D3D7; border-style: dashed; }
.pipe-more { margin: 10px 0 4px; color: var(--muted-dark); font-size: 16px; }
.pipe-more[hidden] { display: none; }
.pipe-more code { color: var(--mint); }

/* code */
.code { max-width: 100%; background: #04131A; color: #D7E7E5; border: 1px solid var(--line-dark); border-radius: 12px; overflow: hidden; font-size: 14px; }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px 8px 16px; background: rgba(63, 184, 179, .08); border-bottom: 1px solid var(--line-dark); font: 600 13px var(--display); color: var(--muted-dark); }
.code pre { margin: 0; padding: 16px; overflow: auto; line-height: 1.55; max-height: 520px; }
.code .k { color: #7FE0D8; } .code .s { color: #F5C26E; } .code .c { color: #8FA6AC; }
.copy { background: transparent; border: 1px solid var(--line-dark); color: var(--mint); border-radius: 6px; padding: 4px 10px; font: 600 12.5px var(--display); cursor: pointer; min-height: 32px; min-width: 56px; }
.copy:hover { border-color: var(--teal-hi); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font: 600 14.5px var(--display); color: var(--deep); cursor: pointer; min-height: 40px; }
.tab[aria-selected="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.dark .tab { border-color: var(--line-dark); color: var(--text-dark); }
.dark .tab[aria-selected="true"] { background: var(--teal-hi); color: var(--ink); border-color: var(--teal-hi); }
.tabpanel[hidden] { display: none; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); background: var(--mist); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.dark .table-wrap { background: rgba(14, 47, 60, .5); border-color: var(--line-dark); }
.dark th { background: rgba(63, 184, 179, .08); color: var(--muted-dark); }
.dark th, .dark td { border-color: var(--line-dark); }

/* findings preview */
.fp { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.fp-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--mist); }
.fp-top h3 { margin: 0; font-size: 18px; }
.fp-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-filter { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 650 13.5px var(--display); cursor: pointer; color: var(--deep); min-height: 36px; display: inline-flex; gap: 6px; align-items: center; }
.fp-filter[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.fp-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 16px 18px 6px; }
.fp-bar { font: 600 13px var(--display); color: var(--slate); }
.fp-bar b { display: block; font-size: 26px; color: var(--deep); font-stretch: 110%; }
.fp-bar i { display: block; height: 6px; border-radius: 3px; margin-top: 6px; background: var(--line); overflow: hidden; }
.fp-bar i span { display: block; height: 100%; border-radius: 3px; }
.fp-list { padding: 8px 18px 18px; max-height: 560px; overflow: auto; }
.fp-group h4 { margin: 18px 0 8px; font-size: 15px; color: var(--slate); display: flex; justify-content: space-between; gap: 10px; }
.fp-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.fp-item summary { cursor: pointer; padding: 11px 14px; display: flex; gap: 10px; align-items: center; font-size: 15.5px; font-weight: 600; list-style: none; min-height: 44px; }
.fp-item summary::-webkit-details-marker { display: none; }
.fp-item dl { margin: 0; padding: 0 14px 14px; display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 15px; }
.fp-item dt { font: 650 13px var(--display); color: var(--slate); }
.fp-item dd { margin: 0; overflow-wrap: anywhere; }
.sev { font: 750 11.5px var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; border-radius: 5px; padding: 3px 7px; flex: none; min-width: 70px; text-align: center; }
.sev-critical { background: var(--sev-critical); } .sev-high { background: var(--sev-high); } .sev-medium { background: var(--sev-medium); } .sev-low { background: var(--sev-low); } .sev-info { background: var(--sev-info); }
.fp-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--slate); background: var(--paper); }

/* screenshots */
.shot { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(6, 26, 34, .18); background: #fff; }
.shot .bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: #E7EEEC; border-bottom: 1px solid var(--line); font: 600 12.5px var(--display); color: var(--slate); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9D4D1; }
.shot .bar span { margin-left: 8px; }
.shot img { display: block; width: 100%; }
figcaption, .caption { font-size: 14.5px; color: var(--slate); margin-top: 10px; font-family: var(--display); }
.dark figcaption, .dark .caption { color: var(--muted-dark); }
.shot + figcaption { padding: 0 2px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr; } }

/* lifecycle diagram */
.lifecycle svg { width: 100%; height: auto; display: block; }
.lc-state { cursor: pointer; }
.lc-state rect { fill: #fff; stroke: var(--line); stroke-width: 1.5; transition: stroke .15s; }
.lc-state text { font: 650 14px var(--display); fill: var(--deep); }
.lc-state.ok rect { stroke: var(--teal); } .lc-state.warn rect { stroke: var(--amber); } .lc-state.bad rect { stroke: var(--sev-high); }
.lc-state:hover rect, .lc-state:focus rect, .lc-state.on rect { stroke-width: 3; fill: var(--mist); }
.lc-state:focus { outline: none; }
.lc-state:focus-visible rect { stroke: var(--bronze); stroke-width: 3.5; }
.lc-edge { stroke: #8FA6AC; stroke-width: 1.6; fill: none; }
.lc-label { font: 600 12px var(--display); fill: var(--slate); }
.lc-info { min-height: 120px; }

/* use cases */
.uc { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.uc + .uc { margin-top: 22px; }
.uc-head { padding: 24px 26px 6px; display: flex; gap: 16px; align-items: flex-start; }
.uc-head h2 { margin: 4px 0 4px; font-size: 24px; }
.uc-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.uc-body section { padding: 16px 26px 22px; border-top: 1px solid var(--line); }
.uc-body section:nth-child(odd) { border-right: 1px solid var(--line); }
.uc-body h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); }
.uc-body p, .uc-body li { font-size: 16.5px; color: var(--slate); }
.uc-body ul { margin: 0; padding-left: 20px; }
@media (max-width: 760px) { .uc-body { grid-template-columns: 1fr; } .uc-body section:nth-child(odd) { border-right: 0; } }

/* steps (how it works) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.step { display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.step::before { counter-increment: step; content: counter(step); width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--deep); color: var(--teal-hi); font: 750 28px var(--display); font-stretch: 115%; }
.step h3 { margin: 4px 0 8px; font-size: 23px; }
.step p { color: var(--slate); }
.step .who { font: 650 13.5px var(--display); color: var(--bronze); text-transform: uppercase; letter-spacing: .08em; }
.step-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; align-items: start; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; } .step::before { width: 52px; height: 52px; font-size: 22px; } .step-detail { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-size: 18px; font-weight: 650; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 500 26px var(--display); color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 22px 18px; color: var(--slate); }
.dark .faq details { background: rgba(14, 47, 60, .6); border-color: var(--line-dark); }
.dark .faq .a { color: var(--muted-dark); }
.dark .faq summary::after { color: var(--teal-hi); }

/* CTA band */
.cta-band { background: radial-gradient(900px 400px at 80% 0%, rgba(63, 184, 179, .28), transparent 65%), radial-gradient(700px 400px at 10% 100%, rgba(238, 155, 30, .14), transparent 60%), var(--deep); color: var(--text-dark); border-radius: 22px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted-dark); margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { border-top: 2px solid var(--teal); padding-top: 14px; }
.stat b { display: block; font: 760 44px var(--display); font-stretch: 118%; color: var(--deep); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: 16px; color: var(--slate); }
.dark .stat b { color: #fff; } .dark .stat span { color: var(--muted-dark); } .dark .stat { border-color: var(--teal-hi); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* forms */
.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: 15px; font-weight: 650; margin-bottom: 6px; color: var(--deep); }
fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
fieldset.field legend { padding: 0; }
/* option cards and the consent box: control and text on one line, text wraps beside the control */
.field .choice, .field .check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 16px; font-weight: 500; line-height: 1.45; }
.field .choice input, .field .check input { width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; flex: none; }
.field .check input { width: 20px; height: 20px; }
.field .req { color: var(--bronze); }
.field input, .field select, .field textarea { width: 100%; font: 17px var(--serif); color: var(--deep); background: #fff; border: 1.5px solid #6B7B7D; border-radius: 9px; padding: 11px 13px; min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--bronze); outline-offset: 1px; border-color: var(--deep); }
.field .hint { font-size: 14.5px; color: var(--slate); margin-top: 6px; }
.field [aria-invalid="true"] { border-color: var(--sev-critical); }
.field .err { color: var(--sev-critical); font: 600 14.5px var(--display); margin-top: 6px; }
.field .err:empty { display: none; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; font-size: 16px; min-height: 48px; }
.choice:has(input:checked) { border-color: var(--teal); background: #F1FAF8; }
.choice input { margin: 2px 0 0; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 18px 20px; }
.form-status:empty { display: none; }
.form-status.ok { background: #E3F3F0; border: 1px solid #9FD3CC; }
.form-status.bad { background: #FBEAEA; border: 1px solid #E4AFAF; color: #6E1515; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }

/* footer */
.site-foot { background: var(--ink); color: var(--muted-dark); padding: 64px 0 34px; font-size: 15.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dark); margin: 0 0 12px; font-stretch: 100%; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--muted-dark); text-decoration: none; display: inline-block; padding: 3px 0; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-base { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: 14px; }
.foot-brand img { height: 40px; width: auto; margin-bottom: 14px; }

/* reveal on scroll (only when scripts run and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* misc */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font: 600 13.5px var(--display); background: var(--mist); color: var(--deep); border-radius: 6px; padding: 4px 9px; }
.dark .tag { background: rgba(63, 184, 179, .12); color: var(--mint); }
.divider { height: 1px; background: var(--line); margin: 40px 0; border: 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.kv dt { font: 650 14.5px var(--display); color: var(--slate); }
.kv dd { margin: 0; }
.anchor-target { scroll-margin-top: 90px; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt2 { margin-top: 24px; } .mt3 { margin-top: 40px; } .mb0 { margin-bottom: 0; }
.not-found { min-height: 60vh; display: flex; align-items: center; }
@media print { .site-head, .site-foot, .hero-stage, .motion-toggle, .preloader { display: none !important; } body { background: #fff; } }

/* narrow phones: the pipeline stepper stacks its status chip under the title */
@media (max-width: 480px) {
  .pipeline li { padding-left: 46px; }
  .pipe-btn { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .pipe-btn .chip { justify-self: start; }
}

/* long addresses and identifiers wrap instead of widening the page */
body { overflow-wrap: break-word; }
a[href^="mailto:"], .kv dd, p code, li code, td code { overflow-wrap: anywhere; }
@media (max-width: 420px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .kv dd { margin-bottom: 8px; } }

/* product walkthrough videos */
.video-card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--ink); border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(6, 26, 34, .16); }
.video-card figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.5; color: var(--slate); }
.video-card figcaption strong { font: 700 18px var(--display); color: var(--deep); }
.video-card figcaption .muted { font: 600 13.5px var(--display); letter-spacing: .04em; }
