:root {
  --black: #000;
  --navy: #030a2a;
  --blue: #1340ff;
  --blue-hi: #3d6bff;
  --paper: #fafafa;
  --ink: #0d0d0d;
  --grey: #6b6b6b; /* 5.3:1 on the page background (WCAG AA) */
  --muted: #5e5e66;
  --rule: #e4e4e8;
  --red: #e5322d;
  --green: #0b7d3e; /* 5.2:1 with white text */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; }
code { font-size: .92em; background: #eceef6; padding: .05em .35em; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }

/* buttons: square, electric blue, arrow */
.btn {
  display: inline-flex; gap: .6em; align-items: center;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 500;
  padding: .8em 1.5em; border: 1px solid var(--blue); transition: background .15s;
}
.btn:hover { background: var(--blue-hi); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }

/* header floats over the hero */
.top {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; gap: 2.5rem; padding: 1.4rem clamp(1.2rem, 4vw, 3rem); color: #fff;
}
.brand { display: inline-flex; gap: .5rem; align-items: center; font: 700 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.brand-mark { width: 1rem; height: 1rem; border: 2px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 3px transparent, 6px 0 0 -2px currentColor; }
.top nav { display: flex; gap: 1.8rem; font-size: .9rem; }
.top nav a, .top .quiet { text-decoration: none; opacity: .85; }
.top nav a:hover, .top .quiet:hover { opacity: 1; }
.top-actions { margin-left: auto; display: flex; gap: 1.6rem; align-items: center; font-size: .9rem; }
.top .btn { padding: .65em 1.4em; }

/* hero: headline on the left, "who controls this agent" panel on the right, the agent's mind behind */
.hero {
  position: relative; overflow: hidden; min-height: min(100svh, 860px);
  background: radial-gradient(120% 90% at 50% 100%, #0a1c8c 0%, var(--navy) 45%, var(--black) 80%);
  color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 3rem; align-items: center;
  padding: 8rem clamp(1.2rem, 4vw, 3rem) 4.5rem;
}
.mind { position: absolute; inset: 0; width: 100%; height: 100%; }
.mind .layers use { transform-box: fill-box; transform-origin: center; }
.hero-text { position: relative; max-width: 60rem; }
.hero h1 { margin: 0; font-family: var(--display); text-transform: uppercase; line-height: .86; }
.hero .big { display: block; font-weight: 800; font-size: clamp(5rem, 13vw, 12rem); letter-spacing: .01em; }
.hero .line { display: block; font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 3.3rem); margin-top: .25em; }
.hero .line b { font-weight: 700; }
.lede { text-shadow: 0 1px 12px rgba(0,0,20,.6); max-width: 34rem; margin: 1.6rem 0 1rem; color: rgba(255,255,255,.82); font-size: 1.02rem; }
/* the one live fact on the first screen: what is on-chain right now */
.proofline { max-width: 34rem; margin: 0 0 1.8rem; padding-left: .9rem; border-left: 3px solid var(--blue-hi); color: #fff; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,20,.6); }
.proofline a { color: inherit; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* the control panel: three plain steps, read top to bottom */
.panel { position: relative; background: rgba(3, 8, 32, .78); backdrop-filter: blur(10px); border: 1px solid rgba(120, 150, 255, .28); border-radius: 8px; padding: 1.4rem 1.5rem 1.2rem; text-align: left; }
.panel-q { margin: 0 0 1rem; font: 700 1.6rem/1 var(--display); text-transform: uppercase; }
.psteps { list-style: none; margin: 0; padding: 0; counter-reset: ps; }
.psteps > li { counter-increment: ps; position: relative; padding: 0 0 1.1rem 2.4rem; }
.psteps > li::before { content: counter(ps); position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--blue); font-size: .8rem; font-weight: 600; }
.psteps > li:not(:last-child)::after { content: ""; position: absolute; left: .78rem; top: 1.9rem; bottom: .3rem; border-left: 2px dashed rgba(120, 150, 255, .45); }
.psteps > li:last-child { padding-bottom: 0; }
.psteps b { display: block; font-weight: 600; margin-bottom: .5rem; }
.psteps small, .psteps p { display: block; margin: .5rem 0 0; font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.45; }
.psteps small a { color: #9fb6ff; }
.voters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.voters li { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; padding: .3rem .6rem .3rem .35rem; border-radius: 99px; background: rgba(255,255,255,.08); }
.voters em { font-style: normal; color: rgba(255,255,255,.55); font-size: .74rem; }
.voters .mark { display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; font-size: .7rem; background: rgba(255,255,255,.18); }
.voters .yes .mark { background: var(--green); }
.pterms { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: rgba(120,150,255,.2); border: 1px solid rgba(120,150,255,.2); }
.pterms div { background: rgba(3, 8, 32, .9); padding: .45rem .6rem; }
.pterms dt { font-size: .68rem; color: rgba(255,255,255,.55); }
.pterms dd { margin: .1rem 0 0; font-size: .82rem; font-weight: 600; overflow-wrap: anywhere; }
.pterms .wide { grid-column: 1 / -1; }
.p-tee a { color: #9fb6ff; }
.lock { display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem; font-size: .8rem; color: #ffd27a; text-decoration: none; }
.lock:hover { text-decoration: underline; }
.lock-ico { width: .7rem; height: .55rem; border: 2px solid currentColor; border-radius: 2px; position: relative; margin-top: .3rem; }
.lock-ico::before { content: ""; position: absolute; left: 50%; translate: -50% 0; bottom: 100%; width: .42rem; height: .38rem; border: 2px solid currentColor; border-bottom: 0; border-radius: .3rem .3rem 0 0; }
.state { display: inline-block; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .45rem; border-radius: 3px; margin-right: .35rem; color: #fff; }
.state.on { background: var(--green); }
.demo-note { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid rgba(120,150,255,.2); font-size: .74rem; color: rgba(255,255,255,.55); }
.state.off { background: #6b7280; }

/* sections: a numbered rail on the left, big condensed headings */
.block { position: relative; padding: 7rem clamp(1.2rem, 4vw, 3rem) 6rem calc(clamp(1.2rem, 4vw, 3rem) + 6.5rem); }
.rail { position: absolute; left: clamp(1.2rem, 4vw, 3rem); top: 7.4rem; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; color: var(--blue); font-size: .85rem; }
.rail .tag { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
h2 { margin: 0 0 1.6rem; font: 700 clamp(3rem, 7vw, 5.6rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
h2 .dim { color: var(--grey); }
.sub { max-width: 26rem; color: var(--muted); margin: 0 0 2rem; }
.pool-line { max-width: 26rem; margin: -1rem 0 2rem; font-size: .86rem; color: var(--muted); }
.pool-line a { color: var(--blue); }

/* members: pick one, see their three numbers */
.pick { display: grid; gap: .5rem; font-size: .9rem; max-width: 18rem; }
.pick select { width: 100%; min-width: 0; font: inherit; padding: .85em 1em; border: 1px solid #c9c9d1; background: #fff; border-radius: 0; }
.meters { display: grid; gap: 2rem; padding-top: 1rem; }
.meter .label { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--muted); }
.meter .val { font: 700 clamp(2.6rem, 5vw, 4rem)/1 var(--display); color: var(--ink); }
.meter .track { height: .6rem; background: #e9ebf3; margin-top: .6rem; }
.meter .fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--blue)); width: 0; transition: width .7s cubic-bezier(.2,.7,.2,1); }
.all { margin-top: 4rem; }
.all summary { cursor: pointer; font-weight: 500; color: var(--blue); }

/* tables */
.grid { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .92rem; }
.grid caption { text-align: left; font: 600 1.4rem var(--display); text-transform: uppercase; margin-bottom: .6rem; }
.grid th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--rule); padding: .7rem .6rem; }
.grid td { border-bottom: 1px solid var(--rule); padding: .8rem .6rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--grey); }
.badge { font-size: .78rem; padding: .2em .6em; border: 1px solid currentColor; }
.badge.Paid { color: var(--green); }
.badge.Submitted { color: var(--blue-hi); }
.badge.Disputed, .badge.Refunded { color: var(--red); }

/* live status strip under the hero */
.status { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--black); color: #fff; border-top: 1px solid #1b2142; }
.status div { padding: 1.4rem clamp(1.2rem, 3vw, 2.4rem); border-right: 1px solid #1b2142; }
.status dt { font-size: .78rem; color: #8b93b5; }
.status dd { margin: .3rem 0 0; font: 700 1.9rem/1 var(--display); text-transform: uppercase; }
.status dd small { display: block; margin-top: .35rem; font: 400 .78rem var(--body); text-transform: none; color: #8b93b5; }
.status dd.ok::before, .status dd.warn::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .5rem; vertical-align: .2em; background: var(--green); }
.status dd.warn::before { background: var(--red); }
.counts { grid-template-columns: repeat(6, 1fr); margin: 1.6rem 0; }
.counts div:last-child { border-right: 0; }

/* the co-op loop: five steps, each links to its section */
.loop { background: var(--black); color: #fff; padding: 6rem clamp(1.2rem, 4vw, 3rem) 6.5rem calc(clamp(1.2rem, 4vw, 3rem) + 6.5rem); }
.loop h2 .dim { color: #6f7699; }
.loop ol { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.loop li { counter-increment: step; }
.loop li a { position: relative; display: grid; gap: .7rem; align-content: start; height: 100%; padding: 1.4rem 1.2rem; text-decoration: none; border-top: 2px solid #23294a; transition: border-color .2s, background .2s; }
.loop li a::before { content: counter(step, decimal-leading-zero); color: var(--blue-hi); font-size: .8rem; }
.loop li a::after { content: "→"; position: absolute; right: -.85rem; top: 1.25rem; color: #3a4170; }
.loop li:last-child a::after { content: "↺"; }
.loop li a:hover { border-color: var(--blue); background: rgba(19,64,255,.08); }
.loop li b { font: 700 1.7rem/1 var(--display); text-transform: uppercase; }
.loop li span { font-size: .9rem; color: rgba(255,255,255,.72); }
.loop li small { font-size: .75rem; color: var(--blue-hi); }

/* verify the by-laws in the browser */
.verify { max-width: 30rem; }
.codegov { max-width: 30rem; margin-top: 2rem; }
#bounties, #records { margin-top: 2.5rem; }
#bounties caption .muted, #tasks caption .muted, #records caption .muted { font-weight: 400; font-size: .85rem; }
.task-done { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.task-done input { min-width: 0; flex: 1 1 12rem; padding: .45rem .6rem; border: 1px solid var(--rule); font: inherit; }
.codegov h3 { font-size: 1rem; margin: 0 0 .5rem; }
.codegov p { font-size: .92rem; }
.codegov code { overflow-wrap: anywhere; }
.treasury { font-size: .95rem; max-width: 30rem; overflow-wrap: anywhere; }
.hint { font-size: .82rem; color: var(--muted); margin: .7rem 0 0; }
.match { margin: 0 0 1rem; padding: .8rem 1rem; font-weight: 500; border-left: 4px solid; }
.match.ok { color: #0b6b36; background: #e8f7ee; border-color: var(--green); }
.match.bad { color: #9b1c18; background: #fdecea; border-color: var(--red); }
.hashes { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 1.2rem; font-size: .74rem; }
.hashes dt { color: var(--muted); }
.hashes dd { margin: 0; word-break: break-all; }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 1rem; background: var(--rule); border: 1px solid var(--rule); }
.terms div { background: #fff; padding: .8rem 1rem; }
.terms .wide { grid-column: 1 / -1; }
.terms dt { font-size: .75rem; color: var(--muted); }
.terms dd { margin: .2rem 0 0; font-weight: 600; }
.verify details summary { cursor: pointer; color: var(--blue); font-size: .9rem; }
.verify pre { white-space: pre-wrap; font-size: .76rem; background: #0b0f22; color: #d6dcf5; padding: 1rem; overflow: auto; max-height: 22rem; }

/* by-laws */
.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.versions li { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.4rem 1.6rem; border: 1px solid var(--rule); background: #fff; }
.versions li.current { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); }
.versions .v { font: 700 2.6rem/1 var(--display); }
.versions .meta { color: var(--muted); font-size: .9rem; }
.versions .hash { font-size: .78rem; word-break: break-all; margin: .3rem 0; color: var(--ink); }

/* dark gradient section with the passbook in a phone */
.block.dark { background: linear-gradient(115deg, var(--black) 30%, #061a9a 80%, var(--blue) 115%); color: #fff; }
.block.dark .sub { color: rgba(255,255,255,.75); }
.block.dark h2 .dim { color: #9aa3c4; }
.block.dark .rail { color: var(--blue-hi); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.phone {
  position: relative; margin: 0 auto; width: min(100%, 23rem); min-height: 34rem;
  background: #05070f; border: 10px solid #1d1f27; border-radius: 3rem; padding: 3rem 1.2rem 1.4rem;
  box-shadow: 0 0 0 1px #4a4d58, 0 40px 80px -30px rgba(19,64,255,.6);
}
.notch { position: absolute; top: .7rem; left: 50%; translate: -50%; width: 6.5rem; height: 1.6rem; background: #000; border-radius: 1rem; }
.pb-head { display: flex; justify-content: space-between; gap: 1rem; font: 600 1.15rem var(--display); text-transform: uppercase; padding-bottom: .6rem; border-bottom: 1px solid #262a3a; }
.pb-id { font: 400 .72rem var(--body); text-transform: none; color: #8b93b5; align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ledger th { text-align: left; font-weight: 400; color: #7b83a6; padding: .6rem .2rem; }
.ledger td:first-child { white-space: nowrap; }
.ledger td { padding: .55rem .2rem; border-top: 1px solid #1a1e2e; }
.ledger .num { color: #7fe0a6; }
.ledger .num.out { color: #ff8a80; }
.phone figcaption { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: .72rem; color: #a3aac8; }
.stamp { position: absolute; right: -2rem; bottom: 4.5rem; rotate: -10deg; border: 3px solid var(--blue-hi); color: #fff; background: rgba(19,64,255,.85); padding: .5rem .9rem; font: 700 1rem/1.05 var(--display); text-transform: uppercase; text-align: center; }
.stamp.red { background: rgba(229,50,45,.9); border-color: #ff7a74; }
.grid.on-dark { margin-top: 5rem; }
.grid.on-dark th { color: #8b93b5; border-color: #23294a; }
.grid.on-dark td { border-color: #1b2142; }

/* audit: two tall bars with big numbers */
.bars { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0 2rem; align-items: end; height: 26rem; padding-left: 0; }
.bars .axis { grid-row: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; font-size: .72rem; color: var(--grey); border-right: 1px solid var(--rule); padding-right: .8rem; }
.bar { grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bar .n { font: 700 clamp(2.6rem, 5vw, 4.4rem)/1 var(--display); margin-bottom: .6rem; }
.bar .col { background: linear-gradient(180deg, var(--blue), var(--navy)); min-height: 4px; transition: height .8s cubic-bezier(.2,.7,.2,1); }
.bar.missing .col { background: linear-gradient(180deg, #ff6a63, #7a0f0b); }
.bars .cap { grid-row: 2; padding-top: .7rem; font-size: .85rem; color: var(--muted); }
.verdict { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.4rem; border: 1px solid var(--rule); background: #fff; max-width: 28rem; }
.verdict .seal { font: 800 1.5rem/1 var(--display); padding: .35rem .6rem; color: #fff; background: var(--green); }
.verdict.owed .seal { background: var(--red); }
.verdict p { margin: 0; font-size: .92rem; }
.note { max-width: 28rem; margin: 1rem 0 0; font-size: .84rem; color: var(--muted); }

/* profit share: plan cards, the members' part in blue */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.plan { padding: 2rem 1.8rem; border: 1px solid var(--rule); border-radius: 6px; background: linear-gradient(180deg, #fff 55%, #e6ebff); }
.plan.members { background: linear-gradient(180deg, var(--blue), #071a7a); color: #fff; border-color: transparent; margin-top: 3.5rem; }
.plan h3 { margin: 0 0 .4rem; font: 700 2.2rem/.95 var(--display); text-transform: uppercase; }
.plan .for { margin: 0 0 1.6rem; font-size: .9rem; opacity: .8; }
.plan .pct { font: 400 3.6rem/1 var(--display); }
.plan ul { list-style: none; padding: 0; margin: 1.4rem 0 0; font-size: .9rem; display: grid; gap: .45rem; }
.plan li::before { content: "✓"; color: var(--blue); margin-right: .6rem; }
.plan.members li::before { color: #9fb6ff; }
#periods { margin-top: 5rem; }

/* tasks & trust: three tiers, the trusted one in blue */
.tiers { list-style: none; counter-reset: tier; padding: 0; margin: 0; display: grid; gap: .8rem; }
.tiers li { counter-increment: tier; display: grid; gap: .3rem; padding: 1.1rem 1.3rem; border: 1px solid var(--rule); border-radius: 6px; }
.tiers li:first-child { background: linear-gradient(180deg, var(--blue), #071a7a); color: #fff; border-color: transparent; }
.tiers b { font: 700 1.3rem/1 var(--display); text-transform: uppercase; }
.tiers b::before { content: counter(tier) ". "; opacity: .6; }
.tiers span { font-size: .9rem; }
#tasks { margin-top: 5rem; }
#tasks .claim { display: block; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }

/* closing: headline with a live chip inside it */
.closing {
  background: radial-gradient(110% 80% at 50% 100%, var(--blue) 0%, #071a7a 35%, var(--black) 75%);
  color: #fff; text-align: center; padding: 9rem clamp(1.2rem, 4vw, 3rem) 2rem;
}
.closing h2 { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2em .3em; font-size: clamp(3.2rem, 8vw, 6.5rem); }
.closing .thin { font-weight: 300; }
.chip { display: inline-grid; place-items: center; font: 600 .32em/1.15 var(--body); text-transform: none; padding: .9em 1.3em; background: rgba(19,64,255,.25); border: 1px solid rgba(255,255,255,.35); border-radius: 6px; white-space: nowrap; }
.closing > p { color: rgba(255,255,255,.78); margin: 0 auto 2rem; max-width: 30rem; }
.foot { margin-top: 8rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; text-align: left; border-top: 1px solid rgba(255,255,255,.15); padding-top: 2rem; font-size: .88rem; }
.foot p { margin: .4rem 0 0; color: rgba(255,255,255,.6); }
.foot .links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.foot .links a { color: rgba(255,255,255,.85); }
#net { grid-column: 1 / -1; font-size: .78rem; }
.closing code { background: rgba(255,255,255,.1); color: #fff; }
.join { list-style: none; margin: 0 auto; padding: 0; max-width: 68rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: left; counter-reset: j; }
.join li { counter-increment: j; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; align-content: start; padding: 1.4rem; background: rgba(3,10,42,.6); border: 1px solid rgba(255,255,255,.14); }
.join li::before { content: counter(j); display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--blue); font-weight: 600; font-size: .85rem; }
.join b { font: 700 1.5rem/1 var(--display); text-transform: uppercase; }
.join span { font-size: .88rem; color: rgba(255,255,255,.75); }
.cmd { display: flex; gap: .5rem; align-items: stretch; margin-top: .3rem; }
.cmd code { flex: 1; min-width: 0; padding: .6rem .7rem; font-size: .72rem; background: #000; border-radius: 0; overflow-x: auto; white-space: nowrap; }
.copy { font: 500 .8rem var(--body); padding: 0 .9rem; background: var(--blue); color: #fff; border: 0; cursor: pointer; }
.copy:hover { background: var(--blue-hi); }
.small-link { font-size: .88rem; color: #9fb6ff; }

/* join from the page with a wallet */
.joinapp { max-width: 40rem; margin: 0 auto 2rem; text-align: left; padding: 1.6rem; background: rgba(3,10,42,.7); border: 1px solid rgba(120,150,255,.3); border-radius: 8px; }
.joinapp > p { margin: 0 0 1rem; color: rgba(255,255,255,.8); }
.joinapp .err { color: #ff9a94; }
.joinapp .ok { color: #7ee2a8; }
.who-bar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: .88rem; padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(120,150,255,.2); overflow-wrap: anywhere; }
.linkish { background: none; border: 0; padding: 0; color: #9fb6ff; font: inherit; text-decoration: underline; cursor: pointer; }
.jsteps { list-style: none; margin: 0; padding: 0; counter-reset: js; display: grid; gap: .9rem; }
.jsteps li { counter-increment: js; position: relative; padding-left: 2.4rem; }
.jsteps li::before { content: counter(js); position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; font-size: .8rem; font-weight: 600; background: rgba(255,255,255,.12); }
.jsteps li.now::before { background: var(--blue); }
.jsteps li.done::before { content: "✓"; background: var(--green); }
.jsteps li.todo { opacity: .5; }
.jsteps b { display: block; }
.jsteps div { font-size: .86rem; color: rgba(255,255,255,.75); margin-top: .3rem; }
.jsteps .btn, .joinapp > .btn { margin-top: .6rem; }
.jsteps a, .note-line a { color: #9fb6ff; }
.small { font-size: .84rem; color: rgba(255,255,255,.7); }
.note-line { margin: 1rem 0 0; font-size: .86rem; padding: .7rem .9rem; background: rgba(255,255,255,.06); border-left: 3px solid var(--blue-hi); }
.me-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(120,150,255,.25); border: 1px solid rgba(120,150,255,.25); margin-bottom: 1rem; }
.me-card div { background: rgba(3,8,32,.95); padding: .8rem 1rem; }
.me-card.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .6rem; }
.stake-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.stake-row input { width: 5rem; font: inherit; padding: .5rem; background: #000; color: #fff; border: 1px solid rgba(120,150,255,.4); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.me-card span { display: block; font-size: .74rem; color: rgba(255,255,255,.6); }
.me-card strong { font: 700 1.5rem/1.1 var(--display); }
.jh { font: 700 1.3rem var(--display); text-transform: uppercase; margin: 1.4rem 0 .6rem; }
.props { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.props li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; padding: .6rem .8rem; background: rgba(255,255,255,.05); font-size: .86rem; }
.props em { font-style: normal; color: #7fe0a6; font-size: .8rem; background: #071233; padding: .1rem .45rem; } /* its own ground: a long row can wrap it over a light area */
.props .btn.ghost { background: #071233; } /* same reason: Reject and Give up are white text, transparent by default */
.props .btn.ghost:hover { background: #142463; }
.props li > span:first-child { display: grid; gap: .3rem; min-width: 0; flex: 1 1 18rem; }
.props .does { margin: 0; font-size: .74rem; background: rgba(0,0,0,.35); color: #dfe6ff; padding: .4rem .5rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 12rem; overflow: auto; }
.props .claim { font-size: .76rem; color: rgba(255,255,255,.55); }
.vote-btns { display: flex; gap: .4rem; }
.btn.small { padding: .4em .9em; font-size: .82rem; color: #fff; } /* .small (muted text) must not fade a button */
.cli { max-width: 68rem; margin: 0 auto 2.4rem; text-align: left; }
.cli summary { cursor: pointer; color: #9fb6ff; text-align: center; margin-bottom: 1rem; }


/* the hero tells the story in one sequence (about 2.6 s):
   the agent alone (a rim of light), members wire in one by one, the mind fills with their layers, CO-OWN assembles.
   Scrolling then fans the layers out, the way the reference turns its head. */
.hero { --p: 0; }
.mind .layer { transform-box: fill-box; transform-origin: 30% 100%;
  transform: translate(calc(var(--p) * var(--i) * -34px), calc(var(--p) * var(--i) * 10px)) rotate(calc(var(--p) * var(--i) * -3deg)); }
.mind .rim { fill: none; stroke: #5b84ff; stroke-width: 2.5; opacity: calc(.9 - var(--p) * .6); }
.mind .rim.glow { stroke-width: 10; stroke: #2a5bff; }
.hero-text { translate: 0 calc(var(--p) * -70px); opacity: calc(1 - var(--p) * .7); }
.hero .big { position: relative; }
.hero .big::before, .hero .big::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .mind .rim { stroke-dasharray: 1; animation: draw 1.3s cubic-bezier(.5,0,.2,1) both; }
  .mind .layer use { animation: fill-in 1s calc(1s + var(--i) * .12s) cubic-bezier(.2,.7,.2,1) both; }
  /* the text arrives first (it is the largest paint): the headline at once, the rest half a second later, while the
     rim draws behind it; waiting for the drawing put the first readable words 2 s (4 s on a slow phone) after load */
  .hero .big > span { display: block; animation: slice .7s .1s steps(1, end) both; }
  .hero .big::before { animation: shard-a .7s .1s steps(1, end) forwards; }
  .hero .big::after { animation: shard-b .7s .1s steps(1, end) forwards; }
  .hero .line { animation: up .6s .45s cubic-bezier(.2,.7,.2,1) both; }
  /* the lede, the live line and the buttons are there from the first paint: text that fades in is not counted as
     painted until it has (LCP), and the headline's glitch is the one moment of motion */
  .panel { animation: up .7s 2.3s cubic-bezier(.2,.7,.2,1) both; }
  .psteps > li { animation: up .5s calc(2.6s + var(--k, 0) * .25s) both; }
  .psteps > li:nth-child(2) { --k: 1; }
  .psteps > li:nth-child(3) { --k: 2; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fill-in { from { opacity: 0; translate: -30px 30px; } }
@keyframes pop { from { opacity: 0; scale: 0; } }
@keyframes up { from { opacity: 0; translate: 0 24px; } }
@keyframes fade { from { opacity: 0; } }
/* the headline arrives in horizontal slices that snap into place, like the reference's glitch */
@keyframes slice {
  0% { clip-path: inset(0); } /* whole at first paint: the headline is the largest paint (LCP), and a hidden start is never counted */
  12% { clip-path: inset(0 0 62% 0); translate: -18px 0; }
  24% { clip-path: inset(38% 0 30% 0); translate: 14px 0; }
  36% { clip-path: inset(0 0 40% 0); translate: -6px 0; }
  50% { clip-path: inset(20% 0 0 0); translate: 8px 0; }
  64% { clip-path: inset(0 0 12% 0); translate: -3px 0; }
  78% { clip-path: inset(0); translate: 2px 0; }
  100% { clip-path: inset(0); translate: 0 0; }
}
@keyframes shard-a {
  0% { opacity: 1; clip-path: inset(62% 0 18% 0); translate: 26px 0; }
  24% { clip-path: inset(70% 0 8% 0); translate: -22px 0; }
  50% { clip-path: inset(8% 0 80% 0); translate: 16px 0; }
  78% { opacity: 1; clip-path: inset(88% 0 0 0); translate: -6px 0; }
  100% { opacity: 0; }
}
@keyframes shard-b {
  0% { opacity: .5; clip-path: inset(30% 0 52% 0); translate: -34px 0; color: var(--blue-hi); }
  36% { clip-path: inset(46% 0 40% 0); translate: 20px 0; }
  64% { opacity: .5; clip-path: inset(12% 0 82% 0); translate: -10px 0; }
  100% { opacity: 0; }
}
@keyframes pulse { 50% { opacity: .55; } }
@keyframes lit { from { fill: #3d6bff; filter: none; } }
@keyframes ring { 50% { scale: 1.35; opacity: .5; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 6.5rem; }
  .top nav { display: none; }
  .split, .plans { grid-template-columns: minmax(0, 1fr); }
  .plan.members { margin-top: 0; }
  .block { padding: 5rem 1.2rem 4rem 4.2rem; }
  .rail { left: 1rem; top: 5.3rem; }
  .status { grid-template-columns: 1fr 1fr; }
  .counts { grid-template-columns: repeat(3, 1fr); }
  .loop { padding: 4.5rem 1.2rem; }
  .loop ol { grid-template-columns: 1fr; }
  .loop li a::after { display: none; }
  .join { grid-template-columns: 1fr; }
  .bars { height: 20rem; }
  .stamp { right: -.4rem; bottom: -1.4rem; }
  .grid { font-size: .82rem; }
}
@media (max-width: 560px) {
  .counts { grid-template-columns: 1fr 1fr; }
  .me-card { grid-template-columns: 1fr; }
  .who-bar { flex-direction: column; align-items: flex-start; }
  .top-actions .quiet { display: none; }
  .grid thead { display: none; }
  .grid tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: .6rem 0; border-bottom: 1px solid var(--rule); }
  .grid td { border: 0; padding: .25rem .2rem; text-align: left; overflow-wrap: anywhere; }
  .grid td:first-child { grid-column: 1 / -1; font-weight: 500; }
  .grid td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--grey); }
  .grid.on-dark tr { border-color: #1b2142; }
  .foot { grid-template-columns: 1fr; }
}

/* 404 */
.notfound { max-width: 40rem; margin: 0 auto; padding: 18vh 1.5rem 6rem; }
.notfound h1 { font: 700 clamp(2.4rem, 7vw, 4.5rem)/1 var(--display); margin: 0 0 1rem; }

/* "Don't trust us": four checks the visitor's browser runs */
.checks { padding: 5rem clamp(1.2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.checks h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.checks .sub { max-width: 44rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.check-list > li { position: relative; padding: 1.3rem 1.3rem 1.3rem 3.1rem; background: #fff; border: 1px solid var(--rule); min-width: 0; }
.check-list > li::before { content: "…"; position: absolute; left: 1.1rem; top: 1.2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; color: #fff; background: var(--grey); }
.check-list > li.pass { border-color: var(--green); box-shadow: inset 4px 0 0 var(--green); }
.check-list > li.pass::before { content: "✓"; background: var(--green); }
.check-list > li.fail { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.check-list > li.fail::before { content: "!"; background: #b3261e; }
.check-list b { display: block; font: 700 1.35rem/1.1 var(--display); text-transform: uppercase; margin-bottom: .4rem; }
.check-list p, .ck-out { font-size: .9rem; color: var(--muted); margin: 0 0 .6rem; overflow-wrap: anywhere; }
.check-list .btn { font-size: .9rem; padding: .6em 1em; }
#ck-tee { grid-column: 1 / -1; }
.ck-scroll { overflow-x: auto; }
.ck-table { border-collapse: collapse; font-size: .82rem; margin: .4rem 0; min-width: 32rem; }
.ck-table th, .ck-table td { text-align: left; padding: .3rem .7rem .3rem 0; border-bottom: 1px solid var(--rule); }
.ck-table td { font-variant-numeric: tabular-nums; }
.versus { margin-top: 2.5rem; min-width: 46rem; background: #fff; }
.versus th[scope="row"] { font-weight: 600; color: var(--ink); width: 14rem; }
.versus td, .versus th { vertical-align: top; padding: .8rem .7rem; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.versus td:last-child { background: #f1f4ff; }
.versus caption { text-align: left; font-weight: 600; padding-bottom: .6rem; }

/* live activity (live.js) */
.live .sub { max-width: 40rem; }
.live-list { list-style: none; margin: 1rem 0 0; padding: 0; max-width: 46rem; }
.live-list li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: .8rem; align-items: baseline; padding: .55rem 0; border-top: 1px solid var(--rule); }
.live-list time { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.live-list a { font-size: .82rem; }
.live-list li.new { animation: live-in 1.2s ease-out; }
@keyframes live-in { from { background: color-mix(in srgb, var(--blue) 14%, transparent); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .live-list li.new { animation: none; } }
@media (max-width: 640px) { .live-list li { grid-template-columns: 1fr auto; } .live-list time { grid-column: 1 / -1; } }
.src-card { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--rule); border-radius: 6px; }
.src-card h4 { margin: 0 0 .4rem; font-size: .95rem; }
.src-card p { margin: 0 0 .5rem; }

[hidden] { display: none !important; }
.src-card pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: .78rem; }
.cert-token { display: block; max-width: 100%; height: auto; margin-top: .6rem; border-radius: 6px; }

/* what needs the member now (wallet panel) */
.inbox { border-left: 4px solid var(--gold, #ffd54a); padding: 4px 0 4px 14px; margin: 8px 0 16px; }
.inbox ul { margin: 6px 0; padding-left: 18px; }
.inbox li { margin: 4px 0; }

