/* Public landing only (Duolingo-style layout, Medicon XP brand). Shared installer/admin styles are unchanged. */
@font-face { font-family:"MX Nunito"; src:url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); font-weight:600; font-display:swap }
@font-face { font-family:"MX Nunito"; src:url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight:700; font-display:swap }
@font-face { font-family:"MX Nunito"; src:url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); font-weight:800; font-display:swap }
@font-face { font-family:"MX Nunito"; src:url("../fonts/nunito-latin-900-normal.woff2") format("woff2"); font-weight:900; font-display:swap }

.landing-page {
    --mx-blue:#1CA0F2; --mx-blue-shadow:#1689CF; --mx-blue-deep:#0F6FC2; --mx-blue-soft:#DDF4FF;
    --mx-ink:#4B4B4B; --mx-text:#777777; --mx-line:#E5E5E5; --mx-bg-soft:#F7F7F7;
    margin:0; background:#fff; color:var(--mx-ink);
    font:700 17px/1.6 "MX Nunito","Nunito",ui-rounded,"SF Pro Rounded",system-ui,sans-serif;
    -webkit-font-smoothing:antialiased; scroll-padding-top:90px; overflow-x:hidden;
}
.landing-page *, .landing-page *::before, .landing-page *::after { box-sizing:border-box }
.landing-page a { text-decoration:none }
.landing-page img { max-width:100%; height:auto; display:block }
.landing-page :is(h1,h2,h3) { margin:0; letter-spacing:-.01em }
.landing-page p { margin:0; color:var(--mx-text); font-weight:600 }
.landing-page :is(a,button):focus-visible { outline:3px solid var(--mx-blue); outline-offset:4px; border-radius:16px }
.landing-page .skip-link { position:absolute; left:-9999px }
.landing-page .skip-link:focus { left:16px; top:16px; z-index:99; background:#fff; padding:8px 14px; border-radius:12px }
.mx-shell { width:100%; max-width:1080px; margin:0 auto; padding-inline:24px }

/* Header */
.mx-header { position:sticky; top:0; z-index:30; background:#fff; border-bottom:2px solid var(--mx-line) }
.mx-header-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:72px }
.mx-brand { display:inline-flex; align-items:center; gap:8px; color:var(--mx-blue); font-size:32px; font-weight:900; letter-spacing:-1.4px; line-height:1 }
.mx-brand img { width:44px; height:44px }
.mx-brand-xp { margin-left:4px }
.mx-header-nav { display:flex; align-items:center; gap:22px; font-size:14px; font-weight:800; text-transform:uppercase; letter-spacing:.04em }
.mx-header-nav a { color:#AFAFAF }
.mx-header-nav a:hover { color:var(--mx-blue) }
.mx-header-nav .mx-header-cta { color:var(--mx-blue) }
.mx-language { color:#AFAFAF; white-space:nowrap }
.mx-language b { color:#AFAFAF; font-weight:800 }

/* Buttons — Duolingo 3D style */
.mx-btn { display:flex; align-items:center; justify-content:center; width:100%; min-height:50px; padding:13px 24px; border-radius:16px; border:2px solid transparent; border-bottom-width:5px; font-size:15px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; line-height:1.2; text-align:center; cursor:pointer; transition:filter .12s,transform .06s,border-bottom-width .06s }
.mx-btn:active { transform:translateY(3px); border-bottom-width:2px; margin-bottom:3px }
.mx-btn-primary { background:var(--mx-blue); border-color:var(--mx-blue); border-bottom-color:var(--mx-blue-shadow); color:#fff }
.mx-btn-primary:hover { filter:brightness(1.06); color:#fff }
.mx-btn-secondary { background:#fff; border-color:var(--mx-line); color:var(--mx-blue) }
.mx-btn-secondary:hover { background:var(--mx-bg-soft); color:var(--mx-blue) }
.mx-btn-white { background:#fff; border-color:#fff; border-bottom-color:#C6E9FF; color:var(--mx-blue-deep); max-width:340px; margin:0 auto }
.mx-btn-white:hover { filter:brightness(.98); color:var(--mx-blue-deep) }

/* Hero */
.mx-hero { display:grid; grid-template-columns:1.05fr 1fr; align-items:center; gap:56px; min-height:calc(100vh - 160px); max-height:760px; padding-block:48px }
.mx-hero-art { position:relative; display:grid; place-items:center; isolation:isolate; aspect-ratio:1 }
.mx-hero-blob { position:absolute; inset:8% 6% 6% 8%; z-index:-1; background:var(--mx-blue-soft); border-radius:46% 54% 58% 42% / 52% 44% 56% 48%; animation:mx-blob 14s ease-in-out infinite alternate }
.mx-hero-panda { width:84%; filter:drop-shadow(0 18px 24px rgb(15 111 194 / 14%)); animation:mx-bob 4.5s ease-in-out infinite }
.mx-chip { position:absolute; display:grid; place-items:center; background:#fff; border:2px solid var(--mx-line); border-bottom-width:4px; border-radius:18px; font-size:28px; line-height:1; padding:12px; animation:mx-float 5s ease-in-out infinite }
.mx-chip-heart { top:10%; right:6%; transform:rotate(8deg) }
.mx-chip-fire { bottom:16%; left:2%; transform:rotate(-8deg); animation-delay:-1.6s }
.mx-chip-xp { top:22%; left:0; font-size:17px; font-weight:900; color:#FFB100; padding:12px 16px; animation-delay:-3s }
.mx-hero-copy { text-align:center; max-width:440px; justify-self:center }
.mx-hero-copy h1 { font-size:clamp(26px,3vw,33px); line-height:1.3; font-weight:800; color:var(--mx-ink); margin-bottom:36px }
.mx-hero-actions { display:grid; gap:14px; max-width:350px; margin:0 auto }

/* Subjects strip */
.mx-subjects { border-block:2px solid var(--mx-line) }
.mx-subjects-row { display:flex; justify-content:space-between; gap:18px; padding-block:20px; overflow-x:auto; scrollbar-width:none }
.mx-subjects-row::-webkit-scrollbar { display:none }
.mx-subject { display:inline-flex; align-items:center; gap:10px; flex:none; color:#777; font-size:15px; font-weight:800; text-transform:uppercase; letter-spacing:.06em }
.mx-subject > span { font-size:26px }

/* Feature sections */
.mx-feature { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:64px; padding-block:88px; border-bottom:2px solid var(--mx-line) }
.mx-feature:last-of-type { border-bottom:0 }
.mx-feature-flip .mx-feature-copy { order:2 }
.mx-feature h2 { color:var(--mx-blue); font-size:clamp(34px,4.6vw,48px); line-height:1.12; font-weight:900; margin-bottom:22px }
.mx-feature p { font-size:18px; line-height:1.65 }
.mx-feature-art { display:grid; place-items:center }
.mx-feature-art img { width:min(380px,100%) }

/* Download */
.mx-download { background:var(--mx-blue-soft); border-block:2px solid #C6E9FF }
.mx-download-inner { display:grid; grid-template-columns:1fr 1.1fr; align-items:center; gap:56px; padding-block:72px }
.mx-download-art img { width:min(360px,100%); margin:0 auto }
.mx-download h2 { color:var(--mx-blue-deep); font-size:clamp(32px,4.2vw,46px); line-height:1.12; font-weight:900; margin-bottom:18px }
.mx-download p { color:#3D6F94; font-size:18px; margin-bottom:28px }
.mx-stores { display:flex; flex-wrap:wrap; gap:14px }
.mx-store { display:inline-flex; align-items:center; gap:12px; min-width:200px; padding:10px 22px 10px 16px; background:#111; color:#fff; border:2px solid #111; border-bottom:5px solid #000; border-radius:16px; transition:transform .06s,filter .12s }
.mx-store:hover { color:#fff; filter:brightness(1.25) }
.mx-store:active { transform:translateY(3px); border-bottom-width:2px; margin-bottom:3px }
.mx-store-icon { width:30px; height:30px; flex:none }
.mx-store span { display:grid; line-height:1.15; text-align:left }
.mx-store small { font-size:12px; font-weight:700; opacity:.85 }
.mx-store strong { font-size:19px; font-weight:900; letter-spacing:-.01em }

/* Audience */
.mx-audience { padding-block:88px; text-align:center }
.mx-audience h2 { color:var(--mx-blue); font-size:clamp(32px,4vw,44px); font-weight:900; margin-bottom:40px }
.mx-audience-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; text-align:left }
.mx-audience article { border:2px solid var(--mx-line); border-bottom-width:5px; border-radius:20px; padding:26px 24px }
.mx-audience article > span { font-size:40px; line-height:1 }
.mx-audience h3 { font-size:20px; font-weight:900; color:var(--mx-ink); margin:14px 0 8px }
.mx-audience article p { font-size:16px }

/* Final CTA */
.mx-final { background:var(--mx-blue); text-align:center; padding-block:84px }
.mx-final h2 { color:#fff; font-size:clamp(32px,4.4vw,50px); line-height:1.12; font-weight:900; margin:0 auto 36px; max-width:720px }

/* Footer */
.mx-footer { background:var(--mx-blue-deep); color:#fff; padding-block:56px 40px }
.mx-footer-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; padding-bottom:36px; border-bottom:2px solid rgb(255 255 255 / 20%) }
.mx-footer h3 { color:#fff; font-size:19px; font-weight:900; margin-bottom:14px }
.mx-footer-grid a { display:block; color:rgb(255 255 255 / 86%); font-weight:700; font-size:15px; padding:4px 0 }
.mx-footer-grid a:hover { color:#fff }
.mx-footer-bottom { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding-top:28px }
.mx-footer-brand { font-size:26px; font-weight:900; letter-spacing:-1px }
.mx-footer-brand span { margin-left:3px }
.mx-footer small { color:rgb(255 255 255 / 75%); font-size:13px; font-weight:600; max-width:560px }

@keyframes mx-bob { 50% { transform:translateY(-10px) } }
@keyframes mx-float { 50% { translate:0 -8px } }
@keyframes mx-blob { to { border-radius:56% 44% 42% 58% / 44% 58% 42% 56% } }
@media (prefers-reduced-motion: reduce) { .landing-page * { animation:none !important; transition:none !important } }

/* Tablet */
@media (max-width: 900px) {
    .mx-hero { grid-template-columns:1fr; min-height:0; max-height:none; gap:24px; padding-block:28px 48px }
    .mx-hero-art { max-width:420px; width:100%; margin:0 auto }
    .mx-feature, .mx-download-inner { grid-template-columns:1fr; gap:28px; padding-block:64px; text-align:center }
    .mx-feature-flip .mx-feature-copy { order:0 }
    .mx-feature-art img { width:min(280px,80%) }
    .mx-download-art img { width:min(260px,70%) }
    .mx-stores { justify-content:center }
    .mx-audience-grid { grid-template-columns:1fr; max-width:520px; margin:0 auto }
    .mx-header-nav a:not(.mx-header-cta) { display:none }
}
/* Phone */
@media (max-width: 560px) {
    .mx-shell { padding-inline:18px }
    .mx-header-inner { min-height:62px }
    .mx-brand { font-size:26px }
    .mx-brand img { width:36px; height:36px }
    .mx-language { display:none }
    .mx-chip { font-size:22px; padding:9px }
    .mx-chip-xp { font-size:14px }
    .mx-subjects-row { justify-content:flex-start }
    .mx-feature p, .mx-download p { font-size:16px }
    .mx-store { flex:1 1 100%; justify-content:center }
    .mx-footer-grid { grid-template-columns:1fr; gap:22px }
}
