/* ===== Reset & base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple: #8E09D8;
  --purple-soft: #f5e6fb;
  --black: #0d0d12;
  --gray: #5a5a66;
  --line: #e7e7ee;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== Hero (full-page banner) ===== */
.hero {
  /* sticky = stays pinned while the next section scrolls up over it (parallax) */
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* content sits at the bottom */
}

/* Zooming background layer */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  /* smooths the JS-driven scale updates on scroll */
  transition: transform 0.1s linear;
}

/* Background overlay: even dark tint + stronger bottom gradient
   so the whole banner is dimmed and bottom-left text stays readable */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(13, 13, 18, 0.82) 0%,
      rgba(13, 13, 18, 0.5) 40%,
      rgba(13, 13, 18, 0.2) 72%,
      rgba(13, 13, 18, 0.1) 100%
    ),
    rgba(13, 13, 18, 0.35); /* flat tint across the entire image */
}

/* Content row: text bottom-left, action vertically centered on the right */
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 56px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  /* fade behaviour driven by JS via --hero-opacity */
  opacity: var(--hero-opacity, 1);
  transform: translateY(calc((1 - var(--hero-opacity, 1)) * 40px));
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Bottom-left text block */
.hero__content {
  max-width: 760px;
  color: #fff;
}

/* "New | ... Available" pill above the heading */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  margin-bottom: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.hero__pill strong {
  background: #fff;
  color: var(--black);
  padding: 3px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero__title {
  font-size: 66px;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -2px;
  margin-bottom: 34px;
  color: #fff;
}

.hero__title .hl {
  color: var(--purple);
}

.hero__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
}

/* Right-side action area */
.hero__aside {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 20px rgba(142, 9, 216, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(142, 9, 216, 0.38);
}

.btn--primary span {
  font-size: 18px;
  line-height: 1;
}

.btn--ghost {
  background: #fff;
  color: var(--black);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* White pill button (hero "Schedule Demo") */
.btn--white {
  background: #fff;
  color: var(--black);
  padding: 16px 38px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

/* ===== About (parallax reveal section) ===== */
.about {
  position: relative;
  z-index: 2; /* sits above the sticky hero */
  background: #f1f1f0;
  padding: 110px 56px 120px;
  border-radius: 28px 28px 0 0; /* soft lip as it rises over the hero */
}

.about__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* Head: pill on the left, two-tone heading on the right */
.about__head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 64px;
}

.pill-outline {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #d9d9dd;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}

.about__title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: var(--black);
}

.about__title-muted {
  color: #9a9aa4; /* second half greyed out, like the reference */
}

/* Stat / trust cards */
.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat {
  background: #fff;
  border-radius: 12px;
  padding: 28px 26px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stat__value {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--black);
}

.stat__value--icon {
  color: var(--purple);
  font-size: 40px;
}

.stat__label {
  font-size: 14px;
  color: var(--gray);
}

/* ===== Features ===== */
.features {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 104px 56px 120px;
}

.features__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.features__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.features__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--black);
  margin-bottom: 16px;
}

.features__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature__media {
  background: #f4f4f6;
  border: 1px solid #e7e7ee;
  border-radius: 18px;
  padding: 0;
  height: auto;
  overflow: hidden;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.feature__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.feature__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 340px;
}

/* ===== Services (sticky-nav scrollspy) ===== */
.services {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 60px 56px 120px;
  border-top: 1px solid var(--line);
}

.services__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

/* Sticky left column */
.services__nav {
  position: sticky;
  top: 90px;
  align-self: start;
}

.services__nav .pill-outline {
  margin-bottom: 22px;
}

.services__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--black);
  margin-bottom: 40px;
}

.services__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.services__link {
  display: block;
  padding: 10px 0 10px 18px;
  border-left: 2px solid transparent;
  font-size: 17px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.services__link:hover {
  color: var(--black);
}

.services__link.is-active {
  color: var(--purple);
  border-left-color: var(--purple);
  font-weight: 600;
}

/* Scrolling right column */
.services__content {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.service-block {
  scroll-margin-top: 90px;
}

.service-block__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.service-block__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 28px;
}

.service-block__media {
  background: #fdfdfd;
  border: 1px solid var(--line);
  border-radius: 18px;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-block__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* ===== Solutions (dotted-icon card grid) ===== */
.solutions {
  position: relative;
  z-index: 2;
  background: #f7f7f8;
  padding: 100px 56px 120px;
}

.solutions__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.solutions__head {
  text-align: center;
  margin-bottom: 56px;
}

.solutions__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 18px;
}

.solutions__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--black);
  margin-bottom: 18px;
}

.solutions__subtitle {
  font-size: 17px;
  color: var(--gray);
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
}

/* Image icon */
.solution__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.solution__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.solution__name {
  font-size: 21px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.solution__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 20px;
}

