/* AcademyLab — Executive Premium Mobile App Download section
   Scoped to .mad-* so no existing homepage section is affected. */

.mad-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 78px 0 92px;
  background-color: #f7fcfa;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
  --mad-green: #024430;
  --mad-emerald: #068a5f;
  --mad-mint: #bff2d9;
  --mad-ink: #0c2620;
  --mad-muted: #4f6a60;
  --mad-surface: #ffffff;
  --mad-line: rgba(2, 68, 48, .12);
  --mad-footer-gap: 128px; /* 40px spacer + 88px footer newsletter reserve */
}
.mad-section--spacing-compact { padding: 52px 0 64px; }
.mad-section--spacing-large { padding: 104px 0 118px; }

.mad-section--soft { background-color: #f7fcfa; }
.mad-section--solid { background-color: #eef8f2; }
.mad-section--plain { background-color: var(--body-bg); }
.mad-section--solid .mad-title,
.mad-section--solid .mad-description { color: var(--mad-ink); }

/* Decorative background */
.mad-dots {
  position: absolute; top: 26px; left: 3%;
  width: 188px; height: 118px;
  background-image: radial-gradient(rgba(6, 138, 95, .34) 2.2px, transparent 2.2px);
  background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 78%);
  mask-image: linear-gradient(135deg, #000, transparent 78%);
  opacity: .8;
  pointer-events: none;
}
.mad-arc { position: absolute; pointer-events: none; z-index: 0; }
.mad-arc--one {
  right: -18%; top: -42%;
  width: 82%; height: 158%;
  border-radius: 48% 52% 50% 50%;
  background: linear-gradient(150deg, rgba(102, 217, 160, .62) 0%, rgba(6, 214, 160, .22) 46%, rgba(255, 255, 255, 0) 72%);
  transform: rotate(-16deg);
}
.mad-arc--two {
  right: -26%; bottom: -66%;
  width: 100%; height: 134%;
  border-radius: 50% 0 0 0;
  background: linear-gradient(128deg, #024430 0%, #057a56 38%, #10a16f 66%, #6fd8b7 100%);
  transform: rotate(-7deg);
  box-shadow: -18px -12px 60px rgba(2, 68, 48, .16);
}
.mad-arc--three {
  right: -8%; bottom: -52%;
  width: 74%; height: 92%;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(6, 214, 160, .55), rgba(2, 68, 48, .08) 70%);
  opacity: .7;
}

.mad-container { position: relative; z-index: 2; }
.mad-layout {
  display: flex;
  align-items: center;
  gap: 3%;
  min-height: 470px;
}
.mad-section--reverse .mad-layout { flex-direction: row-reverse; }
.mad-copy { flex: 0 0 56%; max-width: 56%; position: relative; z-index: 3; }
.mad-showcase { flex: 1 1 auto; position: relative; z-index: 2; min-height: 500px; }

/* Brand */
.mad-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.mad-brand__mark {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, #024430, #068a5f);
  color: #bff2d9;
  box-shadow: 0 8px 18px rgba(2, 68, 48, .22);
}
.mad-brand__mark .mad-icon svg { width: 22px; height: 22px; }
.mad-brand__logo { width: auto; height: 38px; max-width: 150px; object-fit: contain; }
.mad-brand__name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--mad-green); }
body.dark-mode .mad-brand__name { color: #f2f7f4; }

/* Pill */
.mad-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px 9px 12px;
  border: 1px solid rgba(6, 138, 95, .18);
  border-radius: 999px;
  background: rgba(191, 242, 217, .55);
  color: #025c3f;
  font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.mad-pill__icon { display: flex; }
.mad-pill__icon .mad-icon svg { width: 18px; height: 18px; }
body.dark-mode .mad-pill { background: rgba(6, 138, 95, .22); border-color: rgba(111, 216, 183, .32); color: #6fd8b7; }

/* Headline */
.mad-title {
  margin: 18px 0 0;
  max-width: 660px;
  font-size: clamp(42px, 3.7vw, 60px);
  line-height: 1.07;
  letter-spacing: -.035em;
  font-weight: 800;
  color: var(--mad-green);
}
.mad-title__accent { color: var(--mad-emerald); }
body.dark-mode .mad-title { color: #f2f7f4; }
body.dark-mode .mad-title__accent { color: #6fd8b7; }

.mad-description {
  margin: 24px 0 0;
  max-width: 610px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--mad-muted);
}
body.dark-mode .mad-description { color: #a8c4ba; }
.mad-support { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--mad-emerald); }
body.dark-mode .mad-support { color: #6fd8b7; }

/* Store buttons */
.mad-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.mad-store-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 234px; min-height: 78px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: linear-gradient(135deg, #024430 0%, #03694a 100%);
  color: #fffdf9;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(2, 68, 48, .26);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}
.mad-store-btn:hover,
.mad-store-btn:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(2, 68, 48, .34);
  filter: brightness(1.06);
  color: #fffdf9 !important;
  outline: none;
}
.mad-store-btn:focus-visible { box-shadow: 0 0 0 3px rgba(111, 216, 183, .65), 0 20px 38px rgba(2, 68, 48, .3); }
.mad-store-btn--ios { background: linear-gradient(135deg, #04392a 0%, #025c40 100%); }
.mad-store-btn.is-soon { opacity: .7; cursor: default; border-style: dashed; box-shadow: none; }
.mad-store-btn.is-soon:hover,
.mad-store-btn.is-soon:focus-visible { transform: none; box-shadow: none; }
.mad-store-btn__icon {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 42px; width: 42px; height: 42px;
  color: #fffdf9;
}
.mad-store-btn__icon .mad-icon svg { width: 36px; height: 36px; }
.mad-store-btn__text { display: flex; flex-direction: column; gap: 1px; line-height: 1.12; }
.mad-store-btn__top { font-size: 11px; font-weight: 600; opacity: .85; }
.mad-store-btn__bottom { font-size: 20px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.mad-store-btn__soon {
  position: absolute; top: -9px; right: 12px;
  padding: 3px 9px; border-radius: 999px;
  background: #ffd166; color: #3a2a06;
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.mad-store-btn__arrow { display: flex; margin-left: auto; opacity: .9; }
.mad-store-btn__arrow .mad-icon svg { width: 26px; height: 26px; }
body.dark-mode .mad-store-btn { border-color: rgba(111, 216, 183, .28); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }

/* QR */
.mad-qr { display: inline-flex; align-items: center; gap: 18px; margin-top: 30px; }
.mad-qr__tile {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 104px; width: 104px; height: 104px;
  padding: 8px;
  border: 2px solid rgba(6, 138, 95, .28);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(2, 68, 48, .12);
  text-decoration: none;
  transition: transform .25s ease;
}
a.mad-qr__tile:hover { transform: translateY(-3px); }
.mad-qr__tile img,
.mad-qr__svg { display: block; width: 100%; height: 100%; }
.mad-qr__svg svg { width: 100% !important; height: 100% !important; }
.mad-qr__divider { width: 1px; height: 68px; background: var(--mad-line); }
.mad-qr__copy { display: flex; flex-direction: column; gap: 6px; max-width: 210px; }
.mad-qr__title { font-size: 18px; font-weight: 800; color: var(--mad-ink); }
.mad-qr__desc { font-size: 14px; line-height: 1.5; color: var(--mad-muted); }
body.dark-mode .mad-qr__tile { background: #101b18; border-color: rgba(111, 216, 183, .3); }
body.dark-mode .mad-qr__title { color: #f2f7f4; }
body.dark-mode .mad-qr__desc { color: #a8c4ba; }
body.dark-mode .mad-qr__svg svg rect[fill="#fff"],
body.dark-mode .mad-qr__svg svg path[fill="#fff"] { fill: #101b18; }

.mad-promo { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 13px; font-weight: 600; color: var(--mad-emerald); }
.mad-promo .mad-icon { display: flex; }
.mad-promo .mad-icon svg { width: 18px; height: 18px; }
body.dark-mode .mad-promo { color: #6fd8b7; }

/* Showcase */
.mad-podium {
  position: absolute;
  left: 6%; right: -6%; bottom: 12%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(2, 68, 48, .65) 0%, rgba(6, 138, 95, .42) 46%, rgba(111, 216, 183, 0) 74%);
  filter: blur(2px);
}
.mad-student {
  position: absolute; inset: 6% 4% 18% 8%;
  margin: 0;
  border-radius: 40px;
  overflow: hidden;
  opacity: .34;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 76%);
}
.mad-student img { width: 100%; height: 100%; object-fit: cover; }
.mad-devices {
  position: relative;
  width: 100%; height: 100%;
  min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  transform-origin: center center;
}
.mad-phone {
  position: absolute;
  width: 258px; height: 522px;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(150deg, #4b5c56 0%, #0e1a17 38%, #1d2b26 72%, #556661 100%);
  box-shadow: 0 34px 60px rgba(2, 40, 28, .38), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.mad-phone__frame {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #fffdf9;
}
.mad-phone__island {
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 24px;
  border-radius: 999px;
  background: #0b1513;
  z-index: 6;
}
.mad-phone__screen-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 3D artwork mode: the supplied illustration already contains the device body,
   shadow and screen, so the CSS frame and island are removed to avoid doubling. */
.mad-phone--art {
  width: 258px; height: 516px;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.mad-phone--art .mad-phone__frame {
  border-radius: 0;
  overflow: visible;
  background: none;
}
.mad-phone--art .mad-phone__island { display: none; }
.mad-phone--art .mad-phone__screen-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 0;
  filter: none;
}
.mad-phone--brand {
  transform: translate(27%, -7%) rotate(-9deg);
  z-index: 2;
}
.mad-phone--app {
  transform: translate(-13%, 5%) rotate(6deg);
  z-index: 3;
}
.mad-section--reverse .mad-phone--brand { transform: translate(-27%, -7%) rotate(9deg); }
.mad-section--reverse .mad-phone--app { transform: translate(13%, 5%) rotate(-6deg); }

/* Brand phone screen */
.mad-brand-screen {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 42%, #076347 0%, #034430 46%, #012d21 100%);
  color: #f2f7f4;
  overflow: hidden;
}
.mad-brand-screen__glow {
  position: absolute; top: -22%; left: -22%;
  width: 145%; height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 216, 183, .22), transparent 62%);
}
.mad-brand-screen__logo {
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  color: #bff2d9;
}
.mad-brand-screen__logo .mad-icon svg { width: 52px; height: 52px; }
.mad-brand-screen__name { margin-top: 18px; font-size: 25px; font-weight: 800; letter-spacing: -.03em; color: #fffdf9; }
.mad-brand-screen__tagline { margin-top: 8px; font-size: 11px; letter-spacing: .06em; color: #6fd8b7; }
.mad-brand-screen__wave {
  position: absolute; bottom: -26%; left: -40%;
  width: 180%; height: 58%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(160deg, rgba(6, 214, 160, .18), rgba(2, 68, 48, .6));
  transform: rotate(-14deg);
}

/* App phone screen */
.mad-app {
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  padding: 46px 18px 26px; /* safe area clears the 36px rounded frame corners */
  background: #fffdf9;
  color: #0e2028;
  overflow: hidden;
}
.mad-app__top { display: flex; align-items: center; gap: 7px; }
.mad-app__logo {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  background: #024430; color: #06d6a0; font-size: 13px; font-weight: 800;
}
.mad-app__top strong { font-size: 12px; letter-spacing: -.02em; }
.mad-app__bell { margin-left: auto; color: #024430; font-size: 13px; }
.mad-app__hello { margin-top: 16px; font-size: 9px; color: #5c6b64; }
.mad-app__heading { margin-top: 2px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.mad-app__search {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 9px 10px;
  border-radius: 10px; background: #f1f5f4; color: #5c6b64; font-size: 9px;
}
.mad-app__card {
  display: flex; align-items: center; gap: 9px;
  margin-top: 9px; padding: 8px;
  border-radius: 13px; background: #fff;
  box-shadow: 0 5px 16px rgba(2, 68, 48, .09);
}
.mad-app__thumb {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px;
}
.mad-app__thumb--green { background: linear-gradient(135deg, #024430, #06d6a0); color: #fff; }
.mad-app__thumb--gold { background: linear-gradient(135deg, #ffd166, #ffb703); color: #04241a; }
.mad-app__card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.mad-app__card-body strong { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mad-app__card-body small { font-size: 8px; color: #5c6b64; }
.mad-app__bar { display: block; width: 100%; height: 4px; border-radius: 99px; background: #eef2f3; overflow: hidden; }
.mad-app__bar span { display: block; height: 100%; border-radius: 99px; background: #06d6a0; }
.mad-app__nav {
  display: flex; justify-content: space-around; align-items: flex-start;
  margin-top: auto; padding: 10px 6px 0;
  border-top: 1px solid #eef2f3;
}
.mad-app__nav span { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #5c6b64; }
.mad-app__nav span.is-active { color: #024430; }
.mad-app__nav small { font-size: 7.5px; }
body.dark-mode .mad-app { background: #0e2028; color: #f2f7f4; }
body.dark-mode .mad-app__search { background: #16231f; color: #a8c4ba; }
body.dark-mode .mad-app__card { background: #16231f; box-shadow: none; }
body.dark-mode .mad-app__card-body small { color: #a8c4ba; }
body.dark-mode .mad-app__bar { background: #1f2e29; }
body.dark-mode .mad-app__nav { border-color: #1f2e29; color: #a8c4ba; }
body.dark-mode .mad-app__nav span.is-active { color: #6fd8b7; }

.mad-float {
  position: absolute; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 68, 48, .2);
}
.mad-float .mad-icon { display: flex; }
.mad-float .mad-icon svg { width: 34px; height: 34px; }
.mad-float--android { top: 8%; right: 2%; color: #068a5f; }
.mad-float--apple { top: 24%; right: -1%; color: #0e2028; }
body.dark-mode .mad-float { background: #101b18; box-shadow: 0 12px 28px rgba(0, 0, 0, .4); }
body.dark-mode .mad-float--android { color: #6fd8b7; }
body.dark-mode .mad-float--apple { color: #f2f7f4; }

/* Fills the 128px spacer + footer-margin band with the section's own surface.
   Zero layout height: the strip, newsletter and footer keep their positions. */
.mad-footer-fill {
  --mad-footer-gap: 128px;
  position: relative;
  height: 0;
  z-index: 0;
  pointer-events: none;
}
.mad-footer-fill::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--mad-footer-gap);
  background:
    radial-gradient(ellipse 55% 100% at 80% -12%, rgba(6, 214, 160, .14), transparent 72%),
    linear-gradient(180deg, #f7fcfa 0%, #eef8f3 58%, #f6f7f6 100%);
}
body.dark-mode .mad-footer-fill::before {
  background:
    radial-gradient(ellipse 55% 100% at 80% -12%, rgba(6, 214, 160, .08), transparent 72%),
    linear-gradient(180deg, #071b17 0%, #08110f 100%);
}

/* Feature strip — a zero-height anchor lets it rest on the newsletter card
   without changing the section height, section order or the newsletter itself. */
.mad-features-shell {
  --mad-footer-gap: 128px; /* 40px spacer + 88px footer newsletter reserve */
  --mad-card-inset: 8px; /* matches the footer container padding at desktop */
  position: relative;
  height: 0;
  z-index: 5;
  pointer-events: none;
}
.mad-features {
  display: flex; align-items: stretch;
  position: absolute;
  left: var(--mad-card-inset); right: var(--mad-card-inset);
  top: calc(var(--mad-footer-gap) - 52px);
  transform: translateY(-100%);
  margin-top: 0;
  min-height: 106px; /* matches the newsletter card */
  padding: 8px;
  pointer-events: auto;
  border: 1px solid rgba(2, 68, 48, .06);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(2, 68, 48, .12);
}
.mad-feature {
  display: flex; align-items: center; gap: 12px;
  flex: 1 1 0;
  padding: 16px 22px;
}
.mad-feature + .mad-feature { border-left: 1px solid var(--mad-line); }
.mad-feature .mad-icon { display: flex; flex: 0 0 30px; color: #068a5f; }
.mad-feature .mad-icon svg { width: 28px; height: 28px; }
.mad-feature__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mad-feature__text strong { font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--mad-ink); }
.mad-feature__text span { font-size: 12px; line-height: 1.4; color: var(--mad-muted); }
body.dark-mode .mad-features { background: #101b18; border-color: rgba(111, 216, 183, .16); box-shadow: 0 18px 42px rgba(0, 0, 0, .35); }
body.dark-mode .mad-feature + .mad-feature { border-color: rgba(111, 216, 183, .16); }
body.dark-mode .mad-feature .mad-icon { color: #6fd8b7; }
body.dark-mode .mad-feature__text strong { color: #f2f7f4; }
body.dark-mode .mad-feature__text span { color: #a8c4ba; }

/* Dark-mode section surface */
body.dark-mode .mad-section { background-color: #071b17; }
body.dark-mode .mad-section--soft,
body.dark-mode .mad-section--solid { background-color: #071b17; }
body.dark-mode .mad-arc--one { background: linear-gradient(150deg, rgba(6, 214, 160, .18), rgba(6, 214, 160, .04) 62%, transparent 78%); }
body.dark-mode .mad-arc--two { background: linear-gradient(128deg, #03291f 0%, #063c2d 42%, #07543d 72%, #0d6d4f 100%); }
body.dark-mode .mad-arc--three { background: linear-gradient(150deg, rgba(6, 214, 160, .16), rgba(2, 68, 48, .04) 70%); }
body.dark-mode .mad-dots { background-image: radial-gradient(rgba(111, 216, 183, .26) 2.2px, transparent 2.2px); }
body.dark-mode .mad-podium { background: radial-gradient(ellipse at 50% 45%, rgba(6, 214, 160, .28) 0%, rgba(2, 68, 48, .2) 48%, transparent 74%); }

/* Responsive */
@media (max-width: 1099.98px) {
  .mad-features-shell { --mad-card-inset: 16px; }
}

/* QR caption: on desktop give the copy enough room to stay on one line */
@media (min-width: 992px) {
  .mad-qr__copy { max-width: 320px; }
  .mad-qr__desc { white-space: nowrap; }
}

@media (max-width: 1199px) {
  .mad-copy { flex-basis: 54%; max-width: 54%; }
  .mad-title { font-size: 44px; }
  .mad-description { font-size: 16px; }
  .mad-devices { transform: scale(.88); }
  .mad-store-btn { min-width: 208px; }
}

@media (max-width: 991px) {
  .mad-section { padding: 64px 0 160px; }
  .mad-layout { flex-direction: column !important; gap: 8px; }
  .mad-copy { flex: 0 0 100%; max-width: 100%; }
  .mad-showcase { width: 100%; min-height: 470px; margin-top: 18px; }
  .mad-devices { min-height: 470px; transform: scale(.82); }
  .mad-arc--one { right: -60%; width: 130%; }
  .mad-arc--two { right: -70%; bottom: -80%; width: 150%; height: 110%; }
  .mad-arc--three { display: none; }
  .mad-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 207px; }
  .mad-feature:nth-child(3) { border-left: 0; }
  .mad-feature:nth-child(n+3) { border-top: 1px solid var(--mad-line); }
  .mad-podium { bottom: 6%; }
}

@media (max-width: 767px) {
  .mad-section { padding: 48px 0 190px; }
  .mad-brand { margin-bottom: 20px; }
  .mad-title { margin-top: 14px; font-size: 34px; line-height: 1.12; }
  .mad-description { margin-top: 16px; font-size: 15px; line-height: 1.7; }
  .mad-buttons { margin-top: 24px; gap: 10px; }
  .mad-store-btn { flex: 1 1 160px; min-width: 0; min-height: 68px; padding: 10px 12px; gap: 8px; }
  .mad-store-btn__icon { flex-basis: 32px; width: 32px; height: 32px; }
  .mad-store-btn__icon .mad-icon svg { width: 28px; height: 28px; }
  .mad-store-btn__bottom { font-size: 16px; white-space: normal; }
  .mad-store-btn__arrow .mad-icon svg { width: 20px; height: 20px; }
  .mad-qr { margin-top: 24px; gap: 12px; }
  .mad-qr__tile { flex-basis: 88px; width: 88px; height: 88px; }
  .mad-qr__title { font-size: 16px; }
  .mad-qr__desc { font-size: 12px; }
  .mad-showcase { min-height: 400px; }
  .mad-devices { min-height: 400px; transform: scale(.68); }
  .mad-float { width: 52px; height: 52px; }
  .mad-float .mad-icon svg { width: 26px; height: 26px; }
  .mad-features { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; }
  .mad-feature { padding: 12px 10px; gap: 8px; }
  .mad-feature .mad-icon { flex-basis: 24px; }
  .mad-feature .mad-icon svg { width: 22px; height: 22px; }
  .mad-feature__text strong { font-size: 13px; }
  .mad-feature__text span { font-size: 11px; }
  .mad-dots { display: none; }
}

@media (max-width: 520px) {
  .mad-buttons { flex-direction: column; }
  .mad-store-btn { flex: 0 0 auto; width: 100%; min-height: 68px; }
  .mad-qr { display: flex; }
  .mad-qr__copy { max-width: none; }
  .mad-showcase { min-height: 300px; }
  .mad-devices { min-height: 300px; transform: scale(.55); }
  .mad-features { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 231px; }
  .mad-feature + .mad-feature { border-left: 1px solid var(--mad-line); border-top: 0; }
  .mad-feature:nth-child(3) { border-left: 0; border-top: 1px solid var(--mad-line); }
  .mad-feature:nth-child(4) { border-top: 1px solid var(--mad-line); }
}

@media (prefers-reduced-motion: reduce) {
  .mad-store-btn,
  .mad-qr__tile { transition: none; }
  .mad-store-btn:hover,
  .mad-store-btn:focus-visible,
  a.mad-qr__tile:hover { transform: none; }
}
