/* ==========================================================================
   AYVYAI — Marketing site design system
   Brand Guidelines v1.0 · Manrope + IBM Plex Mono
   ========================================================================== */

/* ---------- 0. Self-hosted fonts (SIL OFL) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette (Guidelines §06) */
  --navy: #101D32;            /* Midnight Navy — primary surfaces, headings */
  --blue: #3478F6;            /* Intelligence Blue — interaction, emphasis (non-text / large) */
  --teal: #16B8A6;            /* Flow Teal — data, secondary accents (never text on white) */
  --amber: #F2A541;           /* Value Amber — single highlights only */
  --white: #FFFFFF;
  --grey: #F4F6FA;            /* Light Grey — secondary surfaces */
  --slate: #64748B;           /* Supporting text on white */

  /* Accessible derivatives (documented in README) */
  --blue-ink: #2B6DE8;        /* Intelligence Blue shade for small text & buttons: 4.7:1 on white */
  --blue-ink-hover: #2160D4;
  --blue-on-dark: #7FA9F9;    /* links/accents on navy */
  --slate-on-grey: #56657A;   /* supporting text on Light Grey: ≥4.5:1 */
  --slate-on-dark: #9AA8BD;   /* supporting text on navy */
  --navy-2: #172742;          /* raised navy surface */
  --navy-3: #22355A;          /* navy borders */
  --line: #E3E8F0;            /* hairlines on white */
  --line-strong: #CFD7E3;

  /* Typography (Guidelines §07) */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);   /* 40 → 64 */
  --fs-h1: clamp(2.125rem, 1.6rem + 2vw, 3rem);        /* 34 → 48 */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);     /* 28 → 40 */
  --fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);     /* 20 → 24 */
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* Spacing — 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section-y: clamp(72px, 6vw + 40px, 136px);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Shape & depth — restrained */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16,29,50,.06);
  --shadow-md: 0 1px 2px rgba(16,29,50,.05), 0 12px 32px -12px rgba(16,29,50,.18);
  --shadow-lg: 0 2px 4px rgba(16,29,50,.04), 0 32px 64px -24px rgba(16,29,50,.32);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 220ms;

  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.6;
  color: var(--navy); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { color: var(--blue-ink-hover); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--navy); }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(52,120,246,.18); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200; padding: 10px 16px;
  background: var(--navy); color: #fff; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3. Layout primitives ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .66); }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: #fff; }
.section--line { border-top: 1px solid var(--line); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--blue); }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--teal); }
.section--navy .eyebrow::before, .hero .eyebrow::before, .page-hero .eyebrow::before { background: var(--teal); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--slate); max-width: 60ch; }
.section--navy .lead { color: var(--slate-on-dark); }
.section--grey .lead, .section--grey .muted { color: var(--slate-on-grey); }
.muted { color: var(--slate); }
.mono { font-family: var(--font-mono); }

.section-head { display: grid; gap: var(--s4); max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .section-head--split { grid-template-columns: 1.1fr .9fr; gap: var(--s8); } }

