:root{
  --paper:#f2efe8;
  --paper2:#e7e1d6;
  --ink:#171717;
  --muted:#625e57;
  --line:#cfc7ba;
  --orange:#e4572e;
  --orange2:#f6d2c5;
  --blue:#2257d6;
  --blue2:#dbe4ff;
  --white:#fffdf8;
  --green:#176b4a;
  --red:#b43b2d;
  --amber:#a76400;
  --max:1200px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:
    linear-gradient(rgba(23,23,23,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(23,23,23,.035) 1px,transparent 1px),
    var(--paper);
  background-size:32px 32px;
  line-height:1.55;
}

a{color:inherit;text-decoration:none}

.container{
  width:min(calc(100% - 40px),var(--max));
  margin:auto;
}

.topbar{
  background:var(--ink);
  color:var(--white);
  font:700 .75rem/1.2 "Courier New",monospace;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.topbar .container{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(242,239,232,.95);
  backdrop-filter:blur(10px);
  border-bottom:2px solid var(--ink);
}

nav{
  min-height:72px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:28px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:"Arial Black",Arial;
  font-size:1.15rem;
  letter-spacing:-.04em;
}

.brandmark{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  background:var(--orange);
  color:white;
  border:2px solid var(--ink);
  box-shadow:4px 4px 0 var(--ink);
  font-family:"Courier New";
}

.navlinks{
  justify-self:center;
  display:flex;
  gap:24px;
  font-weight:800;
  font-size:.88rem;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border:2px solid var(--ink);
  background:var(--white);
  box-shadow:5px 5px 0 var(--ink);
  font-weight:900;
}

.btn:hover{
  transform:translate(2px,2px);
  box-shadow:3px 3px 0 var(--ink);
}

.btn-primary{
  background:var(--orange);
  color:#fff;
}

.btn-blue{
  background:var(--blue);
  color:#fff;
}

.hero{
  padding:76px 0 66px;
  border-bottom:2px solid var(--ink);
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(350px,.92fr);
  gap:58px;
  align-items:start;
}

.kicker,
.index,
.micro{
  font:900 .78rem/1.3 "Courier New",monospace;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.kicker{
  color:var(--blue);
  margin-bottom:18px;
}

h1,
h2{
  font-family:"Arial Black",Arial,sans-serif;
  text-transform:uppercase;
  letter-spacing:-.06em;
  margin:0;
}

h1{
  font-size:clamp(3rem,6.7vw,6.2rem);
  line-height:.9;
}

.accent{color:var(--orange)}

.lead{
  font-size:1.17rem;
  color:#403c37;
  max-width:760px;
  margin:28px 0 0;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:30px;
}

.note{
  margin-top:24px;
  border-top:1px solid var(--line);
  padding-top:16px;
  color:var(--muted);
  font:700 .78rem/1.5 "Courier New",monospace;
  text-transform:uppercase;
}

.board{
  border:2px solid var(--ink);
  background:var(--white);
  box-shadow:12px 12px 0 var(--ink);
}

.board-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:15px 17px;
  border-bottom:2px solid var(--ink);
  font:900 .76rem "Courier New",monospace;
  text-transform:uppercase;
}

.board-title{font-size:.85rem}

.summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-bottom:2px solid var(--ink);
}

.metric{
  padding:18px;
  border-right:1px solid var(--ink);
}

.metric:last-child{border-right:0}

.metric strong{
  display:block;
  font:900 2rem/1 "Arial Black",Arial;
}

.metric span{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font:700 .7rem "Courier New",monospace;
  text-transform:uppercase;
}

.metric.good strong{color:var(--green)}
.metric.warn strong{color:var(--amber)}
.metric.bad strong{color:var(--red)}

.incident{padding:20px}

.incident-tag{
  display:inline-block;
  border:2px solid var(--red);
  color:var(--red);
  padding:5px 8px;
  font:900 .72rem "Courier New",monospace;
  text-transform:uppercase;
}

.incident-tag-neutral{
  border-color:var(--blue);
  color:var(--blue);
}

.incident h3{
  font-family:"Arial Black",Arial;
  text-transform:uppercase;
  font-size:1.75rem;
  line-height:1;
  margin:14px 0 8px;
}

.rows{
  border-top:1px solid var(--line);
  margin-top:18px;
}

.row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-size:.88rem;
}

