/* Spawnpad's own pieces: the studio hero, the ring, the wall of lights, the fee split, the light panel.
   Reads only tokens.css. Red means lit, and nothing decorative is red (DESIGN.md). */

/* ---------- shell ---------- */
.brand-word { display: inline-flex; color: var(--ink); }
.brand-word svg { height: 25px; width: auto; }
.top-bar { gap: 32px; }
.nav a { font-size: 14.5px; }
.btn { font-weight: 500; }
.btn.primary:hover { filter: none; background: #ff5a50; }
.btn.primary[disabled] { opacity: 1; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.kicker { color: var(--ink-2); }
.small-note { font-size: 12px; }
.foot-mark { display: inline-flex; color: var(--ink); }
.foot-mark svg { width: 40px; height: 40px; }
.foot-brand p { max-width: 34em; }
.foot-links { gap: 48px; }
.foot-links > div { display: grid; gap: 8px; align-content: start; }
.foot-links .label { margin-bottom: 2px; }

/* ---------- the ring ---------- */
.ring-art { display: inline-block; flex: none; }
.ring-art svg { display: block; width: 100%; height: 100%; }
.ring.animate .seg.on { animation: seg-on 300ms var(--ease) both; animation-delay: calc(var(--i) * 40ms + 250ms); }
@keyframes seg-on { from { opacity: 0.14; } }
.light-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--light-off); flex: none; }
.lit .light-dot, .light-lit .light-dot { background: var(--accent); }
.low .light-dot { background: var(--warn); }
.light-lit { color: var(--ink); }
.light-low { color: var(--warn); }
.light-off { color: var(--muted); }

/* ---------- home: the studio ---------- */
.studio { --ring: clamp(260px, 29vw, 420px); padding-top: clamp(28px, 4vw, 52px); }
.studio-inner { display: grid; justify-items: center; text-align: center; }
.stage { position: relative; width: 100%; margin-top: 6px; }
.stage .stage-h1 { display: grid; grid-template-columns: 1fr var(--ring) 1fr; column-gap: clamp(20px, 3vw, 52px); align-items: center; min-height: var(--ring); font-size: clamp(44px, 5.6vw, 88px); line-height: 0.92; }
.beat { display: block; }
.beat.one { grid-column: 1; text-align: right; }
.beat.two { grid-column: 3; text-align: left; }
.stage-ring { position: absolute; left: 50%; top: 50%; width: var(--ring); aspect-ratio: 1; transform: translate(-50%, -50%); }
.stage-ring .ring-art { width: 100% !important; height: 100% !important; }
.stage-skeleton { opacity: 0.5; }
.stage-caption { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.stage-caption:hover { color: var(--ink); }
.studio-lede { margin-top: 22px; max-width: 34em; }
.studio-lede b { color: var(--ink); font-weight: 600; }
.describe { width: min(660px, 100%); margin-top: 26px; display: grid; gap: 10px; }
.describe-row { display: flex; gap: 8px; padding: 6px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--bg-2); }
.describe-row:focus-within { border-color: var(--accent); }
.describe-input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; border-radius: var(--r-pill); padding: 0 16px; }
.describe-input:focus { border: 0; }
.describe-row .btn { height: 48px; }
.describe .problem { text-align: left; padding-left: 18px; }
.describe-examples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.describe-examples .label { margin-right: 4px; }
.describe-examples .chip { cursor: pointer; height: 30px; font-family: var(--font-text); font-size: 13px; }
.describe-examples .chip:hover { color: var(--ink); border-color: var(--line-3); }
.studio-proof { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: 26px; }
.proof { font-size: 13px; color: var(--ink-2); }

