:root {
  --ground: #F7FAFB;
  --surface: #ffffff;
  --sunken: #EEF3F5;
  --ink: #142830;
  --ink-2: #34474F;
  --muted: #4D5E65;
  --line: #D4DEE3;
  --line-strong: #BCCAD1;
  --brand: #008FCB;
  --primary: #00769D;
  --primary-hover: #005F7D;
  --primary-tint: #F1FAFD;
  --primary-tint-strong: #D8F1FA;
  --primary-ink: #00769D;
  --primary-ink-hover: #005F7D;
  --on-primary: #ffffff;
  --matcha: #A6C84C;
  --warn-bg: #F6EBCB;
  --warn-ink: #7B6223;
  --warn-line: #E7D39B;
  --ok-bg: #F3F8E7;
  --ok-ink: #4F6922;
  --bad-bg: #F9E1DD;
  --bad-ink: #9C4034;
  --bad-line: #EDBDB5;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --radius-s: 0.5rem;
  --radius: 0.75rem;
  --radius-l: 1rem;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --wrap: 72rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B1A20;
    --surface: #142830;
    --sunken: #1F333B;
    --ink: #F7FAFB;
    --ink-2: #BCCAD1;
    --muted: #8E9DA4;
    --line: #1F333B;
    --line-strong: #34474F;
    --primary-tint: rgba(0, 143, 203, 0.14);
    --primary-tint-strong: rgba(0, 143, 203, 0.22);
    --primary-ink: #55C4EA;
    --primary-ink-hover: #8BDCF4;
    --warn-bg: rgba(249, 115, 22, 0.15);
    --warn-ink: #FB923C;
    --warn-line: rgba(249, 115, 22, 0.3);
    --ok-bg: rgba(34, 197, 94, 0.15);
    --ok-ink: #4ADE80;
    --bad-bg: rgba(239, 68, 68, 0.15);
    --bad-ink: #F87171;
    --bad-line: rgba(239, 68, 68, 0.35);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--primary-ink-hover); }
code { font-family: var(--mono); font-size: 0.9em; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

[hidden] { display: none !important; }

.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;
}

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--primary); color: var(--on-primary); padding: 0.5rem 0.9rem; border-radius: var(--radius-s);
}
.skip:focus { top: 1rem; color: var(--on-primary); }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) { .wrap { padding-inline: 2rem; } }

.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */

.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.wordmark { font-size: 1.3125rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--brand); white-space: nowrap; }
.wordmark-dot { color: var(--matcha); }
.wordmark-suffix { font-weight: 400; }
.brand-sub { font-size: 0.875rem; color: var(--muted); padding-left: 0.75rem; border-left: 1px solid var(--line-strong); line-height: 1.2; }
.top-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.top-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 0.4rem 0.6rem; border-radius: var(--radius-s);
}
.top-nav a:hover { background: var(--sunken); color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.top-nav + .top-actions { margin-left: 0.5rem; }

@media (max-width: 960px) {
  .top-nav { display: none; }
  .top-nav + .top-actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0.5rem 1rem;
  border-radius: var(--radius-s); border: 1px solid transparent;
  font-size: 0.875rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--sunken); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--primary-ink); padding-inline: 0.5rem; }
