/* ===== Hero ===== */
.ap-hero{background:#fbfafd;padding:40px 16px 48px}
.ap-hero-inner{max-width:var(--max-width);margin:0 auto}
.ap-hero-title{font-size:32px;font-weight:700;color:#1f1b2e;line-height:1.22;margin-bottom:12px}
.ap-hero-desc{font-size:14px;color:#726982;line-height:1.57;margin-bottom:28px}
/* Hero phone — 3 decorative layers around app screenshot */
.ap-hero-phone-wrap{text-align:center}
.ap-hero-phone-glass{display:inline-block;backdrop-filter:blur(9px);background:rgba(253,251,255,0.62);border:1px solid rgba(232,225,241,0.95);border-radius:22px;box-shadow:0px 18px 42px -16px rgba(27,9,62,0.09);padding:13px}
.ap-hero-phone-panel{background:#f5f1fc;border-radius:26px;box-shadow:0px 20px 42px -12px rgba(27,9,62,0.16);padding:13px}
.ap-hero-phone-frame{position:relative;background:#fff;border:2px solid #ece5f6;border-radius:30px;box-shadow:0px 34px 36px rgba(27,9,62,0.18);margin:0 auto;padding:13px}
.ap-hero-phone-screen{background:#fff;border:1px solid rgba(222,211,238,0.9);border-radius:calc(30px - 13px);overflow:hidden}
.ap-hero-phone-img{display:block;width:100%;height:auto}

/* ===== Section Headings ===== */
.ap-section{padding:48px 16px}
.ap-section-inner{max-width:var(--max-width);margin:0 auto}
.ap-section-title{font-size:32px;font-weight:700;color:#1f1b2e;line-height:1.22;margin-bottom:8px}
.ap-section-desc{font-size:14px;color:#726982;line-height:1.57;margin-bottom:24px}

/* ===== Text Cards (Sections 2 & 4) — mobile ===== */
.ap-text-cards,.ap-academy-grid{display:flex;flex-direction:column;gap:14px}
.ap-academy-row{display:flex;flex-direction:column;gap:14px}
.ap-text-card{background:rgba(255,255,255,0.88);border:1px solid #eae2f7;border-radius:20px;padding:17px;box-shadow:0px 10px 12px rgba(56,20,122,0.05)}
.ap-text-card-title{font-size:17px;font-weight:700;color:#1f1b2e;line-height:1.29;margin-bottom:4px;padding-left:22px;position:relative}
.ap-text-card-title::before{content:"";position:absolute;left:0;top:7px;width:8px;height:8px;border-radius:50%;background:#35107a}
.ap-text-card-desc{font-size:12.8px;color:#726982;line-height:1.56;margin:0;padding-left:22px}

/* ===== Feature Cards (Section 3) — mobile ===== */
.ap-feature-cards{display:flex;flex-direction:column;gap:14px}
.ap-feature-card{display:flex;gap:17px;align-items:flex-start;border:1px solid #eae2f7;border-radius:20px;padding:23px 17px;box-shadow:0px 10px 12px rgba(56,20,122,0.05)}
.ap-feature-card:nth-child(1){background:linear-gradient(135deg,#f4efff,#faf7ff)}
.ap-feature-card:nth-child(2){background:linear-gradient(135deg,#e9f1ff,#faf7ff)}
.ap-feature-card:nth-child(3){background:linear-gradient(135deg,#fef3df,#faf7ff)}
.ap-feature-card:nth-child(4){background:linear-gradient(135deg,#f4efff,#faf7ff)}
.ap-feature-thumb{width:108px;height:170px;border-radius:18px;border:1px solid #eae2f7;object-fit:cover;object-position:top;flex-shrink:0}
.ap-feature-copy{flex:1;min-width:0}
.ap-feature-card .ap-feature-title{font-size:17px;font-weight:700;color:#1f1b2e;line-height:1.29;margin-bottom:8px}
.ap-feature-card .ap-feature-desc{font-size:12.8px;color:#726982;line-height:1.56;margin:0}

/* ===== Download Section (Section 5) — mobile ===== */
.ap-download{background:#faf8f4;padding:48px 16px}
.ap-download-panel{backdrop-filter:blur(9px);background:rgba(255,255,255,0.7);border-radius:26px;padding:34px 24px;box-shadow:0px 24px 52px -28px rgba(27,9,62,0.12);text-align:center}
.ap-download-title{font-size:24px;font-weight:700;color:#1f1b2e;line-height:1.42;margin-bottom:24px}
.ap-download-title-desktop{display:none}
.ap-download-qrs{display:none}
.ap-download-buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.ap-download-ios{display:inline-flex;align-items:center;height:40px}
.ap-download-ios img{height:40px;width:auto;display:block}
.ap-download-android{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 18px;border-radius:999px;font-size:12.5px;font-weight:700;text-decoration:none;background:rgba(255,255,255,0.84);border:1px solid #eae2f7;color:#35107a;box-shadow:0px 4px 12px -8px rgba(56,20,122,0.03)}
.ap-download-android svg{width:24px;height:24px;flex-shrink:0}

/* ===== Footer CTA ===== */
.ap-cta{background:linear-gradient(135deg,#35107a,#6a35d7);border-radius:28px;padding:36px;margin:0 16px 48px;box-shadow:0px 18px 36px -8px rgba(56,20,122,0.13)}
.ap-cta-title{font-size:23px;font-weight:700;color:#fff;line-height:1.26;margin-bottom:12px}
.ap-cta-desc{font-size:13px;color:#fff;line-height:1.54;margin-bottom:20px}
.ap-cta-btn{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 22px;border-radius:999px;font-size:12.5px;font-weight:700;text-decoration:none;background:rgba(255,255,255,0.84);border:1px solid #eae2f7;color:#35107a;box-shadow:0px 4px 12px -8px rgba(56,20,122,0.03);transition:opacity .2s}
.ap-cta-btn:active{opacity:.8}

/* ===== Desktop: >=768px ===== */
@media(min-width:768px){
	/* Hero — two columns with phone mockup */
	.ap-hero{padding:78px 80px 72px}
	.ap-hero-inner{display:flex;align-items:center;justify-content:space-between;gap:60px}
	.ap-hero-copy{flex:0 0 620px;max-width:620px}
	.ap-hero-title{font-size:58px;line-height:1.07;margin-bottom:22px;color:#17101f}
	.ap-hero-desc{font-size:19px;line-height:1.63;margin-bottom:0;color:#6e647c}
	.ap-hero-phone-wrap{flex:0 0 448px;max-width:448px}
	.ap-hero-phone-glass{padding:27px;border-radius:22px}
	.ap-hero-phone-panel{padding:21px}
	.ap-hero-phone-frame{border-radius:46px;max-width:261px}
	.ap-hero-phone-screen{border-radius:calc(46px - 13px)}

	/* Sections */
	.ap-section{padding:72px 80px 78px}
	.ap-section-title{font-size:42px;line-height:1.17;margin-bottom:12px;color:#17101f}
	.ap-section-desc{font-size:18px;line-height:1.67;margin-bottom:42px;color:#6e647c}

	/* Text cards — 4-column grid (Section 2) */
	.ap-text-cards{display:flex;flex-direction:row;flex-wrap:wrap;gap:24px}
	.ap-text-cards>.ap-text-card{flex:0 0 calc((100% - 72px) / 4);max-width:calc((100% - 72px) / 4)}
	.ap-text-card{padding:28px;border-radius:22px;background:rgba(255,255,255,0.68);border-color:rgba(232,225,241,0.95);box-shadow:0px 18px 42px -16px rgba(27,9,62,0.09)}
	.ap-text-cards>.ap-text-card:nth-child(even){background:rgba(247,242,255,0.76)}
	.ap-text-card-title{font-size:22px;line-height:1.27;margin-bottom:16px;padding-left:0}
	.ap-text-card-title::before{display:none}
	.ap-text-card-desc{font-size:15px;line-height:1.53;padding-left:0}

	/* Feature cards — 2x2 grid */
	.ap-feature-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
	.ap-feature-card{border-radius:24px;padding:26px;gap:24px;border-color:rgba(232,225,241,0.95);box-shadow:0px 18px 42px -16px rgba(27,9,62,0.08)}
	.ap-feature-card:nth-child(odd){background:rgba(247,242,255,0.76)}
	.ap-feature-card:nth-child(even){background:rgba(255,255,255,0.68)}
	.ap-feature-thumb{width:178px;height:360px;border-radius:28px;border-color:#d1c2e8;box-shadow:0px 16px 34px -16px rgba(27,9,62,0.1)}
	.ap-feature-card .ap-feature-title{font-size:28px;line-height:1.21;margin-bottom:16px}
	.ap-feature-card .ap-feature-desc{font-size:16px;line-height:1.63}

	/* Academy cards — row 1: 3-col, row 2: 4-col */
	.ap-academy-grid{display:flex;flex-direction:column;gap:24px}
	.ap-academy-row{display:flex;flex-direction:row;gap:24px}
	.ap-academy-row .ap-text-card{flex:1}
	.ap-academy-row .ap-text-card:nth-child(even){background:rgba(255,255,255,0.68)}
	.ap-academy-row .ap-text-card:nth-child(odd){background:rgba(247,242,255,0.76)}
	.ap-academy-row:first-child .ap-text-card{max-width:405px}
	.ap-academy-row:last-child .ap-text-card{max-width:300px}

	/* Download section — large glass panel */
	.ap-download{padding:84px 96px}
	.ap-download-panel{border-radius:30px;padding:52px 46px;display:flex;align-items:center;justify-content:space-between;text-align:left}
	.ap-download-title{font-size:36px;line-height:1.28;max-width:500px;margin-bottom:0}
	.ap-download-qrs{display:flex;gap:40px;flex-shrink:0}
	.ap-download-qr-card{display:block;text-align:center;text-decoration:none;width:212px}
	.ap-download-qr-img{display:block;width:156px;height:156px;border-radius:18px;background:#fff;border:1px solid rgba(53,16,122,0.16);margin:0 auto 18px}
	.ap-download-qr-card .ap-download-qr-label{display:block;font-size:16px;font-weight:700;color:#191321;line-height:1.38;margin-bottom:4px}
	.ap-download-qr-sublabel{font-size:12px;color:#6f687a;line-height:1.5;display:block}
	.ap-download-buttons{display:none}
	.ap-download-title-desktop{display:inline}
	.ap-download-title-mobile{display:none}

	/* Footer CTA — full-width bar */
	.ap-cta{background:#35107a;border-radius:0;margin:0;padding:54px 80px;box-shadow:none;display:flex;align-items:center;justify-content:space-between}
	.ap-cta-copy{flex:1}
	.ap-cta-title{font-size:30px;line-height:1.17;margin-bottom:10px}
	.ap-cta-desc{font-size:16px;color:#ede6ff;line-height:1.56;margin-bottom:0;max-width:820px}
	.ap-cta-btn{height:auto;padding:10px 18px;font-size:15px;background:rgba(255,255,255,0.72)}
}
