/* ─────────────────────────────────────────────────────
   Hero phone: the real Purgd Capture screen, animated.

   Mirrors the shipped app (apps/purgd/Purgd): true-black screen, electric
   purple accent (#8A2BE2), the Capture title with its count badge, capture
   rows with a category line and an outcome chip ("→ Health & Fitness"),
   the capture bar pinned above the tab bar (camera, mic, send), the red
   "Listening…" banner while recording, and Capture Zero when it's clear.
   Driven by hero-phone.js as a pure render(t) timeline.
   ───────────────────────────────────────────────────── */

.hp-stage{position:relative; display:flex; justify-content:center;}

.hp-phone{
  --hp-bg:#000000; --hp-surface:#0A0A0A; --hp-elev:#111111; --hp-border:#222222;
  --hp-accent:#8A2BE2; --hp-accent-text:#CD85FA; --hp-accent-soft:#21053D;
  --hp-text:#FFFFFF; --hp-text-2:#A1A1AA; --hp-text-3:#8E8E93; --hp-muted:#7C7C80;
  --hp-red:#FF453A; --hp-green:#34C759;
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Sora", system-ui, sans-serif;
}
.hp-screen{background:var(--hp-bg); padding-top:36px; overflow:hidden;}

/* status bar */
.hp-status{display:flex; justify-content:space-between; align-items:center; padding:0 22px 4px; font-size:.62rem; font-weight:600; color:var(--hp-text);}
.hp-status-icons{display:flex; gap:4px; align-items:center;}
.hp-status-icons span{display:block; background:var(--hp-text); border-radius:2px;}

