/* Acadtrix one-page site. Colours, type, spacing and radius come from the Acadtrix design system.
   Layout idea: a midnight-navy hero with a live product card, then white sections with navy headings,
   two more navy bands (app, demo) and one warm cream band. Motion: one load sequence in the hero,
   quiet fade-ups on scroll, and small state changes in the interactive demos. */

@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --brand: #22396F; --brand-strong: #0D1C42; --brand-soft: #E9EDF7; --on-brand: #FFFFFF;
  --accent: #FCF1D0; --on-accent: #0D1C42; --accent-ink: #7A5D12; --accent-soft: #FEF9EA;
  --surface: #FFFFFF; --surface-raised: #F7F8FB; --ink: #010736; --ink-muted: #4B5578;
  --line: #DDE2EE; --line-strong: #7F8AAE; --focus: #22396F;
  --success: #166B3D; --success-soft: #E6F5EC; --warning: #A34A08; --warning-soft: #FDF1DD;
  --danger: #C0262D; --danger-soft: #FCE9E9;
  --logo-bulb: #22396F; --logo-base: #0D1C42; --logo-cap: #FCF1D0; --logo-band: #FFFFFF;
  --font-display: Montserrat, system-ui, sans-serif;
  --font-sans: Inter, system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8FA6E0; --brand-strong: #BFCDF2; --brand-soft: #1B2D66; --on-brand: #010736;
    --accent: #FCF1D0; --on-accent: #0D1C42; --accent-ink: #FCF1D0; --accent-soft: #3A3423;
    --surface: #010736; --surface-raised: #0D1C42; --ink: #FBF6E6; --ink-muted: #B4BEDC;
    --line: #22396F; --line-strong: #7F93CC; --focus: #BFCDF2;
    --success: #5FD08F; --success-soft: #12301F; --warning: #F5B14C; --warning-soft: #3A2A0E;
    --danger: #FF8A8A; --danger-soft: #3B1719;
    --logo-bulb: #FCF1D0; --logo-base: #22396F; --logo-cap: #22396F; --logo-band: #010736;
    color-scheme: dark;
  }
}
:root[data-theme="dark"], .band-dark, .site-header.on-dark {
  --brand: #8FA6E0; --brand-strong: #BFCDF2; --brand-soft: #1B2D66; --on-brand: #010736;
  --accent: #FCF1D0; --on-accent: #0D1C42; --accent-ink: #FCF1D0; --accent-soft: #3A3423;
  --surface: #010736; --surface-raised: #0D1C42; --ink: #FBF6E6; --ink-muted: #B4BEDC;
  --line: #22396F; --line-strong: #7F93CC; --focus: #BFCDF2;
  --success: #5FD08F; --success-soft: #12301F; --warning: #F5B14C; --warning-soft: #3A2A0E;
  --danger: #FF8A8A; --danger-soft: #3B1719;
  --logo-bulb: #FCF1D0; --logo-base: #22396F; --logo-cap: #22396F; --logo-band: #010736;
}
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; overflow-x: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--brand); margin: 0; text-wrap: balance; }
h1 { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
button { font-family: inherit; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--space-6); }
.narrow { max-width: 800px; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-8); }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 60ch; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent-ink); }
.band-dark .eyebrow::before { background: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; background: var(--brand); color: var(--on-brand); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); z-index: 100; }
.skip-link:focus { top: var(--space-2); color: var(--on-brand); }
.sample-note { font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* Scroll progress */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); z-index: 70; pointer-events: none; }
:root:not([data-theme="dark"]) .progress { background: linear-gradient(90deg, #22396F, #8FA6E0); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--line); transition: background .3s var(--ease), border-color .3s var(--ease); }
.site-header.on-dark { background: rgba(1, 7, 54, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: rgba(143, 166, 224, .18); color: var(--ink); }
.header-row { display: flex; align-items: center; gap: var(--space-4); min-height: 72px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo-name { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--logo-bulb); line-height: 1; }
.logo-bulb { fill: var(--logo-bulb); } .logo-base { fill: var(--logo-base); } .logo-cap { fill: var(--logo-cap); } .logo-band { fill: var(--logo-band); }
.logo-bulb, .logo-base, .logo-cap, .logo-band, .logo-name { transition: fill .3s var(--ease), color .3s var(--ease); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.site-nav { order: 3; width: 100%; padding-bottom: var(--space-4); }
.site-nav ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.site-nav a:hover, .site-nav a.is-current { background: var(--brand-soft); color: var(--ink); }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--brand-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle, .theme-toggle { display: none; }
.js .nav-toggle, .js .theme-toggle { display: inline-flex; }
.icon-moon { display: none; }
.header-tools .header-cta { display: none; }
@media (min-width: 1080px) {
  .header-row { flex-wrap: nowrap; }
  .site-nav, .js .site-nav { display: block; order: 0; width: auto; padding: 0; margin-left: var(--space-6); }
  .site-nav ul { flex-direction: row; gap: 0; }
  .site-nav a { padding: 0 10px; font-size: 14px; min-height: 40px; }
  .site-nav .nav-demo { display: none; }
  .js .nav-toggle { display: none; }
  .header-tools .header-cta { display: inline-flex; }
}

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 24px; transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--brand-soft); color: var(--ink); }
.btn-sm { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Sections */
.section { padding: var(--space-12) 0; position: relative; }
.section-raised { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-warm { background: var(--accent-soft); }
.band-dark { background: #010736; color: var(--ink); position: relative; overflow: hidden; }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); max-width: 760px; }
@media (min-width: 800px) {
  .section { padding: 88px 0; }
  h2 { font-size: 36px; line-height: 44px; }
  .section-head { margin-bottom: var(--space-12); }
}

/* Reveal on scroll: starts dimmed and lowered, never hidden */
.js [data-reveal] { opacity: .3; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------------- Hero ---------------- */
.hero { padding: var(--space-12) 0 0; }
.mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mesh i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.mesh i:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -180px; background: #22396F; animation: drift1 22s ease-in-out infinite alternate; }
.mesh i:nth-child(2) { width: 460px; height: 460px; right: -120px; top: 60px; background: #3A56A6; opacity: .4; animation: drift2 26s ease-in-out infinite alternate; }
.mesh i:nth-child(3) { width: 300px; height: 300px; left: 38%; bottom: -160px; background: #FCF1D0; opacity: .12; animation: drift1 30s ease-in-out infinite alternate-reverse; }
.mesh::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(143, 166, 224, .22) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
@keyframes drift1 { to { transform: translate(90px, 60px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-80px, 70px) scale(.92); } }

.hero-center { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-6); padding-bottom: var(--space-12); }
.hero h1 { font-size: 40px; line-height: 46px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); max-width: 15ch; }
.hl { color: var(--accent); }
.hl-u { position: relative; display: inline-block; }
.hl-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; border-radius: 4px; background: var(--brand); transform-origin: 0 50%; animation: underline .9s var(--ease) .9s both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero .lead { color: var(--ink-muted); max-width: 58ch; }
.hero .pill { align-self: center; }
.hero .btn-row { justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); align-self: flex-start; padding: 6px var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--line); background: rgba(13, 28, 66, .6); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.pill b { color: var(--accent); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(95, 208, 143, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(95, 208, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 208, 143, 0); } }
[data-hero] { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@media (min-width: 800px) { .hero { padding: 72px 0 0; } .hero h1 { font-size: 76px; line-height: 78px; } .hero-center { gap: var(--space-8); padding-bottom: var(--space-16); } }

/* The rising path: school to university */
.rise { position: relative; width: 100%; max-width: 920px; height: 190px; margin: var(--space-6) auto var(--space-12); }
.rise-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rise-line polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.rise-track { stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 7; }
.rise-draw { stroke: var(--accent); stroke-width: 3; }
.rise-reveal { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); animation: reveal 10s var(--ease) 1s infinite both; }
@keyframes reveal { 0%, 3% { transform: scaleX(.125); } 12% { transform: scaleX(.375); } 24% { transform: scaleX(.625); } 36%, 92% { transform: scaleX(.875); } 100% { transform: scaleX(.125); } }
.stop { position: absolute; left: calc(12.5% + var(--k) * 25%); top: calc(82% - var(--k) * 22%); width: 0; height: 0; }
.stop-dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #010736; border: 2px solid var(--line-strong); animation: lit 10s linear infinite; animation-delay: calc(var(--k) * 1.2s + 1s); }
@keyframes lit { 0% { background: #010736; border-color: var(--line-strong); box-shadow: none; } 3%, 88% { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(252, 241, 208, .16), 0 0 22px rgba(252, 241, 208, .55); } 100% { background: #010736; border-color: var(--line-strong); box-shadow: none; } }
.stop-label { position: absolute; top: 20px; left: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; border-radius: var(--radius-md); background: rgba(1, 7, 54, .88); white-space: nowrap; }
.stop-label b { font: 700 13px/18px var(--font-display); color: var(--ink); }
.stop-label small { font-size: 11px; line-height: 14px; color: var(--ink-muted); }
.traveller { position: absolute; left: 12.5%; top: 82%; width: 44px; height: 44px; margin: -50px 0 0 -22px; filter: drop-shadow(0 0 16px rgba(252, 241, 208, .75)); animation: travel 10s var(--ease) 1s infinite both; }
.traveller svg { width: 100%; height: 100%; display: block; }
@keyframes travel {
  0% { left: 12.5%; top: 82%; opacity: 0; }
  3% { left: 12.5%; top: 82%; opacity: 1; }
  12% { left: 37.5%; top: 60%; }
  24% { left: 62.5%; top: 38%; }
  36%, 92% { left: 87.5%; top: 16%; opacity: 1; }
  100% { left: 87.5%; top: 16%; opacity: 0; }
}
@media (min-width: 800px) { .rise { height: 240px; } .stop-label b { font-size: 15px; line-height: 20px; } .stop-label small { font-size: 12px; line-height: 16px; } .traveller { width: 56px; height: 56px; margin: -64px 0 0 -28px; } }

/* ---------------- Journey: scroll-driven record ---------------- */
.journey-pin { padding: var(--space-12) 0; }
.journey-grid { display: grid; gap: var(--space-6); align-items: center; }
.journey-copy { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.jr-steps { list-style: none; display: flex; flex-direction: column; gap: var(--space-6); }
.jr-steps li { display: flex; flex-direction: column; gap: var(--space-2); }
.jr-steps p { color: var(--ink-muted); font-size: 17px; line-height: 26px; max-width: 46ch; }
.jr-n { font: 700 13px/18px var(--font-display); letter-spacing: .1em; color: var(--accent-ink); }
.jr-rail { display: none; position: relative; background: var(--line); border-radius: 4px; }
.jr-fill { position: absolute; inset: 0; background: var(--brand); border-radius: 4px; transform-origin: 0 0; }
.jr-bulb { position: absolute; width: 40px; height: 40px; filter: drop-shadow(0 6px 14px rgba(13, 28, 66, .35)); }
.jr-bulb svg { width: 100%; height: 100%; display: block; }
.jr-record { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface); box-shadow: 0 30px 70px -40px rgba(13, 28, 66, .55); }
.jr-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--space-1) var(--space-2); border-bottom: 1px solid var(--line); margin-bottom: var(--space-2); }
.jr-head span { font: 700 15px/20px var(--font-display); color: var(--brand); }
.jr-head em { font-style: normal; font-size: 12px; color: var(--ink-muted); }
.jr-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i k" "i v"; column-gap: var(--space-3); align-items: center; padding: var(--space-2); border-radius: var(--radius-md); border: 1px dashed var(--line-strong); opacity: .45; transition: opacity .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease); }
.jr-row .icon { grid-area: i; width: 36px; height: 36px; background: var(--surface-raised); color: var(--ink-muted); }
.jr-row .icon svg { width: 18px; height: 18px; }
.jr-k { grid-area: k; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.jr-v { grid-area: v; font-size: 14px; line-height: 20px; font-weight: 600; opacity: 0; transition: opacity .4s var(--ease) .1s; }
.jr-row.is-done { opacity: 1; border-style: solid; border-color: var(--line); }
.jr-row.is-done .icon { background: var(--brand-soft); color: var(--brand); }
.jr-row.is-done .jr-v { opacity: 1; }
.jr-row.is-new { background: var(--accent-soft); border-color: var(--accent-ink); transform: scale(1.02); }
@media (min-width: 900px) {
  .journey-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: var(--space-12); }
  .journey.pin .journey-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, .9fr); }
  .jr-record { padding: var(--space-6); gap: var(--space-3); }
  .jr-row { padding: var(--space-3); }
  .jr-v { font-size: 15px; }
}
/* Pinned mode: added by the script when motion is allowed */
.journey.pin { height: 460vh; }
.journey.pin .journey-pin { position: sticky; top: 72px; height: calc(100vh - 72px); padding: var(--space-4) 0; display: flex; align-items: center; overflow: hidden; }
.journey.pin .journey-grid { width: 100%; }
.journey.pin .jr-steps { position: relative; display: block; min-height: 150px; }
.journey.pin .jr-steps li { position: absolute; inset: 0; opacity: 0; transform: translateY(26px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.journey.pin .jr-steps li.is-past { transform: translateY(-26px); }
.journey.pin .jr-steps li.is-on { opacity: 1; transform: none; pointer-events: auto; }
.journey.pin .jr-steps h3 { font-size: 26px; line-height: 32px; }
.journey.pin .jr-rail { display: block; width: 100%; height: 4px; margin: var(--space-3) 0 var(--space-2); }
.journey.pin .jr-fill { transform: scaleX(var(--p, 0)); }
.journey.pin .jr-bulb { left: calc(var(--p, 0) * 100%); top: 50%; margin: -24px 0 0 -20px; }
@media (max-width: 899px) {
  .journey.pin .eyebrow, .journey.pin .jr-lead { display: none; }
  .journey.pin h2 { font-size: 22px; line-height: 28px; }
  .journey.pin .jr-steps { min-height: 128px; }
  .journey.pin .jr-steps h3 { font-size: 20px; line-height: 26px; }
  .journey.pin .jr-steps p { font-size: 15px; line-height: 22px; }
  .journey.pin .journey-grid { gap: var(--space-2); }
  .journey.pin .jr-record { padding: var(--space-3); gap: 6px; }
  .journey.pin .jr-row { padding: 4px var(--space-2); grid-template-areas: "i k v"; grid-template-columns: auto auto 1fr; }
  .journey.pin .jr-row .icon { width: 28px; height: 28px; }
  .journey.pin .jr-v { text-align: right; font-size: 13px; }
  .journey.pin .jr-head { padding-bottom: 6px; margin-bottom: 2px; }
}
@media (min-width: 900px) {
  .journey.pin .jr-steps { min-height: 190px; }
  .journey.pin .jr-steps h3 { font-size: 32px; line-height: 40px; }
  .journey.pin .jr-rail { width: 4px; height: min(420px, 56vh); margin: 0; }
  .journey.pin .jr-fill { transform: scaleY(var(--p, 0)); }
  .journey.pin .jr-bulb { left: 50%; top: calc(var(--p, 0) * 100%); margin: -20px 0 0 -20px; }
}

/* Hero product card */
.hero-visual { position: relative; perspective: 1200px; animation: rise 1s var(--ease) .35s both; }
.mock { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); }
.record { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); transition: transform .25s var(--ease); transform-style: preserve-3d; }
.mock-bar { display: flex; align-items: center; gap: 6px; }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-bar em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-muted); }
.seg { display: inline-flex; gap: var(--space-1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full); padding: var(--space-1); align-self: flex-start; }
.seg button { min-height: 40px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-full); background: transparent; color: var(--ink-muted); font: 600 14px/20px var(--font-sans); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.rows { list-style: none; display: flex; flex-direction: column; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); font-size: 15px; }
.rows li:first-child { border-top: 0; }
.rows .k { color: var(--ink-muted); flex: none; }
.rows .v { font-weight: 600; text-align: right; }
.swap { display: inline-block; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.swap.out { opacity: 0; transform: translateY(8px); }
.status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.status div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status small { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.status b { font-size: 14px; line-height: 20px; color: var(--success); display: flex; align-items: center; gap: 4px; }
.status b svg { width: 14px; height: 14px; flex: none; }
.chip-float { position: absolute; left: var(--x); top: var(--y); display: none; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-full); background: var(--accent); color: var(--on-accent); font-size: 13px; line-height: 18px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); animation: float 6s ease-in-out infinite; animation-delay: var(--delay, 0s); white-space: nowrap; }
.chip-float.alt { background: var(--brand); color: var(--on-brand); }
.chip-float svg { width: 15px; height: 15px; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (min-width: 640px) { .chip-float { display: inline-flex; } .hero-visual { padding: 34px 26px; } }

/* Marquee of institution types */
.strip { border-top: 1px solid rgba(143, 166, 224, .18); padding: var(--space-4) 0; overflow: hidden; position: relative; }
.strip-track { display: flex; gap: var(--space-12); width: max-content; animation: marquee 34s linear infinite; }
.strip-track span { display: inline-flex; align-items: center; gap: var(--space-3); font: 600 14px/20px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.strip-track span::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Cards and grids ---------------- */
.grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.section-raised .card { background: var(--surface); }
.card p { color: var(--ink-muted); }
.card.lift:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 40px -24px rgba(13, 28, 66, .45); }
.card .num { position: absolute; right: var(--space-6); top: var(--space-4); font: 800 40px/1 var(--font-display); color: var(--brand-soft); letter-spacing: -0.04em; }
.icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.icon svg { width: 22px; height: 22px; }
.card.lift:hover .icon { background: var(--brand); color: var(--on-brand); transform: rotate(-6deg) scale(1.05); }
.more { font-weight: 600; }
.checks { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.checks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand); }
.badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-3); border-radius: var(--radius-full); font-size: 13px; line-height: 18px; font-weight: 600; background: var(--accent); color: var(--on-accent); align-self: flex-start; }
.badge-soft { background: var(--brand-soft); color: var(--ink); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-success { background: var(--success-soft); color: var(--success); }

/* ---------------- Connected modules (rule demo) ---------------- */
.split { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); } }
.rule { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); box-shadow: 0 24px 60px -36px rgba(13, 28, 66, .5); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: var(--space-2); }
.node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-2); text-align: center; font-size: 13px; line-height: 18px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: var(--space-1); transition: border-color .3s var(--ease), background .3s var(--ease); min-width: 0; }
.node svg { width: 20px; height: 20px; color: var(--brand); }
.node.bad { border-color: var(--warning); background: var(--warning-soft); }
.node.bad svg { color: var(--warning); }
.wire { width: 28px; height: 2px; background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%); background-size: 8px 2px; animation: wire 1s linear infinite; }
@keyframes wire { to { background-position: 8px 0; } }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); min-height: 56px; cursor: pointer; }
.toggle span { font-weight: 500; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line-strong); transition: background .25s var(--ease); }
.toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transition: transform .25s var(--ease); }
.toggle input:checked + i { background: var(--success); }
.toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 2px; }
.verdict { border-radius: var(--radius-md); padding: var(--space-4); display: flex; gap: var(--space-3); align-items: flex-start; background: var(--warning-soft); color: var(--warning); transition: background .3s var(--ease), color .3s var(--ease); }
.verdict.ok { background: var(--success-soft); color: var(--success); }
.verdict svg { width: 24px; height: 24px; flex: none; }
.verdict b { display: block; font: 700 18px/26px var(--font-display); }
.verdict span { font-size: 14px; line-height: 20px; color: var(--ink); }
.verdict.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.025); } }

