/* Huddle Demo Phone — animated phone mockup styles.
   Scoped under .hdp to avoid collisions with the landing page CSS. */

.hdp {
  --hdp-graphite: #2E3236;
  --hdp-sage:     #7F9186;
  --hdp-paper:    #F6F7F5;
  --hdp-orange:   #E8623A;
  --hdp-yellow:   #D4A93A;
  --hdp-ash:      #D8DAD6;
  --hdp-red:      #B33A2E;
  --hdp-display:  'Inter', -apple-system, "SF Pro Display", system-ui, sans-serif;
  --hdp-text:     'Inter', -apple-system, "SF Pro Text", system-ui, sans-serif;
  --hdp-mono:     'JetBrains Mono', "SF Mono", ui-monospace, Menlo, monospace;

  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--hdp-text);
}

.hdp .phone-stage {
  position: relative;
  perspective: 1400px;
}
.hdp .phone {
  width: 340px; height: 738px;
  background: #0A0A0A;
  border-radius: 50px;
  padding: 10px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.25),
    0 10px 30px rgba(0,0,0,0.15),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
  position: relative;
  flex-shrink: 0;
}
.hdp .phone::before {
  content: ''; position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 32px; background: #0A0A0A; border-radius: 18px; z-index: 20;
}
.hdp .screen {
  width: 100%; height: 100%;
  background: var(--hdp-paper);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
}
.hdp .scenes { position: absolute; inset: 0; }
.hdp .scene {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(.4,0,.2,1), transform 600ms cubic-bezier(.4,0,.2,1);
  transform: translateX(20px);
  pointer-events: none;
  display: flex; flex-direction: column;
}
.hdp .scene.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.hdp .scene.leaving { opacity: 0; transform: translateX(-20px); }

/* iOS chrome */
.hdp .status-bar {
  height: 54px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px 0;
  font-family: var(--hdp-text); font-size: 14px; font-weight: 600;
}
.hdp .status-right { display: flex; align-items: center; gap: 5px; }
.hdp .signal-dots { display: flex; gap: 2px; align-items: flex-end; }
.hdp .signal-dots span { display: block; width: 3px; background: currentColor; border-radius: 0.5px; }
.hdp .signal-dots span:nth-child(1) { height: 4px; }
.hdp .signal-dots span:nth-child(2) { height: 6px; }
.hdp .signal-dots span:nth-child(3) { height: 8px; }
.hdp .signal-dots span:nth-child(4) { height: 10px; }
.hdp .battery {
  width: 24px; height: 11px; border: 1px solid currentColor; border-radius: 3px;
  position: relative; padding: 1px;
}
.hdp .battery::after {
  content: ''; position: absolute; right: -3px; top: 3px; width: 1.5px; height: 5px;
  background: currentColor; border-radius: 0 1px 1px 0;
}
.hdp .battery i { display: block; height: 100%; width: 78%; background: currentColor; border-radius: 1px; }

.hdp .home-indicator {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 4px; border-radius: 100px; background: rgba(0,0,0,0.4);
}

/* ─── Scene 1: Home ─── */
.hdp .s-home { background: var(--hdp-paper); color: var(--hdp-graphite); }
.hdp .topbar {
  padding: 8px 16px; height: 44px; display: flex;
  align-items: center; justify-content: space-between; flex-shrink: 0;
}
.hdp .brand { display: flex; align-items: baseline; gap: 6px; }
.hdp .brand .b-text { font-family: var(--hdp-display); font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.hdp .brand .b-dot { width: 6px; height: 6px; background: var(--hdp-orange); align-self: center; }
.hdp .gear-icon { width: 22px; height: 22px; color: var(--hdp-graphite); }

.hdp .project-selector {
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--hdp-ash);
}
.hdp .pin {
  width: 22px; height: 26px; background: var(--hdp-graphite);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 4px;
  flex-shrink: 0;
}
.hdp .pin i { width: 6px; height: 6px; background: var(--hdp-orange); }
.hdp .project-meta { flex: 1; min-width: 0; }
.hdp .project-meta .label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.6px;
  color: var(--hdp-sage); text-transform: uppercase; margin-bottom: 2px;
}
.hdp .project-meta .name {
  font-family: var(--hdp-display); font-size: 17px; font-weight: 600;
  letter-spacing: -0.3px; color: var(--hdp-graphite);
}
.hdp .chev { width: 18px; height: 18px; color: var(--hdp-sage); }

