/* MachineOutcome — Frontier surface skin v2.
   Scoped re-skin for the lab, legal, receipt and 404 routes so every page
   shares one palette, one type scale, one border language and one light model.
   Colour, spacing and typography only: no structure, no wording, no logic. */

:root{
  --bg:#0A0F12;
  --bg-deep:#070B0D;
  --band:#0D1519;
  --paper:#141F23;
  --surface:#141F23;
  --surface-2:#1A272C;
  --surface-3:#213035;
  --ink:#F2F5F3;
  --muted:#B6C2C0;
  --sub:#93A5A2;
  --dim:#7C8F8C;
  --line:#293B40;
  --line-2:#3A5056;
  --line-bright:#4C6A66;
  --accent:#B6FF59;
  --green:#B6FF59;
  --amber:#FFB36B;
  --red:#FF8585;
  --unknown:#E9CA78;
  --blue:#A9C6E8;
  --radius:17px;
  --lift-inset:inset 0 1px 0 rgba(255,255,255,.06);
  --lift-near:0 1px 2px rgba(0,0,0,.55);
  --lift-far:0 20px 44px -26px rgba(0,0,0,.92);
  color-scheme:dark;
}

body{
  background:
    radial-gradient(110% 70% at 82% -8%,#16281C 0%,transparent 54%),
    radial-gradient(70% 60% at 0% 100%,#0E2017 0%,transparent 56%),
    var(--bg) !important;
  color:var(--ink);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.66;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ---- shared chrome ---- */
.topbar,.site-header,.receipt-header{
  border-bottom:1px solid rgba(255,255,255,.07) !important;
  min-height:68px;
  background:rgba(10,15,18,.72) !important;
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
}
.brand-logo{filter:none}
.topbar nav a,.site-header nav a{color:var(--muted);transition:color 160ms ease}
.topbar nav a:hover,.site-header nav a:hover{color:var(--ink)}

/* ---- type ---- */
h1{
  font-size:clamp(32px,4.4vw,52px) !important;
  line-height:1.06 !important;
  letter-spacing:-.044em !important;
  font-weight:650 !important;
  color:var(--ink);
  text-wrap:balance;
}
h2{
  font-size:clamp(22px,2.5vw,30px) !important;
  line-height:1.16 !important;
  letter-spacing:-.03em !important;
  font-weight:640 !important;
  color:var(--ink);
  text-wrap:pretty;
}
h3{letter-spacing:-.02em;color:var(--ink)}
.eyebrow,.section-index,.receipt-kicker,.mono{
  font:600 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace !important;
  letter-spacing:.13em !important;
  text-transform:uppercase;
  color:var(--accent) !important;
}
.lede,.receipt-intro,.section-lede{color:var(--muted) !important}
a{color:var(--accent)}
a:hover{color:#D6FFA8}

/* ---- surfaces: one light model everywhere ---- */
.receipt-card,.preview,.result,.controls,.card,.panel{
  background:linear-gradient(180deg,#1B282D 0%,#162126 46%,#121B1F 100%) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--radius) !important;
  box-shadow:var(--lift-inset),var(--lift-near),var(--lift-far) !important;
}
.receipt-card{padding:clamp(22px,3.4vw,38px) !important}

/* The lab's four-step failure band: real cards, not a flat row. */
.why-grid article{
  background:linear-gradient(180deg,#1B282D 0%,#162126 46%,#121B1F 100%) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--radius) !important;
  box-shadow:var(--lift-inset),var(--lift-near),var(--lift-far) !important;
  padding:clamp(18px,2.2vw,26px) !important;
}
.proof-grid article{
  background:linear-gradient(180deg,#1B282D 0%,#162126 46%,#121B1F 100%) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--radius) !important;
  box-shadow:var(--lift-inset),var(--lift-near),var(--lift-far) !important;
  padding:clamp(18px,2.2vw,24px) !important;
}

/* ---- buttons ---- */
.button{
  border-radius:9px !important;
  font-weight:650 !important;
  letter-spacing:-.006em;
  transition:background-color 180ms cubic-bezier(.2,.8,.2,1),border-color 180ms cubic-bezier(.2,.8,.2,1),box-shadow 240ms cubic-bezier(.2,.8,.2,1),transform 180ms cubic-bezier(.2,.8,.2,1);
}
.button.primary{
  background:linear-gradient(180deg,#C6FF76,#B6FF59 62%,#A8F04D) !important;
  border-color:#A8F04D !important;
  color:#0C1505 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42),0 1px 2px rgba(0,0,0,.4),0 10px 26px -14px rgba(182,255,89,.5) !important;
}
.button.primary:hover{
  background:linear-gradient(180deg,#D4FF92,#C3FF6D 62%,#B6FF59) !important;
  border-color:#B6FF59 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 2px 3px rgba(0,0,0,.4),0 14px 32px -14px rgba(182,255,89,.62) !important;
  color:#0C1505 !important;
}
.button.secondary,.button.quiet{
  background:linear-gradient(180deg,var(--surface-2),#131D21) !important;
  border-color:var(--line-2) !important;
  color:var(--ink) !important;
  box-shadow:var(--lift-inset),var(--lift-near) !important;
}
.button.secondary:hover,.button.quiet:hover{
  border-color:var(--line-bright) !important;
  background:var(--surface-3) !important;
  color:var(--ink) !important;
}

/* ---- form controls ---- */
select,input[type="text"],input[type="email"],textarea{
  background:linear-gradient(180deg,#0B1215,#0E171A) !important;
  border:1px solid var(--line-2) !important;
  border-radius:9px !important;
  color:var(--ink) !important;
  min-height:46px;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.5);
}
select{color-scheme:dark;cursor:pointer}
select option{background:#141F23;color:var(--ink)}
select:focus,input:focus,textarea:focus{
  outline:none;
  border-color:#8AC24E !important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.4),0 0 0 3px rgba(182,255,89,.14) !important;
}
label span,label small{color:var(--muted)}
label small{color:var(--dim)}

/* ---- status pills / marks ---- */
.status-pill{
  border:1px solid #4A6A32 !important;
  background:rgba(182,255,89,.08) !important;
  color:var(--accent) !important;
  border-radius:999px !important;
  font:600 10px/1.5 ui-monospace,monospace !important;
  letter-spacing:.1em !important;
  box-shadow:inset 0 1px 0 rgba(182,255,89,.12);
}
.receipt-mark{
  background:linear-gradient(180deg,#1A2812,#131E0C) !important;
  color:var(--accent) !important;
  border:1px solid #4A6A32;
  border-radius:12px;
  box-shadow:var(--lift-inset);
}
.dot,.good{color:var(--accent) !important}
.warn{color:var(--amber) !important}
.blocked{color:var(--red) !important}

/* ---- lab specifics ---- */
/* Four narrow columns cannot carry a 30px headline without splitting words.
   Size the card headings for the column they actually live in. */
.why-grid article h2{
  font-size:clamp(16px,1.15vw,19px) !important;
  line-height:1.28 !important;
  letter-spacing:-.012em !important;
  overflow-wrap:break-word;
  hyphens:auto;
  word-break:normal;
}
.why-grid article p{font-size:14px;line-height:1.58;color:var(--muted)}
.why-grid article span{
  display:inline-grid;place-items:center;
  width:27px;height:27px;border-radius:8px;
  border:1px solid #4A6A32;
  background:linear-gradient(180deg,#1A2812,#131E0C);
  color:var(--accent);
  font:600 12px/1 ui-monospace,monospace;
  box-shadow:var(--lift-inset);
}
.proof-grid article h3{font-size:15.5px;line-height:1.3;letter-spacing:-.015em;margin:9px 0 6px}
.proof-grid article p{font-size:13.5px;line-height:1.58;color:var(--muted)}
.proof-grid article span{
  display:inline-block;
  font:600 10.5px/1 ui-monospace,monospace;
  letter-spacing:.1em;
  color:var(--dim);
}

.presets button,.preset{
  border:1px solid var(--line-2) !important;
  background:linear-gradient(180deg,var(--surface-2),#131D21) !important;
  border-radius:9px !important;
  color:var(--ink);
  box-shadow:var(--lift-inset),var(--lift-near);
  transition:border-color 180ms ease,background-color 180ms ease;
}
.presets button:hover,.preset:hover{border-color:var(--line-bright) !important}
.presets button[aria-pressed="true"],.preset[aria-pressed="true"]{
  border-color:#4A6A32 !important;
  background:linear-gradient(180deg,#1A2812,#131E0C) !important;
  color:var(--accent) !important;
  box-shadow:var(--lift-inset),0 0 0 3px rgba(182,255,89,.09);
}
.preview ol,.preview li{border-color:rgba(255,255,255,.07) !important}
.preview li span{color:var(--dim)}
.preview em{color:var(--ink)}
.result{border-color:var(--line) !important}
.result .status,.result .outcome-status{color:var(--accent)}
.why-band{
  border-block:1px solid rgba(255,255,255,.06) !important;
  background:linear-gradient(180deg,#0D1519,#0B1215) !important;
}
.proof{border-top:1px solid rgba(255,255,255,.055)}
footer,.receipt-footer{
  border-top:1px solid rgba(255,255,255,.06) !important;
  color:var(--dim);
  background:linear-gradient(180deg,#0A0F12,#070B0D) !important;
}
footer a,.receipt-footer a{color:var(--muted)}
footer a:hover{color:var(--ink)}

/* ---- focus ---- */
a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--accent) !important;
  outline-offset:3px;
}

@media(max-width:600px){
  .receipt-card{padding:20px !important}
  h1{font-size:clamp(28px,8vw,36px) !important}
  .why-grid article,.proof-grid article{padding:18px !important}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* ---- lab: the idle result panel must not read as a dead box ---- */
.lab-grid{align-items:start}
.result:has(.empty-state){
  display:grid;
  align-content:center;
  min-height:clamp(240px,26vw,320px) !important;
}
.empty-state{
  min-height:0 !important;
  padding:clamp(24px,3vw,36px) !important;
  max-width:42ch;
}
.empty-state .eyebrow{
  display:inline-block;
  align-self:center;
  padding:5px 11px;
  border:1px solid var(--line-2);
  border-radius:999px;
  background:rgba(255,255,255,.03);
  color:var(--sub) !important;
  font-size:10px !important;
  letter-spacing:.13em !important;
}
.empty-state h3{font-size:clamp(17px,1.8vw,21px) !important;margin:14px 0 8px}
.empty-state p{font-size:14px;line-height:1.62;color:var(--muted)}

/* ---- receipt / legal / 404: align the header hairline with the card ---- */
.receipt-page .receipt-header{
  width:min(680px,calc(100% - 40px)) !important;
  padding:22px 0 !important;
}
@media(max-width:580px){
  .receipt-page .receipt-header{width:calc(100% - 28px) !important;padding:16px 0 !important}
}
.receipt-card{
  text-align:left;
}
.receipt-card .receipt-kicker{display:block;text-align:center}
.receipt-card h1{text-align:center}
.receipt-card .receipt-intro{text-align:center;margin-inline:auto}
.receipt-card h2{
  text-align:left;
  margin:clamp(26px,3vw,36px) 0 10px;
  padding-top:clamp(18px,2vw,24px);
  border-top:1px solid rgba(255,255,255,.07);
  font-size:clamp(17px,1.7vw,20px) !important;
  letter-spacing:-.02em !important;
  color:var(--ink);
}
.receipt-card h2:first-of-type{border-top:0;padding-top:0;margin-top:clamp(22px,2.6vw,30px)}
.receipt-card p{text-align:left;font-size:14.5px;line-height:1.72;color:var(--muted)}
.receipt-card p + p{margin-top:12px}
.receipt-card .receipt-actions{margin-top:clamp(24px,3vw,34px);text-align:center}
.receipt-card .receipt-help{text-align:center;margin-top:18px;font-size:13px;color:var(--sub)}
.receipt-card .receipt-note{font-size:13px;color:var(--sub)}
.receipt-next{
  border:1px solid var(--line);
  border-radius:var(--r-md, 13px);
  background:rgba(255,255,255,.022);
  padding:clamp(16px,2vw,22px);
  margin-top:clamp(20px,2.4vw,26px);
  text-align:left;
}
.receipt-next h2{border-top:0 !important;padding-top:0 !important;margin-top:0 !important;text-align:left}
.receipt-next ol{text-align:left}
.receipt-footer{text-align:center;font-size:12px;padding:22px 0}

/* Header hairline must span the page, not stop at the card width. */
.receipt-page .receipt-header{
  width:100% !important;
  max-width:none !important;
  padding:22px 0 !important;
  padding-inline:max(20px,calc((100% - 680px)/2)) !important;
}
@media(max-width:580px){
  .receipt-page .receipt-header{
    width:100% !important;
    padding:16px 14px !important;
  }
}
.receipt-card .receipt-intro{max-width:54ch !important}

/* ---- lab: mobile header must not wrap the status pill into a tower ---- */
@media(max-width:900px){
  .topbar{
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:10px 12px !important;
    padding-block:10px !important;
    min-height:0 !important;
  }
  .status-pill{
    max-width:none !important;
    white-space:nowrap;
    padding:6px 10px !important;
    font-size:9px !important;
    letter-spacing:.08em !important;
  }
  .lab-mobile-nav{
    grid-column:1/-1;
    border-top:1px solid rgba(255,255,255,.06) !important;
    margin-top:4px;
  }
  .lab-mobile-nav summary{
    min-height:36px !important;
    padding:6px 0 !important;
    font-size:13px;
    color:var(--muted);
  }
}
@media(max-width:420px){
  .status-pill{font-size:8px !important;padding:5px 8px !important;letter-spacing:.06em !important}
}

/* ---- About: three pillars under the vision ---- */
.about-pillars{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(10px,1.4vw,14px);
  margin:clamp(22px,3vw,30px) 0 clamp(26px,3.4vw,36px);
}
.about-pillar{
  display:flex;flex-direction:column;align-items:center;gap:9px;
  padding:clamp(16px,2vw,22px) clamp(10px,1.4vw,16px);
  border:1px solid #2C3F41;
  border-radius:14px;
  background:linear-gradient(180deg,#111A1E,#0C1316);
  text-align:center;
  min-width:0;
}
.about-pillar-mark{
  font-size:17px;line-height:1;color:#B6FF59;
  width:26px;height:26px;display:grid;place-items:center;
}
.about-pillar strong{
  font-size:13.5px;font-weight:650;letter-spacing:-.01em;color:#E4EBE9;
}
@media(max-width:520px){
  .about-pillars{grid-template-columns:minmax(0,1fr)}
  .about-pillar{flex-direction:row;justify-content:center;padding:14px}
}

/* ---- Methodology: the five checks and three outcomes ---- */
.method-checks{
  counter-reset:method;
  list-style:none;
  margin:clamp(20px,2.6vw,28px) 0;
  padding:0;
  display:grid;
  gap:2px;
}
.method-checks li{
  counter-increment:method;
  position:relative;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:4px 14px;
  align-items:baseline;
  padding:clamp(13px,1.7vw,17px) 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  min-width:0;
}
.method-checks li:first-child{border-top:1px solid rgba(255,255,255,.06)}
.method-checks li::before{
  content:counter(method);
  grid-row:1/3;
  display:grid;place-items:center;
  width:26px;height:26px;
  border:1px solid #3E5A2C;
  border-radius:7px;
  background:linear-gradient(180deg,#1A2812,#131E0C);
  color:#B6FF59;
  font:600 12px/1 ui-monospace,monospace;
  align-self:start;
}
.method-checks strong{
  font-size:15.5px;font-weight:650;letter-spacing:-.015em;color:#F2F5F3;
}
.method-checks span{
  font-size:14px;line-height:1.55;color:#AEBBB9;
}

.method-outcomes{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(10px,1.4vw,14px);
  margin:clamp(20px,2.6vw,26px) 0;
}
.method-outcome{
  display:flex;flex-direction:column;gap:7px;
  padding:clamp(15px,2vw,20px);
  border:1px solid #2C3F41;
  border-radius:13px;
  background:linear-gradient(180deg,#111A1E,#0C1316);
  min-width:0;
}
.method-outcome strong{
  font:650 12px/1 ui-monospace,monospace;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.method-outcome span{font-size:13.5px;line-height:1.55;color:#AEBBB9}
.method-outcome.is-verified{border-color:#4A6A32;background:linear-gradient(180deg,#16220F,#0F1609)}
.method-outcome.is-verified strong{color:#B6FF59}
.method-outcome.is-failed{border-color:#6A4436;background:linear-gradient(180deg,#221511,#170F0C)}
.method-outcome.is-failed strong{color:#FF8585}
.method-outcome.is-unknown{border-color:#5C5230;background:linear-gradient(180deg,#201D12,#15130C)}
.method-outcome.is-unknown strong{color:#E9CA78}

@media(max-width:620px){
  .method-outcomes{grid-template-columns:minmax(0,1fr)}
}
