/* RealCam site. Colours follow the Hub: night blue surfaces, brand blue accent. */
:root {
  color-scheme: dark;
  --bg: #070b12;
  --surface: #0e1622;
  --surface-raised: #14202f;
  --line: #223247;
  --line-strong: #344961;
  --text: #f4f8fb;
  --muted: #9fb0c3;
  --accent: #2e7dff;
  --accent-bright: #008ffa;
  --accent-soft: rgba(46, 125, 255, 0.14);
  --success: #50d567;
  --warning: #f0b45a;
  --radius: 18px;
  --page: 1120px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(60rem 34rem at 82% -12%, rgba(0, 143, 250, 0.16), transparent 70%),
    linear-gradient(180deg, #0a111b 0%, var(--bg) 40rem);
  background-color: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-bright); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.hidden { display: none !important; }
.wrap { width: min(var(--page), 100% - 40px); margin-inline: auto; }
main { flex: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.86);
  backdrop-filter: blur(14px);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { height: 40px; width: auto; }
.brand .word { height: 19px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-raised); }
.nav a.nav-button { margin-left: 8px; border: 1px solid var(--line-strong); color: var(--text); }

/* Header menu, shown on narrow screens */
.menu { display: none; position: relative; }
.menu summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}
.menu summary span { position: relative; }
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -6px; }
.menu summary span::after { top: 6px; }
.menu[open] summary { background: var(--surface-raised); }
.menu summary:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.menu-panel {
  position: absolute;
  right: 0;
  top: 52px;
  display: grid;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.menu-panel a { padding: 11px 14px; border-radius: 9px; color: var(--text); font-weight: 600; text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--surface); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #4c91ff; }
.button.secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button.secondary:hover { background: var(--surface-raised); }
.button[disabled], .button.disabled { opacity: 0.45; pointer-events: none; }
.button:focus-visible, .nav a:focus-visible, input:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Shared pieces */
.eyebrow {
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 34rem; }
.lead strong { color: var(--text); }
.more { margin-top: 28px; }
.section { padding: 72px 0; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 10px 0 12px; }
.section-copy { color: var(--muted); max-width: 40rem; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); }
.grid { display: grid; gap: 16px; margin-top: 32px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid + .section-title, .more + .section-title { margin-top: 56px; }

/* Home hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .actions { margin-top: 28px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 0.9rem; }
.shot {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(46, 125, 255, 0.06);
}
.shot img { width: 100%; height: auto; }
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 56px; }
.feature.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
.feature.reverse > div { order: 2; }
.feature h3 { font-size: 1.5rem; margin-bottom: 10px; }
.feature p { color: var(--muted); }
.feature.first { margin-top: 28px; }
.feature + .grid { margin-top: 56px; }
.ticks strong { color: var(--text); }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: rotate(-45deg);
}

/* Steps, games, apps */
.step-visual {
  position: relative;
  margin: -8px -8px 18px;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #090c12;
}
.step-visual img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.step-visual.pairing img { object-fit: contain; object-position: center; }
.step-visual.phone-crop img { object-position: 50% 62%; }

/* Phone screens */
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-top: 36px; }
.hero .phones { margin-top: 0; }
.phone { width: min(230px, 40vw); margin: 0; }
.phone img {
  width: 100%;
  height: auto;
  border: 5px solid #04060a;
  border-radius: 12% / 5.5%;
  box-shadow: 0 0 0 1px var(--line-strong), 0 26px 60px rgba(0, 0, 0, 0.6);
}
.phone figcaption { margin-top: 14px; color: var(--muted); font-size: 0.92rem; text-align: center; }
.phone figcaption strong { display: block; color: var(--text); font-size: 1rem; }
.feature .phone { justify-self: center; }
.more.center { text-align: center; }
.phones + .more + .grid { margin-top: 48px; }
.lead a { color: var(--text); }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 800;
}
.games { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding: 0; list-style: none; }
.games li {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
}
.app-card { display: flex; flex-direction: column; align-items: flex-start; }
.app-card .platform { color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.app-card .button { margin-top: 20px; }
.app-card p { flex: 1; }
.band { border-block: 1px solid var(--line); background: rgba(14, 22, 34, 0.6); }
.member { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* Single-task pages (download, iOS, Android) */
.task { padding: 64px 0 80px; }
.task .wrap { max-width: 720px; }
.task h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin: 12px 0 14px; }
.task .lead { max-width: none; }
.panel { margin-top: 32px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel h2 { font-size: 1.3rem; margin-bottom: 8px; }
.status { color: var(--muted); margin-bottom: 18px; }
.status.ok { color: var(--success); }
.status.warn { color: var(--warning); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 20px 0 0; color: var(--muted); font-size: 0.92rem; }
.facts dt { font-weight: 700; color: var(--text); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 0.85em; }
.fine { margin-top: 16px; color: var(--muted); font-size: 0.88rem; }
.steps-list { margin: 28px 0 0; padding-left: 22px; color: var(--muted); }
.steps-list li { margin-bottom: 8px; }
.steps-list strong { color: var(--text); }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid.three, .grid.four, .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature { gap: 24px; }
  .feature.reverse > div { order: 0; }
  .nav a.optional { display: none; }
  .nav.has-menu a:not(.nav-button) { display: none; }
  .phones { gap: 18px; }
  .phone { width: min(230px, 38vw); }
  .site-header .wrap { gap: 12px; }
  .menu { display: block; }
  .section { padding: 52px 0; }
}
@media (max-width: 520px) {
  .brand .word { display: none; }
  .site-header .wrap { gap: 12px; }
  .nav a { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
