/* =====================================================================
   Athlitz theme — PAGES
   Studio / enterprise, class mode, feedback form, admin, how-it-works.
   ===================================================================== */

/* ---------- studio pitch tiles ---------- */
.pitch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin: 16px 0 8px; border-left: 1px solid var(--line); }
.pitch { background: var(--card); border: 1px solid var(--line); border-left: 0; padding: 20px; }
.pitch h3 { font-size: 24px; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 10px; }
.pitch p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

.codebox {
  font-family: var(--f-mono); font-size: 24px; letter-spacing: .28em; text-transform: uppercase;
  padding: 12px 14px; width: 220px; max-width: 100%;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
}
.joincode {
  font-family: var(--f-mono); font-size: 40px; letter-spacing: .3em;
  background: var(--lime); color: var(--ink); padding: 18px 20px; text-align: center; user-select: all;
  border: 1.5px solid var(--ink);
}

.statstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin: 14px 0; border-top: 1.5px solid var(--ink); }
.statstrip .stat { background: transparent; border: 0; border-right: 1px solid var(--line); padding: 16px 14px; text-align: left; }
.statstrip .stat:last-child { border-right: 0; }
.statstrip .stat b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 52px; line-height: .9; letter-spacing: -.05em; }
.statstrip .stat span { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted); }

/* ---------- roster ---------- */
.rost-head, .rost-row { display: grid; grid-template-columns: 2fr .7fr .7fr .8fr 1.2fr 1.1fr; gap: 8px; align-items: center; text-align: left; }
.rost-head.md, .rost-row.md { grid-template-columns: 1.1fr 1fr 1.6fr .6fr; }
.rost-head { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); padding: 10px; }
.rost-row {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 14px 10px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
  transition: background-color 150ms ease;
}
.rost-row.static { cursor: default; }
@media (hover: hover) and (pointer: fine) { .rost-row:not(.static):hover { background: var(--lime); } }
.rost-row .rn { font-weight: 500; }
.rost-row .muted { color: var(--muted); }
.tag-role { font-style: normal; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; color: var(--brass); }
.tr-up { color: var(--good); font-weight: 600; }
.tr-down { color: var(--seam); font-weight: 600; }
.tr-flat { color: var(--muted); }
.spark { width: 100%; height: 90px; display: block; }

/* ---------- class mode ---------- */
#classResults.hidden { display: none; }
#classGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pcard { background: var(--card); border: 1.5px solid var(--ink); overflow: hidden; }
.pc-head { display: flex; align-items: center; gap: 10px; background: var(--panel); color: var(--cream); padding: 12px 14px; }
.pc-rank { font-family: var(--f-mono); font-size: 12px; background: var(--lime); color: var(--ink); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.pc-name { flex: 1; font-family: var(--f-display); font-size: 20px; text-transform: uppercase; letter-spacing: -.02em; }
.pc-name em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--lime); }
.pc-score { font-family: var(--f-display); font-size: 38px; line-height: 1; letter-spacing: -.05em; }
.pc-body { padding: 12px 14px; }
.pc-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pc-row:last-of-type { border-bottom: 0; }
.pc-fix { margin-top: 10px; font-size: 13px; border-left: 3px solid var(--seam); padding-left: 9px; line-height: 1.5; }
.pc-warn { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------- feedback form ---------- */
.fform { display: grid; gap: 12px; max-width: 560px; }
.fform label { font-family: var(--f-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; }
.fform textarea { max-width: 100%; min-height: 140px; resize: vertical; }
.fform input[type=email], .fform input[type=text] { max-width: 100%; }
.fok { background: var(--lime-soft); border-left: 3px solid var(--ink); padding: 14px 16px; font-size: 14px; }

/* ---------- admin ---------- */
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin-top: 14px; background: rgba(243,242,238,.1); }
.adm-kpi { background: var(--panel); padding: 16px 18px; }
.adm-kpi .v { font-family: var(--f-display); font-weight: 500; font-size: 40px; line-height: .9; letter-spacing: -.05em; color: var(--cream); }
.adm-kpi .v.brass { color: var(--lime); }
.adm-kpi .l { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: rgba(243,242,238,.55); margin-top: 10px; }
.adm-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.adm-row input { max-width: 200px; }
pre.adm-out {
  background: var(--card); border: 1px solid var(--line); padding: 14px; font-family: var(--f-mono); font-size: 12px;
  overflow: auto; max-height: 420px; white-space: pre-wrap; word-break: break-word;
}

/* ---------- account status pills ---------- */
.status-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; }
.status-pill.paid, .status-pill.closed { background: var(--lime); color: var(--ink); }
.status-pill.created, .status-pill.open, .status-pill.new { background: rgba(17,17,17,.08); color: var(--ink); }
.status-pill.failed { background: rgba(214,69,50,.14); color: var(--seam); }

/* ---------- how it works ---------- */
.hiw-video { width: 100%; max-width: 760px; display: block; margin: 0 0 32px; background: var(--panel); }
.hiw-steps { display: flex; flex-direction: column; max-width: 760px; border-top: 1.5px solid var(--ink); }
.hiw-step { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.hiw-num {
  font-family: var(--f-display); font-weight: 500; font-size: 64px; line-height: .85; letter-spacing: -.06em;
  background: none !important; color: var(--ink) !important; width: auto !important; height: auto !important;
}
.hiw-step h3 { margin: 4px 0 6px; font-size: 22px; text-transform: uppercase; }
.hiw-step p { margin: 0; color: var(--muted); }

@media (max-width: 720px) {
  .rost-head, .rost-row { grid-template-columns: 1.6fr .6fr .6fr 1fr; font-size: 13px; }
  .rost-head span:nth-child(4), .rost-row span:nth-child(4),
  .rost-head span:nth-child(6), .rost-row span:nth-child(6) { display: none; }
  .joincode { font-size: 28px; letter-spacing: .2em; }
  .hiw-step { grid-template-columns: 64px 1fr; }
  .hiw-num { font-size: 44px; }
}
