/* Self-hosted fonts (SIL OFL 1.1, licences in /fonts). Latin subset, only the weights used. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

/* DataRoom UI tokens (from tokens.json). Light is the default; dark follows the OS setting. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --line: #dbe0e8;
  --line-strong: #7c8696;
  --ink: #141b2b;
  --ink-2: #475163;
  --ink-3: #5d6778;
  --primary: #1d3a6b;
  --primary-hover: #16305a;
  --on-primary: #ffffff;
  --primary-soft: #e6ecf6;
  --primary-ink: #1d3a6b;
  --brass: #7d5812;
  --brass-soft: #f6eedc;
  --focus: #2f63d0;
  --st-filed-bg: #eef1f5;
  --st-filed-fg: #374151;
  --st-filed-line: #c9d0db;
  --st-check-bg: #fdf3dc;
  --st-check-fg: #7a4a00;
  --st-check-line: #e2b85a;
  --st-certified-bg: #e3f4ea;
  --st-certified-fg: #17663a;
  --st-certified-line: #a6d8b8;
  --shadow-1: 0 1px 2px rgba(20,27,43,0.06);
  --shadow-2: 0 6px 16px rgba(20,27,43,0.12), 0 1px 3px rgba(20,27,43,0.08);

  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 10px; --radius-pill: 999px;
  --header-h: 56px; --container-max: 1200px; --tap-min: 44px;
  --banner-h: 32px;
  --gutter: var(--space-6);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131c;
    --surface: #151c28;
    --surface-2: #1c2533;
    --line: #2a3445;
    --line-strong: #6b7789;
    --ink: #e8ecf3;
    --ink-2: #b3bccb;
    --ink-3: #98a2b3;
    --primary: #8fb0ec;
    --primary-hover: #a8c2f2;
    --on-primary: #0e1a33;
    --primary-soft: #1c2a44;
    --primary-ink: #a9c3f3;
    --brass: #d9b36a;
    --brass-soft: #2e2615;
    --focus: #7aa2f7;
    --st-filed-bg: #232c3a;
    --st-filed-fg: #c9d1de;
    --st-filed-line: #3a4557;
    --st-check-bg: #33270c;
    --st-check-fg: #f2c66d;
    --st-check-line: #6b5218;
    --st-certified-bg: #10301f;
    --st-certified-fg: #86d8a6;
    --st-certified-line: #245a3a;
    --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-2: 0 6px 16px rgba(0,0,0,0.5);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--banner-h) + var(--space-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  padding-top: var(--banner-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 840px; }
@media (max-width: 767px) { :root { --gutter: var(--space-4); } }

/* Icons: 24-unit grid, 1.75 stroke, currentColor */
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 12px; height: 12px; }

/* Type */
.overline { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.caption { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.lead, .section-lead { font-size: 16px; line-height: 24px; color: var(--ink-2); }
.h3 { display: flex; align-items: center; gap: var(--space-2); font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.h3 .i { color: var(--primary-ink); }
.section-title { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.01em; }

/* Draft banner */
.draft-banner {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--banner-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--st-check-bg); color: var(--st-check-fg);
  border-bottom: 1px solid var(--st-check-line);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.dr-brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); color: var(--ink); text-decoration: none; border-radius: var(--radius-md); }
.dr-brand-tile { width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--brass); flex: none; }
.dr-brand-tile-sm { width: 20px; height: 20px; }
.dr-brand-name { font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: -0.005em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: 40px; padding: 0 var(--space-4);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font: 600 14px/20px var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 120ms, color 120ms, border-color 120ms;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-block { width: 100%; min-height: var(--tap-min); }
.btn:disabled { cursor: not-allowed; background: var(--surface-2); color: var(--ink-2); border-color: var(--line-strong); }
@media (max-width: 767px) { .btn { min-height: var(--tap-min); } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }

/* Hero */
.hero { padding: var(--space-8) 0 var(--space-12); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 44px; letter-spacing: -0.015em; text-wrap: balance; }
.hero-copy .lead { max-width: 60ch; }
.hero-visual { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-6); }

/* Form */
.access-form { margin-top: var(--space-2); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); box-shadow: var(--shadow-2); }
.form-title { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink); }
.optional { color: var(--ink-3); font-weight: 400; }
.field input, .field select {
  width: 100%; min-height: 40px; padding: 0 var(--space-3);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  font: 400 14px/20px var(--sans);
}
.field select { appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; }
.field input:disabled, .field select:disabled { background-color: var(--surface-2); color: var(--ink-2); cursor: not-allowed; }
.form-status { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary-ink); font-weight: 500; }
.privacy-note { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Product mock (illustration) */
.mock { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.mock-head { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.mock-room { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 28px; }
.mock-list { display: flex; flex-direction: column; gap: var(--space-2); }
.mock-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: start;
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-2);
}
.mock-row > .i { margin-top: 2px; color: var(--ink-2); }
.mock-body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.mock-file { font-weight: 600; }
.mock-file .caption { font-weight: 400; margin-left: var(--space-1); }
.filing-path { display: flex; align-items: flex-start; gap: var(--space-1); font-size: 12px; line-height: 16px; color: var(--ink-2); }
.filing-path .i { margin-top: 2px; }

.mock-foot { display: flex; align-items: flex-start; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--ink-2); }
.mock-foot .i { margin-top: 2px; color: var(--st-check-fg); }
.mock-cert { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); color: var(--ink-2); }

