/* quinepad — clarity first, code as accent. ink black, one signal lime, monospace only inside the AI console. */
:root {
  --iron: #09090b;
  --iron-2: #111114;
  --iron-3: #18181d;
  --line: #26262d;
  --line-2: #36363f;
  --text: #f2f2f0;
  --muted: #9d9da6;
  --faint: #66666f;
  --molten: #c6ff3d;
  --amber: #d8ff7a;
  --hot: #ffffff;
  --ember: #ff5a4a;
  --ok: #5ee3a1;
  --radius: 12px;
  --sans: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--iron); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; background: var(--iron); color: var(--text); font: 400 16px/1.55 var(--sans); overflow-x: hidden; }
body::before { /* faint signal glow from below */
  content: ''; position: fixed; inset: auto 0 -30vh 0; height: 60vh; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 50% 100%, rgba(198, 255, 61, .10), rgba(198, 255, 61, 0) 70%);
}
::selection { background: rgba(198, 255, 61, .35); color: var(--hot); }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--hot); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons, pills, chips ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--iron-3); color: var(--text);
  font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, transform .1s;
}
.button:hover { border-color: var(--muted); color: var(--hot); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--molten); border-color: var(--molten); color: #0b0f02; box-shadow: 0 0 24px rgba(198, 255, 61, .35); }
.button.primary:hover { background: #d6ff6b; color: #0b0f02; }
.button.lg { min-height: 52px; padding: 0 26px; font-size: 17px; }
.button.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.button[disabled] { opacity: .5; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid var(--line-2); color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill.live { color: var(--amber); border-color: rgba(198, 255, 61, .55); background: rgba(198, 255, 61, .1); box-shadow: 0 0 14px rgba(198, 255, 61, .25); }
.pill.live .dot { background: var(--molten); box-shadow: 0 0 8px var(--molten); animation: pulse 1.6s ease-in-out infinite; }
.pill.off { color: var(--ember); border-color: rgba(255, 74, 54, .5); }
@keyframes pulse { 50% { opacity: .35; } }
.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--iron-3); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.chip.mono { font-family: var(--mono); font-size: 12px; }
.up { color: var(--ok); } .down { color: var(--ember); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 11, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.logo:hover { color: var(--hot); }
.logo-mark { color: var(--molten); display: inline-flex; filter: drop-shadow(0 0 6px rgba(198, 255, 61, .6)); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.button) { color: var(--muted); font-size: 15px; }
.nav a:not(.button):hover, .nav a.on { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding-top: 44px; padding-bottom: 26px; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--molten); margin-bottom: 14px; }
.eyebrow .cur { display: inline-block; width: .55em; height: 1em; background: var(--molten); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin: 0; font-weight: 700; max-width: 21ch; }
h1 em { font-style: normal; color: var(--molten); text-shadow: 0 0 30px rgba(198, 255, 61, .45); }
.hero p.sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 52ch; margin: 18px 0 26px; }
.hero p.sub b { color: var(--text); font-weight: 600; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-stats b { color: var(--text); font-size: 18px; margin-right: 4px; }

/* ---------- section heads ---------- */
section { scroll-margin-top: 72px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 52px 0 16px; }
.sec-h h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.sec-h .muted { font-size: 15px; }

/* ---------- panels ---------- */
.panel { background: var(--iron-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 48px; flex-wrap: wrap; }
.panel-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-h .grow { flex: 1; }

/* ---------- featured live build ---------- */
.featured { position: relative; }
.featured.strike, .app-panel.strike { animation: strike 1.2s ease-out; }
@keyframes strike {
  0% { box-shadow: 0 0 0 2px var(--hot), 0 0 60px rgba(198, 255, 61, .55); border-color: var(--hot); }
  40% { box-shadow: 0 0 0 1px var(--molten), 0 0 40px rgba(198, 255, 61, .5); }
  100% { box-shadow: none; }
}
.feat-h { gap: 12px; }
.feat-h img, .card-id img, .coin-id img { border-radius: 8px; object-fit: cover; background: var(--iron-3); border: 1px solid var(--line); }
.feat-h img { width: 32px; height: 32px; }
.feat-h .name { font-weight: 700; font-size: 17px; }
.feat-h .tk { color: var(--muted); font-weight: 600; }
.feat-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); min-height: 440px; }
.feat-app { position: relative; background: #000; border-right: 1px solid var(--line); min-height: 300px; }
.feat-dots { display: flex; gap: 6px; }
.feat-dots button { width: 26px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; }
.feat-dots button.on { background: var(--molten); box-shadow: 0 0 8px rgba(198, 255, 61, .6); }
.feat-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--molten); }

