/* How it works — extends Home tokens and chrome. */

.dhw-how {
  --dhw-reversed: #b6b6b0;
  --dhw-rule-dark: rgba(255, 255, 255, .2);
  --dhw-label-gap: 48px;
  --dhw-copy-gap: 40px;
  --dhw-visual-gap: 64px;
  --dhw-action-gap: 28px;
  overflow-x: clip;
}

.dhw-how .dhw-label {
  color: var(--dh-muted);
  letter-spacing: -.01em;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.dhw-how .dhw-label-rule {
  align-items: center;
  gap: 24px;
  display: flex;
}

.dhw-how .dhw-label-rule:after {
  content: "";
  background: var(--dhw-rule-dark);
  flex: 1;
  min-width: 24px;
  height: 1px;
}

.dhw-how .dhw-lead {
  color: var(--dh-muted);
  font-size: 18px;
  line-height: 1.45;
}

.dhw-how .dhw-section {
  padding: 100px 0;
}

.dhw-how .dhw-connected {
  padding-bottom: 50px;
}

.dhw-how .dhw-connected .dhw-heading {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.dhw-how .dhw-section h2,
.dhw-how .dhw-hero h1,
.dhw-how .dhw-supporting {
  letter-spacing: -.04em;
}

.dhw-how .dhw-section h2 {
  font-size: clamp(2.625rem, 2.009rem + 2.629vw, 4.375rem);
  line-height: .98;
}

.dhw-how .dhw-section h2.dhw-supporting,
.dhw-how #dhw-faq-title {
  font-family: Instrument Sans, Arial, sans-serif;
  font-size: clamp(2.25rem, 1.898rem + 1.502vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.dhw-how .dhw-heading {
  max-width: 820px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--dhw-label-gap);
  display: flex;
}

.dhw-how .dhw-heading-compact {
  gap: 32px;
}

.dhw-how .dhw-heading-compact .dhw-lead {
  max-width: 620px;
}

.dhw-how .dhw-grey {
  background: var(--dh-grey);
}

.dhw-how .dhw-dark {
  background: var(--dh-ink);
  color: #fff;
}

.dhw-how .dhw-dark .dhw-label,
.dhw-how .dhw-dark .dhw-lead,
.dhw-how .dhw-dark p {
  color: var(--dhw-reversed);
}

.dhw-how .dhw-dark :focus-visible,
.dhw-how .dh-trial :focus-visible {
  outline-color: var(--dh-mint);
}

.dhw-how .dhw-placeholder {
  overflow: hidden;
  background: var(--dh-grey);
  border-radius: 18px;
}

/* Hero */

.dhw-how .dhw-hero {
  padding: 100px 0 118px;
}

.dhw-how .dhw-hero-copy {
  max-width: 900px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--dhw-label-gap);
  display: flex;
}

.dhw-how .dhw-hero h1 {
  max-width: 900px;
  font-size: clamp(2.75rem, 1.65rem + 4.69vw, 5.875rem);
  line-height: .98;
}

.dhw-how .dhw-hero .dhw-lead {
  max-width: 620px;
  margin-top: calc(var(--dhw-copy-gap) - var(--dhw-label-gap));
}

.dhw-how .dhw-hero .dh-button {
  margin-top: calc(var(--dhw-action-gap) - var(--dhw-label-gap));
}

/* Journey cards */

.dhw-how .dhw-journey h2 {
  max-width: 720px;
  margin-top: var(--dhw-label-gap);
}

.dhw-how .dhw-journey-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: var(--dhw-visual-gap);
  display: grid;
}

.dhw-how .dhw-journey-card {
  min-height: 258px;
  border: 1px solid var(--dhw-rule-dark);
  border-radius: 18px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  display: flex;
}

.dhw-how .dhw-journey-icon {
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  display: inline-flex;
}

.dhw-how .dhw-journey-icon svg,
.dhw-how .dhw-record-kicker svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5px;
  display: block;
}

