/* Shebaka — shebaka.com
   Visual world inherited from console/app.css (the primary CTA lands there).
   Structure is the dossier: a claim, its evidence, its citation. */

:root {
  /* ground */
  --night:      #080E14;
  --night-2:    #0C161E;
  --panel:      #0F1B24;
  --panel-2:    #12212C;
  /* rules */
  --line:       #274540;
  --line-soft:  #1A2E2E;
  --line-faint: #14232A;
  /* accents */
  --brass:      #D4A93C;
  --brass-hi:   #EDCB6E;
  --brass-dim:  rgba(212, 169, 60, 0.14);
  --emerald:    #34A87D;
  --warn:       #D08736;
  --crit:       #CF6A61;
  /* ink */
  --ink:        #F2EDE2;
  --ink-2:      #B8B2A4;
  --ink-3:      #8A8E83;

  --display: 'Reem Kufi', 'Gill Sans', sans-serif;
  --body: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 68ch;
  --rule: 1px solid var(--line-faint);

  color-scheme: dark;
}

/* ── reset ─────────────────────────────────────────────────────────── */

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

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

body {
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--brass-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--brass);
  color: var(--night);
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ── shell ─────────────────────────────────────────────────────────── */

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

.narrow { max-width: var(--measure); }

/* ── the tessellation ──────────────────────────────────────────────── */
/* Octagon-and-khatam on the truncated-square lattice. Drawn once as an SVG
   symbol, tiled by <pattern>, and always decorative — never behind body copy
   at a contrast that would fight it. */

/* The two decorative layers are NEVER in flow. The !important is deliberate and
   load-bearing: a container rule like `.dedicated > *` (specificity 0,1,1) beats
   `.lattice` (0,1,0) and drags them into the layout, where the canvas then reads
   its host's inflated height, resizes to match, and inflates it again. That bug
   cost the dedicated card 1300px of dead space. Do not remove. */
.lights {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.lattice {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  color: var(--brass);
}

/* ── masthead ──────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 14, 20, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: var(--rule);
}
@supports not (backdrop-filter: blur(1px)) {
  .masthead { background: var(--night); }
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.25rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.wordmark .seal { width: 26px; height: 26px; color: var(--brass); flex: none; }
.wordmark .ar {
  color: var(--brass);
  font-size: 1.05rem;
  opacity: 0.85;
  margin-left: 0.1rem;
}

.mast-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
}
.mast-nav a {
  color: var(--ink-2);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.mast-nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }

@media (max-width: 860px) {
  .mast-nav .opt { display: none; }
}
@media (max-width: 560px) {
  .masthead .wrap { gap: 1rem; }
  .mast-nav { gap: 1rem; font-size: 0.875rem; }
}

/* ── buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 0.9375rem/1 var(--body);
  letter-spacing: 0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brass);
  color: #120E04;
  box-shadow: 0 1px 0 rgba(255, 236, 190, 0.35) inset;
}
.btn-primary:hover { background: var(--brass-hi); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-hi); }

.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.75; }

/* ── hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: var(--rule);
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.85rem, 7.6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero-title .ar {
  display: block;
  font-size: 0.34em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--brass);
  margin-bottom: 0.7em;
}

.hero-sub {
  max-width: 46ch;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

/* the verdict strip — the dossier's opening summary */
.verdicts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-soft);
}
.verdict {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-right: 1px solid var(--line-faint);
}
.verdict:last-child { border-right: 0; }
.verdict:not(:first-child) { padding-left: 1.5rem; }

.verdict dt {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.verdict dd { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 780px) {
  .verdicts { grid-template-columns: 1fr; border-top: 0; }
  .verdict {
    padding: 1.125rem 0;
    border-right: 0;
    border-top: 1px solid var(--line-faint);
  }
  .verdict:not(:first-child) { padding-left: 0; }
}

/* ── section scaffolding ───────────────────────────────────────────── */

.record {
  border-bottom: var(--rule);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  position: relative;
}
.record.shaded { background: var(--night-2); }
/* a record whose whole body is one bordered card needs no second helping of padding */
.record.is-card { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }

.record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
}

.record-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.record-title .node { width: 21px; height: 21px; color: var(--brass); flex: none; }

