/* Cogent Systems site styles. They sit on top of the iq-ui design system (iq-ui.css is loaded first):
   every colour, font, space, radius and focus value comes from its tokens, so the three themes
   (system, light, dark, high contrast) work here without a rule of their own. Buttons, badges,
   forms, tables, the top bar and popovers are iq-ui components; this file holds the page layout
   and the marketing pieces iq-ui does not have. Self-hosted; no external resources; no animation
   that runs without the visitor's action (WCAG 2.2.2). */

:root {
  --radius: var(--radius-lg);
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1180px;
  --p: var(--accent);
}

.theme-lexiq, .product-card--lexiq, .status-row--lexiq, .flow__step--lexiq, .signin-card--lexiq, .roadmap-track--lexiq, .roadmap-tab--lexiq, .choice--lexiq, .product-dot--lexiq { --p: var(--lexiq); }
.theme-practiceiq, .product-card--practiceiq, .status-row--practiceiq, .flow__step--practiceiq, .signin-card--practiceiq, .roadmap-track--practiceiq, .roadmap-tab--practiceiq, .choice--practiceiq, .product-dot--practiceiq { --p: var(--practiceiq); }
.theme-codexiq, .product-card--codexiq, .status-row--codexiq, .flow__step--codexiq, .signin-card--codexiq, .roadmap-track--codexiq, .roadmap-tab--codexiq, .choice--codexiq, .product-dot--codexiq { --p: var(--codexiq); }
.theme-aegisiq, .product-card--aegisiq, .status-row--aegisiq, .flow__step--aegisiq, .signin-card--aegisiq, .roadmap-track--aegisiq, .roadmap-tab--aegisiq, .choice--aegisiq, .product-dot--aegisiq { --p: var(--aegisiq); }
.theme-learniq, .product-card--learniq, .status-row--learniq, .flow__step--learniq, .signin-card--learniq, .roadmap-track--learniq, .roadmap-tab--learniq, .choice--learniq, .product-dot--learniq { --p: var(--lexiq); }

/* ---------- base (iq-ui sets the element defaults; the site reads at 16 px) ---------- */
html { scroll-padding-top: calc(var(--topbar-h) + 64px); }
body.iq-site { font-size: var(--fs-lg); min-height: 100vh; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--fw-semibold); line-height: 1.12; letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1em; }
[role="list"] { list-style: none; }
strong { font-weight: var(--fw-semibold); color: var(--text); }
main:focus { outline: none; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 18px;
}
.display { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: var(--fw-bold); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 24px; overflow-wrap: break-word; }
.display--product { font-size: clamp(2rem, 5vw, 3.6rem); }
.h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 12px; }
.h4 { font-size: 1.14rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 40em; }
.gradient-text { color: var(--accent); }
.fine-print { font-size: var(--fs-md); color: var(--muted); margin-top: 20px; }

/* ---------- pre-release bar and header ---------- */
.prerelease { background: var(--info-bg); border-bottom: var(--border-width) solid var(--line); font-size: var(--fs-md); color: var(--text); }
.prerelease__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-block: 9px; }
.prerelease a { color: var(--text); font-weight: var(--fw-semibold); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot--live { background: var(--ok); }

/* The top bar is iq-ui's. The site's links sit inline from 1280 px; below that, or with scripts off,
   they wrap (scripts off) or move into the Menu popover (scripts on). */
.site-header .iq-brand { gap: var(--space-2); align-items: center; }
.site-header .iq-brand__by, .site-footer .iq-brand__by { display: inline; font-size: var(--fs-sm); }
.logo-mark { width: 30px; height: 30px; }
.logo-mark__from { stop-color: var(--accent); }
.logo-mark__to { stop-color: var(--practiceiq); }
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.site-nav__list > li > a, .nav-group__summary {
  display: inline-flex; align-items: center; min-height: var(--control-h); padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md); color: var(--text-2); text-decoration: none; font-weight: var(--fw-medium);
}
.site-nav__list > li > a:hover, .nav-group__summary:hover { color: var(--text); background: var(--surface-2); }
.site-nav__list > li > a[aria-current="page"], .nav-group__summary.is-current, .nav-group__details[open] .nav-group__summary {
  color: var(--text); background: var(--selected);
}
.site-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.site-menu, .site-theme { display: none; }
.iq-js .site-menu, .iq-js .site-theme { display: block; }
.site-theme__note { margin: var(--space-2) var(--space-2) 0; max-width: 16rem; }
.site-menu__panel { min-width: 16rem; max-height: calc(100vh - var(--topbar-h) - var(--space-4)); overflow-y: auto; }
.site-menu__panel .iq-popover__item[aria-current="page"] { background: var(--selected); font-weight: var(--fw-semibold); }
@media (min-width: 1280px) {
  .iq-js .site-menu { display: none; }
}
@media (max-width: 1279px) {
  .iq-js .site-nav, .iq-js .site-actions { display: none; }
  .site-header { flex-wrap: nowrap; }
  .site-header .iq-topbar__end { flex: 1 1 auto; justify-content: flex-end; }
}
@media (max-width: 399px) {
  .site-header .iq-brand__by { display: none; }
}
/* No scripts: the links wrap under the brand and the menu buttons (which need scripts) are not shown. */
html:not(.iq-js) .site-header { flex-wrap: wrap; }
html:not(.iq-js) .site-nav { order: 3; flex-basis: 100%; }

