/* -------------------- Step 3: iPhone frame showing an email -------------------- */
.hw-phone {
  width: 300px;
  margin: 0 auto;
  background: #1F2937;
  border: 8px solid #1F2937;
  border-radius: 36px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.35),
    0 4px 14px rgba(15, 23, 42, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  /* Visual-only prop. pointer-events: none on the whole phone means
     taps, swipes, scrolls, etc. all pass straight through to whatever's
     behind it (the page background) — so page scroll always wins. */
  pointer-events: none;
}
/* Mobile: phone is shown at its natural size now that the section is
   flat-stacked (no pin, plenty of vertical room per feature). Removed
   the old scale-down hack — the phone fits comfortably in flow. */
.hw-phone-notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1F2937;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.hw-phone-screen {
  background: #FFFFFF;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 530px;
}
.hw-phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.4rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  z-index: 2;
  position: relative;
}
.hw-phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hw-phone-status-icons svg { width: 16px; height: 10px; fill: var(--text); }
.hw-phone-status-icons svg:nth-child(2) { width: 22px; }

/* iOS Mail header */
.hw-phone-mail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.95rem 0.55rem;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
}
.hw-phone-back {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}
.hw-phone-mail-time { color: var(--muted); font-size: 0.72rem; font-weight: 500; }

/* Email body inside phone */
.hw-phone-mail {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.95rem 1rem 1rem;
  gap: 0.75rem;
  /* Lock the simulated email — it shouldn't be a scrollable surface,
     it's just a visual prop. overflow:hidden kills any internal scroll;
     touch-action: pan-y lets vertical swipes pass through to the page
     scroll (which drives the pin step switcher). */
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.hw-phone-mail .mock-headline {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.hw-phone-mail-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.hw-phone-mail-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38BDF8, #0369A1);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hw-phone-mail-meta-text { display: flex; flex-direction: column; gap: 0.05rem; line-height: 1.2; }
.hw-phone-mail-meta-text strong { color: var(--heading); font-size: 0.78rem; font-weight: 700; }
.hw-phone-mail-meta-text span { color: var(--muted); font-size: 0.65rem; }

.hw-phone-mail-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.hw-phone-mail-body p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
.hw-phone-mail-cta {
  align-self: stretch;
  text-align: center;
  background: var(--primary);
  color: #FFFFFF;
  text-decoration: none;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.35);
  margin: 0.15rem 0;
}
.hw-phone-mail-fine {
  font-size: 0.72rem !important;
  color: var(--muted) !important;
  text-align: center;
}
.hw-phone-mail-fine strong { color: var(--heading); }
.hw-phone-mail-sig {
  margin-top: 0.3rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.3;
}
.hw-phone-mail-sig strong { color: var(--heading); font-size: 0.78rem; }
.hw-phone-mail-sig span { color: var(--muted); font-size: 0.7rem; }

.hw-phone-mail-footer {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hw-phone-mail-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: hwPulse 1.6s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hw-phone-mail-pulse { animation: none; }
}