.dhw-how .dhw-card-number {
  color: var(--dhw-reversed);
  letter-spacing: 0;
  margin-top: 30px;
  font-size: 12px;
  line-height: 1.5;
}

.dhw-how .dhw-journey-card h3 {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.1;
}

.dhw-how .dhw-journey-card p {
  margin-top: auto;
  padding-top: 28px;
  font-size: 14px;
  line-height: 1.45;
}

/* Recording rows */

.dhw-how .dhw-recording-list {
  border-top: 1px solid var(--dh-line);
  margin-top: var(--dhw-visual-gap);
}

.dhw-how .dhw-record-row {
  border-bottom: 1px solid var(--dh-line);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--dh-grid-gap);
  padding: 72px 0;
  display: grid;
}

.dhw-how .dhw-record-copy {
  grid-column: 1 / 6;
  flex-direction: column;
  align-items: flex-start;
  display: flex;
}

.dhw-how .dhw-record-kicker {
  color: var(--dh-ink);
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
}

.dhw-how .dhw-record-kicker svg {
  width: 20px;
  height: 20px;
}

.dhw-how .dhw-record-copy h3 {
  max-width: 420px;
  letter-spacing: -.04em;
  margin-top: 40px;
  font-size: clamp(2rem, 1.736rem + 1.127vw, 2.75rem);
  line-height: 1.03;
}

.dhw-how .dhw-record-copy > p:last-child {
  max-width: 440px;
  color: var(--dh-muted);
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.5;
}

.dhw-how .dhw-record-row .dhw-placeholder {
  grid-column: 7 / 13;
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* Attribution dashboard */

.dhw-how .dhw-dashboard-image {
  width: 100%;
  margin: calc(var(--dhw-visual-gap) * .7) 0 0;
}

.dhw-how .dhw-dashboard-image img {
  width: 100%;
  height: auto;
  display: block;
}

.dhw-how .dhw-dashboard {
  background: var(--dh-paper);
  border: 1px solid var(--dh-line);
  border-radius: 20px;
  margin-top: var(--dhw-visual-gap);
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 22px 60px rgba(10, 10, 10, .06);
}

.dhw-how .dhw-dashboard-top {
  border-bottom: 1px solid var(--dh-line);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  display: flex;
}

.dhw-how .dhw-dashboard-top > div {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.dhw-how .dhw-dashboard-top strong {
  font-size: 20px;
  line-height: 1.2;
}

.dhw-how .dhw-eyebrow {
  color: var(--dh-muted);
  font-size: 12px;
  line-height: 1.4;
}

.dhw-how .dhw-date-pill {
  color: var(--dh-muted);
  border: 1px solid var(--dh-line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
}

.dhw-how .dhw-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}

.dhw-how .dhw-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
  font-size: 14px;
}

.dhw-how .dhw-table th,
.dhw-how .dhw-table td {
  border-bottom: 1px solid var(--dh-line);
  text-align: right;
  padding: 16px 20px;
}

.dhw-how .dhw-table th {
  color: var(--dh-muted);
  font-size: 12px;
  font-weight: 500;
}

.dhw-how .dhw-table th:first-child,
.dhw-how .dhw-table td:first-child {
  width: 35%;
  text-align: left;
}

.dhw-how .dhw-table td:first-child {
  align-items: center;
  gap: 12px;
  display: flex;
}

.dhw-how .dhw-table td:first-child > span:last-child {
  flex-direction: column;
  display: flex;
  white-space: nowrap;
}

.dhw-how .dhw-table td strong {
  font-size: 14px;
  font-weight: 500;
}

.dhw-how .dhw-table td small {
  color: var(--dh-muted);
  font-size: 12px;
}

.dhw-how .dhw-source-mark {
  border-radius: 9px;
  flex: none;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.dhw-how .dhw-source-google {
  background: #edf1ff;
  color: #3459ed;
}

.dhw-how .dhw-source-meta {
  background: #eef7ff;
  color: #1877f2;
}

.dhw-how .dhw-source-email {
  background: #fff0ea;
  color: #df6334;
}

.dhw-how .dhw-source-review {
  background: var(--dh-grey);
  color: var(--dh-muted);
}

.dhw-how .dhw-status {
  min-width: 36px;
  border-radius: 999px;
  justify-content: center;
  padding: 3px 7px;
  font-size: 12px;
  display: inline-flex;
}

.dhw-how .dhw-status-hot {
  background: rgba(246, 90, 76, .1);
  color: #bd392d;
}

.dhw-how .dhw-status-acquired {
  background: rgba(43, 185, 136, .11);
  color: #177f5c;
}

.dhw-how .dhw-dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
}

.dhw-how .dhw-dashboard-stats > div {
  min-height: 132px;
  border-right: 1px solid var(--dh-line);
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px;
  display: flex;
  position: relative;
}

.dhw-how .dhw-dashboard-stats > div:last-child {
  border-right: 0;
}

.dhw-how .dhw-dashboard-stats small {
  color: var(--dh-muted);
  font-size: 12px;
}

.dhw-how .dhw-dashboard-stats strong {
  letter-spacing: -.04em;
  font-size: 24px;
  line-height: 1.1;
}

.dhw-how .dhw-metric-dot {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 24px;
  left: 24px;
}

.dhw-how .dhw-dot-cold { background: var(--dh-cold); }
.dhw-how .dhw-dot-ink { background: var(--dh-ink); }
.dhw-how .dhw-dot-hot { background: var(--dh-hot); }
.dhw-how .dhw-dot-acquired { background: var(--dh-acquired); }

/* Across tools / cleaner traffic */

.dhw-how .dhw-integration-list {
  flex-direction: column;
  gap: 112px;
  display: flex;
}

.dhw-how .dhw-integration-row {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--dh-grid-gap);
  display: grid;
}

