/* HoodLLM: one sheet. Dark graphite, mint for layers, amber for burns. */
@font-face { font-family: "Bricolage"; src: url("/fonts/Bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-400i.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  /* porcelain: warm glazed whites, cobalt brushwork for layers, kiln red for burns, red/cyan fringes for distortion */
  --bg: #ede5dc; --bg-2: #f4eee7; --panel: #fbf8f4; --panel-2: #f2ebe3; --line: #e2d7cc; --line-2: #cdbfb2;
  --text: #241c18; --muted: #6c6059; --dim: #9b8e85;
  --mint: #2347a8; --mint-2: #3b60c8; --mint-ink: #ffffff; --mint-glow: rgba(35, 71, 168, .14);
  --amber: #b8462a; --amber-2: #8f3219; --amber-glow: rgba(184, 70, 42, .12); --red: #a8281e;
  --fr: #ff5a4e; --fc: #1fbfd2; --celadon: #c6e0d8;
  --r: 18px; --r-sm: 12px; --wrap: 1180px; --gut: 24px;
  --display: "Geist", system-ui, sans-serif; --serif: "Instrument Serif", Georgia, serif; --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --glaze: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(60,40,30,.06), 0 12px 30px -18px rgba(60,40,30,.25);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--mint); color: #fff; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: var(--mint-ink); padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* backdrop: pearl satin sheen drifting over a tone-on-tone glyph field */
body { background: var(--bg) url("/img/brand/pattern.svg") 0 0 / 240px 240px; }
body::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 30% at 22% 26%, rgba(255,255,255,.75), transparent 70%), radial-gradient(30% 26% at 78% 62%, rgba(255,255,255,.6), transparent 70%),
    radial-gradient(26% 22% at 60% 12%, rgba(255,240,232,.7), transparent 70%), radial-gradient(60% 50% at 50% 100%, rgba(214,196,182,.35), transparent 70%);
  animation: sheen 26s ease-in-out infinite alternate; }
@keyframes sheen { to { transform: translate3d(4%, -3%, 0) rotate(3deg) scale(1.04); } }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(247, 242, 236, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.045em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line-2), 0 4px 10px -4px rgba(60,40,30,.4); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--mint); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.phone-menu { display: none; }

/* ------------------------------------------------------------------ buttons */
.btn { --b: var(--line-2); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--b); background: var(--panel); text-decoration: none; font-weight: 550; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { border-color: var(--dim); }
.btn:active { transform: translateY(1px); }
.btn.go { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.btn.go:hover { background: var(--mint-2); }
.btn.burn { background: linear-gradient(180deg, #c9583a, var(--amber-2)); color: #fff; border-color: var(--amber-2); }
.btn.burn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; font-weight: 550; cursor: pointer; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.pill[data-state="connected"] .dot { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-glow); }
.coin-pill { font-family: var(--mono); font-size: 12.5px; color: var(--amber); border-color: rgba(184, 70, 42, .3); background: rgba(184, 70, 42, .05); text-decoration: none; cursor: default; }
a.coin-pill { cursor: pointer; }

/* ------------------------------------------------------------------ type */
.eyebrow { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.045em; margin: 0; line-height: .98; font-weight: 750; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 54px); }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--mint); }
h2 .amber { color: var(--amber); }
.lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--muted); max-width: 60ch; margin: 22px 0 0; }
.lead b, .lead strong { color: var(--text); font-weight: 550; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--dim); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.hero h1 { margin-top: 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); font: 500 12.5px/1 var(--mono); color: var(--muted); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.chip.on .dot { background: #2f9e6a; box-shadow: 0 0 0 4px rgba(47,158,106,.15); animation: pulse 2.4s ease-in-out infinite; }
.chip.off .dot { background: var(--amber); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 158, 106, .04); } }

