@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2?v=3100e775e861-prod-portal-3251263a") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0a1728;
  --navy: #071a33;
  --blue: #0b4f9c;
  --cyan: #35c7df;
  --ice: #eef7fb;
  --line: #cfdae5;
  --muted: #4c6075;
  --white: #fff;
  --max: 1180px;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(4, 23, 45, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: #07396f; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e59b00; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: .7rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; width: 205px; flex: none; }
.primary-nav > ul { display: flex; align-items: center; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a, .primary-nav button { color: var(--ink); font-weight: 650; text-decoration: none; }
.nav-group { position: relative; }
.nav-group > button { padding: .75rem .2rem; border: 0; background: transparent; cursor: pointer; }
.nav-group > button::after { content: "⌄"; padding-left: .35rem; color: var(--blue); }
.nav-group > ul { position: absolute; top: calc(100% + 8px); left: -1rem; display: none; width: 245px; margin: 0; padding: .6rem; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav-group > ul a { display: block; padding: .58rem .7rem; border-radius: 7px; }
.nav-group > ul a:hover { background: var(--ice); }
.nav-group.is-open > ul { display: block; }
.nav-toggle { display: none; padding: .6rem .8rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .68rem 1.15rem; color: var(--white) !important; background: var(--blue); border: 2px solid var(--blue); border-radius: 8px; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { background: #083c77; border-color: #083c77; }
.button-small { min-height: 40px; padding: .48rem .8rem; }
.page-hero { overflow: hidden; color: var(--white); background: radial-gradient(circle at 78% 25%, #0c559a 0, var(--navy) 47%, #04101e 100%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; min-height: 340px; gap: 3rem; padding-block: 70px; }
.page-hero h1 { max-width: 15ch; margin: .25rem 0 1rem; font-size: clamp(2.55rem, 6vw, 5rem); line-height: .99; letter-spacing: -.045em; }
.page-hero .lede { max-width: 64ch; color: #d8e8f4; font-size: 1.14rem; }
.page-hero img { filter: drop-shadow(0 25px 50px rgba(0,0,0,.32)); }
.eyebrow { margin: 0 0 .5rem; color: var(--cyan); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-shell { padding-block: clamp(3rem, 7vw, 6rem); }
.prose { max-width: 860px; font-size: 1.06rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 3.5rem 0 1rem; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.025em; }
.prose h3 { margin: 2.2rem 0 .6rem; font-size: 1.28rem; line-height: 1.25; }
.prose p, .prose li { max-width: 75ch; }
.prose blockquote { margin: 2rem 0; padding: 1.2rem 1.5rem; background: var(--ice); border-left: 5px solid var(--cyan); }
.prose hr { margin: 3.5rem 0; border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; margin: 2rem 0; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { padding: .85rem; text-align: left; border: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--white); background: var(--navy); }
.prose details { margin: .8rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; }

.template-home .page-hero { background: radial-gradient(circle at 77% 30%, #1164ad, var(--navy) 50%, #040e1b); }
.template-home .page-hero h1 { max-width: 11ch; }
.template-sector .page-hero, .template-industry .page-hero { background: radial-gradient(circle at 82% 20%, #096278, var(--navy) 50%, #04101e); }
.template-legal .page-hero { background: var(--navy); }
.template-legal .page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }

.form-card { max-width: 980px; margin-top: 4rem; padding: clamp(1.25rem, 4vw, 2.5rem); background: #f6fafc; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h2 { margin-top: 0; font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem 1.3rem; margin: 1.5rem 0; }
.field-wide { grid-column: 1 / -1; }
.field label:not(.check), .field legend { display: block; margin-bottom: .35rem; font-weight: 700; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; min-height: 46px; padding: .65rem .75rem; color: var(--ink); background: var(--white); border: 1px solid #8da0b4; border-radius: 7px; }
.field input, .field select, .field textarea, .field fieldset { scroll-margin-top: 120px; }
.field textarea { min-height: 120px; resize: vertical; }
.field fieldset { margin: 0; padding: 0; border: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .35rem .8rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; padding: .3rem 0; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; flex: none; accent-color: var(--blue); }
.field-error { min-height: 1.2em; margin: .2rem 0 0; color: #a31313; font-size: .88rem; }
.form-status { margin: 1rem 0; font-weight: 700; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-footer { color: #dbe8f4; background: #03101e; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-block: 3.5rem; }
.footer-logo { width: 180px; padding: 5px 8px; background: var(--white); border-radius: 5px; }
.site-footer h2 { color: var(--white); font-size: 1rem; }
.site-footer a, .link-button { display: block; margin: .42rem 0; color: #dbe8f4; }
.link-button { padding: 0; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.footer-bottom { padding-block: 1rem; border-top: 1px solid #26374a; font-size: .85rem; }

.consent { position: fixed; z-index: 100; right: 20px; bottom: 20px; left: 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; max-width: 980px; margin-inline: auto; padding: 1.2rem 1.35rem; color: var(--white); background: #06192e; border: 1px solid #45617a; border-radius: 12px; box-shadow: var(--shadow); }
.consent h2, .consent p { margin: 0; }
.consent h2 { font-size: 1.1rem; }
.consent p { color: #dbe8f4; }
.consent-actions { display: flex; gap: .7rem; }
.consent-actions .button { min-width: 145px; }

/* Premium visual system */
body {
  background:
    linear-gradient(180deg, #fff 0, #fff 34rem, #f7fbfd 58rem, #fff 82rem);
}
.site-header { box-shadow: 0 8px 30px rgba(4, 23, 45, .04); }
.primary-nav > ul { gap: 1.05rem; }
.nav-group > ul { padding: .75rem; border-color: rgba(11, 79, 156, .18); border-radius: 16px; }
.nav-group > ul a { padding: .68rem .8rem; }
.button { padding: .76rem 1.25rem; border-radius: 10px; box-shadow: 0 8px 24px rgba(11, 79, 156, .18); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11, 79, 156, .24); }
.button-secondary { color: var(--blue) !important; background: var(--white); border-color: #a8c8df; box-shadow: none; }
.button-secondary:hover { color: var(--navy) !important; background: var(--ice); border-color: var(--blue); }
.button-ghost { color: var(--white) !important; background: transparent; border-color: rgba(255,255,255,.62); box-shadow: none; }
.button-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.eyebrow { color: #087183; }
.page-hero .eyebrow, .flow-feature .eyebrow, .content-section-2 .eyebrow { color: #69e4e7; }
.page-hero {
  position: relative;
  background:
    radial-gradient(circle at 84% 8%, rgba(53,199,223,.28), transparent 28rem),
    radial-gradient(circle at 4% 100%, rgba(25,118,210,.24), transparent 25rem),
    linear-gradient(125deg, #03101f 0%, #082a50 48%, #074f67 100%);
}
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}
.hero-grid { position: relative; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); min-height: 520px; gap: clamp(2rem,5vw,5rem); padding-block: clamp(4rem,8vw,7rem); }
.hero-copy { position: relative; z-index: 1; }
.page-hero h1 { max-width: 13ch; font-size: clamp(3rem,6.2vw,5.6rem); line-height: .96; text-wrap: balance; }
.page-hero .lede { max-width: 58ch; margin-top: 1.35rem; font-size: clamp(1.05rem,1.6vw,1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-art { position: relative; z-index: 1; }
.hero-art::before { position: absolute; inset: 12% 8%; content: ""; background: var(--cyan); filter: blur(70px); opacity: .18; }
.hero-art img { position: relative; width: 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 30px; box-shadow: 0 38px 90px rgba(0,0,0,.34); }
.template-home .page-hero, .template-sector .page-hero, .template-industry .page-hero, .template-legal .page-hero { background:
  radial-gradient(circle at 84% 8%, rgba(53,199,223,.28), transparent 28rem),
  radial-gradient(circle at 4% 100%, rgba(25,118,210,.24), transparent 25rem),
  linear-gradient(125deg, #03101f 0%, #082a50 48%, #074f67 100%); }
.page-shell { padding-block: clamp(4rem,8vw,7.5rem); }
.prose { display: grid; max-width: none; gap: 1.4rem; font-size: 1.06rem; }
.content-section {
  position: relative;
  width: 100%;
  padding: clamp(2rem,4vw,3.7rem);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(12,79,145,.12);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(4,23,45,.07);
}
.content-section::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  content: "";
  border: 1px solid rgba(53,199,223,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(53,199,223,.04), 0 0 0 70px rgba(11,79,156,.03);
  pointer-events: none;
}
.content-section-1 { margin-left: auto; background: linear-gradient(145deg, #edf8fb, #f8fbff); }
.content-section-2 { color: #dce9f4; background: linear-gradient(135deg, #061a31, #0b3e64); border-color: #1a5678; }
.content-section-2 h2, .content-section-2 h3, .content-section-2 strong { color: var(--white); }
.content-section-2 a { color: #7ce3ee; }
.content-section-2 blockquote { color: var(--ink); }
.prose h2 { position: relative; max-width: 22ch; margin: 0 0 1.2rem; font-size: clamp(1.8rem,3.2vw,2.7rem); }
.prose h2::before { display: block; width: 44px; height: 5px; margin-bottom: 1rem; content: ""; background: linear-gradient(90deg, var(--cyan), var(--blue)); border-radius: 5px; }
.prose h3 { max-width: 34ch; margin-top: 2rem; }
.prose p, .prose li { position: relative; max-width: 78ch; }
body:not(.template-legal) .content-section > ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .75rem;
  padding: 0;
  list-style: none;
}
body:not(.template-legal) .content-section > ul > li {
  padding: 1rem 1rem 1rem 2.8rem;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(12,79,145,.13);
  border-radius: 12px;
}
body:not(.template-legal) .content-section > ul > li::before {
  position: absolute;
  top: 1.18rem;
  left: 1rem;
  width: 1rem;
  height: 1rem;
  content: "";
  background: var(--cyan);
  border: 4px solid rgba(11,79,156,.14);
  border-radius: 50%;
}
.content-section-2 > ul > li { color: var(--ink); }
.content-section-2 table { color: var(--ink); }
.prose table { overflow: hidden; background: var(--white); border-radius: 14px; box-shadow: 0 8px 28px rgba(4,23,45,.08); }
.prose details { padding: 1.15rem 1.25rem; background: var(--white); border-color: rgba(12,79,145,.18); border-radius: 12px; box-shadow: 0 8px 25px rgba(4,23,45,.05); }
.prose summary { color: var(--navy); font-weight: 750; cursor: pointer; }
.flow-feature {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
  gap: clamp(2rem,5vw,5rem);
  margin-top: clamp(3rem,7vw,6rem);
  padding: clamp(2rem,5vw,4rem);
  color: var(--white);
  background: linear-gradient(135deg, #03101f, #08385d);
  border-radius: 28px;
  box-shadow: 0 28px 75px rgba(4,23,45,.2);
}
.flow-feature h2 { margin: .3rem 0 1rem; font-size: clamp(2rem,3vw,3rem); line-height: 1.06; }
.flow-feature p:not(.eyebrow) { color: #cfe1ee; }
.flow-feature img { border: 1px solid rgba(255,255,255,.12); border-radius: 20px; }
.form-card { margin-inline: auto; border-radius: 22px; }

/* Interactive simulation */
.template-demo .prose { display: block; }
.simulation-kicker { display: inline-flex; padding: .4rem .7rem; color: #074c5c; background: #d7fbf6; border-radius: 999px; }
.scenario-picker { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.scenario-picker button { padding: .7rem 1rem; color: var(--blue); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-weight: 750; cursor: pointer; }
.scenario-picker button[aria-pressed="true"] { color: var(--white); background: var(--blue); border-color: var(--blue); }
.simulation { margin-top: 2rem; overflow: hidden; background: var(--white); border: 1px solid rgba(12,79,145,.16); border-radius: 24px; box-shadow: var(--shadow); }
.scenario-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.scenario-summary div { display: grid; gap: .25rem; padding: 1rem 1.2rem; background: #f8fbfe; }
.scenario-summary span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.simulation-stage { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 480px; }
.simulation-visual { position: relative; min-height: 430px; overflow: hidden; background: radial-gradient(circle at 70% 30%, #0b6190, #061a31 68%); }
.demo-world { position: absolute; inset: 8% 6% 28%; overflow: hidden; background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 34px 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.land { position: absolute; display: block; background: rgba(78,215,205,.17); border: 1px solid rgba(78,215,205,.27); transform: rotate(-8deg); }
.land-a { top: 23%; left: 10%; width: 28%; height: 32%; border-radius: 65% 35% 55% 45%; }
.land-b { top: 18%; left: 45%; width: 22%; height: 38%; border-radius: 45% 60% 35% 60%; }
.land-c { right: 10%; bottom: 16%; width: 20%; height: 25%; border-radius: 55% 40% 65% 35%; }
.world-node { position: absolute; z-index: 3; width: 16px; height: 16px; background: var(--cyan); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 7px rgba(78,215,205,.16); }
.world-origin { top: 38%; left: 24%; }
.world-approved { top: 31%; left: 56%; }
.world-attempt { right: 17%; bottom: 24%; background: var(--gold); opacity: .25; }
.world-route { position: absolute; z-index: 2; height: 2px; background: linear-gradient(90deg, var(--cyan), rgba(78,215,205,.15)); transform-origin: left center; }
.world-route-approved { top: 42%; left: 27%; width: 31%; transform: rotate(-9deg); }
.world-route-attempt { top: 40%; left: 58%; width: 28%; background: linear-gradient(90deg, var(--gold), #ef6a6a); transform: rotate(34deg); opacity: .15; }
.validation-panel { position: absolute; right: 6%; bottom: 7%; left: 6%; display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.validation-panel span { padding: .65rem; color: #c9d7e6; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; font-size: .78rem; font-weight: 700; }
.validation-panel span[data-state="pass"] { color: #d8fff8; background: rgba(42,184,154,.2); border-color: rgba(78,215,205,.55); }
.validation-panel span[data-state="fail"] { color: #ffe7e7; background: rgba(220,70,70,.2); border-color: rgba(244,112,112,.55); }
.decision-stamp { position: absolute; top: 7%; left: 6%; z-index: 4; padding: .5rem .75rem; color: var(--white); background: rgba(4,23,45,.72); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.sim-boundary, .sim-use-point { position: absolute; top: 50%; display: grid; width: 150px; min-height: 110px; place-items: center; padding: 1rem; color: var(--white); text-align: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.25); border-radius: 18px; transform: translateY(-50%); }
.sim-boundary { left: 7%; }
.sim-use-point { right: 7%; }
.sim-route { position: absolute; top: 50%; right: 27%; left: 27%; height: 4px; background: repeating-linear-gradient(90deg, var(--cyan) 0 12px, transparent 12px 22px); }
.sim-packet { position: absolute; top: -17px; left: 0; width: 38px; height: 38px; background: var(--white); border: 8px solid var(--cyan); border-radius: 10px; transition: left .7s ease, background-color .3s ease; }
.sim-checkpoint { position: absolute; top: -32px; left: 58%; width: 5px; height: 68px; background: var(--gold); opacity: 0; transition: opacity .3s ease; }
.sim-evidence { position: absolute; right: 8%; bottom: 8%; display: grid; width: 120px; gap: 7px; padding: 14px; background: rgba(255,255,255,.12); border-radius: 12px; opacity: 0; transform: translateY(20px); transition: opacity .35s ease, transform .35s ease; }
.sim-evidence span { height: 4px; background: var(--cyan); border-radius: 5px; }
.simulation-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem,4vw,4rem); }
.simulation-copy h2 { max-width: 12ch; margin: .25rem 0 1rem; font-size: clamp(2rem,3vw,3rem); line-height: 1.05; }
.simulation-copy h2::before { display: none; }
.simulation-outcome { align-self: flex-start; margin-top: 1rem; padding: .45rem .75rem; color: #075049; background: #d9faf5; border-radius: 999px; font-weight: 750; }
.simulation-steps { display: grid; grid-template-columns: repeat(5,1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.simulation-steps button { width: 100%; padding: 1rem .5rem; color: var(--muted); background: #f5f9fb; border: 0; border-right: 1px solid var(--line); font-weight: 700; cursor: pointer; }
.simulation-steps button[aria-current="step"] { color: var(--white); background: var(--blue); }
.simulation-actions { display: flex; align-items: center; gap: .75rem; padding: 1.25rem; }
.simulation-restart { color: var(--blue); }
.simulation[data-active-step="1"] .sim-packet { left: 28%; background: var(--gold); }
.simulation[data-active-step="2"] .sim-packet { left: 56%; }
.simulation[data-active-step="2"] .sim-checkpoint, .simulation[data-active-step="3"] .sim-checkpoint, .simulation[data-active-step="4"] .sim-checkpoint { opacity: 1; }
.simulation[data-active-step="3"] .sim-packet { left: 58%; background: #ef6a6a; border-radius: 50%; }
.simulation[data-active-step="4"] .sim-packet { left: 86%; background: var(--cyan); }
.simulation[data-active-step="4"] .sim-evidence { opacity: 1; transform: none; }
.simulation[data-active-step="1"] .world-attempt, .simulation[data-active-step="1"] .world-route-attempt { opacity: .45; }
.simulation[data-active-step="2"] .world-attempt, .simulation[data-active-step="2"] .world-route-attempt, .simulation[data-active-step="3"] .world-attempt, .simulation[data-active-step="3"] .world-route-attempt, .simulation[data-active-step="4"] .world-attempt, .simulation[data-active-step="4"] .world-route-attempt { opacity: 1; }
.simulation[data-active-step="3"] .world-attempt, .simulation[data-active-step="4"] .world-attempt { background: #ef6a6a; box-shadow: 0 0 0 9px rgba(239,106,106,.18); }
.demo-cta { margin-top: 3rem; padding: clamp(2rem,4vw,3.5rem); background: linear-gradient(145deg, var(--ice), #fff); border: 1px solid var(--line); border-radius: 22px; }
.demo-cta h2 { margin-top: .4rem; }

/* First-party enquiry panel */
.chat-launcher { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: inline-flex; min-height: 52px; align-items: center; gap: .55rem; padding: .7rem 1rem; color: var(--white); background: var(--blue); border: 0; border-radius: 999px; box-shadow: 0 14px 38px rgba(4,23,45,.28); font-weight: 800; cursor: pointer; }
.chat-launcher svg, .chat-close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-dialog { position: fixed; z-index: 110; right: 22px; bottom: 86px; width: min(410px,calc(100vw - 28px)); max-height: min(680px,calc(100vh - 110px)); overflow: auto; padding: 1.35rem; background: var(--white); border: 1px solid rgba(12,79,145,.18); border-radius: 22px; box-shadow: 0 28px 80px rgba(4,23,45,.3); }
.chat-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.chat-header h2 { margin: 0; font-size: 1.45rem; }
.chat-close { display: grid; width: 40px; height: 40px; flex: none; place-items: center; color: var(--navy); background: var(--ice); border: 0; border-radius: 50%; cursor: pointer; }
.chat-intro { margin: .7rem 0 1.2rem; color: var(--muted); }
.chat-progress { height: 5px; margin-bottom: 1.4rem; overflow: hidden; background: #dce8ef; border-radius: 5px; }
.chat-progress span { display: block; width: 25%; height: 100%; background: linear-gradient(90deg,var(--blue),var(--cyan)); transition: width .25s ease; }
.chat-step { margin: 0; padding: 0; border: 0; }
.chat-step legend { margin-bottom: 1rem; color: var(--navy); font-size: 1.22rem; font-weight: 800; }
.chat-step label { display: block; margin-bottom: .35rem; font-weight: 700; }
.chat-step input, .chat-step textarea { width: 100%; padding: .75rem; border: 1px solid #8ba2b5; border-radius: 9px; }
.chat-step textarea { resize: vertical; }
.chat-turnstile { min-height: 66px; margin-top: 1rem; }
.chat-status { min-height: 1.5em; color: #9c2020; font-weight: 650; }
.chat-actions { display: flex; gap: .7rem; margin-top: .8rem; }
.chat-complete { padding: 1.5rem; background: var(--ice); border-radius: 14px; }
.chat-complete h3 { margin-top: 0; font-size: 1.5rem; }
.chat-open { overflow: hidden; }
.consent { bottom: 88px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 80px; right: 0; left: 0; display: none; max-height: calc(100vh - 80px); overflow: auto; padding: 1rem 20px 1.5rem; background: var(--white); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { display: block; }
  .nav-group > button { display: flex; width: 100%; justify-content: space-between; padding: .8rem 0; }
  .nav-group > ul { position: static; width: auto; margin-bottom: .6rem; box-shadow: none; }
  .primary-nav .button { margin-top: .8rem; }
  .hero-grid { grid-template-columns: 1fr; min-height: 300px; padding-block: 52px; }
  .hero-art { max-width: 620px; }
  .hero-grid img { max-width: 100%; }
  .flow-feature, .simulation-stage { grid-template-columns: 1fr; }
  .scenario-summary { grid-template-columns: 1fr; }
  .simulation-visual { min-height: 360px; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 70px; }
  .brand { width: 168px; }
  .primary-nav { top: 70px; max-height: calc(100vh - 70px); }
  .page-hero h1 { font-size: clamp(2.35rem, 13vw, 3.65rem); }
  .hero-grid { gap: 1.2rem; padding-block: 42px; }
  .hero-art { margin-top: 1rem; }
  .hero-grid img { display: block; border-radius: 20px; }
  .hero-actions { display: grid; }
  .content-section { padding: 1.45rem; border-radius: 18px; }
  body:not(.template-legal) .content-section > ul { grid-template-columns: 1fr; }
  .flow-feature { padding: 1.5rem; border-radius: 20px; }
  .simulation-visual { min-height: 310px; }
  .validation-panel { grid-template-columns: 1fr; }
  .validation-panel span { padding: .4rem; }
  .sim-boundary, .sim-use-point { width: 105px; min-height: 88px; padding: .55rem; font-size: .8rem; }
  .sim-route { right: 32%; left: 32%; }
  .simulation-steps { grid-template-columns: 1fr; }
  .simulation-steps button { text-align: left; border-right: 0; border-bottom: 1px solid var(--line); }
  .simulation-actions { flex-wrap: wrap; }
  .form-grid, .choice-grid, .footer-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .consent { grid-template-columns: 1fr; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions .button { min-width: 0; }
  .chat-launcher { right: 14px; bottom: 14px; }
  .chat-dialog { right: 14px; bottom: 76px; }
  .consent { bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 2026 visual system */
:root {
  --ink: #101f42;
  --navy: #0b1b3f;
  --blue: #1554f6;
  --blue-bright: #2371ff;
  --cyan: #1a9cff;
  --ice: #f2f7ff;
  --line: #d6e2f3;
  --muted: #53637f;
  --white: #fff;
  --max: 1240px;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(17, 65, 145, .11);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 12%, rgba(54, 141, 255, .1), transparent 28rem),
    radial-gradient(circle at 3% 46%, rgba(42, 116, 255, .07), transparent 34rem),
    linear-gradient(180deg, #fff 0, #f7faff 44rem, #fff 90rem);
}

a { color: #0d49d7; }
a:hover { color: #082f92; }
:focus-visible { outline-color: #ffb000; outline-width: 3px; }

.site-header {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(21, 84, 246, .12);
  box-shadow: 0 9px 34px rgba(28, 74, 146, .07);
}
.header-inner { min-height: 84px; }
.brand { width: 210px; }
.primary-nav a,
.primary-nav button { color: var(--navy); }
.nav-group > button::after { color: var(--blue); }
.nav-group > ul {
  border-color: rgba(21, 84, 246, .14);
  box-shadow: 0 22px 60px rgba(16, 53, 114, .14);
}
.nav-group > ul a:hover { color: var(--blue); background: #edf4ff; }

.button {
  min-height: 48px;
  padding: .78rem 1.3rem;
  background: linear-gradient(135deg, var(--blue-bright), #0d45df);
  border-color: #124ce3;
  border-radius: 11px;
  box-shadow: 0 11px 28px rgba(21, 84, 246, .23);
}
.button:hover {
  background: linear-gradient(135deg, #0f48df, #082fae);
  border-color: #082fae;
  box-shadow: 0 16px 38px rgba(21, 84, 246, .28);
}
.button-secondary,
.button-ghost {
  color: var(--navy) !important;
  background: rgba(255, 255, 255, .9);
  border-color: #b8cae7;
  box-shadow: 0 8px 24px rgba(17, 65, 145, .08);
}
.button-secondary:hover,
.button-ghost:hover {
  color: var(--blue) !important;
  background: #f2f7ff;
  border-color: var(--blue);
}

.page-hero,
.template-home .page-hero,
.template-sector .page-hero,
.template-industry .page-hero,
.template-legal .page-hero {
  position: relative;
  color: var(--navy);
  background:
    radial-gradient(circle at 76% 54%, rgba(36, 113, 255, .13), transparent 27rem),
    radial-gradient(circle at 45% -25%, rgba(83, 176, 255, .13), transparent 23rem),
    linear-gradient(135deg, #fff 0%, #f7faff 55%, #edf5ff 100%);
  border-bottom: 1px solid rgba(21, 84, 246, .1);
}
.page-hero::before {
  inset: auto 0 0;
  height: 68%;
  background-image: radial-gradient(circle, rgba(21, 84, 246, .19) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 6%, #000 54%, transparent 94%);
  opacity: .42;
  animation: particle-drift 18s ease-in-out infinite alternate;
}
.page-hero::after {
  position: absolute;
  right: 12%;
  bottom: -5rem;
  width: 26rem;
  height: 12rem;
  content: "";
  background: rgba(36, 113, 255, .16);
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
}
@keyframes particle-drift {
  from { transform: translate3d(-8px, 0, 0); }
  to { transform: translate3d(10px, -8px, 0); }
}
.hero-grid {
  grid-template-columns: minmax(0, .88fr) minmax(470px, 1.12fr);
  min-height: 610px;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(4.5rem, 8vw, 7.3rem);
}
.page-hero h1 {
  max-width: 12ch;
  margin-top: .4rem;
  color: var(--navy);
  font-size: clamp(3.25rem, 6.5vw, 6rem);
  font-weight: 830;
  line-height: .94;
  letter-spacing: -.058em;
}
.template-legal .page-hero h1 { font-size: clamp(2.7rem, 5.5vw, 4.8rem); }
.page-hero .lede {
  max-width: 54ch;
  color: #40516f;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.58;
}
.eyebrow,
.page-hero .eyebrow,
.flow-feature .eyebrow,
.content-section-2 .eyebrow {
  color: #0d53e8;
  font-size: .76rem;
  letter-spacing: .16em;
}
.hero-actions { margin-top: 2.2rem; }
.hero-art { margin-inline: -4% -8%; }
.hero-art::before {
  inset: 16% 10%;
  background: #2482ff;
  filter: blur(80px);
  opacity: .16;
}
.hero-art picture { display: block; }
.hero-art img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  mix-blend-mode: normal;
}

.page-shell { padding-block: clamp(4rem, 7vw, 7rem); }
.prose { gap: 1.6rem; }
.content-section {
  padding: clamp(2rem, 4.5vw, 4.2rem);
  background:
    radial-gradient(circle at 100% 100%, rgba(59, 137, 255, .09), transparent 19rem),
    rgba(255, 255, 255, .92);
  border-color: rgba(21, 84, 246, .12);
  border-radius: 26px;
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}
.content-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(17, 65, 145, .14);
}
.content-section::after {
  border-color: rgba(21, 84, 246, .16);
  box-shadow: 0 0 0 35px rgba(40, 124, 255, .035), 0 0 0 70px rgba(21, 84, 246, .025);
}
.content-section-1 {
  background:
    radial-gradient(circle at 90% 10%, rgba(35, 113, 255, .12), transparent 21rem),
    linear-gradient(145deg, #eef5ff, #fbfdff 68%);
}
.content-section-2 {
  color: var(--ink);
  background:
    radial-gradient(circle at 0 100%, rgba(35, 113, 255, .1), transparent 20rem),
    linear-gradient(135deg, #fff, #f3f7ff);
  border-color: rgba(21, 84, 246, .13);
}
.content-section-2 h2,
.content-section-2 h3,
.content-section-2 strong { color: var(--navy); }
.content-section-2 a { color: #0d49d7; }
.prose h2 {
  max-width: 23ch;
  color: var(--navy);
  font-size: clamp(2rem, 3.35vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.043em;
}
.prose h2::before {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #63c7ff);
}
.prose h3 { color: var(--navy); }
body:not(.template-legal) .content-section > ul > li {
  padding: 1.05rem 1rem 1.05rem 3rem;
  background: rgba(255, 255, 255, .78);
  border-color: rgba(21, 84, 246, .13);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 65, 145, .04);
}
body:not(.template-legal) .content-section > ul > li::before {
  top: 1.12rem;
  width: 1.25rem;
  height: 1.25rem;
  background:
    linear-gradient(135deg, transparent 43%, var(--blue) 44% 53%, transparent 54%) 4px 6px / 9px 6px no-repeat,
    #edf4ff;
  border: 1px solid #78a5ff;
  box-shadow: 0 0 0 4px rgba(21, 84, 246, .06);
}

.flow-feature {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 50%, rgba(39, 123, 255, .12), transparent 24rem),
    linear-gradient(135deg, #f2f7ff, #fff 62%);
  border: 1px solid rgba(21, 84, 246, .13);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.flow-feature h2 { color: var(--navy); letter-spacing: -.04em; }
.flow-feature p:not(.eyebrow) { color: #455774; }
.flow-feature picture { display: block; }
.flow-feature img {
  display: block;
  border: 0;
  border-radius: 0;
  mix-blend-mode: multiply;
}
.capability-visuals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.capability-visuals picture {
  overflow: hidden;
  background: #f5f9ff;
  border: 1px solid rgba(21, 84, 246, .12);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(17, 65, 145, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.capability-visuals picture:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(17, 65, 145, .13);
}
.capability-visuals img {
  display: block;
  width: 100%;
  mix-blend-mode: multiply;
}

.form-card {
  background:
    radial-gradient(circle at 100% 0, rgba(49, 134, 255, .1), transparent 18rem),
    linear-gradient(145deg, #f5f9ff, #fff);
  border-color: rgba(21, 84, 246, .15);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.field input:not([type=checkbox]):not([type=radio]),
.field select,
.field textarea {
  border-color: #8da7cf;
  border-radius: 10px;
}
.field input:not([type=checkbox]):not([type=radio]):focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 84, 246, .1);
  outline: 0;
}

.simulation {
  border-color: rgba(21, 84, 246, .15);
  box-shadow: var(--shadow);
}
.simulation-visual {
  background:
    radial-gradient(circle at 70% 30%, rgba(38, 118, 255, .28), transparent 22rem),
    linear-gradient(135deg, #0b1b3f, #123d7d);
}
.scenario-picker button[aria-pressed="true"],
.simulation-steps button[aria-current="step"] { background: var(--blue); }

.site-footer {
  color: #cdd9ee;
  background:
    radial-gradient(circle at 20% 0, rgba(33, 105, 233, .18), transparent 28rem),
    #07152e;
}
.site-footer a,
.link-button { color: #dce7fb; }
.footer-logo { border-radius: 8px; }
.consent {
  background: rgba(7, 21, 46, .97);
  border-color: #355686;
  border-radius: 18px;
  box-shadow: 0 25px 75px rgba(3, 13, 31, .32);
}
.chat-launcher { background: var(--blue); }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr); }
  .primary-nav > ul { gap: .75rem; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { width: min(720px, 108%); margin: -1.5rem auto -2rem; }
  .capability-visuals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .header-inner { min-height: 72px; }
  .brand { width: 174px; }
  .page-hero h1 { font-size: clamp(2.55rem, 12.8vw, 4rem); }
  .hero-grid { gap: 1.5rem; padding-block: 3.25rem 2rem; }
  .hero-art { width: 112%; margin: -1rem -6% -1.25rem; }
  .page-hero::after { display: none; }
  .page-shell { padding-block: 3rem 4.5rem; }
  .content-section { padding: 1.55rem; border-radius: 20px; }
  .content-section:hover { transform: none; }
  .prose h2 { font-size: clamp(1.8rem, 9vw, 2.45rem); }
  .flow-feature { padding: 1.5rem; }
  .capability-visuals { grid-template-columns: 1fr; }
  .capability-visuals picture:nth-child(n+3) { display: none; }

  .prose .table-scroll {
    overflow-x: auto;
    border-right: 4px solid var(--blue);
    scrollbar-color: var(--blue) #dce7f8;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .prose .table-scroll::-webkit-scrollbar { height: 8px; }
  .prose .table-scroll::-webkit-scrollbar-track { background: #dce7f8; }
  .prose .table-scroll::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 8px; }

  .prose pre,
  .prose code {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Production polish */
.no-break { white-space: nowrap; }

.prose .table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(4,23,45,.08);
}

.prose .table-scroll table {
  min-width: 100%;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

.prose .table-scroll th,
.prose .table-scroll td {
  min-width: 168px;
}

.template-sector .hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.template-sector .page-hero h1 {
  max-width: 17ch;
  font-size: clamp(3rem, 4.55vw, 4.2rem);
  line-height: .96;
}

.footer-bottom a {
  display: inline;
  margin: 0;
}

@media (max-width: 900px) {
  .template-sector .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body:not(.portal) main {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  body:not(.portal) .page-shell,
  body:not(.portal) .site-footer {
    padding-right: 58px;
  }

  .template-sector .page-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.4rem, 11vw, 2.9rem);
  }

  .chat-launcher {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    width: 54px;
    min-height: 54px;
    padding: 0;
  }

  .chat-launcher span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .chat-dialog {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
}
