/* MDG University - app site (mydigitalgroup.app)
   Brand: navy #1B2A4A | blue #1A56FF | teal #2BA4DC | light #F8FAFC | Inter
   Intentionally free of any pricing, plans or commercial terms. */

:root {
  --navy: #1B2A4A;
  --blue: #1A56FF;
  --blue-hover: #1445CC;
  --teal: #2BA4DC;
  --light: #F8FAFC;
  --light-2: #eef2f7;
  --border: #e2e8f0;
  --border-2: #cdd8e6;
  --body: #2D3A4A;
  --muted: #5b6b7d;
  --dim: #8a98a8;
  --white: #ffffff;
  --mint: #10B981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  max-width: 1120px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-univ { position: relative; padding-left: 13px; font-weight: 700; font-size: 16px; color: var(--navy); letter-spacing: -0.01em; }
.brand-univ::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 18px; background: var(--border-2); }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--navy); text-decoration: none; }
.nav .nav-cta {
  background: var(--blue); color: #fff; padding: 9px 18px; border-radius: 100px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(26,86,255,0.26);
}
.nav .nav-cta:hover { background: var(--blue-hover); color: #fff; }
@media (max-width: 700px) { .nav .nav-hide { display: none; } .nav { gap: 14px; } }
@media (max-width: 460px) { .brand-univ { display: none; } .brand-logo { height: 34px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 100px; font-weight: 700; font-size: 15px; transition: all .2s; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(26,86,255,0.28); }
.btn.primary:hover { background: var(--blue-hover); text-decoration: none; transform: translateY(-2px); }
.btn.ghost { border: 1px solid var(--border-2); color: var(--navy); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px 11px 17px;
  background: var(--navy); color: #fff; border-radius: 14px; transition: all .2s; position: relative;
}
.badge:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(27,42,74,0.22); }
.badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.badge .b-txt { line-height: 1.1; }
.badge .b-txt small { display: block; font-size: 10px; opacity: 0.78; font-weight: 500; letter-spacing: 0.02em; }
.badge .b-txt strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.soon-note { font-size: 13px; color: var(--dim); margin-top: 12px; font-weight: 500; }
.soon-note b { color: var(--teal); font-weight: 700; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; overflow: hidden; }
.lp-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(ellipse 720px 480px at 14% -4%, rgba(26,86,255,0.10), transparent),
    radial-gradient(ellipse 640px 460px at 96% 8%, rgba(43,164,220,0.12), transparent);
}
.lp-hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 70px 24px 72px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
@media (max-width: 900px) { .lp-hero-inner { grid-template-columns: 1fr; gap: 8px; padding: 48px 24px 56px; text-align: center; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); background: rgba(26,86,255,0.07);
  border: 1px solid rgba(26,86,255,0.2); border-radius: 100px; margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.lp-hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 900; color: var(--navy); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 22px; }