/* app frame (scaled iframe) */
.frame-box { position: absolute; inset: 0; overflow: hidden; background: #0c0c0f; }
.frame-box iframe { border: 0; background: #0c0c0f; display: block; }
.frame-box.fit iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-box.scaled iframe { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.spark-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.quench { position: absolute; inset: 0; pointer-events: none; z-index: 3; animation: quench 1.6s ease-out forwards; }
@keyframes quench { 0% { background: rgba(235, 255, 200, .7); } 25% { background: rgba(198, 255, 61, .35); } 60% { background: rgba(198, 255, 61, .12); } 100% { background: rgba(198, 255, 61, 0); } }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; color: var(--muted);
  background: repeating-linear-gradient(135deg, #0e0e11 0 14px, #131317 14px 28px); }
.placeholder .mark { color: var(--molten); filter: drop-shadow(0 0 10px rgba(198, 255, 61, .6)); }
.placeholder .mark svg { width: 54px; height: 54px; }
.placeholder b { color: var(--text); }
.placeholder .act { font-family: var(--mono); font-size: 12.5px; color: var(--amber); }

/* ---------- AI console (the only monospace area) ---------- */
.console { display: flex; flex-direction: column; min-height: 0; background: #08080a; }
.console-h { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.console-h b { color: var(--text); font-weight: 600; }
.console-h .grow { flex: 1; }
.now { padding: 8px 14px; border-bottom: 1px dashed var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now.idle { color: var(--faint); }
.now .spin { color: var(--molten); display: inline-block; width: 1.2ch; }
.term { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 14px 10px; font: 12.5px/1.6 var(--mono); }
.term.scroll { overflow-y: auto; justify-content: flex-start; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.term .ln { white-space: pre-wrap; word-break: break-word; color: var(--c, var(--text)); padding-left: 2ch; text-indent: -2ch; }
.term .ln .ts { color: var(--faint); margin-right: 1ch; }
.term .ln.fresh { animation: cool 2.2s ease-out both; }
@keyframes cool { 0% { color: var(--hot); text-shadow: 0 0 10px rgba(198, 255, 61, .55); } 100% { color: var(--c, var(--text)); text-shadow: none; } }
.ln.k-thought { --c: #b3b3bb; font-style: italic; }
.ln.k-tool { --c: var(--muted); }
.ln.k-tool .sig { color: var(--faint); }
.ln.k-file { --c: var(--amber); }
.ln.k-file .sig { color: var(--molten); }
.ln.k-file .bytes { color: var(--faint); }
.ln.k-build { --c: var(--ok); }
.ln.k-build.bad, .ln.k-error { --c: var(--ember); }
.ln.k-publish { --c: var(--hot); font-weight: 600; }
.ln.k-publish .pub { background: var(--molten); color: #0b0f02; padding: 0 .6ch; border-radius: 3px; font-weight: 700; }
.ln.k-run { --c: var(--faint); }
.ln.k-fee { --c: var(--ok); }
.ln.k-burn { --c: #d6ff6b; font-weight: 600; }
.ln.k-fuel { --c: var(--amber); font-weight: 600; }
.ln.k-vote { --c: #d8ff7a; }
.ln.k-chat { --c: var(--text); }
.ln.k-chat .who { color: var(--muted); }
.ln.k-chat.mind .who { color: var(--molten); font-weight: 700; }
.ln.k-system { --c: var(--faint); }
.ln.sep { --c: var(--faint); color: var(--faint); text-indent: 0; padding: 0; }
.ln.typing::after { content: ''; display: inline-block; width: .55em; height: 1em; vertical-align: -.15em; background: var(--amber); margin-left: 1px; }

/* ---------- coins grid ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: inline-flex; background: var(--iron-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tabs button { border: 0; background: none; color: var(--muted); padding: 7px 14px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs button.on { background: var(--iron-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs button .n { color: var(--faint); font-weight: 500; margin-left: 4px; }
.search { flex: 1; min-width: 180px; max-width: 320px; margin-left: auto; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--iron-2); padding: 0 14px; color: var(--text); font-size: 15px; }
.search:focus { border-color: var(--molten); outline: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--iron-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.card.live { border-color: rgba(198, 255, 61, .45); box-shadow: 0 0 0 1px rgba(198, 255, 61, .12), 0 0 26px rgba(198, 255, 61, .10); }
.card.live:hover { border-color: var(--molten); }
.card .preview { position: relative; aspect-ratio: 16 / 10; background: #0c0c0f; border-bottom: 1px solid var(--line); }
.card .preview .ver { position: absolute; top: 8px; left: 8px; z-index: 5; }
.card .preview .ver .chip { background: rgba(9, 9, 11, .82); color: var(--text); }
.card-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-id img { width: 36px; height: 36px; flex: none; }
.card-id .nm { font-weight: 700; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-id .tk { color: var(--muted); font-size: 13px; font-weight: 600; }
.card-id .txt { min-width: 0; flex: 1; }
.card .act { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.live .act { color: var(--amber); }
.card .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: auto; }
.card .meta .grow { flex: 1; }
.card .meta b { color: var(--text); font-weight: 600; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.more { text-align: center; margin-top: 18px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 22px; background: var(--iron-2); border: 1px solid var(--line); border-radius: var(--radius); }
.step .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(198, 255, 61, .12); color: var(--molten); margin-bottom: 14px; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.step h3 { margin: 2px 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.split-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.split-note b { color: var(--amber); }

/* ---------- footer ---------- */
.footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 14px; }
.footer p { margin: 8px 0 0; }
.foot-stats { font-size: 12.5px; color: var(--faint); }

/* ---------- coin page ---------- */
.coin-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 22px 0 6px; }
.coin-id { display: flex; gap: 14px; align-items: center; min-width: 0; flex: 1 1 360px; }
.coin-id img { width: 64px; height: 64px; flex: none; border-radius: 12px; }
.coin-id h1 { font-size: clamp(26px, 4vw, 38px); max-width: none; letter-spacing: -.025em; }
.coin-id .sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; color: var(--muted); }
.coin-id .tk { font-weight: 700; color: var(--text); }
.coin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ca { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--iron-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 4px 0 10px; height: 36px; }
.ca button { background: var(--iron-3); border: 1px solid var(--line-2); color: var(--text); border-radius: 6px; padding: 2px 8px; cursor: pointer; font: 600 12px var(--sans); }
.promise { color: var(--muted); margin: 8px 0 0; max-width: 90ch; }
.promise b { color: var(--text); font-weight: 600; }
.statrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.stat { background: var(--iron-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 500; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; height: min(78vh, 720px); min-height: 480px; }
.app-panel { display: flex; flex-direction: column; min-height: 0; }
.app-panel .stage { position: relative; flex: 1; background: #000; min-height: 0; }
.workbench .console { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.newbelow { position: absolute; right: 12px; bottom: 12px; z-index: 5; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.chat { display: flex; flex-direction: column; height: 460px; }
.msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.msg { align-self: flex-start; max-width: 88%; padding: 7px 12px; border-radius: 12px; background: var(--iron-3); border: 1px solid var(--line); font-size: 15px; word-break: break-word; }
.msg .who { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-right: 6px; }
.msg .t { font-size: 11.5px; color: var(--faint); margin-left: 6px; }
.msg.mine { align-self: flex-end; background: #1a2010; border-color: #33401c; }
.msg.mind { background: rgba(198, 255, 61, .1); border-color: rgba(198, 255, 61, .45); }
.msg.mind .who { color: var(--molten); }
.msg.sys { align-self: center; background: none; border: 0; color: var(--faint); font-size: 13px; padding: 0; }
.msg.err { align-self: center; background: none; border: 0; color: var(--ember); font-size: 13px; padding: 0; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--iron); padding: 0 12px; color: var(--text); font-size: 16px; }
.composer input:focus { border-color: var(--molten); outline: none; }
.props { flex: 1; overflow-y: auto; padding: 6px 10px; }
.prop { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.prop:last-child { border-bottom: 0; }
.vote { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 54px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--iron-3); color: var(--text); cursor: pointer; line-height: 1.1; }
.vote .c { font-weight: 700; font-size: 17px; }
.vote .l { font-size: 11.5px; color: var(--muted); }
.vote:hover { border-color: var(--molten); }
.vote.done { border-color: var(--molten); background: rgba(198, 255, 61, .14); cursor: default; }
.vote.done .l { color: var(--amber); }
.prop .tx { flex: 1; min-width: 0; word-break: break-word; }
.prop .by { font-size: 13px; color: var(--faint); }
.prop.top .tx > span:first-child { color: var(--hot); font-weight: 600; }
.versions { list-style: none; margin: 0; padding: 0; }
.versions li { display: flex; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.versions li:last-child { border-bottom: 0; }
.versions .v { font-family: var(--mono); color: var(--amber); font-weight: 700; min-width: 5ch; }
.versions .note { flex: 1; min-width: 0; }
.versions .when { color: var(--faint); font-size: 13px; white-space: nowrap; }
.center { padding: 72px 16px; text-align: center; }
.center h2 { margin: 0 0 8px; }

/* ---------- launch ---------- */
.launch { max-width: 860px; }
.launch h1 { font-size: clamp(30px, 5vw, 46px); max-width: none; }
.stepper { display: flex; gap: 6px; margin: 24px 0 18px; counter-reset: s; }
.stepper button { flex: 1; text-align: left; background: none; border: 0; border-top: 3px solid var(--line-2); padding: 8px 2px 0; color: var(--faint); cursor: pointer; font-weight: 600; font-size: 14px; }
.stepper button.on { border-color: var(--molten); color: var(--text); }
.stepper button.done { border-color: rgba(198, 255, 61, .5); color: var(--muted); }
.stepper button[disabled] { cursor: default; }
.stepper .n { display: block; font-size: 12px; font-weight: 500; color: var(--faint); }
.form-card { padding: 22px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
.field > span small { font-weight: 400; color: var(--faint); margin-left: 6px; }
.field input, .field textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line-2); background: var(--iron); padding: 11px 13px; color: var(--text); font-size: 16px; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--molten); outline: none; }
.field .help { font-size: 13.5px; color: var(--faint); margin-top: 5px; }
.field .err { font-size: 14px; color: var(--ember); margin-top: 5px; }
.row2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.coin-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: start; }
.drop { width: 140px; height: 140px; border-radius: 14px; border: 1.5px dashed var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; cursor: pointer; color: var(--muted); font-size: 13.5px; overflow: hidden; position: relative; background: var(--iron); }
.drop:hover, .drop.over { border-color: var(--molten); color: var(--text); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .plus { font-size: 28px; color: var(--molten); line-height: 1; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.examples button { border: 1px solid var(--line-2); background: var(--iron-3); color: var(--muted); border-radius: 99px; padding: 6px 12px; cursor: pointer; font-size: 13.5px; text-align: left; }
.examples button:hover { border-color: var(--molten); color: var(--text); }
details.more-opts summary { cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.tier { margin-bottom: 18px; }
.tier h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.tier h4 small { color: var(--faint); font-weight: 400; }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.model { text-align: left; border: 1px solid var(--line-2); background: var(--iron); border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 3px; }
.model:hover { border-color: var(--muted); }
.model.sel { border-color: var(--molten); background: rgba(198, 255, 61, .1); box-shadow: 0 0 0 1px var(--molten); }
.model .mn { font-weight: 600; font-size: 15px; }
.model .mi { font-family: var(--mono); font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model .mp { font-size: 13px; color: var(--muted); }
.model .rec { font-size: 11px; font-weight: 700; color: var(--molten); text-transform: uppercase; letter-spacing: .06em; }
.burn { margin: 4px 0 18px; padding: 10px 14px; border-radius: 10px; background: rgba(198, 255, 61, .07); border: 1px solid rgba(198, 255, 61, .25); color: var(--muted); font-size: 14px; }
.review { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; }
.review img { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.review dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; word-break: break-word; }
.form-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; flex-wrap: wrap; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--faint); }
.checklist li .ic { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 13px; flex: none; }
.checklist li.doing { color: var(--text); }
.checklist li.doing .ic { border-color: var(--molten); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.checklist li.done { color: var(--muted); }
.checklist li.done .ic { background: var(--molten); border-color: var(--molten); color: #0b0f02; }
.checklist li.fail { color: var(--ember); }
.checklist li.fail .ic { border-color: var(--ember); color: var(--ember); }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 74, 54, .5); background: rgba(255, 74, 54, .08); color: #ffd2cc; }
.success { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(198, 255, 61, .6); background: rgba(198, 255, 61, .1); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .feat-body { grid-template-columns: minmax(0, 1fr); }
  .feat-app { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 11; min-height: 0; }
  .feat-body .console { height: 300px; }
  .workbench { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .app-panel .stage { aspect-ratio: 4 / 5; flex: none; max-height: 78vh; }
  .workbench .console { height: 420px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hide-s { display: none; }
  .hero { padding-top: 28px; padding-bottom: 12px; }
  .ctas .button { flex: 1 1 auto; }
  .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 7px 6px; }
  .coin-row, .review { grid-template-columns: minmax(0, 1fr); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 16px; }
  .coin-actions { width: 100%; }
  .coin-actions .button.primary { flex: 1 1 100%; }
  .coin-actions .button.lg:not(.primary) { flex: 1; min-height: 44px; font-size: 15px; }
  .stepper button { font-size: 12.5px; }
  .stepper .n { display: none; }
  .chat { height: 420px; }
  .sec-h { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill.live .dot, .eyebrow .cur, .checklist li.doing .ic { animation: none; }
  .term .ln.fresh, .featured.strike, .app-panel.strike, .quench { animation: none; }
  .card, .card:hover { transition: none; transform: none; }
}

/* ---------- $QUINE fuel ---------- */
.model .fuel { align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.model .fuel.free { color: var(--ok); background: rgba(94, 227, 161, .1); border: 1px solid rgba(94, 227, 161, .35); }
.model .fuel.paid { color: var(--amber); background: rgba(198, 255, 61, .12); border: 1px solid rgba(198, 255, 61, .45); }
.fuel-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(198, 255, 61, .4); background: linear-gradient(180deg, rgba(198, 255, 61, .1), rgba(198, 255, 61, .04)); color: var(--muted); font-size: 14.5px; }
.fuel-note b { color: var(--text); }
.fuel-note .links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-weight: 600; }
.fuel-pay .fp-top { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.fuel-pay .qr { width: 196px; height: 196px; flex: none; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 0 30px rgba(198, 255, 61, .25); }
.fuel-pay .qr svg { width: 100%; height: 100%; display: block; }
.fuel-pay .fp-main { flex: 1; min-width: 0; }
.fp-k { color: var(--muted); font-size: 14px; }
.fp-amt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -.02em; color: var(--hot); margin: 2px 0; }
.fp-amt .tk { color: var(--molten); font-size: .6em; }
.fp-addr { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.fp-addr code { font-family: var(--mono); font-size: 13.5px; background: var(--iron); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; word-break: break-all; color: var(--text); flex: 1; min-width: 0; }
.copybig { min-height: 44px; margin: 4px 0 12px; }
.fp-wallets { display: flex; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.fp-never { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--iron); border: 1px solid var(--line-2); color: var(--text); font-size: 14.5px; }
.fp-notes { margin: 18px 0 4px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.fp-notes li { margin: 3px 0; }
.fp-notes b { color: var(--text); }
@media (max-width: 640px) { .fuel-pay .fp-top { flex-direction: column; align-items: stretch; } .fuel-pay .qr { width: 220px; height: 220px; margin: 0 auto; } .copybig, .fp-wallets .button { width: 100%; } }

.fuel.nofee { color: var(--muted, #9d9da6); border-color: color-mix(in srgb, currentColor 35%, transparent); }

/* ---------- quinepad mark: the q's cursor blinks ---------- */
.logo-mark .q-cur, .placeholder .mark .q-cur { animation: blink 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .logo-mark .q-cur, .placeholder .mark .q-cur { animation: none; } }

/* =====================================================================
   TERMINAL LAYER — quinepad is a shell. Mono everywhere, square corners,
   window title bars, reverse-video for the one thing to press, tmux bar.
   ===================================================================== */
:root { --sans: var(--mono); --radius: 0; }
body { font: 400 15px/1.6 var(--mono); }
*, *::before, *::after { border-radius: 0 !important; }
.pill .dot, .checklist li .ic { border-radius: 50% !important; }

/* CRT: scanlines + faint vignette, never over interaction */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
              radial-gradient(ellipse at 50% 40%, transparent 60%, rgba(0, 0, 0, .35) 100%);
}
body::before { background: radial-gradient(ellipse at 50% 100%, rgba(198, 255, 61, .07), rgba(198, 255, 61, 0) 70%); }
.ps { color: var(--molten); font-weight: 700; margin-right: .2ch; }

/* type */
h1 { font-family: var(--mono); font-weight: 800; letter-spacing: -.045em; font-size: clamp(30px, 5vw, 56px); line-height: 1.08; max-width: none; }
h1 em { text-shadow: 0 0 22px rgba(198, 255, 61, .35); }
h2, h3, h4 { font-family: var(--mono); letter-spacing: -.02em; }
.sec-h { border-bottom: 1px dashed var(--line-2); padding-bottom: 10px; }
.sec-h h2 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; }
.sec-h .muted { color: var(--faint); font-size: 13.5px; }

/* buttons: brackets; primary = reverse video */
.button { font-family: var(--mono); font-weight: 700; letter-spacing: -.01em; background: transparent; border: 1px solid var(--line-2); }
.button::before { content: '['; margin-right: .6ch; color: var(--faint); }
.button::after { content: ']'; margin-left: .6ch; color: var(--faint); }
.button:hover { background: var(--iron-3); border-color: var(--molten); color: var(--molten); }
.button.primary { box-shadow: 0 0 0 1px var(--molten), 0 0 22px rgba(198, 255, 61, .22); }
.button.primary::before, .button.primary::after { color: rgba(11, 15, 2, .55); }
.button.primary:hover { color: #0b0f02; }
.button.lg { font-size: 16px; }

/* top bar = shell prompt */
.topbar { background: rgba(9, 9, 11, .92); border-bottom: 1px solid var(--line-2); }
.logo { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.logo-word::after { content: ':~$'; color: var(--faint); font-weight: 500; margin-left: .1ch; }
.nav a:not(.button) { font-size: 14px; }
.nav a:not(.button)::before { content: '$ '; color: var(--faint); }
.nav a.on { color: var(--molten) !important; }

/* hero = a boot session */
.hero { padding-top: 52px; }
.eyebrow { font-size: 14px; color: var(--text); }
.ok-lines { list-style: none; margin: 22px 0 28px; padding: 0; font-size: clamp(14px, 1.7vw, 16px); color: var(--muted); }
.ok-lines li { padding: 3px 0; padding-left: 9ch; text-indent: -9ch; }
.ok-lines .tag { color: var(--ok); font-weight: 700; margin-right: 1ch; }
.ok-lines b { color: var(--text); font-weight: 600; }
.hero-stats { font-size: 13.5px; gap: 12px; color: var(--faint); }
.hero-stats b { font-size: 15px; color: var(--molten); }
.hero-stats .sep { color: var(--line-2); }
@media (prefers-reduced-motion: no-preference) {
  .boot > * { animation: bootin .45s steps(4, end) both; }
  .boot > :nth-child(2) { animation-delay: .12s; } .boot > :nth-child(3) { animation-delay: .24s; }
  .boot > :nth-child(4) { animation-delay: .36s; } .boot > :nth-child(5) { animation-delay: .48s; }
  .ok-lines li { animation: bootin .3s steps(3, end) both; }
  .ok-lines li:nth-child(1) { animation-delay: .3s; } .ok-lines li:nth-child(2) { animation-delay: .45s; } .ok-lines li:nth-child(3) { animation-delay: .6s; }
}
@keyframes bootin { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* panels = terminal windows */
.panel, .card, .step, .stat, .workbench .console { background: var(--iron-2); border: 1px solid var(--line-2); }
.panel-h, .console-h { background: var(--iron-3); border-bottom: 1px solid var(--line-2); min-height: 40px; }
.panel-h h3, .console-h b { font-size: 13.5px; font-weight: 700; }
.console-h b { color: var(--molten); margin-right: 1ch; }
.feat-label { letter-spacing: .04em; text-transform: none; font-size: 13px; }
.featured { box-shadow: 0 0 0 1px rgba(198, 255, 61, .18), 0 0 40px rgba(198, 255, 61, .06); }

/* cards: title bar like a window, ls-style rows */
.win-h { padding: 6px 12px; font-size: 12.5px; background: var(--iron-3); border-bottom: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.card:hover { transform: none; border-color: var(--molten); box-shadow: 0 0 0 1px var(--molten); }
.card.live .win-h { color: var(--molten); }
.card-id .nm { font-size: 15px; }
.card .meta { font-size: 12.5px; }

/* pills/chips/tabs */
.pill { font-size: 12px; font-family: var(--mono); padding: 1px 8px; }
.chip { font-family: var(--mono); }
.tabs { background: transparent; border: 1px solid var(--line-2); padding: 0; }
.tabs button { font-family: var(--mono); font-size: 13px; padding: 8px 14px; }
.tabs button.on { background: var(--molten); color: #0b0f02; box-shadow: none; }
.tabs button.on .n { color: rgba(11, 15, 2, .6); }
.search { font-family: var(--mono); font-size: 14px; background: var(--iron) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ctext x='0' y='12' font-family='monospace' font-size='14' fill='%23c6ff3d'%3E%2F%3C/text%3E%3C/svg%3E") no-repeat 12px 50%; padding-left: 30px; }

/* man page steps */
.steps { gap: 0; border: 1px solid var(--line-2); }
.step { border: 0; border-right: 1px dashed var(--line-2); padding: 20px; }
.step:last-child { border-right: 0; }
.step .n { color: var(--molten); font-weight: 700; letter-spacing: .06em; }
.step h3 { font-size: 17px; margin-top: 8px; }
.step p { font-size: 14px; }
@media (max-width: 960px) { .step { border-right: 0; border-bottom: 1px dashed var(--line-2); } .step:last-child { border-bottom: 0; } }

/* forms */
.field input, .field textarea, .composer input { font-family: var(--mono); background: var(--iron); }
.field > span::before { content: '> '; color: var(--molten); }
.stepper button { font-family: var(--mono); }
.examples button, .model { font-family: var(--mono); }

/* chat as log lines */
.msg { font-size: 14px; background: transparent; border: 0; border-left: 2px solid var(--line-2); padding: 3px 10px; max-width: 100%; align-self: stretch !important; }
.msg.mine { background: transparent; border-left-color: var(--text); }
.msg.mind { background: rgba(198, 255, 61, .06); border-left-color: var(--molten); }
.msg .who::after { content: ':'; }
.vote { font-family: var(--mono); }

/* footer = tmux status bar */
.footer { border-top: 0; padding-top: 0; font-size: 13px; }
.foot-stats { margin: 0 -16px 18px; padding: 4px 16px; background: var(--molten); color: #0b0f02; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-stats .tm { background: #0b0f02; color: var(--molten); padding: 0 1ch; margin-right: 1ch; }
.footer p { color: var(--faint); }
.footer a { color: var(--muted); }

::selection { background: var(--molten); color: #0b0f02; }
.panel-h .faint, .panel-h .muted, #app-by { font-size: 12.5px; }
.stat .k { font-size: 12.5px; color: var(--faint); }
.stat .v { font-size: 20px; }
.stat .v small { font-size: 11.5px; }
.promise { font-size: 14.5px; }

/* ---------- $QUINE: the official CA, impossible to miss ---------- */
.quine-box { margin: 6px 0 34px; padding: 18px 20px; border: 2px solid var(--molten); background: var(--iron-2);
  box-shadow: 0 0 0 1px rgba(198, 255, 61, .15), 0 0 34px rgba(198, 255, 61, .08); }
.qb-h { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.qb-big { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.qb-label { margin: 0 0 6px; font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.qb-ca { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-bottom: 12px; }
.qb-ca code { flex: 1 1 320px; min-width: 0; font: 700 clamp(14px, 2vw, 19px) var(--mono); color: var(--molten); background: var(--iron);
  border: 1px solid var(--line-2); padding: 10px 12px; overflow-wrap: anywhere; user-select: all; }
.qb-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.qb-warn { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 90ch; }
.qb-warn b { color: var(--amber); }
.nav-quine { color: var(--molten) !important; font-weight: 700; }
.nav-quine::before { content: '' !important; }
.quine-live .soon-only { display: none; }