/* ---------------- Tabs + module bento ---------------- */
.tabs { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); margin-bottom: var(--space-6); scrollbar-width: thin; }
.tabs button { flex: none; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-full); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 600 14px/20px var(--font-sans); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.tabs button:hover { background: var(--brand-soft); }
.tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tabs button small { opacity: .75; font-weight: 500; margin-left: 4px; }
.bento { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bento .wide { grid-column: span 2; } }
.bento .card { animation: pop .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 60ms); }
@keyframes pop { from { opacity: .2; transform: translateY(14px) scale(.985); } }
.mod-head { display: flex; align-items: center; gap: var(--space-3); }
.mod-head h3 { font-size: 18px; line-height: 26px; }
.mod .checks { font-size: 15px; }
.note { border: 1px solid var(--line); background: var(--brand-soft); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); margin-top: var(--space-6); }
.note-warning { background: var(--warning-soft); border-color: var(--warning); }
.note-warning strong { color: var(--warning); }

/* ---------------- Who it's for ---------------- */
.who .terms { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.who .terms span { padding: 4px 10px; border-radius: var(--radius-full); background: var(--brand-soft); font-size: 13px; line-height: 18px; font-weight: 600; }
.who .card { overflow: hidden; }
.who .card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.who .card:hover::before { transform: scaleX(1); }

/* ---------------- App band ---------------- */
.app-grid { position: relative; display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 1000px) { .app-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.band-dark h2 { color: var(--ink); }
.band-dark .lead { color: var(--ink-muted); }
.phones { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: center; align-items: flex-start; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.phone-wrap:nth-child(2) { margin-top: var(--space-8); }
.phone { width: 264px; max-width: 100%; border: 2px solid var(--line-strong); border-radius: 36px; padding: 10px; background: #010736; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); animation: float 7s ease-in-out infinite; }
.phone-wrap:nth-child(2) .phone { animation-delay: -3.5s; }
.screen { border-radius: 26px; background: var(--surface-raised); padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); min-height: 470px; }
.screen-title { font: 700 15px/20px var(--font-display); color: var(--brand); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px var(--space-3); font-size: 13px; line-height: 18px; color: var(--ink-muted); display: flex; flex-direction: column; gap: 2px; }
.tile strong { font-size: 14px; line-height: 20px; color: var(--ink); }
.tile-row { flex-direction: row; gap: var(--space-3); align-items: center; }
.tile-row > div { display: flex; flex-direction: column; }
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip { padding: 4px var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--line-strong); font-size: 13px; line-height: 18px; font-weight: 600; }
.chip-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ring { width: 54px; height: 54px; flex: none; }
.ring-track { stroke: var(--line); }
.ring-value { stroke: var(--success); stroke-dasharray: 133 145; }
.js .ring-value { stroke-dasharray: 0 145; transition: stroke-dasharray 1.4s var(--ease) .3s; }
.js .in .ring-value { stroke-dasharray: 133 145; }
.ring text { fill: var(--ink); font: 700 13px var(--font-sans); }
.roll { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-2); color: var(--ink); }
.pal { display: flex; gap: var(--space-1); }
.pal span { width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.pal .on-p { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.pal .on-a { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.pal .on-l { background: var(--warning-soft); color: var(--warning); border-color: var(--warning); }
.js .pal [class^="on-"] { animation: mark .4s var(--ease) both paused; animation-delay: calc(var(--r, 0) * 180ms + 500ms); }
.js .in .pal [class^="on-"] { animation-play-state: running; }
@keyframes mark { from { background: transparent; color: var(--ink-muted); border-color: var(--line-strong); transform: scale(.8); } }
.two-col { display: grid; gap: var(--space-6); }
@media (min-width: 560px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two-col h3 { color: var(--ink); font-size: 16px; line-height: 24px; margin-bottom: var(--space-2); }
.two-col .checks { font-size: 15px; color: var(--ink-muted); }

/* ---------------- Security ---------------- */
.ledger { list-style: none; display: grid; gap: var(--space-3); counter-reset: l; }
.ledger li { counter-increment: l; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.ledger li::before { content: "0" counter(l); font: 800 18px/26px var(--font-display); color: var(--accent-ink); }
.ledger b { display: block; }
.ledger span { color: var(--ink-muted); font-size: 15px; }

/* ---------------- Pricing ---------------- */
.price { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 38px; color: var(--ink); }
.tbd { background: var(--warning-soft); color: var(--warning); border-radius: var(--radius-sm); padding: 0 6px; font-weight: 600; white-space: nowrap; }
.plan-talk { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.plan-talk h3, .plan-talk p { color: var(--on-brand); }
.plan-talk .btn { background: var(--surface); color: var(--ink); margin-top: auto; }
.plan-talk .btn:hover { background: var(--accent); color: var(--on-accent); }

/* ---------------- FAQ ---------------- */
.faq { display: flex; flex-direction: column; gap: var(--space-3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .25s var(--ease); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); min-height: 56px; font: 600 17px/24px var(--font-display); color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 var(--space-6) var(--space-6); color: var(--ink-muted); max-width: 68ch; }

/* ---------------- Demo form ---------------- */
.form { display: grid; gap: var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form { padding: var(--space-8); } }
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; min-height: 48px; padding: var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-sans); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(143, 166, 224, .35); }
textarea { min-height: 104px; resize: vertical; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.check label { font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--danger); font-size: 13px; line-height: 18px; font-weight: 600; }
[aria-invalid="true"] { border-color: var(--danger); }
.form-status { border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--success-soft); color: var(--success); }
.form-status.err { background: var(--danger-soft); color: var(--danger); }
.steps { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; color: var(--ink-muted); }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 14px/32px var(--font-display); text-align: center; }

/* ---------------- Legal pages, footer ---------------- */
.page-hero { padding: var(--space-12) 0 var(--space-8); }
.prose { display: flex; flex-direction: column; gap: var(--space-4); max-width: 68ch; }
.prose h2 { margin-top: var(--space-6); font-size: 22px; line-height: 30px; }
.site-footer { background: var(--surface-raised); border-top: 1px solid var(--line); padding: var(--space-12) 0 var(--space-8); }
.footer-grid { display: grid; gap: var(--space-8); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-col ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--ink); font-size: 15px; }
.footer-col a:hover { text-decoration: underline; color: var(--brand); }
.footer-col h2 { font-size: 13px; line-height: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-family: var(--font-sans); font-weight: 600; margin-bottom: var(--space-2); }
.footer-col p { font-size: 15px; line-height: 26px; }
.footer-base { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; line-height: 20px; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; }

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .btn-row .btn { width: 100%; }
  .status { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .wire { width: 2px; height: 16px; margin: 0 auto; background-image: linear-gradient(180deg, var(--line-strong) 50%, transparent 50%); background-size: 2px 8px; animation: none; }
  .phone-wrap:nth-child(2) { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .ring-value { stroke-dasharray: 133 145; }
  .rise-reveal { transform: scaleX(1); }
  .traveller { left: 87.5%; top: 16%; }
  .stop-dot { background: var(--accent); border-color: var(--accent); }
  .strip-track { flex-wrap: wrap; width: auto; justify-content: center; gap: var(--space-3) var(--space-8); }
  .strip-track span[aria-hidden="true"] { display: none; }
}
