/* Betacade site styles, shared by every page. Tokens follow the app's studio
   redesign (apps/play-host/src/me.ts): ink primary buttons, hairline cards,
   blue accent. Light and dark follow the system setting. */

:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --card: #ffffff;
  --line: #e7e7ea;
  --soft: #f0f0f2;
  --border: #dcdce0;
  --text: #111113;
  --text2: #55565c;
  --faint: #c9cacf;
  --pbg: #111113;
  --pfg: #ffffff;
  --accent: #2563eb;
  --accent-soft: #dbe5fb;
  --okfg: #127a55;
  --okbg: #e7f6ef;
  --wrap: 68rem;
  --gutter: max(16px, env(safe-area-inset-left));
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0c0c0e;
    --card: #141417;
    --line: #26262b;
    --soft: #212126;
    --border: #34343b;
    --text: #ececf0;
    --text2: #a6a7ae;
    --faint: #4a4b52;
    --pbg: #ececf0;
    --pfg: #111113;
    --accent: #7aa7ff;
    --accent-soft: #1d2a45;
    --okfg: #5fd3a2;
    --okbg: rgba(27, 175, 122, .16);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em;
       background: var(--soft); border-radius: 5px; padding: .1em .35em; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 40px; padding: 0 1.1rem; border-radius: 8px;
  background: var(--pbg); color: var(--pfg); border: 1px solid var(--pbg);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--soft); opacity: 1; }
.btn.lg { height: 46px; padding: 0 1.35rem; font-size: 16px; }

/* ── Top bar ── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 60px; display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem; flex: none;
  font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--text); text-decoration: none;
}
.mark {
  width: 24px; height: 24px; border-radius: 7px; background: var(--pbg);
  display: inline-flex; align-items: center; justify-content: center;
}
.mark svg { fill: var(--pfg); }
.nav-links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; font-size: 14px; }
.nav-links a { color: var(--text2); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.nav-ctas { display: inline-flex; gap: 8px; margin-left: auto; }
.nav-ctas .nav-cta { margin-left: 0; }
@media (max-width: 440px) { .nav-ctas .btn.ghost { display: none; } }
.nav-cta { margin-left: auto; height: 34px; padding: 0 .9rem; font-size: 14px; }

/* ── Hero: the pitch beside the dashboard ── */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: 18px; }
.hero .sub { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--text2); margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .aside { font-size: 14px; color: var(--text2); margin-top: 18px; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Mocks: the product drawn in HTML with an example game (no real data, no images) ── */
.mock { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
        box-shadow: 0 12px 40px rgba(17, 17, 19, .08); overflow: hidden; font-size: 13px; color: var(--text);
        min-width: 0; }
.m-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px;
         border-bottom: 1px solid var(--line); font-size: 12.5px; }
.m-crumb { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-faint { color: var(--text2); font-weight: 400; }
.m-live { display: inline-flex; align-items: center; gap: 6px; color: var(--okfg); background: var(--okbg);
          border-radius: 999px; padding: 3px 10px; font-weight: 600; white-space: nowrap; }
.m-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.m-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 16px 6px; }
.m-tiles div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.m-tiles b { display: block; font-size: 18px; letter-spacing: -.02em; }
.m-tiles span { color: var(--text2); font-size: 11.5px; }
.m-chart { padding: 10px 16px 4px; }
.m-chart-head { display: flex; justify-content: space-between; gap: 8px; color: var(--text2); font-size: 11.5px; margin-bottom: 6px; flex-wrap: wrap; }
.m-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin: 0 4px 0 8px; }
.m-legend i.a, .m-bars-a { background: #e8913a; fill: #e8913a; }   /* the older build: warm, apart from the blue */
.m-legend i.b, .m-bars-b { background: var(--accent); fill: var(--accent); }
.m-chart svg { display: block; width: 100%; height: 110px; }
.m-rows { list-style: none; margin: 0; padding: 6px 16px 14px; }
/* Fixed widths for the status and the counts, so they line up from row to row. */
.m-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) 72px 84px; gap: 10px; align-items: center;
             padding: 8px 0; border-top: 1px solid var(--line); }
.m-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
        background: var(--accent-soft); color: var(--accent); }
