:root {
  --navy: #172131;
  --navy-2: #223044;
  --ink: #17202d;
  --muted: #687386;
  --paper: #f8f7f3;
  --white: #fff;
  --line: #dfe3e8;
  --line-dark: #cbd1da;
  --yellow: #f5c518;
  --yellow-soft: #fff7d8;
  --blue: #3e6f91;
  --blue-soft: #e9f2f8;
  --green: #18765a;
  --green-soft: #e9f5f0;
  --orange: #a85e16;
  --orange-soft: #fff2e5;
  --red: #a43d3d;
  --red-soft: #fff0ef;
  --shadow-sm: 0 1px 2px rgba(23, 32, 45, 0.05), 0 14px 38px rgba(23, 32, 45, 0.05);
  --shadow-lg: 0 30px 90px rgba(23, 32, 45, 0.19);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 84% 3%, rgba(245, 197, 24, 0.09), transparent 31rem),
    var(--paper);
}

button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(245, 197, 24, 0.5);
  outline-offset: 3px;
}

::selection { color: var(--navy); background: rgba(245, 197, 24, 0.6); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 80px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(23, 33, 49, 0.97);
  backdrop-filter: blur(16px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 197, 24, 0.48);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  background: var(--yellow);
}

.brand-mark::before { width: 15px; height: 2px; transform: rotate(45deg); }
.brand-mark::after { width: 15px; height: 2px; transform: rotate(-45deg); }
.brand-mark span { width: 4px; height: 4px; border-radius: 50%; }

.brand-copy strong,
.brand-copy small { display: block; }
.brand-copy strong { font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.brand-copy strong span { color: var(--yellow); }
.brand-copy small {
  margin-top: 1px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 38px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav a,
.site-nav span {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.site-nav .active { color: #fff; }
.site-nav .active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--yellow);
}

.site-nav span { opacity: .5; }

.header-contact {
  justify-self: end;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.header-contact span { margin-left: 5px; color: var(--yellow); }

main { overflow: clip; }

.hero {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, .6fr);
  align-items: end;
  gap: 80px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 92px clamp(24px, 5vw, 80px) 74px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  display: inline-block;
  margin: 0 9px 3px 0;
  background: var(--yellow);
}

.eyebrow.light { color: var(--yellow); }

h1, h2, h3, p { text-wrap: pretty; }
h1, h2, blockquote { font-family: Georgia, "Times New Roman", serif; }

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(48px, 6.2vw, 94px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .96;
}

.hero-lede {
  max-width: 880px;
  margin: 32px 0 0;
  color: #4f5c6d;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
}

.maturity {
  align-self: center;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding-top: 60px;
}

.maturity > span {
  color: #9aa2ae;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.maturity > span.active { color: var(--navy); }
.maturity > i { height: 1px; background: var(--line-dark); }
.maturity p {
  grid-column: 1 / -1;
  margin: 15px 0 0;
  padding: 11px 13px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 650;
  border-left: 3px solid var(--yellow);
  background: var(--yellow-soft);
}

.demo-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 58px clamp(18px, 4vw, 64px) 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.demo-heading,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.demo-heading h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: #566274;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .05em;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-transform: uppercase;
  background: #fff;
}
.legend-ai b { color: var(--blue); }
.legend-rule b { color: var(--orange); font-size: 8px; }
.legend-human b { color: var(--green); font-size: 8px; }

.demo-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 18px;
  margin-top: 36px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.email-card,
.account-card { padding: 22px 24px; }

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.email-status { color: var(--orange); }
.resolved { color: var(--green); }
.resolved i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
}

.email-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #ebd05f;
  border-radius: 50%;
  background: var(--yellow-soft);
}
.email-meta strong,
.email-meta span { display: block; }
.email-meta strong { font-size: 12px; }
.email-meta span, .email-meta time { color: var(--muted); font-size: 10px; }

.email-body {
  min-height: 104px;
  margin: 20px 0 18px;
  color: #344153;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.58;
}