.btn-quiet:hover { background: var(--primary-tint); color: var(--primary-ink-hover); }
.btn-small { min-height: 2rem; padding: 0.3rem 0.75rem; font-size: 0.8125rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::before {
  content: ""; width: 0.95em; height: 0.95em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.linkish { background: none; border: 0; padding: 0; color: var(--primary-ink); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; font-size: 0.875rem; }
.linkish:hover { color: var(--primary-ink-hover); }
.linkish[disabled] { color: var(--muted); text-decoration: none; cursor: default; }

/* Badges */

.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 500; line-height: 1;
  padding: 0.3rem 0.55rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge .icon { width: 0.85rem; height: 0.85rem; }
.badge-public { background: var(--ok-bg); color: var(--ok-ink); }
.badge-nda { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.badge-brand { background: var(--primary-tint-strong); color: var(--primary-ink); }

/* Home: hero */

.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 700;
  max-width: 17ch;
}
.hero-lead { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }

.ledger {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.ledger-head h2 { font-size: 1rem; font-weight: 600; }
.ledger-head p { font-size: 0.8125rem; color: var(--muted); }
.ledger-row { display: grid; gap: 0.2rem; padding: 0.9rem 1.25rem; }
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }
.ledger-row dt { font-weight: 600; font-size: 0.9375rem; }
.ledger-row dd { font-size: 0.875rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Sections with an index column */

.section { padding-block: clamp(3rem, 7vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.section-head { align-self: start; position: sticky; top: 5.5rem; }
.section-head h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.section-head p { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
  .section-head { position: static; }
}

/* Regulations */

.frameworks { display: grid; }
.framework { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.framework:first-child { border-top: 0; padding-top: 0; }
.framework:last-child { padding-bottom: 0; }
.framework-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.framework h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.framework .cite { margin-top: 0.2rem; font-size: 0.8125rem; color: var(--muted); }
.framework p { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-2); max-width: 46rem; }
.framework dl { margin-top: 0.9rem; display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.35rem 1rem; font-size: 0.875rem; max-width: 46rem; }
.framework dt { color: var(--muted); }
.framework dd { color: var(--ink-2); }
@media (max-width: 480px) {
  .framework dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .framework dd + dt { margin-top: 0.5rem; }
}

/* FAQ */

.disclosure { border-top: 1px solid var(--line); }
.disclosure:last-child { border-bottom: 1px solid var(--line); }
.disclosure summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0.25rem; cursor: pointer; list-style: none; font-weight: 500;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-right: 0.3rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform 150ms ease;
}
.disclosure[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.disclosure summary:hover { color: var(--primary-ink); }
.disclosure-body { padding: 0 0.25rem 1.25rem; color: var(--ink-2); font-size: 0.9375rem; max-width: 46rem; }
.ticks li { position: relative; padding-left: 1.4rem; }
.ticks li + li { margin-top: 0.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.6em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brand); }

/* Documents */

.doc-legend { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-bottom: 1.75rem; font-size: 0.875rem; color: var(--muted); }
.doc-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.doc-group + .doc-group { margin-top: 2rem; }
.doc-group h3 { font-size: 0.875rem; font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }
.docs { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.doc { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 7.5rem; gap: 0.25rem 1rem; align-items: start; padding: 1rem 1.25rem; }
.doc + .doc { border-top: 1px solid var(--line); }
.doc-icon { width: 2.25rem; height: 2.75rem; border-radius: 4px 9px 4px 4px; display: grid; place-items: center; background: var(--sunken); color: var(--muted); }
.doc-icon.is-open { background: var(--primary-tint-strong); color: var(--primary-ink); }
.doc-icon .icon { width: 1.05rem; height: 1.05rem; }
.doc-title { display: flex; align-items: center; gap: 0.35rem 0.6rem; flex-wrap: wrap; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.doc-summary { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-2); max-width: 44rem; }
.doc-meta { margin-top: 0.3rem; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-action { align-self: center; }
.doc-action .btn { width: 100%; }
@media (max-width: 640px) {
  .doc { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .doc-action { grid-column: 2; margin-top: 0.6rem; }
  .doc-action .btn { width: auto; }
}

/* Tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; }
table.data td { color: var(--ink-2); }
table.data thead th { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); background: var(--sunken); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data tbody tr + tr td, table.data tbody tr + tr th { border-top: 1px solid var(--line); }
table.data tbody th { font-weight: 600; }
table.data .sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.8125rem; margin-top: 0.15rem; }
.row-link { color: var(--ink); text-decoration: none; }
.row-link:hover, .row-link:focus-visible {
  color: var(--primary-ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, var(--primary-ink) 35%, transparent);
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack th { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tbody tr + tr { border-top: 1px solid var(--line); }
  table.stack tbody tr + tr td, table.stack tbody tr + tr th { border-top: 0; }
  table.stack td, table.stack th { padding: 0.25rem 1rem; }
  table.stack tr { padding-block: 0.75rem; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem; }
}

.prose-note { font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 1.25rem; max-width: 46rem; }

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.contact-item dt { font-size: 0.8125rem; color: var(--muted); }
.contact-item dd { margin-top: 0.35rem; }
.contact-email { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.contact-email:hover { text-decoration: underline; }
@media (max-width: 700px) { .contact { grid-template-columns: 1fr; } }

.foot { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: 0.8125rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }

/* Notices */

.notice { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: var(--radius-s); font-size: 0.875rem; border: 1px solid var(--line); background: var(--sunken); color: var(--ink-2); }
.notice .icon { margin-top: 0.15rem; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.notice-error { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.notice-info { background: var(--primary-tint); border-color: var(--primary-tint-strong); color: var(--primary-ink); }
.notice a { color: inherit; }
.notice:empty { display: none; }

/* Forms */

.field + .field { margin-top: 1.1rem; }
.field label, .field .label { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: 0.8125rem; color: var(--muted); margin-top: 0.35rem; }
.field .err { font-size: 0.8125rem; color: var(--bad-ink); margin-top: 0.35rem; display: flex; gap: 0.35rem; align-items: center; }
.field .err:empty { display: none; }
.input {
  display: block; width: 100%; min-height: 2.75rem; padding: 0.6rem 0.8rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  font-size: 1rem; line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input::placeholder { color: var(--muted); opacity: 0.8; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.input[aria-invalid="true"] { border-color: var(--bad-ink); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad-ink) 20%, transparent); }
textarea.input { min-height: 5.5rem; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.15rem, calc(100% - 0.8rem) 1.15rem;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
.field .check { display: flex; flex-wrap: nowrap; gap: 0.65rem; align-items: flex-start; margin: 0; font-size: 0.9375rem; font-weight: 400; line-height: 1.45; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; margin: 0.12rem 0 0; accent-color: var(--primary); flex: none; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.5rem; }
.field .check + .check { margin-top: 0.5rem; }
.input-code { font-size: 1.6rem; letter-spacing: 0.5em; font-variant-numeric: tabular-nums; text-align: center; padding-left: 1.3rem; font-weight: 600; font-family: var(--mono); }

/* NDA request steps */

.focus-page { padding-block: clamp(2rem, 6vw, 4.5rem); }
.focus-col { max-width: 34rem; margin-inline: auto; }
.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; margin-bottom: 2rem; }
.stepper li { font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.stepper li::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 0.55rem; transition: background-color 300ms ease; }
.stepper li.done::before, .stepper li[aria-current="step"]::before { background: var(--primary); }
.stepper li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.stepper li.done { color: var(--ink-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 2rem); }
.panel h1 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.panel .lead { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.9375rem; }
.panel form, .panel .body { margin-top: 1.5rem; }
.panel .actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.panel .notice { margin-top: 1.25rem; }
.panel .aside { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }
.panel > .ticks { margin-top: 0.75rem; }
.panel-enter { animation: panel-in 260ms ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-mark { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.25rem; }
.result-mark .icon { width: 1.5rem; height: 1.5rem; }
.result-ok { background: var(--ok-bg); color: var(--ok-ink); }
.result-wait { background: var(--warn-bg); color: var(--warn-ink); }
.result-neutral { background: var(--sunken); color: var(--muted); }
.nda-summary { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1rem 1.1rem; font-size: 0.875rem; color: var(--ink-2); }
.nda-summary .ticks { margin-top: 0.5rem; }
.who { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

h1[tabindex="-1"]:focus { outline: none; }
