/* ============================================================
   HOW IT WORKS PAGE — additional styles
   ============================================================ */

/* ---- Page Hero (compact, not full-height) ---- */
.hiw-page-hero {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 55%, #1E2D40 100%);
  padding: 120px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hiw-page-hero .hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hiw-page-hero .shape { opacity: 0.05; }
.hiw-page-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hiw-page-hero-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hiw-page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}
.hiw-page-hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 0;
}
.hiw-page-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.hiw-page-hero-wave svg { display: block; width: 100%; height: 100px; }

/* ---- Step sections ---- */
.hiw-section {
  padding: 80px 0 60px;
}
.hiw-section--alt { background: var(--bg); }
.hiw-section--white { background: var(--white); }

.hiw-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Step label strip */
.hiw-step-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.hiw-step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-glow-sm);
}
.hiw-step-title-group { display: flex; flex-direction: column; gap: 2px; }
.hiw-step-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--teal);
}
.hiw-step-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* Two-col layout for each step: content left, mockup right */
.hiw-step-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hiw-step-layout--reverse { direction: rtl; }
.hiw-step-layout--reverse > * { direction: ltr; }

/* Sub-features list */
.hiw-subfeatures { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.hiw-subfeature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.hiw-subfeature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hiw-subfeature-body { flex: 1; }
.hiw-subfeature-body h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.hiw-subfeature-body p {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   MOCKUP CARDS (desktop-style flat cards, not phone shapes)
   ============================================================ */
.mock-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
}
.mock-card-bar {
  background: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
}
.mock-card-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.mock-card-bar-title {
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
}
.mock-card-body { padding: 20px; }

/* CSV mockup */
.csv-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 16px;
  transition: border-color var(--transition);
  background: var(--bg);
}
.csv-drop-zone:hover { border-color: var(--teal); }
.csv-drop-icon {
  width: 40px; height: 40px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  color: var(--teal);
}
.csv-drop-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.csv-drop-sub { font-size: 0.75rem; color: var(--text-sec); }
.csv-drop-sub span { color: var(--teal); font-weight: 700; cursor: pointer; }

.csv-columns-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.csv-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.csv-col-tag {
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}
.csv-col-tag--required {
  background: var(--primary-subtle);
  color: var(--teal);
  border: 1px solid var(--primary-glow-xs);
}
.csv-col-tag--optional {
  background: var(--bg);
  color: var(--text-light);
  border: 1px solid var(--border);
}

.csv-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.csv-preview-table th {
  background: var(--bg-muted);
  color: var(--teal);
  font-weight: 700;
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1.5px solid var(--border);
}
.csv-preview-table td {
  padding: 7px 10px;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}
.csv-preview-table tr:last-child td { border-bottom: none; }

.csv-import-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 4px 12px var(--primary-glow-sm);
}

/* Quick Call mockup card */
.qc-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px 20px;
}
.qc-counter {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.qc-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px var(--primary-glow-sm);
}
.qc-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.qc-phone {
  font-size: 0.85rem;
  color: var(--text-sec);
  margin-bottom: 2px;
}
.qc-company {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.qc-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px var(--primary-glow-sm);
  letter-spacing: 0.3px;
}
.qc-results {
  display: flex;
  gap: 8px;
  width: 100%;
}
.qc-result {
  flex: 1;
  padding: 9px 6px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.qc-result--green { background: rgba(42,124,89,0.1); color: var(--success); border: 1.5px solid rgba(42,124,89,0.15); }
.qc-result--yellow { background: rgba(160,138,105,0.12); color: #7a5c2e; border: 1.5px solid rgba(160,138,105,0.2); }
.qc-result--red { background: rgba(192,90,80,0.1); color: var(--danger); border: 1.5px solid rgba(192,90,80,0.15); }

/* Stats mockup card */
.stats-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.stats-mock-item {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  border-radius: var(--radius);
  padding: 18px 16px;
  color: var(--white);
  text-align: center;
}
.stats-mock-val {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-mock-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
}
.stats-streak-bar {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stats-streak-flame {
  font-size: 1.6rem;
  line-height: 1;
}
.stats-streak-text { flex: 1; }
.stats-streak-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.stats-streak-sub {
  font-size: 0.75rem;
  color: var(--text-sec);
}
.stats-reminder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
}
.stats-reminder-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.stats-reminder-text { flex: 1; font-size: 0.82rem; color: var(--text); font-weight: 600; }
.stats-reminder-date { font-size: 0.75rem; color: var(--text-light); font-weight: 600; }

/* Follow-up mockup card */
.followup-list { display: flex; flex-direction: column; gap: 8px; }
.followup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1.5px solid var(--border);
}
.followup-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 0.65rem; font-weight: 700; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.followup-info { flex: 1; min-width: 0; }
.followup-name { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.followup-company { font-size: 0.75rem; color: var(--text-sec); }
.followup-date-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.followup-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--white); border: 1.5px solid var(--border);
  padding: 3px 10px;
  border-radius: 8px;
}
.followup-soon {
  font-size: 0.66rem;
  color: var(--text-light);
  font-weight: 600;
}
.followup-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--teal);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px dashed var(--primary-glow-sm);
  cursor: pointer;
  margin-top: 8px;
}

