/* LGMU Testing — presentation surface (Astra)
   Canon: forest teal + mint + paper. No purple / cream-serif defaults. */

.testing-section {
  --t-ease: var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
  --t-enter: 520ms;
  --t-mint: rgba(168, 239, 211, 0.55);
  --t-sage: rgba(184, 233, 200, 0.28);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 88% 8%, var(--t-mint), transparent 58%),
    radial-gradient(ellipse 55% 45% at 6% 92%, var(--t-sage), transparent 62%),
    linear-gradient(180deg, #eef4ee 0%, #f5f6f0 42%, #f3f6f1 100%);
}

.testing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 37, 38, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 38, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.testing-section > .wrap {
  position: relative;
  z-index: 1;
}

.testing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 40px 56px;
  align-items: center;
  margin: 0 0 44px;
}

.testing-stage {
  max-width: 40rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.testing-stage > .tiny-label {
  display: block;
  margin-bottom: 16px;
  color: #5f7a6b;
}

.testing-stage__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--ink, #132e2e);
}

.testing-stage__title .muted {
  color: #3d8f78;
  background: linear-gradient(120deg, #2f7a66, #6eb89a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .testing-stage__title .muted {
    color: #3d8f78;
    background: none;
  }
}

.testing-stage__lead {
  max-width: 34rem;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.85;
  color: #425850;
}

.testing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 20px;
}

.testing-download {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.testing-apk-meta {
  margin: 0;
  max-width: 28rem;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #5f7468;
}

.testing-downloads {
  margin: 0 0 40px;
  padding: 28px 24px 24px;
  border-radius: 28px;
  border: 1px solid rgba(11, 37, 38, 0.08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.88), rgba(236, 247, 240, 0.72)),
    #f7fbf8;
  box-shadow: 0 18px 40px rgba(9, 34, 34, 0.06);
}

.testing-downloads__head {
  max-width: 40rem;
  margin: 0 0 22px;
}

.testing-downloads__head .tiny-label {
  display: block;
  margin-bottom: 10px;
  color: #5f7a6b;
}

.testing-downloads__head h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--ink, #132e2e);
}

.testing-downloads__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4f655b;
}

.testing-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.testing-dl-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 10px 14px;
  align-items: start;
  min-height: 100%;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(11, 37, 38, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.testing-dl-card__icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #1f5c4c;
  background: linear-gradient(145deg, #dff8ec, #fff);
  border: 1px solid rgba(11, 37, 38, 0.08);
}

.testing-dl-card__body {
  min-width: 0;
}

.testing-dl-card__body .tiny-label {
  display: block;
  margin-bottom: 4px;
  color: #3d6b5c;
}

.testing-dl-card__body .testing-apk-meta {
  margin-top: 2px;
}

.testing-dl-card__btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
}

.testing-dl-card__soon {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6a7f74;
}

.testing-dl-card.is-soon {
  opacity: 0.78;
  background: rgba(255, 255, 255, 0.55);
}

.testing-dl-card__badge {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #45685a;
  background: rgba(184, 233, 200, 0.45);
  border: 1px solid rgba(11, 37, 38, 0.06);
}

.testing-stores .tiny-label {
  display: block;
  margin-bottom: 10px;
  color: #5f7a6b;
}

.testing-stores__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.testing-store-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  color: #1f5c4c;
  text-decoration: none;
  border: 1px solid rgba(11, 37, 38, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.testing-store-chip.is-soon {
  color: #6a7f74;
  background: rgba(236, 244, 238, 0.9);
}

/* Visual showcase panel */
.testing-showcase {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.testing-showcase__glow {
  position: absolute;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(196, 248, 227, 0.95), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(120, 190, 160, 0.35), transparent 60%);
  filter: blur(2px);
}

.testing-showcase__orbit {
  position: absolute;
  width: min(92%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(11, 37, 38, 0.1);
  box-shadow:
    0 0 0 28px rgba(184, 233, 200, 0.12),
    0 0 0 56px rgba(184, 233, 200, 0.07);
}

.testing-showcase__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 280px);
  aspect-ratio: 10 / 14;
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(11, 37, 38, 0.12);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(232, 245, 236, 0.88)),
    #fff;
  box-shadow:
    0 28px 50px rgba(9, 34, 34, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testing-showcase__mark {
  width: 52px;
  height: 52px;
  color: #1f5c4c;
}

.testing-showcase__mark svg {
  width: 100%;
  height: 100%;
}

.testing-showcase__brand {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--ink, #132e2e);
}

.testing-showcase__pulse {
  color: #5f9a82;
  opacity: 0.85;
}

.testing-showcase__pulse .medical-rhythm {
  width: 100%;
  height: auto;
}

.testing-showcase__chip {
  position: absolute;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #1f5c4c;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 37, 38, 0.1);
  box-shadow: 0 12px 28px rgba(9, 34, 34, 0.1);
}

.testing-showcase__chip svg {
  width: 28px;
  height: 28px;
}

.testing-showcase__chip.chip-a {
  top: 12%;
  left: 4%;
  background: linear-gradient(145deg, #dff8ec, #fff);
}

.testing-showcase__chip.chip-b {
  bottom: 14%;
  right: 2%;
  background: linear-gradient(145deg, #fff, #e7f5ea);
}

/* Feature pillars */
.testing-pillars {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.testing-pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 100%;
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(11, 37, 38, 0.08);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(232, 245, 236, 0.55));
  box-shadow: 0 10px 28px rgba(9, 34, 34, 0.04);
}

.testing-pillar__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #1f5c4c;
  background: rgba(168, 239, 211, 0.45);
}

.testing-pillar__icon svg {
  width: 24px;
  height: 24px;
}

.testing-pillar .tiny-label {
  display: block;
  margin-bottom: 6px;
  color: #5f7a6b;
}

.testing-pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink, #132e2e);
}