.dhw-how .dhw-integration-row .dhw-placeholder {
  grid-column: 1 / 7;
}

.dhw-how .dhw-integration-copy {
  grid-column: 8 / 13;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  display: flex;
}

.dhw-how .dhw-integration-copy > p:last-child {
  max-width: 470px;
  color: var(--dh-muted);
  font-size: 16px;
  line-height: 1.5;
}

.dhw-how .dhw-placeholder-wide,
.dhw-how .dhw-placeholder-small {
  aspect-ratio: 4 / 3;
}

.dhw-how .dhw-placeholder.dhw-cleaner-media {
  margin: 0;
  aspect-ratio: auto;
  background: transparent;
}

.dhw-how .dhw-cleaner-media img {
  width: 100%;
  height: auto;
  display: block;
}

.dhw-how .dhw-integration-reverse .dhw-integration-copy {
  grid-column: 1 / 6;
}

.dhw-how .dhw-integration-reverse .dhw-placeholder {
  grid-column: 7 / 13;
}

/* Setup timeline */

.dhw-how .dhw-setup-layout {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--dh-grid-gap);
  display: grid;
}

.dhw-how .dhw-setup-heading {
  grid-column: 1 / 6;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--dhw-label-gap);
  display: flex;
  position: sticky;
  top: calc(var(--dh-header-height) + 40px);
}

.dhw-how .dhw-setup-heading .dhw-lead {
  max-width: 440px;
  margin-top: calc(var(--dhw-copy-gap) - var(--dhw-label-gap));
}

