/* AIthorize: ink on paper. Typography and rules carry the hierarchy. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 400 560;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --wash: #f4f4f2;
  --muted: #5a5a58;
  --hair: #d6d6d2;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --section: clamp(72px, 10vw, 128px);
  --header: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 440; letter-spacing: -0.015em; }
::selection { background: var(--ink); color: var(--paper); }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font-family: var(--mono); font-size: 13px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* The brand square: the checked box from the logo */
.sq::before {
  content: ""; display: inline-block; width: 0.5em; height: 0.5em;
  background: currentColor; margin-right: 0.6em; transform: translateY(-0.08em);
}

.label {
  font-family: var(--mono); font-size: 12px; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand svg { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }
.btn .arrow { font-family: var(--sans); font-size: 15px; line-height: 1; }

@media (max-width: 880px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; align-items: start; }
.hero-copy { grid-column: 1 / span 7; padding-top: 8px; }
.hero-copy .label { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(2.75rem, 6vw, 5.4rem);
  line-height: 1.0; letter-spacing: -0.03em; font-weight: 450;
  font-variation-settings: "opsz" 72;
  margin-bottom: 32px;
}
.hero h1 em { font-style: italic; font-weight: 420; }
.hero-lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 34em; margin-bottom: 36px; }
.hero-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); max-width: 34em; }
.hero-points li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.hero-points .label { margin: 0; min-width: 2.2em; color: var(--ink); }
.hero-form { grid-column: 8 / span 5; }

@media (max-width: 1000px) {
  .hero-copy, .hero-form { grid-column: 1 / -1; }
  .hero-form { max-width: 560px; }
}

/* ---------- Waitlist form (styled as a request form) ---------- */
.formcard { border: 1px solid var(--ink); background: var(--paper); scroll-margin-top: calc(var(--header) + 24px); }
.formcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--ink); }
.formcard-head .label { color: var(--ink); }
.formcard-body { padding: 24px 20px 22px; }
.formcard h2 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 6px; }
.formcard .sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.field label .opt { color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 8px 0 9px; appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 28px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field input::placeholder { color: #9a9a96; }
.field input:focus, .field select:focus { outline: none; border-bottom-width: 2px; padding-bottom: 8px; }
.field input:focus-visible, .field select:focus-visible { outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field[data-invalid] input { border-bottom-color: var(--ink); border-bottom-style: dashed; }
.field .err { display: none; font-size: 13px; margin-top: 6px; }
.field[data-invalid] .err { display: block; }
.notice { font-size: 13px; color: var(--muted); border-left: 2px solid var(--ink); padding: 2px 0 2px 12px; margin: 6px 0 20px; }
.formcard .btn-solid { width: 100%; min-height: 52px; font-size: 13px; }
.formcard .btn-solid[disabled] { opacity: .6; cursor: progress; }
.fine { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.form-status { font-size: 14px; margin-top: 12px; }
.form-status:empty { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.success h2 { font-size: 2rem; }
.success p { margin-top: 10px; }
.success .label { margin-bottom: 14px; color: var(--ink); }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--ink); padding-block: var(--section); }
.section.wash { background: var(--wash); }
.section-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 24px; }
.section-index { grid-column: 1 / span 3; }
.section-main { grid-column: 4 / span 9; }
.section h2 {
  font-size: clamp(2rem, 3.8vw, 3.35rem); line-height: 1.06; letter-spacing: -0.025em;
  font-variation-settings: "opsz" 60; max-width: 18em; margin-bottom: 20px;
}
.section h2 em { font-style: italic; }
.intro { font-size: 1.125rem; max-width: 38em; color: var(--ink); margin-bottom: 48px; }
@media (max-width: 860px) {
  .section-index, .section-main { grid-column: 1 / -1; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stat { padding: 28px 24px 28px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--hair); }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-weight: 420; font-variant-numeric: lining-nums; }
.stat .num small { font-size: 0.42em; letter-spacing: 0; margin-left: 4px; }
.stat p { margin: 14px 0 0; font-size: 15px; line-height: 1.45; max-width: 15em; }
.source { font-size: 13px; color: var(--muted); margin-top: 16px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--hair); }
.step .label { color: var(--ink); padding-top: 6px; }
.step h3 { font-size: 1.6rem; line-height: 1.15; }
.step p { margin: 0; }
.step .who { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
  .step { grid-template-columns: 48px 1fr; }
  .step p { grid-column: 2; }
}
.callout { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--ink); max-width: 46em; }
.callout p { margin: 0; }