.nav-group { position: relative; }
.nav-group__summary { gap: 6px; cursor: pointer; list-style: none; }
.nav-group__summary::-webkit-details-marker { display: none; }
.nav-group__summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.nav-group__details[open] .nav-group__summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-group__menu {
  position: absolute; right: 0; top: calc(100% + var(--space-1)); z-index: var(--z-dropdown); min-width: 13rem; padding: var(--space-2); list-style: none;
  display: grid; gap: 2px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--line-strong);
  background: var(--surface); box-shadow: var(--elevation-2);
}
.nav-group__menu a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.nav-group__menu a:hover { background: var(--surface-2); color: var(--text); }
.nav-group__menu a[aria-current="page"] { background: var(--selected); font-weight: var(--fw-semibold); }

/* ---------- links, icons, calls to action ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-semibold); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 14px; height: 14px; }
.icon--lg { width: 40px; height: 40px; }
.iq-btn--lg { text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(48px, 8vw, 104px) clamp(48px, 7vw, 88px); overflow: hidden; border-bottom: var(--border-width) solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 75%);
}
.hero--compact { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.hero--center { text-align: center; }
.hero--center .lede { margin-inline: auto; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__narrow { max-width: 880px; }
.hero--center .hero__narrow { margin-inline: auto; }
.hero__note { margin-top: 22px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.hero__note::before { content: ""; width: 24px; height: 1px; background: var(--line-strong); flex: none; }
.hero__copy .cta-row { margin-top: 34px; }
.hero--product .cta-row { margin-top: 28px; }
.product-dot { width: 10px; height: 10px; border-radius: 2px; background: var(--p); display: inline-block; flex: none; }

/* The orbit diagram is a still illustration drawn from the theme tokens. */
.hero__visual { display: flex; justify-content: center; }
.orbit { width: min(100%, 460px); height: auto; overflow: visible; }
.orbit__ring { fill: none; stroke: var(--line); stroke-width: 1; }
.orbit__ring--outer { stroke-dasharray: 2 8; stroke: var(--line-strong); }
.orbit__core { stroke-width: 1.5; fill: var(--surface-2); stroke: var(--accent); }
.orbit__core-title { fill: var(--text); font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 34px; letter-spacing: -1px; }
.orbit__core-sub { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.spoke { stroke-width: 1.5; stroke-dasharray: 4 6; }
.spoke--lexiq { stroke: var(--lexiq); } .spoke--practiceiq { stroke: var(--practiceiq); }
.spoke--codexiq { stroke: var(--codexiq); } .spoke--aegisiq { stroke: var(--aegisiq); }
.node circle { fill: var(--surface); stroke-width: 1.5; }
.node text { fill: var(--text); font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 12.5px; }
.node--lexiq circle { stroke: var(--lexiq); }
.node--practiceiq circle { stroke: var(--practiceiq); }
.node--codexiq circle { stroke: var(--codexiq); }
.node--aegisiq circle { stroke: var(--aegisiq); }
.orbit__sat { fill: var(--accent); }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 8vw, 104px); position: relative; }
.section--tight { padding-block: clamp(32px, 5vw, 72px); }
.section--panel { background: var(--surface-2); border-block: var(--border-width) solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head__lede { color: var(--text-2); font-size: 1.08rem; }

/* product cards */
.product-grid { display: grid; gap: 20px; }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 24px;
  border-radius: var(--radius); background: var(--surface); border: var(--border-width) solid var(--line);
  border-top: 3px solid var(--p); color: var(--text); text-decoration: none; box-shadow: var(--elevation-1);
}
.product-card:hover { color: var(--text); border-color: var(--line-strong); border-top-color: var(--p); box-shadow: var(--elevation-2); }
.product-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-card__name { font-family: var(--font-display); font-size: 1.6rem; font-weight: var(--fw-bold); letter-spacing: -0.03em; color: var(--p); }
.product-card__short { font-weight: var(--fw-semibold); font-size: 1.05rem; }
.product-card__body { color: var(--text-2); }
.product-card__more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-semibold); color: var(--text); }
.product-card:hover .product-card__more { text-decoration: underline; }

