/* How it works — hero (aligned with Safety / Get the app polish) */
.how-it-works .dp-hero-phone {
  display: none !important;
}

.how-it-works .dp-hero {
  height: auto;
  min-height: clamp(400px, 38vw, 480px);
  background: #faf8ef;
}

.how-it-works .dp-hero-photo {
  width: 66% !important;
  object-position: center 44%;
  box-shadow: none;
}

.how-it-works .dp-hero::after {
  background: linear-gradient(
    90deg,
    #faf8ef 0%,
    #faf8ef 30%,
    rgba(250, 248, 239, 0.97) 38%,
    rgba(250, 248, 239, 0.82) 46%,
    rgba(250, 248, 239, 0.35) 58%,
    transparent 72%
  );
}

.how-it-works .dp-hero .dp-wrap {
  width: calc(100% - 64px);
  max-width: 1350px;
  margin-inline: auto;
  padding: 35px 20px;
}

.how-it-works .dp-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b736b;
}

.how-it-works .dp-hero-eyebrow span {
  flex-shrink: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: #c5f45d;
}

.how-it-works .dp-hero h1 {
  font-size: clamp(42px, 5.8vw, 65px);
  max-width: 760px;
  line-height: 1.02;
  color: #084c3c;
}

.how-it-works .dp-hero h1,
.how-it-works .dp-hero h1 * {
  letter-spacing: -0.05em;
}

.how-it-works .dp-hero h1 em {
  color: #fa715b;
}

.how-it-works .dp-hero .dp-hero-lead,
.how-it-works .dp-hero .dp-wrap > p:not(.dp-breadcrumb):not(.dp-hero-eyebrow) {
  margin-top: 16px;
  max-width: 26rem;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.45;
  font-weight: 500;
  color: #3f5e55;
}

.how-it-works .dp-hero .dp-actions {
  margin-top: clamp(22px, 3vw, 28px);
  gap: 14px;
  flex-wrap: wrap;
}

.how-it-works .dp-hero .dp-btn.lime {
  box-shadow: 0 10px 24px rgba(197, 244, 93, 0.35);
}

.how-it-works .dp-hero .dp-btn.outline {
  background: rgba(251, 249, 241, 0.92);
  border-color: rgba(8, 76, 60, 0.22);
  box-shadow: 0 4px 14px rgba(8, 76, 60, 0.06);
}

