/* The StagePal website (site/). Same colours as the app's default dark theme. */
:root {
  color-scheme: dark;
  --bg: #0d0e12;
  --bg-2: #13151b;
  --surface: #181a21;
  --border: #272a33;
  --text: #eef0f5;
  --muted: #a1a4b2;
  --accent: #8d7dff;
  --accent-2: #b3a8ff;
  --chord: #ffb547;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent-2);
}
img {
  max-width: 100%;
  /* Keep each picture's own shape when it's shrunk to fit (the width/height attributes would otherwise fix the height). */
  height: auto;
  display: block;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.top nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.top nav a:hover {
  color: var(--text);
}
@media (max-width: 720px) {
  .top nav a:not(.btn) {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text) !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--accent);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}
.btn-primary:hover {
  background: #7d6bff;
}
.btn-small {
  padding: 8px 16px;
  font-size: 0.92rem;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  background: radial-gradient(900px 420px at 70% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lead {
  margin: 0 0 28px;
  font-size: 1.2rem;
  color: var(--muted);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.small-print {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.shot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
@media (max-width: 880px) {
  .hero {
    padding-top: 44px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}
section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-lead {
  max-width: 680px;
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Feature cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.card h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-2);
}
.icon svg {
  width: 22px;
  height: 22px;
}

/* Screenshot + text rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-row + .feature-row {
  margin-top: 80px;
}
.feature-row.flip .feature-text {
  order: 2;
}
.feature-row ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.feature-row li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
}
.feature-row li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.feature-row li strong {
  color: var(--text);
}
.feature-row li span {
  color: var(--muted);
}
.phones {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.phones img {
  width: calc(50% - 9px);
  max-width: 270px;
}
@media (max-width: 880px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-row.flip .feature-text {
    order: 0;
  }
}

/* Roles table */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.role {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.role h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--chord);
}
.role p {
  margin: 0;
  color: var(--muted);
}

/* Install */
.install {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.install .card {
  display: flex;
  flex-direction: column;
}
.install ol {
  margin: 10px 0 18px;
  padding-left: 1.3em;
  color: var(--muted);
}
.install li {
  margin: 6px 0;
}
.install li strong {
  color: var(--text);
}
.install .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Privacy band */
.privacy-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface));
}
.privacy-band .icon {
  width: 60px;
  height: 60px;
}
.privacy-band h2 {
  font-size: 1.5rem;
}
.privacy-band p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 600px) {
  .privacy-band {
    grid-template-columns: 1fr;
  }
}

.soon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.soon li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  color: var(--muted);
}

/* ---------- Footer ---------- */
footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer a {
  color: var(--muted);
}
footer .note {
  flex-basis: 100%;
}

/* ---------- Text pages (privacy) ---------- */
.doc {
  max-width: 720px;
  padding: 56px 22px 80px;
  margin: 0 auto;
}
.doc h1 {
  font-size: 2.4rem;
}
.doc h2 {
  margin-top: 40px;
  font-size: 1.35rem;
}
.doc p,
.doc li {
  color: #d6d8e0;
}
.doc .updated {
  color: var(--muted);
}
