/* Real product screenshots: frames, compositions, and the alternating showcase sections. */

.home-hero h1 {
  max-width: 640px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.home-hero__grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
}

.capability-strip__grid {
  grid-template-columns: repeat(6, 1fr);
}

.shot {
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.shot--phone {
  width: min(100%, 300px);
  padding: 3px;
  border: 0;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.shot--phone img {
  border-radius: 25px;
}

.shot--tablet {
  padding: 8px;
  border-radius: 22px;
  background: var(--ink);
}

.shot--tablet img {
  border-radius: 14px;
}

/* Same proportional idea as .showcase__stack, with the phone on the lower-left instead. */
.hero-scene {
  position: relative;
  padding-bottom: 18%;
}

.hero-scene__desktop {
  margin-left: 11%;
}

.hero-scene__phone {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28%;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding-block: clamp(48px, 7vw, 92px);
  border-top: 1px solid var(--rule-strong);
}

.showcase:first-of-type {
  border-top: 0;
}

.showcase--flip .showcase__copy {
  order: 2;
}

.showcase__copy h3 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.showcase__copy p {
  max-width: 560px;
}

.showcase__points {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.showcase__points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.showcase__points li::before {
  position: absolute;
  top: 0.68em;
  left: 2px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
  content: "";
  transform: rotate(-45deg);
}

.showcase__points strong {
  color: var(--ink);
}

.showcase__visual {
  position: relative;
}

.showcase__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 18px;
}

.showcase__pair .shot--phone {
  width: 100%;
}

/* A large screen with a phone overlapping its lower-right corner. Every dimension is a share of
   the container width, so the composition scales as one picture instead of reflowing. The tail
   reserves room for the taller phone: 24% suits a 16:10 desktop shot, 12% a 4:3 tablet shot. */
.showcase__stack {
  --stack-tail: 24%;
  position: relative;
  padding-bottom: var(--stack-tail);
}

.showcase__stack--tablet {
  --stack-tail: 12%;
}

.showcase__stack .shot--phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
}

.showcase__stack .shot:not(.shot--phone) {
  margin-right: 10%;
}

.showcase__single {
  display: flex;
  justify-content: center;
}

.device-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: end;
  gap: 24px;
}

.device-gallery figure {
  margin: 0;
}

.device-gallery figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-align: center;
}

.device-gallery .shot--phone {
  width: 100%;
  margin-inline: auto;
}

.personal-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.personal-pair .shot--phone {
  width: 100%;
}

.language-scene {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.language-scene .shot--phone {
  width: 100%;
}

.language-scene figure {
  margin: 0;
}

.language-scene figcaption {
  margin-top: 12px;
  color: rgba(250, 246, 236, 0.82);
  font-size: 0.9rem;
  font-weight: 650;
  text-align: center;
}

.story-band__visual--wide {
  padding: 34px;
}

@media (max-width: 1040px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  /* Single-column: keep the capped copy and visual blocks in one centred column. */
  .home-hero__copy,
  .hero-scene,
  .showcase__copy,
  .showcase__visual {
    width: 100%;
    margin-inline: auto;
  }

  .showcase__copy {
    max-width: 640px;
  }

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

  .capability-strip__item:nth-child(6) {
    border-top: 1px solid rgba(250, 246, 236, 0.15);
  }

  .hero-scene {
    max-width: 720px;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .showcase--flip .showcase__copy {
    order: 0;
  }

  .showcase__visual {
    max-width: 640px;
  }

  .device-gallery {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  }

  .device-gallery figure:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .capability-strip__grid {
    grid-template-columns: 1fr;
  }

  .showcase__pair,
  .personal-pair,
  .language-scene {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .showcase__pair .shot--phone,
  .personal-pair .shot--phone,
  .language-scene .shot--phone {
    width: min(100%, 280px);
  }

  .device-gallery {
    grid-template-columns: 1fr;
  }

  .device-gallery .shot--phone {
    width: min(100%, 260px);
  }
}