/* screen title row */
.hp-head{display:flex; align-items:center; gap:8px; padding:6px 16px 10px;}
.hp-title{font-size:1.6rem; font-weight:800; letter-spacing:-.02em; color:var(--hp-text); line-height:1;}
.hp-count{min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:var(--hp-accent); color:#fff; font-size:.62rem; font-weight:800; display:flex; align-items:center; justify-content:center; transform-origin:center;}
.hp-head-right{margin-left:auto; display:flex; align-items:center; gap:7px;}
.hp-streak{font-size:.58rem; font-weight:600; color:var(--hp-text-2); white-space:nowrap;}
.hp-ring{width:26px; height:26px; display:block;}
.hp-ring circle{fill:none; stroke-width:3;}
.hp-ring .hp-ring-track{stroke:var(--hp-border);}
.hp-ring .hp-ring-fill{stroke:var(--hp-accent); stroke-linecap:round; transform:rotate(-90deg); transform-origin:50% 50%;}

/* list */
.hp-list{position:relative; flex:1; min-height:0;}
.hp-row{position:absolute; left:0; right:0; top:0; height:60px; display:flex; align-items:center; gap:9px; padding:0 14px 0 14px; background:var(--hp-bg); will-change:transform, opacity;}
.hp-row-line{width:3px; height:76%; border-radius:2px; flex-shrink:0;}
.hp-row-body{flex:1; min-width:0; display:flex; flex-direction:column; gap:5px;}
.hp-row-text{font-size:.78rem; line-height:1.3; color:var(--hp-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.hp-row-meta{display:flex; align-items:center; gap:7px;}
.hp-chip{font-size:.6rem; font-weight:700; padding:2px 8px; border-radius:999px; white-space:nowrap;}
.hp-due{font-size:.56rem; color:var(--hp-text-3);}

/* Capture Zero */
.hp-zero{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; padding:0 26px 30px;}
.hp-zero-glyph{width:62px; height:62px; margin-bottom:6px;}
.hp-zero-title{font-size:1.05rem; font-weight:800; color:var(--hp-text);}
.hp-zero-sub{font-size:.66rem; line-height:1.45; color:var(--hp-text-3);}

/* dock: toast / banners above the capture bar */
.hp-dock{position:relative; padding:6px 12px 6px; border-top:1px solid rgba(34,34,34,.25);}
.hp-slot{position:relative; height:26px; margin-bottom:5px;}
.hp-slot > *{position:absolute; left:0; right:0; top:0; bottom:0; display:flex; align-items:center; justify-content:center; gap:6px; opacity:0;}
.hp-toast{background:var(--hp-elev); border-radius:12px; padding:0 10px; justify-content:flex-start !important; font-size:.62rem; color:var(--hp-text); font-weight:500;}
.hp-toast svg{flex-shrink:0;}
.hp-toast-text{white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.hp-banner-rec{font-size:.62rem; font-weight:600; color:var(--hp-red);}
.hp-mode{font-size:.54rem; font-weight:600; color:var(--hp-text-3); margin-left:2px;}
.hp-rec-dot{width:8px; height:8px; border-radius:50%; background:var(--hp-red);}
.hp-banner-tx{font-size:.62rem; font-weight:600; color:var(--hp-accent);}
.hp-spinner{width:11px; height:11px; border-radius:50%; border:2px solid rgba(138,43,226,.25); border-top-color:var(--hp-accent);}

/* capture bar */
.hp-bar{display:flex; align-items:center; gap:6px; background:var(--hp-elev); border:1px solid var(--hp-border); border-radius:8px; padding:7px 7px 7px 11px;}
.hp-input{flex:1; min-width:0; font-size:.74rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--hp-text-3);}
.hp-input.is-rec{color:var(--hp-red);}
.hp-btn{width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--hp-text-2); flex-shrink:0;}
.hp-mic{position:relative;}
.hp-mic-bg{position:absolute; inset:0; border-radius:50%; background:var(--hp-red); opacity:0;}
.hp-mic svg{position:relative;}
.hp-mic .hp-ico-stop{position:absolute; opacity:0;}
.hp-send{background:var(--hp-muted); color:#fff;}

/* tab bar */
.hp-tabs{display:flex; justify-content:space-around; padding:7px 4px 14px; background:var(--hp-surface); border-top:1px solid rgba(34,34,34,.19);}
.hp-tab{position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:.5rem; font-weight:600; letter-spacing:.02em; color:var(--hp-text-3); width:48px;}
.hp-tab.is-active{color:var(--hp-accent);}
.hp-tab-dot{width:3px; height:3px; border-radius:50%; background:var(--hp-accent); box-shadow:0 0 6px rgba(138,43,226,.6);}
.hp-tab-badge{position:absolute; top:-4px; left:28px; min-width:14px; height:14px; padding:0 4px; border-radius:7px; background:var(--hp-accent); color:#fff; font-size:.48rem; font-weight:800; display:flex; align-items:center; justify-content:center;}

/* finger tap */
.hp-tap{position:absolute; left:0; top:0; width:30px; height:30px; margin:-15px 0 0 -15px; border-radius:50%; background:rgba(255,255,255,.22); border:1.5px solid rgba(255,255,255,.55); pointer-events:none; opacity:0; z-index:30;}

/* the words you say, outside the phone */
.hp-voice{
  position:absolute; z-index:25; left:-150px; top:30%; width:210px;
  background:rgba(18,18,24,.92); border:1px solid rgba(255,255,255,.12);
  border-radius:16px 16px 16px 4px; padding:10px 12px 11px;
  box-shadow:0 12px 32px rgba(0,0,0,.45); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  opacity:0; pointer-events:none;
}
.hp-voice-label{display:flex; align-items:center; gap:6px; font-size:.6rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#C084FC; margin-bottom:5px;}
.hp-voice-wave{display:flex; align-items:center; gap:2px; height:10px;}
.hp-voice-wave i{display:block; width:2px; border-radius:1px; background:#C084FC; height:4px;}
.hp-voice-text{font-size:.82rem; line-height:1.45; color:#F8F8FB;}
.hp-voice-text span{opacity:.18; transition:none;}
@media (max-width:767px){
  /* No room beside the phone, so the bubble sits above it, in space the
     stage keeps free, and never covers the Capture screen. */
  .hp-stage{padding-top:104px;}
  .hp-voice{left:0; right:0; top:0; bottom:auto; margin:0 auto; width:min(300px, 92%); box-sizing:border-box;}
}

.hp-sr{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}

.hp-pause{
  position:absolute; right:-6px; bottom:-14px; z-index:26;
  display:inline-flex; align-items:center; gap:6px; padding:5px 10px;
  border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(10,10,14,.75);
  color:#B1B1BC; font:600 .68rem/1 "Sora", system-ui, sans-serif; cursor:pointer;
}
.hp-pause:hover{color:#F8F8FB; border-color:rgba(255,255,255,.2);}
.hp-pause:focus-visible{outline:2px solid #A855F7; outline-offset:2px;}

.hp-note{position:absolute; left:0; right:0; bottom:-40px; margin:0; text-align:center; font-size:.72rem; color:#7D7D8A;}
@media (max-width:767px){ .hp-note{bottom:-46px; padding:0 70px 0 0; text-align:left;} }
