/* Feature pages (Funnels first). Loads after site.css and home.css
   (hero, section, card, step, numbers band and FAQ styles). */

/* Hero: the homepage frame with a shorter headline and a diagram on the right */
.feat-hero .home-hero-title {
  font-size: calc(136 * var(--hu));
}

.feat-hero .home-hero-lead {
  max-width: max(520px, calc(740 * var(--hu)));
}

/* A real capture of the product in a light app-window frame */
.feat-stage {
  top: calc(2 * var(--hu));
  right: calc(-40 * var(--hu));
  width: calc(560 * var(--hu));
  height: auto;
}

/* Nearly square captures get a narrower frame so they stay inside the hero. */
.feat-stage:has(.is-tall) {
  width: calc(500 * var(--hu));
}

.feat-shot {
  overflow: hidden;
  border-radius: calc(18 * var(--hu));
  background: #fff;
  box-shadow: 0 calc(30 * var(--hu)) calc(80 * var(--hu)) rgba(0, 0, 0, 0.5);
  transform: rotate(1.5deg);
}

.feat-shot-bar {
  display: flex;
  align-items: center;
  gap: calc(7 * var(--hu));
  height: calc(34 * var(--hu));
  padding: 0 calc(16 * var(--hu));
  background: var(--lg-night-2);
}

.feat-shot-bar i {
  width: calc(10 * var(--hu));
  height: calc(10 * var(--hu));
  border-radius: 50%;
  background: var(--lg-mist);
}

.feat-shot-bar i:first-child {
  background: var(--lg-coral);
}

.feat-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.feat-shot-caption {
  position: absolute;
  bottom: calc(-40 * var(--hu));
  left: calc(30 * var(--hu));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 18px;
  border-radius: 999px;
  background: var(--lg-night-2);
  color: #fff;
  font-size: max(13px, calc(15 * var(--hu)));
  font-weight: 500;
  line-height: 1.2;
}

.feat-shot-caption::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lg-coral);
}

/* A generated page in the frame instead of an app capture */
.feat-shot.is-page img {
  aspect-ratio: 1207 / 980;
  object-fit: cover;
  object-position: top;
}

/* A capture inside a section */
.feat-figure {
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--lg-line);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(11, 16, 38, 0.1);
}

.feat-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Two real pages standing in for the versions of a step */
.feat-versions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.feat-versions figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lg-line);
  border-radius: 20px;
  background: var(--lg-cloud);
}

.feat-versions img {
  display: block;
  width: 100%;
  aspect-ratio: 310 / 250;
  object-fit: cover;
  object-position: top;
}

.feat-versions figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--lg-night);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.feat-versions figcaption b {
  color: var(--lg-mist);
  font-family: var(--lg-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

/* Section headings */
.feat-title-md {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.085;
}

/* Spotlight: text beside a list of facts */
.feat-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
  align-items: start;
  gap: 48px;
}

/* The text column is narrow, so the gradient phrase may wrap instead of running under the facts card. */
.feat-spotlight .home-title em {
  white-space: normal;
}

.feat-spotlight-lead {
  max-width: 520px;
  margin-top: 26px;
  color: var(--lg-slate);
  font-size: 19px;
  line-height: 30px;
}

.feat-spotlight-note {
  max-width: 520px;
  margin-top: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--lg-mist);
  color: var(--lg-slate);
  font-size: 15.5px;
  line-height: 24px;
}

.feat-spotlight .home-compare-card {
  padding-top: 18px;
}

.feat-spotlight .home-compare-card li:first-child {
  border-top: 0;
}

.feat-spotlight .home-compare-card li {
  line-height: 25px;
}

/* Two wide cards */
.feat-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}

/* Related features */
.feat-related {
  padding: 88px 0 80px;
}

.feat-related .home-grid-3 {
  margin-top: 40px;
}

.feat-link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  padding: 30px 32px;
  border-radius: 28px;
  background: var(--lg-cloud);
  color: var(--lg-night);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.feat-link-card:hover {
  transform: translateY(-4px);
}

.feat-link-card strong {
  font-family: var(--lg-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 32px;
}

.feat-link-card small {
  color: var(--lg-slate);
  font-size: 16px;
  line-height: 24px;
}

.feat-link-card span {
  margin-top: auto;
  color: var(--lg-cobalt);
  font-size: 14.5px;
  font-weight: 600;
}

@media (max-width: 1199px) {
  .feat-spotlight {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .feat-pair {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .feat-hero .home-hero-title {
    font-size: min(140px, calc((100vw - 48px) / 5.4));
  }

  .feat-stage {
    top: auto;
    right: auto;
    width: min(100%, 640px);
    padding-bottom: 30px;
  }

  .feat-shot {
    border-radius: 14px;
  }

  .feat-shot-bar {
    gap: 6px;
    height: 28px;
    padding: 0 12px;
  }

  .feat-shot-bar i {
    width: 8px;
    height: 8px;
  }

  .feat-shot-caption {
    bottom: -10px;
    left: 12px;
  }

  .feat-spotlight,
  .feat-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .feat-pair {
    margin-top: 40px;
  }

  .feat-related {
    padding: 72px 0 68px;
  }

  .feat-link-card {
    min-height: 0;
  }
}

@media (max-width: 599px) {
  .feat-hero .home-hero-title {
    font-size: min(13.5vw, 110px);
    line-height: 0.95;
  }

  .feat-hero .home-hero-title em {
    margin-top: 0;
    padding-block: 0 0.06em;
  }

  .feat-link-card {
    padding: 24px;
  }
}
