:root {
  --ink: #18202a;
  --muted: #687385;
  --line: #d9dee7;
  --panel: #ffffff;
  --page: #f4f6f9;
  --nav: #111827;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --gold: #b7791f;
  --red: #b42318;
  --blue: #2563eb;
  --green-soft: #dff4ee;
  --gold-soft: #fff3d6;
  --red-soft: #fde8e4;
  --blue-soft: #e7eefc;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, Helvetica, sans-serif;
}

button,
select,
input,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  transition: grid-template-columns 220ms ease;
}

.top-nav-shell {
  display: block;
}

.top-nav-shell .sidebar {
  display: none;
}

body.nav-collapsed .app-shell {
  grid-template-columns: 84px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.84);
  color: #1d1d1f;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  transition: padding 220ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #1d1d1f;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

body.nav-collapsed .brand h1,
body.nav-collapsed .brand p,
body.nav-collapsed .nav-section-toggle span,
body.nav-collapsed .nav-section-toggle strong,
body.nav-collapsed .nav-tab span:last-child,
body.nav-collapsed .sidebar-foot {
  display: none;
}

body.nav-collapsed .sidebar {
  align-items: center;
  width: 84px;
  overflow: visible;
  z-index: 25;
}

body.nav-collapsed .brand {
  justify-content: center;
}