/* hero: the sliced porcelain bust in a medallion, the wordmark and its tile */
.hero.center { padding: 46px 0 30px; text-align: center; }
.hero.center .wrap { display: block; }
.medal-wrap { position: relative; width: min(470px, 82vw); aspect-ratio: 1; margin: 0 auto; }
.medal { position: absolute; inset: 7%; border-radius: 50%; background: #e9ded3 url("/img/brand/bust-512.webp") center / cover; box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 0 0 9px rgba(251,248,244,.75), 0 0 0 10px var(--line-2), 0 40px 70px -30px rgba(80,50,35,.45); overflow: hidden; }
.medal canvas { width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.medal canvas.ready { opacity: 1; }
.ring { position: absolute; inset: 0; animation: spin 60s linear infinite; pointer-events: none; }
.ring text { font: 500 5.2px var(--mono); letter-spacing: .12em; fill: var(--dim); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag { position: absolute; display: grid; gap: 3px; padding: 9px 12px; border-radius: 12px; background: rgba(251,248,244,.86); border: 1px solid var(--line); box-shadow: var(--glaze); text-align: left; font: 500 11px/1.2 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; backdrop-filter: blur(6px); }
.tag b { font: 700 17px/1 var(--display); letter-spacing: -.03em; color: var(--text); text-transform: none; }
.tag b i { font-style: normal; color: var(--mint); }
.tag.l { left: -16%; top: 30%; } .tag.r { right: -18%; top: 58%; } .tag.r b { color: var(--amber); }
.wordmark { display: inline-flex; align-items: center; gap: clamp(12px, 2vw, 22px); margin-top: 6px; }
.wordmark h1 { font-size: clamp(64px, 11vw, 150px); font-weight: 800; letter-spacing: -.065em; line-height: .9; color: var(--text); }
.wordmark h1 b { color: var(--mint); font-weight: 800; }
.tile { width: clamp(58px, 8.4vw, 112px); aspect-ratio: 1; border-radius: 26%; background: linear-gradient(160deg, #d7ebe4, var(--celadon)); box-shadow: inset 0 2px 0 rgba(255,255,255,.8), 0 14px 26px -16px rgba(40,80,70,.6); display: grid; place-items: center; flex: none; }
.tile svg { width: 58%; height: 58%; }
.hero.center .eyebrow { justify-content: center; }
.hero.center .lead { margin: 18px auto 0; text-align: center; }
.hero.center .cta, .hero.center .chips { justify-content: center; }
.slogan { margin: 10px 0 0; font: 400 clamp(26px, 3.4vw, 42px)/1.1 var(--serif); font-style: italic; color: var(--muted); }
.slogan .fr { color: var(--text); text-shadow: -2px 0 rgba(255,90,78,.55), 2px 0 rgba(31,191,210,.55); }
.words { max-width: 560px; margin: 16px auto 0; text-align: left; }

/* the layer column */
.column-card { position: relative; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 18px 18px 16px; overflow: hidden; }
.column-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.col-head { display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1.3 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.col-head b { color: var(--mint); font-weight: 500; }
.column { width: 100%; aspect-ratio: 1 / 1.02; }
.col-foot { display: grid; gap: 10px; margin-top: 6px; }
.meter { display: grid; grid-template-columns: 118px 1fr auto; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); color: var(--muted); }
.meter .bar { height: 8px; border-radius: 9px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.meter .bar i { display: block; height: 100%; width: var(--w, 100%); background: var(--line-2); border-radius: inherit; }
.meter.now .bar i { background: linear-gradient(90deg, var(--mint-2), var(--mint)); box-shadow: 0 0 12px var(--mint-glow); }
.meter output { color: var(--text); min-width: 64px; text-align: right; }
.words { min-height: 48px; margin-top: 12px; padding: 12px 14px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); font: 450 14px/1.5 var(--mono); color: var(--text); }
.words .caret { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: var(--mint); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------------ live strip */
.strip { padding: 22px 0 8px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--glaze); }
.stat { padding: 20px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat small { display: block; font: 500 11.5px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.stat output { display: block; margin-top: 10px; font: 750 32px/1 var(--display); letter-spacing: -.04em; }
.stat output.amber { color: var(--amber); }
.stat output.mint { color: var(--mint); }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ sections */
.sec { padding: 96px 0 0; }
.sec-h { display: grid; gap: 16px; max-width: 760px; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 22px 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--glaze); }
.step .n { font-family: var(--serif) !important; font-style: italic; font-size: 30px !important; color: var(--mint) !important; }
.step .n { font: 500 12px/1 var(--mono); color: var(--dim); }
.step svg { width: 34px; height: 34px; margin: 22px 0 18px; color: var(--mint); }
.step.b svg { color: var(--amber); }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.compare { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 24px; display: grid; gap: 22px; box-shadow: var(--glaze); }
.cmp h4 { margin: 0 0 10px; font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); display: flex; justify-content: space-between; }
.cmp h4 b { color: var(--text); font-weight: 500; }
.cmp .row { display: flex; gap: 3px; height: 34px; }
.cmp .row i { flex: 1; border-radius: 3px; background: var(--line-2); }
.cmp.air .row i { background: var(--panel-2); border: 1px dashed var(--line-2); }
.cmp.air .row i.on { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 14px var(--mint-glow); }
.cmp p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); }
.ticks li b { color: var(--text); font-weight: 550; }
.ticks svg { width: 18px; height: 18px; margin-top: 4px; color: var(--mint); }

/* coin */
.coin { border: 1px solid rgba(184, 70, 42, .25); border-radius: 26px; box-shadow: var(--glaze); background: radial-gradient(120% 120% at 100% 0%, rgba(184, 70, 42, .08), transparent 55%), var(--panel); padding: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; }
.coin .eyebrow { color: var(--amber); }
.coin ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.coin li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); }
.coin li b { color: var(--text); font-weight: 550; }
.coin li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--amber); }
.ca-box { align-self: start; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); padding: 20px; display: grid; gap: 14px; }
.ca-box .k { font: 500 11.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.ca-box .v { font: 500 14px/1.45 var(--mono); word-break: break-all; }
.ca-box .big { font: 750 44px/1 var(--display); letter-spacing: -.04em; color: var(--amber); }
.ca-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* the engine's author */
.maker { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(22px, 4vw, 44px); align-items: center; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); box-shadow: var(--glaze); padding: clamp(24px, 4vw, 44px); }
.mono-medal { width: clamp(96px, 14vw, 150px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 20%, #fff, #e9ded3); box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 0 0 6px rgba(251,248,244,.75), 0 0 0 7px var(--line-2), 0 20px 36px -22px rgba(80,50,35,.5); font: italic 400 clamp(40px, 6vw, 64px)/1 var(--serif); color: var(--mint); text-shadow: -2px 0 rgba(255,90,78,.45), 2px 0 rgba(31,191,210,.45); }
.maker h3 { font-size: clamp(28px, 3.4vw, 38px); }
.maker .role { margin: 8px 0 14px; font-size: 12.5px; letter-spacing: .04em; color: var(--dim); text-transform: uppercase; }
.maker p { color: var(--muted); max-width: 62ch; }
.maker p b { color: var(--text); font-weight: 600; }
.maker .rh-row { margin-top: 18px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 50px 18px 20px; font-weight: 550; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 4px; color: var(--muted); }

/* footer */
.foot { margin-top: 110px; border-top: 1px solid var(--line); padding: 44px 0 40px; background: rgba(244, 238, 231, .85); }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.foot a { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; font-size: 14.5px; }
.foot a:hover { color: var(--text); }
.foot p { color: var(--muted); font-size: 14px; max-width: 40ch; }
.foot .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.built { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 12px; font: 500 12px/1 var(--mono); color: var(--muted); }

/* ------------------------------------------------------------------ app: ask + receipt */
.app { padding: 40px 0 0; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); padding: 22px; box-shadow: var(--glaze); }
.card + .card { margin-top: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h2 { font-size: 26px; }
.label { font: 500 11.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
textarea.q { width: 100%; min-height: 150px; resize: vertical; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 16px; line-height: 1.55; }
textarea.q:focus { outline: none; border-color: var(--mint-2); box-shadow: 0 0 0 4px var(--mint-glow); }
.q-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font: 500 12px/1.4 var(--mono); color: var(--dim); }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ideas button { border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); border-radius: 99px; padding: 7px 12px; font-size: 13px; cursor: pointer; text-align: left; }
.ideas button:hover { color: var(--text); border-color: var(--line-2); }
.cost { display: grid; gap: 4px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(184, 70, 42, .35); background: rgba(184, 70, 42, .04); }
.cost b { color: var(--amber); font: 600 15px/1.3 var(--mono); }
.cost span { color: var(--muted); font-size: 13.5px; }
.cost.prelim { border-color: rgba(35, 71, 168, .3); background: rgba(35, 71, 168, .04); }
.cost.prelim b { color: var(--mint); }
.ask-go { width: 100%; margin-top: 14px; min-height: 52px; font-size: 16px; }
.msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.msg.bad { color: var(--red); }
.msg.ok { color: var(--mint); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0; font-size: 14px; }
.kv dt { font: 500 12px/1.6 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13.5px; word-break: break-all; }
.kv dd a { color: var(--mint); }
.mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mine a { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--bg-2); }
.mine a:hover { border-color: var(--line-2); }
.mine span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine small { font: 500 11.5px/1.3 var(--mono); color: var(--dim); }