.dhw-how .dhw-setup-list {
  grid-column: 7 / 13;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dhw-how .dhw-setup-list li {
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 0 0 56px;
  display: grid;
  position: relative;
}

.dhw-how .dhw-setup-list li:after {
  content: "";
  background: var(--dhw-rule-dark);
  width: 1px;
  position: absolute;
  top: 56px;
  bottom: 12px;
  left: 21px;
  transform-origin: top;
  transform: scaleY(0);
}

.dhw-how .dhw-setup.is-in .dhw-setup-list li:after {
  animation: dh-connector 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dhw-how .dhw-setup.is-in .dhw-setup-list li:nth-child(2):after { animation-delay: 80ms; }
.dhw-how .dhw-setup.is-in .dhw-setup-list li:nth-child(3):after { animation-delay: 160ms; }
.dhw-how .dhw-setup.is-in .dhw-setup-list li:nth-child(4):after { animation-delay: 240ms; }

.dhw-how .dhw-setup-list li:last-child {
  padding-bottom: 0;
}

.dhw-how .dhw-setup-list li:last-child:after {
  display: none;
}

.dhw-how .dhw-setup-list li > span {
  color: #fff;
  letter-spacing: 0;
  border: 2px solid var(--dhw-rule-dark);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  display: inline-flex;
}

.dhw-how .dhw-setup-list h3 {
  color: #fff;
}

.dhw-how .dhw-setup-list p {
  max-width: 460px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}

/* Testimonial */

.dhw-how .dhw-testimonial-card {
  background: var(--dh-grey);
  text-align: center;
  border-radius: 18px;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px;
  display: flex;
}

.dhw-how .dhw-petsy {
  color: #7538eb;
  letter-spacing: -.04em;
  font-size: 20px;
  font-weight: 700;
}

.dhw-how .dhw-testimonial blockquote {
  max-width: 760px;
  color: var(--dh-ink);
  letter-spacing: -.04em;
  margin-top: 42px;
  font-size: clamp(1.75rem, 1.486rem + 1.127vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
}

.dhw-how .dhw-testimonial figcaption {
  color: var(--dh-muted);
  flex-direction: column;
  margin-top: 36px;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
}

.dhw-how .dhw-testimonial figcaption strong {
  color: var(--dh-ink);
  font-size: 14px;
}

/* FAQ */

.dhw-how .dhw-faq-layout {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--dh-grid-gap);
  display: grid;
}

.dhw-how .dhw-faq-heading {
  grid-column: 1 / 6;
  flex-direction: column;
  gap: var(--dhw-label-gap);
  display: flex;
}

.dhw-how .dh-faq-list {
  grid-column: 7 / 13;
}

.dhw-how .dh-faq-trigger {
  min-height: 72px;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.dhw-how .dhw-faq-plus {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
  position: relative;
}

.dhw-how .dhw-faq-plus:before,
.dhw-how .dhw-faq-plus:after {
  content: "";
  background: currentColor;
  width: 14px;
  height: 1px;
  transition: transform .18s ease;
  position: absolute;
  top: 7px;
  left: 1px;
}

.dhw-how .dhw-faq-plus:after {
  transform: rotate(90deg);
}

.dhw-how .dh-faq-trigger[data-state="open"] .dhw-faq-plus:after {
  transform: rotate(0deg);
}

.dhw-how .dh-faq-answer {
  max-width: 600px;
  padding: 0 48px 28px 0;
  font-size: 15px;
  line-height: 1.55;
}

/* Final CTA */

.dhw-how .dhw-final-wrap {
  background: var(--dh-paper);
  padding: 0 0 72px;
}

.dhw-how .dh-trial > small {
  color: var(--dhw-reversed);
  letter-spacing: 0;
  margin-top: 32px;
  font-size: 12px;
  line-height: 1.5;
}

.dhw-how .dh-trial p {
  margin-top: 40px;
}

.dhw-how .dh-footer nav a[aria-current="page"] {
  color: var(--dh-ink);
}

@media (width <= 1080px) {
  .dhw-how .dhw-journey-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dhw-how .dhw-journey-card {
    min-height: 240px;
  }
}

@media (width <= 1024px) {
  .dhw-how {
    --dhw-label-gap: 40px;
    --dhw-copy-gap: 32px;
    --dhw-visual-gap: 48px;
    --dhw-action-gap: 24px;
  }

  .dhw-how .dhw-hero {
    padding: 88px 0 104px;
  }

  .dhw-how .dhw-section {
    padding: 80px 0;
  }

  .dhw-how .dhw-connected {
    padding-bottom: 40px;
  }

  .dhw-how .dhw-record-row {
    padding: 56px 0;
  }

  .dhw-how .dhw-integration-list {
    gap: 88px;
  }

  .dhw-how .dhw-final-wrap {
    padding-bottom: 56px;
  }
}

@media (width <= 920px) {
  .dhw-how .dhw-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dhw-how .dhw-dashboard-stats > div:nth-child(2) {
    border-right: 0;
  }

  .dhw-how .dhw-dashboard-stats > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--dh-line);
  }
}

@media (width <= 760px) {
  .dhw-how {
    --dhw-label-gap: 32px;
    --dhw-copy-gap: 24px;
    --dhw-visual-gap: 40px;
  }

  .dhw-how .dhw-hero {
    padding: 72px 0 88px;
  }

  .dhw-how .dhw-section {
    padding: 72px 0;
  }

  .dhw-how .dhw-connected {
    padding-bottom: 36px;
  }

  .dhw-how .dhw-lead {
    font-size: 17px;
  }

  .dhw-how .dhw-journey-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dhw-how .dhw-journey-card {
    min-height: 220px;
  }

  .dhw-how .dhw-record-row {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0;
  }

  .dhw-how .dhw-record-copy,
  .dhw-how .dhw-record-row .dhw-placeholder {
    grid-column: auto;
  }

  .dhw-how .dhw-record-copy h3 {
    margin-top: 32px;
  }

  .dhw-how .dhw-dashboard-top {
    padding: 22px 20px;
  }

  .dhw-how .dhw-dashboard-stats > div {
    min-height: 120px;
    padding: 20px;
  }

  .dhw-how .dhw-metric-dot {
    top: 20px;
    left: 20px;
  }

  .dhw-how .dhw-integration-list {
    gap: 72px;
  }

  .dhw-how .dhw-integration-row,
  .dhw-how .dhw-integration-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dhw-how .dhw-integration-row .dhw-placeholder,
  .dhw-how .dhw-integration-reverse .dhw-placeholder,
  .dhw-how .dhw-integration-copy,
  .dhw-how .dhw-integration-reverse .dhw-integration-copy {
    grid-column: auto;
  }

  .dhw-how .dhw-integration-reverse .dhw-integration-copy {
    order: 1;
  }

  .dhw-how .dhw-integration-reverse .dhw-placeholder {
    order: 2;
  }

  .dhw-how .dhw-setup-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .dhw-how .dhw-setup-heading,
  .dhw-how .dhw-setup-list {
    grid-column: auto;
  }

  .dhw-how .dhw-setup-heading {
    position: static;
  }

  .dhw-how .dhw-setup-list li {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding-bottom: 44px;
  }

  .dhw-how .dhw-testimonial-card {
    min-height: 390px;
    padding: 48px 24px;
  }

  .dhw-how .dhw-testimonial blockquote {
    margin-top: 32px;
  }

  .dhw-how .dhw-faq-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .dhw-how .dhw-faq-heading,
  .dhw-how .dh-faq-list {
    grid-column: auto;
  }

  .dhw-how .dhw-desktop-break {
    display: none;
  }

  .dhw-how .dhw-final-wrap {
    padding-bottom: 48px;
  }

  .dhw-how .dh-trial > small {
    margin-top: 24px;
  }
}

@media (width <= 460px) {
  .dhw-how .dhw-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dhw-how .dhw-dashboard-stats > div,
  .dhw-how .dhw-dashboard-stats > div:nth-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--dh-line);
  }

  .dhw-how .dhw-dashboard-stats > div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dhw-how .dhw-setup-list li:after {
    transform: none !important;
    animation: none !important;
  }
}
