/* Global Correctional Services website
   Colours and type follow the GCS brand style guide v1.0. */

:root {
  --navy: #15224A;
  --navy-deep: #0E1834;
  --blue: #2446A6;
  --blue-dark: #1B3683;
  --green: #9CB83B;
  --slate: #5B6780;
  --ink: #2C3856;
  --paper: #F4F6FA;
  --line: #DDE2EC;
  --white: #FFFFFF;
  --on-navy-muted: #B7C0D4;
  --error: #B42318;
  --success: #1F7A4D;

  --font: 'Archivo', 'Segoe UI', Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(4rem, 3rem + 4vw, 7rem);

  --radius-s: 6px;
  --radius-m: 12px;
  --shadow-panel: 0 1px 2px rgba(21, 34, 74, 0.06), 0 12px 32px -12px rgba(21, 34, 74, 0.22);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 700ms;

  --header-h: 72px;
  --z-header: 100;
  --z-menu: 200;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 599px) { body { font-size: 1rem; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 var(--space-2); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-4); font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); letter-spacing: -0.005em; }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0 0 var(--space-2); max-width: 68ch; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 58ch; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible { outline-color: var(--green); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: var(--radius-s); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1200px, 100% - 64px); } }

.section { padding-block: var(--space-6); }
.section.paper { background: var(--paper); }
.section-head { margin-bottom: var(--space-5); max-width: 720px; }
.section-head p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4rem; border-radius: var(--radius-s);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--paper); color: var(--navy); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
/* The blur sits on a layer behind the header: a backdrop-filter on the header itself would make it
   the containing block for the fixed mobile menu and trap the menu inside the header bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(21, 34, 74, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-3); }
.brand { display: block; flex: none; }
.brand svg { width: 196px; height: auto; }
@media (max-width: 380px) { .brand svg { width: 170px; } }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--navy); text-decoration: none; font-weight: 500; border-radius: var(--radius-s);
  position: relative;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out);
}
.nav-list a:not(.btn):hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { font-weight: 700; }
.nav-list .btn { margin-left: 12px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 12px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-s); color: var(--navy); font: 600 1rem var(--font); cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
    background: var(--white); padding: var(--space-3) 16px var(--space-5);
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-list a:not(.btn) { display: flex; min-height: 56px; font-size: 1.25rem; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 4px; }
  .js .nav-list a:not(.btn)::after { display: none; }
  .js .nav-list .btn { margin: var(--space-3) 0 0; width: 100%; }
  body.menu-open { overflow: hidden; }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--space-6); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.hero-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-5); } }
.hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.25rem); font-stretch: 112%; margin-bottom: var(--space-3); }
.hero .lead { margin-bottom: var(--space-4); }
.hero-note { margin-top: var(--space-4); font-size: var(--step--1); color: var(--slate); }

.network { position: relative; }
.network svg { width: 100%; height: auto; overflow: visible; }
.network .link { fill: none; stroke: #B9C3D9; stroke-width: 1.5; }
.network .node-halo { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.network .node-core { fill: var(--blue); }
.network .node-core.accent { fill: var(--green); }
.network .node-label { font: 500 13px var(--font); fill: var(--slate); }
.network .pulse { fill: var(--green); }
.network .pulse.in { fill: var(--blue); }
.network .orbit-ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 7; }
@media (max-width: 599px) { .network .node-label { display: none; } }

.motion-toggle {
  position: absolute; right: 0; bottom: -8px; min-height: 36px; padding: 0 12px;
  display: none; align-items: center; gap: 6px;
  font: 500 var(--step--1) var(--font); color: var(--slate);
  background: rgba(255,255,255,0.8); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.motion .motion-toggle { display: inline-flex; }
.motion-toggle svg { width: 14px; height: 14px; }
.motion-toggle:hover { color: var(--navy); border-color: var(--slate); }

/* ---------- Proof band ---------- */
.proof { background: var(--navy); color: var(--white); padding-block: var(--space-5); }
.proof-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.proof-item { border-left: 3px solid var(--green); padding-left: var(--space-2); }
.proof-value { display: block; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); font-weight: 700; font-stretch: 118%; line-height: 1.1; color: var(--white); font-variant-numeric: tabular-nums; }
.proof-label { display: block; margin-top: 6px; color: var(--on-navy-muted); font-size: var(--step--1); max-width: 30ch; }