.solution__tag {
  margin-top: auto;
  font-size: 13px;
  font-style: italic;
  color: #a0a0aa;
}

/* ===== Showcase (responsive device preview) ===== */
.showcase {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 100px 56px 120px;
  border-top: 1px solid var(--line);
}

.showcase__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top text (centered) */
.showcase__text {
  text-align: center;
  max-width: 680px;
  margin-bottom: 48px;
}

.showcase__text .pill-outline {
  margin-bottom: 22px;
}

.showcase__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--black);
  margin-bottom: 22px;
}

.showcase__desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray);
  margin: 0 auto 18px;
  max-width: 560px;
}

.showcase__tagline {
  font-size: 18px;
  font-weight: 700;
  color: var(--purple);
  margin-top: 8px;
}

/* Preview column (below the text) */
.showcase__preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Device switcher tabs */
.device-switch {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  background: var(--purple);
  margin-bottom: 20px;
}

.device-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.device-switch__btn:hover {
  color: #fff;
}

.device-switch__btn.is-active {
  background: #fff;
  color: var(--purple);
}

/* Black stage that holds the device frame */
.showcase__stage {
  width: 100%;
  background: #f7f7f8;
  border-radius: 20px;
  padding: 34px;
  height: 560px; /* fixed height so nothing reflows on device switch */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

/* Resizable device frame */
.device-frame {
  width: 300px;
  height: 480px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  /* the mock inside responds to THIS width, not the viewport */
  container-type: inline-size;
}

.device-frame.is-mobile { width: 300px; }
.device-frame.is-tablet { width: 540px; }
.device-frame.is-laptop { width: 820px; }
.device-frame.is-desktop { width: 100%; }

/* ---- Mini website mockup ---- */
.mock {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-size: 12px;
}

.mock__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.mock__logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--black);
}

.mock__links {
  display: none; /* hidden on small screens */
  gap: 16px;
}

.mock__links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
}

.mock__icons {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
}

.mock__icon {
  position: relative;
  display: inline-flex;
}

.mock__badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Banner slider */
.mock__slider {
  position: relative;
  height: 190px;
  flex-shrink: 0;
  overflow: hidden;
  background: #eee;
}

.mock__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.mock__slide.is-active {
  opacity: 1;
}

.mock__caption {
  position: absolute;
  left: 16px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.mock__caption-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

.mock__caption-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.mock__dots {
  position: absolute;
  left: 16px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  z-index: 1;
}

.mock__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.mock__dot.is-active {
  background: #fff;
  width: 16px;
}

/* Categories */
.mock__cats {
  padding: 16px 14px 20px;
}

.mock__cats-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.mock__cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* mobile default */
  gap: 10px;
}

.mock__cat {
  height: 66px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.mock__cat span {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
}

/* Container queries: the mock reflows with the FRAME width */
@container (min-width: 480px) {
  .mock__links { display: flex; }
  .mock__cats-grid { grid-template-columns: repeat(3, 1fr); }
  .mock__slider { height: 220px; }
}

@container (min-width: 720px) {
  .mock__cats-grid { grid-template-columns: repeat(6, 1fr); }
  .mock__slider { height: 260px; }
  .mock__cats { padding: 20px 22px 26px; }
  .mock__nav { padding: 14px 22px; }
}

/* ===== Process (timeline steps) ===== */
.process {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 100px 56px 120px;
  border-top: 1px solid var(--line);
}

.process__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.process__head {
  text-align: center;
  margin-bottom: 64px;
}

.process__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--black);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}

/* Gradient rounded-square icon */
.step__icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 24px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

/* Dashed connector with a colour dot at each end (between icons) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 33px; /* icon vertical centre (66 / 2) */
  left: calc(50% + 46px);
  right: calc(-50% + 46px);
  height: 8px;
  transform: translateY(-50%);
  background-image:
    radial-gradient(circle, #22c1e0 42%, transparent 46%),
    radial-gradient(circle, #8E09D8 42%, transparent 46%),
    repeating-linear-gradient(90deg, #cfc7ee 0 5px, transparent 5px 11px);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: left center, right center, center;
  background-size: 8px 8px, 8px 8px, calc(100% - 20px) 2px;
}

.step__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.step__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray);
  max-width: 240px;
  margin: 0 auto;
}

/* ===== Platforms ===== */
.platforms {
  position: relative;
  z-index: 2;
  background: #f7f7f8;
  padding: 100px 56px 120px;
}

.platforms__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.platforms__head {
  text-align: center;
  margin-bottom: 56px;
}

.platforms__head .pill-outline {
  margin-bottom: 18px;
}