.grid { display: grid; gap: var(--s6); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 4. Buttons & links ---------- */
.btn {
  --_bg: var(--blue-ink); --_fg: #fff; --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--_bd);
  background: var(--_bg); color: var(--_fg); font-weight: 600; font-size: .9375rem; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { --_bg: var(--blue-ink-hover); color: var(--_fg); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn--secondary { --_bg: transparent; --_fg: var(--navy); --_bd: var(--line-strong); }
.btn--secondary:hover { --_bg: var(--grey); --_bd: var(--navy); color: var(--navy); }
.btn--ghost-dark { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.28); }
.btn--ghost-dark:hover { --_bg: rgba(255,255,255,.06); --_bd: rgba(255,255,255,.6); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; color: var(--blue-ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.section--navy .link-arrow, .on-dark .link-arrow { color: var(--blue-on-dark); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.95); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; padding: 6px 0; } /* clear space handled by padding/gap */
.brand img { height: 30px; width: auto; }  /* symbol ≈ 30–34px per guideline header */

.nav { display: none; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 6px;
  background: none; border: 0; cursor: pointer; font-size: .9375rem; font-weight: 500; color: var(--navy);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--navy); background: var(--grey); }
.nav__link[aria-current="page"] { color: var(--blue-ink); }
.nav__link svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); color: var(--slate); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 340px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
}
.menu--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav__item.is-open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 8px; color: var(--navy); }
.menu a:hover { background: var(--grey); color: var(--navy); }
.menu__icon { width: 36px; height: 36px; border-radius: 8px; background: var(--grey); display: grid; place-items: center; color: var(--navy); }
.menu a:hover .menu__icon { background: #fff; color: var(--blue-ink); }
.menu__icon svg { width: 18px; height: 18px; }
.menu__title { display: block; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.menu__desc { display: block; font-size: .8125rem; color: var(--slate); line-height: 1.45; margin-top: 2px; }
.menu__foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding: 12px 10px 4px; }

.header-cta { display: none; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }

@media (min-width: 1080px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff;
  overflow-y: auto; padding: 8px var(--gutter) 40px; display: none;
}
.nav-open .drawer { display: block; animation: drawerIn 200ms var(--ease); }
.nav-open { overflow: hidden; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer > a {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 0;
  font-size: 1.125rem; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none;
}
.drawer > a { border-bottom: 1px solid var(--line); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 18px; height: 18px; color: var(--slate); transition: transform var(--dur) var(--ease); }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details ul { list-style: none; padding: 0 0 16px; display: grid; gap: 2px; }
.drawer details a { display: block; padding: 10px 0; color: var(--slate); font-weight: 500; }
.drawer details a:hover { color: var(--navy); }
.drawer__cta { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 1080px) { .drawer { display: none !important; } }

/* ---------- 6. Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { /* single, quiet light source — no decorative pattern */
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgba(52,120,246,.16), transparent 70%);
}
.hero .container { display: grid; gap: clamp(48px, 6vw, 72px); padding-block: clamp(72px, 9vw, 128px) clamp(72px, 8vw, 120px); }
@media (min-width: 1080px) { .hero .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; } }
.hero__copy { display: grid; gap: 24px; align-content: center; }
.hero h1 { color: #fff; font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.035em; max-width: 13ch; }
.hero__sub { font-size: var(--fs-lead); line-height: 1.55; color: var(--slate-on-dark); max-width: 46ch; }
.hero .btn-row { margin-top: 8px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-on-dark); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* Product window (shared by hero + previews) */
.window {
  background: #fff; color: var(--navy); border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -32px rgba(0,0,0,.55); overflow: hidden;
}
.window--light { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.window__bar {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--line); background: #FBFCFE;
}
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.window__title { font-size: .8125rem; font-weight: 600; }
.window__title span { color: var(--slate); font-weight: 500; }
.tag-sample {
  margin-left: auto; font-family: var(--font-mono); font-size: .625rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; background: var(--grey); color: var(--slate-on-grey); border: 1px solid var(--line);
}

/* Hero flow visual */
.flowviz { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1.12fr); padding: 20px; gap: 0; align-items: stretch; }
.flowviz__lanes { list-style: none; display: grid; grid-template-rows: repeat(5, 1fr); gap: 8px; }
.lane {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.lane.is-active { border-color: rgba(52,120,246,.5); box-shadow: 0 0 0 3px rgba(52,120,246,.08); }
.lane__icon { width: 28px; height: 28px; border-radius: 7px; background: var(--grey); display: grid; place-items: center; }
.lane__icon svg { width: 15px; height: 15px; }
.lane__name { font-size: .8125rem; font-weight: 600; line-height: 1.2; }
.lane__ref { display: block; font-family: var(--font-mono); font-size: .6875rem; color: var(--slate); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flowviz__wires { width: 100%; height: 100%; overflow: visible; }
.flowviz__wires path { vector-effect: non-scaling-stroke; fill: none; stroke: var(--line-strong); stroke-width: 1.25; }
.flowviz__wires .pulse { stroke: var(--blue); stroke-width: 1.75; stroke-dasharray: 10 140; stroke-linecap: round; animation: wire 3.2s linear infinite; }
.flowviz__wires .pulse:nth-of-type(2n) { stroke: var(--teal); }
@keyframes wire { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }

.hub { border-radius: 12px; background: var(--navy); color: #fff; padding: 18px; display: grid; gap: 14px; align-content: start; }
.hub__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hub__title { font-size: .875rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hub__title i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(22,184,166,.18); }
.hub__period { white-space: nowrap; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .08em; color: var(--slate-on-dark); text-transform: uppercase; }
.hub__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--navy-3); border-radius: 8px; overflow: hidden; }
.hub__kpi { background: var(--navy-2); padding: 10px 12px; }
.hub__kpi span { display: block; font-size: .6875rem; color: var(--slate-on-dark); }
.hub__kpi strong { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .9375rem; margin-top: 2px; letter-spacing: -.01em; }
.hub__chart { width: 100%; height: 64px; }
.hub__chart .area { fill: url(#hubGrad); }
.hub__chart .ln { fill: none; stroke: var(--teal); stroke-width: 1.75; }
.hub__chart .ln2 { fill: none; stroke: var(--blue-on-dark); stroke-width: 1.5; stroke-dasharray: 3 3; }
.hub__legend { display: flex; gap: 14px; font-size: .6875rem; color: var(--slate-on-dark); }
.hub__legend span { display: inline-flex; align-items: center; gap: 6px; }
.hub__legend i { width: 10px; height: 2px; background: var(--teal); }
.hub__legend i.b { background: var(--blue-on-dark); }
.hub__note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: rgba(242,165,65,.08); border: 1px solid rgba(242,165,65,.22); font-size: .75rem; line-height: 1.45; color: #E6EBF3; }
.hub__note b { color: var(--amber); font-weight: 600; }

@media (max-width: 639px) {
  .flowviz { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .flowviz__wires { display: none; }
  .flowviz__lanes { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .lane:last-child { grid-column: 1 / -1; }
}

/* ---------- 7. Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; right: -200px; top: -300px; width: 800px; height: 800px; z-index: -1; background: radial-gradient(closest-side, rgba(52,120,246,.14), transparent 70%); }
.page-hero .container { padding-block: clamp(72px, 8vw, 120px) clamp(64px, 7vw, 104px); display: grid; gap: 20px; }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); max-width: 20ch; letter-spacing: -0.03em; }
.page-hero p { color: var(--slate-on-dark); font-size: var(--fs-lead); max-width: 58ch; }
.page-hero .btn-row { margin-top: 12px; }
.breadcrumb { font-family: var(--font-mono); font-size: .75rem; color: var(--slate-on-dark); letter-spacing: .04em; }
.breadcrumb a { color: var(--slate-on-dark); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- 8. Challenge (light, list-based) ---------- */
.challenge { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .challenge { grid-template-columns: .9fr 1.1fr; gap: var(--s9); } }
.challenge__intro { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1024px) { .challenge__intro { position: sticky; top: calc(var(--header-h) + 48px); } }
.issue-list { list-style: none; border-top: 1px solid var(--line); }
.issue { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.issue__num { font-family: var(--font-mono); font-size: .8125rem; color: var(--slate); padding-top: 4px; }
.issue h3 { font-size: 1.25rem; margin-bottom: 8px; }
.issue p { color: var(--slate); }

/* ---------- 9. Lifecycle (horizontal workflow) ---------- */
.lifecycle { position: relative; list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); counter-reset: step; }
.lifecycle::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 1px; background: var(--line-strong); }
.lifecycle::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--teal), transparent); background-size: 30% 100%; background-repeat: no-repeat;
  animation: sweep 6s var(--ease) infinite;
}
@keyframes sweep { from { background-position: -30% 0; } to { background-position: 130% 0; } }
.lifecycle li { position: relative; display: grid; justify-items: center; text-align: center; gap: 14px; padding: 0 4px; }
.lifecycle__node {
  width: 56px; height: 56px; border-radius: 14px; background: #fff; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--navy); position: relative; z-index: 1;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lifecycle li:hover .lifecycle__node { border-color: var(--blue); color: var(--blue-ink); transform: translateY(-2px); }
.lifecycle__node svg { width: 22px; height: 22px; }
.lifecycle li:last-child .lifecycle__node { background: var(--navy); color: #fff; border-color: var(--navy); }
.lifecycle__label { font-weight: 600; font-size: .9375rem; }
.lifecycle__idx { font-family: var(--font-mono); font-size: .6875rem; color: var(--slate); letter-spacing: .06em; }
.section--grey .lifecycle__node { background: #fff; }
@media (max-width: 959px) {
  .lifecycle { grid-template-columns: 1fr; gap: 0; }
  .lifecycle::before, .lifecycle::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; }
  .lifecycle::after { background: linear-gradient(180deg, transparent, var(--blue), var(--teal), transparent); background-size: 100% 30%; animation-name: sweepY; }
  .lifecycle li { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; align-items: center; padding: 8px 0; gap: 16px; }
  .lifecycle li > div { display: grid; }
}
@keyframes sweepY { from { background-position: 0 -30%; } to { background-position: 0 130%; } }

.platform-note { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 24px; }
@media (min-width: 900px) { .platform-note { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.platform-note > div { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.platform-note h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.platform-note p { color: var(--slate-on-grey); font-size: .9375rem; }

/* ---------- 10. Product ecosystem (tabs) ---------- */
.products { display: grid; gap: 32px; }
@media (min-width: 1024px) { .products { grid-template-columns: 380px 1fr; gap: 56px; align-items: start; } }
.ptabs { list-style: none; display: grid; gap: 4px; }
.ptab {
  width: 100%; text-align: left; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 16px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ptab:hover { background: var(--grey); }
.ptab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow-md); }
.ptab__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--grey); display: grid; place-items: center; color: var(--navy); }
.ptab[aria-selected="true"] .ptab__icon { background: var(--navy); color: #fff; }
.ptab__icon svg { width: 19px; height: 19px; }
.ptab__name { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; display: block; }
.ptab__name span { font-weight: 500; color: var(--slate); }
.ptab__desc { display: block; font-size: .875rem; color: var(--slate); line-height: 1.5; margin-top: 4px; }
.ptab__more { display: none; margin-top: 10px; }
.ptab[aria-selected="true"] .ptab__more { display: inline-flex; }
.ppanels { position: relative; }
.ppanel[hidden] { display: none; }
.ppanel { animation: fadeUp 320ms var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.no-js .ppanel[hidden] { display: block !important; margin-top: 24px; }

/* generic mini UI used in previews */
.ui { padding: 20px; display: grid; gap: 16px; font-size: .8125rem; }
.ui__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ui__h { font-weight: 700; font-size: .9375rem; }
.ui__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .6875rem; font-weight: 600; background: var(--grey); color: var(--slate-on-grey); white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--blue { background: rgba(52,120,246,.1); color: #1F5CC9; }
.chip--teal { background: rgba(22,184,166,.12); color: #0B7468; }
.chip--amber { background: rgba(242,165,65,.16); color: #8A5410; }
.chip--navy { background: var(--navy); color: #fff; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--font-mono); font-size: .75rem; }
.table .id { font-family: var(--font-mono); font-size: .75rem; color: var(--slate); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; padding-top: 10px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 90px 1fr 70px; gap: 10px; align-items: center; }
.bar__track { height: 8px; border-radius: 4px; background: var(--grey); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 4px; background: var(--navy); transform-origin: left; }
.bar__fill--teal { background: var(--teal); }
.bar__fill--blue { background: var(--blue); }
.bar__fill--amber { background: var(--amber); }
.bar span:last-child { font-family: var(--font-mono); font-size: .75rem; text-align: right; }
.steps-mini { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.steps-mini span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); font-weight: 600; font-size: .75rem; }
.steps-mini span.done { border-color: rgba(22,184,166,.35); background: rgba(22,184,166,.06); }
.steps-mini span.now { border-color: var(--blue); color: #1F5CC9; }
.steps-mini svg { width: 12px; height: 12px; color: var(--slate); }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kpi-row > div { background: #fff; padding: 12px; }
.kpi-row span { display: block; font-size: .6875rem; color: var(--slate); }
.kpi-row strong { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 1rem; margin-top: 2px; }
@media (max-width: 520px) { .kpi-row { grid-template-columns: 1fr 1fr; } .bar { grid-template-columns: 74px 1fr 58px; } }

/* ---------- 11. Dashboard ---------- */
.dash { display: grid; grid-template-columns: 200px 1fr; min-height: 560px; }
.dash__side { border-right: 1px solid var(--line); background: #FBFCFE; padding: 18px 12px; display: grid; align-content: start; gap: 2px; }
.dash__side a, .dash__side span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: .8125rem; font-weight: 500; color: var(--slate); }
.dash__side .on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.dash__side svg { width: 15px; height: 15px; }
.dash__side .grp { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; padding: 14px 10px 6px; }
.dash__main { padding: 22px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.dash__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash__top h3 { font-size: 1.0625rem; }
.dash__filters { display: flex; gap: 6px; }
.dash__filters span { font-size: .75rem; font-weight: 600; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 4px; background: #fff; }
.kpi__label { font-size: .75rem; color: var(--slate); font-weight: 500; }
.kpi__value { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; }
.kpi__meta { font-size: .6875rem; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.kpi__meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.kpi__meta i.a { background: var(--amber); }
.kpi__meta i.b { background: var(--blue); }
.dash__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: #fff; display: grid; gap: 12px; align-content: start; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel__head h4 { font-size: .875rem; }
.legend { display: flex; gap: 12px; font-size: .6875rem; color: var(--slate); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--navy); }
.legend i.t { background: var(--teal); }
.cf-chart { width: 100%; height: 180px; }
.cf-chart text { font-family: var(--font-mono); font-size: 10px; fill: var(--slate); }
.cf-chart .grid-l { stroke: var(--line); stroke-width: 1; }
.cf-chart .in { fill: var(--teal); }
.cf-chart .out { fill: var(--navy); }
.cf-chart rect { transform-box: fill-box; transform-origin: bottom; }
.recon { display: grid; gap: 14px; }
.recon__big { display: flex; align-items: baseline; gap: 8px; }
.recon__big strong { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 500; letter-spacing: -.03em; }
.recon__stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.recon__stack i { display: block; height: 100%; }
.exc { list-style: none; display: grid; }
.exc li { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .75rem; align-items: center; }
.exc li:first-child { border-top: 0; }
.exc b { font-weight: 600; display: block; }
.exc small { color: var(--slate); font-family: var(--font-mono); font-size: .6875rem; }
.dash-caption { margin-top: 16px; font-family: var(--font-mono); font-size: .75rem; color: var(--slate); text-align: center; }
@media (max-width: 1023px) { .dash { grid-template-columns: 1fr; } .dash__side { display: none; } .dash__row { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi__value { font-size: 1.0625rem; } .dash__main { padding: 14px; } }

/* ---------- 12. Intelligence ---------- */
.intel { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .intel { grid-template-columns: 1fr 1fr; gap: var(--s9); align-items: center; } }
.cap-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--navy-3); }
.cap-list li { padding: 22px 0; border-bottom: 1px solid var(--navy-3); display: grid; gap: 6px; }
.cap-list li:nth-child(odd) { padding-right: 24px; }
.cap-list li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--navy-3); }
.cap-list .mono { font-size: .6875rem; color: var(--teal); letter-spacing: .1em; }
.cap-list h3 { font-size: 1.0625rem; color: #fff; }
.cap-list p { font-size: .875rem; color: var(--slate-on-dark); line-height: 1.5; }
@media (max-width: 560px) { .cap-list { grid-template-columns: 1fr; } .cap-list li:nth-child(n) { padding: 18px 0; border-left: 0; } }
.feed { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--r-lg); padding: 8px; }
.feed__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; }
.feed__head strong { font-size: .875rem; }
.feed__item { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 14px; border-radius: 10px; background: var(--navy); border: 1px solid var(--navy-3); margin-top: 6px; }
.feed__icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(52,120,246,.14); color: var(--blue-on-dark); }
.feed__icon.t { background: rgba(22,184,166,.14); color: var(--teal); }
.feed__icon.a { background: rgba(242,165,65,.14); color: var(--amber); }
.feed__icon svg { width: 16px; height: 16px; }
.feed__item b { display: block; font-size: .8125rem; font-weight: 600; color: #fff; }
.feed__item p { font-size: .75rem; color: var(--slate-on-dark); margin-top: 2px; line-height: 1.45; }
.feed__time { font-family: var(--font-mono); font-size: .625rem; color: var(--slate-on-dark); white-space: nowrap; }

/* ---------- 13. Enterprise list ---------- */
.ent { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .ent { grid-template-columns: .8fr 1.2fr; gap: var(--s9); } }
.ent-list { list-style: none; display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ent-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.ent-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.ent-list svg { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
.ent-list h3 { font-size: 1rem; margin-bottom: 4px; }
.ent-list p { font-size: .875rem; color: var(--slate); line-height: 1.5; }
.disclaimer { font-size: .8125rem; color: var(--slate); margin-top: 24px; }

/* ---------- 14. Industries (editorial) ---------- */
.ind-list { list-style: none; border-top: 1px solid var(--line-strong); }
.ind {
  display: grid; grid-template-columns: 64px 1fr; gap: 8px 24px; padding: 28px 0; border-bottom: 1px solid var(--line-strong);
  align-items: baseline; transition: padding var(--dur) var(--ease);
}
@media (min-width: 900px) { .ind { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.2fr) 24px; } }
.ind__num { font-family: var(--font-mono); font-size: .8125rem; color: var(--slate); }
.ind__name { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.ind__desc { color: var(--slate); font-size: .9375rem; grid-column: 2; }
@media (min-width: 900px) { .ind__desc { grid-column: auto; } }
.ind__arrow { display: none; color: var(--slate); }
@media (min-width: 900px) { .ind__arrow { display: block; } }
.ind__arrow svg { width: 20px; height: 20px; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.ind:hover .ind__arrow svg { transform: translateX(4px); color: var(--blue-ink); }
a.ind { color: inherit; }
a.ind:hover { color: inherit; }
a.ind:hover .ind__name { color: var(--blue-ink); }

/* ---------- 15. CTA band ---------- */
.cta { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -480px; width: 1100px; height: 700px; transform: translateX(-50%); z-index: -1; background: radial-gradient(closest-side, rgba(52,120,246,.18), transparent 70%); }
.cta .container { padding-block: clamp(80px, 9vw, 136px); display: grid; justify-items: center; text-align: center; gap: 20px; }
.cta h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -0.03em; max-width: 18ch; }
.cta p { color: var(--slate-on-dark); font-size: var(--fs-lead); max-width: 52ch; }
.cta .btn-row { justify-content: center; margin-top: 12px; }
.cta__symbol { width: 44px; height: auto; margin-bottom: 8px; }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--navy); color: var(--slate-on-dark); border-top: 1px solid var(--navy-3); font-size: .875rem; }
.site-footer .container { padding-block: 72px 32px; }
.footer__top { display: grid; gap: 48px; }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.1fr 2.4fr; gap: 64px; } }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand img { height: 30px; width: auto; }
.footer__brand p { max-width: 32ch; line-height: 1.55; }
.footer__tag { font-size: .9375rem; font-weight: 600; color: #fff; letter-spacing: -0.005em; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 720px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__col h2 { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a { color: var(--slate-on-dark); }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--navy-3); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .8125rem; }
.footer__bottom ul { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a { color: var(--slate-on-dark); }
.footer__bottom a:hover { color: #fff; }
.footer__statement { color: #fff; font-weight: 500; }

/* ---------- 17. Inner-page components ---------- */
/* Vertical lifecycle (platform) */
.timeline { list-style: none; position: relative; display: grid; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--line-strong); }
.tl { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 20px 0; position: relative; }
@media (min-width: 900px) { .tl { grid-template-columns: 48px minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; } }
.tl__n { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; position: relative; z-index: 1; }
.tl:last-child .tl__n { background: var(--navy); color: #fff; border-color: var(--navy); }
.tl h3 { font-size: 1.125rem; padding-top: 10px; }
.tl h3 small { display: block; font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.tl p { color: var(--slate); padding-top: 10px; font-size: .9375rem; grid-column: 2; }
@media (min-width: 900px) { .tl p { grid-column: auto; } }
.tl__flow { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--font-mono); font-size: .6875rem; color: var(--slate); }
.tl__flow svg { width: 12px; height: 12px; color: var(--blue); }

/* Architecture diagram */
.arch { display: grid; gap: 12px; }
@media (min-width: 1024px) { .arch { grid-template-columns: 1fr 220px; } }
.arch__stack { display: grid; gap: 12px; }
.arch__layer { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: #fff; padding: 20px; display: grid; gap: 14px; }
.arch__layer--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.arch__layer--grey { background: var(--grey); border-color: var(--line); }
.arch__label { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.arch__layer--navy .arch__label { color: var(--teal); }
.arch__mods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.arch__mod { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; background: #fff; }
.arch__mod svg { width: 18px; height: 18px; color: var(--blue); }
.arch__mod b { font-size: .875rem; }
.arch__mod span { font-size: .75rem; color: var(--slate); line-height: 1.4; }
.arch__data { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.arch__data span { padding: 10px; border-radius: 8px; background: #fff; border: 1px dashed var(--line-strong); font-size: .8125rem; font-weight: 500; text-align: center; }
.arch__intel { display: flex; flex-wrap: wrap; gap: 8px; }
.arch__intel span { padding: 8px 12px; border-radius: 8px; background: var(--navy-2); border: 1px solid var(--navy-3); font-size: .8125rem; }
.arch__conn { display: flex; justify-content: center; gap: 120px; color: var(--line-strong); height: 20px; }
.arch__conn i { width: 1px; background: currentColor; position: relative; }
.arch__conn i::after { content: ""; position: absolute; bottom: -1px; left: -3px; border: 3.5px solid transparent; border-top-color: var(--blue); }
.arch__rail { border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 10px; align-content: start; background: #fff; }
.arch__rail div { display: flex; gap: 10px; align-items: center; font-size: .875rem; font-weight: 500; padding: 8px 0; border-top: 1px solid var(--line); }
.arch__rail div:first-of-type { border-top: 0; }
.arch__rail svg { width: 16px; height: 16px; color: var(--navy); }
@media (max-width: 860px) { .arch__mods { grid-template-columns: 1fr 1fr; } .arch__data { grid-template-columns: 1fr 1fr; } .arch__conn { gap: 60px; } }

/* Product detail rows */
.pdetail { display: grid; gap: 40px; padding-block: clamp(56px, 6vw, 96px); border-top: 1px solid var(--line); }
.pdetail:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1024px) { .pdetail { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; } .pdetail:nth-child(even) .pdetail__copy { order: 2; } }
.pdetail__copy { display: grid; gap: 18px; align-content: start; }
.pdetail__name { display: flex; align-items: center; gap: 12px; }
.pdetail__name .ptab__icon { background: var(--navy); color: #fff; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .9375rem; }
.checks svg { width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }
.on-dark .checks li { color: #E6EBF3; }

/* Role / solution blocks */
.role { display: grid; gap: 24px; padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .role { grid-template-columns: 300px 1fr 1fr; gap: 48px; } }
.role__head { display: grid; gap: 12px; align-content: start; }
.role__head .mono { font-size: .75rem; color: var(--slate); }
.role h3 { font-size: 1.375rem; }
.role h4 { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.role p { color: var(--slate); font-size: .9375rem; }
.role__products { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.role__products a { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--navy); }
.role__products a:hover { border-color: var(--blue); color: var(--blue-ink); }

/* Prose (legal / about) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 12px; }
.prose h3 { font-size: 1.125rem; margin: 28px 0 8px; }
.prose p, .prose li { color: #334155; margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 10px; background: rgba(242,165,65,.1); border: 1px solid rgba(242,165,65,.35); font-size: .875rem; color: #5B3A0B; margin-bottom: 32px; }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; color: #B26F14; margin-top: 2px; }
.notice--info { background: rgba(52,120,246,.06); border-color: rgba(52,120,246,.25); color: #17407F; }
.notice--info svg { color: var(--blue-ink); }

/* Principles / values */
.values { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } .values li + li { border-left: 1px solid var(--line); } }
.values li { padding: 32px 28px 32px 0; display: grid; gap: 10px; align-content: start; }
@media (min-width: 800px) { .values li + li { padding-left: 28px; } }
@media (max-width: 799px) { .values li + li { border-top: 1px solid var(--line); } }
.values .mono { font-size: .75rem; color: var(--slate); }
.values h3 { font-size: 1.125rem; }
.values p { color: var(--slate); font-size: .9375rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--slate); transition: transform var(--dur) var(--ease); margin-top: 3px; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--slate); max-width: 70ch; }

/* Glossary */
.glossary { display: grid; gap: 0; }
@media (min-width: 800px) { .glossary { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.glossary div { padding: 22px 0; border-top: 1px solid var(--line); }
.glossary dt { font-weight: 700; margin-bottom: 6px; }
.glossary dt span { font-family: var(--font-mono); font-size: .75rem; color: var(--slate); font-weight: 500; margin-left: 8px; }
.glossary dd { margin: 0; color: var(--slate); font-size: .9375rem; }

.res-cats { list-style: none; display: grid; gap: 16px; }
@media (min-width: 800px) { .res-cats { grid-template-columns: repeat(3, 1fr); } }
.res-cats li { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; background: #fff; }
.res-cats svg { width: 22px; height: 22px; color: var(--blue); }
.res-cats h3 { font-size: 1.0625rem; }
.res-cats p { color: var(--slate); font-size: .875rem; }
.res-cats .chip { justify-self: start; }

/* ---------- 18. Forms ---------- */
.form-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .form-layout { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; } }
.form-aside { display: grid; gap: 28px; align-content: start; }
@media (min-width: 1024px) { .form-aside { position: sticky; top: calc(var(--header-h) + 40px); } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .875rem; font-weight: 600; }
.field label .req { color: var(--blue-ink); margin-left: 2px; }
.field label .opt { color: var(--slate); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff;
  font-size: 1rem; /* ≥16px prevents iOS zoom */ transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52,120,246,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C2410C; }
.field__error { font-size: .8125rem; color: #B42318; display: none; }
.field.has-error .field__error { display: block; }
.field__hint { font-size: .8125rem; color: var(--slate); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: .8125rem; color: var(--slate); align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue-ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 16px 18px; border-radius: 10px; font-size: .9375rem; }
.form-status.is-visible { display: flex; gap: 12px; }
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.form-status--error { background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; }
.form-success { display: none; text-align: center; padding: 32px 8px; gap: 16px; justify-items: center; }
.form-success.is-visible { display: grid; }
.form-success__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(22,184,166,.12); color: #0B7468; }
.form-success__icon svg { width: 26px; height: 26px; }
.form-success h2 { font-size: 1.5rem; }
.form-success p { color: var(--slate); max-width: 44ch; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.aside-list { list-style: none; display: grid; gap: 18px; }
.aside-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.aside-list svg { width: 20px; height: 20px; color: var(--teal); margin-top: 2px; }
.aside-list b { display: block; font-size: .9375rem; }
.aside-list span { font-size: .875rem; color: var(--slate); }
.contact-block { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 6px; font-size: .9375rem; }
.contact-block .mono { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }

/* ---------- 19. Motion & utilities ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; } .reveal[data-delay="2"] { transition-delay: 160ms; } .reveal[data-delay="3"] { transition-delay: 240ms; }
.no-js .reveal { opacity: 1; transform: none; }
.grow { transform: scaleY(0); transition: transform 900ms var(--ease); }
.is-in .grow { transform: scaleY(1); }
.growx { transform: scaleX(0); transition: transform 1000ms var(--ease); }
.is-in .growx, .ppanel .growx { transform: scaleX(1); }
.no-js .grow, .no-js .growx { transform: none; }

.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, .grow, .growx { opacity: 1 !important; transform: none !important; }
  .flowviz__wires .pulse, .lifecycle::after { display: none; }
}

@media print {
  .site-header, .drawer, .cta, .site-footer { display: none; }
  .hero, .page-hero { background: #fff; color: var(--navy); }
}

/* ---------- 20. Overflow guards (grid children must be allowed to shrink) ---------- */
.hero .container > *, .flowviz > *, .lane > span, .products > *, .pdetail > *, .form-layout > *, .intel > *, .ent > *, .challenge > * { min-width: 0; }
.window { max-width: 100%; }
@media (max-width: 639px) {
  .window__title span { display: none; }
  .hub__note { font-size: .6875rem; }
  .lane { padding: 8px 10px; }
}
