:root {
  --ink: #f5f9ff;
  --ink-strong: #ffffff;
  --ink-soft: #a9bad2;
  --ink-faint: #8296b4;
  --paper: #040914;
  --surface: rgba(9, 22, 42, 0.9);
  --surface-strong: #0b172a;
  --surface-soft: #081427;
  --surface-raised: #10213a;
  --navy: #071326;
  --navy-deep: #030815;
  --cobalt: #397cff;
  --cobalt-deep: #225dcc;
  --cyan: #00d5ff;
  --cyan-light: #75ecff;
  --teal: var(--cyan);
  --mint: rgba(0, 213, 255, 0.12);
  --lime: var(--cyan-light);
  --gold: #ffc56e;
  --coral: #ff6474;
  --coral-soft: rgba(255, 100, 116, 0.13);
  --line: rgba(102, 174, 255, 0.22);
  --line-strong: rgba(79, 205, 255, 0.42);
  --shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(0, 178, 255, 0.07);
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, 0.24);
  --radius: 22px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 2%, rgba(0, 213, 255, 0.13), transparent 31rem),
    radial-gradient(circle at 94% 13%, rgba(57, 124, 255, 0.18), transparent 38rem),
    linear-gradient(180deg, #050b17 0%, #071225 48%, #040914 100%);
  background-attachment: fixed;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(77, 201, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 201, 255, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 43%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 43%, transparent 92%);
}
button, summary, select, input { font: inherit; }
button, summary, select, input[type="checkbox"] { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.42; filter: saturate(0.55); }
a { color: inherit; text-underline-offset: 0.22em; }
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(117, 236, 255, 0.94);
  outline-offset: 4px;
}
::selection { color: #02121e; background: var(--cyan-light); }
input[type="checkbox"] { accent-color: var(--cobalt); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 11px clamp(20px, 5vw, 72px);
  color: var(--ink);
  border-bottom: 1px solid rgba(90, 216, 255, 0.24);
  background:
    linear-gradient(115deg, rgba(0, 213, 255, 0.08), transparent 30%),
    rgba(3, 9, 21, 0.88);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-strong);
  text-decoration: none;
  font-weight: 820;
  letter-spacing: -0.025em;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-mark {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #04101f;
  border: 1px solid rgba(117, 236, 255, 0.84);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--cyan-light), var(--cobalt));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 23px rgba(0, 213, 255, 0.25);
  font-size: 21px;
  font-weight: 900;
}
.brand-mark::after {
  position: absolute;
  inset: 4px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.local-badge {
  padding: 7px 11px;
  color: var(--cyan-light);
  border: 1px solid rgba(0, 213, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 213, 255, 0.07);
  font-size: 11px;
  font-weight: 760;
}

main { width: min(1480px, 100%); margin: 0 auto; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, 0.88fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: center;
  padding: clamp(62px, 8vw, 112px) clamp(20px, 5vw, 72px) 54px;
}
.hero::after {
  position: absolute;
  top: 10%;
  left: 47%;
  z-index: -1;
  width: min(54vw, 720px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(35, 111, 255, 0.17), rgba(0, 213, 255, 0.06) 38%, transparent 68%);
  filter: blur(8px);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan-light);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 840;
}
h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(51px, 6.35vw, 91px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 820;
  text-wrap: balance;
  text-shadow: 0 0 38px rgba(0, 180, 255, 0.12);
}
.hero-lede {
  max-width: 740px;
  margin: 26px 0 34px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.56;
}
.working-tagline {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 8px 12px;
  color: var(--ink);
  border: 1px solid rgba(85, 215, 255, 0.34);
  border-radius: 999px;
  background: rgba(12, 39, 78, 0.62);
  box-shadow: inset 0 0 20px rgba(0, 213, 255, 0.05);
  font-size: 13px;
  font-weight: 800;
}
.working-tagline span {
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.promise-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 28px;
  text-decoration: none;
}
.promise-row > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 11px;
  align-items: center;
  padding: 21px 18px 8px 0;
}
.promise-row span {
  grid-row: 1 / 3;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--cyan-light);
  border: 1px solid rgba(117, 236, 255, 0.42);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(57, 124, 255, 0.34), rgba(0, 213, 255, 0.08));
  box-shadow: 0 0 24px rgba(0, 213, 255, 0.08);
  font-size: 12px;
  font-weight: 850;
}
.promise-row strong { color: var(--ink); font-size: 13px; }
.promise-row small { color: var(--ink-faint); }

