/**
 * Guide page styles (page-guide.php).
 * Module: guide-hero.
 */

/* Mobile-first: matches the 375px Figma frame (node 18995:12789) */
.fr-guide-hero {
  padding: 40px 0;
}

.fr-guide-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

.fr-guide-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.fr-guide-hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* Tagline pill */
.fr-guide-hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  max-width: 100%;
  padding: 2px 2px 2px 6px;
  background: var(--black-2);
  border-radius: 40px;
}

.fr-guide-hero__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36b933;
}

.fr-guide-hero__tagline-text {
  font-family: var(--open-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #f5f6fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fr-guide-hero__badge {
  flex-shrink: 0;
  display: block;
  width: 22px;
  height: 20px;
  object-fit: contain;
}

/* Heading */
.fr-guide-hero__heading {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 700;
  font-size: 32px;
  line-height: 42px;
  letter-spacing: 0;
  color: var(--black-2);
}

/* Description */
.fr-guide-hero__desc {
  margin: 0;
  max-width: 619px;
  font-family: var(--open-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #333436;
}

/* Button — extends .theme-btn */
.fr-guide-hero__btn {
  align-self: flex-start;
  gap: 8px;
  min-height: 48px;
}

/* Media */
.fr-guide-hero__media {
  width: 100%;
  aspect-ratio: 343 / 306;
  overflow: hidden;
  background: #d4cfcf;
}

.fr-guide-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Tablet and up */
@media (min-width: 768px) {
  .fr-guide-hero {
    padding: 64px 0;
  }

  .fr-guide-hero__content {
    gap: 32px;
  }

  .fr-guide-hero__tagline {
    gap: 8px;
    padding: 4px 4px 4px 12px;
  }

  .fr-guide-hero__tagline-text {
    font-size: 16px;
    line-height: 24px;
  }

  .fr-guide-hero__badge {
    width: 42px;
    height: 40px;
  }

  .fr-guide-hero__heading {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.01em;
  }

  .fr-guide-hero__desc {
    font-size: 16px;
    line-height: 24px;
    color: var(--black-1);
  }

  .fr-guide-hero__media {
    aspect-ratio: 553 / 431;
  }
}

/* Desktop: side-by-side */
@media (min-width: 992px) {
  .fr-guide-hero {
    padding: 80px 0;
  }

  /* Proportions come straight off the 1440 Figma frame (node 18982:5663),
     whose 1280px content row is 619 text / 108 gap / 553 media. Holding those
     ratios keeps the image from collapsing as the container narrows. */
  .fr-guide-hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 8.4375%; /* 108 / 1280 */
  }

  .fr-guide-hero__content {
    flex: 1 1 0;
    min-width: 0;
    gap: 40px;
  }

  .fr-guide-hero__text {
    gap: 12px;
  }

  /* 72px scaled to the narrower text column, so "Instant, Accurate," still
     sits on one line and the headline keeps its three-line wrap. */
  .fr-guide-hero__heading {
    font-size: 52px;
    line-height: 52px;
    letter-spacing: -1.04px;
  }

  .fr-guide-hero__media {
    flex: 0 0 43.2%; /* 553 / 1280 */
    width: 43.2%;
    max-width: 553px;
    height: auto;
    aspect-ratio: 553 / 431;
  }
}

/* Large desktop — the container is 1140px here, so the Figma pixel metrics
   (619 + 108 + 553 = 1280) still overflow. The ratios above hold; only the
   headline steps up to suit the wider text column. */
@media (min-width: 1200px) {
  .fr-guide-hero__heading {
    font-size: 62px;
    line-height: 62px;
    letter-spacing: -1.24px;
  }
}

/* Extra large: container is 1320px (1296px of content), so the Figma metrics
   finally fit — lock to them. */
@media (min-width: 1400px) {
  .fr-guide-hero__inner {
    gap: 108px;
  }

  .fr-guide-hero__content {
    flex: 0 0 619px;
    width: 619px;
  }

  .fr-guide-hero__heading {
    font-size: 72px;
    line-height: 72px;
    letter-spacing: -1.44px;
  }

  .fr-guide-hero__media {
    flex: 0 0 553px;
    width: 553px;
    height: 431px;
    aspect-ratio: auto;
  }
}

/* ==========================================================================
   Module: guide-process ("How It Works" stepper)
   ========================================================================== */

/* Mobile-first: matches the 375px Figma frame (node 18995:12807) */
.fr-guide-process {
  padding: 64px 0;
  background: #f5f6fc;
}

.fr-guide-process__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

/* Left column */
.fr-guide-process__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
  text-align: center;
}