/* ---------- how it works: one contact strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--border); border-bottom: var(--border); }
.strip-step { display: grid; gap: 10px; align-content: start; padding: 22px 22px 26px; border-left: var(--border); }
.strip-step:first-child { border-left: 0; padding-left: 0; }
.strip-step .step-n { color: var(--muted); }
.strip.big .strip-step { padding-top: 28px; padding-bottom: 32px; }
.step-art { height: 118px; border-radius: var(--r); background: var(--surface); border: var(--border); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; overflow: hidden; }
.art-face { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; }
.art-face svg, .art-face img { width: 100%; height: 100%; object-fit: cover; }
.art-line { font-size: 12px; line-height: 1.45; text-align: left; color: var(--ink-2); border-left: 2px solid var(--line-3); padding-left: 10px; }
.art-name { font-size: 22px; }
.art-name b { font-weight: 500; }
.art-arrow { color: var(--muted); }
.art-launch { flex-direction: column; gap: 2px; font-size: 13px; }
.art-launch b { font-size: 24px; font-weight: 500; }
.art-light { gap: 14px; }
.art-ring { width: 84px; height: 84px; flex: none; }
.art-ring svg { width: 100%; height: 100%; }
.art-light .split-bar { width: 110px; }

/* ---------- the wall of lights (AI tiles) ---------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 14px; }
.tile { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 18px 10px 20px; border-radius: var(--r-lg); text-align: center; transition: background var(--t) var(--ease); min-width: 0; }
a.tile:hover { background: var(--surface); }
.tile .ring-art { margin-bottom: 6px; }
.tile-id { min-width: 0; max-width: 100%; }
.tile-name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sym { font-size: 12.5px; color: var(--muted); }
.tile-nums { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); }
.tile-nums .label { font-size: 10px; }
.tile-nums .flat { color: var(--ink-2); }
.tile-light { display: inline-flex; align-items: center; gap: 7px; font: 12px/1.3 var(--font-mono); color: var(--ink-2); }
.tile-light.lit { color: var(--ink); }
.tile-light.low { color: var(--warn); }
.tile-light.off, .tile-light.preview { color: var(--muted); }
.tile.skeleton { gap: 10px; }
.skeleton .sk-ring { width: 168px; height: 168px; border-radius: 50%; }
.skeleton .sk-line { width: 60%; height: 14px; }
.skeleton .sk-line.short { width: 40%; }
.preview-box .tile { background: var(--surface); border: var(--border); padding: 22px 12px 24px; }
.ring-art.preview svg .seg { opacity: 0.9; }

/* ---------- the fee split ---------- */
.split { display: grid; gap: 10px; }
.split-bar { display: flex; gap: 2px; height: 34px; border-radius: var(--r-sm); overflow: hidden; }
.split-seg { display: flex; align-items: center; min-width: 0; padding: 0 10px; font-size: 12.5px; white-space: nowrap; overflow: hidden; transition: flex-grow var(--t) var(--ease); }
.split-seg b { font-weight: 500; }
.split-seg.burn, .split-legend .burn i { background: var(--line-3); color: var(--ink); }
.split-seg.light, .split-legend .light i { background: var(--accent); color: var(--on-accent); }
.split-seg.creator, .split-legend .creator i { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.split-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); }
.split-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.split-legend i { width: 10px; height: 10px; border-radius: 3px; }
.split-legend b { color: var(--ink); font-weight: 500; }
.split-bar:not(:has(b)) { height: 10px; border-radius: 3px; }
.split-bar:not(:has(b)) .split-seg { padding: 0; }

/* ---------- feed ---------- */
.feed-row { grid-template-columns: 76px 72px 1fr auto 64px; }
.feed-sym a:hover { color: var(--ink); }
.feed-kind { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.k-video .feed-kind, .k-launch .feed-kind { color: var(--ink-2); }
.feed-text { min-width: 0; }

/* ---------- closing band ---------- */
.band { justify-items: center; text-align: center; }
.band h2 { font-size: clamp(40px, 5.4vw, 80px); line-height: 0.95; }

/* ---------- AI page ---------- */
.coin-head { grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); padding-top: 44px; }
.coin-ring .ring-art { width: clamp(180px, 21vw, 260px) !important; height: auto !important; aspect-ratio: 1; }
.coin-title { gap: 12px; }
.coin-title h1 { font-size: clamp(48px, 6vw, 92px); line-height: 0.9; }
.coin-persona { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 32em; }
.coin-sym { font-size: 15px; }
.coin-actions { margin-top: 6px; }
.light-chip.lit { color: var(--ink); }
.light-chip.low { color: var(--warn); }
.coin-stats .stat-value { font-size: clamp(18px, 1.6vw, 22px); white-space: nowrap; }
.coin-grid { grid-template-columns: minmax(0, 1fr) 380px; }
.coin-side { display: grid; gap: 18px; }
.light-big { display: flex; gap: 16px; align-items: flex-start; }
.light-n { font-size: 78px; line-height: 0.82; color: var(--muted); min-width: 0.8em; }
.light-big.lit .light-n { color: var(--accent); }
.light-big.low .light-n { color: var(--warn); }
.chart-line { stroke: var(--ink-2); stroke-width: 1.6; }
.chart-area { fill: rgba(237, 237, 230, 0.05); }
.feed-more { display: flex; justify-content: center; padding-top: 14px; }
.light-big p + p { margin-top: 6px; font-size: 14px; }
.segments { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin: 18px 0 4px; }
.segments span { height: 14px; border-radius: 3px; background: var(--light-off); }
.segments span.on { background: var(--accent); }
.about .split-bar { margin-top: 4px; }