/* flow */
.flow { display: grid; gap: 16px; list-style: none; }
.flow__step { position: relative; padding: 26px 24px 22px; border-radius: var(--radius); background: var(--surface); border: var(--border-width) solid var(--line); border-top: 3px solid var(--p); }
.flow__step p { color: var(--text-2); margin: 0; }
.flow__num { display: block; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--p); letter-spacing: 0.1em; margin-bottom: 14px; }

/* traits */
.trait-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.trait { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: var(--border-width) solid var(--line); }
.trait p { color: var(--text-2); margin: 0; }
.trait__icon, .cap__icon, .principle__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg); margin-bottom: 18px;
  color: var(--text); background: var(--selected); border: var(--border-width) solid var(--line-strong);
}

/* status list */
.status-split { display: grid; gap: 40px; align-items: start; }
.status-list { display: grid; gap: 12px; }
.status-row { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface); border: var(--border-width) solid var(--line); border-left: 4px solid var(--p); }
.status-row__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.status-row__name { font-weight: var(--fw-bold); font-size: 1.1rem; color: var(--p); text-decoration: none; }
.status-row__name:hover { text-decoration: underline; }
.status-row p { color: var(--text-2); margin: 0; }

/* CTA band */
.section--cta { padding-top: 0; }
.cta-band {
  position: relative; display: grid; gap: 28px; align-items: center;
  padding: clamp(24px, 5vw, 48px); border-radius: var(--radius); border: var(--border-width) solid var(--line-strong);
  background: var(--surface); box-shadow: var(--elevation-1);
}
.cta-band p { color: var(--text-2); margin: 0; max-width: 36em; }
.cta-band .h2 { margin-bottom: 10px; }

/* product page */
.status-callout {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; margin-top: 28px; padding: 16px 18px;
  border-radius: var(--radius-lg); border: var(--border-width) solid var(--line-strong); background: var(--surface); max-width: 760px;
}
.status-callout p { margin: 0; color: var(--text-2); flex: 1 1 260px; }
.cap-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.cap { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: var(--border-width) solid var(--line); }
.cap p { color: var(--text-2); margin: 0; }
.cap__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* delivery page */
.cap__tags { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cap-grid--single { grid-template-columns: 1fr; }
.block-title { margin-top: clamp(40px, 6vw, 72px); }
.jump-nav { margin-top: 28px; }
.jump-nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.jump-nav a { display: inline-flex; align-items: center; min-height: var(--control-h); padding: 6px 14px; border-radius: var(--radius-pill); border: var(--border-width) solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; }
.jump-nav a:hover { background: var(--surface-2); }
.scope-cols { display: grid; gap: 16px; }
.scope-col { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: var(--border-width) solid var(--line); border-top: 4px solid var(--muted); }
.scope-col--alpha { border-top-color: var(--ok); }
.scope-col--development { border-top-color: var(--info); }
.scope-col header { margin-bottom: 14px; }
.scope-col header .h4 { margin-top: 12px; margin-bottom: 4px; }
.scope-col header p { margin: 0; font-size: var(--fs-md); }
.scope-list { list-style: none; display: grid; gap: 12px; color: var(--text-2); }
.layers { list-style: none; display: grid; gap: 0; margin-bottom: clamp(32px, 5vw, 56px); counter-reset: layer; border: var(--border-width) solid var(--line); border-radius: var(--radius); overflow: hidden; }
.layer { display: grid; gap: 6px 24px; padding: 18px 22px; background: var(--surface); border-bottom: var(--border-width) solid var(--line); counter-increment: layer; }
.layer:last-child { border-bottom: 0; }
.layer:nth-child(even) { background: var(--surface-2); }
.layer__name { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--text); }
.layer__name::before { content: counter(layer, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent); margin-right: 12px; }
.layer__body { color: var(--text-2); }
.role-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; }
.role-grid .audience h4 { margin-bottom: 8px; }
.can-cannot { display: grid; gap: 32px; }
.can-cannot > div > .h4 { margin-bottom: 14px; }
.audience-list--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.audience .h4 .stage { vertical-align: middle; margin-left: 6px; }
.notice .stage--indicative { margin-left: 4px; }
.principle { display: grid; gap: 8px 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border: var(--border-width) solid var(--line-strong); border-left: 6px solid var(--p); background: var(--surface); }
.principle p { color: var(--text-2); }
.principle p:last-child { margin-bottom: 0; }
.two-col { display: grid; gap: 32px; }
.audience-list { display: grid; gap: 14px; }
.audience { padding: 22px 24px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--line); background: var(--surface); }
.audience p { margin: 0; color: var(--text-2); }