.live-state { display: flex; align-items: center; gap: 10px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.live-state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.live-state[data-s="running"] .dot { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-glow); animation: pulse 1.6s infinite; }
.live-state[data-s="queued"] .dot, .live-state[data-s="waiting"] .dot { background: var(--amber); }
.live-state[data-s="done"] .dot { background: var(--mint); }
.live-state[data-s="failed"] .dot { background: var(--red); }
.answer { margin-top: 14px; padding: 18px 18px; min-height: 120px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer:empty::before { content: attr(data-empty); color: var(--dim); }
.answer .caret { display: inline-block; width: 8px; height: 17px; vertical-align: -3px; background: var(--mint); margin-left: 2px; animation: blink 1s steps(1) infinite; }
.question { padding: 14px 16px; border-left: 2px solid var(--line-2); color: var(--muted); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.empty-live { text-align: center; padding: 26px 10px 8px; color: var(--dim); font-size: 14px; }

/* engine page */
.doc { max-width: 860px; }
.doc h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 64px 0 18px; }
.doc p, .doc li { color: var(--muted); }
.doc li b, .doc p b { color: var(--text); font-weight: 550; }
.doc ol, .doc ul { padding-left: 22px; display: grid; gap: 8px; }
pre.code { margin: 14px 0 22px; padding: 16px 18px; border-radius: 12px; background: #231c18; border: 1px solid var(--line); overflow-x: auto; font: 450 13px/1.6 var(--mono); color: #efe6dc; }
code { font-family: var(--mono); font-size: .92em; color: var(--mint); }
.engine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }

/* wallet dialog (from wallet.js) */
dialog.wdlg { border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); color: var(--text); padding: 0; width: min(440px, calc(100% - 28px)); }
dialog.wdlg::backdrop { background: rgba(60, 44, 36, .35); backdrop-filter: blur(4px); }
.wdlg-in { padding: 20px; }
.wdlg-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wdlg-h h2 { font-size: 22px; }
.wdlg-x { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; }
.wdlg-x svg { width: 16px; height: 16px; }
.wlead { color: var(--muted); font-size: 14.5px; }
.wlist { display: grid; gap: 8px; }
.wbtn { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; width: 100%; }
.wbtn:hover { border-color: var(--mint-2); }
.wbtn[aria-disabled="true"] { opacity: .6; cursor: wait; }
.wbtn img, .wi { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.wi { display: grid; place-items: center; background: var(--panel-2); font: 600 12px/1 var(--mono); }
.wi.rh { color: var(--mint); }
.wi svg { width: 20px; height: 20px; }
.wbtn b { display: block; font-weight: 600; }
.wbtn small { display: block; color: var(--dim); font-size: 12.5px; }
.wfine { font-size: 12.5px; color: var(--dim); margin: 14px 0 0; }
.werr .bad { color: var(--red); font-size: 14px; }
.rh-help { padding: 12px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 14px; color: var(--muted); }
.rh-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wacct { display: flex; align-items: center; gap: 12px; }
.wacct b { display: block; }
.wacct small { color: var(--dim); }
.waddr { margin: 14px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; word-break: break-all; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .tag.l { left: -6%; } .tag.r { right: -6%; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-vis { max-width: 520px; width: 100%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .coin { grid-template-columns: 1fr; gap: 32px; }
  .app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav, .top-r .coin-pill, .top-r .ask-top { display: none; }
  .menu-btn { display: inline-flex; }
  .phone-menu { display: block; position: fixed; inset: 64px 0 auto; z-index: 39; background: rgba(247, 242, 236, .98); border-bottom: 1px solid var(--line); padding: 10px var(--gut) 18px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
  .phone-menu.open { transform: none; opacity: 1; visibility: visible; }
  .phone-menu a { display: block; padding: 13px 4px; text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }
  .phone-menu .coin-line { margin-top: 14px; font: 500 12.5px/1.5 var(--mono); color: var(--amber); word-break: break-all; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
  .engine-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .maker { grid-template-columns: 1fr; justify-items: start; }
  .tag { padding: 7px 9px; font-size: 9.5px; } .tag b { font-size: 14px; } .tag.l { left: -2%; top: 4%; } .tag.r { right: -2%; top: auto; bottom: 4%; }
  .wordmark h1 { font-size: 58px; }
  :root { --gut: 16px; }
  .hero { padding-top: 40px; }
  .top .wrap { gap: 10px; }
  .brand { font-size: 17px; }
  .pill { padding: 0 11px; font-size: 13px; }
  .steps { grid-template-columns: 1fr; }
  .sec { padding-top: 72px; }
  .stat { padding: 16px; }
  .stat output { font-size: 25px; }
  .cta .btn { flex: 1 1 100%; }
  .col-head span:first-child { display: none; }
  .col-head { justify-content: flex-end; }
  .meter { grid-template-columns: 92px 1fr auto; gap: 8px; font-size: 11px; }
  .card { padding: 16px; border-radius: 16px; }
  .engine-grid { grid-template-columns: 1fr; }
  .kv dd { text-align: left; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
@media (max-width: 360px) {
  .pill .lbl-long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
