/* Public site stylesheet for /, /docs, /privacy, /terms, and /support.
   Inter is self-hosted (SIL OFL, see /fonts/OFL.txt). No remote fonts or inline styles. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --soft: #eef2f7;
  --link: #0b4f9a;
  --focus: #0052b4;
  --pass: #067647;
  --pass-bg: #e7f6ee;
  --fail: #b42318;
  --fail-bg: #fdecea;
  --blocked: #9a3412;
  --blocked-bg: #fff4e5;
  --idle: #334155;
  --idle-bg: #eef2f6;
  --code-bg: #0f172a;
  --code-ink: #e8eef7;
  --header: 4.25rem;
  --shadow: 0 24px 60px -36px rgba(15, 23, 42, 0.55);
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #111827;
    --ink: #e8eef7;
    --muted: #b7c3d6;
    --line: #243044;
    --soft: #182233;
    --link: #9ec5ff;
    --focus: #9ec5ff;
    --pass: #6ee7b7;
    --pass-bg: #12352c;
    --fail: #fda4a4;
    --fail-bg: #3f1d1d;
    --blocked: #fdba74;
    --blocked-bg: #3b2a14;
    --idle: #cbd5e1;
    --idle-bg: #1e293b;
    --code-bg: #0a101c;
    --code-ink: #e8eef7;
    --shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.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(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #0a8a6e, #0066e0);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.15rem;
}

.nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav a:not(.button):hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #0a8a6e;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #066b58, #0052b4);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 0;
}

.button:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button-ghost:hover {
  background: var(--soft);
  filter: none;
}

.desktop-only {
  display: none;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}

.menu-button::-webkit-details-marker {
  display: none;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.menu {
  position: relative;
}

.mobile-only[open] .nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 50;
  min-width: min(18rem, calc(100vw - 2rem));
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.mobile-only .nav .button {
  margin-top: 0.35rem;
}

@media (min-width: 960px) {
  .desktop-only {
    display: flex;
  }

  .mobile-only {
    display: none;
  }
}

.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 80%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 80%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 20% 0%, #000 15%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #065c4c;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: #7ddec8;
  }
}

h1,
.h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.lede {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 40rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a8a6e, #0066e0);
}

.shot {
  margin: 0;
}

.shot figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #cbd5e1;
}

.dot:nth-child(1) {
  background: #ff5f57;
}

.dot:nth-child(2) {
  background: #febc2e;
}

.dot:nth-child(3) {
  background: #28c840;
}

.window-title {
  margin-left: 0.45rem;
}

.window-body {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  min-height: 18rem;
}

.folders {
  margin: 0;
  padding: 0.75rem;
  list-style: none;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.folders li {
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.folders .is-current {
  background: color-mix(in srgb, #0a8a6e 14%, var(--surface));
  color: var(--ink);
  font-weight: 600;
}

.case-list {
  padding: 0.4rem 0.5rem 0.75rem;
}

.case-head,
.case-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.45rem;
}

.case-head {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.case-head span:last-child {
  justify-self: end;
}

.case-row {
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.case-row:last-child {
  border-bottom: 0;
}

.key {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.case-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  justify-self: end;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill-pass {
  color: var(--pass);
  background: var(--pass-bg);
}

.pill-fail {
  color: var(--fail);
  background: var(--fail-bg);
}

.pill-blocked {
  color: var(--blocked);
  background: var(--blocked-bg);
}

.pill-idle {
  color: var(--idle);
  background: var(--idle-bg);
}

@media (max-width: 640px) {
  .window-body {
    grid-template-columns: 1fr;
  }

  .folders {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .folders li {
    white-space: nowrap;
  }

  .case-title {
    white-space: normal;
  }
}

.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: var(--soft);
}

.section h2,
.cta-band h2,
.page-intro h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.section-lead {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.features {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.25rem 1.35rem;
  min-width: 0;
}

.feature h3,
.steps h3,
.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature p,
.steps p,
.card p {
  margin: 0;
  color: var(--muted);
}

.feature code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--soft);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  min-width: 0;
}

.step-no {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #066b58, #0052b4);
  font-weight: 600;
  font-size: 0.9rem;
}

.security-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .security-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

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

.checklist li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem 0.8rem 2.3rem;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.05rem;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid #0a8a6e;
  border-bottom: 2px solid #0a8a6e;
  transform: rotate(-45deg);
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 600;
}

.cta-band {
  background: #0b1220;
  color: #f8fafc;
  padding: 4.5rem 0;
}

.cta-band p {
  color: #c9d4e5;
  margin: 0.75rem 0 1.25rem;
  max-width: 36rem;
}

@media (prefers-color-scheme: dark) {
  .cta-band {
    background: #101a2e;
    border-block: 1px solid var(--line);
  }
}

.page-intro {
  padding: 3rem 0 0.5rem;
}

.effective {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 500;
}

.docs-shell,
.legal-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 0 4rem;
}

.side {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.side a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
  font-weight: 500;
}

.legal-shell .side {
  flex-direction: column;
  align-items: flex-start;
  overflow: visible;
}

.legal-shell .side a {
  white-space: normal;
}

.side a:hover {
  color: var(--ink);
}

.side-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.toc .sub {
  font-weight: 400;
}

@media (min-width: 960px) {
  .legal-shell {
    display: grid;
    grid-template-columns: 15rem minmax(0, 68ch);
    gap: 2.5rem;
    align-items: start;
  }

  .legal-shell .side {
    position: sticky;
    top: calc(var(--header) + 1.25rem);
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
    gap: 0.35rem;
  }

  .legal-shell .side a {
    white-space: normal;
  }
}

@media (min-width: 1100px) {
  .docs-shell {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 1fr) 12.5rem;
    gap: 2rem;
    align-items: start;
  }

  .docs-shell .sections {
    order: 0;
    position: sticky;
    top: calc(var(--header) + 1.25rem);
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
    gap: 0.35rem;
  }

  .docs-shell .prose {
    order: 0;
    min-width: 0;
  }

  .docs-shell .toc {
    order: 0;
    position: sticky;
    top: calc(var(--header) + 1.25rem);
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
    gap: 0.3rem;
  }

  .docs-shell .side a,
  .docs-shell .toc .sub {
    white-space: normal;
  }

  .docs-shell .toc .sub {
    padding-left: 0.7rem;
  }
}

@media (max-width: 1099px) {
  .docs-shell .toc {
    order: -1;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
  }

  .docs-shell .toc a {
    white-space: normal;
  }

  .docs-shell .sections {
    order: -2;
  }
}

.prose a {
  overflow-wrap: anywhere;
}

.prose {
  min-width: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.prose h2,
.prose h3 {
  scroll-margin-top: calc(var(--header) + 0.75rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.45rem;
}

.prose h2 a,
.prose h3 a {
  color: inherit;
  text-decoration: none;
}

.prose h2 a:hover,
.prose h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.12rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0.7rem 0;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--soft);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

.callout {
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid #0a8a6e;
  border-radius: 12px;
  background: var(--soft);
}

.callout p {
  margin: 0;
}

.codeblock {
  margin: 1.2rem 0;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  background: var(--code-bg);
  color: var(--code-ink);
}

.codeblock figcaption {
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid #243044;
  color: #b7c3d6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.codeblock pre {
  margin: 0;
  padding: 0.95rem 1rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
}

.codeblock code {
  font-family: var(--mono);
  background: transparent;
  color: inherit;
  padding: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  line-height: 1.45;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--soft);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.3rem;
  min-width: 0;
}

.card h2 {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.card p + p {
  margin-top: 0.45rem;
}

.faq {
  padding-bottom: 4rem;
}

.faq h2 {
  margin-top: 2.5rem;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2.75rem 0 1.5rem;
}

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

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-grid h2 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-grid a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-base p {
  margin: 0;
}

[id] {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}
