/* ============================================================
   How-it-works UI mockups (steps 1–4)
   Shared browser shell + per-step layouts (website / leads /
   phone / dashboard).
   ============================================================ */

/* Shared frame */
.hw-mock {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    var(--hi-top),
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.hw-mock-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  background: var(--surface-cream);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.hw-mock-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.hw-mock-dot:nth-child(1) { background: #FCA5A5; }
.hw-mock-dot:nth-child(2) { background: #FCD34D; }
.hw-mock-dot:nth-child(3) { background: #6EE7B7; }
.hw-mock-url {
  margin-left: 0.6rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* -------------------- Step 1: Website mockup -------------------- */
.hw-website {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #FFFFFF;
}
.hw-website-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(180deg, #0369A1 0%, #075985 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 0.85rem;
}
.hw-website-nav strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #FFFFFF;
  font-size: 0.95rem;
}
.hw-website-nav-links {
  display: inline-flex;
  gap: 1.1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}
.hw-website-nav-links span {
  position: relative;
  padding: 0.15rem 0;
  cursor: default;
}
.hw-website-nav-links span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1.5px;
  background: #FFFFFF;
  transform: scaleX(0);
  transition: transform 0.18s ease;
}
.hw-website-nav-links span:hover { color: #FFFFFF; }
.hw-website-nav-links span:hover::after { transform: scaleX(1); }
.hw-website-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
}
.hw-website-logo--blue {
  background: linear-gradient(135deg, #FFFFFF, #DBEAFE);
  box-shadow: inset 0 0 0 1.5px rgba(30, 64, 175, 0.3);
}
.hw-website-logo-img {
  width: 26px;
  height: 26px;
  background: #FFFFFF;
  border-radius: 5px;
  padding: 2px;
  display: block;
  flex-shrink: 0;
}
.hw-website-cta {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
}
.hw-website-cta--blue {
  background: #FFFFFF;
  color: #0369A1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
/* On narrow viewports the mini nav row would otherwise force horizontal
   scroll. Hide the decorative center links and tighten CTA so the brand +
   CTA fit comfortably. */
@media (max-width: 480px) {
  .hw-website-nav { padding: 0.55rem 0.85rem; gap: 0.5rem; }
  .hw-website-nav strong { font-size: 0.85rem; }
  .hw-website-nav-links { display: none; }
  .hw-website-cta { padding: 0.35rem 0.7rem; font-size: 0.72rem; }
  .hw-website-logo-img { width: 22px; height: 22px; }
}
.hw-website-hero {
  position: relative;
  flex: 1;
  min-height: 280px;
  overflow: hidden;
}
.hw-website-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Thin frost layer over the photo for legibility */
.hw-website-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.45) 100%);
  backdrop-filter: blur(2px) saturate(105%);
  -webkit-backdrop-filter: blur(2px) saturate(105%);
  z-index: 1;
}

/* Coastal-blue painted backdrop for plumbing site (no photo) */
.hw-website-hero--coastal {
  background:
    /* warm afternoon sun glow */
    radial-gradient(circle at 88% 14%, rgba(254, 243, 199, 0.4) 0%, transparent 32%),
    /* sky-to-water gradient */
    linear-gradient(180deg,
      #7DD3FC 0%,
      #38BDF8 25%,
      #0EA5E9 55%,
      #0369A1 80%,
      #0C4A6E 100%
    );
}
/* subtle wave layer */
.hw-website-hero--coastal::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 18% at 50% 78%, rgba(255, 255, 255, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 12% at 30% 88%, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.hw-website-hero--coastal .hw-website-hero-overlay {
  z-index: 2;
}
.hw-website-hero-overlay {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  color: #FFFFFF;
  gap: 0.7rem;
}
.hw-website-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  width: fit-content;
}
.hw-website-stars { color: #FBBF24; letter-spacing: 0.04em; }
.hw-website-hero-overlay .mock-headline {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--serif-display);
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  max-width: 90%;
}
.hw-website-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  margin-top: -0.15rem;
  max-width: 90%;
}
.hw-website-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-top: 0.4rem; }
.hw-website-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hw-website-btn--call {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.45);
}
.hw-website-btn--call-blue {
  background: #0369A1;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.55);
}
.hw-website-btn--ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

