/* ============================================================
   VOICE NOTE PLAYER — "hear him say it" cards (roninman.com)
   Used on the testimonial blocks. Markup lives in each page,
   behaviour in voice.js. Colors come from the page's :root.
   ============================================================ */
.voice{display:flex;align-items:center;gap:18px;max-width:820px;margin:0 0 30px;padding:16px 22px 16px 16px;border-radius:20px;background:rgba(255,255,255,.58);border:1px solid rgba(30,42,74,.12);box-shadow:0 10px 30px rgba(30,42,74,.06);position:relative}
.voice-btn{flex:0 0 auto;width:60px;height:60px;border-radius:50%;border:none;cursor:pointer;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--amber),var(--coral));box-shadow:0 8px 22px rgba(232,163,61,.42);transition:transform .25s ease,box-shadow .25s ease;-webkit-tap-highlight-color:transparent}
.voice-btn:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 12px 30px rgba(242,120,92,.5)}
.voice-btn:active{transform:scale(.97)}
.voice-btn:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
.voice-btn svg{width:22px;height:22px;fill:currentColor;display:block}
.voice-btn .ic-play{margin-left:3px}
.voice-btn .ic-pause{display:none}
.voice.playing .voice-btn .ic-play{display:none}
.voice.playing .voice-btn .ic-pause{display:block}
.voice.playing .voice-btn{animation:vpulse 2.2s ease-in-out infinite}
@keyframes vpulse{0%,100%{box-shadow:0 8px 22px rgba(232,163,61,.42)}50%{box-shadow:0 8px 22px rgba(232,163,61,.42),0 0 0 10px rgba(242,120,92,.14)}}
.voice-body{flex:1 1 auto;min-width:0}
.voice-top{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.voice-label{font-family:var(--sans);font-weight:600;font-size:14px;letter-spacing:.12em;text-transform:uppercase;color:var(--indigo);white-space:nowrap}
.voice-wave{display:inline-flex;align-items:center;gap:3px;height:18px}
.voice-wave i{display:block;width:3px;height:5px;border-radius:2px;background:var(--teal);opacity:.5;transition:height .2s}
.voice.playing .voice-wave i{opacity:1;animation:vwave .9s ease-in-out infinite}
.voice.playing .voice-wave i:nth-child(2){animation-delay:.12s}
.voice.playing .voice-wave i:nth-child(3){animation-delay:.24s}
.voice.playing .voice-wave i:nth-child(4){animation-delay:.36s}
.voice.playing .voice-wave i:nth-child(5){animation-delay:.48s}
.voice.playing .voice-wave i:nth-child(6){animation-delay:.6s}
@keyframes vwave{0%,100%{height:5px}50%{height:18px}}
.voice-time{margin-left:auto;font-family:var(--sans);font-size:13px;font-variant-numeric:tabular-nums;color:rgba(30,42,74,.72);white-space:nowrap}
.voice-track{position:relative;height:6px;border-radius:3px;background:rgba(30,42,74,.14);cursor:pointer;touch-action:none}
.voice-track::before{content:"";position:absolute;inset:-12px 0}
.voice-fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:3px;background:linear-gradient(90deg,var(--amber),var(--coral))}
.voice-knob{position:absolute;top:50%;left:0;width:15px;height:15px;border-radius:50%;background:#fff;border:2.5px solid var(--coral);transform:translate(-50%,-50%);opacity:0;transition:opacity .2s;box-shadow:0 2px 6px rgba(30,42,74,.25)}
.voice-track:hover .voice-knob,.voice-track:focus-visible .voice-knob,.voice.playing .voice-knob,.voice.touched .voice-knob{opacity:1}
.voice-track:focus-visible{outline:2px solid var(--teal);outline-offset:6px}
.voice-note{margin:10px 0 0;font-family:var(--sans);font-size:13.5px;color:rgba(42,42,46,.68);line-height:1.5}
.voice-note b{font-weight:600;color:var(--indigo)}
@media(max-width:600px){
  .voice{gap:14px;padding:14px 16px 14px 14px;border-radius:18px}
  .voice-btn{width:54px;height:54px}
  .voice-label{font-size:11.5px;letter-spacing:.08em;white-space:normal;line-height:1.3}
  .voice-time{flex:0 0 auto}
  .voice-wave{display:none}
  .voice-time{font-size:12px}
  .voice-note{font-size:12.5px}
}
@media(prefers-reduced-motion:reduce){
  .voice.playing .voice-wave i{animation:none;height:12px}
  .voice.playing .voice-btn{animation:none}
}
