:root {
  color-scheme: light;
  --bg: #f3f5f6;
  --bg-secondary: #e9eef2;
  --surface: #ffffff;
  --surface-raised: #f8fafb;
  --line: #d7dee4;
  --ink: #152028;
  --muted: #5c6974;
  --teal: #11747a;
  --teal-hover: #0b565b;
  --blue: #2567b3;
  --green: #227957;
  --amber: #c9820e;
  --red: #bd382f;
  --neutral: #93a2ad;
  --radius: 8px;
  --shadow: 0 20px 54px rgba(21, 32, 40, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

body,
button,
input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(215, 222, 228, 0.88);
  background: rgba(243, 245, 246, 0.92);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 850;
}

.wordmark-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.site-nav a,
.header-action,
.primary-action,
.secondary-action,
.login-form button,
.session-actions a,
.session-actions button,
.dev-link {
  min-height: 38px;
  border-radius: 7px;
  font-weight: 850;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a:hover {
  background: var(--surface-raised);
  color: var(--ink);
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.header-action:hover {
  border-color: var(--teal);
  color: var(--teal);
}

main {
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-x: clip;
}

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  isolation: isolate;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(243, 245, 246, 0.98) 0%, rgba(243, 245, 246, 0.92) 34%, rgba(243, 245, 246, 0.42) 63%, rgba(243, 245, 246, 0.12) 100%),
    url("./assets/assurance-hero.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 36%;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(243, 245, 246, 0));
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  gap: 28px;
  align-items: center;
  max-width: 1440px;
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  padding: 50px 28px 86px;
}

.hero-copy,
.section-copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p,
dl,
ol,
ul {
  margin: 0;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  font-size: 5.2rem;
  font-weight: 900;
}

h2 {
  color: var(--ink);
  font-size: 3rem;
  font-weight: 880;
}

.hero-lede,
.section-copy p,
.login-heading p,
.signal-strip span,
.closing-band p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-lede {
  max-width: 650px;
  font-size: 1.12rem;
}

.hero-actions,
.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action,
.session-actions a,
.session-actions button,
.dev-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.primary-action {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
}

.primary-action:hover,
.login-form button:hover,
.session-actions a:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.secondary-action:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-steps {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 860px;
  margin-top: 6px;
  padding: 0;
  list-style: none;
}

.hero-steps li {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 9px;
  min-height: 164px;
  padding: 14px;
  border: 1px solid rgba(215, 222, 228, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.hero-steps span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.hero-steps strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.hero-steps small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 32, 40, 0.34);
  backdrop-filter: blur(8px);
}

.login-panel {
  position: relative;
  display: grid;
  width: min(438px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(215, 222, 228, 0.96);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.login-heading {
  display: grid;
  gap: 8px;
}

.login-heading h2 {
  font-size: 1.55rem;
}

.login-heading p {
  font-size: 0.94rem;
}

.login-form {
  display: grid;
  gap: 8px;
}

.login-form label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 13px;
}

.login-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(17, 116, 122, 0.16);
}

.login-form button {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
}

.login-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-status {
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.login-status.success {
  border-color: rgba(34, 121, 87, 0.35);
  background: rgba(34, 121, 87, 0.08);
  color: var(--green);
}

.login-status.error {
  border-color: rgba(189, 56, 47, 0.32);
  background: rgba(189, 56, 47, 0.08);
  color: var(--red);
}

.dev-link {
  border: 1px solid rgba(37, 103, 179, 0.28);
  background: rgba(37, 103, 179, 0.08);
  color: var(--blue);
}

.session-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(34, 121, 87, 0.28);
  border-radius: var(--radius);
  background: rgba(34, 121, 87, 0.08);
}

.session-panel span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.session-panel strong {
  overflow-wrap: anywhere;
}

.session-actions a {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
}

.session-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1440px;
  width: calc(100% - 56px);
  margin: -66px auto 0;
  position: relative;
  z-index: 3;
}

.signal-strip div {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(21, 32, 40, 0.08);
}

.signal-strip strong {
  color: var(--ink);
  font-size: 1rem;
}

.signal-strip span {
  font-size: 0.93rem;
}

.examples-section,
.product-section,
.queue-section,
.trace-section,
.review-section,
.closing-band {
  max-width: 1440px;
  width: calc(100% - 56px);
  margin: 0 auto;
}

.examples-section,
.queue-section,
.command-section,
.trace-section,
.review-section,
.closing-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(21, 32, 40, 0.08);
}

.examples-section {
  display: grid;
  gap: 18px;
  margin-top: -66px;
  padding: 24px;
  position: relative;
  scroll-margin-top: 88px;
  z-index: 3;
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading h2 {
  max-width: 780px;
  font-size: 2rem;
  line-height: 1.12;
}

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

.outcome-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  min-height: 238px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.outcome-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.outcome-head span {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
}

.requirement-line {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.48;
}

.outcome-details {
  display: grid;
  gap: 8px;
}

.outcome-details div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  min-height: 34px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.outcome-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.outcome-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 780;
}

.queue-section {
  display: grid;
  gap: 22px;
  padding: 28px;
  scroll-margin-top: 88px;
}

.command-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
}

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