/* ---------- Product panels ---------- */
.product { display: grid; gap: var(--space-5); align-items: center; }
.product + .product { margin-top: var(--space-6); }
@media (min-width: 960px) {
  .product { grid-template-columns: 1fr 1.1fr; gap: var(--space-6); }
  .product.flip .product-copy { order: 2; }
}
.product-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--blue); margin-bottom: var(--space-2); }
.product-kicker .abbr { display: inline-grid; place-items: center; min-width: 44px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 0.8rem; font-stretch: 118%; letter-spacing: 0.04em; }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 22px; height: 22px; margin-top: 3px; color: var(--green); }
.text-link { font-weight: 600; text-decoration: none; display: inline-block; border-bottom: 2px solid currentColor; line-height: 1.3; padding: 10px 0 2px; }

/* ---------- Illustrated application screens ---------- */
.mock { background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-panel); border: 1px solid var(--line); overflow: hidden; font-size: 0.8125rem; line-height: 1.4; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--navy); color: var(--white); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.mock-bar strong { font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.01em; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
@media (max-width: 520px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } }
.mock-side { background: var(--paper); border-right: 1px solid var(--line); padding: 12px 8px; display: grid; align-content: start; gap: 2px; }
.mock-side span { padding: 7px 10px; border-radius: 5px; color: var(--slate); }
.mock-side span.active { background: var(--white); color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--green); }
.mock-main { padding: 16px; display: grid; gap: 14px; align-content: start; }
.mock-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mock-title b { color: var(--navy); font-size: 0.95rem; }
.mock-title small { color: var(--slate); }
.id-row { display: grid; grid-template-columns: 76px 76px 1fr; gap: 12px; align-items: start; }
@media (max-width: 400px) { .id-row { grid-template-columns: 64px 64px 1fr; } }
.fields.summary { grid-template-columns: 1fr; gap: 6px; }
.fields.details { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); padding-top: 12px; border-top: 1px solid var(--line); }
.id-card { position: relative; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); display: grid; place-items: center; aspect-ratio: 3 / 3.6; overflow: hidden; }
.id-card svg { width: 64%; color: #A7B2CA; }
.id-card .tag { position: absolute; left: 6px; bottom: 6px; font-size: 0.6875rem; color: var(--slate); }
.scan-line { position: absolute; left: 8%; right: 8%; top: 12%; height: 2px; background: var(--green); box-shadow: 0 0 10px 2px rgba(156, 184, 59, 0.55); opacity: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-content: start; }
.field span { display: block; color: var(--slate); font-size: 0.6875rem; }
.field b { color: var(--navy); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th, .mock-table td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock-table th { color: var(--slate); font-weight: 500; font-size: 0.6875rem; }
.mock-table td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
.mock-table tr > :last-child { text-align: right; }
@media (max-width: 480px) { .mock-table tr > :nth-child(3) { display: none; } .mock-table th, .mock-table td { white-space: normal; } }
.mock-caption { margin-top: 10px; font-size: 0.75rem; color: var(--slate); }
.balance { display: flex; justify-content: space-between; align-items: end; padding: 14px; border-radius: 8px; background: var(--navy); color: var(--white); }
.balance span { color: var(--on-navy-muted); font-size: 0.75rem; display: block; }
.balance svg { width: 16px; height: 16px; }
.balance b { font-size: 1.5rem; font-stretch: 118%; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; background: #EEF3DD; color: #3F5214; }
.pill.blue { background: #E4EAF8; color: var(--blue-dark); }

/* ---------- Lifecycle (admission to release) ---------- */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; position: relative; }
.lifecycle li { position: relative; padding: 0 0 var(--space-4) 56px; }
.lifecycle li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--blue); color: var(--navy); font-weight: 700; font-size: 0.95rem;
}
.lifecycle li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; background: var(--line); }
.lifecycle li:last-child::after { display: none; }
.lifecycle h3 { margin-bottom: 4px; padding-top: 6px; }
.lifecycle p { color: var(--slate); margin: 0; font-size: 0.975rem; }
@media (min-width: 960px) {
  .lifecycle { grid-template-columns: repeat(7, 1fr); gap: var(--space-2); }
  .lifecycle li { padding: 58px 0 0; }
  .lifecycle li::after { left: 40px; right: calc(-1 * var(--space-2)); top: 18px; bottom: auto; width: auto; height: 2px; }
  .lifecycle h3 { font-size: 1.05rem; padding-top: 0; }
  .lifecycle p { font-size: 0.9rem; }
}

