:root {
  --bg: #0a0e17;
  --panel: rgba(20, 27, 43, 0.72);
  --panel-solid: #141b2b;
  --border: rgba(140, 160, 210, 0.10);
  --border-strong: rgba(140, 160, 210, 0.22);
  --text: #e7ebf4;
  --muted: #8d97ad;
  --faint: #5c6579;
  --accent: #8b9cff;
  --accent-2: #5fd4ff;
  --accent-soft: rgba(139, 156, 255, 0.14);
  --accent-glow: rgba(139, 156, 255, 0.35);
  --up: #3fe0a0;
  --down: #ff6f8e;
  --warn: #ffbf5c;
  --radius: 16px;
  --sans: "Segoe UI", system-ui, -apple-system, Inter, Roboto, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ease: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.grad { background: linear-gradient(120deg, #fff 0%, var(--accent) 55%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(139, 156, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(95, 212, 255, 0.10), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(139, 156, 255, 0.08), transparent 60%),
    var(--bg); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; background: rgba(10, 14, 23, 0.65); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--text); }
.brand img { border-radius: 8px; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav nav a { color: var(--muted); transition: color var(--ease); }
.nav nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; color: #0a0e17; background: linear-gradient(120deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 30px var(--accent-glow); transition: transform var(--ease), box-shadow var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px var(--accent-glow); }
.btn .muted { color: rgba(10, 14, 23, 0.6); font-weight: 500; font-size: 13px; }
.btn.ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; }
.btn.ghost .muted { color: var(--muted); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.nav nav a.btn.small { color: #0a0e17; }

/* ---------- hero ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 90px 0 70px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 8px; margin-bottom: 18px; }
h1 { font-size: 58px; line-height: 1.02; margin-bottom: 20px; }
.lede { font-size: 18px; color: #b8c0d2; max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta.center { justify-content: center; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* the fake app */
.mock { background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; font-size: 12px; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock-top { display: flex; border-bottom: 1px solid var(--border); background: rgba(10, 14, 23, 0.55); }
.mock-top .stat { flex: 1; padding: 12px 16px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.mock-top .stat:last-child { border-right: 0; }
.mock-top .stat span { font-size: 10px; color: var(--muted); }
.mock-top .stat b { font-family: var(--mono); font-size: 14px; }
.mock-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.mock-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.mock-card.chart { grid-column: 1 / -1; }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 8px; font-size: 12px; }
.mock-head .row { display: inline-flex; align-items: center; gap: 6px; }
.pill { font-size: 10px; padding: 2px 7px; border-radius: 8px; background: rgba(255,255,255,0.06); }
.pill.up { background: rgba(63, 224, 160, 0.14); color: var(--up); }
svg { width: 100%; height: 110px; display: block; }
.line { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 2.2s ease-out forwards 300ms; }
.area { opacity: 0; animation: fade 1s ease forwards 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.av { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #0a0e17; background: linear-gradient(135deg, hsl(255 70% 62%), hsl(295 70% 48%)); font-style: normal; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); }
.bubbles { display: flex; flex-direction: column; gap: 5px; }
/* the hero chat animates in new lines: fixed height so the card never resizes; it scrolls, and starts at the bottom (site.js) with earlier days above */
#bubbles { height: 168px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
#bubbles::-webkit-scrollbar { width: 5px; }
#bubbles::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
#bubbles .bubble { flex-shrink: 0; }
#bubbles .bubble.fresh { animation: fadeUp 260ms ease both; }
.chat-time { align-self: center; font-size: 10px; color: var(--faint); padding: 4px 0 2px; flex-shrink: 0; }
.bubble { max-width: 85%; padding: 7px 10px; border-radius: 12px; line-height: 1.4; font-size: 11.5px; border: 1px solid transparent; }
.bubble.them { align-self: flex-start; background: rgba(255,255,255,0.05); border-bottom-left-radius: 4px; border-color: hsl(255 60% 55% / 0.3); }
.bubble.you { align-self: flex-end; background: linear-gradient(120deg, var(--accent-soft), rgba(95, 212, 255, 0.12)); border-color: var(--border-strong); border-bottom-right-radius: 4px; }
.bubble.typing { display: flex; gap: 3px; padding: 9px 10px; }
.bubble.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .2s; }
.bubble.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--border); font-size: 11.5px; }
.li:first-of-type { border-top: 0; }
.when { font-family: var(--mono); color: var(--accent); font-size: 10.5px; min-width: 56px; }

/* ---------- trust strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 0 50px; }
.strip > div { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.025); }
.strip b { font-size: 26px; font-family: var(--mono); background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip span { font-size: 13px; color: #b8c0d2; }

/* ---------- tabbed tour ---------- */
.tour { border: 1px solid var(--border-strong); border-radius: 20px; background: var(--panel-solid); box-shadow: var(--shadow); overflow: hidden; }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-bottom: 1px solid var(--border); background: rgba(10, 14, 23, 0.55); }
.tour-tabs button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 10px; cursor: pointer; transition: background var(--ease), color var(--ease); }
.tour-tabs button:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.tour-tabs button.active { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(139, 156, 255, 0.35); }
.tour-panel { display: none; grid-template-columns: 1fr 1fr; gap: 36px; padding: 32px; align-items: start; }
.tour-panel.active { display: grid; animation: fadeUp 320ms ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tour-copy h3 { font-size: 24px; margin-bottom: 10px; }
.tour-copy p { color: #b8c0d2; font-size: 15px; }
.tour-copy ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tour-copy li { position: relative; padding-left: 18px; font-size: 14px; color: #b8c0d2; }
.tour-copy li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.tour-copy li b { color: var(--text); }
.tour-mock { display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.tour-mock .mock-card { padding: 14px; background: var(--panel); }
.tour-mock .mono { font-family: var(--mono); }
.tour-mock .small { font-size: 11px; }
.tour-mock .right { text-align: right; }
.tour-mock .warn { color: var(--warn); }
.pill.warn { background: rgba(255, 191, 92, 0.16); color: var(--warn); }
.pill.down { background: rgba(255, 111, 142, 0.16); color: var(--down); }
.ic { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.ic.warn { background: var(--warn); box-shadow: 0 0 8px rgba(255,191,92,.5); }
.ic.info { background: var(--accent); }
.ic.done { background: var(--up); box-shadow: 0 0 8px rgba(63,224,160,.45); }
.ic.todo { background: transparent; border: 1.5px solid var(--faint); }
.bar-row { display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; padding: 5px 0; font-size: 11.5px; }
.bar-row i { display: block; height: 6px; border-radius: 3px; background: var(--up); opacity: .8; }
.bar-row i.down { background: var(--down); }
.bar-row b { text-align: right; font-family: var(--mono); }
.mail { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.mail:first-child { border-top: 0; }
.mail > div { flex: 1; min-width: 0; }
.mav { display: inline-flex; width: 28px; height: 28px; border-radius: 9px; align-items: center; justify-content: center; font-weight: 700; color: #0a0e17; font-style: normal; flex-shrink: 0; }
.mfrom { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.msub { font-weight: 600; margin: 2px 0 4px; }
.news { padding: 9px 0; border-top: 1px solid var(--border); }
.news:first-child { border-top: 0; }
.src { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.rel { display: inline-block; height: 4px; width: 60px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; vertical-align: middle; }
.rel b { display: block; height: 100%; background: linear-gradient(90deg, var(--up), var(--accent-2)); border-radius: 2px; }
.tags { font-size: 10.5px; color: var(--accent); }
.yn { display: flex; justify-content: space-between; margin: 10px 0 6px; }
.yn b { display: block; font-size: 20px; font-family: var(--mono); }
.progress { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--up), var(--accent-2)); border-radius: 3px; }
.tk { display: grid; grid-template-columns: 1fr 80px 60px; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); align-items: center; }
.tk:first-child { border-top: 0; }
.tk .mono { text-align: right; }
.tk .up, .tk .down { text-align: right; font-family: var(--mono); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.kpis > div { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.kpis span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpis b { font-family: var(--mono); font-size: 15px; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0 8px; }
.job > div { display: flex; flex-direction: column; }
.tx { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 11.5px; }
.tx:first-child { border-top: 0; }
.tx b { font-family: var(--mono); }
.dec { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 11.5px; }
.dec > div { display: flex; flex-direction: column; gap: 2px; }
.dec span { color: var(--muted); }
.dec .pill { align-self: start; text-align: center; }

/* ---------- early access ---------- */
.early { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 48px; align-items: start; }
.early .sub { max-width: none; }
.grid.tight { gap: 12px; }
.grid.tight .card { padding: 20px; }
.roadmap { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--panel-solid); box-shadow: var(--shadow); position: sticky; top: 90px; }
.roadmap h3 { font-size: 15px; margin-bottom: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.roadmap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.roadmap li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #b8c0d2; }
.roadmap li .ic.done + span { color: var(--text); }

/* ---------- download extras ---------- */
.how-update { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; margin: 28px auto 0; text-align: left; }
.how-update > div { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.025); font-size: 13.5px; color: #b8c0d2; line-height: 1.5; }
.how-update b { color: var(--text); display: block; margin-bottom: 4px; }

/* ---------- sections ---------- */
.section { padding: 70px 0; border-top: 1px solid var(--border); }
h2 { font-size: 34px; margin-bottom: 10px; }
.sub { color: #b8c0d2; font-size: 16px; max-width: 640px; margin-bottom: 34px; }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(14px); transition: border-color var(--ease), transform var(--ease); }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { font-size: 17px; margin: 8px 0 10px; }
.card p { color: #b8c0d2; font-size: 14px; }
.num { font-family: var(--mono); color: var(--accent); font-size: 12px; letter-spacing: 0.1em; }
.feat { padding: 20px; border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px solid var(--border); transition: border-color var(--ease), background var(--ease); }
.feat:hover { border-color: var(--accent); background: var(--accent-soft); }
.feat h4 { font-size: 15px; margin-bottom: 8px; }
.feat p { color: #b8c0d2; font-size: 13px; }
.tip { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; font-size: 9px; font-weight: 700; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }

/* people */
.people { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.cast { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cast li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px; color: #b8c0d2; }
.cast li b { color: var(--text); }
.hint { margin-top: 22px; font-size: 13px; color: var(--muted); }
.mock-card.tall { position: sticky; top: 90px; font-size: 12px; padding: 16px; background: var(--panel-solid); border-color: var(--border-strong); box-shadow: var(--shadow); }
.mock-card.tall .bubble { font-size: 12.5px; max-width: 88%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.chips span { padding: 7px 11px; border-radius: 14px; border: 1px solid var(--border-strong); font-size: 11.5px; background: rgba(255,255,255,0.04); }
.chips span:first-child { border-color: var(--accent); background: var(--accent-soft); }

/* download + faq */
.download { text-align: center; }
.download .sub { margin-left: auto; margin-right: auto; }
.download .fine { max-width: 620px; margin: 18px auto 0; }
.faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 10px; color: #b8c0d2; font-size: 14px; max-width: 760px; }

footer { max-width: 1180px; margin: 0 auto; padding: 0 32px 56px; font-size: 13px; }
.foot-inner { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.004)); padding: 26px 30px 22px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.foot-brand p { margin-top: 12px; color: var(--muted); font-size: 13px; max-width: 340px; line-height: 1.65; }
.foot-brand .foot-studio { margin-top: 12px; font-size: 12px; color: var(--faint); }
.foot-brand .foot-studio b { color: var(--muted); font-weight: 600; }
.foot-legal { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--faint); font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; transition: color var(--ease), border-color var(--ease), background var(--ease); }
.foot-legal:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.03); }
.foot-legal svg { width: 11px; height: 11px; opacity: 0.6; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); }
.foot-bar .foot-note { color: var(--muted); }

/* ---------- weekly challenge ---------- */
.challenge-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 36px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, rgba(139,156,255,0.10), rgba(95,212,255,0.04)); }
.challenge-card h2 { margin-bottom: 12px; }
.challenge-seed { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 22px; border-radius: 14px; background: rgba(10,14,23,0.6); border: 1px solid var(--border-strong); }
.challenge-seed code { font-size: 28px; letter-spacing: 0.08em; padding: 8px 14px; background: transparent; color: var(--accent-2); font-weight: 600; }
.challenge-seed .muted { color: var(--muted); font-size: 13px; }
.challenge-seed .muted b { color: var(--text); }
.challenge-seed .small { font-size: 12px; line-height: 1.5; }

/* ---------- legal modal ---------- */
.legal-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(6, 9, 16, 0.72); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade 180ms ease both; }
.legal-overlay[hidden] { display: none; }
.legal-modal { width: 620px; max-width: 100%; max-height: 80vh; display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05); overflow: hidden; animation: legalIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes legalIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.legal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(139,156,255,0.05), transparent); }
.legal-eyebrow { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.legal-head h3 { font-size: 19px; letter-spacing: -0.02em; }
.legal-updated { display: block; margin-top: 4px; font-size: 11.5px; color: var(--faint); }
.legal-body code { font-size: 0.9em; }
.legal-close { appearance: none; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; transition: color var(--ease), border-color var(--ease), background var(--ease); }
.legal-close:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.08); }
.legal-body { padding: 6px 28px 28px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.legal-body::-webkit-scrollbar { width: 8px; }
.legal-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
.legal-body section { padding: 18px 0 16px; }
.legal-body section + section { border-top: 1px solid var(--border); }
.legal-body h4 { margin: 0 0 7px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.legal-body p { color: #aab3c6; font-size: 13.5px; line-height: 1.7; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero, .people, .early, .challenge-card { grid-template-columns: 1fr; }
  .tour-panel.active { grid-template-columns: 1fr; padding: 22px; }
  .strip, .how-update { grid-template-columns: 1fr 1fr; }
  .roadmap { position: static; }
  .mock { transform: none; }
  .grid.three, .grid.four { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 42px; }
  .nav nav a:not(.btn) { display: none; }
  .mock-card.tall { position: static; }
  .foot-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .grid.three, .grid.four, .strip, .how-update { grid-template-columns: 1fr; }
  .tour-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tour-tabs button { white-space: nowrap; }
  main, .nav, footer { padding-left: 18px; padding-right: 18px; }
  .cast li { grid-template-columns: 1fr; gap: 4px; }
  .foot-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
}
