/* Hall: white paper, black ink doodles with a few red, blue and lime fills, a serif headline, dark pill buttons. */
:root {
  --paper: #ffffff;
  --paper-2: #f8f6f2;
  --paper-3: #f1ede6;
  --ink: #1d1714;
  --ink-2: #3f3732;
  --muted: #6b625c;
  --soft: #9a918a;
  --hair: #e8e2da;
  --hair-2: #d9d1c7;
  --pill: #2a1f1a;
  --pill-ink: #ffffff;
  --red: #ef4f2f;
  --blue: #8fb6ec;
  --lime: #c8dc5a;
  --up: #1d7a43;
  --down: #c2381c;
  --code: #1d1714;
  --code-ink: #f3eee7;
  --code-dim: #a99f95;
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 14px;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110f;
    --paper-2: #1b1714;
    --paper-3: #241f1b;
    --ink: #f4efe9;
    --ink-2: #ddd5cc;
    --muted: #b3a99f;
    --soft: #8a8078;
    --hair: #2e2823;
    --hair-2: #3d352f;
    --pill: #f4efe9;
    --pill-ink: #1d1714;
    --red: #f2603f;
    --blue: #7ea6dc;
    --lime: #b9cc4f;
    --up: #5cc98a;
    --down: #ff7a5c;
    --code: #0d0b0a;
    --code-ink: #efe9e1;
    --code-dim: #9a9088;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 22px; }
p { margin: 0 0 14px; }
[hidden] { display: none !important; }
code, pre, kbd { font-family: var(--mono); }
code { font-size: 0.88em; background: var(--paper-3); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--pill); color: var(--pill-ink); padding: 10px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up { color: var(--up); }
.down { color: var(--down); }
.ink-fill { fill: var(--ink); }
.doodle { color: var(--ink); }
.doodle * { vector-effect: non-scaling-stroke; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.top .bar { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 21px/1 var(--serif); white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.navlinks { display: flex; gap: 4px; margin-left: auto; }
.navlinks a { text-decoration: none; color: var(--muted); font-size: 15.5px; padding: 10px 12px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; }
.navlinks a:hover { color: var(--ink); background: var(--paper-3); }
.launch-row { padding: 0; }
@media (max-width: 860px) { .navlinks .hide-md { display: none; } }
@media (max-width: 560px) { .navlinks .hide-sm { display: none; } .navlinks a { padding: 10px 8px; } .brand span { display: none; } .top .bar { gap: 8px; } }

/* ---------------------------------------------------------------- buttons and fields */
.btn { --b: var(--hair-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--b); background: var(--paper); color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, background .12s ease; }
.btn:hover { background: var(--paper-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
.btn.primary:hover { background: color-mix(in srgb, var(--pill) 86%, var(--red)); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.big { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { border-color: transparent; background: transparent; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea, input.in, select.in { font: 500 16px/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--hair-2); border-radius: 12px; min-height: 46px; padding: 10px 14px; width: 100%; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 45%, transparent); }
.status { font-size: 14px; color: var(--muted); margin: 8px 0 0; min-height: 1.4em; }
.status.good { color: var(--up); }
.status.err { color: var(--down); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-3); gap: 2px; }
.seg button { font: 600 14px/1 var(--sans); border: 0; background: transparent; color: var(--muted); padding: 0 16px; min-height: 38px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--hair-2), 0 0 0 1px var(--hair-2); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 46px 0 0; text-align: center; }
.hero .doodles { position: absolute; inset: 0 0 auto 0; height: 470px; pointer-events: none; }
.hero .doodles svg { position: absolute; }
.hero-copy { position: relative; max-width: 700px; margin: 0 auto; padding: 72px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--sans); color: var(--ink-2); background: var(--paper); border: 1.5px solid var(--hair-2); padding: 8px 14px; border-radius: 999px; min-height: 36px; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink) inset; }
.chip .dot.live { background: var(--red); }
@media (max-width: 440px) { .ey-more { display: none; } }
h1 { font-size: clamp(38px, 6.2vw, 66px); margin: 22px 0 18px; }
h1 .grey { color: var(--soft); display: block; }
@media (prefers-color-scheme: dark) { h1 .grey { color: #9c928a; } }
.lede { font-size: clamp(17px, 2.1vw, 19px); color: var(--ink-2); max-width: 600px; margin: 0 auto 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; justify-content: center; }
.cta .aside { text-align: left; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.cta .aside b { display: block; color: var(--ink); font-weight: 600; }
.install { margin: 26px auto 0; max-width: 640px; text-align: left; }
.hero-token { max-width: 640px; margin: 22px auto 0; text-align: left; }
.ground { position: relative; max-width: 980px; margin: 18px auto 0; height: 150px; }
.ground svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* ---------------------------------------------------------------- code blocks */
.code { position: relative; background: var(--code); color: var(--code-ink); border-radius: var(--r); font: 500 13.5px/1.6 var(--mono); }
.code pre { margin: 0; padding: 14px 92px 14px 16px; overflow-x: auto; white-space: pre; }
.code .label { display: block; padding: 10px 84px 0 16px; font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--code-dim); }
.code .copy { position: absolute; top: 9px; right: 9px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #ffffff2e; background: #ffffff12; color: var(--code-ink); font: 600 12.5px/1 var(--sans); cursor: pointer; }
.code .copy:hover { background: #ffffff26; }
.code .label + pre { padding-top: 8px; }
.code code { background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.code .c { color: var(--code-dim); }
.code .k { color: #c8dc5a; }
.code .s { color: #f7b7a3; }
.code.wrapline pre { white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- sections */
.section { padding: 84px 0 0; }
.section:last-of-type { padding-bottom: 84px; }
.head { max-width: 760px; margin-bottom: 30px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow svg { width: 22px; height: 22px; }
.head p { color: var(--ink-2); font-size: 18px; margin-top: 14px; }
.card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 20px; padding: 24px; min-width: 0; }
.card.soft { border-color: var(--hair-2); background: var(--paper-2); }
.card h3 { margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); white-space: nowrap; }
.tag.lime { background: var(--lime); color: #1d1714; }
.tag.blue { background: var(--blue); color: #1d1714; }
.tag.red { background: var(--red); color: #fff; }
.tag.outline { background: transparent; border: 1.5px dashed var(--hair-2); color: var(--muted); }

/* ---------------------------------------------------------------- how it works */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .how { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how .card { border-color: var(--hair-2); }
.how svg { width: 76px; height: 66px; margin-bottom: 8px; }
.how .num { font: 600 13px/1 var(--mono); color: var(--muted); }
.how h3 { font-size: 21px; margin: 6px 0 8px; }
.how p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.rules { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 900px) { .rules { grid-template-columns: minmax(0, 1fr); } }
.rules ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }

/* ---------------------------------------------------------------- agents */
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .agents-grid { grid-template-columns: minmax(0, 1fr); } }
.agents-grid .card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools code { background: var(--paper-3); font-size: 13px; padding: 6px 10px; border-radius: 999px; }
.linklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.linklist a { font-weight: 600; }

/* ---------------------------------------------------------------- token */
.token-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .token-grid { grid-template-columns: minmax(0, 1fr); } }
.addr-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.addr-row:last-child { border-bottom: 0; }
.addr-row .k { color: var(--muted); min-width: 120px; }
.addr-row .a { font: 500 13.5px/1.3 var(--mono); overflow-wrap: anywhere; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------------------------------------------------------------- faq and changelog */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1.5px solid var(--hair-2); border-radius: 16px; padding: 0 20px; background: var(--paper); }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; list-style: none; font: 400 20px/1.3 var(--serif); padding: 18px 30px 18px 0; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font: 400 26px/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-2); padding-bottom: 6px; }
.changelog { border-left: 2px solid var(--ink); padding-left: 24px; max-width: 860px; display: grid; gap: 26px; }
.release { position: relative; }
.release::before { content: ''; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink); }
.release .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.release .meta .ver { font: 700 14px/1 var(--mono); }
.release ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1.5px solid var(--ink); margin-top: 90px; padding: 34px 0 40px; background: var(--paper-2); }
footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; }
@media (max-width: 820px) { footer .cols { grid-template-columns: minmax(0, 1fr); } }
footer h4 { font: 600 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
footer ul a { display: inline-flex; min-height: 32px; align-items: center; }
footer .rules-list li { color: var(--ink-2); font-size: 14.5px; }
footer .fine { margin-top: 26px; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 34px; }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs nav.toc { position: static !important; } }
.docs nav.toc { position: sticky; top: 140px; align-self: start; display: grid; gap: 2px; font-size: 15px; }
.docs nav.toc .grp { font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.docs nav.toc a { text-decoration: none; color: var(--ink-2); padding: 7px 10px; border-radius: 8px; min-height: 36px; display: flex; align-items: center; }
.docs nav.toc a:hover { background: var(--paper-3); color: var(--ink); }
.doc { min-width: 0; max-width: 820px; }
.doc section { padding: 10px 0 34px; border-bottom: 1px solid var(--hair); margin-bottom: 30px; }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 14px; }
.doc h3 { margin: 26px 0 10px; font-size: 21px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 6px; }
.doc .code { margin: 12px 0 16px; }
.endpoint { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 26px 0 8px; }
.endpoint .m { font: 700 12px/1 var(--mono); padding: 6px 9px; border-radius: 8px; background: var(--lime); color: #1d1714; }
.endpoint .m.post { background: var(--red); color: #fff; }
.endpoint code { font-size: 15px; background: transparent; padding: 0; }
.callout { border: 1.5px solid var(--ink); border-radius: 16px; padding: 16px 18px; background: var(--paper-2); margin: 14px 0; }
.callout b { font-weight: 600; }

/* ---------------------------------------------------------------- deploy page */
.deploy-step { font: 400 22px/1.2 var(--serif); margin: 18px 0 10px; }
.deploy-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.deploy-form .field { margin-bottom: 12px; }
.deploy-form .actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.deploy-form pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 500 12.5px/1.5 var(--mono); background: var(--paper-2); border: 1px solid var(--hair-2); border-radius: 12px; padding: 12px; }
main .rules-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.deploy-note { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.deploy-form .deploy-step:first-child { margin-top: 0; }
@media (max-width: 900px) { .deploy-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- doodle motion */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-3deg); } }
.bob { animation: bob 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bob.d2 { animation-duration: 6.5s; animation-delay: -2s; }
.bob.d3 { animation-duration: 7.5s; animation-delay: -4s; }
@media (max-width: 1360px) { .hero .doodles svg > :not(.sm) { display: none; } } /* the lower doodles reach the headline below this width */
@media (max-width: 760px) {
  .hero .doodles svg { width: 200px !important; height: 236px !important; top: 4px !important; }
  .hero .doodles svg > :not(.sm) { display: none; }
  .hero-copy { padding-top: 84px; }
}

/* token & Pons details (core/launch.js fills the three data-launch slots from the dashboard) */
.top .lp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-height: 42px; padding: 7px 0; border-top: 1px solid var(--hair); font: 500 13px/1.3 var(--sans); color: var(--ink-2); }
.lp-top .lbar-k { font-weight: 600; color: var(--ink); }
.lp-top .lbar-a, .lp-foot .lbar-a, .lp-hero .lbar-a { font: 500 13px/1.3 var(--mono); color: var(--ink); }
.lp .lbar-btn { border: 1.5px solid var(--hair-2); border-radius: 999px; font: 600 12px/1 var(--sans); min-height: 30px; padding: 0 12px; color: var(--ink); background: var(--paper); }
.lp .lbar-btn:hover { background: var(--paper-3); }
.lp-top .lbar-buy { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); padding: 6px 14px; }
.lp-top .lbar-buy:hover { background: color-mix(in srgb, var(--pill) 86%, var(--red)); }
.lp-top .lbar-item:last-child { margin-left: auto; }
.lp a:not(.btn):not(.lbar-buy) { color: var(--ink); }
.lp a.lbar-ok, .lp .lbar-ok { color: var(--up); }
.hero-token .lp-hero { border: 1.5px solid var(--ink); border-radius: 20px; padding: 18px 20px; background: var(--paper); box-shadow: 6px 6px 0 var(--lime); }
.hero-token .lp-ca { font-size: 14px; }
.hero-token .lp-ca .lbar-k { display: block; width: 100%; font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero-token .lp-ca .lbar-a { font-size: 14.5px; font-weight: 600; }
.hero-token .lp-acts .btn.big { min-height: 48px; }
.hero-token .lp-more { padding-top: 10px; border-top: 1px dashed var(--hair-2); color: var(--muted); }
footer .lp-foot { gap: 6px 18px; padding-bottom: 16px; border-bottom: 1px solid var(--hair-2); font: 500 13.5px/1.4 var(--sans); color: var(--ink-2); }
footer .lp-foot .lbar-k { font-weight: 600; color: var(--ink); }
footer .lp-foot a { min-height: 32px; display: inline-flex; align-items: center; }
@media (max-width: 560px) {
  .top .lp-top { gap: 4px 12px; font-size: 12.5px; }
  .lp-top .lbar-item:last-child { margin-left: 0; }
  .hero-token .lp-hero { padding: 14px; box-shadow: 4px 4px 0 var(--lime); }
  .hero-token .lp-acts .btn { width: 100%; }
  .hero-token .lp-ca .lbar-a { font-size: min(14.5px, 3.2vw); }
  .code:not(.policy-sheet) pre { white-space: pre-wrap; padding-right: 16px; }
  .code:not(.policy-sheet) code { overflow-wrap: anywhere; }
  .code:not(.policy-sheet):not(:has(.label)) pre { padding-top: 50px; }
  .code:not(.policy-sheet) .label + pre { padding-top: 22px; }
}

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--paper); margin-top: 6px; }
.stat { padding: 16px 18px; border-right: 1px solid var(--hair-2); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat .v { font: 400 26px/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .k { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat:nth-child(3n) { border-right: 0; } .stat:nth-child(-n+3) { border-bottom: 1px solid var(--hair-2); } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat { border-right: 1px solid var(--hair-2) !important; border-bottom: 1px solid var(--hair-2); } .stat:nth-child(2n) { border-right: 0 !important; } .stat:nth-last-child(-n+2) { border-bottom: 0; } .stat .v { font-size: 22px; } }

/* ---------------------------------------------------------------- tables and key/value rows */
.kv-list { display: grid; gap: 8px; margin-top: 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.kv > span:first-child { color: var(--muted); flex: none; }
.kv b { font-weight: 600; font-size: 14px; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.kv b code { font-size: 13px; }
.table-wrap { overflow-x: auto; border-radius: 14px; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; font: 600 12px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td code { white-space: nowrap; }
table.t td.num, table.t th.num { text-align: right; font-family: var(--mono); font-size: 14px; white-space: nowrap; }
table.t.answers td { vertical-align: top; font-size: 14.5px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.plain li { overflow-wrap: anywhere; }
h4.mini { font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.stack { display: grid; gap: 12px; }
.hero-note { font-size: 14.5px; color: var(--ink-2); margin: 16px auto 0; max-width: 560px; }
.hero-note b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- try it: the sample vault */
.try { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .try { grid-template-columns: minmax(0, 1fr); } }
.try-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.try-head h3 { margin: 0; }
.approaches { display: grid; gap: 8px; }
.appr { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 50px; padding: 10px 12px 10px 16px; border-radius: 14px; border: 1.5px solid var(--hair-2); background: var(--paper); color: var(--ink); font: 500 15px/1.35 var(--sans); cursor: pointer; }
.appr:hover { border-color: var(--ink); }
.appr[aria-pressed="true"] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--lime); }
.appr .appr-t { min-width: 0; }
.custom { margin-top: 16px; border-top: 1.5px dashed var(--hair-2); padding-top: 12px; }
.custom summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.custom form { margin-top: 10px; }
.ruling-card { min-height: 320px; }
.ruling-title { font: 400 22px/1.25 var(--serif); margin: 0 0 14px; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.verdict-word { font: 400 40px/1 var(--serif); }
.v-pass .verdict-word { color: var(--up); }
.v-hold .verdict-word { color: #2d5f9e; }
.v-refuse .verdict-word { color: var(--down); }
@media (prefers-color-scheme: dark) { .v-hold .verdict-word { color: var(--blue); } }
.verdict-msg { margin: 10px 0 16px; color: var(--ink-2); }
.corridor { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.door { border: 1.5px solid var(--ink); border-radius: 14px; padding: 10px 10px 12px; display: grid; gap: 2px; justify-items: start; position: relative; background: var(--paper); min-width: 0; }
.door svg { width: 36px; height: 36px; margin-bottom: 4px; }
.door-n { font: 600 11px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.door-name { font: 400 15.5px/1.2 var(--serif); }
.door-state { font: 700 11px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; margin-top: 6px; padding: 5px 8px; border-radius: 999px; }
.door.is-pass .door-state { background: var(--lime); color: #1d1714; }
.door.is-stop { box-shadow: 4px 4px 0 var(--red); }
.door.is-stop .door-state { background: var(--red); color: #fff; }
.door.is-hold { box-shadow: 4px 4px 0 var(--blue); }
.door.is-hold .door-state { background: var(--blue); color: #1d1714; }
.door.is-skip { border-style: dashed; border-color: var(--hair-2); opacity: .62; }
.door.is-skip .door-state { background: var(--paper-3); color: var(--muted); }
@media (max-width: 560px) { .corridor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sim { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; background: var(--paper-2); border-left: 3px solid var(--lime); overflow-wrap: anywhere; }
.sim.bad { border-left-color: var(--red); }
.sim b { font-weight: 600; }
.sample-policy { margin-top: 20px; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 980px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- problem, status */
.problem .num { font: 400 22px/1 var(--serif); color: var(--red); }
.problem h3 { margin: 8px 0 8px; }
.problem p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: ph; }
.ph { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 16px 14px 56px; border: 1.5px solid var(--hair-2); border-radius: 16px; background: var(--paper); counter-increment: ph; }
.ph::before { content: counter(ph, upper-roman); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 400 14px/1 var(--serif); background: var(--paper); }
.ph.done::before { background: var(--lime); color: #1d1714; }
.ph.todo { border-style: dashed; }
.ph b { font-weight: 600; grid-column: 1; }
.ph span { grid-column: 1; color: var(--ink-2); font-size: 15px; }
.ph em { grid-column: 2; grid-row: 1 / span 2; align-self: start; font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--paper-3); color: var(--muted); white-space: nowrap; }
.ph.done em { background: var(--lime); color: #1d1714; }
.ph.todo em { background: transparent; border: 1.5px dashed var(--red); color: var(--down); }
@media (max-width: 520px) { .ph { grid-template-columns: minmax(0, 1fr); } .ph em { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; } }
.caps-card h3 { margin-bottom: 6px; }
.cap-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.cap-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--hair-2); }
.cap-list li span { color: var(--muted); font-weight: 600; }
.cap-list li b { font: 400 26px/1 var(--serif); }

/* ---------------------------------------------------------------- vault desk */
.desk-head { padding: 40px 0 6px; }
.desk-head h1 { font-size: clamp(34px, 5vw, 54px); margin: 10px 0 10px; }
.desk-head p { color: var(--ink-2); max-width: 700px; }
.finder { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: end; margin-top: 18px; }
@media (max-width: 700px) { .finder { grid-template-columns: minmax(0, 1fr); } }
.warn-strip { display: flex; gap: 12px; align-items: flex-start; border: 1.5px dashed var(--red); border-radius: 16px; padding: 12px 16px; background: var(--paper-2); font-size: 14.5px; color: var(--ink-2); margin-top: 18px; }
.warn-strip svg { width: 30px; height: 30px; flex: none; }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 24px; }
@media (max-width: 980px) { .desk { grid-template-columns: minmax(0, 1fr); } }
.desk .col { display: grid; gap: 20px; min-width: 0; }
.panel h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel h3 svg { width: 30px; height: 30px; }
.panel .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.lockbox { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--ink); }
.lockbox.open { background: color-mix(in srgb, var(--lime) 30%, var(--paper)); }
.lockbox.locked { background: color-mix(in srgb, var(--red) 18%, var(--paper)); }
.lockbox .state { font: 400 26px/1.1 var(--serif); }
.who-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 15px; align-items: baseline; }
.who-row:last-child { border-bottom: 0; }
.who-row > span:first-child { color: var(--muted); }
.who-row .a { font: 500 13.5px/1.4 var(--mono); overflow-wrap: anywhere; }
.you { font: 700 10.5px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; background: var(--lime); color: #1d1714; padding: 4px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.bal-list { display: grid; gap: 8px; }
.bal { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); }
.bal b { font: 400 22px/1.1 var(--serif); }
.bal small { color: var(--muted); }
.meter { height: 8px; border-radius: 999px; background: var(--paper-3); overflow: hidden; margin-top: 6px; border: 1px solid var(--hair-2); }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.limit-card { border: 1.5px solid var(--hair-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.limit-card .lh { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.limit-card .lh b { font: 400 19px/1.1 var(--serif); }
.limit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: 13.5px; }
.limit-grid div { min-width: 0; }
.limit-grid span { display: block; color: var(--muted); font-size: 12px; }
.limit-grid b { font: 600 13.5px/1.3 var(--mono); overflow-wrap: anywhere; }
@media (max-width: 520px) { .limit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.allow-table td { font-size: 14px; }
.allow-table .x { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14.5px; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); }
.note-l { font: 700 10.5px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); margin-top: 1px; }
.n-ok .note-l { background: var(--lime); color: #1d1714; }
.n-warn .note-l { background: var(--blue); color: #1d1714; }
.n-risk .note-l { background: var(--red); color: #fff; }
.held-list, .act-list { display: grid; gap: 10px; }
.held { border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.held .hh { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.held .hh b { font: 400 19px/1.1 var(--serif); }
.held .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.held .acts .btn { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.act { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 14px; padding: 10px 2px; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.act:last-child { border-bottom: 0; }
.act .ev { white-space: nowrap; font: 700 10.5px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); justify-self: start; }
.act .ev.e-exec { background: var(--lime); color: #1d1714; }
.act .ev.e-held { background: var(--blue); color: #1d1714; }
.act .ev.e-lock { background: var(--red); color: #fff; }
.act .tx { font: 500 12.5px/1.3 var(--mono); color: var(--muted); }
.act .t { overflow-wrap: anywhere; }
@media (max-width: 520px) { .act { grid-template-columns: minmax(0, 1fr); } }
.editor { display: grid; gap: 12px; }
.editor .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.editor .row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 620px) { .editor .row2, .editor .row4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { font: 600 13px/1 var(--sans); padding: 0 12px; min-height: 36px; border-radius: 999px; border: 1.5px solid var(--hair-2); background: var(--paper); color: var(--ink); cursor: pointer; }
.chipbtn:hover { border-color: var(--ink); }
.draft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.draft-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 10px 8px 14px; border-radius: 12px; background: var(--paper-2); font-size: 14.5px; }
.draft-list li span { min-width: 0; overflow-wrap: anywhere; }
.draft-list .x { min-height: 32px; padding: 0 10px; font-size: 12.5px; flex: none; }
.empty-desk { text-align: center; padding: 30px 10px 10px; }
.empty-desk svg { width: 120px; height: 110px; }
.empty-desk p { color: var(--ink-2); max-width: 520px; margin: 8px auto 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.check-out { margin-top: 14px; border-top: 1.5px dashed var(--hair-2); padding-top: 14px; }

/* ---------------------------------------------------------------- doors page */
.page-head { padding: 44px 0 6px; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 58px); margin: 10px 0 14px; }
.page-head .lede { margin: 0; text-align: left; max-width: 720px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.fact { border: 1.5px solid var(--ink); border-radius: 14px; padding: 10px 14px; min-width: 120px; }
.fact span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.fact b { font: 400 20px/1.2 var(--serif); }
.door-sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 34px 0; border-top: 1.5px solid var(--ink); }
.door-sec:first-of-type { border-top: 0; }
@media (max-width: 820px) { .door-sec { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.door-sec .side svg { width: 120px; height: 120px; }
.door-sec .side .tag { margin-top: 10px; }
.door-sec h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 10px; }
.door-sec p { color: var(--ink-2); }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--hair-2); border-radius: 16px; overflow: hidden; margin-top: 14px; }
.spec div { padding: 12px 14px; border-bottom: 1px solid var(--hair-2); border-right: 1px solid var(--hair-2); min-width: 0; }
.spec div:nth-child(2n) { border-right: 0; }
.spec div:nth-last-child(-n+2) { border-bottom: 0; }
.spec span { display: block; font: 600 12px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 560px) { .spec { grid-template-columns: minmax(0, 1fr); } .spec div { border-right: 0; } .spec div:nth-last-child(2) { border-bottom: 1px solid var(--hair-2); } }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.principles .card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.principles .in { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--hair-2); font-size: 14.5px; }
.principles .in b { font-weight: 600; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: fl; }
.flow li { counter-increment: fl; position: relative; padding: 12px 14px 12px 50px; border: 1.5px solid var(--hair-2); border-radius: 14px; background: var(--paper); color: var(--ink-2); }
.flow li::before { content: counter(fl); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 600 13px/1 var(--mono); }
.flow li b { color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.chipbtn[aria-pressed="true"] { background: var(--lime); color: #1d1714; border-color: var(--ink); }
@media (max-width: 560px) {
  table.t.answers thead { display: none; }
  table.t.answers tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  table.t.answers tr:last-child { border-bottom: 0; }
  table.t.answers td { border: 0; padding: 0; }
  table.t.answers td:nth-child(2) { font-weight: 600; }
  table.t.stacked, table.t.stacked tbody { display: block; }
  table.t.stacked thead { display: none; }
  table.t.stacked tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  table.t.stacked tr:last-child { border-bottom: 0; }
  table.t.stacked td { border: 0; padding: 0; text-align: left; }
  table.t.reasons tr { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
  table.t.reasons td:nth-child(3) { color: var(--muted); }
  table.t.reasons td:last-child { grid-column: 1 / -1; }
}