.fr-guide-process__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fr-guide-process__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--open-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--black-2);
}

.fr-guide-process__eyebrow-icon {
  flex-shrink: 0;
  display: block;
  width: 16px;
  height: 16px;
  color: var(--black-2);
}

.fr-guide-process__title {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  color: var(--black-2);
}

.fr-guide-process__media {
  width: 100%;
  aspect-ratio: 343 / 194;
  overflow: hidden;
  border-radius: 4px;
}

.fr-guide-process__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Right panel */
.fr-guide-process__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 16px;
  background: var(--white);
}

.fr-guide-process__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.fr-guide-process__step {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
}

.fr-guide-process__step:last-child {
  padding-bottom: 0;
}

/* Connector rail (grey) + progress fill (orange) between markers */
.fr-guide-process__step:not(:last-child)::before,
.fr-guide-process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 18.5px;
  width: 3px;
}

.fr-guide-process__step:not(:last-child)::before {
  background: #cfd6dc;
}

.fr-guide-process__step:not(:last-child)::after {
  background: var(--theme-1);
  transform: scaleY(0);
  transform-origin: top center;
}

.fr-guide-process__step.is-done:not(:last-child)::after {
  transform: scaleY(1);
}

/* Marker — check + dot stacked in the same grid cell, one shown per state */
.fr-guide-process__marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #cfd6dc;
  box-sizing: border-box;
}

.fr-guide-process__marker > * {
  grid-area: 1 / 1;
}

.fr-guide-process__check {
  display: block;
  width: 24px;
  height: 24px;
}

.fr-guide-process__marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--theme-1);
}

/* Default: hide check + dot (states below reveal one) */
.fr-guide-process__check,
.fr-guide-process__marker-dot {
  opacity: 0;
  transform: scale(0);
}

/* Static resting states (no JS / reduced motion) driven by ACF "active step" */
.fr-guide-process__step.is-done .fr-guide-process__marker {
  background: var(--theme-1);
  border-color: transparent;
}

.fr-guide-process__step.is-done .fr-guide-process__check {
  opacity: 1;
  transform: scale(1);
}

.fr-guide-process__step.is-active .fr-guide-process__marker {
  border-color: #f4843d;
}

.fr-guide-process__step.is-active .fr-guide-process__marker-dot {
  opacity: 1;
  transform: scale(1);
}

/* Step text */
.fr-guide-process__step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 3px;
}

.fr-guide-process__step-title {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  color: var(--black-2);
}

.fr-guide-process__step-text {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--black-2);
}

.fr-guide-process__divider {
  display: block;
  width: 100%;
  height: 1px;
  background: #fcdcc8;
}

.fr-guide-process__btn {
  align-self: stretch;
  display: flex;
  width: 100%;
  gap: 8px;
  min-height: 48px;
}

/* --------------------------------------------------------------------------
   Scroll-synced stepper
   JS adds .is-scrollsync and, as the section scrolls through the viewport,
   toggles .is-complete on each step in order (plus .is-current on the first
   incomplete one). Scrolling back up reverses it. In this mode the static
   is-done / is-active states are ignored. No JS / reduced motion = the static
   resting states above are used instead.
   -------------------------------------------------------------------------- */

.fr-guide-process__steps.is-scrollsync .fr-guide-process__marker {
  transition: background 0.3s ease, border-color 0.3s ease;
}

