/* CheckmateAI marketing site. Self-hosted fonts only. No inline styles. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

:root {
  --bg: #0a0a0c;
  --bg-raised: #121216;
  --bg-inset: #0e0e11;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f6;
  --soft: #c8c8d1;
  --muted: #a9a9b3;
  --accent: #e11d42;
  --header-h: 4.5rem;
  --measure: 68ch;
  --page: 72rem;
  --font: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", menlo, consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.875rem;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
.poster {
  text-wrap: balance;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(10, 10, 12, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-bar {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  justify-self: start;
}

.brand img {
  width: auto;
  height: 2rem;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.nav-bar .nav-left,
.nav-bar .nav-right {
  display: none;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-group a:not(.button) {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-group a:not(.button):hover {
  color: #fff;
}

.nav-toggle {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.25rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: auto;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .button {
  margin-top: 1.25rem;
  align-self: flex-start;
}

body.nav-open {
  overflow: hidden;
}

/* Actions */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.15rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.08);
}

.button-inverse {
  background: #fff;
  color: #0a0a0c;
}

.button-inverse:hover {
  filter: none;
  background: #f3f3f4;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.arrow-link .arrow {
  width: 0.95rem;
  height: 0.95rem;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.arrow-link:hover .arrow {
  transform: translateX(4px);
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero h1 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2.8rem, 7vw, 6.15rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.042em;
}

.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  margin-top: 2rem;
}

/* Product stage */

.stage {
  margin: 3.5rem 0 0;
}

.console {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.console-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #101013;
}

.console-id {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.console-scenario {
  color: var(--soft);
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
}

.panes {
  display: grid;
  grid-template-columns: 1fr;
}

.pane {
  padding: 1.15rem 1rem 1.25rem;
}

.pane + .pane {
  border-top: 1px solid var(--line);
}

.pane-kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.pane-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-hold {
  color: #ff8b9c;
}

.inject-kicker {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inject-title {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.inject-body {
  margin: 0;
  color: var(--soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.facilitator-note {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  background: var(--bg-inset);
  border-left: 2px solid var(--accent);
}

.note-kicker {
  margin: 0 0 0.3rem;
  color: #ff8b9c;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facilitator-note p:last-child {
  margin: 0;
  color: var(--soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.pane-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
}

.mini-btn-accent {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.choice-label {
  margin: 1rem 0 0.45rem;
}

.choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.choices li {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.875rem;
}

.choices .is-selected {
  border-color: transparent;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.ledger {
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: #0d0d10;
}

.ledger-kicker {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ledger ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ledger li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.8125rem;
}

.ledger time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.75rem;
}

.stage figcaption {
  margin-top: 0.85rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Poster interstitial */

.interstitial {
  min-height: 70vh;
  display: grid;
  align-items: center;
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.poster {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.038em;
}

/* Sections */

.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.036em;
}

.section-lead {
  max-width: 40rem;
  margin: 1.1rem 0 0;
  color: var(--soft);
  font-size: 1.0625rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
}

.step,
.audience {
  padding: 1.35rem 1.2rem 1.4rem;
  background: transparent;
  border: 1px solid var(--line);
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.25rem;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon circle {
  fill: currentColor;
  stroke: none;
}

.step h3,
.audience h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.step p,
.audience p {
  margin: 0.7rem 0 0;
  color: var(--soft);
  font-size: 0.975rem;
}

.audience-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
}

.audience-tag {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Security */

.sec-list {
  margin: 2.75rem 0 0;
  padding: 0;
}

.sec-list > div {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.sec-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.sec-list dt {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sec-list dd {
  margin: 0;
  color: var(--soft);
  font-size: 0.975rem;
}

/* Compliance */

.compliance {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.compliance-line {
  margin: 0;
  max-width: 22em;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.compliance-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Final CTA */

.cta-section {
  padding: 1rem 0 5.5rem;
}

.cta-card {
  padding: 2.5rem 1.4rem;
  background: var(--accent);
  color: #fff;
}

.cta-card .eyebrow {
  color: #fff;
}

.cta-card h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.cta-card .button {
  margin-top: 1.75rem;
}

/* FAQ */

.faq {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
  padding: 1rem 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: #ff8b9c;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0;
  padding: 0 0 1.25rem;
  max-width: 68ch;
  color: var(--soft);
}

/* Footer */

.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
}

.footer-brand .brand {
  padding-left: 0;
}

.descriptor {
  max-width: 32ch;
  margin: 0.9rem 0 0;
  color: var(--soft);
  font-size: 0.95rem;
}

.footer-label {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-line {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Legal pages */

.legal-hero {
  padding: 4.25rem 0 2rem;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.legal-updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-body {
  padding-bottom: 5rem;
  max-width: var(--measure);
}

.legal-body h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal-body p,
.legal-body li {
  color: var(--soft);
  font-size: 1.02rem;
  overflow-wrap: break-word;
}

.legal-body ul,
.legal-body ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--soft);
}

.legal-body li + li {
  margin-top: 0.35rem;
}

#platform,
#security,
#who,
#resources,
#company,
#evidence {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

/* Reveal — content stays visible without JS and when motion is reduced */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .steps .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.js .steps .reveal:nth-child(3) {
  transition-delay: 160ms;
}

@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

@media (min-width: 720px) {
  .wrap {
    width: min(var(--page), calc(100% - 4rem));
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .pane + .pane {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .sec-list > div {
    grid-template-columns: 14rem 1fr;
    gap: 2rem;
    align-items: baseline;
    padding: 1.35rem 0;
  }

  .cta-card {
    padding: 4rem 3.5rem;
  }

  .compliance {
    padding: 5.5rem 0;
  }
}

@media (min-width: 900px) {
  .nav-bar {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-bar .nav-left,
  .nav-bar .nav-right {
    display: flex;
  }

  .nav-left {
    grid-column: 1;
    justify-self: start;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .nav-right {
    grid-column: 3;
    justify-self: end;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero {
    padding: 6.5rem 0 4.5rem;
  }

  .audience-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}
