/* Insight School International only: "Get the app" promotion (homepage).
   Hidden inside the school's own Android app. */
.is-school-app .ap-only-web { display: none !important; }

/* ── Google Play badge ─────────────────────────────── */
.ap-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px 9px 15px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ap-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.34); color: #fff; }
.ap-badge:focus-visible { outline: 3px solid var(--accent, #d8c7a5); outline-offset: 3px; }
.ap-badge-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.ap-badge-text small { font-size: .62rem; font-weight: 600; letter-spacing: .6px; opacity: .92; }
.ap-badge-text strong { font-size: 1.28rem; font-weight: 700; letter-spacing: -.2px; }
.ap-badge-sm { padding: 7px 16px 7px 12px; border-radius: 10px; }
.ap-badge-sm .ap-badge-text strong { font-size: 1.05rem; }
.ap-badge-sm .ap-play-icon { width: 21px; height: 21px; }

/* ── Hero link ────────────────────────────────────── */
.ap-hero-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24);
  color: #fff; font-size: .86rem; text-decoration: none; line-height: 1.3;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}
.ap-hero-link:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-1px); }
.ap-hero-link strong { color: var(--accent, #d8c7a5); font-weight: 800; }
.ap-hero-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.ap-hero-arrow { flex-shrink: 0; opacity: .85; transition: transform .2s ease; }
.ap-hero-link:hover .ap-hero-arrow { transform: translateX(3px); }

/* ── Section ──────────────────────────────────────── */
.ap-section { padding-top: 30px; padding-bottom: 60px; }
.ap-panel {
  position: relative; overflow: hidden; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px;
  padding: 58px 56px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(216,199,165,.22), transparent 42%),
    radial-gradient(circle at 8% 100%, rgba(47,107,60,.65), transparent 50%),
    linear-gradient(135deg, #0d3a18 0%, var(--primary, #11461e) 55%, #1d5a2b 100%);
  box-shadow: 0 30px 70px rgba(17,70,30,.25);
}
.ap-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.ap-copy { position: relative; z-index: 1; }
.ap-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  font-size: .74rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--accent, #d8c7a5);
}
.ap-kicker .ap-play-icon { background: #fff; border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.ap-title { margin: 18px 0 14px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 900; line-height: 1.15; letter-spacing: -.5px; color: #fff; }
.ap-title span { color: var(--accent, #d8c7a5); }
.ap-desc { max-width: 520px; font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,.82); }
.ap-feats { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.ap-feats li { display: flex; align-items: flex-start; gap: 12px; }
.ap-feat-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgba(216,199,165,.16); color: var(--accent, #d8c7a5); border: 1px solid rgba(216,199,165,.25); }
.ap-feats strong { display: block; font-size: .95rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.ap-feats li > div > span { display: block; font-size: .84rem; line-height: 1.5; color: rgba(255,255,255,.7); }
.ap-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.ap-qr { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.ap-qr img { display: block; width: 76px; height: 76px; padding: 6px; background: #fff; border-radius: 10px; }
.ap-qr span { font-size: .8rem; line-height: 1.4; color: rgba(255,255,255,.8); font-weight: 600; }
.ap-note { margin-top: 16px; font-size: .8rem; color: rgba(255,255,255,.6); }

/* ── Phone (the real app screenshot) ─────────────── */
.ap-visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.ap-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(216,199,165,.38), transparent 65%); filter: blur(12px); }
.ap-phone-img { position: relative; display: block; width: 252px; animation: apFloat 6s ease-in-out infinite; }
.ap-phone-img img { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 40px rgba(0,0,0,.45)); }
.ap-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px;
  background: #fff; color: var(--text-dark, #17211d); box-shadow: 0 16px 36px rgba(0,0,0,.28); text-align: left;
  animation: apFloat 6s ease-in-out infinite;
}
.ap-float strong { display: block; font-size: .8rem; font-weight: 800; }
.ap-float small { display: block; font-size: .72rem; color: var(--text-muted, #60716b); }
.ap-float-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(17,70,30,.1); color: var(--primary, #11461e); flex-shrink: 0; }
.ap-float-icon.ap-gold { background: rgba(185,157,105,.18); color: #8a6d35; }
.ap-float-1 { top: 215px; left: calc(50% - 290px); animation-delay: -2s; }
.ap-float-2 { bottom: 118px; right: calc(50% - 250px); animation-delay: -4s; }
@keyframes apFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .ap-phone-img, .ap-float { animation: none; } }

/* ── Footer ───────────────────────────────────────── */
.ap-footer { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ap-footer > span { font-size: .78rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; opacity: .75; }

/* ── Tablet and phone ─────────────────────────────── */
@media (max-width: 960px) {
  .ap-panel { grid-template-columns: 1fr; padding: 44px 30px 0; gap: 10px; text-align: center; }
  .ap-desc { margin: 0 auto; }
  .ap-feats { text-align: left; max-width: 560px; margin-left: auto; margin-right: auto; }
  .ap-actions { justify-content: center; }
  .ap-visual { min-height: 0; height: 360px; overflow: hidden; align-items: flex-start; padding-top: 18px; }
  .ap-phone-img { width: 236px; animation: none; }
  .ap-float-1 { top: 40px; left: 4%; }
  .ap-float-2 { bottom: auto; top: 200px; right: 4%; }
}
/* Phones: the QR code is for scanning from a computer screen, so hide it here. */
@media (max-width: 960px), (pointer: coarse) { .ap-qr { display: none; } }
@media (max-width: 560px) {
  .ap-section { padding-left: 16px; padding-right: 16px; }
  .ap-panel { padding: 36px 20px 0; border-radius: 22px; }
  .ap-feats { grid-template-columns: 1fr; }
  .ap-badge { padding: 11px 24px 11px 18px; }
  .ap-float { padding: 8px 10px 8px 8px; }
  .ap-float-1 { left: 0; }
  .ap-float-2 { right: 0; }
  .ap-hero-link { font-size: .8rem; }
}
