:root {
  color-scheme: light;
  --page: #f8fcff;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: #ffffff;
  --ice: #ecf8ff;
  --ink: #14283b;
  --muted: #64798d;
  --soft: #8ca0b3;
  --line: rgba(31, 108, 153, 0.14);
  --line-strong: rgba(31, 108, 153, 0.24);
  --blue: #10aee8;
  --blue-strong: #0788bf;
  --cyan: #85e3ff;
  --mint: #23cbb2;
  --amber: #ffb76f;
  --shadow: 0 24px 70px rgba(46, 111, 151, 0.14);
  --shadow-strong: 0 34px 90px rgba(46, 111, 151, 0.22);
  --radius: 22px;
  --max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 252, 255, 0.94)),
    url("assets/audit-bg.png") center / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 143, 199, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 143, 199, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 13% 22%, rgba(255, 255, 255, 0.88), transparent 24%),
    radial-gradient(circle at 84% 44%, rgba(114, 225, 255, 0.22), transparent 28%);
  background-size: 104px 104px, 104px 104px, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:where(h1, h2, p, span, strong, em, li, button, input, select) {
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 18px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(31, 108, 153, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
}

.nav {
  width: min(100% - 40px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 220px;
  height: auto;
}

.nav-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav-proof span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 108, 153, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #526b80;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.header-cta,
.button-primary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 136, 191, 0.26);
  border-radius: 14px;
  background: linear-gradient(135deg, #16bdf4, #91eaff);
  color: #092437;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 18px 42px rgba(16, 174, 232, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.header-cta {
  padding: 0 18px;
}

.audit-app {
  min-height: calc(100vh - 76px);
}

.audit-screen {
  position: relative;
  min-height: calc(100svh - 76px);
  padding: 16px 0;
  overflow: hidden;
}

.ambient {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(4px);
}

.ambient-one {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 12%;
  background: radial-gradient(circle, rgba(133, 227, 255, 0.26), transparent 66%);
}

.ambient-two {
  width: 360px;
  height: 360px;
  left: 8%;
  bottom: -160px;
  background: radial-gradient(circle, rgba(35, 203, 178, 0.12), transparent 68%);
}

.screen-grid {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  min-height: calc(100svh - 108px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(300px, 0.82fr) minmax(420px, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "intro selector board"
    "intro diagnosis board";
  gap: 14px;
  align-items: stretch;
}

.intro-panel,
.selector-panel,
.diagnosis-panel,
.ops-board,
.lead-form {
  min-width: 0;
}

.intro-panel {
  grid-area: intro;
  align-self: start;
  padding: 20px 8px 14px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(42px, 4.05vw, 62px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 570px;
  margin-bottom: 28px;
  color: #526c82;
  font-size: clamp(16px, 1.16vw, 18px);
  line-height: 1.42;
}

.operator-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.operator-strip div,
.selector-panel,
.diagnosis-panel,
.lead-form,
.board-shell {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.operator-strip div {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
}

.operator-strip span,
.panel-head span,
.diagnosis-top span,
.protocol-card span,
.form-copy span,
.board-top em,
.queue-item span,
.bubble span,
.next-move span,
.score-column span {
  color: #6d8397;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.operator-strip strong {
  color: #17344c;
  font-size: 16px;
  line-height: 1.12;
}

.selector-panel {
  grid-area: selector;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
}

.panel-head,
.diagnosis-top,
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head strong,
.diagnosis-top strong {
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 900;
}

.answer-stack {
  display: grid;
  gap: 7px;
}

.answer-card {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num copy";
  gap: 4px 12px;
  padding: 10px;
  border: 1px solid rgba(31, 108, 153, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 26px rgba(46, 111, 151, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.answer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 174, 232, 0.22);
}

.answer-card.is-active {
  border-color: rgba(16, 174, 232, 0.42);
  background: linear-gradient(135deg, rgba(232, 249, 255, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: 0 18px 48px rgba(16, 174, 232, 0.15);
}

.answer-card span {
  grid-area: num;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: #edf9ff;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
}

.answer-card strong {
  grid-area: title;
  color: #17344c;
  font-size: 14px;
  line-height: 1.18;
}

.answer-card em {
  grid-area: copy;
  color: #688095;
  font-style: normal;
  font-size: 12px;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.diagnosis-panel {
  grid-area: diagnosis;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.diagnosis-panel h2 {
  margin-bottom: 0;
  color: #14283b;
  font-size: clamp(23px, 1.75vw, 28px);
  line-height: 1.02;
  letter-spacing: 0;
}

.diagnosis-panel p {
  margin-bottom: 0;
  color: #587186;
  font-size: 13px;
  line-height: 1.42;
}

.protocol-card {
  margin-top: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 183, 111, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 246, 234, 0.92), rgba(255, 255, 255, 0.86));
}

.protocol-card ul {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 9px 0 0;
  list-style: none;
}

.protocol-card li {
  position: relative;
  padding-left: 17px;
  color: #354f66;
  font-size: 12px;
  font-weight: 700;
}

.protocol-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
}

.ops-board {
  grid-area: board;
  align-self: center;
  min-height: 100%;
  display: grid;
  align-items: center;
}

.board-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(236, 249, 255, 0.82)),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-strong);
}

.board-shell::before {
  content: "";
  position: absolute;
  inset: 18% -18% -20% 30%;
  background: radial-gradient(circle, rgba(16, 174, 232, 0.15), transparent 62%);
  pointer-events: none;
}

.board-top {
  position: relative;
  z-index: 1;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(31, 108, 153, 0.12);
}

.board-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #a9d8e8;
}

.board-top span:first-child {
  background: var(--amber);
}

.board-top span:nth-child(2) {
  background: var(--mint);
}

.board-top strong {
  margin-right: auto;
  padding-left: 4px;
  color: #17344c;
  font-size: 14px;
  font-weight: 900;
}

.board-top em {
  color: #07866f;
  font-style: normal;
}

.board-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) 94px;
  gap: 10px;
  padding: 12px;
}

.queue-column,
.score-column {
  display: grid;
  gap: 10px;
}

.queue-item,
.score-column div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(31, 108, 153, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.queue-item.is-live {
  border-color: rgba(16, 174, 232, 0.30);
  background: linear-gradient(145deg, #e9faff, #ffffff);
}

.queue-item strong,
.score-column strong {
  color: var(--blue-strong);
  font-size: 25px;
  line-height: 1;
}

.conversation-card {
  min-height: 324px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(31, 108, 153, 0.10);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(242, 251, 255, 0.84)),
    #ffffff;
}

.bubble {
  max-width: 88%;
  padding: 12px;
  border-radius: 19px;
}

.bubble p {
  margin: 5px 0 0;
  color: #213c54;
  font-weight: 900;
  line-height: 1.24;
}

.bubble.fan {
  background: #eef6fb;
}

.bubble.operator {
  justify-self: end;
  border: 1px solid rgba(16, 174, 232, 0.17);
  background: linear-gradient(135deg, #ddf8ff, #ffffff);
}

.next-move {
  padding: 13px;
  border: 1px solid rgba(255, 183, 111, 0.34);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 247, 235, 0.96), rgba(255, 255, 255, 0.88));
}

.next-move strong {
  display: block;
  margin-top: 6px;
  color: #17344c;
  font-size: 19px;
  line-height: 1.12;
}

.route-map {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 12px 12px;
  padding: 10px;
  border: 1px solid rgba(31, 108, 153, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.route-map span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f3fbff;
  color: #29475e;
  font-size: 13px;
  font-weight: 900;
}

.route-map .is-current {
  background: linear-gradient(135deg, #e9fff9, #ffffff);
  outline: 1px solid rgba(35, 203, 178, 0.34);
}

.panel-cta {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 136, 191, 0.24);
  border-radius: 14px;
  background: #ffffff;
  color: var(--blue-strong);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(46, 111, 151, 0.10);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(235, 249, 255, 0.48);
  backdrop-filter: blur(10px);
}

.drawer-backdrop[hidden] {
  display: none;
}

.lead-form {
  position: fixed;
  top: 98px;
  right: max(20px, calc((100vw - var(--max)) / 2));
  z-index: 40;
  width: min(520px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.90);
  opacity: 0;
  pointer-events: none;
  transform: translateX(26px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lead-form.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(31, 108, 153, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #597287;
  font-size: 12px;
  font-weight: 900;
}

.form-copy {
  grid-column: 1 / -1;
  padding-right: 82px;
}

.form-copy span {
  color: var(--blue-strong);
}

.form-copy strong {
  display: block;
  margin-top: 4px;
  color: #17344c;
  font-size: 15px;
  line-height: 1.18;
}

label {
  display: grid;
  gap: 6px;
  color: #4e667a;
  font-size: 12px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(31, 108, 153, 0.14);
  border-radius: 12px;
  background: #ffffff;
  color: #17344c;
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(16, 174, 232, 0.56);
  box-shadow: 0 0 0 3px rgba(16, 174, 232, 0.12);
}

.lead-form .button-primary {
  width: 100%;
  min-height: 40px;
  grid-column: 1 / -1;
  align-self: end;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #587186;
  font-size: 12px;
  font-weight: 800;
}

.form-status a {
  color: var(--blue-strong);
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .nav-proof {
    display: none;
  }

  .audit-screen {
    overflow: visible;
  }

  .screen-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
    grid-template-areas:
      "intro board"
      "selector board"
      "diagnosis board";
  }

  .intro-panel {
    padding-right: 0;
  }

  h1 {
    font-size: clamp(44px, 6vw, 64px);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
  }

  .nav {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 190px;
  }

  .header-cta {
    display: none;
  }

  .audit-screen {
    min-height: 0;
    padding: 24px 0 36px;
  }

  .ambient {
    display: none;
  }

  .screen-grid {
    width: min(100% - 28px, var(--max));
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "selector"
      "diagnosis"
      "board";
    gap: 14px;
  }

  .intro-panel {
    align-self: auto;
    padding: 8px 0 0;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 42px;
    line-height: 1.02;
  }

  .lead {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .operator-strip {
    grid-template-columns: 1fr;
  }

  .operator-strip div {
    min-height: 72px;
  }

  .board-body {
    grid-template-columns: 1fr;
  }

  .queue-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .queue-item,
  .score-column div {
    min-height: 78px;
  }

  .conversation-card {
    min-height: 0;
  }

  .score-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-form {
    top: auto;
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
    grid-template-columns: 1fr;
    max-height: calc(100svh - 28px);
    overflow: auto;
  }
}

@media (max-width: 460px) {
  .nav {
    min-height: 68px;
  }

  .brand img {
    width: 176px;
  }

  h1 {
    font-size: 36px;
  }

  .selector-panel,
  .diagnosis-panel,
  .lead-form {
    padding: 14px;
    border-radius: 18px;
  }

  .answer-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "title"
      "copy";
  }

  .queue-column,
  .score-column {
    grid-template-columns: 1fr;
  }

  .bubble {
    max-width: 100%;
  }
}