.preset-row { display: flex; flex-wrap: wrap; gap: 7px; }
.preset-button {
  padding: 7px 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  text-transform: uppercase;
}
.preset-button:hover { border-color: var(--line-dark); background: var(--paper); }
.preset-button.active {
  color: var(--navy);
  border-color: var(--yellow);
  background: var(--yellow-soft);
}

.account-head {
  display: grid;
  grid-template-columns: 1fr minmax(120px, .72fr);
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.account-head strong, .account-head span { display: block; }
.account-head strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; }
.account-head span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.seat-meter > span { margin: 0 0 7px; text-align: right; }
.seat-meter > div { height: 6px; overflow: hidden; border-radius: 10px; background: #edf0f3; }
.seat-meter i { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--yellow); transition: width .5s var(--ease); }

.account-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}
.account-facts div { padding: 11px 12px; background: #fbfbfa; }
.account-facts dt { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.account-facts dd { margin: 4px 0 0; font-size: 11px; font-weight: 700; }

.records { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.record-label { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.records ul { margin: 7px 0 0; padding: 0; list-style: none; }
.records li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 5px 0;
  color: #3a4657;
  font-size: 10px;
  border-bottom: 1px solid #eef0f2;
}
.records li:last-child { border: 0; }
.records li span:last-child { color: var(--muted); white-space: nowrap; }
.records .empty { display: block; color: var(--muted); font-style: italic; }

.run-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfbfa;
}
.run-controls { display: flex; align-items: center; gap: 8px; }
.primary-button,
.secondary-button,
.icon-button {
  height: 38px;
  border-radius: 5px;
  cursor: pointer;
}
.primary-button {
  padding: 0 15px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  border: 1px solid #e1b100;
  background: var(--yellow);
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(245, 197, 24, .18);
}
.primary-button span { margin-right: 6px; font-size: 8px; }
.primary-button.running span { display: inline-block; animation: blink 1s infinite; }
.secondary-button, .icon-button {
  color: #536073;
  border: 1px solid var(--line-dark);
  background: #fff;
}
.secondary-button { padding: 0 13px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.icon-button { width: 38px; font-size: 18px; }
button:disabled { opacity: .45; cursor: not-allowed; }

.speed-control {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.speed-control select {
  height: 32px;
  padding: 0 25px 0 8px;
  color: #536073;
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.counters { display: flex; align-items: center; }
.counters > div {
  min-width: 128px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border-left: 1px solid var(--line);
}
.counters strong { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; line-height: 1; }
.counters span { max-width: 84px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .04em; line-height: 1.25; text-transform: uppercase; }
.counters .other-counter strong { color: var(--orange); }
.counters .other-counter span { max-width: 116px; }
.counters .other-counter small {
  display: block;
  margin-top: 3px;
  color: #8b94a1;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}

.other-note {
  display: flex;
  gap: 8px;
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 10px;
}
.other-note span { color: var(--orange); }

.pipeline-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #f5f6f7;
  box-shadow: var(--shadow-sm);
}
.pipeline-scroll { overflow: auto; scrollbar-color: #c8ced7 transparent; }
.pipeline-table {
  width: 100%;
  min-width: 1510px;
  border-spacing: 0;
  table-layout: fixed;
}
.pipeline-table th,
.pipeline-table td {
  width: 132px;
  padding: 8px;
  border-right: 1px solid #e1e4e8;
  border-bottom: 1px solid #e1e4e8;
}
.pipeline-table th {
  height: 58px;
  color: #6f7989;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  background: #f4f5f6;
}
.pipeline-table th span { display: block; margin-bottom: 4px; color: #a0a7b1; font-size: 7px; }
.pipeline-table .ask-head,
.pipeline-table .ask-cell {
  position: sticky;
  z-index: 4;
  left: 0;
  width: 188px;
  background: #fff;
  box-shadow: 8px 0 12px rgba(23,32,45,.03);
}
.pipeline-table .ask-head { z-index: 6; background: var(--navy); color: #fff; }
.pipeline-table tbody tr { height: 122px; }
.pipeline-table td { vertical-align: top; background: #f8f9fa; }
.pipeline-table tbody tr:last-child td { border-bottom: 0; }
.pipeline-table th:last-child, .pipeline-table td:last-child { border-right: 0; }

.ask-cell { padding: 14px 12px !important; }
.ask-index { display: block; margin-bottom: 8px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ask-cell p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #3e4a5b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.step-cell { position: relative; transition: background .25s ease; }
.step-cell.pending { background: repeating-linear-gradient(135deg, #f7f8f9, #f7f8f9 6px, #f3f4f5 6px, #f3f4f5 12px); }
.step-cell.not-used { background: #f4f5f6; }
.step-cell.not-used::after { content: ""; position: absolute; top: 50%; right: 22px; left: 22px; height: 1px; background: #dfe2e6; }
.step-card {
  position: relative;
  width: 100%;
  min-height: 86px;
  padding: 10px 9px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  animation: cellIn .38s var(--ease) both;
}
.step-card:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(23,32,45,.08); }
.step-card .kind-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
}
.step-card small {
  display: block;
  padding-right: 13px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.step-card strong {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.28;
}
.step-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  line-height: 1.3;
}
.step-card.ai {
  border-color: #b8cfdd;
  background:
    linear-gradient(135deg, rgba(62,111,145,.055) 25%, transparent 25%) 0 0 / 7px 7px,
    var(--blue-soft);
}
.step-card.ai .kind-icon { color: var(--blue); }
.step-card.rule {
  border-color: #e5c49f;
  background:
    repeating-linear-gradient(135deg, rgba(168,94,22,.04), rgba(168,94,22,.04) 5px, transparent 5px, transparent 10px),
    var(--orange-soft);
}
.step-card.rule .kind-icon { color: var(--orange); }
.step-card.human {
  border-color: #a8cdbc;
  background:
    radial-gradient(rgba(24,118,90,.12) 1px, transparent 1px) 0 0 / 7px 7px,
    var(--green-soft);
}
.step-card.human .kind-icon { color: var(--green); }
.step-card.stop {
  border-color: #e7b9b7;
  background: var(--red-soft);
}
.step-card.stop .kind-icon { color: var(--red); }
.step-card.active { box-shadow: 0 0 0 3px var(--yellow), 0 8px 22px rgba(23,32,45,.14); }
.route-badge {
  display: block;
  margin-top: 7px;
  padding-top: 7px;
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .04em;
  border-top: 1px solid rgba(24,118,90,.18);
  text-transform: uppercase;
}
.stop .route-badge { color: var(--red); border-top-color: rgba(164,61,61,.18); }
.scroll-hint {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 5px 10px;
  color: #7b8491;
  font-size: 8px;
  letter-spacing: .04em;
  background: rgba(255,255,255,.88);
  pointer-events: none;
  text-transform: uppercase;
}
.scroll-hint span { color: var(--yellow); }

.rules-section,
.docs-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 100px clamp(18px, 4vw, 64px);
}
.section-heading > p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.rules-grid { display: grid; gap: 22px; margin-top: 48px; }
.rule-panel {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.rule-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 24px;
  color: #fff;
  background: var(--navy);
}
.rule-panel-head > div { display: flex; align-items: center; gap: 14px; }
.rule-panel-head span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  border-radius: 50%;
  background: var(--yellow);
}
.rule-panel-head h3 { margin: 0; font-size: 16px; }
.rule-panel-head p { margin: 0; color: rgba(255,255,255,.52); font-size: 10px; }
.rule-table-wrap { overflow-x: auto; }
.rule-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.rule-table th,
.rule-table td { padding: 10px 14px; border-right: 1px solid #e7eaed; border-bottom: 1px solid #e7eaed; text-align: left; }
.rule-table th {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  background: #f5f6f7;
  text-transform: uppercase;
}
.rule-table td { color: #4b5869; font-size: 10px; line-height: 1.4; }
.rule-table td:first-child { width: 105px; color: var(--navy); font-weight: 800; }
.rule-table td:nth-child(2) { width: 170px; font-weight: 650; }
.rule-table tr:last-child td { border-bottom: 0; }
.rule-table td:last-child,
.rule-table th:last-child { border-right: 0; }
.rule-table .group-start td { border-top: 2px solid var(--line-dark); }
.rule-table .type-question { border-left: 3px solid var(--blue); }
.rule-table .type-change { border-left: 3px solid var(--yellow); }
.rule-table .type-complaint { border-left: 3px solid var(--red); }
.rule-table .type-other { border-left: 3px solid var(--muted); }
.rule-table.compact td:nth-child(1) { width: 190px; }
.rule-table.compact td:nth-child(2) { width: 210px; }
.rule-table .yes { color: var(--orange); font-weight: 800; }
.rule-table .no { color: var(--muted); }
.rule-table .source { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }

.docs-section { padding-top: 0; }
.compact-heading { align-items: center; }
.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.doc-card {
  position: relative;
  min-height: 240px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.doc-card::after {
  content: "";
  position: absolute;
  top: -32px;
  right: -32px;
  width: 85px;
  height: 85px;
  border: 1px solid rgba(245,197,24,.35);
  border-radius: 50%;
}
.doc-card > span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.doc-card h3 { margin: 13px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; }
.doc-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.principle-section {
  padding: 100px clamp(24px, 9vw, 150px);
  color: #fff;
  text-align: center;
  background:
    linear-gradient(150deg, rgba(255,255,255,.025), transparent 40%),
    var(--navy);
}
.principle-section blockquote {
  max-width: 1000px;
  margin: 24px auto 56px;
  font-size: clamp(34px, 4vw, 60px);
  letter-spacing: -.04em;
  line-height: 1.1;
}
.principles { max-width: 900px; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.12); }
.principles span { padding: 20px 8px 0; color: rgba(255,255,255,.6); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.principles b { margin-right: 7px; color: var(--yellow); font-size: 8px; }

footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 30px clamp(24px, 5vw, 80px);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.09);
  background: var(--navy);
}
.footer-brand { justify-self: start; }
footer p { margin: 0; color: rgba(255,255,255,.42); font-size: 10px; }
footer > span { justify-self: end; color: rgba(255,255,255,.35); font-size: 9px; }

.inspector-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(12,18,28,.22);
  backdrop-filter: blur(2px);
  transition: .28s ease;
}
.inspector-backdrop.open { visibility: visible; opacity: 1; }
.inspector {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 72vh;
  padding: 26px clamp(24px, 5vw, 80px) 32px;
  overflow-y: auto;
  color: var(--ink);
  border-top: 4px solid var(--yellow);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(104%);
  transition: transform .42s var(--ease);
}
.inspector.open { transform: translateY(0); }
.inspector-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.inspector-head p { margin: 0 0 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.inspector-head h2 { margin: 0; font-size: 28px; font-weight: 400; }
.inspector-head button {
  width: 36px;
  height: 36px;
  color: var(--muted);
  font-size: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.inspector-latency { display: flex; gap: 8px; margin-top: 10px; }
.inspector-latency span { padding: 4px 7px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 3px; text-transform: uppercase; }
.inspector-flow {
  display: grid;
  grid-template-columns: 1fr 28px minmax(170px, .55fr) 28px 1fr;
  align-items: stretch;
  gap: 10px;
  margin-top: 22px;
}
.flow-block, .flow-step { min-height: 130px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #f8f9fa; }
.flow-block > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.flow-block p, .flow-block ul { margin: 0; color: #465365; font-size: 10px; line-height: 1.5; }
.flow-block ul { padding-left: 16px; }
.flow-block details { margin-top: 7px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.flow-block summary { color: var(--blue); font-size: 9px; font-weight: 700; cursor: pointer; }
.flow-block details p { margin-top: 6px; color: var(--muted); }
.flow-block.output { border-color: #b8cfdd; background: var(--blue-soft); }
.flow-step { display: grid; place-content: center; text-align: center; background: #fff; }
.flow-step i { color: var(--blue); font-size: 18px; font-style: normal; }
.flow-step strong { margin-top: 8px; font-size: 12px; }
.flow-step small { max-width: 170px; margin-top: 6px; color: var(--muted); font-size: 8px; }
.flow-arrow { display: grid; place-items: center; color: var(--yellow); font-size: 18px; }
.prompt-details { margin-top: 15px; border-top: 1px solid var(--line); }
.prompt-details summary { padding: 13px 0 0; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; cursor: pointer; text-transform: uppercase; }
.prompt-details pre { padding: 12px; overflow-x: auto; color: #4b5869; font: 9px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; border-radius: 5px; background: #f4f5f6; }
.inspector-note { margin: 12px 0 0; color: var(--muted); font-size: 9px; }

@keyframes cellIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes blink { 50% { opacity: .35; } }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .maturity { max-width: 520px; padding-top: 20px; }
  .demo-top { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .run-bar { align-items: flex-start; flex-direction: column; }
  .counters { width: 100%; border-top: 1px solid var(--line); }
  .counters > div { flex: 1; padding-top: 10px; border-left: 0; }
}

@media (max-width: 760px) {
  .site-header { height: 68px; padding: 0 18px; }
  .header-contact { font-size: 0; }
  .header-contact span { font-size: 18px; }
  .brand-copy strong { font-size: 10px; }
  .hero { min-height: auto; padding: 64px 22px 55px; }
  h1 { font-size: clamp(43px, 14vw, 66px); }
  .hero-lede { font-size: 15px; }
  .maturity { gap: 5px; }
  .maturity > span { font-size: 7px; }
  .demo-shell { padding: 44px 12px 55px; }
  .demo-heading, .section-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .legend { justify-content: flex-start; }
  .email-card, .account-card { padding: 18px; }
  .account-head { grid-template-columns: 1fr; }
  .seat-meter > span { text-align: left; }
  .account-facts { grid-template-columns: 1fr 1fr; }
  .records { grid-template-columns: 1fr; gap: 14px; }
  .run-controls { flex-wrap: wrap; }
  .speed-control { width: 100%; margin: 4px 0 0; }
  .counters > div { min-width: 0; padding: 10px 8px 0; }
  .counters strong { font-size: 19px; }
  .counters span { font-size: 6px; }
  .rules-section, .docs-section { padding: 70px 16px; }
  .docs-section { padding-top: 0; }
  .rule-panel-head { align-items: flex-start; flex-direction: column; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-card { min-height: 0; }
  .principle-section { padding: 70px 22px; }
  .principles { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
  .inspector { max-height: 86vh; padding: 22px 16px 26px; }
  .inspector-flow { grid-template-columns: 1fr; }
  .flow-arrow { height: 18px; transform: rotate(90deg); }
}

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

/* Shared simple-section layout */
.simple-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.simple-main {
  position: relative;
  min-height: calc(100vh - 196px);
  display: grid;
  place-items: center;
  flex: 1;
  padding: 90px clamp(24px, 8vw, 130px);
  overflow: hidden;
}

.simple-main::before {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(-170px, -8vw, -70px);
  width: min(44vw, 600px);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 33, 49, .06);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(23, 33, 49, .018), 0 0 0 140px rgba(245, 197, 24, .025);
  transform: translateY(-50%);
  pointer-events: none;
}

.simple-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
}

.simple-hero h1 {
  max-width: 1050px;
  font-size: clamp(56px, 8vw, 118px);
}

.simple-hero > p:not(.eyebrow) {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.7;
}

.simple-link,
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 34px;
  padding: 12px 15px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  border: 1px solid #e0b200;
  border-radius: 4px;
  background: var(--yellow);
  text-transform: uppercase;
}

.simple-link span { font-size: 14px; }
.coming-soon { color: var(--muted); border-color: var(--line-dark); background: #fff; }

.page-marker {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: 28px;
  margin: 0;
  color: #9aa2ae;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { display: flex; justify-self: center; gap: 22px; }
}

@media (max-width: 760px) {
  .site-header { height: 68px; grid-template-columns: auto 1fr; gap: 16px; padding: 0 16px; }
  .site-header .brand-copy { display: none; }
  .site-header .brand-mark { width: 32px; height: 32px; }
  .site-nav { display: flex; justify-self: end; gap: clamp(12px, 4vw, 20px); font-size: 8px; }
  .header-contact { display: none; }
  .simple-main { min-height: calc(100vh - 168px); padding: 70px 22px 95px; }
  .simple-hero h1 { font-size: clamp(48px, 16vw, 72px); }
  .simple-main::before { width: 80vw; right: -45vw; }
}
