/* ============ how-it-works components ============
   Shared by /how-it-works, /how-it-works-greenhouse, /how-it-works-ashby.
   Builds on the p2 design system (p2.css must be loaded first). */

.hiw-hero-lockup {
  margin-top: 30px;
  max-width: 294px;
  width: 100%;
  height: auto;
}

/* ============ video ============ */
.hiw-video-link {
  position: relative;
  display: block;
  max-width: 880px;
  margin: 36px auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--p2-shadow);
  line-height: 0;
}

.hiw-video-link img.hiw-video-thumb {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.hiw-video-link:hover img.hiw-video-thumb {
  transform: scale(1.02);
}

/* Native video player in the same rounded frame as .hiw-video-link */
.hiw-native-video {
  max-width: 880px;
  margin: 36px auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--p2-shadow);
  line-height: 0;
}

.hiw-native-video video {
  width: 100%;
  display: block;
}

.hiw-play-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(34, 60, 49, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.hiw-video-link:hover .hiw-play-wrap {
  background: var(--p2-green);
  transform: translate(-50%, -50%) scale(1.06);
}

.hiw-play-wrap img {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

/* ============ light layered hero (/how-anna-works) ============ */
.hiw-lhero {
  background: linear-gradient(180deg, var(--p2-mist) 0%, #fff 100%);
  padding-bottom: 40px;
}

.hiw-lhero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 72px;
  align-items: center;
}

.hiw-lhero-h1 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--p2-forest);
  margin: 0 0 20px;
}

.hiw-lhero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--p2-ink);
  margin-bottom: 24px;
}

.hiw-lhero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hiw-lhero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--p2-ink);
}

.hiw-lhero-points .p2-tick {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(61, 130, 112, 0.14);
  color: var(--p2-green);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-lhero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* inverted gradient variant so sibling pages don't look identical */
.hiw-lhero--flip {
  background: linear-gradient(180deg, #fff 0%, var(--p2-mist) 100%);
}

.hiw-lhero .p2-form-card {
  border: 1px solid var(--p2-line);
  border-top: 4px solid var(--p2-lime);
  box-shadow: 0 18px 48px rgba(15, 38, 30, 0.14);
}

.hiw-lhero-media {
  position: relative;
}

.hiw-lhero-media .hiw-video-link {
  margin: 0;
  border: 1px solid var(--p2-line);
  box-shadow: 0 18px 48px rgba(15, 38, 30, 0.18);
  z-index: 1;
}

/* The Anna thumbnail artwork has centered text, so park the play button
   in the corner instead of the default centered position. */
.hiw-lhero-media .hiw-play-wrap {
  top: auto;
  left: auto;
  bottom: 20px;
  right: 20px;
  transform: none;
  width: 68px;
  height: 68px;
}

.hiw-lhero-media .hiw-video-link:hover .hiw-play-wrap {
  transform: scale(1.08);
}

.hiw-lhero-mark {
  position: absolute;
  bottom: -26px;
  left: -46px;
  width: 92px;
  height: auto;
  z-index: 0;
}

.hiw-lhero-caption {
  font-size: 13.5px;
  color: #6b7265;
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .hiw-lhero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hiw-lhero-h1 {
    font-size: 38px;
  }

  .hiw-lhero-media {
    max-width: 640px;
  }

  .hiw-lhero-mark {
    left: -16px;
  }
}

@media (max-width: 640px) {
  .hiw-lhero-h1 {
    font-size: 31px;
  }

  .hiw-lhero-mark {
    display: none;
  }
}

/* ============ steps ============ */
.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 56px;
}

.hiw-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hiw-step-num {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--p2-green);
  margin-bottom: 12px;
}

.hiw-step h3 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--p2-olive);
  margin: 0 0 16px;
}

.hiw-step p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--p2-ink);
  margin: 0 0 20px;
}

.hiw-step-callout {
  border-left: 3px solid var(--p2-lime);
  background: var(--p2-mist);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--p2-forest);
  font-weight: 500;
}

.hiw-shot {
  background: linear-gradient(160deg, var(--p2-mist) 0%, #e2efe9 100%);
  border-radius: 20px;
  padding: 28px;
}

.hiw-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(15, 38, 30, 0.16);
}

.hiw-shot-caption {
  font-size: 13px;
  color: #6b7265;
  text-align: center;
  margin-top: 12px;
}

/* ============ inline demo video player ============ */
.hiw-demo-player {
  position: relative;
  line-height: 0;
}

.hiw-demo-player video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(15, 38, 30, 0.16);
  cursor: zoom-in;
}

/* demo player expanded into the lightbox overlay */
.hiw-lightbox .hiw-demo-player {
  max-width: 100%;
}

.hiw-lightbox .hiw-demo-player video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 92vh;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

.hiw-demo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(34, 60, 49, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hiw-demo-player.is-paused .hiw-demo-play {
  opacity: 1;
}

.hiw-demo-play img {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

@media (max-width: 640px) {
  .hiw-demo-play {
    width: 64px;
    height: 64px;
  }

  .hiw-demo-play img {
    width: 22px;
    height: 22px;
  }
}

/* ============ composite screenshot (popover over base) ============ */
.hiw-composite {
  position: relative;
}

.hiw-composite::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 38, 30, 0.22);
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
}