.platforms__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--black);
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.platform {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.platform img{
  height: 80px;
}

.platform:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.platform__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0 14px;
  border-radius: 14px;
  margin-bottom: 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.platform__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.platform__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
}

/* Bottom CTA */
.platforms__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.platforms__cta-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
}

/* ===== FAQ ===== */
.faq {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 100px 56px 120px;
  border-top: 1px solid var(--line);
}

.faq__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

/* Left aside */
.faq__aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

.faq__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--black);
}

.faq__help {
  margin-top: 48px;
}

.faq__avatars {
  display: flex;
  margin-bottom: 16px;
}

.faq__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.faq__avatar:nth-child(2) {
  margin-left: -12px;
}

.faq__help-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}

.faq__help-sub {
  font-size: 14px;
  color: var(--purple);
  margin-bottom: 20px;
}

.btn--dark {
  align-self: flex-start;
  background: var(--black);
  color: #fff;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Right accordion */
.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-child {
  border-top: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  font-family: inherit;
}

/* plus icon that rotates into an × when open */
.faq__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--black);
  border-radius: 2px;
}

.faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq__icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq__item.is-open .faq__icon {
  transform: rotate(135deg); /* + becomes × */
  color: var(--purple);
}

.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after {
  background: var(--purple);
}

/* animated answer reveal */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.faq__a > div {
  overflow: hidden;
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a p {
  padding: 0 4px 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
  max-width: 620px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px 48px;
    gap: 28px;
  }
  .hero__pill {
    margin-bottom: 24px;
  }
  .hero__title {
    font-size: 44px;
    letter-spacing: -1px;
  }
  .hero__subtitle {
    font-size: 16px;
  }
}

@media (max-width: 980px) {
  .about {
    padding: 72px 24px 84px;
  }
  .about__head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 44px;
  }
  .about__title {
    font-size: 26px;
  }
  .about__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .features {
    padding: 72px 24px 84px;
  }
  .features__title {
    font-size: 30px;
  }
  .features__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features__head {
    margin-bottom: 44px;
  }
  .services {
    padding: 56px 24px 80px;
  }
  .services__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .services__nav {
    position: static;
  }
  .services__title {
    font-size: 30px;
    margin-bottom: 28px;
  }
  .services__content {
    gap: 56px;
  }
  .service-block__media {
    height: 260px;
  }
  .solutions {
    padding: 72px 24px 84px;
  }
  .solutions__title {
    font-size: 32px;
  }
  .solutions__grid {
    grid-template-columns: 1fr;
  }
  .showcase {
    padding: 72px 24px 84px;
  }
  .showcase__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .showcase__title {
    font-size: 32px;
  }
  .showcase__stage {
    padding: 22px;
    min-height: 0;
  }
  .device-frame.is-desktop,
  .device-frame.is-laptop {
    width: 100%;
  }
  .process {
    padding: 72px 24px 84px;
  }
  .process__title {
    font-size: 32px;
  }
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 28px;
  }
  .process__head {
    margin-bottom: 44px;
  }
  /* connector line only makes sense in a single row */
  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .platforms {
    padding: 72px 24px 84px;
  }
  .platforms__title {
    font-size: 32px;
  }
  .platforms__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .faq {
    padding: 72px 24px 84px;
  }
  .faq__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .faq__aside {
    position: static;
    min-height: 0;
  }
  .faq__title {
    font-size: 32px;
  }
  .faq__help {
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .process__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 34px;
  }
  .hero__title br {
    display: none;
  }
  .btn--white {
    padding: 14px 30px;
    font-size: 15px;
  }
  .about__stats {
    grid-template-columns: 1fr;
  }
}

/* ---- Showcase on phones: stage hugs the selected device ----
   The frame keeps its real device width (so the container queries still
   fire correctly) and is transform-scaled to fit, while the stage itself
   resizes to the scaled device's footprint via :has(). */
@media (max-width: 640px) {
  .showcase__stage {
    position: relative;
    width: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* stage size = device width x scale  by  frame-height x scale */
  .showcase__stage:has(.is-mobile)  { width: 250px; height: 470px; }
  .showcase__stage:has(.is-tablet)  { width: 260px; height: 235px; }
  .showcase__stage:has(.is-laptop)  { width: 282px; height: 150px; }
  .showcase__stage:has(.is-desktop) { width: 276px; height: 108px; }

  .device-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 470px;
    border-radius: 14px;
    transform-origin: center center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .device-frame.is-mobile  { width: 250px;  transform: translate(-50%, -50%) scale(1); }
  .device-frame.is-tablet  { width: 520px;  transform: translate(-50%, -50%) scale(0.5); }
  .device-frame.is-laptop  { width: 880px;  transform: translate(-50%, -50%) scale(0.32); }
  .device-frame.is-desktop { width: 1200px; transform: translate(-50%, -50%) scale(0.23); }
}