/* ---- Nav active state for this page ---- */
.nav-link--active {
  color: var(--white) !important;
  background: rgba(255,255,255,0.15) !important;
}
.nav.scrolled .nav-link--active {
  color: var(--teal) !important;
  background: var(--teal-pale) !important;
}

/* ---- Sticky step nav ---- */
.hiw-page-steps-nav {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 50;
}
.hiw-page-steps-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.hiw-page-steps-nav-inner::-webkit-scrollbar { display: none; }
.hiw-step-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sec);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}
.hiw-step-nav-item:hover { color: var(--teal); border-bottom-color: var(--primary-glow-sm); }
.hiw-step-nav-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--border);
  color: var(--text-sec);
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.hiw-step-nav-item:hover .hiw-step-nav-num { background: var(--teal); color: var(--white); }

/* ---- Download section — flows naturally with footer ---- */
.hiw-download { height: auto !important; padding: 80px 0; background: var(--bg); overflow: visible !important; }
.hiw-download-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ── HIW large phone — scale 0.60 ── */
/* wrapper: 387×0.60=232, 824×0.60=494 */
.phone-wrap--hiw-lg {
  width: 232px;
  height: 494px;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), z-index 0s;
}
.phone-wrap--hiw-lg .phone-frame { transform: scale(0.60); }
.phone-wrap--hiw-lg .phone-float {
  animation: phoneFloat 4s ease-in-out infinite;
}
.phone-wrap--hiw-lg:hover {
  transform: scale(1.04);
  z-index: 5;
}
.phone-wrap--hiw-lg:hover .phone-float {
  animation-play-state: paused;
}

/* ── Download phone float ── */
.phone-wrap--dl .phone-float {
  animation: phoneFloat 4.3s ease-in-out infinite 0.5s;
}

/* ---- Fullscreen snap layout (desktop) ---- */
@media (min-width: 769px) {
  .hiw-page-hero {
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hiw-page-steps-nav { display: none; }

  .wave-divider { display: none; }

  .hiw-section {
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  /* Slightly smaller phone to fit in viewport */
  .phone-wrap--hiw-lg {
    width: 194px;
    height: 413px;
  }
  .phone-wrap--hiw-lg .phone-frame { transform: scale(0.50); }

  .hiw-step-layout { gap: 40px; }
  .hiw-subfeatures { gap: 14px; }
  .hiw-step-label { margin-bottom: 20px; }
}

/* ---- Snap progress dots ---- */
.hiw-snap-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  pointer-events: none;
}
.hiw-snap-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.28s cubic-bezier(0.4,0,0.2,1), transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.hiw-snap-dot.active { background: var(--teal); transform: scale(1.4); }
.hiw-snap-dots.on-dark .hiw-snap-dot { background: rgba(255,255,255,0.3); }
.hiw-snap-dots.on-dark .hiw-snap-dot.active { background: var(--teal); }

@media (max-width: 768px) { .hiw-snap-dots { display: none; } }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hiw-step-layout { grid-template-columns: 1fr; gap: 36px; }
  .hiw-step-layout--reverse { direction: ltr; }
  .mock-card { max-width: 100%; }
  .hiw-download-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hiw-page-hero { padding: 100px 20px 64px; }
  .hiw-section { padding: 56px 0 40px; }
  .stats-mock-grid { grid-template-columns: 1fr 1fr; }
  .hiw-page-steps-nav { display: none; }
}