.m-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-meta { color: var(--text2); white-space: nowrap; }
.m-pill { font-size: 11px; color: var(--text2); background: var(--soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.m-pill.on { color: var(--okfg); background: var(--okbg); }
.m-when { justify-self: end; color: var(--text2); font-size: 12px; white-space: nowrap; }
.m-pills { display: inline-flex; gap: 4px; justify-self: end; }
.m-pills .m-pill { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.m-pills svg { width: 11px; height: 11px; fill: currentColor; }
.m-pill.bug.on { color: #b42318; background: rgba(180, 35, 24, .1); }
@media (prefers-color-scheme: dark) { .m-pill.bug.on { color: #ff8a80; background: rgba(255, 138, 128, .14); } }
@media (max-width: 520px) { .m-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.m-game { display: block; width: 100%; height: 100%; }
.m-replay .m-stage { aspect-ratio: 16 / 9; overflow: hidden; }
.rv-events .m-t { color: var(--text2); font-variant-numeric: tabular-nums; }
.m-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px;
          font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--card); }
.m-chip.dark { background: var(--pbg); color: var(--pfg); border-color: var(--pbg); }
.rv-at { display: flex; gap: 10px; flex-wrap: wrap; padding: 10px 16px 6px; font-size: 12px; }
.sw.b { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-right: 4px; }
.rv-track { position: relative; display: flex; gap: 3px; height: 12px; margin: 6px 16px 0; }
.rv-track .seg { border-radius: 4px; }
.rv-track .seg.a { background: rgba(232, 145, 58, .35); }
.rv-track .seg.b { background: var(--accent-soft); }
.rv-track .tick { position: absolute; top: 3px; width: 2px; height: 6px; border-radius: 1px; background: var(--faint); }
.rv-track .mk { position: absolute; top: -5px; width: 8px; height: 8px; border-radius: 50%; transform: translateX(-50%); border: 2px solid var(--card); }
.rv-track .mk.err { background: #d93025; }
.rv-track .mk.note { background: var(--accent); }
.rv-track .mk.bug { background: #e8913a; }
.rv-track .ph { position: absolute; top: -4px; width: 2px; height: 20px; border-radius: 1px; background: var(--text); }
.rv-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px 16px; }
.rv-speed { display: inline-flex; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; font-size: 11px; justify-self: start; }
.rv-speed > * { padding: 3px 7px; color: var(--text2); }
.rv-speed b { background: var(--soft); color: var(--text); }
.rv-mid { display: inline-flex; gap: 6px; align-items: center; }
.rv-round { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); font-size: 9px; color: var(--text2); }
.rv-round.big { width: 32px; height: 32px; background: var(--pbg); color: var(--pfg); border-color: var(--pbg); font-size: 12px; }
.rv-right { display: inline-flex; gap: 6px; justify-self: end; }
.rv-events { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; gap: 6px; font-size: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.rv-events li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); }
.rv-events li > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-events .m-chip { padding: 2px 7px; font-size: 10.5px; }
.rv-events li.err { border-color: #f3c3c3; background: rgba(185, 28, 28, .06); }
.rv-events li.note { border-color: var(--accent-soft); background: var(--accent-soft); }
.rv-events li.bug { border-color: rgba(232, 145, 58, .4); background: rgba(232, 145, 58, .1); }
/* The selected item: the same outline on the replay, the board and the messages. */
.rv-events li.on, .kb-card.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.ib-msg.on { box-shadow: 0 0 0 1.5px var(--text); }
@media (max-width: 520px) {
  .rv-controls { grid-template-columns: 1fr auto; }
  .rv-speed { display: none; }
  .rv-right { grid-column: 1 / -1; justify-self: stretch; justify-content: flex-end; }
}

/* The board: feedback, errors and bugs as cards in columns. */
.stack { display: grid; gap: 14px; justify-self: end; width: 100%; max-width: 460px; }
.stack .mock { max-width: none; justify-self: stretch; }
.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.kb-col { display: grid; gap: 6px; align-content: start; min-width: 0; border-radius: 9px; padding: 6px; border-top: 3px solid; }
/* Each column its own colour, so they read apart at a glance. */
.kb-col.new { background: rgba(37, 99, 235, .06); border-top-color: var(--accent); }
.kb-col.doing { background: rgba(232, 145, 58, .08); border-top-color: #e8913a; }
.kb-col.fixed { background: var(--okbg); border-top-color: var(--okfg); }
.kb-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; padding: 0 2px 2px; }
.kb-col.new .kb-head { color: var(--accent); }
.kb-col.doing .kb-head { color: #b86413; }
.kb-col.fixed .kb-head { color: var(--okfg); }
.kb-head span { font-variant-numeric: tabular-nums; }
.kb-card { display: grid; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font-size: 11px; min-width: 0; }
.kb-card b { font-size: 11.5px; line-height: 1.3; overflow-wrap: anywhere; }
.kb-card .m-faint { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.kb-card.done { opacity: .7; }
.kb-tag { justify-self: start; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 4px; padding: 1px 5px; }
.kb-tag.note { background: var(--accent-soft); color: var(--accent); }
.kb-tag.err { background: rgba(217, 48, 37, .12); color: #c5221f; }
.kb-tag.bug { background: rgba(232, 145, 58, .16); color: #b86413; }
@media (prefers-color-scheme: dark) { .kb-tag.err { color: #ff8a80; } .kb-tag.bug, .ib-chip.bug, .ib-event.filed, .kb-col.doing .kb-head { color: #f2b067; } }
@media (max-width: 760px) { .stack { justify-self: stretch; max-width: none; } }
@media (max-width: 420px) { .kb { grid-template-columns: 1fr 1fr; } .kb-col:last-child { display: none; } }

/* Feedback: the notes, and the thread with one player. */
.ib-filters { display: inline-flex; gap: 8px; font-size: 11.5px; color: var(--text2); }
.ib-filters b { color: var(--text); }
.ib-body { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.ib-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); }
.ib-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ib-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-list li.on { background: var(--soft); }
.ib-text { display: grid; gap: 1px; font-size: 12px; min-width: 0; }
.ib-text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-text .m-faint { font-size: 11px; }
.ib-chip { font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.ib-chip.new { background: var(--accent-soft); color: var(--accent); }
.ib-chip.bug { background: rgba(232, 145, 58, .16); color: #b86413; }
.ib-chip.done { background: var(--okbg); color: var(--okfg); }
.ib-thread { display: flex; flex-direction: column; gap: 8px; padding: 12px; font-size: 12px; }
.ib-msg { max-width: 85%; padding: 7px 10px; border-radius: 10px; line-height: 1.4; }
.ib-msg.them { background: var(--soft); align-self: flex-start; border-bottom-left-radius: 3px; }
.ib-msg.me { background: var(--accent-soft); color: var(--text); align-self: flex-end; border-bottom-right-radius: 3px; }
.ib-reply { align-self: flex-end; display: grid; justify-items: end; gap: 3px; max-width: 85%; }
.ib-reply .ib-msg { max-width: none; }
/* A reply to an earlier message, iMessage style: the quoted message, faded, with a line down to the reply. */
.ib-quote { position: relative; margin-right: 16px; padding: 4px 9px; border-radius: 10px; background: var(--soft); color: var(--text2);
            font-size: 11px; opacity: .85; }
.ib-quote::after { content: ""; position: absolute; right: -11px; top: 50%; width: 9px; height: 17px;
                   border: 2px solid var(--faint); border-left: 0; border-bottom: 0; border-top-right-radius: 9px; }
.ib-event { align-self: center; font-size: 11px; border-radius: 999px; padding: 3px 9px; }
.ib-event.filed { color: #b86413; background: rgba(232, 145, 58, .16); }
.ib-event.closed { color: var(--okfg); background: var(--okbg); }
.ib-compose { margin-top: auto; display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px; padding: 5px 5px 5px 10px; color: var(--text2); }
.ib-compose span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .ib-body { grid-template-columns: 1fr; }
  .ib-list { border-right: 0; }
  .ib-filters span { display: none; }
}

.m-page .m-cover { aspect-ratio: 16 / 7; overflow: hidden; }
.m-page-body { padding: 16px; display: grid; gap: 12px; }
.m-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.m-page-title { display: grid; }
.m-page-title b { font-size: 18px; letter-spacing: -.02em; }
.m-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--pbg); color: var(--pfg); border-radius: 8px;
         padding: 8px 14px; font-weight: 600; white-space: nowrap; }
.m-desc { color: var(--text2); font-size: 13px; line-height: 1.5; }
.m-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.m-history li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; }
.m-history i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 5px; }
.m-history li > span { display: grid; }
.m-history b { font-size: 13px; }
.m-history .m-faint { font-size: 12px; }

/* ── Device frames: a browser window, a phone and a gamepad ── */
.bw-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--soft); border-bottom: 1px solid var(--line); }
.bw-dots { display: inline-flex; gap: 5px; flex: none; }
.bw-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.bw-dots i:nth-child(2) { background: #febc2e; }
.bw-dots i:nth-child(3) { background: #28c840; }
.bw-url { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
          font-size: 11px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.m-browser { padding: 0; }

/* Three devices around one browser window; percentages so the group scales as one. */
.devices { position: relative; margin: 0; width: 100%; max-width: 480px; aspect-ratio: 5 / 4; justify-self: end; }
.d-browser { position: absolute; left: 9%; right: 9%; top: 0; background: var(--card); border: 1px solid var(--line);
             border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(17, 17, 19, .1); }
.d-playbar { display: flex; align-items: center; gap: 5px; padding: 5px 8px; background: #0c0c0e; color: #e9e9ee; font-size: 10px; }
.d-playbar span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-chip { background: #26262d; border: 1px solid #3a3a44; border-radius: 5px; padding: 1px 6px; }
.d-screen { aspect-ratio: 16 / 9; }
.d-phone { position: absolute; left: 0; bottom: 0; width: 28%; aspect-ratio: 9 / 16; background: #0c0c0e; border: 1px solid #2c2c33;
           border-radius: 12% / 7%; padding: 2.4%; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.d-phone-screen { width: 100%; height: 100%; border-radius: 10% / 5.6%; overflow: hidden; }
.d-island { position: absolute; top: 3.2%; left: 50%; transform: translateX(-50%); width: 24%; height: 2.4%; border-radius: 999px; background: #000; z-index: 1; }
.d-home { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); width: 32%; height: 1%; border-radius: 999px; background: #8a8a94; }

/* A smart fridge, side by side: a narrower freezer left, the fridge right with a screen, dark. */
.d-fridge { position: absolute; right: 0; bottom: 0; width: 31%; aspect-ratio: 10 / 16; display: grid; grid-template-columns: 2fr 3fr;
            gap: 1.5%; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .3)); }
.d-fridge-door { position: relative; border: 1px solid #3a3d44; background: linear-gradient(100deg, #24262b 0%, #33363d 48%, #1f2125 100%); }
.d-fridge-door.left { border-radius: 8px 2px 2px 8px; }
.d-fridge-door.right { border-radius: 2px 8px 8px 2px; }
.d-handle { position: absolute; top: 22%; height: 36%; border-radius: 999px; background: linear-gradient(90deg, #6b6f78, #a7abb3); }
.d-fridge-door.left .d-handle { right: 10%; width: 7.5%; }   /* the doors are 2:3, so these match */
.d-fridge-door.right .d-handle { left: 6.7%; width: 5%; }
.d-fridge-screen { position: absolute; left: 22%; right: 12%; top: 12%; aspect-ratio: 3 / 4; border-radius: 3px; overflow: hidden;
                   border: 2px solid #0d0e11; background: #0d0e11; box-shadow: 0 0 0 1px #4a4d55; }

/* ── How it works: a compact how-to, smaller than the hero ── */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.how { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 700; margin-bottom: 36px; }
.steps .wrap { max-width: 58rem; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.step + .step { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.step-text h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step-text p { color: var(--text2); font-size: 15px; }
.num { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
       background: var(--pbg); color: var(--pfg); font-size: 12.5px; font-weight: 700; }
.step .mock { max-width: 460px; justify-self: end; width: 100%; }
/* The words to give an agent, quoted: a prompt, not a command to run. */
.prompt { position: relative; margin: 0; background: var(--soft); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
          padding: 16px 18px 16px 46px; font-size: 13.5px; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt .copy { position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 .7rem; font-size: 12.5px; }
.prompt .copy[hidden] { display: none; }
.prompt { padding-right: 76px; }
.prompt::before { content: "\201C"; position: absolute; left: 12px; top: 2px; font: 700 44px/1 Georgia, "Times New Roman", serif; color: var(--faint); }
.prompt code { background: none; padding: 0; color: inherit; font-size: inherit; }
.step-text .prompt { margin-top: 14px; }
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; gap: 20px; }
  .step .mock { justify-self: stretch; max-width: none; }
  .devices { justify-self: center; max-width: 420px; }
}

/* ── Players and the closing call ── */
.players .wrap { display: grid; gap: 24px; }
.players h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 700; text-align: center; }
.players .lede { color: var(--text2); font-size: 1.1rem; text-align: center; margin-top: -12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.facts h3 { font-size: 1.05rem; margin-bottom: 8px; }
.facts p { color: var(--text2); font-size: 15px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }
.cta-row.center { justify-content: center; }
.closing .wrap { text-align: center; display: grid; justify-items: center; gap: 20px; }
.closing .quiet { color: var(--text2); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.closing .quiet:hover { color: var(--text); }
.closing h2 { font-size: clamp(1.3rem, 3.2vw, 1.8rem); font-weight: 700; }

/* ── Pricing page: cheapest first, players then studios ── */
.pricing-head { padding: 64px 0 24px; text-align: center; }
.pricing-head .wrap { max-width: 44rem; }
.pricing-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; }
.pricing-head .sub { color: var(--text2); font-size: 1.05rem; }
.tiers-wrap { padding-top: 24px; border-top: 0 !important; }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tier > .btn, .tier > .fine { margin-top: auto; }   /* the card's last line sits at the bottom; the list stays tight */
.tier .price span { font-size: 14px; font-weight: 500; color: var(--text2); letter-spacing: 0; margin-left: 2px; }
.tier.now { border-color: var(--text); }
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier h2 { font-size: 1.15rem; }
.tier-tag { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--okbg); color: var(--okfg); white-space: nowrap; }
.tier-tag.later { background: var(--soft); color: var(--text2); }
.tier .price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.tier .who { color: var(--text2); font-size: 14px; }
.tier .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text2); margin-top: 4px; }
.tier ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 5px; align-content: start; font-size: 14px; }
.tier .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } }

/* ── The studio form ── */
.studio-dialog { width: min(26rem, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
                 background: var(--card); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.studio-dialog::backdrop { background: rgba(12, 12, 14, .55); }
.studio-dialog h2 { font-size: 1.3rem; margin-bottom: 8px; }
.studio-dialog form { display: grid; gap: 10px; }
.studio-dialog label { font-weight: 600; font-size: 14px; margin-top: 4px; }
.studio-dialog input { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
                       background: var(--bg); color: var(--text); width: 100%; }
.studio-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.studio-msg { min-height: 1.4em; font-size: 14px; color: var(--text2); }
.muted { color: var(--text2); }
.fine { font-size: 12.5px; color: var(--text2); }

/* ── Footer ── */
.site-foot { border-top: 1px solid var(--line); background: var(--card); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--text2); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--text2); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }

/* ── Legal pages ── */
.legal { max-width: 46rem; margin: 0 auto; padding: 56px var(--gutter) 72px; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.legal .eyebrow { margin-bottom: 10px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; margin-bottom: 8px; }
.legal .updated { font-size: 14px; color: var(--text2); margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 44px 0 12px; scroll-margin-top: 80px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { margin: 0 0 14px; overflow-wrap: break-word; }
.legal ul, .legal ol { padding-left: 1.4rem; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal .lead { font-size: 1.1rem; color: var(--text2); }
.legal .btn { color: var(--pfg); text-decoration: none; }
.legal .caps { font-size: 14px; }

.callout {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px 20px; margin: 24px 0; font-size: 15px;
}
.callout p:last-child { margin-bottom: 0; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 0 0 36px; font-size: 15px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; }
.toc li { margin-bottom: 4px; }

/* Tables scroll inside their own box on phones, never the page. */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 32rem; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--soft); font-weight: 600; }

/* ── 404 ── */
.lost { max-width: 36rem; margin: 0 auto; padding: 96px var(--gutter); text-align: center; }
.lost h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 14px; }
.lost p { color: var(--text2); margin-bottom: 28px; }

/* Phones: the pictures sit inset on a soft panel, narrower than the copy, so they read as
   illustrations, not as the real app. */
@media (max-width: 760px) {
  .hero-grid > .mock, .step > .mock, .step > .devices {
    width: calc(100% - 28px); justify-self: center; max-width: 420px;
  }
  .hero-grid > .mock, .step > .mock { box-shadow: 0 0 0 10px var(--soft), 0 12px 40px rgba(17, 17, 19, .08); margin: 10px 0; }
  .step > .devices { background: var(--soft); border-radius: 6px; box-shadow: 0 0 0 10px var(--soft); margin: 10px 0; }
}
