:root {
  --ink: #14181f;
  --ink-2: #4a5160;
  --ink-3: #6b7280;
  --navy: #101a30;
  --navy-hover: #1d2a47;
  --line: #e6e8ec;
  --line-strong: #d3d7de;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --link: #1e4fd7;
  --pass: #15803d;
  --pass-bg: #e8f5ec;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink-3);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

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

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}

.brand-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.link-quiet {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.lede {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 18px;
  color: var(--ink-2);
}

.hero-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.check {
  flex: none;
  width: 20px;
  height: 20px;
}

.check circle {
  fill: var(--pass-bg);
}

.check path {
  fill: none;
  stroke: var(--pass);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 24px;
  width: 344px;
  max-width: 100%;
}

/* Preserve the original artwork and proportions in every placement. */
.badge {
  display: block;
  width: 160px;
  max-width: 100%;
  min-width: 0;
}

.badge img {
  display: block;
  width: 100%;
  height: auto;
  /* Keep the white shield edges visible against the white page. */
  filter: drop-shadow(0 1px 2px rgba(16, 26, 48, 0.14));
}

.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid #cce5d4;
  border-radius: 6px;
  background: var(--pass-bg);
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.count::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask: url("/assets/check.svg") center / contain no-repeat;
  mask: url("/assets/check.svg") center / contain no-repeat;
}

/* Layout */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
}

.sidenav {
  position: sticky;
  top: 72px;
  align-self: start;
  padding-top: 56px;
}

.sidenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.sidenav a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}

.sidenav a:hover {
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

.sidenav a[aria-current="true"] {
  background: var(--surface-2);
  color: var(--ink);
}

.sidenav-meta {
  margin-top: 20px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink-3);
}

