/* Busted website: the app's "Arcade" look (App/Theme.swift, docs/product-decisions.md 2026-11-11).
   Bright and playful, follows the device's light or dark mode (dark = deep grape night, never black).
   Each color means one thing, like in the app: grape = anything you tap, green = clean,
   orange = the streak flame, gold = badges, siren red = only the logo and a visit.
   White cards with an outline and a chunky bottom edge; buttons press down like keys.
   Rounded system type (SF Rounded on Apple devices); no web fonts, no outside requests. */

:root {
  color-scheme: light dark;
  --ground: #F6F5FB;
  --card: #FFFFFF;
  --ink: #1F1B2E;
  --muted: #6B6880;
  --faint: #EFEDF6;
  --line: #E6E4EE;
  --lip: #DCD9E8;
  --dark-ink: #1F1B2E;

  --grape: #6C47FF;
  --grape-lip: #4F2FD6;
  --grape-text: #5130E0;
  --grape-tint: #EDE8FF;
  --green: #2BD46B;
  --green-lip: #1FAE55;
  --green-text: #11823F;
  --orange: #FF8A00;
  --gold: #FFC233;
  --gold-lip: #E0A200;
  --gold-text: #8A5A00;
  --siren: #FF4A3D;
  --siren-text: #D0172F;
  --win: #0078D4;

  --radius: 22px;
  --radius-s: 14px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #15121F;
    --card: #231E35;
    --ink: #F4F2FB;
    --muted: #A9A4C0;
    --faint: #2D2742;
    --line: #352E4D;
    --lip: #0B0912;
    --grape: #7A58FF;
    --grape-lip: #4527C2;
    --grape-text: #B7A6FF;
    --grape-tint: #2E2652;
    --green-text: #5BE08F;
    --gold-text: #FFCD5C;
    --siren-text: #FF7F8A;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--grape-text); font-weight: 650; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 6px; }
strong, b { font-weight: 750; }
.nw { white-space: nowrap; }

h1, h2, h3 { font-family: var(--font); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.small { font-size: 0.9rem; color: var(--muted); }
.meta { font-size: 0.95rem; color: var(--muted); margin-top: -0.25rem; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1140px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--card); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Chunky pieces (chunkyTile and ChunkyPress in the app) ---------- */

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--lip);
  padding: 22px 24px;
  margin: 0 0 22px;
}
.card > :last-child { margin-bottom: 0; }

.btn {
  --fill: var(--grape);
  --edge: var(--grape-lip);
  --text: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px;
  border: 0; border-radius: 16px;
  background: var(--fill); color: var(--text);
  box-shadow: 0 5px 0 var(--edge);
  font: inherit; font-weight: 850; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, filter 120ms ease;
  margin-bottom: 5px;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--edge); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.ghost { --fill: var(--card); --edge: var(--lip); --text: var(--ink); border: 2px solid var(--line); }