.hdp .conditions {
  padding: 12px 16px; display: flex; justify-content: space-between;
  font-family: var(--hdp-mono); font-size: 10px; letter-spacing: 0.4px;
  color: var(--hdp-sage); text-transform: uppercase;
}
.hdp .conditions .val { color: var(--hdp-graphite); font-family: var(--hdp-text); font-size: 12px; font-weight: 500; margin-top: 3px; text-transform: none; letter-spacing: 0; }

.hdp .hero-zone {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 16px; gap: 22px;
}
.hdp .record-btn {
  width: 170px; height: 170px; border-radius: 50%;
  background: var(--hdp-orange); border: 0; cursor: pointer;
  position: relative;
  box-shadow: 0 8px 0 #B8482A, 0 0 0 7px var(--hdp-paper), 0 0 0 8px var(--hdp-ash);
  display: flex; align-items: center; justify-content: center;
  color: var(--hdp-paper);
  transition: transform 100ms, box-shadow 100ms;
}
.hdp .record-btn.pressed {
  transform: translateY(6px);
  box-shadow: 0 0 0 #B8482A, 0 0 0 7px var(--hdp-paper), 0 0 0 8px var(--hdp-ash),
              inset 0 4px 12px rgba(0,0,0,0.3);
}
.hdp .record-btn .inner-ring {
  position: absolute; inset: 16px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
}
.hdp .mic-glyph { width: 60px; height: 60px; }
.hdp .hero-label { text-align: center; }
.hdp .hero-label .title { font-family: var(--hdp-display); font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.hdp .hero-label .lbl-sub { font-size: 12px; color: var(--hdp-sage); margin-top: 6px; }

.hdp .last-huddle {
  margin: 0 16px 12px; padding: 12px 0;
  border-top: 1px solid var(--hdp-ash);
  display: flex; align-items: center; gap: 10px;
}
.hdp .last-huddle .rail { width: 3px; height: 26px; background: var(--hdp-graphite); }
.hdp .last-huddle .l-meta { flex: 1; }
.hdp .last-huddle .l-label { font-family: var(--hdp-mono); font-size: 9px; letter-spacing: 0.6px; color: var(--hdp-sage); text-transform: uppercase; }
.hdp .last-huddle .l-text { font-size: 12px; color: var(--hdp-graphite); font-weight: 500; margin-top: 2px; }
.hdp .last-huddle .l-text .muted { color: var(--hdp-sage); font-weight: 400; }

.hdp .tabbar {
  height: 56px; border-top: 1px solid var(--hdp-ash);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-bottom: 4px;
  background: var(--hdp-paper);
}
.hdp .tab-btn { background: transparent; border: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--hdp-sage);
}
.hdp .tab-btn.on { color: var(--hdp-graphite); }
.hdp .tab-btn svg { width: 22px; height: 22px; }
.hdp .tab-btn .lbl { font-size: 10px; font-weight: 500; }
.hdp .tab-btn.on .lbl { font-weight: 600; }

/* ─── Scene 2: Recording ─── */
.hdp .s-rec { background: var(--hdp-graphite); color: var(--hdp-paper); }
.hdp .s-rec .status-bar { color: var(--hdp-paper); }
.hdp .rec-top {
  padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.hdp .rec-proj { font-family: var(--hdp-mono); font-size: 10px; letter-spacing: 0.6px; color: rgba(246,247,245,0.45); text-transform: uppercase; }
.hdp .rec-indicator { display: flex; align-items: center; gap: 6px; }
.hdp .rec-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--hdp-orange);
  box-shadow: 0 0 12px var(--hdp-orange);
  animation: hdp-pulse 1.2s ease-in-out infinite;
}
@keyframes hdp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.hdp .rec-label { font-family: var(--hdp-mono); font-size: 10px; letter-spacing: 0.6px; color: var(--hdp-orange); font-weight: 600; text-transform: uppercase; }

