/* Ascenvo Audio Study Modules — styling (2026-08-30).
   Same precision-instrument design family as products/oral_board_trainer/
   (navy/steel identity, quiet white cards, system fonts, no frameworks,
   runs off file://) — but built MOBILE-FIRST with oversized touch targets,
   because the use case is a phone on a car mount or a pocket during chores.
   Loaded AFTER ../../css/site.css so these rules win on shared selectors. */

:root {
  --navy: #0f2a43;
  --navy-2: #1b3a5b;
  --steel: #486581;
  --line: #d5dde7;
  --line-2: #e6ebf2;
  --bg: #e9edf3;
  --panel: #ffffff;
  --ink: #17222e;
  --muted: #61758a;
  --accent: #2160a6;
  --accent-deep: #174a84;
  --accent-tint: #edf3fa;
  --good: #2f855a;
  --good-bg: #f0fbf4;
  --warn: #b7791f;
  --warn-bg: #fffaf0;
  --shadow-2: 0 1px 3px rgba(15, 42, 67, 0.06), 0 4px 14px rgba(15, 42, 67, 0.06);
  --radius: 12px;
  --font-body: "Segoe UI Variable Text", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 14px 14px 40px; }

/* ---- header ---- */
.app-header { display: flex; align-items: center; gap: 10px; padding: 14px 2px 10px; }
.app-header h1 { font-size: 19px; margin: 0; color: var(--navy); letter-spacing: -0.01em; }
.app-header .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.sample-badge {
  display: inline-block; background: var(--warn-bg); color: var(--warn);
  border: 1px solid #ecd9b0; border-radius: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; padding: 2px 8px; vertical-align: middle;
}

/* ---- the player card ---- */
.player-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 18px 16px; margin-top: 10px;
}

.module-title { font-size: 14px; font-weight: 700; color: var(--steel); margin: 0 0 2px; }
.section-now { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.section-count { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

/* ---- progress bar ---- */
.pbar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 6px 0 16px; }
.pbar > i { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }

/* ---- transport: giant, glove-friendly ---- */
.transport { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 6px; }
.transport button {
  font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--navy); font-weight: 700;
  min-width: 64px; min-height: 64px; font-size: 15px;
  touch-action: manipulation;
}
.transport button:active { transform: scale(.97); }
.transport .btn-toggle {
  min-width: 96px; min-height: 96px; font-size: 17px;
  background: var(--accent); border-color: var(--accent-deep); color: #fff;
  box-shadow: var(--shadow-2);
}
.transport .btn-toggle.is-paused { background: var(--good); border-color: #276749; }
.transport button:disabled { opacity: .45; cursor: default; }

.auto-note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

/* ---- degrade banner (missing audio) ---- */
.degrade-banner {
  display: none; background: var(--warn-bg); border: 1px solid #ecd9b0; color: #7a5310;
  border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin: 12px 0 0;
}
.degrade-banner.show { display: block; }

/* ---- transcript ---- */
.transcript-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 16px; margin-top: 14px;
}
.transcript-card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); margin: 0 0 8px; }
.transcript-card p { margin: 0; font-size: 15.5px; color: var(--ink); }

/* ---- section list ---- */
.section-list { margin-top: 14px; }
.section-list h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); margin: 0 0 8px; padding-left: 2px; }
.section-list ol { list-style: none; margin: 0; padding: 0; }
.section-list li { margin: 0 0 8px; }
.section-list button {
  display: flex; width: 100%; align-items: center; gap: 10px; text-align: left;
  font: inherit; cursor: pointer; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; min-height: 52px;
  touch-action: manipulation;
}
.section-list button.is-current { border-color: var(--accent); background: var(--accent-tint); }
.section-list .tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; }
.section-list .tick.done { background: var(--good); border-color: var(--good); }
.section-list .t-title { flex: 1 1 auto; font-weight: 600; }

/* ---- lock panel (board item A7, 2026-08-30) ---- *
 * Shown instead of the player when the current section requires the $19
 * pack and it isn't owned. Same card shape as .done-panel but a warm/blue
 * accent (not the "warning" amber of .degrade-banner — a locked section
 * isn't a malfunction, it's a fence). */
.lock-panel {
  display: none; background: var(--accent-tint); border: 1px solid #bcd6ef; border-radius: var(--radius);
  padding: 18px 16px; margin-top: 14px; text-align: center;
}
.lock-panel.show { display: block; }
.lock-panel h2 { color: var(--accent-deep); margin: 0 0 6px; font-size: 18px; }
.lock-panel p { margin: 0 0 14px; color: var(--ink); font-size: 14px; }
.btn-lockcta {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none;
  cursor: pointer; min-height: 52px; line-height: 52px; padding: 0 22px; border-radius: 10px;
  border: 1px solid var(--accent-deep); background: var(--accent); color: #fff;
}
.btn-lockcta:hover { background: var(--accent-deep); }

/* locked rows in the section list: dimmed title + a small padlock, still
   clickable (tapping one shows the lock panel + the buy CTA, it just can't
   play) */
.section-list button.is-locked-row .t-title { color: var(--muted); }
.section-list .lock-mark { flex: 0 0 auto; font-size: 13px; margin-left: 2px; }

/* ---- done panel ---- */
.done-panel {
  display: none; background: var(--good-bg); border: 1px solid #bfe3cc; border-radius: var(--radius);
  padding: 18px 16px; margin-top: 14px; text-align: center;
}
.done-panel.show { display: block; }
.done-panel h2 { color: var(--good); margin: 0 0 6px; font-size: 18px; }
.done-panel p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.done-panel button {
  font: inherit; cursor: pointer; min-height: 52px; padding: 0 22px; border-radius: 10px;
  border: 1px solid var(--accent-deep); background: var(--accent); color: #fff; font-weight: 700;
}

/* ---- compliance footer ---- */
.foot-compliance {
  margin-top: 22px; padding: 12px 4px 0; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}

/* larger phones / desktop: settle the card in, nothing structural changes */
@media (min-width: 560px) {
  .wrap { padding: 20px 20px 56px; }
  .app-header h1 { font-size: 22px; }
}