/* ---------- Modules and services ---------- */
.feature-grid { display: grid; gap: var(--space-4) var(--space-4); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature .icon { width: 44px; height: 44px; border-radius: 10px; background: #E9EEF9; color: var(--blue); display: grid; place-items: center; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--slate); font-size: 0.975rem; }
.on-navy .feature .icon { background: rgba(255,255,255,0.08); color: var(--green); }
.on-navy .feature h3 { color: var(--white); }
.on-navy .feature p { color: var(--on-navy-muted); }

.split { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (min-width: 960px) { .split.wide-left { grid-template-columns: 1.2fr 1fr; } }

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(120px, 0.8fr) 1.2fr; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.facts b { color: var(--navy); }

.audience { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.audience li { padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--navy); font-weight: 500; }

/* ---------- Navy section ---------- */
.on-navy { background: var(--navy); color: var(--on-navy-muted); }
.on-navy h2, .on-navy h3 { color: var(--white); }
.on-navy .section-head p { color: var(--on-navy-muted); }
.on-navy a:not(.btn) { color: var(--white); }

/* ---------- Cashless flow ---------- */
.flow { position: relative; display: grid; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
.flow li { position: relative; background: #1D2C5A; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-m); padding: var(--space-3); }
.flow .icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--navy); margin-bottom: var(--space-2); }
.flow .icon svg { width: 22px; height: 22px; }
.flow h3 { font-size: 1.1rem; margin-bottom: 6px; }
.flow p { margin: 0; font-size: 0.95rem; }
.flow-track { display: none; }
@media (min-width: 900px) {
  .flow-track { display: block; position: absolute; left: 12%; right: 12%; top: 46px; height: 2px; background: rgba(255,255,255,0.16); z-index: 0; }
  .flow-track i { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(156,184,59,0.18); opacity: 0; }
  .flow li { z-index: 1; }
}

/* ---------- Delivery timeline (services) ---------- */
.timeline-wrap { position: relative; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 64px; counter-reset: phase; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-fill { position: absolute; z-index: 1; left: 21px; top: 8px; width: 2px; height: calc(100% - 16px); background: var(--green); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.timeline > li { position: relative; padding-bottom: var(--space-5); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  counter-increment: phase; content: counter(phase);
  position: absolute; left: -64px; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--navy); color: var(--navy); font-weight: 700;
  transition: background-color var(--dur-base) ease, color var(--dur-base) ease, border-color var(--dur-base) ease;
}
.timeline > li.is-reached::before { background: var(--navy); color: var(--white); }
.timeline h3 { padding-top: 8px; }
.timeline p { color: var(--slate); }
.timeline .tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.timeline .tags li { font-size: var(--step--1); padding: 4px 12px; background: var(--paper); border-radius: 999px; color: var(--navy); }

.span-note { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: var(--space-3); border-radius: var(--radius-m); background: var(--paper); border-left: 4px solid var(--green); margin-bottom: var(--space-5); }
.span-note .icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--blue); }
.span-note .icon svg { width: 26px; height: 26px; }
.span-note h3 { margin-bottom: 4px; }
.span-note p { margin: 0; color: var(--slate); }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(2.5rem, 2rem + 2vw, 4rem); background: linear-gradient(180deg, var(--white), var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { color: var(--ink); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 var(--space-3); font-size: var(--step--1); color: var(--slate); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #A7B2CA; }
.breadcrumb a { color: var(--slate); }
.page-hero-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Call to action ---------- */
.cta-band { background: var(--navy); color: var(--on-navy-muted); padding-block: var(--space-6); position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 960px) { .cta-band .container { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: var(--white); margin-bottom: var(--space-1); }
.cta-band p { margin: 0; }
.cta-orbit { position: absolute; right: -120px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); opacity: 0.12; pointer-events: none; }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 960px) { .form-layout { grid-template-columns: 1.4fr 1fr; gap: var(--space-6); } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-panel); }
.form-grid { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field-group label, .field-group legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field-group .hint { display: block; font-size: var(--step--1); color: var(--slate); margin: -2px 0 8px; }
.req { color: var(--error); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 400 1rem/1.4 var(--font); color: var(--navy);
  background: var(--white); border: 1.5px solid #B9C3D9; border-radius: var(--radius-s);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
textarea.input { min-height: 130px; resize: vertical; }
.input:hover { border-color: var(--slate); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 70, 166, 0.22); }
.input[aria-invalid="true"] { border-color: var(--error); }
.error-text { display: none; margin-top: 6px; color: var(--error); font-size: var(--step--1); font-weight: 500; }
.error-text.is-shown { display: flex; gap: 6px; align-items: flex-start; }
.error-text svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
fieldset.field-group { border: 0; padding: 0; margin: 0; }
.choice-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); cursor: pointer; font-weight: 500; color: var(--navy); transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.choice:hover { border-color: var(--slate); }
.choice input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--blue); background: #F2F5FC; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; color: var(--ink); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.error-summary { display: none; margin-bottom: var(--space-3); padding: var(--space-2) var(--space-3); border: 2px solid var(--error); border-radius: var(--radius-s); background: #FEF3F2; }
.error-summary.is-shown { display: block; }
.error-summary h2 { font-size: 1.05rem; color: var(--error); margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); font-weight: 600; }
.form-success { display: none; text-align: left; }
.form-success.is-shown { display: block; }
.form-success .tick { width: 56px; height: 56px; border-radius: 50%; background: #E7F4EC; color: var(--success); display: grid; place-items: center; margin-bottom: var(--space-3); }
.form-success .tick svg { width: 28px; height: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .icon { width: 44px; height: 44px; border-radius: 10px; background: #E9EEF9; color: var(--blue); display: grid; place-items: center; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list b { display: block; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: var(--space-5) var(--space-4); font-size: 0.95rem; }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand svg { width: 220px; height: auto; margin-bottom: var(--space-2); }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { font-size: 0.95rem; color: var(--white); margin-bottom: var(--space-2); letter-spacing: 0.01em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: var(--step--1); }

/* ---------- Motion (only when scripts run and the visitor allows motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion.ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0ms); }
  .motion.ready .reveal.is-visible { opacity: 1; transform: none; }

  /* Hero headline rises in once on load */
  .motion .hero-copy > * { animation: rise 800ms var(--ease-out) both; }
  .motion .hero-copy > *:nth-child(2) { animation-delay: 90ms; }
  .motion .hero-copy > *:nth-child(3) { animation-delay: 180ms; }
  .motion .hero-copy > *:nth-child(4) { animation-delay: 270ms; }

  /* Network: the hub settles, links draw out to each facility, then data moves */
  .motion .network .hub { animation: hub-in 900ms var(--ease-out) both; transform-origin: 280px 260px; }
  .motion .network .link { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms var(--ease-out) forwards; animation-delay: calc(500ms + var(--i) * 90ms); }
  .motion .network .node { animation: node-in 500ms var(--ease-out) both; animation-delay: calc(900ms + var(--i) * 90ms); transform-box: fill-box; transform-origin: center; }
  .motion .network .orbit-ring { animation: spin 90s linear infinite; transform-origin: 280px 260px; }
  .motion .network .pulse { offset-rotate: 0deg; opacity: 0; animation: travel 3.2s var(--ease-out) infinite; animation-delay: calc(2000ms + var(--i) * 410ms); }
  .motion .network .pulse.in { animation-direction: reverse; }
  .motion .network.is-paused *, .motion .network.is-paused { animation-play-state: paused !important; }

  /* Illustrated screens */
  .motion .mock.is-visible .scan-line { animation: scan 2.6s ease-in-out 600ms infinite; }
  .motion.ready .mock .fields .field { opacity: 0; transform: translateY(6px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(300ms + var(--i, 0) * 70ms); }
  .motion.ready .mock.is-visible .fields .field { opacity: 1; transform: none; }
  .motion.ready .mock .mock-table tbody tr { opacity: 0; transition: opacity 500ms var(--ease-out); transition-delay: calc(500ms + var(--i, 0) * 120ms); }
  .motion.ready .mock.is-visible .mock-table tbody tr { opacity: 1; }

  /* Cashless flow: a token travels deposit to payout once the section is in view */
  .motion .flow.is-visible ~ .flow-track i { animation: token 5s var(--ease-out) 400ms infinite; }
  .motion.ready .flow li { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
  .motion.ready .flow.is-visible li { opacity: 1; transform: none; }

  .motion .cta-orbit { animation: spin 120s linear infinite; }
}

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hub-in { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes node-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes scan { 0%, 100% { top: 12%; opacity: 0; } 10% { opacity: 1; } 50% { top: 84%; opacity: 1; } 60% { opacity: 0; } }
@keyframes token { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .network .pulse { display: none; }
}

@media print {
  .site-header, .cta-band, .motion-toggle, .network .pulse { display: none; }
  .on-navy, .proof, .site-footer { background: none; color: #000; }
}