.testing-access,
.testing-support {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  margin: 0 0 28px;
  padding: 32px 32px 26px;
  border: 1px solid rgba(11, 37, 38, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(168, 239, 211, 0.28), transparent 42%),
    linear-gradient(200deg, #fff 30%, #eef8f1 100%);
  box-shadow: 0 16px 36px rgba(9, 34, 34, 0.05);
}

.testing-access .tiny-label,
.testing-support .tiny-label {
  display: block;
  margin-bottom: 14px;
  color: #5f7a6b;
}

.testing-access__symbol {
  position: absolute;
  right: 22px;
  top: 18px;
  width: 72px;
  height: 72px;
  color: rgba(31, 92, 76, 0.16);
  pointer-events: none;
}

.testing-access__symbol svg {
  width: 100%;
  height: 100%;
}

.testing-access p,
.testing-support p {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  max-width: 36rem;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--ink, #132e2e);
}

.testing-access__foot {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #3d6b58;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(168, 239, 211, 0.35);
}

.testing-support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ideas-all-section {
  border-top: 1px solid rgba(11, 37, 38, 0.08);
  padding-top: 8px;
}

.ideas-all-head {
  max-width: 40rem;
  margin: 0 0 28px;
}

.ideas-all-head .tiny-label {
  display: block;
  margin-bottom: 12px;
  color: #6e8274;
}

.ideas-all-head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--ink, #132e2e);
}

.ideas-all-head h2 .muted {
  color: var(--muted, #607168);
}

.ideas-all-head p {
  margin: 0;
  max-width: 34rem;
  font-size: 14px;
  line-height: 1.8;
  color: #50625b;
}

@media (max-width: 980px) {
  .testing-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .testing-showcase {
    min-height: 300px;
    order: -1;
  }

  .testing-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testing-dl-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .testing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .testing-actions .button,
  .testing-download .button,
  .testing-dl-card__btn {
    width: 100%;
    justify-content: center;
  }

  .testing-pillars {
    grid-template-columns: 1fr;
  }

  .testing-dl-card {
    grid-template-columns: auto 1fr;
  }

  .testing-access,
  .testing-support {
    padding: 24px 20px 20px;
  }

  .testing-access p {
    font-size: 18px;
  }

  .testing-showcase__panel {
    width: min(100%, 240px);
  }

  .testing-showcase__chip {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .testing-stage.will-reveal,
  .testing-downloads.will-reveal,
  .testing-dl-card.will-reveal,
  .testing-access.will-reveal,
  .testing-support.will-reveal,
  .testing-showcase.will-reveal,
  .testing-pillar.will-reveal,
  .ideas-all-head.will-reveal {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
      opacity var(--t-enter, 520ms) var(--t-ease),
      transform var(--t-enter, 520ms) var(--t-ease);
    transition-delay: var(--delay, 0ms);
  }

  .testing-stage.will-reveal.is-visible,
  .testing-downloads.will-reveal.is-visible,
  .testing-dl-card.will-reveal.is-visible,
  .testing-access.will-reveal.is-visible,
  .testing-support.will-reveal.is-visible,
  .testing-showcase.will-reveal.is-visible,
  .testing-pillar.will-reveal.is-visible,
  .ideas-all-head.will-reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .testing-showcase__orbit {
    animation: testing-orbit-spin 28s linear infinite;
  }

  .testing-showcase__chip.chip-a {
    animation: testing-float-a 5.5s ease-in-out infinite;
  }

  .testing-showcase__chip.chip-b {
    animation: testing-float-b 6.2s ease-in-out infinite;
  }
}

@keyframes testing-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes testing-float-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes testing-float-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 7px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .testing-stage,
  .testing-downloads,
  .testing-dl-card,
  .testing-access,
  .testing-support,
  .testing-showcase,
  .testing-pillar,
  .ideas-all-head {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .testing-showcase__orbit,
  .testing-showcase__chip {
    animation: none !important;
  }
}
