/* eLearning app page (template-elearning-app-v2.php). Builds on cpd-v2 + home-v2 + lms-v2; only page-specific pieces live here. */

/* Proof panel: three highlight figures, no logo row */
.app2-proof .home2-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Headings: single column, lead under the title */
.app2-band-head, .app2-head { max-width: 1040px; }
.app2 .app2-head + .app2-native,
.app2 .app2-head + .app2-types,
.app2 .app2-head + .app2-steps { margin-top: 40px; }
.app2 .app2-roles-head + .app2-roles { padding-top: 40px; }

/* Native app: three promises + phone mock-up */
.app2-native { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.app2-benefits { display: flex; flex-direction: column; gap: 1px; background: var(--cpd-line); border: 1px solid var(--cpd-line); border-radius: 22px; overflow: hidden; }
.app2-benefit { flex: 1; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; row-gap: 4px; align-content: center; padding: 24px 28px; background: var(--cpd-white); }
.app2 .app2-benefit__icon { grid-row: span 2; width: 44px; height: 44px; display: block; }
.app2 .app2-benefit__title { font-size: 20px; line-height: 26px; font-weight: 500; letter-spacing: -.02em; color: var(--cpd-ink); }
.app2-benefit > span { font-size: 15px; line-height: 23px; color: var(--cpd-muted); }

.app2-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; padding: 36px 24px 84px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, #2A2A2A 0%, var(--cpd-ink) 60%); overflow: hidden; }
.app2-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 32px 32px; }
.app2-phone { position: relative; width: 236px; padding: 10px; border-radius: 38px; background: #0E0E0E; box-shadow: 0 0 0 2px #3A3A3A, 0 30px 60px -20px rgba(0, 0, 0, .7); }
.app2-phone__screen { position: relative; display: flex; flex-direction: column; gap: 10px; height: 420px; padding: 14px 12px; border-radius: 30px; background: #F4F4F5; overflow: hidden; }
.app2-phone__status { display: flex; justify-content: space-between; align-items: center; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--cpd-ink); }
.app2-phone__offline { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: var(--cpd-ink); color: var(--cpd-white); font-size: 10px; font-weight: 500; }
.app2-phone__offline i { width: 6px; height: 6px; border-radius: 50%; background: var(--cpd-amber); }
.app2-phone__push { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .95); box-shadow: 0 8px 20px -10px rgba(16, 24, 40, .35); animation: app2-push 6s cubic-bezier(.16, 1, .3, 1) infinite; }
.app2-phone__push-icon { flex: none; width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--cpd-red); color: var(--cpd-white); font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.app2-phone__push strong { display: block; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--cpd-ink); }
.app2-phone__push em { display: block; font-style: normal; font-size: 10px; line-height: 13px; color: var(--cpd-muted); }
@keyframes app2-push { 0%, 8% { opacity: 0; transform: translateY(-16px); } 16%, 78% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(-16px); } }
.app2-phone__title { margin-top: 4px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--cpd-ink); }
.app2-phone__card { display: grid; grid-template-columns: 44px 1fr; gap: 6px 10px; padding: 10px; border-radius: 12px; background: var(--cpd-white); }
.app2-phone__thumb { grid-row: span 2; height: 44px; border-radius: 9px; background: linear-gradient(135deg, #F0334A 0%, #D41028 100%); }
.app2-phone__thumb--b { background: linear-gradient(135deg, #4A4A4A 0%, #1C1C1C 100%); }
.app2-phone__lines { display: flex; flex-direction: column; gap: 5px; padding-top: 4px; }
.app2-phone__lines b, .app2-phone__lines i { display: block; height: 6px; border-radius: 3px; background: #D9D9DC; }
.app2-phone__lines b { width: 85%; background: #BDBDC2; }
.app2-phone__lines i { width: 55%; }
.app2-phone__bar { align-self: end; height: 5px; border-radius: 3px; background: #ECECEE; overflow: hidden; }
.app2-phone__bar span { display: block; width: var(--w); height: 100%; border-radius: 3px; background: var(--cpd-red); }
.app2-phone__sync { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--cpd-white); font-size: 10.5px; line-height: 14px; color: var(--cpd-ink-2); }
.app2-phone__spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #E5E5E7; border-top-color: var(--cpd-red); animation: app2-spin 1.2s linear infinite; }
@keyframes app2-spin { to { transform: rotate(360deg); } }
.app2-stage__lms { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; line-height: 18px; color: var(--cpd-white); white-space: nowrap; }
.app2-stage__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cpd-green); box-shadow: 0 0 0 4px rgba(0, 182, 122, .2); }

/* Types of apps: 4 x 2 tiles */
.app2-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.app2-type { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 22px; border-radius: 16px; background: var(--cpd-white); border: 1px solid var(--cpd-line); transition: border-color .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.app2-type:hover { border-color: rgba(212, 16, 40, .45); transform: translateY(-2px); }
.app2-type__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(212, 16, 40, .08); color: var(--cpd-red); }
.app2 .app2-type__name { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.02em; color: var(--cpd-ink); }
.app2-type__num { position: absolute; top: 22px; right: 22px; font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .08em; color: var(--cpd-muted-2); }

/* Roles window: one picture per role */
.app2-shot { border-radius: 12px; overflow: hidden; background: #1C1C1C; }
.app2 .app2-shot img { display: block; width: 100%; height: auto; }

/* Process: five short steps */
.app2 .app2-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; }
.app2 .app2-steps .cpdv2-step { padding-right: 0; }
.app2 #how .cpdv2-inline-cta { margin-top: 48px; }

/* Why us: four light cards on the red band */
.app2-trust-band { margin-top: var(--cpd-section); }
.app2-trust-band .cpdv2-h2 { color: var(--cpd-white); }
.app2-trust-band .cpdv2-h2 .cpdv2-accent { color: #FFEDD5; }
.app2-trust-band .cpdv2-lead { color: var(--cpd-white); }
.app2-trust-band .cpdv2-kicker { background: rgba(255, 255, 255, .16); color: var(--cpd-white); }
.app2-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.app2-trust__card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 12px; background: linear-gradient(180deg, #FFFDF8 0%, #FFF5E7 100%); }
.app2-trust__num { font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -.03em; color: var(--cpd-red); margin-bottom: 16px; }
.app2 .app2-trust__title { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -.02em; color: var(--cpd-ink); }
.app2-trust__card > span:last-child { font-size: 15px; line-height: 23px; color: var(--cpd-muted); }

@media (prefers-reduced-motion: reduce) {
    .app2-phone__push, .app2-phone__spin { animation: none; }
}

@media (max-width: 1100px) {
    .app2-proof .home2-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .app2-proof .home2-stat:nth-child(3) { border-left: 1px solid var(--cpd-line); border-top: 0; }
    .app2-native { grid-template-columns: 1fr; }
    .app2-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app2 .app2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .app2-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Tabs stack above the window here, so the window's chips would repeat the tab's "What you get" list */
    .app2-roles .cpdv2-window .cpdv2-chips { display: none; }
}
@media (max-width: 768px) {
    .app2-proof .home2-stats { grid-template-columns: 1fr; }
    .app2-proof .home2-stat + .home2-stat, .app2-proof .home2-stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--cpd-line); }
    .app2-benefit { padding: 20px; column-gap: 14px; grid-template-columns: 40px 1fr; }
    .app2 .app2-benefit__icon { width: 40px; height: 40px; }
    .app2 .app2-benefit__title { font-size: 18px; line-height: 24px; }
    .app2-stage { min-height: 0; padding: 28px 16px 80px; }
    .app2-types { gap: 8px; }
    .app2-type { gap: 18px; padding: 16px; }
    .app2 .app2-type__name { font-size: 15px; line-height: 20px; }
    .app2-type__num { top: 16px; right: 16px; }
    .app2-type__icon { width: 38px; height: 38px; }
    .app2 .app2-steps { grid-template-columns: 1fr; row-gap: 0; }
    .app2-trust { grid-template-columns: 1fr; gap: 10px; }
    .app2-trust__card { padding: 22px; }
    .app2-trust__num { font-size: 32px; margin-bottom: 8px; }
}
