/* PCPC ESL Speaking Practice — slide-inspired visual refresh
   Matches V4_U3D_Opening_Slides.pptx; CSS only, no workflow changes.
   Replace only /var/www/mbeyer.com/public/esl/speaking/assets/style.css
*/
:root {
  font-family: Aptos, Calibri, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1C1925;
  background: #EDEAF4;
  font-synthesis: none;
  --purple: #684BBC;
  --purple-dark: #432C7A;
  --lavender: #F6F3FC;
  --ink: #1C1925;
  --muted: #5D586A;
  --line: #D9D3E2;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.shell { max-width: 760px; margin: clamp(14px, 4vw, 40px) auto; padding: 0 clamp(12px, 3vw, 24px); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 18px; background: #fff; border-radius: 18px 18px 0 0; border-top: 7px solid var(--purple); }
.masthead h1 { margin: 8px 0 0; font-size: clamp(1.7rem, 4.8vw, 2.45rem); line-height: 1.14; letter-spacing: -.035em; color: var(--ink); }
.eyebrow { color: var(--purple-dark); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; }
.masthead .eyebrow { display: inline-block; padding: 9px 12px; border-radius: 6px; background: var(--purple); color: #fff; letter-spacing: .05em; }
.mic-icon { font-size: 2rem; background: var(--lavender); border-radius: 50%; width: 57px; height: 57px; display: grid; place-items: center; flex-shrink: 0; }
.panel { background: #fff; padding: 22px 24px 34px; border-radius: 0 0 18px 18px; box-shadow: 0 10px 32px #1C192513; min-height: 340px; }
.panel h2 { color: var(--ink); font-size: clamp(1.38rem, 4vw, 1.7rem); line-height: 1.36; letter-spacing: -.017em; }
.panel p { line-height: 1.65; }
.date { color: var(--muted); font-weight: 650; font-size: .9rem; margin-top: 0; }
.hidden { display: none !important; }
label { display: block; margin: 22px 0 8px; color: var(--purple-dark); font-weight: 700; }
input { width: 100%; border: 1.5px solid #AEA2CB; border-radius: 10px; padding: 15px 14px; font: inherit; font-size: 1.1rem; color: var(--ink); background: white; }
input:focus, button:focus-visible { outline: 3px solid #B6A4EE; outline-offset: 3px; }
.privacy { background: var(--lavender); border-left: 3px solid var(--purple); border-radius: 6px; padding: 12px 14px; color: var(--muted); font-size: .82rem; margin: 22px 0; }
button { display: block; width: 100%; min-height: 58px; padding: 15px 18px; border: 0; border-radius: 10px; font: inherit; font-size: 1.05rem; font-weight: 750; cursor: pointer; transition: background-color .16s, transform .16s; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:active:enabled { transform: translateY(1px); }
.primary { background: var(--purple); color: #fff; }
.primary:hover:enabled { background: #5035A2; }
.danger { background: #B42337; color: #fff; }
.danger:hover:enabled { background: #941C2C; }
.progress { display: flex; justify-content: space-between; gap: 10px; font-size: .79rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.track { display: flex; gap: 7px; margin: 12px 0 22px; }
.segment { height: 7px; flex: 1; border-radius: 10px; background: #E8E2F2; }
.segment.active { background: var(--purple); }
.segment.done { background: #7D63C9; }
.question-box { padding: clamp(20px, 4vw, 30px); border-radius: 12px; background: var(--lavender); border: 1px solid #E8E1F5; }
.question-box h2 { margin: 12px 0 0; font-size: clamp(1.5rem, 4.5vw, 2rem); line-height: 1.36; font-weight: 700; }
.helper { color: var(--muted); font-size: .94rem; margin: 20px 0 0; }
.recording-area { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 0 4px; }
.record-indicator { font-size: 2.8rem; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--lavender); }
.record-indicator.live { background: #FBE8EB; animation: pulse 1.6s infinite; }
.timer { font-size: 1.85rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: .035em; }
.recording-area button { max-width: 360px; }
.status { min-height: 26px; margin: 0; color: var(--muted); text-align: center; font-size: .88rem; }
.status.error { color: #9A1D2C; font-weight: 650; }
.check { font-size: 3rem; color: var(--purple); }
footer { text-align: center; color: var(--muted); font-size: .76rem; padding: 19px 12px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px #B4233720; } }
@media (max-width: 480px) {
  .shell { margin: 8px auto; padding: 0 10px; }
  .masthead { padding: 16px 16px 12px; border-radius: 13px 13px 0 0; }
  .masthead .eyebrow { font-size: .61rem; padding: 8px 9px; }
  .masthead h1 { font-size: 1.62rem; }
  .mic-icon { width: 46px; height: 46px; font-size: 1.65rem; }
  .panel { padding: 18px 16px 25px; border-radius: 0 0 13px 13px; min-height: 0; }
  .question-box { padding: 19px; }
  .recording-area { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .record-indicator.live { animation: none; } button { transition: none; } }
