/* Regulyx website stylesheet.
   Built from the Regulyx brand guidelines: tokens, type scale, spacing and radius are taken from tokens.json.
   Layout: a 980px content column on an 8px scale. Borders, not shadows. One blue, layered at 55%. */

:root {
  /* colour, light theme */
  --bg: #f1f3f7;        /* Glass */
  --surface: #ffffff;
  --ink: #0f1a2b;
  --on-ink: #eef1f7;
  --ink-plate: #0f1a2b;
  --muted: #5b6678;
  --line: #d5dae3;
  --blue: #2a3fe6;
  --blue-lens: #9faaff;
  --blue-tint: #dce0fb;
  --sand: #e8e1d1;
  --verdict: #1a9d6a;
  --amber: #b9780a;
  --on-blue: #ffffff;
  --lens: #2a3fe6;      /* the lenses: blue on light surfaces, blue-lens on dark ones */
  --shadow-float: 0 8px 24px rgba(15, 26, 43, 0.12);
  /* type */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  /* spacing and radius */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 4px; --radius-md: 8px; --radius-pill: 999px;
  --measure: 980px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #121a2b; --ink: #eef1f7; --on-ink: #eef1f7; --ink-plate: #0f1a2b; --muted: #9aa5b8; --line: #26314a;
    --blue: #7f8eff; --blue-lens: #9faaff; --blue-tint: #1c2650; --sand: #3a3324; --verdict: #3fd39a; --amber: #f2b84b; --on-blue: #0b1220;
    --lens: #9faaff;
    --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #121a2b; --ink: #eef1f7; --on-ink: #eef1f7; --ink-plate: #0f1a2b; --muted: #9aa5b8; --line: #26314a;
  --blue: #7f8eff; --blue-lens: #9faaff; --blue-tint: #1c2650; --sand: #3a3324; --verdict: #3fd39a; --amber: #f2b84b; --on-blue: #0b1220;
  --lens: #9faaff;
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(32px, 2rem + 1vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
h1.display-xl { font-size: clamp(34px, 1.6rem + 1.8vw, 48px); line-height: 1.07; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 1.3rem + 0.6vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: var(--space-4); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
ul, ol { margin: 0; padding-left: 1.2em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--ink-plate); color: var(--on-ink); padding: 8px 12px; border-radius: var(--radius-pill); z-index: 50; }
.skip-link:focus { top: 12px; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.measure { max-width: 64ch; }
.lead { font-size: 18px; line-height: 28px; }
.small { font-size: 14px; line-height: 20px; color: var(--muted); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cite { font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
strong { font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 16px; line-height: 20px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.btn-primary:hover { filter: brightness(0.92); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* the launch clock: Lyx's screen, opened by "Start free assessment" */
.ov { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-left, 0px)); background: rgba(15, 26, 43, 0.55); }
.ov[hidden] { display: none; }
.panel.ink { position: relative; width: min(100%, 520px); background: var(--ink-plate); color: var(--on-ink); border: 1px solid #22304a; border-radius: var(--radius-md); padding: 32px 28px 28px; display: grid; gap: 20px; justify-items: center; text-align: center; }
.panel.ink .x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #4a5670; background: transparent; color: var(--on-ink); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.panel.ink .x:hover { border-color: var(--on-ink); }
.panel.ink .k, .panel.ink .date { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa5b8; }
.panel.ink .date { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 16px; line-height: 24px; }
.panel.ink h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.015em; color: var(--on-ink); }
.panel.ink .digits { display: flex; gap: 8px; align-items: baseline; justify-content: center; font-variant-numeric: tabular-nums; }
.panel.ink .digits .u { display: grid; gap: 4px; justify-items: center; min-width: 60px; }
.panel.ink .digits .n { font-size: clamp(36px, 8vw, 56px); line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: var(--on-ink); }
.panel.ink .digits .l { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: #9aa5b8; }
.panel.ink .digits .sep { font-size: clamp(28px, 6vw, 44px); line-height: 1; color: #2e3d5c; transform: translateY(-6px); }
.panel.ink .bar { width: 100%; height: 4px; background: #22304a; border-radius: 2px; overflow: hidden; }
.panel.ink .bar i { display: block; height: 100%; width: 0; background: var(--blue-lens); transition: width .6s ease; }
.panel.ink .btn-secondary { color: var(--on-ink); border-color: #4a5670; }
.panel.ink .btn-secondary:hover { border-color: var(--on-ink); }
.panel.ink .mark { width: 120px; height: 56px; overflow: visible; margin: 6px 0; }
.panel.ink .notify { display: flex; flex-wrap: wrap; gap: var(--space-2); width: 100%; justify-content: center; position: relative; }
.panel.ink .notify input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; color: var(--on-ink); background: #162238; border: 1px solid #4a5670; border-radius: var(--radius-pill); padding: 10px 16px; min-height: 44px; }
.panel.ink .notify input::placeholder { color: #9aa5b8; }
.panel.ink .notify input:focus { border-color: var(--blue-lens); outline: 2px solid var(--blue-lens); outline-offset: 0; }
.panel.ink .notify .btn-primary { background: var(--blue-lens); color: var(--ink-plate); border-color: var(--blue-lens); white-space: nowrap; }
.panel.ink .notify-status { font-size: 14px; line-height: 20px; color: #9aa5b8; min-height: 20px; margin: -8px 0 0; }
.panel.ink .foot { font-size: 14px; line-height: 20px; color: #9aa5b8; }
.panel.ink .foot a { color: var(--blue-lens); }
.panel.ink .mark .ring { fill: none; stroke: #9faaff; stroke-width: 9; opacity: .55; transform-box: fill-box; transform-origin: center; }
.panel.ink .mark .lens { fill: #9faaff; opacity: .55; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .panel.ink .digits .sep { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0.25; } }
  .ov:not([hidden]) .mark .ring { animation: breathe 4.2s ease-in-out infinite; } .ov:not([hidden]) .mark .lens { animation: breathe 4.2s ease-in-out infinite .3s; }
  @keyframes breathe { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.05) } }
}
.cta-band .wrap > div:last-child { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; }
.brand img, .foot-brand img, .chat-top .lyx img { display: block; }
.brand img { height: 28px; width: auto; }
img.reverse { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.reverse { display: block !important; } :root:not([data-theme="light"]) img.light { display: none !important; } }
:root[data-theme="dark"] img.reverse { display: block !important; }
:root[data-theme="dark"] img.light { display: none !important; }
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.site-nav { display: none; width: 100%; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; padding-block: var(--space-2) var(--space-1); }
.site-nav a:not(.btn) { display: block; padding: 10px 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav a:not(.btn):hover { text-decoration: none; color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav li:last-child a { border-bottom: 0; }
.site-nav .nav-cta { margin-top: var(--space-2); }
.site-nav .nav-cta .btn { width: 100%; }
@media (min-width: 900px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--space-6); padding: 0; }
  .site-nav a:not(.btn) { padding: 6px 0; border-bottom: 0; font-weight: 400; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
  .site-nav .nav-cta { margin: 0 0 0 var(--space-2); }
  .site-nav .nav-cta .btn { width: auto; min-height: 40px; padding: 8px 18px; font-size: 15px; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--space-12); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); }
.section-foot { margin-top: var(--space-8); }
@media (min-width: 900px) { .section { padding-block: var(--space-16); } }

/* dark band: ink plate, on-ink text, blue-lens accent */
.band-navy { background: var(--ink-plate); color: var(--on-ink); }
.band-navy h2, .band-navy h3, .band-navy p { color: var(--on-ink); }
.band-navy .eyebrow, .band-navy .muted, .band-navy .small { color: #9aa5b8; }
.band-navy a { color: var(--blue-lens); }
.band-navy .btn-primary { background: var(--blue-lens); color: var(--ink-plate); border-color: var(--blue-lens); }
.band-navy .btn-secondary { color: var(--on-ink); border-color: #4a5670; }
.band-navy .btn-secondary:hover { border-color: var(--on-ink); }
.band-navy + .section { border-top: 0; }

/* two-column text blocks */
.cols { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); } }
.col { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.plain-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain-list li:first-child { border-top: 1px solid var(--line); }

/* ---------- the live sample (home) ---------- */
.live { padding-block: var(--space-6) var(--space-12); }
.live .wrap { display: grid; gap: var(--space-8); align-items: start; }
.live-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.live-copy h1 { max-width: 20ch; }
.live-copy .lead { max-width: 40ch; }
.status { list-style: none; padding: 0; margin: var(--space-2) 0; display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--muted); }
.status li { display: grid; grid-template-columns: 10px auto 1fr; gap: 10px; align-items: baseline; }
.status li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lens); opacity: 0.55; transform: translateY(1px); }
.status b { color: var(--ink); font-weight: 500; }
@media (min-width: 960px) {
  .live { padding-block: var(--space-8) var(--space-16); }
  .live .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); }
}

/* the assistant panel: surface, hairline, radius-md, no shadow */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; min-width: 0; }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.chat-top .lyx { display: inline-flex; align-items: center; gap: 10px; }
.chat-top .lyx img { height: 14px; width: auto; display: block; }
.chat-top b { color: var(--ink); font-weight: 500; }
.chat-top button { font: inherit; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 5px 12px; cursor: pointer; }
.chat-top button:hover { border-color: var(--ink); }
.chat-body { padding: var(--space-4) var(--space-4) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); height: 400px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.chat-body::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .chat-body { height: clamp(320px, calc(100vh - 210px), 560px); } }
.chat .msg { display: flex; gap: var(--space-3); align-items: flex-start; }
.chat .msg .av { width: 30px; height: 14px; flex-shrink: 0; margin-top: 5px; display: block; }
.chat .msg .av svg { display: block; width: 30px; height: 14px; }
.chat .msg .body { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; max-width: 60ch; }
.chat .msg p { font-size: 15px; line-height: 22px; }
.chat .msg .help { color: var(--muted); font-size: 14px; line-height: 20px; }
.chat .msg.user { justify-content: flex-end; }
.chat .msg.user .bubble { background: var(--blue-tint); color: var(--ink); border-radius: 12px 12px 4px 12px; padding: 8px 14px; font-size: 15px; line-height: 22px; max-width: 80%; }
.chat .replies { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 42px; }
.chat .reply { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 5px 12px; font-size: 14px; line-height: 18px; color: var(--ink); background: var(--surface); }
.chat .reply.sel { background: var(--blue-tint); border-color: var(--blue); color: var(--ink); }
.chat .more { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--muted); padding-left: 42px; }
.chat .card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); background: var(--bg); }
.chat .headline { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.chat .row { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px; }
.chat .row .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chat .row + .row { border-top: 1px solid var(--line); padding-top: var(--space-2); }
.chat .stamp { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; gap: var(--space-2); align-items: center; }
.chat .progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.chat .progress i { display: block; height: 100%; background: var(--blue); width: 100%; }
.chat .typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.4; }
.chat .cta { padding-left: 42px; }
.composer { display: flex; align-items: center; gap: var(--space-2); margin: 0 var(--space-4) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 8px 8px 16px; background: var(--surface); }
.composer .input { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 22px; min-height: 22px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .input:empty::before { content: attr(data-placeholder); color: var(--muted); }
.composer .send { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); flex-shrink: 0; position: relative; }
.composer .send::after { content: ""; position: absolute; left: 11px; top: 9px; width: 8px; height: 8px; border-top: 2px solid var(--on-blue); border-left: 2px solid var(--on-blue); transform: rotate(45deg); }
.chat-body { padding-bottom: var(--space-4); }
/* Lyx wakes once: one lens becomes two (the chosen wake, 1.4 s in a chat header) */
.chat .av .ring, .chat .av .lens { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .chat .typing i { animation: blink 1s infinite; } .chat .typing i:nth-child(2) { animation-delay: .2s; } .chat .typing i:nth-child(3) { animation-delay: .4s; }
  @keyframes blink { 0%, 80%, 100% { opacity: .3 } 40% { opacity: 1 } }
  .chat .msg, .chat .replies, .chat .more { animation: rise .35s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
  .chat .av.wake .ring { animation: wake-ring 1.4s cubic-bezier(.2,.8,.2,1) both; }
  .chat .av.wake .lens { animation: wake-lens 1.4s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes wake-ring { 0% { transform: translateX(32px); opacity: 0; r: 14px; stroke-width: 28px; } 30% { opacity: .55; transform: translateX(32px); r: 14px; stroke-width: 28px; } 60% { transform: translateX(0); r: 14px; stroke-width: 28px; } 100% { transform: translateX(0); r: 23.5px; stroke-width: 9px; opacity: .55; } }
  @keyframes wake-lens { 0% { transform: translateX(-32px); opacity: 0; } 30% { opacity: .55; transform: translateX(-32px); } 60% { transform: translateX(0); } 100% { transform: translateX(0); opacity: .55; } }
}

/* ---------- confidence labels: blue and ink only; amber and green are reserved ---------- */
.conf { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.conf.rule { background: var(--blue-tint); color: var(--ink); border-color: var(--blue-tint); }
.conf.guidance { border-color: var(--ink); color: var(--ink); }
.conf.practice { border-color: var(--line); color: var(--ink); }
.conf.judgement { border-color: var(--line); border-style: dashed; color: var(--muted); }
.band-navy .conf.rule { background: #1c2650; color: var(--on-ink); border-color: #1c2650; }
.band-navy .conf.guidance { border-color: var(--on-ink); color: var(--on-ink); }
.band-navy .conf.practice, .band-navy .conf.judgement { border-color: #4a5670; color: #9aa5b8; }
.src { white-space: nowrap; }
.legend { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.legend div { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-3); align-items: start; font-size: 14px; line-height: 20px; }
.legend .conf { justify-self: start; margin-top: 2px; }
@media (min-width: 640px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- how it works: three columns, hairlines ---------- */
.proof { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-6); }
.proof li { border-top: 1px solid var(--ink); padding-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.proof .k { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.proof p { font-size: 15px; line-height: 22px; }
@media (min-width: 860px) { .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); } }

/* ---------- the four stages of the service, drawn with the transparency rule ---------- */
.stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stages li { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.stages .step { height: 40px; border-radius: var(--radius-pill); background: var(--lens); opacity: 0.55; margin-right: -28px; position: relative; }
.stages li:last-child .step { margin-right: 0; }
.stages li:nth-child(1) .step { z-index: 1; } .stages li:nth-child(2) .step { z-index: 2; } .stages li:nth-child(3) .step { z-index: 3; } .stages li:nth-child(4) .step { z-index: 4; }
.stages .k { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); padding-right: var(--space-3); margin-top: var(--space-2); }
.stages h3 { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; padding-right: var(--space-4); min-height: 52px; }
.stages p { font-size: 15px; line-height: 22px; color: var(--muted); padding-right: var(--space-4); }
@media (min-width: 640px) { .stages li + li { border-left: 1px solid var(--line); padding-left: var(--space-4); } .stages li + li .step { margin-left: calc(-1 * var(--space-4) - 1px); } }
@media (max-width: 639px) {
  .stages { grid-template-columns: 1fr; gap: var(--space-4); }
  .stages .step { margin-right: 0; width: 100%; }
  .stages li + li .step { margin-top: -16px; }
}

/* ---------- pipeline: what touches your answers ---------- */
.pipe { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.pipe li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: var(--space-3); align-items: start; min-width: 0; }
.pipe .glyph { width: 44px; height: 24px; display: flex; align-items: center; }
.pipe .glyph i { display: block; width: 24px; height: 24px; border-radius: 50%; opacity: 0.55; }
.pipe .glyph .ring { border: 8px solid var(--lens); }
.pipe .glyph .lens { background: var(--lens); }
.pipe .who { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; }
.pipe h3 { font-size: 16px; line-height: 22px; }
.pipe p { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 4px; }
.pipe-note { margin-top: var(--space-4); font-size: 14px; line-height: 20px; color: var(--muted); max-width: 64ch; }
@media (min-width: 640px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); } .pipe li { grid-template-columns: 1fr; gap: var(--space-3); border-top: 1px solid var(--line); padding-top: var(--space-3); } }
@media (min-width: 960px) { .pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); } }
.pipe .who { min-height: 32px; display: flex; align-items: flex-end; }
.pipe h3 { min-height: 44px; }

/* ---------- regulators ---------- */
.regs { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.regs li { border-top: 1px solid var(--ink); padding-top: var(--space-3); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.regs .abbr { font-family: var(--font-mono); font-size: 13px; line-height: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.regs .name { font-weight: 600; font-size: 16px; line-height: 22px; }
.regs .where { color: var(--muted); font-size: 14px; line-height: 20px; }
.regs a { font-size: 14px; line-height: 20px; margin-top: 4px; }
@media (min-width: 640px) { .regs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); } }
@media (min-width: 1000px) { .regs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- closing call to action ---------- */
.cta-band .wrap { display: flex; flex-direction: column; gap: var(--space-6); }
.cta-band .wrap > div:first-child { display: flex; flex-direction: column; gap: var(--space-2); }
.cta-band h2 { max-width: 24ch; }
@media (min-width: 900px) { .cta-band .wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-8); } }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--space-4); max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: 14px; line-height: 20px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.field .hint { font-size: 14px; line-height: 20px; color: var(--muted); }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field.check input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; line-height: 20px; min-height: 20px; }
.form-status[data-state="error"] { color: var(--amber); }   /* amber: more information is needed. There is no red state. */

/* ---------- prose pages ---------- */
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: var(--space-4); }
.prose h2 { margin-top: var(--space-4); }
.prose h3 { margin-top: var(--space-2); }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 6px; }
.notice { border: 1px dashed var(--line); background: var(--surface); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; color: var(--muted); }
.src-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: 14px; line-height: 20px; }
.src-list li { display: grid; grid-template-columns: 90px 1fr; gap: var(--space-3); }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
table.plain thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
table.plain tbody th { font-weight: 500; width: 32%; }
.table-wrap { overflow-x: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-8) var(--space-12); font-size: 14px; line-height: 20px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: var(--space-6); }
.site-footer .foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-8); }
.site-footer .foot-brand { margin: 0; }
.site-footer .foot-brand img { height: 24px; width: auto; }
.site-footer nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.site-footer a { color: var(--ink); }
.site-footer .legal { max-width: none; border-top: 1px solid var(--line); padding-top: var(--space-4); }


