/* Shared product showcase. The scene follows the intro in reading order. */
.qa {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(24px, 2.5vw, 36px);
  color: var(--offwhite);
  background:
    radial-gradient(ellipse at 19% 41%, rgb(163 226 206 / 19%), transparent 40%),
    linear-gradient(112deg, var(--teal), var(--navy) 66%);
}
.qa *, .qa *::before, .qa *::after { box-sizing: border-box; }
.qa-sweep {
  position: absolute;
  z-index: -1;
  inset: 0 32% 0 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, black 60%, transparent);
}
.qa-sweep::before, .qa-sweep::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 130%;
  left: -65%;
  bottom: -71%;
  border: 1px solid rgb(163 226 206 / 34%);
  border-radius: 50%;
  transform: rotate(-25deg);
  box-shadow: 0 -7px 18px rgb(163 226 206 / 10%), inset 0 5px 16px rgb(163 226 206 / 7%);
}
.qa-sweep::after {
  bottom: -77%;
  border-color: rgb(163 226 206 / 17%);
  box-shadow: 0 -20px 55px rgb(163 226 206 / 12%);
}
.qa-layout {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  grid-template-areas: 'intro scene' 'downloads scene';
  gap: 20px var(--rp-gap);
  align-content: center;
  min-height: 432px;
}
.qa-intro, .qa-downloads { padding-inline-start: clamp(0px, 2vw, 28px); }
.qa-intro { grid-area: intro; align-self: end; }
.qa-intro .rp-eyebrow { color: var(--mint); margin-bottom: 6px; }
.qa-intro h2 { line-height: 1.2; }
.qa-intro h2 span { display: block; color: var(--mint); }
.qa-intro .rp-desc { margin-top: 6px; color: #d5e3df; }
.qa-downloads { grid-area: downloads; align-self: start; display: grid; gap: 14px; max-width: 440px; }

/* compact app card: icon on the right, name + language beside it, badges beneath the text */
.qa-app {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas: 'icon info' '. links';
  gap: 12px 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgb(163 226 206 / 15%);
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(163 226 206 / 8%), rgb(163 226 206 / 3%));
}
.qa-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgb(245 246 242 / 16%);
}
.qa-app__info { grid-area: info; min-width: 0; text-align: right; }
.qa-app h3 { margin: 0; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.3; font-weight: 600; text-align: right; }
.qa-app__lang { margin: 2px 0 0; color: var(--mint); font-size: .84rem; line-height: 1.35; opacity: .85; }
.qa-links { grid-area: links; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }

/* store badges (official layout: black plate, grey hairline, mark + two-line wordmark) */
.qa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-width: 138px;
  padding: 0 14px 0 11px;
  border: 1px solid #a6a6a6;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  text-decoration: none;
  direction: ltr;
}
.qa-badge__mark { width: 21px; height: 23px; flex: none; }
.qa-badge__mark--apple { width: 23px; height: 23px; }
.qa-badge__text { display: grid; text-align: left; line-height: 1; }
.qa-badge__text small { font-size: 9px; font-weight: 500; letter-spacing: .02em; }
.qa-badge--play .qa-badge__text small { text-transform: uppercase; letter-spacing: .06em; }
.qa-badge__text b { margin-top: 2px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.qa-badge:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
@media (hover: hover) {
  .qa-badge:hover { border-color: var(--mint); transform: translateY(-1px); }
}

.qa-scene {
  grid-area: scene;
  position: relative;
  isolation: isolate;
  align-self: center;
  justify-self: center;
  width: min(100%, 530px);
  aspect-ratio: 1.12;
}
.qa-scene::before {
  content: '';
  position: absolute;
  inset: 83% 4% 0 4%;
  background: radial-gradient(ellipse, rgb(4 16 22 / 58%), transparent 68%);
}
.qa-phone { position: absolute; }
.qa-phone--es { z-index: 2; width: 38%; top: 5.5%; left: 17%; transform: rotate(-5deg); }
.qa-phone--pt { z-index: 1; width: 34.5%; top: 1%; left: 48%; transform: rotate(7deg); }
.qa-frame {
  position: relative;
  border-radius: 11% / 5.2%;
  padding: 2.7%;
  background: linear-gradient(110deg, #dae5df 0%, #879693 2%, #202c2e 4%, #596763 48%, #c6d4cf 75%, #374342 96%, #172125);
  box-shadow: inset 0 0 0 1px rgb(245 246 242 / 45%), 2px 2px 0 #586662,
    4px 5px 0 #223032, 8px 12px 14px rgb(4 16 22 / 30%), 13px 22px 32px rgb(4 16 22 / 26%);
}
.qa-frame::before, .qa-frame::after {
  content: '';
  position: absolute;
  width: 2px;
  right: -3px;
  background: linear-gradient(to right, #bdcbc6, #374442);
  border-radius: 2px;
}
.qa-frame::before { top: 20%; height: 8%; }
.qa-frame::after { top: 32%; height: 5%; }
.qa-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8.5% / 3.9%;
  box-shadow: 0 0 0 2px #111a1d;
}
@media (prefers-reduced-motion: no-preference) {
  .qa-enter .qa-frame { animation: qa-arrive .8s var(--ease) backwards; }
  .qa-enter .qa-phone--es .qa-frame { animation-delay: .1s; }
  .qa-badge { transition: border-color .18s, transform .18s; }
  @keyframes qa-arrive {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 720px) {
  .qa { padding-block: var(--rp-pad-y); }
  .qa-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'intro' 'scene' 'downloads';
    gap: var(--rp-inner-gap);
    min-height: 0;
  }
  .qa-intro, .qa-downloads { padding-inline: 0; }
  .qa-intro h2 { font-size: clamp(1.9rem, 6.6vw, 2.45rem); }
  .qa-intro .rp-desc { margin-top: 8px; }
  .qa-scene { width: min(100%, 380px); }
  .qa-sweep { inset: 15% 0 15%; }
  .qa-downloads { max-width: none; }
}
@media (max-width: 520px) {
  /* badges use the full card width so both stores sit side by side */
  .qa-app { grid-template-areas: 'icon info' 'links links'; padding: 14px; }
  .qa-badge { min-width: 0; flex: 1 1 128px; max-width: 168px; padding-inline: 10px; }
}
