/* monkeybox.live website. Colours follow the broadcast overlay: black glass and signal yellow. */
:root {
  --bg: #0b0e14;
  --bg-2: #10141d;
  --panel: #141a26;
  --line: #243049;
  --text: #e6ebf5;
  --muted: #9aa5ba;
  --accent: #ffd400;
  --accent-deep: #f2a900;
  --ink: #111;
  --cyan: #22d3ee;
  --red: #f87171;
  --radius: 12px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--accent); color: var(--ink); padding: 8px 12px; border-radius: 6px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(11, 14, 20, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.15rem; letter-spacing: .02em; }
.logo .mark { width: 34px; height: 34px; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-head .wrap { gap: 12px; }
  .nav { gap: 14px; }
  .nav .hide-sm { display: none; }
  .logo { font-size: 1rem; }
  .logo .mark { width: 28px; height: 28px; }
}
@media (max-width: 420px) {
  .nav .btn { display: none; } /* the page's own call to action is right below */
}
.btn { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 800; text-decoration: none;
  border: 2px solid transparent; transition: transform .12s, background .12s, border-color .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-deep)); color: var(--ink); }
.btn-primary:hover { color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; background: radial-gradient(1000px 500px at 80% -10%, rgba(255, 212, 0, .12), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero .fine { font-size: .9rem; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Hero: a still from a real broadcast that opens the video on YouTube. The play button and label sit on the
   empty grass in the frame so the overlay (tower, driver card, commentary caption) stays visible. */
.video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); color: #fff; text-decoration: none; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; left: 66%; top: 58%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .15s; }
.video .play svg { width: 28px; height: 28px; fill: var(--ink); margin-left: 4px; }
.video:hover .play, .video:focus-visible .play { transform: scale(1.08); }
.video .cap { position: absolute; left: 66%; top: calc(58% + 42px); transform: translateX(-50%); white-space: nowrap;
  background: rgba(0, 0, 0, .75); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.video:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } section { padding: 52px 0; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p:last-child { margin-bottom: 0; }
.icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 212, 0, .12); color: var(--accent); }
.icon svg { width: 20px; height: 20px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 68px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: var(--ink); background: var(--accent); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(255, 212, 0, .08), 0 20px 50px rgba(0, 0, 0, .35); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.plan .name { font-size: 1.1rem; font-weight: 800; }
.plan .price { font-size: 2.8rem; font-weight: 900; line-height: 1; margin: 14px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .hours { color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: var(--muted); }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { justify-content: center; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.note { border-left: 4px solid var(--accent); background: rgba(255, 212, 0, .06); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--muted); }
.note strong { color: var(--text); }

/* ---------- prose pages (legal, download, account) ---------- */
.page { padding: 56px 0 80px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 700; }
.updated { color: var(--muted); font-size: .9rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-foot h4 { color: var(--text); margin: 0 0 10px; font-size: .95rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: .82rem; }
@media (max-width: 640px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .brand-col { grid-column: 1 / -1; } }

/* ---------- Account pages ---------- */
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.acct-title { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.acct-signin { padding: 8px 0 24px; }
.acct-cards { grid-template-columns: repeat(3, 1fr); margin-bottom: 40px; }
.card-label { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.big { font-size: 2rem; font-weight: 900; line-height: 1.1; margin: 0 0 6px; }
.big small { font-size: 1rem; font-weight: 600; }
.small { font-size: .88rem; }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 8px; }
.acct-actions:empty { display: none; }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 12px 0 10px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.meter span.over { background: var(--accent-deep); }
.acct-section { padding: 0; margin-bottom: 40px; }
.acct-section h2 { font-size: 1.4rem; margin: 0; }
.acct-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.acct-section select, .acct-section input, .acct-head select { font: inherit; font-size: .9rem; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; margin-left: 6px; }
.linklike { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: #fff; }
.note-bad { border-left-color: var(--red); background: rgba(248, 113, 113, .08); color: var(--text); margin-bottom: 20px; }
.empty { color: var(--muted); padding: 24px; text-align: center; background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .03); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th button { font: inherit; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
table.data th[aria-sort="ascending"] button::after { content: " ▲"; color: var(--accent); font-size: .7em; }
table.data th[aria-sort="descending"] button::after { content: " ▼"; color: var(--accent); font-size: .7em; }
table.data th button:hover { color: var(--text); }
code { font-family: Consolas, ui-monospace, monospace; font-size: .9em; }
@media (max-width: 860px) { .acct-cards { grid-template-columns: 1fr; } }