.fr-guide-process__steps.is-scrollsync .fr-guide-process__check,
.fr-guide-process__steps.is-scrollsync .fr-guide-process__marker-dot {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.fr-guide-process__steps.is-scrollsync .fr-guide-process__step:not(:last-child)::after {
  transition: transform 0.4s ease;
}

/* Reset every marker to the "upcoming" look; classes below light them up */
.fr-guide-process__steps.is-scrollsync .fr-guide-process__step .fr-guide-process__marker {
  background: var(--white);
  border-color: #cfd6dc;
}

.fr-guide-process__steps.is-scrollsync .fr-guide-process__step .fr-guide-process__check,
.fr-guide-process__steps.is-scrollsync .fr-guide-process__step .fr-guide-process__marker-dot {
  opacity: 0;
  transform: scale(0);
}

.fr-guide-process__steps.is-scrollsync .fr-guide-process__step:not(:last-child)::after {
  transform: scaleY(0);
}

/* Current step — orange ring + dot */
.fr-guide-process__steps.is-scrollsync .fr-guide-process__step.is-current .fr-guide-process__marker {
  border-color: #f4843d;
}

.fr-guide-process__steps.is-scrollsync .fr-guide-process__step.is-current .fr-guide-process__marker-dot {
  opacity: 1;
  transform: scale(1);
}

/* Completed step — orange fill + check + filled connector above the next */
.fr-guide-process__steps.is-scrollsync .fr-guide-process__step.is-complete .fr-guide-process__marker {
  background: var(--theme-1);
  border-color: transparent;
}

.fr-guide-process__steps.is-scrollsync .fr-guide-process__step.is-complete .fr-guide-process__check {
  opacity: 1;
  transform: scale(1);
}

.fr-guide-process__steps.is-scrollsync .fr-guide-process__step.is-complete:not(:last-child)::after {
  transform: scaleY(1);
}

@media (min-width: 768px) {
  .fr-guide-process {
    padding: 88px 0;
  }

  .fr-guide-process__aside {
    align-items: flex-start;
    gap: 32px;
    text-align: left;
  }

  .fr-guide-process__head {
    align-items: flex-start;
    gap: 16px;
  }

  .fr-guide-process__eyebrow {
    gap: 8px;
    font-size: 20px;
    line-height: 30px;
  }

  .fr-guide-process__eyebrow-icon {
    width: 17px;
    height: 17px;
  }

  .fr-guide-process__title {
    font-size: 36px;
    line-height: 46px;
  }

  .fr-guide-process__media {
    aspect-ratio: 489 / 418;
  }

  .fr-guide-process__panel {
    padding: 32px;
  }

  .fr-guide-process__btn {
    align-self: flex-start;
    display: inline-flex;
    width: auto;
  }
}

@media (min-width: 992px) {
  .fr-guide-process__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .fr-guide-process__aside {
    flex: 0 0 42%;
    max-width: 489px;
    gap: 40px;
  }

  .fr-guide-process__title {
    font-size: 40px;
    line-height: 52px;
  }

  .fr-guide-process__panel {
    flex: 1 1 auto;
  }
}

@media (min-width: 1200px) {
  .fr-guide-process {
    padding: 120px 0;
  }

  .fr-guide-process__inner {
    gap: 48px;
  }

  .fr-guide-process__aside {
    flex: 0 0 489px;
    gap: 48px;
  }

  .fr-guide-process__title {
    font-size: 48px;
    line-height: 60px;
  }

  .fr-guide-process__panel {
    padding: 40px;
  }
}

/* ==========================================================================
   Module: guide-expect ("What to Expect" cards + follow-up bar)
   Mobile-first; desktop locks to the 1440 Figma frame (node 18982:5714).
   ========================================================================== */

.fr-guide-expect {
  padding: 64px 0;
  background: var(--white);
}

.fr-guide-expect__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.fr-guide-expect__heading {
  margin: 0;
  max-width: 714px;
  font-family: var(--open-sans);
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  text-align: center;
  color: var(--black-2);
}

.fr-guide-expect__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.fr-guide-expect__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fr-guide-expect__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  background: var(--black-1);
  color: var(--white);
}

.fr-guide-expect__card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.fr-guide-expect__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fr-guide-expect__card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px;
}

.fr-guide-expect__card-title {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: var(--white);
}

.fr-guide-expect__card-text {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 23px;
  color: var(--white);
}

/* Follow-up bar */
.fr-guide-expect__foot {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  padding: 12px;
  background: #feeee3;
  border: 1px solid #f8a874;
}

.fr-guide-expect__foot-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--theme-1);
  color: #fef8f4;
}

.fr-guide-expect__foot-icon svg,
.fr-guide-expect__foot-icon img {
  display: block;
  width: 36px;
  height: 36px;
}

.fr-guide-expect__foot-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 0 0;
  min-width: 0;
}

.fr-guide-expect__foot-title {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--black-2);
}

.fr-guide-expect__foot-text,
.fr-guide-expect__foot-title {
  word-break: break-word;
}

.fr-guide-expect__foot-rule {
  display: none;
  flex-shrink: 0;
  width: 2px;
  height: 56px;
  background: #fcdcc8;
}

.fr-guide-expect__foot-text {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--black-2);
}