.hdp .rec-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.hdp .timer {
  font-family: var(--hdp-mono); font-size: 76px; font-weight: 500;
  letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums;
}
.hdp .timer .colon { transition: opacity 200ms; }
.hdp .timer .colon.dim { opacity: 0.3; }
.hdp .wave {
  display: flex; align-items: center; justify-content: center;
  gap: 3px; height: 32px; width: 260px;
}
.hdp .wave .bar {
  width: 2px; background: var(--hdp-sage); border-radius: 1px;
  transition: height 80ms;
}
.hdp .rec-sub { font-size: 13px; color: rgba(246,247,245,0.55); }

.hdp .stop-area { padding: 0 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.hdp .stop-btn {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--hdp-red); border: 0; cursor: pointer;
  box-shadow: 0 6px 0 #8E2D24, 0 0 0 7px var(--hdp-graphite), 0 0 0 8px rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: transform 100ms, box-shadow 100ms;
}
.hdp .stop-btn.pressed {
  transform: translateY(6px);
  box-shadow: 0 0 0 #8E2D24, 0 0 0 7px var(--hdp-graphite), 0 0 0 8px rgba(255,255,255,0.08);
}
.hdp .stop-btn i { width: 32px; height: 32px; background: var(--hdp-paper); border-radius: 4px; }
.hdp .stop-hint { font-size: 12px; color: rgba(246,247,245,0.5); }

/* ─── Scene 3: Processing ─── */
.hdp .s-proc { background: var(--hdp-graphite); color: var(--hdp-paper); }
.hdp .s-proc .status-bar { color: var(--hdp-paper); }
.hdp .proc-top { padding: 8px 20px; font-family: var(--hdp-mono); font-size: 10px; letter-spacing: 0.6px; color: rgba(246,247,245,0.45); text-transform: uppercase; }
.hdp .proc-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; }
.hdp .proc-title { font-family: var(--hdp-display); font-size: 28px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.1; }
.hdp .proc-time { margin-top: 6px; font-family: var(--hdp-mono); font-size: 10px; color: rgba(246,247,245,0.5); letter-spacing: 0.6px; text-transform: uppercase; }
.hdp .sweep {
  width: 220px; height: 2px;
  background: rgba(127,145,134,0.25);
  position: relative; overflow: hidden;
  margin: 28px 0 32px;
}
.hdp .sweep .swept {
  position: absolute; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(90deg, transparent, var(--hdp-sage), transparent);
  animation: hdp-sweep 1.6s ease-in-out infinite;
}
@keyframes hdp-sweep {
  0% { left: -80px; }
  100% { left: 220px; }
}
.hdp .stages { display: flex; flex-direction: column; gap: 12px; width: 220px; }
.hdp .stage-row { display: flex; align-items: center; gap: 12px; }
.hdp .stage-row .dot-mark { width: 14px; display: flex; justify-content: center; align-items: center; }
.hdp .stage-row .dot-mark .d {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(246,247,245,0.2);
}
.hdp .stage-row.done .dot-mark .d { background: var(--hdp-sage); }
.hdp .stage-row.active .dot-mark .d { background: var(--hdp-orange); animation: hdp-pulse 1.2s ease-in-out infinite; }
.hdp .stage-row .text {
  font-family: var(--hdp-mono); font-size: 10.5px; letter-spacing: 0.6px;
  text-transform: uppercase; color: rgba(246,247,245,0.3); font-weight: 500;
  transition: color 300ms;
}
.hdp .stage-row.done .text { color: rgba(246,247,245,0.7); }
.hdp .stage-row.active .text { color: var(--hdp-paper); font-weight: 600; }
.hdp .stage-row .check {
  width: 11px; height: 11px; color: var(--hdp-sage); opacity: 0;
  transition: opacity 200ms;
}
.hdp .stage-row.done .check { opacity: 1; }