/* Step 2 browser / app preview card */
.how-it-works .step-two .dp-browser-mock {
  margin: 12px 24px 24px 0;
  padding: 0;
  background: linear-gradient(165deg, #ffffff 0%, #faf8f2 100%);
  border: 1px solid rgba(8, 76, 60, 0.12);
  border-radius: 22px;
  box-shadow:
    0 4px 12px rgba(8, 76, 60, 0.06),
    0 24px 48px -16px rgba(8, 76, 60, 0.22);
  overflow: hidden;
  align-self: center;
}

.how-it-works .step-two .dp-browser-mock::before {
  content: "";
  display: block;
  height: 36px;
  background: linear-gradient(180deg, #eef2e8, #e8ede3);
  border-bottom: 1px solid rgba(8, 76, 60, 0.08);
  background-image: radial-gradient(circle at 18px 50%, #fa715b 4px, transparent 4px),
    radial-gradient(circle at 32px 50%, #f7d99a 4px, transparent 4px),
    radial-gradient(circle at 46px 50%, #93ba60 4px, transparent 4px);
  background-repeat: no-repeat;
  background-size: auto;
}

.how-it-works .step-two .dp-browser-mock > .dp-pills {
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 16px 18px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(8, 76, 60, 0.06);
}

.how-it-works .step-two .dp-browser-mock > .dp-pills span {
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f0f2eb;
  color: #3f5e55;
}

.how-it-works .step-two .dp-browser-mock > .dp-pills .selected {
  background: var(--dp-green, #084c3c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(8, 76, 60, 0.2);
}

.how-it-works .step-two .dp-browser-mock .dp-phone {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 14px 18px 20px;
  background: transparent;
  border: 0;
  box-shadow: none !important;
  border-radius: 0;
}

.how-it-works .step-two .dp-browser-mock .dp-phone h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #084c3c;
  margin: 0 0 12px;
}

.how-it-works .step-two .dp-browser-mock .dp-phone > .dp-pills {
  margin-bottom: 14px;
}

.how-it-works .step-two .dp-browser-mock .dp-mini-event {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-top: 10px;
  background: #fff;
  border: 1px solid rgba(8, 76, 60, 0.08);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(8, 76, 60, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-it-works .step-two .dp-browser-mock .dp-mini-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(8, 76, 60, 0.1);
}

.how-it-works .step-two .dp-browser-mock .dp-mini-event img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.how-it-works .step-two .dp-browser-mock .dp-mini-event b {
  font-size: 14px;
  color: #084c3c;
  display: block;
  margin-bottom: 4px;
}

.how-it-works .step-two .dp-browser-mock .dp-mini-event p {
  font-size: 12px;
  color: #5b736b;
  margin: 0;
}

.how-it-works .step-two .dp-browser-mock .dp-mini-event small {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #68924b;
}

.how-it-works .step-two > .dp-wrap {
  align-items: center;
}

@media (max-width: 760px) {
  .how-it-works .step-two .dp-browser-mock {
    margin: 0 0 20px;
    max-width: 100%;
  }

  .how-it-works .step-two .dp-browser-mock .dp-mini-event img {
    width: 64px;
    height: 64px;
  }
}

/* ---- Steps 3–5: spacing, no overlap ---- */
.how-it-works .dp-step {
  overflow: visible;
}

.how-it-works .dp-step > .dp-wrap {
  min-height: 0 !important;
  row-gap: clamp(22px, 3vw, 36px);
  padding-block: clamp(36px, 5vw, 56px);
  align-items: center;
}

.how-it-works .dp-step-copy {
  padding-left: clamp(16px, 3vw, 40px) !important;
  padding-right: clamp(12px, 2vw, 24px);
}

.how-it-works .dp-step-number {
  color: #6f9a3a;
  font-weight: 800;
}

.how-it-works .dp-step-photo {
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(8, 76, 60, 0.14);
  max-height: 400px;
  width: 100%;
}

/* Step 03 — meetup preview */
.how-it-works .step-three {
  background: linear-gradient(180deg, #fbf9f1 0%, #f4f8ec 100%);
}

.how-it-works .step-three > .dp-wrap {
  grid-template-columns: minmax(240px, 30%) minmax(280px, 34%) minmax(240px, 32%);
  align-items: start;
}

.how-it-works .step-three .dp-event-preview {
  transform: none !important;
  margin: 0 !important;
  align-self: stretch;
  height: auto;
}

.how-it-works .step-three .dp-event-preview:hover {
  transform: translateY(-4px) !important;
}

.how-it-works .step-three .dp-preview-top > img {
  border-radius: 16px;
}

/* Step 04 — preparation cards */
.how-it-works .step-four {
  background: #fffdf8;
  border-block: 1px solid rgba(8, 76, 60, 0.08);
}

.how-it-works .step-four > .dp-wrap {
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  align-items: start;
  max-width: 980px;
}

.how-it-works .step-four .dp-prep {
  gap: 14px;
  padding: 0;
  align-self: stretch;
}

.how-it-works .step-four .dp-prep .dp-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(8, 76, 60, 0.1);
  border-radius: 18px;
  padding: 18px 16px;
  height: auto;
  min-height: 0;
}

.how-it-works .step-four .dp-prep .dp-icon {
  margin: 0;
  color: #fa715b;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: #fdeee8;
}

.how-it-works .step-four .dp-prep h3 {
  font-size: 15px;
  color: #084c3c;
}

.how-it-works .step-four .dp-prep p {
  font-size: 13px;
  line-height: 1.45;
}

/* Step 05 — phone pair */
.how-it-works .step-five {
  background: radial-gradient(
    70% 80% at 75% 30%,
    rgba(197, 244, 93, 0.18),
    transparent 65%
  );
}

.how-it-works .step-five > .dp-wrap {
  grid-template-columns: minmax(240px, 32%) minmax(280px, 1fr) minmax(240px, 30%);
  align-items: center;
}

.how-it-works .step-five .dp-phone-pair {
  overflow: visible;
  max-width: 100%;
  padding: 12px 8px;
  justify-content: center;
  align-items: flex-end;
}

.how-it-works .step-five .dp-phone-pair .dp-phone {
  width: min(220px, 46%);
  max-width: 220px;
  height: auto;
  min-height: 300px;
  max-height: 360px;
  flex-shrink: 1;
  box-shadow: 0 22px 48px rgba(8, 76, 60, 0.22) !important;
}

.how-it-works .step-five .dp-phone-pair .dp-phone:first-child {
  transform: rotate(-4deg);
}

.how-it-works .step-five .dp-phone-pair .dp-phone:last-child {
  transform: rotate(4deg);
}

/* Host section — contained layout (no absolute photo bleed) */
.how-it-works .dp-host {
  width: calc(100% - 64px);
  max-width: 1350px;
  margin: clamp(40px, 6vw, 64px) auto;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(128deg, #064a38 0%, #0a6247 50%, #073f33 100%);
  box-shadow: 0 28px 64px -24px rgba(8, 76, 60, 0.45);
}

.how-it-works .dp-host > .dp-wrap {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 42%);
  grid-template-rows: auto auto;
  gap: clamp(20px, 3vw, 32px);
  min-height: 0 !important;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
  position: relative;
  isolation: isolate;
}

.how-it-works .dp-host .dp-title h2 {
  color: #fff;
  font-size: clamp(26px, 3.2vw, 34px);
}

.how-it-works .dp-host .dp-title p {
  color: #cfe3d6;
  max-width: 26rem;
}

.how-it-works .dp-host .dp-btn.lime {
  margin-top: 18px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.how-it-works .dp-host-photo {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: min(320px, 42vw) !important;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  mask-image: none !important;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.how-it-works .dp-host-steps {
  grid-column: 1 / -1;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.how-it-works .dp-host-steps > h3 {
  grid-column: 1 / -1;
  color: #c5f45d;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.how-it-works .dp-host-steps > div {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 16px 14px;
  color: #084c3c;
}

.how-it-works .dp-host-steps span {
  margin-bottom: 4px;
}

.how-it-works .dp-host-steps p {
  color: #3f5e55 !important;
  font-size: 12px;
  line-height: 1.4;
}

.how-it-works .dp-host-steps p b {
  color: #084c3c;
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 1024px) {
  .how-it-works .step-three > .dp-wrap,
  .how-it-works .step-four > .dp-wrap,
  .how-it-works .step-five > .dp-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .how-it-works .step-three .dp-step-copy,
  .how-it-works .step-five .dp-step-copy {
    grid-column: 1 / -1;
  }

  .how-it-works .step-three .dp-event-preview {
    grid-column: 1 / -1;
  }

  .how-it-works .dp-host > .dp-wrap {
    grid-template-columns: 1fr;
  }

  .how-it-works .dp-host-photo {
    grid-column: 1;
    grid-row: auto;
    height: 240px !important;
  }

  .how-it-works .dp-host-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .how-it-works .dp-hero h1 {
    font-size: clamp(38px, 8vw, 53px);
  }
}

@media (max-width: 760px) {
  .how-it-works .dp-hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .how-it-works .dp-hero-photo {
    position: relative;
    width: 100% !important;
    height: clamp(200px, 42vw, 260px);
    order: -1;
    object-position: 50% 35%;
  }

  .how-it-works .dp-hero::after {
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(250, 248, 239, 0.15) 45%,
      #faf8ef 78%
    );
    inset: auto 0 0;
    height: 55%;
    top: auto;
  }

  .how-it-works .dp-hero .dp-wrap {
    width: calc(100% - 32px);
    padding: 19px 3px;
  }

  .how-it-works .dp-hero h1 {
    max-width: 450px;
  }

  .how-it-works .dp-hero .dp-hero-lead,
  .how-it-works .dp-hero .dp-wrap > p:not(.dp-breadcrumb):not(.dp-hero-eyebrow) {
    max-width: none;
    font-size: 16px;
  }

  .how-it-works .dp-step > .dp-wrap {
    grid-template-columns: 1fr !important;
    padding-block: 32px;
  }

  .how-it-works .dp-step-copy {
    padding-left: 21px !important;
  }

  .how-it-works .step-five .dp-phone-pair .dp-phone {
    transform: none !important;
    width: min(200px, 48%);
  }

  .how-it-works .dp-host {
    width: calc(100% - 32px);
    border-radius: 20px;
  }

  .how-it-works .dp-host-steps {
    grid-template-columns: 1fr;
  }
}