.command-card {
  display: grid;
  gap: 12px;
  min-height: 182px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.card-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-card strong {
  color: var(--teal);
  font-size: 4.2rem;
  line-height: 1;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6eb;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.finding-list,
.review-card ol {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.finding-list li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-weight: 740;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: var(--red);
}

.dot.amber {
  background: var(--amber);
}

.dot.green {
  background: var(--green);
}

.review-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  color: var(--ink);
}

.review-card li b {
  color: var(--teal);
  font-size: 0.82rem;
}

.matrix-card {
  grid-template-columns: repeat(6, minmax(28px, 1fr));
  align-content: center;
  gap: 8px;
}

.matrix-card .card-label {
  grid-column: 1 / -1;
}

.matrix-card span:not(.card-label) {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #dfe7e8;
  box-shadow: inset 0 0 0 1px rgba(21, 32, 40, 0.05);
}

.matrix-card .warn {
  background: var(--amber);
}

.matrix-card .fail {
  background: var(--red);
}

.trace-section {
  display: grid;
  grid-template-columns: minmax(480px, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.trace-map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #cad5dd;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(17, 116, 122, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(17, 116, 122, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--surface-raised);
}

.trace-map::before,
.trace-map::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber), var(--red));
}

.trace-map::before {
  top: 47%;
  transform: rotate(16deg);
}

.trace-map::after {
  top: 54%;
  transform: rotate(-12deg);
  opacity: 0.55;
}

.trace-node {
  position: absolute;
  display: grid;
  min-width: 132px;
  min-height: 58px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(21, 32, 40, 0.13);
  font-weight: 880;
  text-align: center;
}

.trace-node.root {
  left: 8%;
  top: 18%;
}

.trace-node.goal {
  left: 32%;
  top: 34%;
  background: var(--teal);
  color: #fff;
}

.trace-node.req {
  right: 8%;
  top: 19%;
}

.trace-node.test {
  left: 21%;
  bottom: 16%;
}

.trace-node.gap {
  right: 16%;
  bottom: 18%;
  border-color: rgba(189, 56, 47, 0.2);
  background: var(--red);
  color: #fff;
}

.review-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1.28fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.review-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.55fr) 110px;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.table-row:first-child {
  border-top: 0;
}

.table-row.header {
  min-height: 46px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.table-row span {
  color: var(--muted);
}

.table-row span:first-child {
  color: var(--ink);
  font-weight: 740;
}

.priority {
  justify-self: start;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 0.78rem;
}

.priority.red {
  background: rgba(189, 56, 47, 0.1);
  color: var(--red);
}

.priority.amber {
  background: rgba(201, 130, 14, 0.12);
  color: #8b5a08;
}

.priority.blue {
  background: rgba(37, 103, 179, 0.1);
  color: var(--blue);
}

.closing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
  padding: 28px 34px;
  background:
    linear-gradient(90deg, rgba(17, 116, 122, 0.1), transparent 64%),
    var(--surface);
}

.closing-band h2 {
  margin-top: 8px;
  font-size: 2.15rem;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav {
    display: none;
  }

  .hero-content,
  .command-section,
  .trace-section,
  .review-section {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: start;
    gap: 24px;
    padding-top: 42px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .signal-strip {
    grid-template-columns: 1fr;
    margin-top: -54px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 14px;
  }

  .wordmark {
    min-width: 0;
  }

  .header-action {
    padding: 0 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(243, 245, 246, 0.98) 0%, rgba(243, 245, 246, 0.9) 52%, rgba(243, 245, 246, 0.68) 100%),
      url("./assets/assurance-hero.png");
    background-position: 62% center;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 16px;
    padding: 24px 14px 74px;
  }

  .hero-copy,
  .section-copy {
    gap: 14px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-lede,
  .section-copy p {
    font-size: 0.98rem;
  }

  .hero-steps,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .hero-steps {
    gap: 9px;
  }

  .hero-steps li,
  .hero-steps li:first-child {
    grid-column: auto;
  }

  .hero-steps li {
    min-height: auto;
    padding: 12px;
  }

  .login-panel {
    gap: 12px;
    padding: 16px;
  }

  .login-heading {
    gap: 6px;
  }

  .login-heading h2 {
    font-size: 1.34rem;
  }

  .login-heading p,
  .login-status {
    font-size: 0.88rem;
  }

  .email-row {
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .examples-section,
  .product-section,
  .queue-section,
  .trace-section,
  .review-section,
  .closing-band {
    width: calc(100% - 28px);
  }

  .signal-strip {
    margin-top: -64px;
  }

  .examples-section,
  .command-section,
  .queue-section,
  .trace-section,
  .review-section,
  .closing-band {
    padding: 18px;
  }

  .examples-section {
    margin-top: -58px;
  }

  .section-heading h2 {
    font-size: 1.7rem;
  }

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

  .outcome-card {
    min-height: auto;
  }

  .trace-map {
    min-height: 360px;
  }

  .trace-node {
    min-width: 110px;
    min-height: 52px;
    font-size: 0.82rem;
  }

  .trace-node.root {
    left: 5%;
  }

  .trace-node.goal {
    left: 31%;
  }

  .trace-node.req {
    right: 5%;
  }

  .trace-node.test {
    left: 8%;
  }

  .trace-node.gap {
    right: 8%;
  }

  .review-table {
    overflow-x: auto;
  }

  .table-row {
    grid-template-columns: minmax(220px, 1fr) 150px 110px;
    min-width: 530px;
  }

  .closing-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-band h2 {
    font-size: 1.7rem;
  }
}
