/* The Instio Approach — landing page */

.page-approach {
  --ap-ink: #0a1628;
  --ap-muted: #5c6578;
  --ap-blue: #0066ff;
  --ap-navy: #0b1524;
  --ap-line: #e2e8f0;
}

/* Hero — split copy + photo with overlay flow (mock layout) */
.ap-hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  background: #eef3f9;
  overflow: hidden;
}
.ap-hero__stage {
  position: relative;
  flex: 1;
  min-height: clamp(440px, 58vh, 520px);
}
.ap-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ap-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}
.ap-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #fff 18%,
      rgba(255, 255, 255, 0.98) 30%,
      rgba(255, 255, 255, 0.88) 40%,
      rgba(255, 255, 255, 0.42) 50%,
      rgba(255, 255, 255, 0.08) 56%,
      transparent 62%
    );
}
.ap-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(280px, 6.8fr);
  gap: 12px 20px;
  align-items: center;
  min-height: clamp(400px, 52vh, 480px);
  padding: 36px 0 28px;
}
.ap-hero__copy {
  max-width: 500px;
  padding: 8px 0;
}
.ap-hero__kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ap-blue);
  margin-bottom: 14px;
}
.ap-hero__title {
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
  color: #0f172a;
}
.ap-hero__title em {
  font-style: normal;
  color: var(--ap-blue);
}
.ap-hero__lead {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: #64748b;
  max-width: 44ch;
}
.ap-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 26px;
}
.ap-hero__btn-primary {
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(0, 102, 255, 0.65);
}
.ap-hero__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 18px 9px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-blue);
  background: #fff;
  border: 1.5px solid rgba(0, 102, 255, 0.28);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
.ap-hero__ghost:hover {
  border-color: var(--ap-blue);
  background: #fff;
}
.ap-hero__play {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 102, 255, 0.35);
  color: var(--ap-blue);
  background: #fff;
  flex-shrink: 0;
}
.ap-hero__play .ico {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

/* Workflow infographic (asset) over hero photo */
.ap-hero__diagram {
  position: relative;
  margin: 0;
  justify-self: end;
  align-self: center;
  width: min(100%, 520px);
  max-width: 520px;
  padding: 0;
}
.ap-hero__workflow-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 400px);
  object-fit: contain;
  object-position: center right;
  /* PNG ships on black — blend so cards/arrows sit on the office photo */
  mix-blend-mode: screen;
  filter: drop-shadow(0 10px 28px rgba(15, 23, 42, 0.12));
}

/* Dark value bar */
.ap-hero-bar {
  position: relative;
  z-index: 3;
  background: linear-gradient(90deg, #0a1422 0%, #0f1c2e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ap-hero-bar__list {
  list-style: none;
  margin: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
}
.ap-hero-bar__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #fff;
}
.ap-hero-bar__ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 102, 255, 0.18);
  color: #6eb4ff;
}
.ap-hero-bar__ico .ico {
  width: 22px;
  height: 22px;
}
.ap-hero-bar__list strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}
.ap-hero-bar__list p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* Sections */
.ap-section {
  padding: 56px 0;
}
.ap-section--soft {
  background: #f4f8fc;
}
.ap-section--approach {
  background: #eef2f6;
  padding-top: 52px;
  padding-bottom: 56px;
}
.ap-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.ap-section__head--left {
  text-align: left;
  max-width: none;
  margin: 0 0 32px;
}
.ap-section--approach .ap-section__head--left .ap-section__title,
.ap-section--approach .ap-section__head--left .ap-section__lead {
  display: block;
  max-width: none;
}
@media (min-width: 900px) {
  .ap-section--approach .ap-section__head--left .ap-section__title,
  .ap-section--approach .ap-section__head--left .ap-section__lead {
    white-space: nowrap;
  }
}
.ap-section__head .h2-kicker {
  margin-bottom: 10px;
}
.ap-section__title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ap-ink);
}
.ap-section__lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ap-muted);
}
.ap-section--approach .ap-section__lead {
  max-width: none;
}

