/* Discovery Triage site styles. Dark only, to sit with the app's own dark UI.
   Fonts are self-hosted (fonts/, SIL OFL): the site makes no third-party requests. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #0e0f10;          /* page */
  --ink-2: #17181b;        /* code, raised bits */
  --paper: #ebe6da;        /* body text: warm, not white */
  --muted: #a39e92;        /* secondary text and labels (7:1 on --ink) */
  --rule: #2a2b2f;         /* hairlines */
  --rule-strong: #46474c;
  --hl: #f1d24a;           /* highlighter: the one accent */
  --hl-ink: #15130f;       /* text on the highlighter */
  --err: #f2a48f;
  --serif: "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 19px/1.6 var(--serif); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--rule-strong); }
a:hover { text-decoration-color: var(--hl); }
:focus-visible { outline: 2px solid var(--hl); outline-offset: 3px; }
::selection { background: var(--hl); color: var(--hl-ink); }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* Mono labels: section numbers, nav, buttons, captions */
.label, header.site nav a, .btn, .textlink, .sec-n, figcaption, footer.site, .plan-name, .rows dt, .updated, .lb-bar {
  font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
}

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

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 6px 28px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
header.site nav { display: flex; gap: 26px; }
header.site nav a { color: var(--muted); text-decoration: none; padding: 6px 0 4px; border-bottom: 1px solid transparent; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--hl); }

/* Buttons */
.btn { display: inline-block; background: var(--hl); color: var(--hl-ink); font-weight: 500; text-decoration: none; padding: 15px 22px; border: 0; border-radius: 2px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--paper); color: var(--hl-ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.textlink { color: var(--paper); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--rule-strong); }
.textlink:hover { border-bottom-color: var(--hl); }

/* Hero */
.hero { padding: 96px 0 0; }
.hero .label { color: var(--muted); margin: 0 0 30px; }
.hero h1 { font-size: clamp(42px, 7.4vw, 96px); line-height: 1.04; letter-spacing: -.025em; }
.hero h1 .hl-line { display: block; margin-top: .12em; line-height: 1.24; }
.hero mark {
  background: var(--hl); color: var(--hl-ink); font-style: italic; padding: 0 .12em; margin-left: -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; margin-top: 56px; align-items: start; }
.lead { font-size: 23px; line-height: 1.5; max-width: 30em; margin: 0 0 36px; }
.actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* Spec sheet with dotted leaders */
.sheet { margin-top: 4px; border-top: 1px solid var(--paper); }
.sheet dl { margin: 0; }
.sheet-title { color: var(--muted); margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sheet div { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.sheet dt { flex: 1; display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: 18px; }
.sheet dt::after { content: ""; flex: 1; border-bottom: 1px dotted var(--rule-strong); transform: translateY(-.3em); }
.sheet dd { margin: 0; font-size: 18px; }

/* Hero screenshot, captioned like a produced page */
.shot { margin: 88px 0 0; }
.shot img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(235, 230, 218, .07), 0 40px 90px rgba(0, 0, 0, .6); }
figcaption { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); margin-top: 16px; }
figcaption b { color: var(--paper); font-weight: 500; }
.zoom { display: block; cursor: zoom-in; }

/* Sections: heading in a left rail, content on the right */
.sec { border-top: 1px solid var(--rule); padding: 96px 0; margin-top: 96px; }
.sec + .sec { margin-top: 0; }
.sec > .wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px 72px; }
.sec-n { display: block; color: var(--muted); margin-bottom: 16px; }
.sec-h h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.015em; margin-bottom: 16px; }
.sec-h p { color: var(--muted); font-size: 17px; line-height: 1.55; }
.span { grid-column: 1 / -1; }

/* Workflow steps as ruled rows */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper); }
.steps li { display: grid; grid-template-columns: 64px 170px minmax(0, 1fr); gap: 8px 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 6px; }
.steps h3 { font-size: 26px; line-height: 1.2; }
.steps p { margin: 0; font-size: 18px; }

/* Safeguards: two by two */
.guards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.guards div { border-top: 1px solid var(--paper); padding: 22px 0 34px; }
.guards h3 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.guards p { margin: 0; font-size: 18px; color: var(--paper); }

/* Label / value rows */
.rows { margin: 0; border-top: 1px solid var(--paper); }
.rows div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.rows dt { color: var(--muted); padding-top: 5px; }
.rows dd { margin: 0; font-size: 18px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--paper); }
.plan { padding: 26px 40px 30px 0; }
.plan + .plan { padding: 26px 0 30px 40px; border-left: 1px solid var(--rule); }
.plan-name { color: var(--muted); margin: 0; }
.price { font-size: 68px; line-height: 1; letter-spacing: -.03em; margin: 18px 0 8px; }
.price small { font-size: 22px; letter-spacing: 0; color: var(--muted); }
.price-alt { color: var(--muted); font-size: 18px; margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; }
.plan li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 18px; }
.footnote { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 26px 0 0; max-width: 46em; }
.footnote b { color: var(--paper); font-weight: 500; }

