/* =====================================================================
   Homepage — Paddle Stack
   The hero is the product's actual thesis: a court seen from above with
   a live queue beside it. Structure carries meaning, not decoration.
   ===================================================================== */

.hero { padding: 56px 0 24px; }
@media (min-width: 860px) { .hero { padding: 84px 0 40px; } }

.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.hero h1 {
  font-size: clamp(38px, 8.5vw, 68px);
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead {
  font-size: clamp(16.5px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 26px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note { font-size: 13.5px; color: var(--text-faint); }

/* ---- the court diagram: this IS the product, drawn ------------------ */
.court-demo {
  background: var(--brand);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-lift);
  color: var(--on-brand);
}
.court-demo-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; opacity: .85; margin-bottom: 12px;
}
.court-demo-head .row { gap: 7px; }

.mini-court {
  position: relative;
  background: var(--court-surface);
  border-radius: 12px;
  padding: 16px 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
/* the net */
.mini-court::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%;
  border-left: 2px dashed var(--court-line); transform: translateX(-1px);
}
/* the kitchen, either side of the net */
.mini-court::after {
  content: ""; position: absolute; top: 12px; bottom: 12px;
  left: calc(50% - 42px); width: 84px;
  border-left: 1px solid var(--court-line); border-right: 1px solid var(--court-line);
  opacity: .6;
}
.mini-side { position: relative; z-index: 1; text-align: center; color: var(--text); }
.mini-names { font-size: 13.5px; font-weight: 600; line-height: 1.35; min-height: 38px; }
.mini-score {
  font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1;
  font-variant-numeric: tabular-nums; margin-top: 6px;
}

.demo-queue { margin-top: 14px; background: var(--surface); border-radius: 12px; overflow: hidden; }
.demo-queue-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 13px; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text);
}
.demo-queue-row:last-child { border-bottom: none; }
.demo-queue-row.up { background: var(--accent-soft); }
.demo-pos { font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); width: 18px; }
.demo-queue-row.up .demo-pos { color: var(--accent); }
.demo-name { flex: 1; font-weight: 600; }
.demo-meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }

/* ---- sections -------------------------------------------------------- */
.section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(26px, 4.4vw, 36px); margin: 8px 0 12px; }
.section-head p { color: var(--text-muted); font-size: 16.5px; }

/* Numbered because it genuinely is a sequence: three steps, in order. */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.step-no {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 10px;
}
.step h3 { font-size: 18.5px; margin-bottom: 7px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.feature-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feature h3 { font-size: 16.5px; margin-bottom: 5px; }
.feature p { font-size: 14px; color: var(--text-muted); }

/* ---- closing band ---------------------------------------------------- */
.band {
  background: var(--brand); color: var(--on-brand);
  border-radius: 22px; padding: 40px 28px; text-align: center;
}
.band h2 { font-size: clamp(25px, 4.5vw, 34px); margin-bottom: 10px; color: var(--on-brand); }
.band p { color: var(--on-brand); opacity: .8; max-width: 48ch; margin: 0 auto 22px; }
.band .btn-ghost { color: var(--on-brand); border-color: color-mix(in srgb, var(--on-brand) 40%, transparent); }
.band .btn-ghost:hover { color: var(--on-brand); border-color: var(--on-brand); }

/* ---- join-by-code strip ---------------------------------------------- */
.codebar { display: flex; gap: 10px; flex-wrap: wrap; }
.codebar .input {
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: .28em; font-size: 18px; text-align: center;
  flex: 1; min-width: 160px;
}