.hdp .proc-footer { padding: 0 24px 20px; text-align: center; flex-shrink: 0;
  font-size: 12px; color: rgba(246,247,245,0.45); line-height: 1.4; }

/* ─── Scene 4: THA review ─── */
.hdp .s-tha { background: var(--hdp-paper); color: var(--hdp-graphite); }
.hdp .tha-top {
  padding: 8px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hdp-ash); flex-shrink: 0;
}
.hdp .tha-top .back { color: var(--hdp-graphite); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 2px; }
.hdp .tha-top .center { text-align: center; }
.hdp .tha-top .center .t { font-size: 13px; font-weight: 600; }
.hdp .tha-top .center .d { font-family: var(--hdp-mono); font-size: 9px; color: var(--hdp-sage); letter-spacing: 0.4px; margin-top: 1px; }
.hdp .tha-top .edit { font-size: 14px; font-weight: 500; color: var(--hdp-graphite); }

.hdp .tab-strip {
  display: flex; border-bottom: 1px solid var(--hdp-ash);
  padding: 0 4px; flex-shrink: 0;
}
.hdp .tab-strip .t {
  flex: 1; padding: 12px 0 10px;
  font-size: 13px; color: var(--hdp-sage); font-weight: 500;
  text-align: center; border-bottom: 2.5px solid transparent;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.hdp .tab-strip .t.on { color: var(--hdp-graphite); font-weight: 600; border-bottom-color: var(--hdp-graphite); }
.hdp .tab-strip .t .count {
  font-family: var(--hdp-mono); font-size: 10px;
  background: rgba(46,50,54,0.08); padding: 1px 6px; border-radius: 3px;
}
.hdp .tab-strip .t:not(.on) .count {
  background: transparent; border: 1px solid var(--hdp-ash);
}

.hdp .tha-body {
  flex: 1; overflow-y: auto; padding: 16px 14px 12px;
}
.hdp .tha-body::-webkit-scrollbar { display: none; }
.hdp .section-label {
  font-size: 10px; font-weight: 600; color: var(--hdp-sage);
  letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 6px;
}
.hdp .task {
  font-family: var(--hdp-display); font-size: 17px; font-weight: 600;
  letter-spacing: -0.4px; line-height: 1.25; margin-bottom: 14px;
}
.hdp .conditions-block {
  padding-bottom: 14px; border-bottom: 1px solid var(--hdp-ash); margin-bottom: 14px;
}
.hdp .cond-row {
  display: flex; gap: 12px; padding: 4px 0; align-items: baseline;
}
.hdp .cond-row .k {
  font-family: var(--hdp-mono); font-size: 10px; color: var(--hdp-sage);
  letter-spacing: 0.4px; text-transform: uppercase; width: 70px; flex-shrink: 0;
}
.hdp .cond-row .v { font-size: 12px; font-weight: 500; }

.hdp .hazards-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.hdp .badge {
  display: inline-flex; align-items: center;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.3px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}
.hdp .badge.sage { background: rgba(127,145,134,0.14); color: var(--hdp-graphite); border: 1px solid rgba(127,145,134,0.35); }
.hdp .badge.yellow { background: rgba(212,169,58,0.16); color: #7A5F12; border: 1px solid rgba(212,169,58,0.5); }

.hdp .hazard {
  background: var(--hdp-paper); border: 1px solid var(--hdp-ash);
  padding: 14px 14px 12px; margin-top: -1px;
  position: relative;
  opacity: 0;
  animation: hdp-hazard-in 400ms cubic-bezier(.2,.7,.3,1) forwards;
}
.hdp .hazard:nth-child(1) { animation-delay: 100ms; }
.hdp .hazard:nth-child(2) { animation-delay: 250ms; }
.hdp .hazard:nth-child(3) { animation-delay: 400ms; }
@keyframes hdp-hazard-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hdp .hazard .rail {
  position: absolute; top: 14px; left: -1px;
  width: 3px; height: 24px;
}
.hdp .hazard.mentioned .rail { background: var(--hdp-graphite); }
.hdp .hazard.suggested .rail { background: var(--hdp-yellow); }

.hdp .hazard-head { display: flex; align-items: flex-start; gap: 8px; }
.hdp .hazard-num {
  font-family: var(--hdp-mono); font-size: 10px; font-weight: 600;
  color: var(--hdp-sage); letter-spacing: 0.6px; margin-top: 2px; min-width: 22px;
}
.hdp .hazard-body { flex: 1; min-width: 0; }
.hdp .hazard-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hdp .hazard-title {
  font-family: var(--hdp-display); font-size: 13.5px; font-weight: 600;
  letter-spacing: -0.2px; line-height: 1.25;
}
.hdp .hazard-source {
  font-size: 10.5px; color: var(--hdp-sage); margin-top: 2px; font-weight: 500;
}
.hdp .controls {
  list-style: none; padding: 0; margin: 8px 0 0 30px;
  display: flex; flex-direction: column; gap: 4px;
}
.hdp .controls li {
  font-size: 12px; line-height: 1.35; position: relative;
  padding-left: 12px; letter-spacing: -0.1px;
}
.hdp .controls li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 1.5px; background: var(--hdp-graphite);
}
.hdp .osha {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--hdp-ash);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--hdp-mono); font-size: 9.5px; color: var(--hdp-sage);
  letter-spacing: 0.5px; text-transform: uppercase;
}