.hiw-composite img.hiw-composite-popover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(15, 38, 30, 0.5);
  z-index: 2;
}

/* ============ click-to-enlarge lightbox ============ */
.hiw-shot img.hiw-zoomable {
  cursor: zoom-in;
}

.hiw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 38, 30, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hiw-lightbox.is-open {
  opacity: 1;
}

.hiw-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.hiw-step--flip > .hiw-step-media {
  order: -1;
}

/* ============ feature tour full-width video ============ */
.hiw-tour-video {
  max-width: 880px;
  width: 100%;
  margin: -24px auto 0;
}

/* ============ feature tour chapter dividers ============ */
.hiw-tour-chapter {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: -24px;
}

.hiw-tour-chapter::before,
.hiw-tour-chapter::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--p2-line);
}

.hiw-tour-chapter span {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p2-green);
  text-align: center;
}

/* ============ integration strip ============ */
.hiw-integration {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hiw-integration h2 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--p2-olive);
  margin: 0 0 16px;
}

.hiw-integration p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--p2-ink);
  margin: 0;
}

.hiw-integration-logo {
  background: #fff;
  border-radius: var(--p2-radius);
  box-shadow: var(--p2-shadow);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-integration-logo img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

/* ============ advantages ============ */
.hiw-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.hiw-adv-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.hiw-adv-card {
  background: #fff;
  border: 1px solid var(--p2-line);
  border-radius: var(--p2-radius);
  box-shadow: var(--p2-shadow);
  padding: 30px 26px;
}

.hiw-adv-card::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--p2-green);
  margin-bottom: 20px;
}

.hiw-adv-card h3 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--p2-olive);
  margin: 0 0 10px;
}

.hiw-adv-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--p2-ink);
  margin: 0;
}

/* ============ tools logo wall ============ */
.hiw-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.hiw-tool {
  background: #fff;
  border: 1px solid var(--p2-line);
  border-radius: var(--p2-radius);
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.hiw-tool:hover {
  border-color: var(--p2-green);
  box-shadow: var(--p2-shadow);
}

.hiw-tool img {
  max-width: 110px;
  max-height: 40px;
  width: auto;
  height: auto;
}

/* ============ band buttons ============ */
.hiw-band-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.p2-btn--outline-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.p2-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-1px);
}

/* ============ responsive ============ */
@media (max-width: 991px) {
  .hiw-step {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hiw-step--flip > .hiw-step-media {
    order: 0;
  }

  .hiw-integration {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hiw-adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hiw-adv-grid--3 {
    grid-template-columns: 1fr;
  }

  .hiw-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hiw-steps {
    gap: 52px;
    margin-top: 40px;
  }

  .hiw-step h3,
  .hiw-integration h2 {
    font-size: 26px;
  }

  .hiw-shot {
    padding: 16px;
  }

  .hiw-adv-grid {
    grid-template-columns: 1fr;
  }

  .hiw-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hiw-play-wrap {
    width: 64px;
    height: 64px;
  }

  .hiw-play-wrap img {
    width: 22px;
    height: 22px;
  }
}

/* ============ proof band, demo-video wrapper, section CTA block ============
   Shared by /ats and the /go/ats ad lander (moved here from lander.css so
   /ats can use them without the lander's global reset). */
.lp-proof {
  background: linear-gradient(135deg, #35604f 0%, var(--p2-forest) 70%);
  border-radius: 24px;
  padding: 48px 44px;
}

.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 38px;
}

.lp-stat {
  text-align: center;
}

.lp-stat-num {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--p2-lime);
  line-height: 1;
  margin-bottom: 10px;
}

.lp-stat-label {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  max-width: 220px;
  margin: 0 auto;
}

.lp-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lp-quote {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0;
}

.lp-quote p {
  font-family: 'PT Serif', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: #f3efe7;
  margin: 0 0 12px;
}

.lp-quote footer {
  font-size: 12.5px;
  color: #9db4a9;
}

.lp-proof-cta {
  text-align: center;
  margin-top: 36px;
}

.lp-video {
  max-width: 880px;
  margin: 40px auto 0;
}

.lp-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(15, 38, 30, 0.16);
}

/* /ats runs the demo video at full container width, matching the proof
   band above it; the /go/ats lander keeps the 880px default. */
.lp-video--wide {
  max-width: none;
}

.lp-cta-block {
  text-align: center;
  margin-top: 44px;
}

.lp-cta-block .lp-cta-note {
  font-size: 14px;
  color: #6b7265;
  margin-top: 14px;
}

.lp-cta-note a {
  color: var(--p2-green);
  font-weight: 600;
  text-decoration: none;
}

.lp-cta-note a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .lp-quotes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lp-proof {
    padding: 36px 22px;
    border-radius: 18px;
  }

  .lp-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lp-stat-num {
    font-size: 38px;
  }
}