.row span{color:var(--muted)}
.status-fail{color:var(--red);font-weight:900}
.status-pass{color:var(--green);font-weight:900}
.status-nt{color:var(--amber);font-weight:900}

.board-foot{
  padding:13px 17px;
  background:var(--orange2);
  border-top:2px solid var(--ink);
  font:700 .72rem/1.4 "Courier New",monospace;
  text-transform:uppercase;
}

section{
  padding:76px 0;
  border-bottom:1px solid var(--line);
}

.section-head{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:38px;
  margin-bottom:42px;
}

.index{color:var(--orange)}

h2{
  font-size:clamp(2.2rem,4.8vw,4.4rem);
  line-height:.96;
}

.intro{
  max-width:800px;
  color:var(--muted);
  font-size:1.05rem;
  margin:16px 0 0;
}

.triptych,
.levels,
.principles{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  background:var(--white);
  border:2px solid var(--ink);
  padding:24px;
}

.card .micro{
  color:var(--blue);
  margin-bottom:24px;
}

.card h3{
  margin:0 0 10px;
  text-transform:uppercase;
  font-size:1.15rem;
}

.card p{
  margin:0;
  color:var(--muted);
}

.card strong.big{
  display:block;
  font:900 2.3rem/1 "Arial Black",Arial;
  margin:8px 0 12px;
}

.card.fail{
  background:#fff4f1;
  border-color:var(--red);
}

.card.fail .micro{color:var(--red)}

.quad{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.timeline{
  border:2px solid var(--ink);
  background:var(--white);
}

.event{
  display:grid;
  grid-template-columns:120px 180px 1fr;
  gap:20px;
  padding:18px;
  border-bottom:1px solid var(--ink);
  align-items:start;
}

.event:last-child{border-bottom:0}

.event time{
  font:900 .82rem "Courier New",monospace;
}

.event .etype{
  font:900 .78rem "Courier New",monospace;
  text-transform:uppercase;
}

.event p{
  margin:0;
  color:var(--muted);
}

.event.bad .etype{color:var(--red)}
.event.good .etype{color:var(--green)}
.event.info .etype{color:var(--blue)}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  border:2px solid var(--ink);
  background:var(--white);
}

.split>div{
  padding:28px;
  min-height:260px;
}

.split>div+div{
  border-left:2px solid var(--ink);
  background:var(--blue2);
}

.split h3{
  font-family:"Arial Black",Arial;
  text-transform:uppercase;
  font-size:1.9rem;
  line-height:1;
  margin:0 0 18px;
}

.checklist{
  list-style:none;
  padding:0;
  margin:0;
}

.checklist li{
  padding:9px 0;
  border-bottom:1px solid var(--line);
}

.checklist li:last-child{border-bottom:0}

.checklist b{
  font-family:"Courier New",monospace;
}

.lgrid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  border:2px solid var(--ink);
  background:var(--white);
}

.lgrid-five{
  grid-template-columns:repeat(5,1fr);
}

.level{
  padding:18px 14px;
  border-right:1px solid var(--ink);
  min-height:170px;
}

.level:last-child{border-right:0}

.level strong{
  font:900 2rem "Arial Black",Arial;
}

.level span{
  display:block;
  margin-top:12px;
  font-size:.86rem;
  color:var(--muted);
}

.method-note{
  margin-top:24px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-left:5px solid var(--blue);
  background:rgba(255,253,248,.72);
  color:var(--muted);
}

.method-note strong{color:var(--ink)}

.manifesto{
  background:var(--orange);
  color:white;
  border:2px solid var(--ink);
  box-shadow:10px 10px 0 var(--ink);
  padding:38px;
  font:900 clamp(1.8rem,3.6vw,3.5rem)/1 "Arial Black",Arial;
  text-transform:uppercase;
  letter-spacing:-.05em;
}