body.nav-collapsed .sidebar-toggle {
  margin-left: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h3 {
  margin: 0;
}

.brand h1 {
  font-size: 22px;
}

.brand p {
  margin-top: 3px;
  color: #86868b;
  font-size: 13px;
}

.nav-tabs {
  display: grid;
  gap: 14px;
}

.old-flat-nav {
  display: none;
  pointer-events: none;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-section-toggle {
  width: 100%;
  border: 0;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7b7f86;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-section-items {
  display: none;
  gap: 4px;
}

.nav-group.expanded .nav-section-items {
  display: grid;
}

.nav-tab {
  width: 100%;
  border: 0;
  color: #4b5563;
  background: transparent;
  padding: 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

body.nav-collapsed .nav-tab {
  justify-content: center;
  padding: 10px;
}

.nav-tab span:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0f2f5;
  color: #1d1d1f;
}

.nav-tab.active,
.nav-tab:hover {
  background: #eaf3f0;
  color: var(--accent-strong);
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  background: #ffffff;
}

.workspace {
  min-width: 0;
  padding: 26px;
}

.app-top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
  border-bottom: 1px solid rgba(217, 222, 231, 0.86);
  background: rgba(245, 245, 247, 0.94);
  backdrop-filter: blur(18px);
}

.app-top-brand {
  min-width: 245px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.app-top-brand strong,
.app-top-brand small {
  display: block;
}

.app-top-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav-tabs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.top-nav-tabs .nav-tab {
  width: auto;
  min-height: 42px;
  padding: 9px 12px;
  white-space: nowrap;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(560px, auto);
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar-actions {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(250px, 1.1fr) minmax(190px, 0.8fr);
  align-items: center;
  gap: 12px;
  width: min(870px, 100%);
}

.topbar-card {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.auth-card {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "status action"
    "name action";
  align-items: center;
  column-gap: 12px;
}

.auth-card span {
  grid-area: status;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-card strong {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.auth-actions {
  grid-area: action;
  display: flex;
  gap: 8px;
}

.auth-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.current-project-picker {
  min-width: 0;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.current-project-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.current-project-picker select {
  min-width: 0;
  width: 100%;
  height: 32px;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-weight: 800;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar h2 {
  margin-top: 6px;
  font-size: 28px;
}

.score-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  position: relative;
}

.score-strip span {
  color: var(--muted);
  font-size: 13px;
}

.score-strip strong {
  font-size: 25px;
  color: var(--accent-strong);
}

.score-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tooltip-trigger {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.tooltip-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tooltip-bubble {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 82vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.tooltip-trigger:hover + .tooltip-bubble,
.tooltip-trigger:focus + .tooltip-bubble,
.score-strip:focus-within .tooltip-bubble {
  opacity: 1;
  transform: translateY(0);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.summary-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.project-summary-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.project-summary-hero h3 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.summary-score-card {
  min-width: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.summary-score-card span,
.summary-score-card strong {
  display: block;
}

.summary-score-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-score-card strong {
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: 42px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-action {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.summary-action:hover,
.summary-action:focus-visible {
  border-color: #a7d8ca;
  background: #fbfffd;
  outline: none;
}

.summary-action strong {
  font-size: 17px;
}

.summary-action span {
  color: var(--muted);
  line-height: 1.42;
}

.control-row {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.control-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select {
  min-width: min(520px, 55vw);
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

.primary-button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.test-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.test-work-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.test-work-item-row .primary-button {
  min-width: 180px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.workbench-input,
.question-panel,
.generated-panel {
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
}

.question-panel {
  display: grid;
  align-content: start;
}

.question-panel .button-row {
  margin: 2px 0 18px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.mode-switch-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.mode-switch-panel strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.mode-switch-panel p,
.quiet-copy {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f7f9;
}

.segment-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.segment-button.active {
  color: #ffffff;
  background: var(--accent);
}

.existing-pbi-picker {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.existing-pbi-picker[hidden] {
  display: none !important;
}

.existing-pbi-picker label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel h3 {
  font-size: 17px;
}

.status-pill,
.confidence {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.high {
  color: var(--red);
  background: var(--red-soft);
}

.status-pill.medium,
.status-pill.warning {
  color: var(--gold);
  background: var(--gold-soft);
}

.status-pill.neutral {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-pill.success {
  color: var(--accent-strong);
  background: var(--green-soft);
}

.status-pill.connected {
  color: var(--accent-strong);
  background: var(--green-soft);
}

.confidence {
  color: var(--accent-strong);
  background: var(--green-soft);
}

.summary-block {
  display: grid;
  gap: 12px;
}

.ask-workbench {
  min-height: 520px;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
}

.chat-thread {
  min-height: 300px;
  max-height: 58vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 10px 4px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.chat-message {
  max-width: min(760px, 86%);
  display: grid;
  gap: 6px;
}

.chat-message.user {
  align-self: flex-end;
}

.chat-message.assistant,
.chat-message.system {
  align-self: flex-start;
}

.chat-speaker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-bubble {
  border-radius: 18px;
  padding: 13px 16px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chat-message.user .chat-bubble {
  color: #ffffff;
  background: var(--accent);
  border-bottom-right-radius: 8px;
}

.chat-message.assistant .chat-bubble,
.chat-message.system .chat-bubble {
  color: var(--ink);
  background: #f1f2f5;
  border-bottom-left-radius: 8px;
}

.chat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ask-workbench .form-grid {
  margin-top: 0;
}

.ask-admin-control {
  display: grid;
}

.legacy-project-picker {
  display: none !important;
}

body.ask-normal .ask-admin-control {
  display: none !important;
}

.summary-title {
  font-size: 22px;
  font-weight: 800;
}

.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfe;
  font-size: 13px;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.readiness-card {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fbfcfe;
}

.readiness-card strong {
  font-size: 18px;
}

.readiness-card span {
  color: var(--muted);
  font-size: 13px;
}

.question-list {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}

.fallback-notice {
  margin-bottom: 14px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
  color: #6f470d;
  background: var(--gold-soft);
  font-size: 13px;
  line-height: 1.4;
}

.question-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.question-card > span:not(.question-meta) {
  max-width: 76ch;
  font-size: 16px;
  line-height: 1.55;
}

.question-card textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}

.question-card.answered {
  border-color: #a7d8ca;
  background: #f4fbf8;
}

.answered-section {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.answered-section h4 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.answered-list {
  display: grid;
  gap: 10px;
}

.answered-card {
  display: grid;
  gap: 7px;
  border: 1px solid #a7d8ca;
  border-radius: 8px;
  padding: 12px;
  background: #f4fbf8;
}

.answered-card p,
.answered-card blockquote {
  margin: 0;
}

.answered-card p {
  font-weight: 700;
}

.answered-card blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.question-meta strong,
.question-meta em {
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.question-meta strong {
  color: var(--accent-strong);
}

.question-meta em {
  color: var(--muted);
}

.generated-preview {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.generated-preview p,
.generated-preview li {
  color: var(--muted);
  line-height: 1.45;
}

.generated-preview ul {
  margin: 0;
  padding-left: 20px;
}

.generated-preview h4 {
  margin: 8px 0 0;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.generated-title {
  font-size: 22px;
  font-weight: 800;
}

.empty-state {
  border: 1px dashed #b8c4d5;
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: #fbfcfe;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.list-item strong {
  display: block;
  margin-bottom: 5px;
}

.list-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.coverage-bullet-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.coverage-bullet-list li + li {
  margin-top: 6px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.evidence-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.evidence-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.decision-box {
  display: grid;
  gap: 14px;
}

.rbt-command-panel {
  margin-bottom: 16px;
}

.rbt-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) max-content;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.rbt-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rbt-metric,
.rbt-decision-row,
.rbt-item-card,
.rbt-pack {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.rbt-metric {
  min-height: 76px;
  padding: 12px;
}

.rbt-metric span,
.rbt-pack header span,
.rbt-mini-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rbt-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.rbt-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.rbt-decision-matrix,
.rbt-regression-grid {
  display: grid;
  gap: 10px;
}

.rbt-decision-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 42px;
  gap: 8px;
  align-items: center;
  padding: 12px;
}

.rbt-decision-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--green-soft);
  font-weight: 900;
}

.rbt-decision-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.rbt-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rbt-item-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
}

.rbt-item-card header,
.rbt-pack header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rbt-item-card p,
.rbt-pack p,
.rbt-item-card small,
.list-item small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.rbt-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rbt-chip-row span,
.inline-severity {
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
}

.rbt-mini-list {
  display: grid;
  gap: 5px;
}

.rbt-mini-list ul,
.rbt-pack ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.rbt-pack {
  padding: 14px;
}

.decision-metric {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  align-items: center;
}

.meter {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.graph-panel {
  min-height: 520px;
}

.graph-canvas {
  position: relative;
  min-height: 430px;
  border: 1px dashed #c7cfdb;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(24, 32, 42, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24, 32, 42, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.graph-node {
  position: absolute;
  width: 150px;
  min-height: 64px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  box-shadow: var(--shadow);
}

.graph-node span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.graph-node strong {
  display: block;
  margin-top: 5px;
}

.graph-link {
  position: absolute;
  height: 2px;
  background: #8ea0b6;
  transform-origin: left center;
}

.setup-panel {
  max-width: 1180px;
  margin-bottom: 16px;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.wizard-steps span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.wizard-steps .active {
  color: var(--accent-strong);
  background: var(--green-soft);
  border-color: #bfe5dc;
}

.security-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.security-mode-card {
  position: relative;
  min-height: 86px;
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 13px 42px 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.security-mode-card:hover,
.security-mode-card.active {
  border-color: #7ac6b8;
  background: #f2fbf8;
}

.security-mode-card .mode-label,
.security-mode-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.security-mode-card strong {
  font-size: 16px;
  line-height: 1.22;
}

.mode-info {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: help;
}

.mode-info:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mode-tooltip {
  position: absolute;
  z-index: 30;
  top: 38px;
  right: 12px;
  width: min(330px, calc(100vw - 56px));
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.mode-info:hover + .mode-tooltip,
.mode-info:focus + .mode-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.security-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}

.security-review strong {
  display: block;
  margin-top: 1px;
  font-size: 16px;
}

.security-review p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 13px;
}

.security-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.security-facts span {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
  cursor: help;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-grid .checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.checkbox-row input {
  min-width: auto;
  width: 16px;
  height: 16px;
}

.field-help {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.form-grid select {
  min-width: 0;
  width: 100%;
}

.provider-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.provider-switch label {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.provider-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.provider-switch span {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.provider-switch input:checked + span {
  background: var(--accent);
  color: #ffffff;
}

.provider-fields {
  display: none;
  gap: 14px;
}

.provider-fields.active {
  display: grid;
}

.full-field {
  grid-column: 1 / -1;
}

.two-column-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-panel {
  margin-top: 14px;
}

.result-panel:empty {
  display: none;
}

.private-deploy-form {
  padding-top: 4px;
}

.delete-project-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.delete-project-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.team-access-form {
  display: grid;
  gap: 14px;
}

.team-access-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.toggle-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  color: var(--ink);
}

.toggle-row input {
  width: 18px;
  height: 18px;
}

.danger-button {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  color: #ffffff;
  background: var(--red);
  font-weight: 800;
  cursor: pointer;
}

.danger-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.connector-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.connector-hero h3 {
  margin-top: 4px;
  font-size: 24px;
}

.connector-section {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.connector-section-header h3,
.connector-section-header p {
  margin: 0;
}

.connector-section-header h3 {
  font-size: 18px;
}

.connector-section-header p {
  margin-top: 4px;
}

.connector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.active-connector-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.connector-card {
  min-height: 250px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.connector-card.active-connector {
  border-color: #a7d8ca;
  background: #fbfffd;
}

.connector-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.connector-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.connector-mark.azure {
  background: #2563eb;
}

.connector-mark.jira {
  background: #0f766e;
}

.connector-mark.sharepoint {
  background: #0369a1;
}

.connector-mark.confluence {
  background: #0052cc;
}

.connector-mark.git {
  background: #111827;
}

.connector-mark.docs {
  background: #7c3aed;
}

.connector-mark.teams {
  background: #4f46e5;
}

.connector-mark.cicd {
  background: #b7791f;
}

.connector-mark.tests {
  background: #0e7490;
}

.connector-mark.incidents {
  background: #b42318;
}

.connector-mark.telemetry {
  background: #475569;
}

.connector-mark.design {
  background: #be185d;
}

.connector-card h3,
.connector-card p {
  margin: 0;
}

.connector-card p {
  color: var(--muted);
  line-height: 1.48;
}

.connector-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.connector-scope span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.json-output {
  margin: 0;
  margin-top: 12px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  padding: 14px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

body.landing-page {
  background: #f7f8fb;
}

.landing-page a {
  color: inherit;
  text-decoration: none;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 222, 231, 0.86);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(16px);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 170px;
}

.landing-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--nav);
  color: #ffffff;
  font-weight: 800;
}

.landing-brand strong,
.landing-brand small {
  display: block;
}

.landing-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.landing-nav nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  color: #465364;
  font-size: 14px;
  font-weight: 700;
}

.landing-nav nav a:hover {
  color: var(--accent-strong);
}

.landing-nav-actions,
.social-links,
.footer-social-links {
  display: flex;
  align-items: center;
}

.landing-nav-actions {
  gap: 10px;
}

.social-links,
.footer-social-links {
  gap: 6px;
}

.social-links a,
.footer-social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #ffffff;
}

.social-links svg,
.footer-social-links svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.social-links a:hover,
.footer-social-links a:hover {
  border-color: var(--accent);
  background: #f8fbff;
}

.nav-cta,
.try-kontexiq-link,
.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.nav-cta,
.try-kontexiq-link,
.hero-primary {
  padding: 0 20px;
  color: #ffffff;
  background: var(--accent);
}

.nav-cta:hover,
.try-kontexiq-link:hover,
.hero-primary:hover {
  background: var(--accent-strong);
}

.watch-demo-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(31, 99, 255, 0.28);
  border-radius: 8px;
  color: var(--nav);
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
}

.watch-demo-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.landing-hero {
  position: relative;
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.98) 0%, rgba(247, 248, 251, 0.92) 42%, rgba(247, 248, 251, 0.58) 70%, rgba(247, 248, 251, 0.9) 100%),
    linear-gradient(135deg, #ffffff 0%, #edf4f2 44%, #eef3fb 100%);
}

.landing-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -28%;
  width: 64%;
  height: 62%;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: rotate(-7deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.landing-eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  color: #111827;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: #465364;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-demo-callout {
  width: min(560px, 100%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 99, 255, 0.28);
  border-radius: 8px;
  color: #17202a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.hero-demo-callout:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero-demo-callout strong,
.hero-demo-callout small {
  display: block;
}

.hero-demo-callout strong {
  font-size: 16px;
  line-height: 1.25;
}

.hero-demo-callout small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.demo-play-mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(31, 99, 255, 0.28);
}

.demo-play-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #ffffff;
}

.hero-secondary {
  padding: 0 20px;
  border: 1px solid #c6d0dc;
  background: rgba(255, 255, 255, 0.76);
  color: #1f2937;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  width: min(650px, 100%);
  margin-top: 34px;
}

.hero-metrics div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--nav);
  font-size: 30px;
}

.hero-metrics span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-product {
  position: absolute;
  z-index: 1;
  right: clamp(-240px, -12vw, -90px);
  top: 50%;
  width: min(790px, 62vw);
  transform: translateY(-50%) rotate(-2deg);
}

.product-window {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.18);
}

.window-top {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.window-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.window-top span:nth-child(1) {
  background: var(--red);
}

.window-top span:nth-child(2) {
  background: var(--gold);
}

.window-top span:nth-child(3) {
  background: var(--accent);
}

.window-top strong {
  margin-left: 8px;
  color: #334155;
  font-size: 13px;
}

.brain-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
  padding: 16px;
  background: #f4f6f9;
}

.brain-card {
  min-height: 145px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.brain-main {
  grid-row: span 3;
  min-height: 490px;
}

.card-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brain-card h2,
.brain-card h3,
.brain-card p {
  margin: 0;
}

.brain-card h2 {
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
}

.brain-card h3 {
  color: #111827;
  font-size: 21px;
}

.brain-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.context-map {
  position: relative;
  height: 280px;
  margin-top: 28px;
  border: 1px dashed #c7cfdb;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(24, 32, 42, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24, 32, 42, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 88px;
  min-height: 48px;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.node-core {
  left: calc(50% - 44px);
  top: calc(50% - 24px);
  color: var(--accent);
}

.node-blue {
  left: 28px;
  top: 34px;
  color: var(--blue);
}

.node-gold {
  right: 32px;
  top: 44px;
  color: var(--gold);
}

.node-red {
  left: 42px;
  bottom: 40px;
  color: var(--red);
}

.node-teal {
  right: 42px;
  bottom: 32px;
  color: var(--accent-strong);
}

.confidence-bar {
  height: 10px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.confidence-bar span {
  display: block;
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.landing-section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2,
.value-copy h2,
.trust-panel h2,
.final-cta h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:not(.landing-eyebrow),
.value-copy p,
.trust-panel p,
.final-cta p {
  color: #556274;
  font-size: 18px;
  line-height: 1.55;
}

.proof-grid,
.role-grid,
.before-after-grid,
.pilot-grid {
  display: grid;
  gap: 14px;
}

.proof-grid,
.role-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.before-after-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pilot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-card,
.role-grid article,
.comparison-card,
.pilot-grid article {
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.proof-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.proof-icon.teal {
  background: var(--accent);
}

.proof-icon.blue {
  background: var(--blue);
}

.proof-icon.gold {
  background: var(--gold);
}

.proof-icon.red {
  background: var(--red);
}

.proof-card h3,
.role-grid h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.proof-card p,
.role-grid p,
.comparison-card p,
.pilot-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.faq-item {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.faq-item h3 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.2;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.before-after-section {
  background: #ffffff;
}

.comparison-card {
  min-height: 320px;
}

.comparison-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.before-card span {
  background: var(--red);
}

.after-card span {
  background: var(--accent);
}

.comparison-card h3,
.pilot-grid h3 {
  margin: 0;
  color: #111827;
  font-size: 22px;
}

.comparison-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.comparison-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.comparison-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.pilot-section {
  background: #f7f8fb;
}

.pilot-grid article {
  min-height: 210px;
}

.value-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background: #111827;
}

.value-copy h2,
.value-copy p {
  color: #f8fafc;
}

.value-copy p {
  color: #cbd5e1;
}

.value-list {
  display: grid;
  gap: 12px;
}

.value-list div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.value-list strong,
.value-list span {
  display: block;
}

.value-list strong {
  color: #ffffff;
  font-size: 18px;
}

.value-list span {
  margin-top: 7px;
  color: #cbd5e1;
  line-height: 1.45;
}

.workflow-section {
  background: #ffffff;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.workflow div {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.workflow div::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.workflow strong,
.workflow span {
  display: block;
}

.workflow strong {
  color: #111827;
  font-size: 18px;
}

.workflow span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.trust-section {
  background: #eef3fb;
}

.private-cloud-section {
  background: #ffffff;
}

.mcp-section,
.mcp-private-section {
  background: #f8fafc;
}

.mcp-page .private-hero {
  min-height: auto;
}

.mcp-hero code,
.private-hero-card code {
  color: #111827;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.mcp-tool-grid .proof-card code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.9em;
}

.private-cloud-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.private-cloud-panel h2,
.private-hero h1,
.private-flow-panel h2 {
  margin: 0;
  color: #111827;
  letter-spacing: 0;
}

.private-cloud-panel h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
}

.private-cloud-panel p,
.private-hero p,
.private-flow-panel p {
  color: #556274;
  font-size: 18px;
  line-height: 1.55;
}

.private-cloud-facts {
  display: grid;
  gap: 10px;
}

.private-cloud-facts span {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: #334155;
  background: #ffffff;
  font-weight: 700;
}

.trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid #cdd7e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.trust-checks {
  display: grid;
  gap: 10px;
  align-content: center;
}

.trust-checks span {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  color: #334155;
  background: #fbfcfe;
  font-weight: 700;
}

.demo-request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background: #ffffff;
}

.demo-request-copy h2,
.demo-request-copy p {
  margin: 0;
}

.demo-request-copy h2 {
  color: #111827;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.demo-request-copy p {
  margin-top: 16px;
  color: #556274;
  font-size: 18px;
  line-height: 1.55;
}

.demo-request-notes {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.demo-request-notes span {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: #334155;
  background: #fbfcfe;
  font-weight: 700;
}

.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.demo-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  min-width: 0;
  width: 100%;
  border-radius: 8px;
  background: #ffffff;
}

.demo-form textarea {
  resize: vertical;
}

.demo-form .full-field,
.demo-form-actions,
.demo-form-status {
  grid-column: 1 / -1;
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.demo-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-primary {
  border: 0;
  cursor: pointer;
}

.hero-primary:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.demo-form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.demo-form-status.success {
  color: var(--accent-strong);
}

.demo-form-status.error {
  color: var(--red);
}

.final-cta {
  padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 72px);
  text-align: center;
  background: #f7f8fb;
}

.final-cta p {
  max-width: 720px;
  margin: 16px auto 26px;
}

.final-cta .hero-actions {
  justify-content: center;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

.app-legal-footer {
  margin-left: 270px;
}

.policy-page {
  background: #f7f8fb;
}

.policy-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.94);
  backdrop-filter: blur(16px);
}

.policy-nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 22px;
  color: #465364;
  font-size: 14px;
  font-weight: 800;
}

.policy-document {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0;
}

.policy-document [data-custom-class="body"],
.policy-hero,
.policy-card,
.policy-cta {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.policy-document h1,
.policy-document h2,
.policy-document h3,
.policy-card h2,
.policy-card h3,
.policy-hero h1,
.policy-cta h2 {
  color: #111827;
  letter-spacing: 0;
}

.policy-document a {
  color: var(--accent-strong);
}

.policy-hero {
  margin-bottom: 16px;
}

.policy-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.policy-hero p,
.policy-card p,
.policy-card li,
.policy-cta p {
  color: var(--muted);
  line-height: 1.6;
}

.policy-request-form {
  margin-top: 20px;
  text-align: left;
}

.deletion-commitments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.deletion-commitments div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.deletion-commitments strong,
.deletion-commitments span {
  display: block;
}

.deletion-commitments strong {
  color: var(--accent-strong);
  font-size: 24px;
}

.deletion-commitments span {
  margin-top: 5px;
  color: var(--muted);
}

.policy-card,
.policy-scope-grid,
.policy-cta {
  margin-top: 16px;
}

.policy-steps {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.policy-steps span {
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
}

.policy-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.policy-scope-grid .scope-card {
  min-height: 0;
}

.policy-scope-grid h2 {
  margin-top: 0;
}

.policy-scope-grid li {
  margin-bottom: 8px;
}

.policy-cta {
  text-align: center;
}

.policy-cta p {
  margin-bottom: 20px;
}

.private-azure-page {
  background: #f7f8fb;
}

.private-hero {
  min-height: calc(86vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.98), rgba(247, 248, 251, 0.76)),
    linear-gradient(135deg, #ffffff 0%, #ecf8f5 48%, #eef3fb 100%);
}

.private-hero-copy {
  max-width: 840px;
}

.private-hero h1 {
  max-width: 840px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
}

.private-hero-card {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.14);
}

.private-hero-card ul,
.install-steps ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.private-hero-card li {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  background: #fbfcfe;
  font-weight: 700;
}

.private-mode-grid,
.security-detail-grid,
.private-faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.security-detail-grid,
.private-faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.private-mode-grid article,
.security-detail-grid article,
.private-faq-grid article,
.install-steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.private-mode-grid article {
  min-height: 230px;
}

.private-mode-grid span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 900;
}

.private-mode-grid h3,
.security-detail-grid h3,
.private-faq-grid h3,
.install-steps h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.private-mode-grid p,
.security-detail-grid p,
.private-faq-grid p,
.install-steps p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.private-flow-section {
  background: #111827;
}

.private-flow-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.private-flow-panel h2,
.private-flow-panel p {
  color: #f8fafc;
}

.private-flow-panel p {
  color: #cbd5e1;
}

.private-architecture {
  display: grid;
  gap: 12px;
}

.private-architecture div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.private-architecture strong,
.private-architecture span {
  display: block;
}

.private-architecture strong {
  color: #ffffff;
  font-size: 18px;
}

.private-architecture span {
  margin-top: 7px;
  color: #cbd5e1;
  line-height: 1.45;
}

.install-section,
.private-faq-section {
  background: #ffffff;
}

.install-steps {
  display: grid;
  gap: 14px;
}

.install-steps article {
  min-height: 0;
}

.install-steps pre {
  overflow-x: auto;
  margin: 14px 0 0;
  border-radius: 8px;
  padding: 14px;
  color: #dbeafe;
  background: #0f172a;
  font-size: 13px;
  line-height: 1.5;
}

.install-steps code,
.section-heading code,
.security-detail-grid code {
  font-family: Consolas, "Courier New", monospace;
}

.section-heading code,
.security-detail-grid code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.92em;
}

.security-detail-section {
  background: #eef3fb;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    padding: 16px;
  }

  .top-nav-shell .sidebar {
    display: none;
  }

  .app-top-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .app-top-brand {
    min-width: 0;
  }

  .top-nav-tabs {
    width: 100%;
    padding-bottom: 3px;
  }

  .nav-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-foot {
    display: none;
  }

  .app-legal-footer {
    margin-left: 0;
  }

  .policy-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-nav nav {
    justify-content: flex-start;
  }

  .workspace {
    padding: 18px;
  }

  .topbar,
  .control-row,
  .mode-switch-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar,
  .topbar-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .segmented-control {
    width: 100%;
  }

  .segment-button {
    flex: 1;
  }

  select {
    min-width: 100%;
    width: 100%;
  }

  .analysis-grid,
  .test-work-item-row,
  .workbench-grid,
  .split-layout,
  .evidence-grid,
  .rbt-summary-grid,
  .rbt-layout,
  .rbt-item-grid,
  .connector-grid,
  .security-mode-grid,
  .summary-page-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .rbt-toolbar {
    grid-template-columns: 1fr;
  }

  .security-review {
    grid-template-columns: 1fr;
  }

  .project-summary-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .security-facts {
    justify-content: flex-start;
  }

  .connector-hero {
    flex-direction: column;
  }

  .landing-nav {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .landing-nav nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .landing-nav-actions {
    margin-left: auto;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-product {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: 34px;
    transform: none;
  }

  .landing-hero::after {
    display: none;
  }

  .hero-metrics,
  .proof-grid,
  .role-grid,
  .before-after-grid,
  .pilot-grid,
  .faq-list,
  .deletion-commitments,
  .policy-scope-grid,
  .value-section,
  .workflow,
  .trust-panel,
  .demo-request-section,
  .private-cloud-panel,
  .private-hero,
  .private-mode-grid,
  .private-flow-panel,
  .security-detail-grid,
  .private-faq-grid {
    grid-template-columns: 1fr;
  }

  .brain-grid {
    grid-template-columns: 1fr;
  }

  .brain-main {
    grid-row: auto;
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .landing-brand {
    min-width: 0;
  }

  .landing-nav-actions {
    order: 2;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .nav-cta,
  .try-kontexiq-link,
  .watch-demo-link {
    flex: 1 1 auto;
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions,
  .hero-primary,
  .hero-secondary,
  .hero-demo-callout {
    width: 100%;
  }

  .demo-form {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .context-map {
    height: 250px;
  }

  .node {
    width: 76px;
    font-size: 12px;
  }
}