/* ---------- roadmap and timeline (status is the word, the badge icon and the shape of the node) ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin-top: 26px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 10px; }

.timeline { position: relative; list-style: none; display: grid; gap: 18px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--p); opacity: 0.5; border-radius: 2px; }
.timeline__item { position: relative; }
.timeline__node { position: absolute; left: -34px; top: 24px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); background: var(--bg); }
.timeline__item--done .timeline__node { border-color: var(--ok); background: var(--ok); }
.timeline__item--in_progress .timeline__node { border-color: var(--info); background: radial-gradient(circle, var(--info) 40%, var(--bg) 45%); }
.timeline__card { padding: 22px 24px; border-radius: var(--radius); border: var(--border-width) solid var(--line); background: var(--surface); }
.timeline__item--in_progress .timeline__card { border-color: var(--info); }
.timeline__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.timeline__title { font-size: 1.25rem; letter-spacing: -0.015em; }
.timeline__when { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); letter-spacing: 0.04em; margin: 6px 0 10px; }
.timeline__summary { color: var(--text-2); }
.checklist { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.checklist__item { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.checklist__mark { position: relative; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--muted); }
.checklist__item--done .checklist__mark { border-color: var(--ok); background: var(--ok); }
.checklist__item--done .checklist__mark::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist__item--in_progress .checklist__mark { border-color: var(--info); background: linear-gradient(90deg, var(--info) 50%, transparent 50%); }
.checklist__item--planned .checklist__name { color: var(--text-2); }

.roadmap-tabs-wrap { position: sticky; top: var(--topbar-h); z-index: var(--z-sticky); background: var(--bg); border-block: var(--border-width) solid var(--line); }
.roadmap-tabs { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; }
.roadmap-tab { flex: none; display: inline-flex; align-items: center; min-height: var(--control-h); padding: 4px 14px; border-radius: var(--radius-pill); color: var(--text-2); text-decoration: none; font-weight: var(--fw-semibold); border: var(--border-width) solid transparent; }
.roadmap-tab:hover { color: var(--text); background: var(--surface-2); }
.roadmap-tab[aria-current="true"] { color: var(--text); border-color: var(--p); background: var(--selected); }
.roadmap { padding-block: clamp(40px, 6vw, 72px); display: grid; gap: clamp(56px, 8vw, 96px); }
.roadmap-track__head { margin-bottom: 28px; max-width: 760px; }
.roadmap-track[hidden] { display: none; }

/* ---------- forms (inputs, labels, hints and errors are iq-ui's) ---------- */
.form-layout { display: grid; gap: 40px; align-items: start; }
.form-intro .lede { margin-bottom: 28px; }
.bullets { list-style: none; display: grid; gap: 14px; color: var(--text-2); }
.bullets li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.bullets .icon { color: var(--accent); margin-top: 3px; }
.form-card { padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); border: var(--border-width) solid var(--line-strong); background: var(--surface); box-shadow: var(--elevation-2); }
.field-row { display: grid; gap: 0 18px; }
.choice-row, .choice-grid { display: grid; gap: 10px; }
.choice-row .iq-choice, .choice-grid .iq-choice { margin-bottom: 0; }
.choice--card { padding: 12px 14px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--line-strong); background: var(--surface); cursor: pointer; align-items: center; }
.choice--card:hover { background: var(--surface-2); }
.choice--card:has(input:checked) { border-color: var(--p); background: var(--selected); box-shadow: inset 4px 0 0 var(--p); }
.choice--card:has(input:focus-visible) { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.choice--card input:focus-visible { outline: none; }
.choice--card input { margin-top: 0; }
.choice--consent { color: var(--text-2); }
.iq-field[aria-invalid="true"] .choice--card, .field--consent:has(.iq-field__error) .choice--consent { border-color: var(--danger); }
.field--consent .iq-choice { padding: 12px 14px; border: var(--border-width) solid var(--line); border-radius: var(--radius-lg); }
.notice { padding: 14px 18px; border-radius: var(--radius-lg); margin-bottom: 20px; border: var(--border-width) solid var(--line-strong); background: var(--surface); }
.notice--warn { background: var(--warn-bg); border-color: var(--warn); color: var(--text); }
.notice--info { background: var(--info-bg); border-color: var(--info); color: var(--text); margin-top: 8px; max-width: 760px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* thanks */
.thanks__badge {
  display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 28px;
  color: var(--on-accent); background: var(--accent); box-shadow: var(--elevation-2);
}
.thanks .muted { max-width: 36em; margin-inline: auto; }
.thanks .cta-row { margin-top: 30px; }

/* sign in */
.signin-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.signin-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: var(--border-width) solid var(--line); border-top: 3px solid var(--p); }
.signin-card__head { display: flex; align-items: center; gap: 10px; }
.signin-card__head .h4 { margin: 0; }
.signin-card p { color: var(--text-2); margin: 0 0 12px; }
.signin-card .iq-btn { margin-top: auto; align-self: flex-start; text-decoration: none; }
.signin-card__closed { margin-top: 12px !important; display: inline-flex; align-items: flex-start; gap: 8px; color: var(--muted) !important; }
.signin-card__closed .dot { background: transparent; border: 2px solid var(--muted); margin-top: 0.4em; }

/* prose */
.prose { max-width: 760px; padding-block: 8px clamp(48px, 8vw, 96px); color: var(--text-2); }
.prose h2 { color: var(--text); font-size: 1.45rem; margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0.5em; }
.prose ul { padding-left: 1.3em; display: grid; gap: 0.5em; margin-bottom: 1em; }
.prose li::marker { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: var(--border-width) solid var(--line-strong); background: var(--surface); padding-top: 48px; }
.site-footer__grid { display: grid; gap: 32px; padding-bottom: 40px; }
.site-footer__brand p { margin-top: 14px; max-width: 26em; }
.site-footer__heading { font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); font-weight: var(--fw-medium); margin-bottom: 14px; }
.site-footer__col ul { list-style: none; display: grid; gap: 4px; }
.site-footer__col a { display: inline-block; min-height: var(--target-min); padding-block: 2px; color: var(--text-2); }
.site-footer__col a:hover { color: var(--text); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 32px; border-top: var(--border-width) solid var(--line); color: var(--muted); font-size: var(--fs-md); }
.site-footer__base p { margin: 0; }