.proof-card {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 3.5vw, 42px);
  color: white;
  border: 1px solid rgba(78, 209, 255, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(57, 124, 255, 0.21), transparent 18rem),
    linear-gradient(145deg, rgba(13, 31, 58, 0.98), rgba(5, 14, 30, 0.96));
  box-shadow: var(--shadow);
}
.proof-card::before {
  position: absolute;
  top: 0;
  right: 17%;
  left: 17%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px var(--cyan);
}
.proof-card .eyebrow { color: var(--cyan-light); }
.proof-card h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); letter-spacing: -0.04em; }
.proof-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.proof-card .muted { color: var(--ink-soft); }
.tool-call-proof {
  display: grid;
  gap: 4px;
  margin: 19px 0 0;
  padding: 14px 15px;
  border: 1px solid rgba(0, 213, 255, 0.32);
  border-radius: 12px;
  background: rgba(0, 213, 255, 0.07);
  box-shadow: inset 0 0 22px rgba(0, 213, 255, 0.03);
}
.tool-call-proof span { color: var(--cyan-light); font-size: 9px; letter-spacing: 0.11em; text-transform: uppercase; font-weight: 850; }
.tool-call-proof code { color: white; font-size: 13px; overflow-wrap: anywhere; }
.tool-call-proof strong { color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.tool-registry { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 7px; }
.tool-registry li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(102, 174, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}
.tool-registry li.called { border-color: rgba(0, 213, 255, 0.52); background: rgba(0, 213, 255, 0.08); }
.tool-registry li.rejected { border-color: rgba(255, 100, 116, 0.58); background: rgba(255, 100, 116, 0.07); }
.tool-registry span { color: var(--cyan-light); font-size: 10px; font-weight: 800; }
.tool-registry code { color: #edf7ff; font-size: 12px; overflow-wrap: anywhere; }
.tool-registry em { color: var(--ink-faint); font-size: 9px; font-style: normal; letter-spacing: 0.05em; text-transform: uppercase; }
.proof-note { margin: 18px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; line-height: 1.5; }

.synthetic-banner {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 0 clamp(20px, 5vw, 72px) 30px;
  padding: 15px 18px;
  color: #ecdcbf;
  border: 1px solid rgba(255, 197, 110, 0.33);
  border-radius: 14px;
  background: rgba(93, 61, 17, 0.22);
  box-shadow: inset 4px 0 0 rgba(255, 197, 110, 0.72);
  font-size: 13px;
  line-height: 1.5;
}
.synthetic-banner strong { flex: none; color: var(--gold); }

.scenario-switcher {
  margin: 0 clamp(20px, 5vw, 72px) 32px;
  padding: clamp(23px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(57, 124, 255, 0.1), transparent 24rem),
    var(--surface);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}
.scenario-switcher-heading { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.scenario-switcher-heading h2,
.journey-panel h2,
.panel h2,
.approval-panel h2 {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 760;
  letter-spacing: -0.035em;
}
.scenario-switcher-heading h2 { font-size: clamp(26px, 3vw, 38px); }
.scenario-switcher-heading p:not(.eyebrow) { max-width: 820px; margin: 10px 0 0; color: var(--ink-soft); line-height: 1.55; }
.structured-scenario-panel { margin-top: 27px; padding-top: 27px; border-top: 1px solid var(--line); }
.privacy-notice {
  padding: 18px;
  color: #f6dfb9;
  border: 1px solid rgba(255, 197, 110, 0.28);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: rgba(93, 61, 17, 0.18);
}
.privacy-notice p { margin: 7px 0 0; color: #cdbd9f; font-size: 13px; line-height: 1.58; }
.acknowledgment-control,
.download-warning {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 15px;
  color: var(--ink-soft);
  border: 1px solid rgba(0, 213, 255, 0.24);
  border-radius: 12px;
  background: rgba(0, 213, 255, 0.055);
  font-size: 13px;
  line-height: 1.5;
}
.acknowledgment-control input, .download-warning input, .choice-grid input { flex: none; margin-top: 3px; }
.scenario-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.scenario-fields > label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.scenario-fields select {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
}
.scenario-fields select:hover { border-color: var(--line-strong); }
.scenario-choice-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.scenario-choice-groups fieldset, .terms-signals { margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4, 13, 29, 0.32); }
.terms-signals { margin-top: 16px; }
.scenario-choice-groups legend, .terms-signals legend { padding: 0 7px; color: var(--cyan-light); font-weight: 800; }
.scenario-choice-groups legend small, .terms-signals legend small { color: var(--ink-soft); font-weight: 500; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice-grid label { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-soft); font-size: 12px; line-height: 1.35; }
.scenario-activation-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.scenario-activation-row p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.scenario-activation-row p.rejected { color: #ff9baa; font-weight: 750; }
.scenario-activation-row p.approved { color: var(--cyan-light); font-weight: 750; }
.download-warning { margin: 14px 0 0; color: #d9c7a7; border-color: rgba(255, 197, 110, 0.28); background: rgba(93, 61, 17, 0.15); }
.use-boundaries { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 19, 38, 0.72); }
.use-boundaries p { color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.use-boundaries a { color: var(--cyan-light); }

.studio-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 0 clamp(20px, 5vw, 72px) 104px;
}
.journey-panel {
  position: sticky;
  top: 98px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(15, 36, 66, 0.94), rgba(5, 15, 31, 0.95));
  box-shadow: var(--shadow-soft);
}
.journey-panel::after {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  content: "";
  border: 38px solid rgba(0, 213, 255, 0.055);
  border-radius: 50%;
}
.journey-panel h2 { position: relative; z-index: 1; font-size: 29px; line-height: 1.08; }
.journey-list { position: relative; z-index: 1; list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 8px; }
.journey-list li { display: flex; gap: 13px; align-items: center; padding: 10px; color: var(--ink-faint); border-radius: 12px; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.journey-list li > span { width: 30px; height: 30px; display: grid; place-items: center; flex: none; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 50%; font-size: 10px; font-weight: 800; }
.journey-list li strong, .journey-list li small { display: block; }
.journey-list li strong { font-size: 13px; }
.journey-list li small { margin-top: 2px; font-size: 11px; }
.journey-list li.complete { color: var(--ink); border: 1px solid rgba(0, 213, 255, 0.19); background: rgba(0, 213, 255, 0.09); }
.journey-list li.complete > span { color: #03101e; border-color: var(--cyan-light); background: var(--cyan-light); box-shadow: 0 0 18px rgba(0, 213, 255, 0.22); }
.boundary-copy { position: relative; z-index: 1; display: flex; gap: 11px; padding-top: 18px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; }
.boundary-copy p { margin: 0; }
.boundary-icon { color: var(--gold); font-weight: 900; }

.workspace { display: grid; gap: 22px; }
.panel, .approval-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(57, 124, 255, 0.07), transparent 21rem),
    var(--surface);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.panel { padding: clamp(24px, 3vw, 39px); }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.panel h2, .approval-panel h2 { font-size: clamp(28px, 3vw, 40px); }
.panel h3 { margin: 0; }
.muted { color: var(--ink-soft); line-height: 1.56; }
.status-pill {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 850;
}
.status-pill.safe { color: var(--cyan-light); border-color: rgba(0, 213, 255, 0.3); background: rgba(0, 213, 255, 0.1); }
.status-pill.waiting { color: #ffdc9f; border-color: rgba(255, 197, 110, 0.3); background: rgba(255, 197, 110, 0.1); }
.status-pill.synthetic { color: #d8e7ff; border-color: rgba(102, 174, 255, 0.3); background: rgba(57, 124, 255, 0.12); }
.status-pill.neutral { color: #bdcce1; border-color: rgba(169, 186, 210, 0.2); background: rgba(169, 186, 210, 0.08); }

.offer-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 213, 255, 0.1), transparent 22rem),
    linear-gradient(145deg, rgba(14, 34, 64, 0.96), rgba(6, 16, 33, 0.95));
}
.offer-promise { max-width: 780px; color: #dbe9ff; font-size: 23px; line-height: 1.4; font-weight: 650; }
.offer-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 27px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(3, 10, 23, 0.38); }
.offer-metrics > div { display: grid; gap: 6px; padding: 19px; }
.offer-metrics > div + div { border-left: 1px solid var(--line); }
.offer-metrics span { color: var(--ink-faint); font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 750; }
.offer-metrics strong { color: var(--ink-strong); font-size: 22px; }
details { margin: 20px 0 24px; padding: 14px 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 13, 28, 0.32); }
summary { color: var(--ink); font-weight: 750; }
details li { margin: 8px 0; color: var(--ink-soft); }

.button {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.button:not(:disabled):hover { transform: translateY(-1px); }
.button-primary {
  color: white;
  border-color: rgba(102, 174, 255, 0.7);
  background: linear-gradient(135deg, #2f6fe8, var(--cobalt-deep));
  box-shadow: 0 10px 24px rgba(24, 81, 211, 0.25);
}
.button-primary:not(:disabled):hover { border-color: var(--cyan-light); box-shadow: 0 12px 28px rgba(35, 118, 255, 0.34), 0 0 18px rgba(0, 213, 255, 0.12); }
.button-secondary {
  color: #03121f;
  border-color: rgba(117, 236, 255, 0.74);
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  box-shadow: 0 9px 22px rgba(0, 183, 233, 0.16);
}
.button-danger { color: #ffdce1; border-color: rgba(255, 100, 116, 0.34); background: var(--coral-soft); }
.button-quiet { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.button-quiet:not(:disabled):hover { border-color: var(--line-strong); background: rgba(0, 213, 255, 0.06); }
.blueprint-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.empty-state { min-height: 148px; display: grid; place-items: center; align-content: center; margin-bottom: 16px; color: var(--ink-faint); border: 1px dashed rgba(102, 174, 255, 0.31); border-radius: 15px; background: rgba(4, 12, 27, 0.25); text-align: center; }
.empty-state span { color: var(--cyan); font-size: 35px; text-shadow: 0 0 19px rgba(0, 213, 255, 0.26); }
.empty-state p { max-width: 480px; margin: 4px; }
.analysis-result { margin-bottom: 18px; padding: 20px; color: var(--ink); border: 1px solid rgba(0, 213, 255, 0.18); border-left: 4px solid var(--cyan); border-radius: 0 14px 14px 0; background: rgba(0, 213, 255, 0.065); }
.analysis-headline { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.analysis-headline span { color: var(--ink-soft); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.analysis-headline strong { color: var(--ink-strong); font-size: 28px; }
.analysis-result li { margin: 6px 0; }
.analysis-result small { color: var(--ink-soft); }
.spotlight-line { margin: 13px 0 0; padding: 13px 14px; color: #ddecff; border: 1px solid rgba(102, 174, 255, 0.18); border-radius: 10px; background: rgba(3, 12, 27, 0.5); line-height: 1.45; }
.compact-evidence { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; }
.evidence-drawer { margin: 12px 0 18px; background: rgba(3, 11, 25, 0.34); }
.evidence-drawer ul { margin-bottom: 0; }
.decision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.decision-output { margin-top: 18px; }
.decision-output .decision-card { border-color: rgba(255, 100, 116, 0.55); box-shadow: inset 4px 0 0 var(--coral); }
.decision-card { padding: 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 28, 51, 0.82); }
.decision-card h3 { margin: 8px 0; font-size: 17px; }
.decision-card p { margin: 0 0 12px; line-height: 1.42; }
.decision-card small { color: var(--ink-soft); line-height: 1.38; }
.source-evidence { display: grid; gap: 3px; margin: 0 0 12px; padding: 10px; color: var(--ink-soft); border: 1px solid rgba(102, 174, 255, 0.15); border-radius: 9px; background: rgba(3, 10, 23, 0.42); }
.source-evidence strong { color: var(--cyan-light); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; }
.source-evidence code { color: #c5dbff; font-size: 10px; }
.source-evidence span { font-size: 11px; line-height: 1.35; }
.severity { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: 9px; text-transform: uppercase; font-weight: 850; }
.severity.high { color: #ffc5cd; background: rgba(255, 100, 116, 0.16); }
.severity.medium { color: #ffdc9f; background: rgba(255, 197, 110, 0.13); }
.compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.compact-grid .decision-card { border-color: var(--line); box-shadow: none; }

.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.comparison-output { margin-top: 18px; }
.comparison-output .path-card { min-height: 0; }
.scenario-fit-note { margin: 12px 0 0; padding: 13px 14px; color: #d9edff; border: 1px solid rgba(0, 213, 255, 0.18); border-radius: 10px; background: rgba(0, 213, 255, 0.065); font-size: 13px; line-height: 1.45; }
.path-placeholder, .path-card { min-height: 150px; display: grid; place-items: center; padding: 18px; color: var(--ink-faint); border: 1px dashed var(--line); border-radius: 15px; background: rgba(5, 15, 31, 0.34); text-align: center; }
.path-placeholder.featured, .path-card.featured { border-style: solid; border-color: rgba(0, 213, 255, 0.6); background: rgba(0, 213, 255, 0.07); box-shadow: inset 0 3px 0 var(--cyan), 0 0 26px rgba(0, 213, 255, 0.06); }
.path-card { display: block; color: var(--ink); text-align: left; background: rgba(12, 28, 51, 0.84); }
.path-card h3 { margin: 10px 0; font-size: 21px; }
.path-card p { color: var(--ink-soft); line-height: 1.46; }
.path-label { color: var(--cyan-light); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.06em; }
.path-card dl { margin: 16px 0; display: grid; gap: 10px; }
.path-card dl div { padding-top: 9px; border-top: 1px solid var(--line); }
.path-card dt { font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.07em; }
.path-card dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.path-card small { display: block; color: var(--ink-soft); line-height: 1.4; }

.state-columns { display: grid; grid-template-columns: 1fr auto 1fr; gap: 13px; align-items: stretch; margin-bottom: 20px; }
.state-card { padding: 20px; color: var(--ink); border: 1px solid var(--line); border-radius: 15px; background: rgba(12, 28, 51, 0.8); }
.staged-card { border-style: dashed; border-color: rgba(255, 197, 110, 0.36); background: rgba(95, 62, 17, 0.1); }
.state-card h3 { margin: 10px 0 8px; font-size: 20px; }
.state-card p { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.state-label { color: var(--cyan-light); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 850; }
.state-arrow { display: grid; place-items: center; color: var(--cyan); font-size: 26px; text-shadow: 0 0 15px rgba(0, 213, 255, 0.27); }
.gate-message { display: grid; gap: 3px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; }
.gate-message span { font-size: 13px; line-height: 1.45; }
.gate-message.waiting { color: #f4d49b; border: 1px solid rgba(255, 197, 110, 0.23); background: rgba(93, 61, 17, 0.17); }
.gate-message.rejected { color: #ffc7cf; border: 1px solid rgba(255, 100, 116, 0.25); border-left: 4px solid var(--coral); background: var(--coral-soft); }
.gate-message.approved { color: #c9f6ff; border: 1px solid rgba(0, 213, 255, 0.23); border-left: 4px solid var(--cyan); background: rgba(0, 213, 255, 0.08); }

.approval-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 30px;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 4vw, 50px);
  color: white;
  border-color: rgba(0, 213, 255, 0.38);
  background:
    radial-gradient(circle at 93% 14%, rgba(0, 213, 255, 0.2), transparent 18rem),
    linear-gradient(135deg, #10294b 0%, #071326 57%, #040b18 100%);
  box-shadow: var(--shadow);
}
.approval-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 205, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 205, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.approval-panel::after { position: absolute; right: -72px; bottom: -125px; width: 270px; height: 270px; content: ""; border: 48px solid rgba(0, 213, 255, 0.07); border-radius: 50%; }
.approval-panel .eyebrow { color: var(--cyan-light); }
.approval-copy { position: relative; z-index: 1; }
.approval-copy > p:not(.eyebrow) { max-width: 720px; color: var(--ink-soft); line-height: 1.58; }
.revision-chip { display: inline-block; margin-top: 9px; padding: 8px 11px; color: var(--cyan-light); border: 1px solid rgba(0, 213, 255, 0.2); border-radius: 9px; background: rgba(0, 213, 255, 0.08); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.approval-button { position: relative; z-index: 1; min-height: 112px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 18px; color: #03101e; border: 1px solid rgba(117, 236, 255, 0.9); border-radius: 18px; background: linear-gradient(135deg, var(--cyan-light), var(--cyan) 58%, #38a4ff); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.27), 0 0 28px rgba(0, 213, 255, 0.17); }
.approval-button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3), 0 0 34px rgba(0, 213, 255, 0.26); }
.approval-button span:last-child { text-align: left; }
.approval-button strong, .approval-button small { display: block; }
.approval-button strong { font-size: 16px; }
.approval-button small { margin-top: 4px; }
.approval-lock { width: 40px; height: 40px; display: grid; place-items: center; color: var(--cyan-light); border: 1px solid rgba(117, 236, 255, 0.34); border-radius: 50%; background: #061326; font-size: 20px; font-weight: 900; }
.approval-actions { position: relative; z-index: 1; display: grid; gap: 10px; }
.approval-status-proof { display: grid; gap: 3px; margin-top: 15px; padding: 12px 14px; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.approval-status-proof code { color: inherit; font-weight: 800; }
.approval-status-proof.waiting { color: #ffe0a8; border: 1px solid rgba(255, 197, 110, 0.28); background: rgba(255, 197, 110, 0.1); }
.approval-status-proof.approved { color: var(--cyan-light); border: 1px solid rgba(0, 213, 255, 0.29); background: rgba(0, 213, 255, 0.09); }

.export-summary { display: grid; gap: 4px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 13px; }
.export-summary span { line-height: 1.45; }
.export-summary > div { display: grid; gap: 2px; }
.export-summary > div span { font-size: 9px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.export-summary p { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 7px 0 0; }
.export-summary p code { padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); }
.export-summary.waiting { color: #f4d49b; border: 1px solid rgba(255, 197, 110, 0.22); background: rgba(93, 61, 17, 0.17); }
.export-summary.rejected { color: #ffc7cf; border: 1px solid rgba(255, 100, 116, 0.25); border-left: 4px solid var(--coral); background: var(--coral-soft); }
.export-summary.approved { color: #c9f6ff; border: 1px solid rgba(0, 213, 255, 0.23); border-left: 4px solid var(--cyan); background: rgba(0, 213, 255, 0.08); }
.export-details { margin-bottom: 0; }
.export-preview { max-height: 420px; overflow: auto; margin: 14px 0 0; padding: 20px; color: #bdefff; border: 1px solid rgba(0, 213, 255, 0.19); border-radius: 14px; background: #030915; white-space: pre-wrap; font: 12px/1.58 ui-monospace, SFMono-Regular, Menlo, monospace; }
.event-trail { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.event { display: flex; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(5, 15, 31, 0.35); }
.event > span { width: 28px; height: 28px; display: grid; place-items: center; flex: none; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 50%; background: rgba(169, 186, 210, 0.07); font-size: 10px; font-weight: 850; }
.event strong { text-transform: capitalize; }
.event p { margin: 3px 0 0; color: var(--ink-soft); font-size: 12px; }
.event.rejected { border-left: 4px solid var(--coral); }
.event.committed, .event.approved { border-left: 4px solid var(--cyan); }
.empty-event { padding: 16px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 11px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 29px clamp(20px, 5vw, 72px);
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  background: rgba(3, 9, 21, 0.64);
  font-size: 12px;
}
footer strong { color: var(--ink-soft); }
footer a { color: var(--cyan-light); }

@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; }
  .studio-layout { grid-template-columns: 1fr; }
  .journey-panel { position: static; }
  .journey-list { grid-template-columns: repeat(3, 1fr); }
  .path-grid { grid-template-columns: 1fr; }
  .scenario-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { position: static; }
  .header-actions { gap: 8px; }
  .local-badge { display: none; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(45px, 14.5vw, 67px); }
  .promise-row, .offer-metrics, .decision-grid, .compact-grid, .journey-list { grid-template-columns: 1fr; }
  .promise-row > div { padding-right: 0; }
  .offer-metrics > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .journey-list { gap: 3px; }
  .state-columns { grid-template-columns: 1fr; }
  .state-arrow { transform: rotate(90deg); }
  .approval-panel { grid-template-columns: 1fr; }
  .scenario-switcher-heading, .scenario-activation-row { align-items: stretch; flex-direction: column; }
  .scenario-fields, .scenario-choice-groups, .choice-grid { grid-template-columns: 1fr; }
  .approval-button { min-height: 90px; }
  .panel-heading, .proof-heading { align-items: flex-start; }
  .synthetic-banner { flex-direction: column; }
  footer { flex-direction: column; }
}

@media (max-width: 460px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .brand small { display: none; }
  .brand { min-width: 0; gap: 8px; font-size: 0.88rem; white-space: nowrap; }
  .brand > span:last-child { min-width: 0; }
  .brand-mark { flex-basis: 36px; width: 36px; height: 36px; }
  .site-header { gap: 8px; padding-inline: 15px; }
  .header-actions { min-width: 0; margin-left: auto; }
  .site-header .button { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .hero, .studio-layout { padding-inline: 16px; }
  .approval-panel::after { display: none; }
  .synthetic-banner, .scenario-switcher { margin-inline: 16px; }
  .panel, .approval-panel, .journey-panel, .scenario-switcher { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