/* ---------- journey: launching, expanding, operating ---------- */
.journey { display: grid; gap: var(--space-8); }
.journey article { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; border-top: 1px solid var(--ink); padding-top: var(--space-4); }
.journey .step { height: 12px; width: 72px; border-radius: var(--radius-pill); background: var(--lens); opacity: 0.55; }
.journey h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.015em; }
.journey .situation { color: var(--muted); font-size: 16px; line-height: 24px; }
.journey ul { list-style: none; padding: 0; margin: var(--space-2) 0 0; border-top: 1px solid var(--line); }
.journey li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.journey li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lens); opacity: 0.55; margin-top: 6px; }
@media (min-width: 860px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); } }

/* ---------- regimes accordion ---------- */
.regimes { border-top: 1px solid var(--ink); }
.regimes details { border-bottom: 1px solid var(--line); }
.regimes summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 18px 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.regimes summary::-webkit-details-marker { display: none; }
.regimes summary::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 4px solid var(--lens); opacity: 0.55; flex-shrink: 0; transition: background .2s ease; }
.regimes details[open] summary::after { background: var(--lens); }
.regimes summary:hover { color: var(--blue); }
.regimes .body { padding: 0 0 var(--space-4); max-width: 68ch; display: flex; flex-direction: column; gap: var(--space-2); }
.regimes .body p { font-size: 16px; line-height: 24px; }
@media (prefers-reduced-motion: reduce) { .regimes summary::after { transition: none; } }

.cta-band .btn { white-space: nowrap; }