/* ---------- motion: a one-off fade on scroll, only when the visitor has not asked for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease-standard), transform 0.5s var(--ease-standard); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .thanks__badge { animation: pop 0.5s var(--ease-standard) both; }
}
@keyframes pop { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- responsive ---------- */
@media (min-width: 600px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .choice-row, .choice-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
  .status-split { grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .status-split .section-head { position: sticky; top: calc(var(--topbar-h) + 32px); }
  .cta-band { grid-template-columns: 1.3fr auto; }
  .principle { grid-template-columns: auto 1fr; }
  .principle__icon { margin-bottom: 0; }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
  .scope-cols { grid-template-columns: repeat(3, 1fr); }
  .layer { grid-template-columns: 220px 1fr; align-items: baseline; }
  .can-cannot { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
  .incident__body { grid-template-columns: 1.05fr 1fr; }
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 32px; }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .form-layout { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .form-layout--narrow { grid-template-columns: 1fr 1fr; }
  .form-intro { position: sticky; top: calc(var(--topbar-h) + 40px); }
}
@media (max-width: 999px) {
  .hero__visual { order: -1; }
  .orbit { width: min(78vw, 360px); }
}
@media (max-width: 767px) {
  .roadmap-tabs-wrap { top: 0; }
}
@media (max-width: 599px) {
  .hero__visual { display: none; }
  .prerelease .dot { display: none; }
  .prerelease__inner { display: block; }
  .prerelease a { margin-left: 4px; }
  .hero__note::before { display: none; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .iq-btn { width: 100%; white-space: normal; text-align: center; }
  .product-card { padding: 24px 20px 22px; }
  .timeline { padding-left: 28px; }
  .timeline__node { left: -28px; width: 18px; height: 18px; }
  .timeline::before { left: 8px; }
  .timeline__card { padding: 18px; }
  .gets__item { flex-direction: column; }
  .gets__text { flex-basis: auto; }
  .scenario__step { grid-template-columns: 28px 1fr; }
}

/* ---------- company pages (plan, market, security, scenarios, lessons) ---------- */
.company-links { margin-top: 26px; }
.company-links ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.company-links a { display: inline-flex; align-items: center; min-height: var(--control-h); padding: 4px 12px; border-radius: var(--radius-pill); border: var(--border-width) solid var(--line-strong); background: var(--surface); color: var(--text-2); text-decoration: none; }
.company-links a:hover { color: var(--text); background: var(--surface-2); }
.company-links a[aria-current="page"] { color: var(--text); border-color: var(--accent); background: var(--selected); }

.prose-block { color: var(--text-2); max-width: 760px; }
.prose-block p:last-child { margin-bottom: 0; }

.audience-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; }
.audience-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: var(--border-width) solid var(--line); background: var(--surface); }
.audience-card .h4 { margin: 0; }
.audience-card p { margin: 0; color: var(--text-2); }
.audience-card .audience-card__proof { font-size: var(--fs-md); color: var(--muted); margin-top: auto; padding-top: 10px; border-top: var(--border-width) solid var(--line); }
.gets { list-style: none; display: grid; gap: 10px; }
.gets__item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; }
.gets__text { flex: 1 1 180px; }