main {
  min-width: 0;
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.section-intro {
  margin-top: 8px;
  max-width: 68ch;
  color: var(--ink-2);
}

.section-intro strong {
  color: var(--ink);
}

/* Compliance */
.frameworks {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.framework {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.framework > .badge {
  width: 128px;
  align-self: start;
}

.framework h3 {
  font-size: 20px;
  font-weight: 700;
}

.framework-body > p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15px;
}

.facts {
  margin: 16px 0 20px;
  display: grid;
  gap: 10px;
}

.facts div {
  display: grid;
  gap: 1px;
}

.facts dt {
  font-size: 13px;
  color: var(--ink-3);
}

.facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.assurance {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.assurance h3 {
  font-size: 18px;
  font-weight: 700;
}

.assurance p {
  margin-top: 6px;
  max-width: 64ch;
  color: var(--ink-2);
  font-size: 15px;
}

/* Documents */
.doc-groups {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.doc-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.doc-group h3 {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.docs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.docs li:first-child {
  border-top: 0;
}

.doc-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.doc-name::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background-color: var(--ink-3);
  -webkit-mask: url("/assets/lock.svg") center / contain no-repeat;
  mask: url("/assets/lock.svg") center / contain no-repeat;
}

.docs a {
  flex: none;
  font-size: 14px;
  font-weight: 600;
}

/* Controls */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.search {
  position: relative;
  flex: none;
  width: 260px;
}

.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
}

.search input:focus {
  outline: 2px solid var(--link);
  outline-offset: 0;
  border-color: transparent;
}

.control-summary {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.control-summary a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.control-summary a:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  text-decoration: none;
}

.count {
  flex: none;
  min-width: 52px;
  font-variant-numeric: tabular-nums;
}

.count:empty {
  display: none;
}

.no-results {
  margin-top: 28px;
  color: var(--ink-2);
}

.control-group {
  margin-top: 36px;
}

.control-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.controls {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.controls li {
  position: relative;
  padding: 16px 20px 16px 52px;
  /* Right and bottom hairlines; the list's own border hides the outer edges. */
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}

.controls li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pass-bg) url("/assets/check-green.svg") center / 12px no-repeat;
}

.controls h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.controls p {
  margin-top: 3px;
  font-size: 14px;
  color: var(--ink-2);
}

.controls li[hidden] {
  display: none;
}

/* Subprocessors */
.table-wrap {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.subprocessors {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.subprocessors th {
  text-align: left;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.subprocessors td {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.subprocessors tbody tr:first-child td {
  border-top: 0;
}

.subprocessors td:first-child {
  font-weight: 600;
  white-space: nowrap;
  width: 34%;
}

.subprocessors td:last-child {
  color: var(--ink-2);
}

/* FAQ */
.faq {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq details p {
  padding: 0 0 20px;
  max-width: 70ch;
  color: var(--ink-2);
}

/* Contact */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

.footer-inner a {
  color: var(--ink-2);
}

/* Request-access dialog */
.request-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(16, 26, 48, 0.18);
}

.request-dialog::backdrop {
  background: rgba(16, 26, 48, 0.45);
}

.request-form,
.request-done {
  padding: 24px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.request-dialog h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.dialog-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -4px -6px 0 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--surface-2);
}

.dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.dialog-lede,
.request-done p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

.optional {
  font-weight: 400;
  color: var(--ink-3);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--link);
  outline-offset: 0;
  border-color: transparent;
}

.field [aria-invalid="true"] {
  border-color: #b42318;
}

.field-error {
  font-size: 13px;
  font-weight: 400;
  color: #b42318;
}

.field-error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

.check-field input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}

.check-field + .field-error {
  display: block;
  margin: 6px 0 0 26px;
}

.check-field + .field-error:empty {
  display: none;
}

.form-error {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fef3f2;
  color: #b42318;
  font-size: 14px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Standalone pages: approval and the requester's documents page */
.narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.narrow h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.page-lede {
  margin-top: 12px;
  max-width: 64ch;
  font-size: 17px;
  color: var(--ink-2);
}

.page-lede strong {
  color: var(--ink);
}

.page-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-3);
}

.narrow form {
  margin-top: 28px;
}

.request-facts {
  margin: 28px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bulk {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bulk h2 {
  font-size: 18px;
  font-weight: 700;
}

.bulk p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 15px;
}

.bulk[hidden] {
  display: none;
}

.doc-picker {
  margin: 28px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.doc-picker legend {
  padding: 0 6px;
  margin-left: -6px;
  font-size: 15px;
  font-weight: 600;
}

.doc-picker-hint {
  font-size: 14px;
  color: var(--ink-3);
}

.doc-picker h3 {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.doc-picker .check-field {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink);
}

.page-actions {
  margin-top: 24px;
}

.notice {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--pass-bg);
  color: var(--pass);
  font-size: 15px;
}

.activity,
.manage-revoke {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.activity h2,
.manage-revoke h2 {
  font-size: 18px;
  font-weight: 700;
}

.activity p,
.manage-revoke p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15px;
}

.activity-list {
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.activity-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.activity-what,
.activity-meta {
  display: block;
}

.activity-what {
  color: var(--ink);
  font-size: 15px;
}

.activity-meta {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.activity-tag {
  margin-left: 6px;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
}

.btn-large {
  padding: 13px 22px;
  font-size: 15px;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-groups {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

.doc-file::before {
  -webkit-mask-image: url("/assets/file.svg");
  mask-image: url("/assets/file.svg");
}

/* Responsive */
@media (max-width: 1080px) {
  .frameworks,
  .doc-groups {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 16px 40px;
    gap: 36px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 16px;
  }

  .sidenav {
    display: none;
  }

  .topbar-inner {
    padding: 12px 16px;
  }

  .link-quiet {
    display: none;
  }

  .controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head,
  .assurance,
  .contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .search {
    width: 100%;
  }

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

  .narrow {
    padding: 36px 16px 56px;
  }

  .footer-inner {
    padding: 20px 16px;
  }
}

@media (max-width: 560px) {
  .brand img {
    height: 22px;
  }

  .brand {
    gap: 10px;
  }

  .brand-label {
    font-size: 14px;
  }

  .topbar .btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .framework {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .control-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .subprocessors td:first-child {
    white-space: normal;
  }
}

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

  * {
    transition: none !important;
  }
}