.record-lede {
  margin-top: 0.875rem;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

/* the verdict chip that sits opposite each record title */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  font: 600 0.75rem/1 var(--body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  flex: none;
  align-self: flex-start;
  justify-self: start;
}
.chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.chip.live { color: var(--emerald); border-color: rgba(52, 168, 125, 0.32); }
.chip.soon { color: var(--warn); border-color: rgba(208, 135, 54, 0.32); }
.chip.cond { color: var(--brass); border-color: rgba(212, 169, 60, 0.32); }

/* ── how it works ──────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding: 0 1.75rem 0 0;
  border-right: 1px solid var(--line-faint);
}
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 1.75rem; }

.step h3 {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}
.step h3::before {
  content: counter(step);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  align-self: flex-start;
}
.step p { color: var(--ink-2); font-size: 0.9688rem; }
.step code {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--brass-hi);
  background: var(--panel);
  border: 1px solid var(--line-faint);
  border-radius: 3px;
  padding: 0.1rem 0.375rem;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .step code, .k { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step {
    padding: 1.25rem 0;
    border-right: 0;
    border-top: 1px solid var(--line-faint);
  }
  .step:first-child { border-top: 0; padding-top: 0; }
  .step:not(:first-child) { padding-left: 0; }
}

/* ── the build-log artifact ────────────────────────────────────────── */

.terminal {
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: #060B10;
  overflow: hidden;
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.9);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6875rem 1rem;
  border-bottom: 1px solid var(--line-faint);
  background: var(--panel);
  font: 600 0.75rem/1 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.terminal-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex: none;
}
.terminal-bar .right { margin-left: auto; text-transform: none; letter-spacing: 0; }

.terminal pre {
  margin: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.85;
  color: var(--ink-2);
  tab-size: 2;
}
.terminal .ph { color: var(--ink-3); }
.terminal .ok { color: var(--emerald); }
.terminal .hi { color: var(--brass-hi); font-weight: 600; }
.terminal .url { color: var(--ink); }

.artifact-note {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
  max-width: 72ch;
}

/* ── measured table (reliability) ──────────────────────────────────── */

.measures {
  display: grid;
  gap: 0;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.measure {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: baseline;
  padding: 1.125rem 0;
  border-top: 1px solid var(--line-faint);
}
.measure:last-child { border-bottom: 1px solid var(--line-faint); }
.measure dt {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
}
.measure dd { color: var(--ink-2); font-size: 0.9688rem; }
.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.625rem;
  padding: 0.4rem 0.75rem 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--brass-hi);
  transition: border-color 0.18s, background 0.18s;
}
.inline-cta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.inline-cta:hover { border-color: var(--brass); background: var(--brass-dim); }

.measure dd .inline-cta { display: inline-flex; }

/* the section-closing call to a deeper document */
.record-cta {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.875rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink-2);
  max-width: 62rem;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.record-cta b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.375rem;
}
.record-cta span { font-size: 0.9375rem; line-height: 1.55; }
.record-cta svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  color: var(--brass);
  transition: transform 0.18s;
}
.record-cta:hover {
  border-color: var(--brass);
  background: var(--panel-2);
}
.record-cta:hover svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .record-cta, .record-cta svg { transition: none; }
  .record-cta:hover svg { transform: none; }
}

.measure .val {
  font-family: var(--mono);
  font-size: 1.0625rem;
  color: var(--brass-hi);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  justify-self: end;
}
.measure .val.soft { color: var(--ink-2); font-size: 0.9375rem; }

@media (max-width: 720px) {
  .measure { grid-template-columns: 1fr auto; gap: 0.375rem 1rem; }
  .measure dd { grid-column: 1 / -1; }
}