.fact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; margin-bottom: 32px; }
.fact { padding: 22px 22px 18px; border-radius: var(--radius); border: var(--border-width) solid var(--line); background: var(--surface); }
.fact p { margin: 0; color: var(--text-2); }
.fact .fact__figure { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: var(--fw-bold); letter-spacing: -0.03em; color: var(--text); margin-bottom: 8px; }
.cite { font-size: var(--fs-md); color: var(--text-2); }
.cite::before { content: "Source: "; }

.sources { list-style: none; display: grid; gap: 12px; counter-reset: src; max-width: 900px; }
.sources__item { counter-increment: src; display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; font-size: var(--fs-md); }
.sources__item::before { content: counter(src) "."; grid-row: span 2; color: var(--muted); font-family: var(--font-mono); padding-top: 3px; }
.sources__item a { overflow-wrap: anywhere; }
.sources__meta { color: var(--muted); font-size: var(--fs-md); }

.layer-list { list-style: none; display: grid; gap: 14px; margin-bottom: 40px; }
.layer-list .layer { padding: 22px 24px; border-radius: var(--radius); border: var(--border-width) solid var(--line); background: var(--surface); }
.layer--app { border-color: var(--practiceiq); border-left-width: 6px; }
.layer p { color: var(--text-2); }
.layer p:last-child { margin-bottom: 0; font-size: var(--fs-md); }

.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
.steps__item { counter-increment: step; position: relative; padding: 20px 22px 18px 64px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--line); background: var(--surface); }
.steps__item::before { content: counter(step, decimal-leading-zero); position: absolute; left: 22px; top: 21px; font-family: var(--font-mono); color: var(--accent); }
.steps__item p { margin: 0; color: var(--text-2); }

.roadmap-summary { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.roadmap-summary__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 16px 20px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--line); border-left: 4px solid var(--p); background: var(--surface); }
.roadmap-summary__name { font-weight: var(--fw-bold); color: var(--p); text-decoration: none; min-width: 120px; }
.roadmap-summary__name:hover { text-decoration: underline; }
.roadmap-summary__m { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--text-2); }

/* Tables are iq-ui's (no caption here: the section heading labels the scroll region). */
.table-wrap { --iq-table-max-h: none; margin-bottom: 24px; }
.table-wrap .iq-table thead th:last-child { right: auto; border-left: 0; z-index: 1; }
.table-wrap .iq-table td { color: var(--text-2); }
.table-wrap .iq-table tbody th { color: var(--text); }
@media (min-width: 768px) {
  .iq-table--wide { min-width: 980px; }
  .iq-table--wide td:nth-child(2) { white-space: nowrap; }
}

.audience-card .investor-notice { font-size: var(--fs-md); color: var(--text); padding: 12px 14px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--warn); background: var(--warn-bg); }

