:root{
  --indigo:#1b1440; --paper:#f1eee7; --paper-2:#e8e3d8;
  --teal:#0ea5a3; --teal-dark:#0a7a78; --gold:#c99a3a;
  --grey:#5a5470; --grey-2:#8a8598; --red:#b23a3a;
  --line:rgba(27,20,64,0.14);
  --max:1080px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--paper); color:var(--indigo);
  font-family:'IBM Plex Sans',sans-serif; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:'Zilla Slab',serif; font-weight:700; color:var(--indigo); margin:0;}
a{color:var(--teal-dark);}
.mono{font-family:'IBM Plex Mono',monospace;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 28px;}
:focus-visible{outline:2px solid var(--teal-dark); outline-offset:3px;}

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:50; background:rgba(241,238,231,0.92);
  backdrop-filter:blur(6px); border-bottom:1px solid var(--line);
}
.nav .wrap{display:flex; align-items:center; justify-content:space-between; padding:16px 28px;}
.nav .logo{font-family:'Zilla Slab',serif; font-weight:700; font-size:20px; color:var(--indigo); letter-spacing:0.3px; text-decoration:none;}
.nav .logo span{color:var(--teal-dark);}
.nav-links{display:flex; align-items:center; gap:28px;}
.nav-links a{color:var(--grey); text-decoration:none; font-size:14.5px; font-weight:500;}
.nav-links a:hover{color:var(--teal-dark);}
.btn{
  display:inline-block; background:var(--teal-dark); color:#fff !important; text-decoration:none;
  font-weight:600; font-size:14.5px; padding:11px 22px; border-radius:5px; border:none; cursor:pointer;
  transition:background .15s ease, transform .15s ease;
}
.btn:hover{background:var(--indigo); transform:translateY(-1px);}
.btn-ghost{
  display:inline-block; background:transparent; color:var(--indigo) !important; text-decoration:none;
  font-weight:600; font-size:14.5px; padding:10px 20px; border-radius:5px; border:1.5px solid var(--indigo);
}
.btn-ghost:hover{border-color:var(--teal-dark); color:var(--teal-dark) !important;}

/* ---------- Hero ---------- */
.hero{padding:76px 0 64px;}
.hero-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;}
.eyebrow{
  font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:1.2px; text-transform:uppercase;
  color:var(--teal-dark); font-weight:600; margin-bottom:14px; display:block;
}
.hero h1{font-size:44px; line-height:1.12; letter-spacing:-0.5px;}
.hero p.lede{font-size:17.5px; color:var(--grey); margin:20px 0 30px; max-width:52ch;}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}

/* Ledger card (signature element) */
.ledger-card{
  background:#fff; border:1px solid var(--line); border-radius:10px; padding:22px 24px 18px;
  box-shadow:0 18px 40px -18px rgba(27,20,64,0.35);
}
.ledger-card .lc-head{
  display:flex; justify-content:space-between; font-family:'IBM Plex Mono',monospace;
  font-size:11px; text-transform:uppercase; letter-spacing:0.8px; color:var(--grey-2);
  border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:4px;
}
.lc-row{display:grid; grid-template-columns:1.6fr 0.7fr 0.7fr; gap:8px; align-items:baseline; padding:11px 0; border-bottom:1px dashed var(--line); font-size:13.5px;}
.lc-row:last-of-type{border-bottom:none;}
.lc-row .item{color:var(--indigo);}
.lc-row .invoiced{font-family:'IBM Plex Mono',monospace; color:var(--grey-2); text-decoration:line-through; text-align:right;}
.lc-row .allowable{font-family:'IBM Plex Mono',monospace; color:var(--teal-dark); font-weight:600; text-align:right;}
.lc-total{display:flex; justify-content:space-between; align-items:baseline; margin-top:12px; padding-top:12px; border-top:2px solid var(--indigo);}
.lc-total .label{font-size:12.5px; color:var(--grey); text-transform:uppercase; letter-spacing:0.6px; font-family:'IBM Plex Mono',monospace;}
.lc-total .amount{font-family:'IBM Plex Mono',monospace; font-weight:700; font-size:20px; color:var(--red);}

/* ---------- Sections ---------- */
section{padding:64px 0;}
.section-head{max-width:640px; margin:0 0 40px;}
.section-head .eyebrow{margin-bottom:10px;}
.section-head h2{font-size:30px; letter-spacing:-0.3px;}
.section-head p{color:var(--grey); font-size:16px; margin-top:12px;}

