/* Coach Assist — public recorder and coach room.
   Calm by design: one idea per screen, generous space, big targets.
   LIGHT-FIRST ON PURPOSE: this is opened on a phone, outdoors, often in
   direct sun. A dark theme loses badly to screen glare on a football field,
   so there is deliberately no dark variant here. High contrast wins. */

:root {
  --ink: #12141a;        /* near black, ~16:1 on white */
  --muted: #4a515e;      /* readable grey, ~7:1 on white */
  --line: #ccd2da;
  --paper: #ffffff;
  --wash: #f2f4f7;
  --accent: #0a6b3d;     /* deep green: white text on it clears AA easily */
  --accent-ink: #ffffff;
  --bad: #9a1c1c;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h2 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }

.lede { margin: 0 0 22px; font-size: 17px; color: var(--ink); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 16px;
}

.card.quiet { background: transparent; }

.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }

.role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.clock {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 4px;
  line-height: 1;
}

.status { color: var(--ink); margin: 0 0 16px; font-weight: 500; }

.level {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 0 22px;
}
.level span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }

button { font: inherit; }

button.primary {
  display: block;
  width: 100%;
  min-height: 62px;
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
}

button.primary:disabled { opacity: .5; cursor: default; }

button.primary.recording { background: var(--bad); color: #fff; }

button.link {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

/* Field legibility: 15px, and dark enough to survive glare. */
.hint { font-size: 15px; color: var(--muted); margin: 14px 0 0; }

label { display: block; margin: 16px 0 4px; font-size: 15px; color: var(--ink); font-weight: 500; }

label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink);
}
label.check input { margin-top: 3px; width: 22px; height: 22px; flex: none; }

input[type=date], input[type=text], input[type=email] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

details.card summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 30px;
}

.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 16px;
}
.notice.bad { border-left-color: var(--bad); }

.rows { list-style: none; margin: 0 0 20px; padding: 0; }

.row { border-bottom: 1px solid var(--line); }
.row:first-child { border-top: 1px solid var(--line); }

.row a {
  display: block;
  padding: 16px 2px;
  color: inherit;
  text-decoration: none;
}
.row a:hover .row-label { text-decoration: underline; }

.row-label { display: block; font-weight: 700; }
.row-detail { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }

a { color: var(--accent); }

footer { margin-top: 32px; font-size: 15px; color: var(--muted); }

.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }

@media (max-width: 360px) {
  h1 { font-size: 26px; }
  .clock { font-size: 46px; }
}