/* ---------- launch ---------- */
.launch-grid { grid-template-columns: minmax(0, 1fr) 360px; }
.looks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.look { aspect-ratio: 1; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.look svg { width: 100%; height: 100%; }
.look:hover { border-color: var(--line-3); }
.look[aria-pressed="true"] { border-color: var(--accent); }
.look-actions { margin-top: 12px; flex-wrap: nowrap; }
.drop-small { flex: 1; min-height: 60px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; text-align: left; padding: 10px 14px; }
.drop-small .drop-inner { justify-items: start; gap: 2px; }
.drop-small img { width: 44px; height: 44px; border-radius: 50%; }
.drop-small .drop-inner .muted { font-size: 13px; }
.range { width: 100%; accent-color: var(--accent); height: 28px; }
.split-view { margin-top: 16px; }
.split-words { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.step-card .describe-examples { justify-content: flex-start; margin-top: 10px; }

.face { display: flex; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r); border: 1.5px dashed var(--line-2); background: var(--bg-2); }
.face.over { border-color: var(--accent); }
.face-pic { width: 136px; height: 136px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-2); }
.face-pic img { width: 100%; height: 100%; object-fit: cover; }
.face-pic.making { animation: making 1.6s var(--ease) infinite alternate; }
@keyframes making { to { opacity: 0.45; } }
.face-empty, .face-empty svg { display: block; width: 100%; height: 100%; }
.face-side { display: grid; gap: 12px; }
.face-msg { font-size: 14px; color: var(--ink-2); max-width: 30em; }

/* ---------- how ---------- */
.ring-states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ring-states figure { margin: 0; display: grid; justify-items: center; align-content: start; gap: 14px; text-align: center; }
.how-ring { width: 180px; height: 180px; }
.ring-states figcaption { display: grid; gap: 4px; max-width: 28ch; }
.ring-note { margin-top: 22px; text-align: center; }
.fee-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 18px 0 14px; }
.fee-notes b { font-weight: 500; }
.fee-notes p { margin-top: 4px; font-size: 14.5px; }
.risks { display: grid; gap: 8px; margin-top: 12px; padding-left: 20px; color: var(--ink-2); }
.risks li { list-style: disc; }

/* ---------- empty, 404 ---------- */
.empty-ring { width: 112px; height: 112px; margin-bottom: 4px; }
.nf-ring { width: 220px; height: 220px; margin-bottom: 8px; }

/* ---------- phones and narrow screens ---------- */
@media (max-width: 1100px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-step:nth-child(n + 3) { border-top: var(--border); }
}
@media (max-width: 980px) {
  .coin-grid, .launch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .stage .stage-h1 { grid-template-columns: 1fr; min-height: 0; text-align: center; font-size: clamp(44px, 12vw, 72px); }
  .beat.one, .beat.two { grid-column: 1; text-align: center; }
  .stage-ring { position: static; transform: none; width: min(250px, 66vw); margin: 20px auto 0; }
  .studio .kicker { font-size: 11px; letter-spacing: 0.06em; flex-wrap: wrap; justify-content: center; }
  .coin-head { grid-template-columns: 1fr; justify-items: start; }
  .looks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ring-states, .fee-notes { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 64px 1fr 52px; }
  .feed-row .feed-kind { display: none; }
  .foot-links { gap: 28px; }
}
@media (max-width: 600px) {
  .strip { grid-template-columns: 1fr; }
  .strip-step { border-left: 0; padding-left: 0; padding-right: 0; }
  .strip-step + .strip-step { border-top: var(--border); }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 14px 4px 16px; }
  .tile .ring-art { width: 132px !important; height: 132px !important; }
  .skeleton .sk-ring { width: 132px; height: 132px; }
  .describe-row { flex-direction: column; border-radius: var(--r-lg); }
  .face { flex-direction: column; text-align: center; }
  .face .row { justify-content: center; }
  .describe-row .btn { width: 100%; }
  .look-actions { flex-wrap: wrap; }
  .tile-nums { flex-direction: column; gap: 0; }
}

/* the real site's example AIs: coin tiles with their one line instead of numbers, after the real ones on the AIs page */
.tile-line { max-width: 24ch; font-size: 12.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.examples-wall { padding-top: 32px; }
