:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef2f5;
  color: #15212e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: #ffffff;
  border-bottom: 1px solid #d8e0e7;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav a {
  color: #30465a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 11px;
  border-radius: 6px;
}

.topnav a:hover {
  background: #eef4f6;
}

.nav-cta {
  background: #0f6b6e;
  color: #ffffff !important;
}

.eyebrow {
  margin: 0 0 6px;
  color: #476173;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

p {
  color: #526577;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px 12px;
}

.hero h2 {
  max-width: 980px;
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.18;
}

.hero p {
  max-width: 920px;
  margin-bottom: 0;
  font-size: 17px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.proof-strip span {
  border: 1px solid #c7d4df;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  color: #203445;
  font-weight: 800;
  text-align: center;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px 0;
}

.explain-grid article {
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  padding: 18px;
}

.explain-grid p {
  margin-bottom: 0;
}

.steps {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.section-title {
  margin-bottom: 14px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  min-height: 188px;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.step-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #0f6b6e;
  color: #ffffff;
  font-weight: 900;
}

.step-list h3 {
  margin-bottom: 6px;
}

.step-list p {
  margin-bottom: 12px;
}

.step-list strong {
  display: block;
  color: #203445;
  font-size: 14px;
  line-height: 1.45;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  color: #30465a;
  font-size: 14px;
  font-weight: 700;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1a8f5a;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.live-panel {
  grid-column: 1 / -1;
}

.panel {
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  padding: 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head p {
  margin-bottom: 0;
  font-size: 14px;
}

button, select, input {
  font: inherit;
}

button {
  border: 1px solid #bcc8d4;
  border-radius: 6px;
  background: #ffffff;
  color: #15212e;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  border-color: #647b8f;
}

.primary {
  display: inline-grid;
  place-items: center;
  min-width: 118px;
  padding: 10px 14px;
  background: #0f6b6e;
  color: #ffffff;
  border-color: #0f6b6e;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.wide {
  width: 100%;
}

.scenario-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.scenario {
  width: 100%;
  text-align: left;
  padding: 12px;
}

.scenario[aria-pressed="true"] {
  border-color: #0f6b6e;
  background: #e6f3f2;
}

.scenario span {
  display: block;
  color: #5b6f80;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

.request-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #34495e;
  font-size: 13px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #bcc8d4;
  border-radius: 6px;
  padding: 10px 11px;
  background: #ffffff;
  color: #15212e;
}

textarea {
  resize: vertical;
}

.pill {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.neutral {
  background: #e8edf2;
  color: #425466;
}

.allow {
  background: #dff5e9;
  color: #176b45;
}

.deny {
  background: #fde8e8;
  color: #9b2c2c;
}

.trace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

article {
  min-width: 0;
}

pre {
  min-height: 170px;
  max-height: 360px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  background: #111923;
  color: #e8f0f7;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 28px;
  color: #526577;
  font-size: 13px;
}

.live-result {
  margin-top: 18px;
}

.sources {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.source-item {
  border-left: 4px solid #0f6b6e;
  background: #f7fafb;
  padding: 12px;
  border-radius: 6px;
}

.source-item strong {
  display: block;
  margin-bottom: 4px;
}

.source-item p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .topbar,
  .section-head {
    flex-direction: column;
  }

  .hero,
  .explain-grid,
  .step-list,
  .workspace,
  .trace-grid {
    grid-template-columns: 1fr;
  }

  .status {
    min-width: 0;
  }
}

.auth-page {
  min-height: 100vh;
  background: #eef2f5;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  max-width: 1120px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 24px;
  align-items: center;
}

.auth-copy h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: 42px;
}

.auth-copy p {
  max-width: 620px;
  font-size: 17px;
}

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mini-flow span {
  border: 1px solid #c7d4df;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  font-weight: 800;
}

.login-card {
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  padding: 28px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: #0f6b6e;
  font-weight: 800;
  text-decoration: none;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.auth-note {
  margin-top: 16px;
  border-radius: 8px;
  background: #f2f6f8;
  padding: 12px;
  color: #526577;
  font-size: 13px;
  line-height: 1.5;
}

.auth-status {
  margin-top: 14px;
  border-radius: 8px;
  background: #e6f3f2;
  padding: 12px;
  color: #0f4d50;
  font-size: 14px;
  font-weight: 800;
}

.token-output {
  min-height: 88px;
  max-height: 150px;
  margin-top: 14px;
  word-break: break-all;
  white-space: pre-wrap;
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.auth-actions a,
.auth-actions button,
.console-actions button {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid #bcc8d4;
  border-radius: 6px;
  background: #ffffff;
  color: #203445;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.auth-actions [disabled],
.auth-actions [aria-disabled="true"],
.console-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.console-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.side-panel,
.console-main section,
.console-hero,
.metric-grid article {
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.side-panel a {
  color: #30465a;
  text-decoration: none;
  font-weight: 800;
  padding: 10px;
  border-radius: 6px;
}

.side-panel a.active,
.side-panel a:hover {
  background: #e6f3f2;
  color: #0f6b6e;
}

.console-main {
  display: grid;
  gap: 16px;
}

.console-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.console-hero p {
  margin-bottom: 0;
}

.console-session {
  margin-top: 8px;
  font-size: 14px;
}

.console-actions {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: end;
  min-width: 170px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-grid article {
  padding: 18px;
}

.metric-grid span {
  color: #526577;
  font-size: 13px;
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.table-panel {
  padding: 20px;
}

.source-table {
  display: grid;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  overflow: hidden;
}

.source-table div {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #d8e0e7;
}

.source-table div:last-child {
  border-bottom: 0;
}

.table-head {
  background: #f2f6f8;
  font-weight: 900;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px;
}

.demo-script h2 {
  max-width: 720px;
  font-size: 34px;
}

.single {
  grid-template-columns: 1fr;
}

.demo-phone {
  align-self: start;
  background: #111923;
  color: #e8f0f7;
  border-radius: 8px;
  padding: 18px;
}

.demo-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #9fb2c4;
}

.demo-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #627386;
}

.chat-line {
  max-width: 92%;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 14px;
  line-height: 1.55;
}

.chat-line.user {
  margin-left: auto;
  background: #0f6b6e;
}

.chat-line.ai {
  background: #243142;
}

.chat-line.ai span,
.chat-line.ai small {
  display: block;
}

.chat-line.ai span {
  margin-bottom: 8px;
  color: #75d6a4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-line.ai small {
  margin-top: 10px;
  color: #9fb2c4;
}

.audit-chip {
  display: inline-block;
  border: 1px solid #405366;
  border-radius: 999px;
  padding: 8px 10px;
  color: #b8c7d4;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .auth-shell,
  .console-layout,
  .metric-grid,
  .demo-layout,
  .source-table div,
  .auth-actions {
    grid-template-columns: 1fr;
  }

  .topnav {
    flex-wrap: wrap;
  }
}