/* ── pricing ───────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
}
.plan {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line-faint);
  display: flex;
  flex-direction: column;
}
.plan:last-child { border-right: 0; }
.plan.feature { background: var(--panel-2); }

.plan h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.plan .who {
  margin-top: 0.3125rem;
  font-size: 0.875rem;
  color: var(--ink-3);
  min-height: 2.6em;
}
.plan .amount {
  margin-top: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan .amount .per {
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
}
.plan .amount.talk { font-size: clamp(1.5rem, 2.6vw, 1.875rem); color: var(--brass-hi); }
.plan .plus {
  margin-top: 0.4375rem;
  font-size: 0.9063rem;
  color: var(--ink-2);
}
.plan ul {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.625rem;
  font-size: 0.9063rem;
  color: var(--ink-2);
  flex: 1;
}
.plan li { display: flex; gap: 0.625rem; align-items: flex-start; }
.plan li svg {
  width: 15px;
  height: 15px;
  color: var(--brass);
  flex: none;
  margin-top: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.plan .btn { margin-top: 1.75rem; width: 100%; }

@media (max-width: 880px) {
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line-faint); }
  .plan:last-child { border-bottom: 0; }
  .plan .who { min-height: 0; }
}

.billing-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem 2.25rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.billing-notes h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.billing-notes p { font-size: 0.9063rem; color: var(--ink-2); line-height: 1.55; }

/* ── provenance table ──────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }

table.screen {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
table.screen th,
table.screen td {
  text-align: left;
  padding: 1rem 1.25rem 1rem 0;
  border-bottom: 1px solid var(--line-faint);
  vertical-align: top;
}
table.screen th {
  font: 600 0.75rem/1.3 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--line-soft);
  padding-bottom: 0.75rem;
}
table.screen td:first-child {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
table.screen .note { color: var(--ink-2); }
table.screen tr:last-child td { border-bottom: 0; }

.criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-faint);
}
.criteria h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.criteria h3 svg { width: 16px; height: 16px; color: var(--brass); flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.criteria p { font-size: 0.9063rem; color: var(--ink-2); line-height: 1.55; }

/* ── AI record ─────────────────────────────────────────────────────── */

.pull {
  font-family: var(--display);
  font-size: clamp(1.375rem, 3vw, 2.125rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 24ch;
  color: var(--ink);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 1px solid var(--brass);
  margin-block: clamp(1.5rem, 3vw, 2.25rem);
}
.pull em { font-style: normal; color: var(--brass-hi); }

.ai-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }

.built-list { display: grid; gap: 0.875rem; }
.built-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.9688rem;
  color: var(--ink-2);
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line-faint);
}
.built-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.built-list .state {
  font: 600 0.6875rem/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3125rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}
.built-list .state.yes { color: var(--emerald); background: rgba(52, 168, 125, 0.11); }
.built-list .state.no  { color: var(--warn);    background: rgba(208, 135, 54, 0.11); }

/* ── dedicated environments ────────────────────────────────────────── */

.dedicated {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.dedicated > :not(.lattice):not(.lights) { position: relative; z-index: 1; }
.dedicated h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  max-width: 18ch;
}
.dedicated .lede {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 1.0625rem;
}
.included {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem 2rem;
  margin-block: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.75rem, 4vw, 2.25rem);
  border-top: 1px solid var(--line-faint);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.included b { display: block; color: var(--ink); font-weight: 600; font-family: var(--display); margin-bottom: 0.2rem; }

/* ── document pages (provenance, 404) ──────────────────────────────── */

.doc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: var(--rule);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.25rem, 4vw, 3.25rem);
}
.doc-hero > .wrap { position: relative; z-index: 1; }
.doc-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  max-width: 18ch;
}
.doc-hero .lede {
  margin-top: 1.25rem;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-2);
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.doc-meta b { color: var(--ink-2); font-weight: 600; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.crumb a { color: var(--ink-2); display: inline-block; padding-block: 0.1rem; }
.crumb a:hover { color: var(--brass-hi); }

/* weighted criteria list */
.weights { display: grid; gap: 0; }
.weight-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding: 1.375rem 0;
  border-top: 1px solid var(--line-faint);
}
.weights .weight-row:last-child { border-bottom: 1px solid var(--line-faint); }
.weight-row .pct {
  font-family: var(--mono);
  font-size: 1.0625rem;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.weight-row h3 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.weight-row p { font-size: 0.9375rem; color: var(--ink-2); max-width: 62ch; }
.gate {
  margin-top: 0.6rem;
  font-size: 0.8438rem;
  color: var(--ink-3);
  padding-left: 0.875rem;
  border-left: 1px solid var(--crit);
}
.gate b { color: var(--crit); font-weight: 600; }

@media (max-width: 620px) {
  .weight-row { grid-template-columns: 1fr; gap: 0.375rem; }
}

/* per-provider dossier record */
.dossier {
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-soft);
}
.dossier:first-of-type { border-top: 0; padding-top: 0; }
.dossier-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.875rem;
}
.dossier-head h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.dossier-head .where { font-size: 0.9375rem; color: var(--ink-3); }
.dossier > p { max-width: var(--measure); color: var(--ink-2); font-size: 1rem; }
.dossier > p + p { margin-top: 0.875rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-faint);
}
.facts dt {
  font: 600 0.6875rem/1 var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.4375rem;
}
.facts dd { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; }