@media (min-width: 768px) {
  .fr-guide-expect {
    padding: 88px 0;
  }

  .fr-guide-expect__heading {
    font-size: 36px;
    line-height: 46px;
  }

  /* Two across — three in a 696px container leaves ~218px per card, which
     breaks the titles onto three lines. */
  .fr-guide-expect__cards {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .fr-guide-expect__card {
    flex: 0 1 calc(50% - 10px);
    min-width: 0;
  }

  .fr-guide-expect__card-media {
    height: 240px;
  }

  .fr-guide-expect__card-title {
    min-height: 64px;
    font-size: 24px;
    line-height: 32px;
  }

  .fr-guide-expect__card-text {
    font-size: 16px;
    line-height: 24px;
  }

  .fr-guide-expect__foot {
    align-items: center;
  }

  .fr-guide-expect__foot-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
  }

  .fr-guide-expect__foot-title {
    flex: 0 0 auto;
    max-width: 45%;
    font-size: 28px;
    line-height: 36px;
  }

  .fr-guide-expect__foot-rule {
    display: block;
  }

  .fr-guide-expect__foot-text {
    flex: 0 1 675px;
    max-width: 675px;
    font-size: 18px;
    line-height: 28px;
  }
}

/* Three across once the container is wide enough to give each card room */
@media (min-width: 992px) {
  .fr-guide-expect__cards {
    flex-wrap: nowrap;
  }

  .fr-guide-expect__card {
    flex: 1 1 0;
  }

  .fr-guide-expect__card-media {
    height: 280px;
  }
}

@media (min-width: 1200px) {
  .fr-guide-expect {
    padding: 120px 0;
  }

  .fr-guide-expect__inner {
    gap: 48px;
  }

  .fr-guide-expect__heading {
    font-size: 48px;
    line-height: 60px;
  }

  .fr-guide-expect__card-title {
    min-height: 72px;
    font-size: 28px;
    line-height: 36px;
  }

  .fr-guide-expect__foot-title {
    flex: 0 0 300px;
    max-width: 300px;
  }
}

/* Follow-up bar locked to Figma metrics (node 18982:5737, 1440 frame) */
@media (min-width: 1400px) {
  .fr-guide-expect__foot-title {
    flex: 0 0 312px;
    width: 312px;
    max-width: 312px;
  }

  .fr-guide-expect__foot-text {
    flex: 0 0 675px;
    width: 675px;
    max-width: 675px;
  }
}

/* ==========================================================================
   Module: guide-why ("Why use the tool" — feature cards + CTA)
   Mobile-first; desktop locks to the 1440 Figma frame (node 18982:5746).
   ========================================================================== */

.fr-guide-why {
  padding: 64px 0;
  background: #f5f6fc;
}

.fr-guide-why__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.fr-guide-why__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.fr-guide-why__heading {
  margin: 0;
  max-width: 714px;
  font-family: var(--open-sans);
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  text-align: center;
  color: var(--black-2);
}

.fr-guide-why__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.fr-guide-why__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: var(--white);
}

.fr-guide-why__card-icon {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.fr-guide-why__card-icon img,
.fr-guide-why__card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Pasted inline SVG: inherit the brand orange unless the markup sets its own */
.fr-guide-why__card-icon--svg {
  color: var(--theme-1);
}

.fr-guide-why__card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fr-guide-why__card-title {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: var(--black-2);
}

.fr-guide-why__card-text {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 23px;
  color: #333436;
}

/* CTA */
.fr-guide-why__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 462px;
}

.fr-guide-why__btn {
  display: flex;
  width: 390px;
  max-width: 100%;
  gap: 8px;
  min-height: 48px;
}

.fr-guide-why__cta-note {
  margin: 0;
  font-family: var(--open-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #333436;
}

@media (min-width: 768px) {
  .fr-guide-why {
    padding: 88px 0;
  }

  .fr-guide-why__heading {
    font-size: 36px;
    line-height: 46px;
  }

  .fr-guide-why__cards {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .fr-guide-why__card {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    gap: 40px;
  }

  .fr-guide-why__card-title {
    font-size: 24px;
    line-height: 32px;
  }

  .fr-guide-why__card-text {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (min-width: 1200px) {
  .fr-guide-why {
    padding: 120px 0;
  }

  .fr-guide-why__head {
    gap: 48px;
  }

  .fr-guide-why__heading {
    font-size: 48px;
    line-height: 60px;
  }

  .fr-guide-why__card-title {
    font-size: 28px;
    line-height: 36px;
  }

  .fr-guide-why__cards {
    flex-wrap: nowrap;
  }

  .fr-guide-why__card {
    flex: 1 0 0;
  }
}