/* Process steps — white cards, arrows between */
.ap-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.ap-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.ap-step__card {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 16px 14px 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.ap-step__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.ap-step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: var(--sn, #2563eb);
  background: var(--sbg, #eff6ff);
}
.ap-step--blue { --sn: #2563eb; --sbg: #eff6ff; }
.ap-step--green { --sn: #059669; --sbg: #ecfdf5; }
.ap-step--purple { --sn: #7c3aed; --sbg: #f5f3ff; }
.ap-step--orange { --sn: #ea580c; --sbg: #fff7ed; }
.ap-step__head h3 {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ap-ink);
}
.ap-step__photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: #e8edf4;
}
.ap-step__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ap-step__card > p {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.58;
  color: #64748b;
}
.ap-step__arrow {
  flex: 0 0 clamp(20px, 2.5vw, 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--ap-blue);
  opacity: 0.88;
  padding: 0 2px;
}
.ap-step__arrow .ico {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}
.ap-step:last-child .ap-step__arrow {
  display: none;
}

/* Different cards */
.ap-diff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.ap-diff-card {
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.ap-diff-card__ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--dibg, #eff6ff);
  color: var(--dic, #2563eb);
}
.ap-diff-card__ico .ico {
  width: 22px;
  height: 22px;
}
.ap-diff-card--blue { --dic: #2563eb; --dibg: #eff6ff; }
.ap-diff-card--green { --dic: #059669; --dibg: #ecfdf5; }
.ap-diff-card--purple { --dic: #7c3aed; --dibg: #f5f3ff; }
.ap-diff-card--orange { --dic: #ea580c; --dibg: #fff7ed; }
.ap-diff-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--ap-ink);
  margin-bottom: 8px;
}
.ap-diff-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

/* Engagement models */
.ap-engage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ap-engage-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}
.ap-engage-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8edf4;
}
.ap-engage-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ap-engage-card__body {
  padding: 20px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ap-engage-card__ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--ap-blue);
  margin-bottom: 12px;
}
.ap-engage-card__ico--green {
  background: #ecfdf5;
  color: #059669;
}
.ap-engage-card__ico .ico {
  width: 20px;
  height: 20px;
}
.ap-engage-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ap-ink);
  margin-bottom: 8px;
}
.ap-engage-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ap-muted);
  flex: 1;
}
.ap-engage-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-blue);
  text-decoration: none;
}
.ap-engage-card__link:hover {
  text-decoration: underline;
}

/* CTA band */
.ap-cta {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.ap-cta__bg {
  position: absolute;
  inset: 0;
}
.ap-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.ap-cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 14, 28, 0.88) 0%,
    rgba(6, 14, 28, 0.72) 38%,
    rgba(6, 14, 28, 0.35) 62%,
    rgba(6, 14, 28, 0.12) 100%
  );
}
.ap-cta__wrap {
  position: relative;
  z-index: 1;
}
.ap-cta__inner {
  padding: 56px 0;
  max-width: 560px;
  text-align: left;
}
.ap-cta__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}
.ap-cta__lead {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.ap-cta__inner .btn {
  margin-top: 22px;
}

/* FAQ */
.ap-faq__layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 40px;
  align-items: start;
}
.ap-faq__intro .h2-kicker {
  margin-bottom: 8px;
}
.ap-faq__intro h2 {
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ap-ink);
}
.ap-faq__intro p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ap-muted);
}
.ap-faq__list {
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.ap-faq details {
  border-bottom: 1px solid var(--ap-line);
}
.ap-faq details:last-child {
  border-bottom: none;
}
.ap-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ap-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ap-faq summary::-webkit-details-marker {
  display: none;
}
.ap-faq summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--ap-blue);
  flex-shrink: 0;
}
.ap-faq details[open] summary::after {
  content: "−";
}
.ap-faq__answer {
  padding: 0 20px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ap-muted);
}

@media (max-width: 1100px) {
  .ap-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 16px;
  }
  .ap-hero__diagram {
    justify-self: center;
    max-width: min(480px, 100%);
    margin-inline: auto;
  }
  .ap-hero__workflow-img {
    object-position: center;
    max-height: none;
  }
  .ap-hero__scrim {
    background:
      linear-gradient(
        180deg,
        #fff 0%,
        rgba(255, 255, 255, 0.97) 42%,
        rgba(255, 255, 255, 0.55) 58%,
        transparent 72%
      );
  }
  .ap-hero-bar__list {
    grid-template-columns: 1fr;
  }
  .ap-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .ap-step {
    flex-direction: column;
    align-items: stretch;
  }
  .ap-step__arrow {
    display: none;
  }
  .ap-diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ap-engage-grid {
    grid-template-columns: 1fr;
  }
  .ap-faq__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ap-diff-grid {
    grid-template-columns: 1fr;
  }
}