.caveat {
  margin-top: 1.5rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid rgba(208, 135, 54, 0.28);
  border-radius: 4px;
  background: rgba(208, 135, 54, 0.06);
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 74ch;
}
.caveat b { color: var(--warn); font-weight: 600; }

/* ordered procedure */
.procedure { counter-reset: proc; display: grid; gap: 1.125rem; max-width: 72ch; }
.procedure li {
  counter-increment: proc;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 1rem;
  font-size: 0.9688rem;
  color: var(--ink-2);
}
.procedure li::before {
  content: counter(proc);
  font: 600 0.8125rem/1.75rem var(--body);
  text-align: center;
  color: var(--brass);
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 1.75rem;
  font-variant-numeric: tabular-nums;
}
.procedure b { color: var(--ink); font-weight: 600; }

.outcomes { display: grid; gap: 0; margin-top: 1.5rem; }
.outcome {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 1rem 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-faint);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.outcomes .outcome:last-child { border-bottom: 1px solid var(--line-faint); }
@media (max-width: 560px) { .outcome { grid-template-columns: 1fr; gap: 0.25rem; } }

/* 404 */
.lost {
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.lost > .wrap { position: relative; z-index: 1; }
.lost .code {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  color: var(--brass);
  text-transform: uppercase;
}
.lost h1 {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  max-width: 16ch;
}
.lost p { margin-top: 1.25rem; max-width: 50ch; color: var(--ink-2); font-size: 1.0625rem; }
.lost .hero-cta { margin-top: 2rem; }
.lost .elsewhere {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.9375rem;
}
.lost .elsewhere a { color: var(--ink-2); }
.lost .elsewhere a:hover { color: var(--brass-hi); }

/* ── footer ────────────────────────────────────────────────────────── */

.foot {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  background: var(--night-2);
  border-top: var(--rule);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand p {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: 0.9063rem;
  color: var(--ink-3);
  line-height: 1.6;
}
.foot h2 {
  font: 600 0.75rem/1 var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.foot ul { display: grid; gap: 0.5rem; font-size: 0.9375rem; }
.foot ul a { display: inline-block; padding-block: 0.16rem; }
.foot ul a { color: var(--ink-2); }
.foot ul a:hover { color: var(--brass-hi); }

.colophon {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* ── inline text bits ──────────────────────────────────────────────── */

.k {
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--brass-hi);
  background: var(--panel);
  border: 1px solid var(--line-faint);
  border-radius: 3px;
  padding: 0.08em 0.36em;
  white-space: nowrap;
}
.prose p + p { margin-top: 1rem; }
.prose a { border-bottom: 1px solid var(--line); }
.prose a:hover { border-bottom-color: var(--brass); }

/* ── the one authored motion ───────────────────────────────────────── */
/* The lattice inks itself in, once, on load. It is decorative SVG only:
   every word on this page is present and legible with JS off, CSS animations
   unsupported, or motion reduced. Nothing here can blank content. */

@keyframes ink-in {
  from { stroke-dashoffset: var(--dash); opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

.lattice .strokes {
  --dash: 420;
  stroke-dasharray: var(--dash);
  animation: ink-in 2.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lattice .strokes { animation: none; stroke-dasharray: none; }
  .btn:active { transform: none; }
}

/* ── print ─────────────────────────────────────────────────────────── */

@media print {
  .masthead, .lattice, .hero-cta, .btn { display: none; }
  body { background: #fff; color: #000; }
  .record { border-color: #ccc; page-break-inside: avoid; }
}

/* ── long-form prose (privacy.html) ─────────────────────────────── */
.doc-prose { max-width: 46rem; }
.doc-prose h3 { font-size: 1.0625rem; margin: 1.75rem 0 0.5rem; color: var(--ink); }
.doc-prose p, .doc-prose li { color: var(--ink-2); font-size: 0.9688rem; line-height: 1.65; }
.doc-prose p + p { margin-top: 0.75rem; }
.doc-prose ul { list-style: none; padding: 0; margin: 0; }
.doc-prose li { padding: 0.55rem 0 0.55rem 1.25rem; position: relative; border-top: 1px solid var(--line-faint, rgba(255,255,255,.06)); }
.doc-prose li:first-child { border-top: 0; }
.doc-prose li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 6px; transform: rotate(45deg); background: var(--brass); }
.doc-prose li b, .doc-prose p b { color: var(--ink); }
.doc-prose a { color: var(--brass); }