.hdp .tha-cta {
  padding: 10px 14px 12px; border-top: 1px solid var(--hdp-ash);
  background: var(--hdp-paper); flex-shrink: 0;
}
.hdp .primary {
  width: 100%; min-height: 52px; border-radius: 12px; border: 0;
  background: var(--hdp-orange); color: var(--hdp-paper);
  font-family: var(--hdp-display); font-size: 16px; font-weight: 600;
  letter-spacing: -0.2px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ─── Scene 5: Sign-off ─── */
.hdp .s-sign { background: var(--hdp-paper); color: var(--hdp-graphite); }
.hdp .sign-top {
  padding: 8px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hdp-ash); flex-shrink: 0;
}
.hdp .sign-top .back { color: var(--hdp-graphite); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 2px; }
.hdp .sign-top .center { font-size: 14px; font-weight: 600; }
.hdp .sign-top .counter { font-family: var(--hdp-mono); font-size: 12px; color: var(--hdp-sage); letter-spacing: 0.4px; }
.hdp .sign-desc { padding: 14px 16px 6px; font-size: 13px; color: var(--hdp-sage); line-height: 1.4; }
.hdp .progress-segments { padding: 6px 16px 12px; display: flex; gap: 4px; }
.hdp .progress-segments .seg {
  flex: 1; height: 4px; background: var(--hdp-ash);
  transition: background 300ms;
}
.hdp .progress-segments .seg.on { background: var(--hdp-graphite); }
.hdp .crew-grid {
  flex: 1; padding: 0 14px 12px; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  align-content: start;
}
.hdp .crew-grid::-webkit-scrollbar { display: none; }
.hdp .tile {
  aspect-ratio: 1; position: relative;
  background: var(--hdp-paper); border: 1.5px solid var(--hdp-ash);
  overflow: hidden; padding: 0;
  transition: all 400ms cubic-bezier(.4,0,.2,1);
}
.hdp .tile.signed {
  background: var(--hdp-graphite);
  border-color: var(--hdp-graphite);
}
.hdp .tile .stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, #3a3f43 0 12px, #2a2e32 12px 24px);
  opacity: 0;
  transition: opacity 400ms;
}
.hdp .tile.signed .stripes { opacity: 1; }
.hdp .tile.t-warm .stripes { background: repeating-linear-gradient(135deg, #3e3a36 0 12px, #2e2b27 12px 24px); }
.hdp .tile.t-cool .stripes { background: repeating-linear-gradient(135deg, #363c3a 0 12px, #262b29 12px 24px); }
.hdp .tile.t-rose .stripes { background: repeating-linear-gradient(135deg, #403a3a 0 12px, #2f2929 12px 24px); }
.hdp .tile .headshot-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(246,247,245,0.45);
  font-family: var(--hdp-mono); font-size: 8px; letter-spacing: 0.6px; text-transform: uppercase;
  opacity: 0; transition: opacity 400ms 100ms;
}
.hdp .tile.signed .headshot-label { opacity: 1; }
.hdp .tile .name-block {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2;
}
.hdp .tile .name {
  font-family: var(--hdp-display); font-size: 13px; font-weight: 700; letter-spacing: -0.2px;
  line-height: 1.1; color: var(--hdp-graphite);
  transition: color 400ms;
}
.hdp .tile.signed .name { color: var(--hdp-paper); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.hdp .tile .trade {
  margin-top: 1px; font-size: 10px; font-weight: 500; color: var(--hdp-sage);
  transition: color 400ms;
}
.hdp .tile.signed .trade { color: rgba(246,247,245,0.7); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.hdp .tile .tap-glyph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: opacity 200ms;
}
.hdp .tile.signed .tap-glyph { opacity: 0; }
.hdp .tile .tap-circle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px dashed var(--hdp-ash);
  display: flex; align-items: center; justify-content: center;
  color: var(--hdp-sage);
}
.hdp .tile .tap-circle svg { width: 22px; height: 22px; }
.hdp .tile .tap-caption {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  font-size: 10px; color: var(--hdp-sage); font-weight: 500;
  transition: opacity 200ms;
}
.hdp .tile.signed .tap-caption { opacity: 0; }
.hdp .tile .check-badge {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 20px; height: 20px; border-radius: 50%;
  background: #3D8F5A;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  opacity: 0; transform: scale(0.5);
  transition: opacity 300ms 100ms, transform 300ms cubic-bezier(.5,1.8,.5,1) 100ms;
}
.hdp .tile.signed .check-badge { opacity: 1; transform: scale(1); }
.hdp .tile .check-badge svg { width: 12px; height: 12px; color: var(--hdp-paper); }
.hdp .tile .timestamp {
  position: absolute; bottom: 8px; left: 10px; right: 10px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--hdp-mono); font-size: 9px; letter-spacing: 0.4px;
  opacity: 0; transition: opacity 300ms 200ms;
  color: var(--hdp-paper);
}
.hdp .tile.signed .timestamp { opacity: 1; }
.hdp .tile .timestamp .lbl { color: rgba(246,247,245,0.7); text-transform: uppercase; }

.hdp .submit-area {
  padding: 10px 16px 14px; border-top: 1px solid var(--hdp-ash); flex-shrink: 0;
}
.hdp .submit-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.hdp .submit-meta .ack { font-size: 12px; font-weight: 600; }
.hdp .submit-meta .rem { font-family: var(--hdp-mono); font-size: 10px; color: var(--hdp-sage); letter-spacing: 0.4px; text-transform: uppercase; }

/* Cursor overlay */
.hdp .cursor {
  position: absolute; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(46,50,54,0.15); border: 2px solid rgba(46,50,54,0.4);
  pointer-events: none; opacity: 0;
  transform: translate(-50%,-50%) scale(0.5);
  transition: opacity 200ms, transform 200ms;
  z-index: 50; left: 50%; top: 50%;
}

/* Step caption (under phone) */
.hdp .step-caption {
  font-family: var(--hdp-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--hdp-sage);
  display: flex; align-items: center; gap: 12px;
  min-height: 22px;
}
.hdp .step-caption .num {
  font-weight: 600; color: var(--hdp-graphite);
  background: rgba(46,50,54,0.08); padding: 3px 8px;
}
.hdp .step-caption .label { transition: opacity 300ms; }