/* Privacy statement */
.statement { font-size: clamp(25px, 2.7vw, 34px); line-height: 1.32; font-style: italic; font-weight: 360; letter-spacing: -.005em; margin: 0 0 24px; }

/* Exhibits */
.exhibits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.exhibits figure { margin: 0; }
.exhibits img { border-radius: 6px; box-shadow: 0 0 0 1px rgba(235, 230, 218, .07), 0 18px 44px rgba(0, 0, 0, .5); }
.exhibits figcaption { justify-content: flex-start; }

/* Launch list form */
.notify { max-width: 620px; }
.notify > label { display: block; color: var(--muted); margin-bottom: 6px; }
.notify .row { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--paper); }
.notify .row:focus-within { border-bottom-color: var(--hl); box-shadow: 0 1px 0 var(--hl); }
.notify input[type="email"] {
  flex: 1; min-width: 0; background: transparent; border: 0; border-radius: 0; color: var(--paper);
  font: 400 26px/1.3 var(--serif); padding: 12px 0 14px; outline: none;
}
.notify input::placeholder { color: #7d7970; }
.notify .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; margin: 16px 0 0; font-size: 17px; color: var(--muted); }
.status.ok { color: var(--paper); }
.status.err { color: var(--err); }
.alt { color: var(--muted); font-size: 17px; margin: 28px 0 0; }

/* Footer */
footer.site { border-top: 1px solid var(--rule); padding: 40px 0 56px; color: var(--muted); font-size: 12px; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px 40px; flex-wrap: wrap; }
footer.site p { margin: 0 0 8px; }
footer.site .copy { margin-top: 12px; }
footer.site nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--paper); }

/* Document pages: privacy, support, thanks */
.doc { padding: 80px 0 104px; }
.doc .wrap { max-width: 840px; }
.doc h1 { font-size: clamp(44px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 18px; }
.updated { color: var(--muted); margin: 0 0 48px; }
.doc h2 { font-size: 30px; line-height: 1.15; margin: 64px 0 20px; padding-top: 22px; border-top: 1px solid var(--paper); }
.doc ul { padding-left: 1.1em; margin: 0 0 1em; }
.doc li { margin: 0 0 16px; }
.doc li::marker { color: var(--muted); }
.doc strong { font-weight: 600; }
code { font-family: var(--mono); font-size: .76em; background: var(--ink-2); border: 1px solid var(--rule); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--paper); }
summary { cursor: pointer; list-style: none; position: relative; padding: 20px 44px 20px 0; font-size: 22px; line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 19px; font-family: var(--mono); font-size: 20px; color: var(--muted); }
details[open] summary::after { content: "\2212"; }
summary:hover::after { color: var(--hl); }
details p { margin: 0 0 24px; font-size: 18px; }

/* Lightbox (lightbox.js) */
dialog.lb { border: 0; padding: 0; margin: auto; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; color: var(--paper); }
dialog.lb::backdrop { background: rgba(8, 8, 9, .9); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 2px 12px; color: var(--muted); }
dialog.lb button { font: inherit; color: var(--paper); background: transparent; border: 1px solid var(--rule-strong); border-radius: 2px; padding: 7px 14px; cursor: pointer; }
dialog.lb button:hover { border-color: var(--hl); }
dialog.lb img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) {
  dialog.lb[open], dialog.lb[open]::backdrop { animation: lb-fade .16s ease-out; }
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* Narrower screens */
@media (max-width: 960px) {
  .sec > .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sec-h { max-width: 36em; }
  .hero-body { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  html { scroll-padding-top: 16px; }
  header.site { position: static; }
  header.site .wrap { padding-top: 12px; padding-bottom: 10px; }
  header.site nav { gap: 20px; }
  .hero { padding-top: 52px; }
  .lead { font-size: 20px; }
  .shot { margin-top: 56px; }
  figcaption { flex-direction: column; gap: 4px; }
  .sec { padding: 60px 0; margin-top: 64px; }
  .sec-h h2 { font-size: 34px; }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); }
  .steps li p { grid-column: 2; }
  .guards { grid-template-columns: minmax(0, 1fr); }
  .rows div { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding-right: 0; }
  .plan + .plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .exhibits { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .notify .row { flex-direction: column; align-items: stretch; gap: 14px; border-bottom: 0; box-shadow: none; }
  .notify .row:focus-within { box-shadow: none; }
  .notify input[type="email"] { border-bottom: 1px solid var(--paper); font-size: 22px; }
  .notify input[type="email"]:focus { border-bottom-color: var(--hl); }
  .doc { padding: 52px 0 72px; }
}