.landscape { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.landscape__group { padding: 24px; border-radius: var(--radius); border: var(--border-width) solid var(--line); background: var(--surface); }
.landscape__group ul { padding-left: 1.1em; display: grid; gap: 10px; color: var(--text-2); }
.landscape__group li::marker { color: var(--accent); }

.register-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-bottom: 32px; }
.register { padding: 24px; border-radius: var(--radius); border: var(--border-width) solid var(--line-strong); background: var(--surface); }
.register__total { font-family: var(--font-mono); color: var(--muted); letter-spacing: 0.04em; }
.register__counts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-2); }
.register__n { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.5rem; color: var(--text); margin-right: 4px; }
.control { padding: 22px 22px 20px; border-radius: var(--radius); background: var(--surface); border: var(--border-width) solid var(--line); }
.control p { color: var(--text-2); margin: 0; }
.control .h4 { margin: 0 0 8px; }
.control .cap__top { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
.page-company .table-wrap + .cap-grid { margin-top: 24px; }

.scenario-banner { margin: 22px 0 0; padding: 12px 16px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--warn); background: var(--warn-bg); color: var(--text); max-width: 760px; }
.scenario-index { margin-top: 24px; }
.scenario-index ol { list-style: none; display: grid; gap: 6px; padding: 0; }
.scenario-index a { color: var(--accent); }
.scenarios { display: grid; gap: clamp(32px, 5vw, 56px); padding-block: clamp(32px, 5vw, 56px); }
.scenario { padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); border: var(--border-width) solid var(--line-strong); background: var(--surface); }
.scenario > .scenario-banner { margin: 0 0 20px; }
.scenario__head { max-width: 760px; margin-bottom: 20px; }
.scenario__steps { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.scenario__step { display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; align-items: start; padding: 14px 16px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--line); background: var(--bg); }
.scenario__step p { margin: 0; color: var(--text-2); }
.scenario__step .stage { grid-column: 2; justify-self: start; }
.scenario__num { font-family: var(--font-mono); color: var(--accent); padding-top: 3px; }
.scenario__foot p { color: var(--text-2); margin-bottom: 8px; }

.grade-key { list-style: none; display: grid; gap: 10px; margin-top: 22px; color: var(--text-2); }
.grade-key li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lessons { display: grid; gap: clamp(40px, 6vw, 72px); padding-block: clamp(32px, 5vw, 56px); }
.lesson-group { display: grid; gap: 18px; }
.incident { padding: clamp(18px, 3.5vw, 32px); border-radius: var(--radius); border: var(--border-width) solid var(--line); background: var(--surface); }
.incident__head .h3 { margin-bottom: 0; }
.incident__body { display: grid; gap: 20px 32px; margin-top: 12px; }
.incident__label { font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); font-weight: var(--fw-medium); margin: 14px 0 8px; }
.incident__body p, .incident__facts { color: var(--text-2); }
.incident__facts { padding-left: 1.1em; display: grid; gap: 8px; margin-bottom: 10px; }
.incident__sources { font-size: var(--fs-md); }
.incident__sources .cite::before { content: ""; }
.responses { list-style: none; display: grid; gap: 10px; }
.response { padding: 14px 16px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--line); border-left: 4px solid var(--line-strong); background: var(--bg); }
.response--prevents { border-left-color: var(--ok); }
.response--contains { border-left-color: var(--warn); }
.response p { margin: 0; }
.response .response__tags { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 8px; }

.company-strip { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-bottom: 20px; }
.company-strip__card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: var(--radius); border: var(--border-width) solid var(--line); background: var(--surface); color: var(--text-2); text-decoration: none; }
.company-strip__card:hover { color: var(--text-2); border-color: var(--line-strong); box-shadow: var(--elevation-1); }
.company-strip__name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.15rem; color: var(--text); }
.company-strip__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-semibold); color: var(--text); }
.company-strip__card:hover .company-strip__more { text-decoration: underline; }

/* Forced colours (Windows high contrast): keep the shapes that carry meaning visible. */
@media (forced-colors: active) {
  .timeline__node, .checklist__mark { forced-color-adjust: none; border-color: CanvasText; }
  .timeline__item--done .timeline__node, .checklist__item--done .checklist__mark { background: Highlight; }
  .product-card, .status-row, .flow__step, .signin-card { border-color: CanvasText; }
}