.lp-hero h1 .em { font-style: italic; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; background: linear-gradient(120deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-hero p.sub { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
@media (max-width: 900px) { .lp-hero p.sub { margin-left: auto; margin-right: auto; } .badges, .hero-actions { justify-content: center; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
@media (max-width: 900px) { .chips { justify-content: center; } }
.chip { font-size: 13px; font-weight: 700; color: var(--navy); background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 7px 15px; }

/* ---------- Phone mockup ---------- */
.lp-phone { display: flex; justify-content: center; }
.phone {
  width: 290px; height: 590px; background: #0e1424; border-radius: 44px; padding: 12px;
  box-shadow: 0 40px 90px rgba(27,42,74,0.30), inset 0 0 0 2px rgba(255,255,255,0.06);
  position: relative; animation: floaty 6s ease-in-out infinite;
}
@media (max-width: 900px) { .phone { margin-top: 36px; transform: scale(0.96); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 900px) { @keyframes floaty { 0%,100% { transform: scale(0.96) translateY(0); } 50% { transform: scale(0.96) translateY(-10px); } } }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #0e1424; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; background: var(--light); border-radius: 33px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.scr-top { padding: 26px 20px 14px; background: linear-gradient(160deg, var(--navy), #243a63); color: #fff; }
.scr-status { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; opacity: 0.85; margin-bottom: 16px; }
.scr-appbar { display: flex; align-items: center; justify-content: space-between; }
.scr-appbar .t { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.scr-appbar .t .lm { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--blue), var(--teal)); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; }
.scr-appbar .av { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.scr-greet { font-size: 12px; opacity: 0.8; margin-top: 14px; }
.continue { margin: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 15px; box-shadow: 0 8px 22px rgba(27,42,74,0.08); }
.continue .lbl { font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.continue .ct { font-size: 14px; font-weight: 800; color: var(--navy); margin: 6px 0 12px; line-height: 1.25; }
.progress { height: 7px; background: var(--light-2); border-radius: 100px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 100px; }
.continue .pmeta { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.scr-sec { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding: 4px 20px 8px; }
.lessons { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.lesson { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 11px 12px; }
.lesson .li { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.lesson .li.b { background: linear-gradient(135deg, var(--blue), #4f7dff); }
.lesson .li.t { background: linear-gradient(135deg, var(--teal), #5fc0ec); }
.lesson .li.n { background: linear-gradient(135deg, var(--navy), #3a527e); }
.lesson .li.g { background: linear-gradient(135deg, var(--mint), #34d399); }
.lesson .li svg { width: 17px; height: 17px; }
.lesson .lt { flex: 1; min-width: 0; }
.lesson .lt b { font-size: 12.5px; font-weight: 700; color: var(--navy); display: block; line-height: 1.25; }
.lesson .lt span { font-size: 10.5px; color: var(--muted); }
.lesson .done { color: var(--mint); width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 84px 24px; }
.section.alt { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.inner { max-width: 1120px; margin: 0 auto; }
.sec-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.sec-head .label { font-family: 'Inter', monospace; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; color: var(--navy); letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 14px; }
.sec-head h2 .em { font-style: italic; font-family: Georgia, serif; font-weight: 500; color: var(--blue); }
.sec-head p { font-size: 18px; color: var(--muted); }

/* feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; transition: all .25s; }
.section.alt .feat { background: #fff; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,42,74,0.09); border-color: var(--border-2); }
.feat .fic { width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, var(--blue), var(--teal)); display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 18px; }
.feat .fic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.feat p { font-size: 15px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: st; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--border); border-radius: 18px; counter-increment: st; }
.step::before { content: counter(st, decimal-leading-zero); font-family: 'Inter', monospace; font-size: 13px; font-weight: 800; color: #fff; background: var(--blue); width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(26,86,255,0.26); }
.step h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--muted); }

/* audience */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .aud-grid { grid-template-columns: 1fr; } }
.aud { border-radius: 18px; padding: 30px 26px; color: #fff; position: relative; overflow: hidden; }
.aud.t1 { background: linear-gradient(150deg, #1B2A4A, #2a4170); }
.aud.t2 { background: linear-gradient(150deg, #1A56FF, #4f7dff); }
.aud.t3 { background: linear-gradient(150deg, #1c84b4, #2BA4DC); }
.aud .ak { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-bottom: 10px; }
.aud h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.aud p { font-size: 14.5px; opacity: 0.92; }

/* quote */
.quote-wrap { padding: 30px 24px 88px; }
.quote { max-width: 1120px; margin: 0 auto; background: var(--navy); border-radius: 26px; padding: 64px 44px; text-align: center; position: relative; overflow: hidden; }
.quote::before { content: ''; position: absolute; top: -90px; left: -50px; width: 320px; height: 320px; border-radius: 50%; filter: blur(90px); background: rgba(43,164,220,0.34); }
.quote::after { content: ''; position: absolute; bottom: -90px; right: -50px; width: 320px; height: 320px; border-radius: 50%; filter: blur(90px); background: rgba(26,86,255,0.30); }
.quote p { font-family: Georgia, serif; font-style: italic; font-size: clamp(23px, 3.4vw, 38px); font-weight: 500; line-height: 1.28; color: #eaf1fb; max-width: 800px; margin: 0 auto; position: relative; z-index: 1; letter-spacing: -0.01em; }
.quote p .hl { color: #8fd0f0; font-style: normal; font-weight: 600; }

/* final cta */
.cta-final { text-align: center; padding: 84px 24px; }
.cta-final h2 { font-size: clamp(30px, 5vw, 50px); font-weight: 900; color: var(--navy); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; }
.cta-final p { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.cta-final .badges { justify-content: center; }

/* ---------- Legal / doc pages ---------- */
.wrap { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 900; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 10px; }
.doc .updated { font-size: 14px; color: var(--muted); margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.doc h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 38px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.doc p { margin-bottom: 14px; font-size: 16px; }
.doc ul { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; font-size: 16px; }
.doc strong { color: var(--navy); }
.doc .intro { font-size: 17px; color: var(--body); background: var(--light); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 12px; padding: 18px 22px; margin-bottom: 30px; }

/* support */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 34px; }
@media (max-width: 640px) { .support-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--light); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.contact-card .lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.contact-card .val { font-size: 19px; font-weight: 800; color: var(--navy); }
.contact-card .val a { color: var(--navy); }
.contact-card .sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.faq { border-top: 1px solid var(--border); padding-top: 8px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; color: var(--blue); font-weight: 800; margin-right: 10px; }
.faq details[open] summary::before { content: '\2212'; }
.faq p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--light); }
.site-footer .inner-f { max-width: 1120px; margin: 0 auto; padding: 34px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.site-footer .links a:hover { color: var(--navy); text-decoration: none; }
.site-footer .meta { font-size: 13px; color: var(--muted); }
.site-footer .tagline { font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: var(--teal); font-size: 14px; margin-top: 2px; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Contact form (support page) ---------- */
.contact-form-wrap { margin: 8px 0 20px; }
.cf-h { font-size: 22px; font-weight: 800; color: var(--navy); margin: 38px 0 6px; letter-spacing: -0.01em; }
.form-lead { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.cform { background: var(--light); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
@media (max-width: 520px) { .cform { padding: 20px; } }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .cf-row { grid-template-columns: 1fr; } }
.cf-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.cf-field label { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.req { color: var(--blue); }
.cform input[type="text"], .cform input[type="email"], .cform input[type="tel"], .cform select, .cform textarea {
  font-family: inherit; font-size: 15px; color: var(--body); background: #fff;
  border: 1px solid var(--border-2); border-radius: 11px; padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cform textarea { resize: vertical; min-height: 124px; }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,255,0.14);
}
.cform input::placeholder, .cform textarea::placeholder { color: var(--dim); }
.cform select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6b7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.phone-wrap { display: flex; align-items: stretch; }
.phone-cc { display: inline-flex; align-items: center; padding: 0 13px; background: var(--light-2); border: 1px solid var(--border-2); border-right: none; border-radius: 11px 0 0 11px; font-weight: 700; color: var(--muted); font-size: 14px; white-space: nowrap; }
.phone-wrap input { border-radius: 0 11px 11px 0; }
.cf-check { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 16px; font-size: 14px; color: var(--body); line-height: 1.5; cursor: pointer; }
.cf-check input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
.cf-check a { font-weight: 600; }
.cf-submit { width: 100%; background: var(--blue); color: #fff; border: none; border-radius: 100px; padding: 15px 24px; font-size: 16px; font-weight: 800; font-family: inherit; cursor: pointer; transition: background .2s ease, transform .15s ease; box-shadow: 0 8px 20px rgba(26,86,255,0.26); margin-top: 4px; }
.cf-submit:hover { background: var(--blue-hover); transform: translateY(-1px); }
.cf-submit:disabled { opacity: .65; cursor: default; transform: none; }
.cf-status { margin: 14px 0 0; font-size: 14.5px; font-weight: 600; }
.cf-status.ok { color: #047857; }
.cf-status.fail { color: #c2333a; }
.cf-status.fail a { color: #c2333a; font-weight: 700; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