/* Before / after */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; padding: 0 0 12px; border-bottom: 1px solid var(--ink); }
.compare td { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--hair); vertical-align: top; width: 50%; }
.compare td:first-child { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: #b5b5b0; }
.compare td:last-child { padding-right: 0; }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .compare td { display: block; width: auto; border: 0; padding: 2px 0; }
  .compare td::before { content: attr(data-th); display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: 2px; }
  .compare td:first-child::before { display: block; }
}

/* Grid of cells */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--hair); }
.cell { padding: 28px 24px 30px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.cell h3 { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; margin-bottom: 10px; }
.cell p { margin: 0; font-size: 15.5px; color: #2a2a28; }
@media (max-width: 960px) { .cells { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cells { grid-template-columns: 1fr; } }

/* Specialty and role lists */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.rows h3 { font-size: 1.45rem; line-height: 1.2; }
.rows p { margin: 0; }
@media (max-width: 700px) { .rows li { grid-template-columns: 1fr; gap: 6px; } }
.lead-tag { display: inline-block; margin-left: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--ink); padding: 2px 6px; vertical-align: middle; transform: translateY(-3px); }

/* Inverted regulatory block */
.section.ink { background: var(--ink); color: var(--paper); border-top-color: var(--ink); }
.section.ink .label { color: #a7a7a3; }
.section.ink .intro { color: #e4e4e0; }
.section.ink a { color: var(--paper); }
.section.ink .btn { border-color: var(--paper); background: var(--ink); color: var(--paper); }
.section.ink .btn:hover { background: var(--paper); color: var(--ink); }
.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #3a3a38; margin: 8px 0 36px; }
.date { padding: 26px 24px 26px 0; }
.date + .date { padding-left: 24px; border-left: 1px solid #3a3a38; }
.date .num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; font-weight: 420; }
.date p { margin: 12px 0 0; font-size: 15px; color: #d8d8d4; max-width: 18em; }
@media (max-width: 760px) {
  .dates { grid-template-columns: 1fr; }
  .date + .date { padding-left: 0; border-left: 0; border-top: 1px solid #3a3a38; }
}

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: baseline;
  padding: 22px 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; text-align: right; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 48px 24px 0; max-width: 46em; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* Closing CTA */
.closing h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 14em; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* ---------- Article (guide) ---------- */
.article { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.article .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.article-head { grid-column: 1 / -1; padding-bottom: 40px; border-bottom: 1px solid var(--ink); margin-bottom: 48px; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; font-variation-settings: "opsz" 72; max-width: 15em; margin-bottom: 24px; }
.article h1 em { font-style: italic; }
.dek { font-size: 1.2rem; max-width: 36em; margin-bottom: 20px; }
.article-aside { grid-column: 1 / span 3; }
.article-aside nav { position: sticky; top: calc(var(--header) + 32px); }
.article-aside ol { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.article-aside li { border-bottom: 1px solid var(--hair); }
.article-aside a { display: block; padding: 9px 0; font-size: 14px; text-decoration: none; }
.article-aside a:hover { text-decoration: underline; }
.prose { grid-column: 4 / span 8; max-width: 44em; }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.12; margin: 56px 0 16px; scroll-margin-top: calc(var(--header) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose ul.sqlist { list-style: none; padding-left: 0; }
.prose ul.sqlist li { padding-left: 1.3em; position: relative; }
.prose ul.sqlist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.42em; height: 0.42em; background: var(--ink); }
.tldr { border: 1px solid var(--ink); padding: 22px 24px 8px; margin-bottom: 8px; }
.tldr .label { color: var(--ink); margin-bottom: 12px; }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; border-bottom: 1px solid var(--ink); padding: 0 16px 10px 0; }
.prose td { border-bottom: 1px solid var(--hair); padding: 12px 16px 12px 0; vertical-align: top; }
.sources { font-size: 14px; }
.sources li { margin-bottom: 10px; }
.cta-box { border: 1px solid var(--ink); padding: 26px 24px; margin-top: 48px; }
.cta-box h3 { margin-top: 0; font-size: 1.6rem; }
@media (max-width: 900px) {
  .article-aside { display: none; }
  .prose { grid-column: 1 / -1; }
}

/* ---------- Simple pages ---------- */
.page { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.page .prose { margin: 0; }
.page h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); padding: 56px 0 40px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; }
.foot-brand { grid-column: 1 / span 5; }
.foot-brand svg { height: 26px; width: auto; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); max-width: 26em; }
.foot-col { grid-column: span 2; }
.foot-col ul { list-style: none; margin: 10px 0 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--hair); padding-top: 20px; color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 860px) {
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { grid-column: span 6; }
}

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