.divider{height:1px; background:var(--line); border:none; margin:0;}
.divider-gold{height:3px; background:var(--gold); border:none; margin:0; width:64px; border-radius:2px;}

/* Problem stat row */
.stat-row{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:8px;}
.stat-card{background:#fff; border:1px solid var(--line); border-radius:8px; padding:22px 20px;}
.stat-card .stat-num{font-family:'IBM Plex Mono',monospace; font-size:26px; font-weight:700; color:var(--teal-dark);}
.stat-card .stat-label{font-size:13.5px; color:var(--grey); margin-top:6px;}
.stat-card .stat-src{font-size:11px; color:var(--grey-2); margin-top:10px; font-style:italic;}

/* Ledger steps (how it works) */
.steps{margin-top:8px;}
.step-row{display:grid; grid-template-columns:56px 1fr; gap:20px; padding:22px 0; border-bottom:1px solid var(--line);}
.step-row:last-child{border-bottom:none;}
.step-num{font-family:'IBM Plex Mono',monospace; font-size:22px; font-weight:700; color:var(--gold);}
.step-row h3{font-size:18px; margin-bottom:6px;}
.step-row p{color:var(--grey); font-size:15px; margin:0; max-width:56ch;}

/* Stakes */
.stakes{display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:8px;}
.stake-card{border-radius:8px; padding:24px 22px; background:#fff; border:1px solid var(--line); border-top:4px solid var(--teal);}
.stake-card.neg{border-top-color:var(--red);}
.stake-eyebrow{font-family:'IBM Plex Mono',monospace; font-size:11.5px; text-transform:uppercase; letter-spacing:0.8px; font-weight:700; color:var(--teal-dark);}
.stake-card.neg .stake-eyebrow{color:var(--red);}
.stake-card p{margin:8px 0 0; color:var(--indigo); font-size:15px;}

/* Model / trust */
.trust-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:8px;}
.trust-card h3{font-size:16.5px; margin-bottom:8px;}
.trust-card p{color:var(--grey); font-size:14.5px; margin:0;}

/* FAQ */
.faq-list{margin-top:8px;}
.faq-item{padding:22px 0; border-bottom:1px solid var(--line);}
.faq-item:last-child{border-bottom:none;}
.faq-item h3{font-size:17px; margin-bottom:8px;}
.faq-item p{color:var(--grey); font-size:15px; margin:0; max-width:64ch;}
.faq-item p a{color:var(--teal-dark);}

/* CTA band */
.cta-band{background:var(--indigo); border-radius:12px; padding:48px 40px; text-align:center;}
.cta-band h2{color:#fff; font-size:28px;}
.cta-band p{color:var(--paper-2); max-width:56ch; margin:14px auto 26px; font-size:15.5px;}

/* Footer */
footer{border-top:1px solid var(--line); padding:36px 0; margin-top:20px;}
footer .wrap{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;}
footer .f-logo{font-family:'Zilla Slab',serif; font-weight:700; color:var(--teal-dark); font-size:15px;}
footer .f-links{display:flex; gap:22px;}
footer .f-links a{color:var(--grey); text-decoration:none; font-size:13.5px;}
footer .f-links a:hover{color:var(--teal-dark);}
footer .f-note{color:var(--grey-2); font-size:12.5px; margin-top:6px;}

/* Legal pages */
.legal{padding:56px 0 80px;}
.legal h1{font-size:32px; margin-bottom:6px;}
.legal .updated{color:var(--grey-2); font-size:13px; margin-bottom:34px;}
.legal h2{font-size:19px; margin:34px 0 10px;}
.legal p, .legal li{color:var(--grey); font-size:15px;}
.legal .callout{background:#fff; border:1px solid var(--line); border-left:4px solid var(--gold); border-radius:6px; padding:16px 18px; font-size:14px; color:var(--indigo); margin-bottom:28px;}

@media (max-width:860px){
  .hero-grid{grid-template-columns:1fr;}
  .stat-row, .stakes, .trust-grid{grid-template-columns:1fr;}
  .hero h1{font-size:34px;}
  .nav-links{display:none;}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .btn, .btn:hover{transition:none; transform:none;}
}