.manifesto em{
  font-style:normal;
  color:var(--ink);
  background:var(--white);
  padding:0 .08em;
}

.scope{
  background:var(--ink);
  color:white;
}

.scope .index{color:#ff8f6f}
.scope .intro{color:#c8c8c8}

.scope .card{
  background:#242424;
  border-color:#666;
}

.scope .card p{color:#c8c8c8}
.scope .card .micro{color:#ff9d80}

.audit-strip{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  border:2px solid var(--ink);
  background:var(--white);
}

.audit-copy{
  padding:32px;
}

.audit-copy .micro{
  color:var(--orange);
  margin-bottom:18px;
}

.audit-copy h3{
  margin:0 0 14px;
  max-width:760px;
  font:900 clamp(1.8rem,3.5vw,3rem)/1 "Arial Black",Arial;
  text-transform:uppercase;
  letter-spacing:-.04em;
}

.audit-copy p{
  margin:0;
  color:var(--muted);
  max-width:760px;
}

.coming{
  padding:32px;
  background:var(--blue2);
  border-left:2px solid var(--ink);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.coming-label{
  display:inline-block;
  align-self:flex-start;
  margin-bottom:18px;
  padding:6px 8px;
  background:var(--ink);
  color:var(--white);
  font:900 .7rem "Courier New",monospace;
  letter-spacing:.06em;
}

.coming strong{
  font:900 1.65rem/1.05 "Arial Black",Arial;
  text-transform:uppercase;
}

.coming p{
  margin:12px 0 0;
  color:#44516e;
}

.proofchain{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  border:2px solid var(--ink);
  background:var(--white);
}

.proof-step{
  min-height:150px;
  padding:18px 15px;
  border-right:1px solid var(--ink);
}

.proof-step:last-child{border-right:0}

.proof-step span{
  display:block;
  color:var(--orange);
  font:900 .78rem "Courier New",monospace;
}

.proof-step strong{
  display:block;
  margin-top:25px;
  font:900 1.05rem/1.1 "Arial Black",Arial;
  text-transform:uppercase;
}

.proof-step small{
  display:block;
  margin-top:8px;
  color:var(--muted);
}

.cta{
  padding:80px 0;
}

.cta-box{
  border:2px solid var(--ink);
  background:var(--blue);
  color:white;
  padding:44px;
  box-shadow:12px 12px 0 var(--ink);
}

.cta-box h2{max-width:900px}

.cta-box p{
  max-width:760px;
  font-size:1.08rem;
}

.cta-box .btn{
  margin-top:14px;
  background:var(--white);
  color:var(--ink);
}

footer{
  background:var(--ink);
  color:#ddd;
  padding:34px 0;
  font-size:.84rem;
}

.footer-row{
  display:flex;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  align-items:flex-start;
}

.footer-main{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.footer-main strong{color:#fff}

.footer-links{
  display:flex;
  gap:14px 18px;
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width:720px;
  min-height:auto;
  grid-template-columns:none;
}

.footer-links a{
  color:#ddd;
  border-bottom:1px solid #666;
}

.footer-links a:hover{
  color:#fff;
  border-color:#fff;
}

code{
  font-family:"Courier New",monospace;
}

@media(max-width:1000px){
  .proofchain{
    grid-template-columns:repeat(3,1fr);
  }

  .proof-step:nth-child(3){
    border-right:0;
  }

  .proof-step:nth-child(-n+3){
    border-bottom:1px solid var(--ink);
  }
}

@media(max-width:900px){
  .navlinks{display:none}

  .hero-grid,
  .section-head,
  .split,
  .audit-strip{
    grid-template-columns:1fr;
  }

  .triptych,
  .levels,
  .principles,
  .quad{
    grid-template-columns:1fr;
  }

  .hero-grid{gap:42px}

  .split>div+div{
    border-left:0;
    border-top:2px solid var(--ink);
  }

  .coming{
    border-left:0;
    border-top:2px solid var(--ink);
  }

  .lgrid,
  .lgrid-five{
    grid-template-columns:repeat(3,1fr);
  }

  .level{
    border-bottom:1px solid var(--ink);
  }

  .lgrid-five .level:nth-child(3){
    border-right:0;
  }

  .lgrid-five .level:nth-child(4),
  .lgrid-five .level:nth-child(5){
    border-bottom:0;
  }

  .event{
    grid-template-columns:90px 1fr;
  }

  .event p{
    grid-column:1/-1;
  }

  .section-head{gap:14px}
}

@media(max-width:560px){
  .container{
    width:min(calc(100% - 24px),var(--max));
  }

  .topbar span:last-child{display:none}

  nav{
    grid-template-columns:1fr auto;
  }

  .hero{padding-top:48px}

  .summary{
    grid-template-columns:1fr;
  }

  .metric{
    border-right:0;
    border-bottom:1px solid var(--ink);
  }

  .metric:last-child{border-bottom:0}

  .lgrid,
  .lgrid-five{
    grid-template-columns:1fr 1fr;
  }

  .level{
    border-bottom:1px solid var(--ink);
  }

  .level:nth-child(odd){
    border-right:1px solid var(--ink);
  }

  .level:nth-child(even){
    border-right:0;
  }

  .lgrid-five .level:nth-child(3){
    border-right:1px solid var(--ink);
  }

  .lgrid-five .level:nth-child(4){
    border-bottom:1px solid var(--ink);
  }

  .lgrid-five .level:nth-child(5){
    border-right:0;
    border-bottom:0;
  }

  .proofchain{
    grid-template-columns:1fr 1fr;
  }

  .proof-step{
    border-bottom:1px solid var(--ink);
  }

  .proof-step:nth-child(odd){
    border-right:1px solid var(--ink);
  }

  .proof-step:nth-child(even){
    border-right:0;
  }

  .proof-step:nth-last-child(-n+2){
    border-bottom:0;
  }

  .cta-box{padding:28px}
}

/* -- /signup, /checkout, /payment/* (Stripe subscription agent prompt) -------------------- */

.form-wrap{max-width:640px}

.plan-summary{
  border:2px solid var(--ink);
  background:var(--white);
  box-shadow:8px 8px 0 var(--ink);
  padding:20px 22px;
  margin-bottom:28px;
}

.plan-summary .plan-name{
  font:900 .78rem "Courier New",monospace;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--blue);
}

.plan-summary .plan-price{
  font-family:"Arial Black",Arial,sans-serif;
  font-size:2rem;
  letter-spacing:-.03em;
  margin:6px 0 10px;
}

.plan-summary ul{
  margin:0;
  padding:0;
  list-style:none;
  font-size:.92rem;
  color:var(--muted);
}

.plan-summary li{padding:3px 0}

form.stack{display:flex;flex-direction:column;gap:16px}

.field label{
  display:block;
  font:800 .74rem "Courier New",monospace;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:6px;
}

.field input[type=text],
.field input[type=email],
.field input[type=password]{
  width:100%;
  min-height:44px;
  padding:0 12px;
  border:2px solid var(--ink);
  background:var(--white);
  font-size:1rem;
  font-family:inherit;
}

.field input:focus{outline:3px solid var(--blue2)}

.field .err{
  color:var(--red);
  font-size:.82rem;
  font-weight:700;
  margin-top:5px;
}

.field-check{display:flex;align-items:flex-start;gap:10px;font-size:.92rem}
.field-check input{margin-top:4px}

.form-actions{margin-top:6px}

.state-box{
  border:2px solid var(--ink);
  background:var(--white);
  box-shadow:8px 8px 0 var(--ink);
  padding:28px;
  text-align:center;
}

.state-box.pending{box-shadow:8px 8px 0 var(--amber)}
.state-box.active{box-shadow:8px 8px 0 var(--green)}
.state-box.failed,
.state-box.unknown{box-shadow:8px 8px 0 var(--red)}

.state-box h1{font-size:1.9rem;margin-bottom:12px}
.state-box p{color:var(--muted);margin-bottom:18px}

.state-actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-top:18px}