/* Status chips: word + icon + colour */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-1); white-space: nowrap;
  padding: 2px var(--space-2); border-radius: var(--radius-pill); border: 1px solid;
  font-size: 12px; line-height: 16px; font-weight: 600;
}
.chip .i { width: 12px; height: 12px; }
.chip-filed { background: var(--st-filed-bg); color: var(--st-filed-fg); border-color: var(--st-filed-line); }
.chip-check { background: var(--st-check-bg); color: var(--st-check-fg); border-color: var(--st-check-line); }
.chip-certified { background: var(--st-certified-bg); color: var(--st-certified-fg); border-color: var(--st-certified-line); }

/* Sections */
.section { padding: var(--space-12) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section .container > .section-title + * { margin-top: var(--space-6); }
.section .container > .section-title + .section-lead { margin-top: var(--space-2); }
.section-lead + * { margin-top: var(--space-6); }
.section-lead { max-width: 64ch; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); counter-reset: none; }
.step { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.step p { color: var(--ink-2); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; margin-bottom: var(--space-2); }

/* Benefits: a ruled list, outcome on the left, how on the right */
.benefits { border-top: 1px solid var(--line); }
.benefit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2) var(--space-8); padding: var(--space-6) 0; border-bottom: 1px solid var(--line); }
.benefit p { color: var(--ink-2); font-size: 16px; line-height: 24px; max-width: 62ch; }

/* Deal stepper */
.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
.stepper-step { position: relative; display: flex; flex-direction: column; gap: var(--space-3); }
.stepper-step:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; left: 40px; right: calc(-1 * var(--space-4) + 8px);
  height: 2px; background: var(--line);
}
.stepper-dot { flex: none;
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); font-weight: 600;
}
.stepper-label { font-weight: 600; font-size: 16px; line-height: 24px; }
.stepper-text { color: var(--ink-2); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.role { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.role p { color: var(--ink-2); }
.role .role-descriptor { color: var(--ink); font-weight: 500; }

/* Security */
.security { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); }
.sec-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); }
.sec-item > .i { width: 20px; height: 20px; margin-top: 2px; color: var(--primary-ink); }
.sec-item .h3 { margin-bottom: var(--space-1); }
.sec-item p { color: var(--ink-2); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: var(--tap-min); padding: var(--space-3) 0; cursor: pointer; list-style: none;
  font-size: 16px; line-height: 24px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-right: 1.75px solid var(--ink-2); border-bottom: 1.75px solid var(--ink-2);
  transform: rotate(45deg); transition: transform 120ms;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 var(--space-4); max-width: 68ch; color: var(--ink-2); font-size: 16px; line-height: 24px; }

/* Closing */
.closing-inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.section .closing-inner > .section-title + .section-lead { margin-top: 0; }
.closing-inner .section-lead + * { margin-top: 0; }

/* Footer */
.site-footer { padding: var(--space-6) 0 var(--space-8); border-top: 1px solid var(--line); }

/* Thank-you page */
.thanks { padding: var(--space-12) 0; }
.thanks .card { padding: var(--space-8) var(--space-6); max-width: 560px; display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.thanks h1 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.01em; }

/* Breakpoints: 1024, 768, 640 */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .hero-visual { padding-top: 0; max-width: 640px; }
  .steps, .roles { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .security { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hero { padding: var(--space-8) 0; }
  .hero-title { font-size: 30px; line-height: 38px; }
  .section { padding: var(--space-8) 0; }
  .section-title { font-size: 24px; line-height: 32px; }
  .security { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .benefit { grid-template-columns: minmax(0, 1fr); padding: var(--space-4) 0; }
  .stepper { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stepper-step { flex-direction: row; gap: var(--space-4); padding-bottom: var(--space-6); }
  .stepper-step:last-child { padding-bottom: 0; }
  .stepper-step:not(:last-child)::after { top: 40px; bottom: 8px; left: 15px; right: auto; width: 2px; height: auto; }
  .access-form, .mock { padding: var(--space-4); }
}
@media (max-width: 479px) {
  .site-header .btn { white-space: nowrap; padding: 0 var(--space-3); font-size: 13px; }
}
@media (max-width: 639px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .field input, .field select { font-size: 16px; line-height: 24px; min-height: var(--tap-min); }
  .mock-row { grid-template-columns: auto minmax(0, 1fr); }
  .mock-row .chip { grid-column: 2; justify-self: start; }
  .mock-file .caption { display: block; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