.btn.win { --fill: var(--win); --edge: #005A9E; }
.btn.big { min-height: 64px; padding: 12px 26px; font-size: 1.15rem; border-radius: 18px; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn .two small { font-weight: 650; font-size: 0.8rem; opacity: 0.85; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--line);
  font-size: 0.9rem; font-weight: 750; color: var(--muted);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Header and footer ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.logo { display: block; flex: none; }
.logo img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 750; font-size: 0.97rem;
  padding: 8px 12px; border-radius: 12px;
}
.site-nav a:hover { background: var(--faint); }
.site-nav a[aria-current="page"] { color: var(--grape-text); background: var(--grape-tint); }
.site-nav .nav-cta {
  background: var(--grape); color: #FFFFFF; box-shadow: 0 3px 0 var(--grape-lip);
  padding: 8px 16px; margin-left: 6px; margin-bottom: 3px;
}
.site-nav .nav-cta:hover { background: var(--grape); filter: brightness(1.06); }
.site-nav .nav-win { display: inline-flex; align-items: center; gap: 7px; }
.site-nav .nav-win svg { width: 15px; height: 15px; }

.site-footer { border-top: 2px solid var(--line); margin-top: 72px; padding: 32px 0 44px; color: var(--muted); font-size: 0.93rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 10px; }
.site-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
main + .site-footer { margin-top: 0; }

/* ---------- Home: hero ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { margin: 18px 0 18px; }
.hero h1 .flame-word { color: var(--orange); }
.hero .lede { margin-bottom: 30px; }
.get { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.hero-note { font-size: 0.93rem; color: var(--muted); margin: 6px 0 0; }

/* The phone showing Home */
.phone {
  justify-self: center;
  width: min(330px, 100%);
  background: var(--dark-ink);
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 10px 0 #0B0912, 0 30px 60px -20px rgba(31, 27, 46, 0.45);
  transform: rotate(2deg);
}
.screen { background: #F6F5FB; color: var(--dark-ink); border-radius: 38px; padding: 16px 16px 12px; overflow: hidden; }
.statusbar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 0.8rem; padding: 2px 10px 10px; }
.statusbar .island { width: 84px; height: 24px; border-radius: 14px; background: var(--dark-ink); }
.screen .hi { font-weight: 900; font-size: 1.35rem; margin: 2px 4px 12px; letter-spacing: -0.02em; }
.streak-card { background: #FFFFFF; border: 2px solid #E6E4EE; border-radius: 22px; box-shadow: 0 4px 0 #DCD9E8; padding: 16px 14px 14px; text-align: center; }
.streak-card .flame { width: 70px; height: 84px; margin: 0 auto 2px; }
.streak-card .num { font-size: 3.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.streak-card .label { font-weight: 800; color: #6B6880; font-size: 0.9rem; margin-bottom: 12px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week span { display: grid; justify-items: center; gap: 3px; font-size: 0.68rem; font-weight: 800; color: #6B6880; }
.week i {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #FFEBD3; font-style: normal; font-size: 0.85rem;
}
.week .today i { background: transparent; border: 2px dashed #FF8A00; }
.week .later i { background: #EFEDF6; }
.mini-chat { margin-top: 12px; background: #FFFFFF; border: 2px solid #E6E4EE; border-radius: 18px; box-shadow: 0 3px 0 #DCD9E8; padding: 10px 12px; display: flex; align-items: center; gap: 10px; text-align: left; }
.mini-chat .sq { width: 38px; height: 38px; border-radius: 12px; background: #0E8FD6; color: #FFFFFF; display: grid; place-items: center; font-weight: 900; flex: none; }
.mini-chat b { display: block; font-size: 0.92rem; line-height: 1.25; }
.mini-chat small { color: #6B6880; font-weight: 700; font-size: 0.78rem; }
.tabbar { display: flex; justify-content: space-around; margin-top: 12px; padding: 8px 4px 2px; border-top: 2px solid #EFEDF6; font-size: 0.7rem; font-weight: 800; color: #6B6880; }
.tabbar span { display: grid; justify-items: center; gap: 2px; }
.tabbar .on { color: #5130E0; }
.tabbar svg { width: 20px; height: 20px; }

/* ---------- Home: sections ---------- */

.band { padding: 80px 0; }
.band.sunk { background: var(--card); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.band > .wrap > h2 { max-width: 22em; }
.band .lede { margin-bottom: 36px; }

/* How it works */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps-grid li { counter-increment: step; margin: 0; }
.steps-grid li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 14px; background: var(--grape); color: #FFFFFF;
  box-shadow: 0 4px 0 var(--grape-lip);
  font-weight: 900; font-size: 1.3rem;
}
.steps-grid h3 { margin-bottom: 6px; }
.steps-grid p { margin: 0; color: var(--muted); }

/* The example chat */
.chat-section { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.chat-section ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.chat-section ul.plain li { padding-left: 34px; position: relative; }
.chat-section ul.plain li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 6px var(--card); border: 2px solid var(--green); }
.band:not(.sunk) .chat-section ul.plain li::before { box-shadow: inset 0 0 0 6px var(--ground); }

.chat { background: var(--ground); border: 2px solid var(--line); border-radius: 28px; box-shadow: 0 6px 0 var(--lip); padding: 0; margin: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card); border-bottom: 2px solid var(--line); }
.chat-head .sq { width: 42px; height: 42px; border-radius: 13px; background: #0E8FD6; color: #FFFFFF; display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; }
.chat-head .who { font-weight: 850; line-height: 1.2; }
.chat-head .sub { font-size: 0.85rem; color: var(--muted); font-weight: 650; }
.chat ol { list-style: none; margin: 0; padding: 16px 14px 18px; display: grid; gap: 8px; }
.chat li { display: flex; align-items: flex-end; gap: 8px; }
.chat li.me { justify-content: flex-end; }
.av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #FFFFFF; font-weight: 900; font-size: 0.85rem; }
.av.ben { background: #0F9A4A; } .av.ava { background: #D6337F; } .av.dan { background: #D9480F; }
.av.bot { background: var(--dark-ink); }
.av.bot svg { width: 18px; height: 18px; }
@media (prefers-color-scheme: dark) { .av.bot { box-shadow: 0 0 0 2px var(--line); } }
.bubble { background: var(--card); border: 2px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 8px 13px; max-width: 78%; line-height: 1.4; font-size: 0.97rem; }
.bubble .from { display: block; font-size: 0.78rem; font-weight: 800; color: var(--muted); margin-bottom: 1px; }
.me .bubble { background: var(--grape); border-color: var(--grape); color: #FFFFFF; border-radius: 20px 20px 6px 20px; }
.react { margin: -4px 0 0 38px; display: flex; gap: 6px; }
.react span { background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 1px 9px; font-size: 0.82rem; font-weight: 800; }

/* Badge post: a gold medal sticker */
.medal-post { display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 10px 14px 10px 10px; }
.medal { position: relative; width: 50px; height: 64px; padding-top: 16px; flex: none; }
.medal::before, .medal::after { content: ""; position: absolute; top: 0; width: 13px; height: 28px; background: var(--grape); }
.medal::before { left: 11px; transform: skewX(20deg); }
.medal::after { right: 11px; transform: skewX(-20deg); background: var(--sky, #1FB6FF); }
.medal b { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; background: var(--gold); color: var(--dark-ink); box-shadow: 0 4px 0 var(--gold-lip), inset 0 0 0 4px rgba(255, 255, 255, 0.45); font-weight: 900; font-size: 1.2rem; }
.medal-post strong { display: block; line-height: 1.25; }
.medal-post small { color: var(--muted); font-weight: 700; }

/* A visit: the red BUSTED! warning between hazard stripes */
.warning { flex: 1; max-width: 86%; border-radius: 20px 20px 20px 6px; overflow: hidden; background: var(--siren); color: #FFFFFF; box-shadow: 0 4px 0 #B8261C; }
.hazard { height: 12px; background: repeating-linear-gradient(-45deg, #FFC233 0 10px, #1F1B2E 10px 20px); }
.warning .shout { display: flex; align-items: center; gap: 10px; padding: 10px 14px 8px; font-weight: 900; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1; }
.warning .shout svg { width: 30px; height: 30px; }
.warning .panel { margin: 0 10px 10px; background: #FFFFFF; color: var(--dark-ink); border-radius: 14px; padding: 9px 12px; display: flex; gap: 10px; align-items: center; }
.warning .panel b { display: block; font-size: 0.98rem; line-height: 1.25; }
.warning .panel small { color: #6B6880; font-weight: 650; font-size: 0.82rem; line-height: 1.3; display: block; }
.chat-foot { font-size: 0.82rem; color: var(--muted); padding: 0 18px 16px; margin: -6px 0 0; }

/* Badges row */
.milestones { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; }
.milestones li { display: grid; justify-items: center; gap: 4px; }
.milestones .medal { width: 64px; height: 84px; padding-top: 20px; }
.milestones .medal b { width: 60px; height: 60px; font-size: 1.35rem; }
.milestones .medal::before, .milestones .medal::after { height: 36px; width: 17px; }
.milestones .medal::before { left: 14px; } .milestones .medal::after { right: 14px; }
.milestones span { font-size: 0.85rem; font-weight: 800; color: var(--muted); }

/* Privacy promises: plain, no box per item */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; margin-bottom: 30px; }
.promises h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.promises h3 svg { width: 24px; height: 24px; color: var(--green-text); flex: none; }
.promises p { margin: 0; color: var(--muted); }

/* ---------- Windows ---------- */

.windows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.win-title { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.win-logo { width: 54px; height: 54px; flex: none; }
.win-title h2 { margin: 0; }
.win-title .kicker { display: block; font-size: 1rem; font-weight: 800; color: var(--win); letter-spacing: 0; margin-bottom: 2px; }
@media (prefers-color-scheme: dark) { .win-title .kicker { color: #4CC2FF; } }
.win-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; counter-reset: w; }
.win-steps li { counter-increment: w; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.win-steps li::before { content: counter(w); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--faint); border: 2px solid var(--line); font-weight: 900; }
.win-steps p { margin: 0; }
.win-steps small { display: block; color: var(--muted); font-size: 0.9rem; }
.win-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.win-meta li { font-size: 0.85rem; font-weight: 750; color: var(--muted); background: var(--faint); border-radius: 999px; padding: 4px 12px; }
.fine { margin-top: 22px; font-size: 0.92rem; color: var(--muted); }
.fine p { margin: 0 0 8px; }
.mac-soon { margin-top: 26px; padding-top: 20px; border-top: 2px solid var(--line); font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mac-soon span { font-size: 0.8rem; font-weight: 800; color: var(--muted); background: var(--faint); border-radius: 999px; padding: 3px 10px; }

/* A Windows 11 desktop with the Busted setup window on it */
.desktop {
  position: relative;
  border-radius: 24px;
  padding: 34px 26px 0;
  background:
    radial-gradient(120% 90% at 85% 0%, #9AD3FF 0%, transparent 55%),
    radial-gradient(120% 100% at 0% 100%, #2F6FE0 0%, transparent 60%),
    #4A8DF0;
  border: 2px solid var(--line);
  box-shadow: 0 6px 0 var(--lip);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 420px;
}
.win-window { background: #FFFFFF; color: #1B1B1B; border-radius: 10px; box-shadow: 0 18px 40px -12px rgba(0, 20, 60, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.08); overflow: hidden; font-family: "Segoe UI Variable", "Segoe UI", var(--font); max-width: 440px; margin: 0 auto; width: 100%; }
.titlebar { display: flex; align-items: center; height: 34px; background: #F3F3F3; font-size: 0.8rem; padding-left: 12px; gap: 8px; }
.titlebar svg.mark { width: 15px; height: 15px; }
.titlebar .ctl { margin-left: auto; display: flex; height: 100%; }
.titlebar .ctl span { width: 44px; display: grid; place-items: center; color: #333; }
.titlebar .ctl svg { width: 10px; height: 10px; }
.win-body { padding: 20px 24px 22px; }
.win-body .h { font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; color: #1B1B1B; letter-spacing: -0.01em; }
.win-body p { font-size: 0.86rem; color: #5D5D5D; line-height: 1.45; margin: 0 0 14px; }
.win-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.7rem; font-weight: 700; letter-spacing: 0.18em; text-align: center; background: #F6F5FB; border: 1px solid #E5E5E5; border-radius: 8px; padding: 10px 0; color: #1F1B2E; margin-bottom: 14px; }
.win-wait { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #5D5D5D; }
.win-wait i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C7C7C7; border-top-color: var(--win); }
.taskbar { margin: 28px -26px 0; height: 46px; background: rgba(243, 243, 243, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; margin-top: auto; }
.taskbar > span { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; }
.taskbar > span.on { background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); position: relative; }
.taskbar > span.on::after { content: ""; position: absolute; bottom: -3px; width: 12px; height: 3px; border-radius: 2px; background: var(--win); }
.taskbar svg { width: 20px; height: 20px; }
.taskbar .tray { position: absolute; right: 14px; display: flex; align-items: center; gap: 10px; font-family: "Segoe UI", var(--font); font-size: 0.7rem; color: #1B1B1B; line-height: 1.2; text-align: right; }
.taskbar .tray svg { width: 16px; height: 16px; }
.app-dot { width: 18px; height: 18px; border-radius: 4px; }

/* ---------- Closing ---------- */

.closing .card { text-align: center; padding: 48px 28px; }
.closing .card h2 { margin-bottom: 12px; }
.closing .lede { margin: 0 auto 28px; }
.closing .get { justify-content: center; }

/* ---------- Legal and support pages ---------- */

main.wrap { padding-top: 40px; padding-bottom: 64px; }
main.wrap > h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-top: 8px; }
main.wrap h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin-top: 2.2em; }
main.wrap h3 { margin-top: 1.6em; }
main.wrap .card h3 { margin-top: 0; }
main.wrap ul, main.wrap ol { padding-left: 1.3em; }
main.wrap li { margin-bottom: 0.4em; }

.draft { background: var(--gold); color: var(--dark-ink); text-align: center; font-weight: 800; font-size: 0.92rem; padding: 8px 16px; }
.toc { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 0 var(--lip); padding: 18px 22px; margin: 26px 0 8px; }
.toc p { font-weight: 850; margin-bottom: 0.5rem; }
.toc ol { margin: 0; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; }

.table-scroll { overflow-x: auto; margin: 0 0 1.2rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 2px solid var(--line); }
th { font-weight: 850; background: var(--faint); }
tr:last-child td { border-bottom: 0; }

dl.faq { margin: 0; }
dl.faq dt { font-weight: 850; font-size: 1.08rem; padding-top: 1.1rem; margin-top: 1.1rem; border-top: 2px solid var(--line); }
dl.faq dt:first-child { border-top: 0; margin-top: 0; padding-top: 0.25rem; }
dl.faq dd { margin: 0.3rem 0 0; color: var(--muted); }

/* Invite page (/join/CODE) */
.invite { max-width: 620px; }
.invite h1 { margin-top: 16px; font-size: clamp(2.1rem, 6vw, 3rem); }
.invite .code {
  display: inline-block; margin: 6px 0 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 2.3rem; font-weight: 800; letter-spacing: 0.16em;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 5px 0 var(--lip);
  padding: 12px 24px;
}
.steps { list-style: none; padding: 0 !important; margin: 30px 0 22px; display: grid; gap: 18px; }
.steps li { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 0 var(--lip); padding: 20px 22px 18px; margin: 0; }
.steps h3 { margin: 0 0 4px !important; }
.steps p { color: var(--muted); margin-bottom: 14px; }

/* ---------- Smaller screens ---------- */

@media (max-width: 980px) {
  .hero, .chat-section, .windows { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 36px; }
  .phone { transform: none; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .milestones { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 18px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-nav .opt { display: none; }
  .band { padding: 60px 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 26px; }
  .promises { grid-template-columns: 1fr; gap: 24px; }
  .toc ol { columns: 1; }
  .get .btn { width: 100%; justify-content: flex-start; }
  .closing .get .btn { justify-content: center; }
  .milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desktop { padding: 24px 14px 0; min-height: 0; }
  .taskbar { margin: 24px -14px 0; }
  .taskbar .tray { display: none; }
  .win-body { padding: 16px 16px 18px; }
  .win-code { font-size: 1.35rem; }
  .warning .shout { font-size: 1.6rem; }
}

@media (max-width: 420px) {
  .site-header .wrap { min-height: 60px; }
  .logo img { height: 24px; }
  .site-nav .nav-win { display: none; }
}
