/* Profract: "spec sheet" design system */
:root {
  --paper: #f5f3ee;
  --paper-2: #ece9e2;
  --surface: #fbfaf7;
  --ink: #16181b;
  --ink-2: #4a4f56;
  --ink-3: #7a7f86;
  --rule: #d9d5cc;
  --rule-strong: #b9b4a9;
  --accent: #0e6b4f;
  --accent-soft: #dcebe4;
  --fail: #a4462b;
  --fail-soft: #f3e1d9;
  --serif: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121416;
    --paper-2: #1a1d20;
    --surface: #171a1d;
    --ink: #ecebe7;
    --ink-2: #b4b7bb;
    --ink-3: #868a90;
    --rule: #2b2f34;
    --rule-strong: #3d4248;
    --accent: #5cc49b;
    --accent-soft: #173229;
    --fail: #e08868;
    --fail-soft: #3a2219;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); color: var(--accent); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

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

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--mono); letter-spacing: -0.02em; text-decoration: none; }
.mark svg { width: 20px; height: 20px; color: var(--accent); }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.nav a:hover { color: var(--accent); }
.nav .btn { color: var(--paper); }
.menu-toggle { display: none; }

/* Type */
.eyebrow { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.eyebrow b { color: var(--accent); font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; max-width: 17ch; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; max-width: 22ch; }
h3 { font-size: 23px; line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin: 24px 0 0; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; }
.mono { font-family: var(--mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 3px; background: var(--ink); color: var(--paper); font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid var(--ink); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--rule); }
.section { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--rule); }
.section.tint { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); max-width: 62ch; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split.even { grid-template-columns: 7fr 5fr; }

/* Hero meta strip */
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: 56px; }
.meta div { padding: 16px 16px 0 0; }
.meta dt { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.meta dd { margin: 6px 0 0; font-size: 15.5px; }

/* Audience doors */
.door { display: block; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 30px; text-decoration: none; position: relative; }
.door:hover { border-color: var(--accent); color: inherit; }
.door .tag { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.door h3 { margin: 14px 0 12px; font-size: 27px; }
.door p { color: var(--ink-2); margin: 0 0 18px; }
.door ul { list-style: none; padding: 0; margin: 0 0 22px; font-size: 15px; }
.door li { padding: 7px 0; border-top: 1px dashed var(--rule); }
.door .go { font: 500 14px/1 var(--mono); }
.door.primary { border-top: 3px solid var(--accent); }

/* Spec card (offers) */
.spec { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; display: flex; flex-direction: column; }
.spec-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--rule); }
.spec-head .id { font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: 0.06em; }
.spec-head h3 { margin-top: 10px; }
.spec-head p { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; }
.spec dl { margin: 0; padding: 8px 24px 20px; font-size: 15px; flex: 1; }
.spec dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.spec dl div:last-child { border-bottom: 0; }
.spec dt { font: 500 12.5px/1.6 var(--mono); color: var(--ink-3); }
.spec dd { margin: 0; }
.spec.lead { border: 1px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.badge { display: inline-block; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 8px; border-radius: 2px; background: var(--accent-soft); color: var(--accent); margin-left: 8px; vertical-align: 2px; }

/* Gate strip */
.gates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); counter-reset: g; }
.gates li { padding: 20px 16px 22px; border-right: 1px solid var(--rule); position: relative; counter-increment: g; }
.gates li:last-child { border-right: 0; }
.gates li::before { content: "S" counter(g); font: 500 12px/1 var(--mono); color: var(--ink-3); }
.gates b { display: block; font: 500 16px/1.3 var(--sans); margin: 10px 0 8px; }
.gates span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.gates .check { margin-top: 12px; font: 500 12px/1.4 var(--mono); color: var(--accent); }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 14px 0 14px 34px; border-top: 1px solid var(--rule); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 18px; height: 18px; border: 1.5px solid var(--accent); border-radius: 2px; background: linear-gradient(var(--accent), var(--accent)) center/8px 8px no-repeat; }
.checks b { font-weight: 600; }

/* Mono table */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); background: var(--paper-2); }
td.mono { font-size: 14px; white-space: nowrap; }
.pass { color: var(--accent); font-family: var(--mono); font-weight: 500; }
.fail { color: var(--fail); font-family: var(--mono); font-weight: 500; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 2px; font: 500 12px/1.3 var(--mono); }
.pill.pass { background: var(--accent-soft); }
.pill.fail { background: var(--fail-soft); }

/* Task card */
.task { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; font-size: 15.5px; }
.task-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.task-row:last-child { border-bottom: 0; }
.task-row dt { font: 500 12.5px/1.7 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.task-row dd { margin: 0; }
.task-title { padding: 20px 24px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.task-title h3 { font-size: 22px; }

/* Person */
.person { display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: start; }
.avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 500 28px/1 var(--serif); }
.cv { list-style: none; padding: 0; margin: 16px 0 0; }
.cv li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15.5px; }
.cv li span:first-child { font: 500 13px/1.6 var(--mono); color: var(--ink-3); }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); max-width: 70ch; }

/* CTA band */
.cta { padding: clamp(64px, 9vw, 104px) 0; }
.cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 14.5px; color: var(--ink-2); }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-foot h4 { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0 0 8px; }
.site-foot a { text-decoration: none; }

/* Prose */
.prose { max-width: 70ch; }
.prose h3 { margin: 36px 0 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

@media (max-width: 960px) {
  .gates { grid-template-columns: 1fr; }
  .gates li { border-right: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 16px; }
  .gates li::before { grid-row: span 3; padding-top: 3px; }
  .gates b { margin: 0 0 4px; }
  .gates li:last-child { border-bottom: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .split, .split.even { grid-template-columns: 1fr; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .grid-2 { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; background: none; border: 1px solid var(--rule-strong); border-radius: 3px; padding: 8px 12px; font: 500 13px/1 var(--mono); color: var(--ink); }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .task-row, .cv li, .spec dl div { grid-template-columns: 1fr; gap: 4px; }
  .cta .wrap, .site-foot .wrap { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
}

/* Trial callout */
.trial { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 4px; background: var(--surface); }
