/* Mister Printer - standalone Android APK download page.
   Intentionally self-contained: download-app.php does not load app.css,
   so global app rules cannot squeeze or narrow this page's text. */

:root {
  --mp-yellow: #ffd400;
  --mp-black: #111111;
  --mp-soft-black: #1a1a1a;
  --mp-text: #171717;
  --mp-muted: #666d78;
  --mp-line: #e2e5e9;
  --mp-bg: #f3f5f7;
  --mp-white: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.mp-apk-download-page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--mp-text);
  background:
    radial-gradient(circle at 7% 0%, rgba(255, 212, 0, .17), transparent 25rem),
    var(--mp-bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.mp-apk-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(12px);
}

.mp-apk-topbar-inner,
.mp-apk-main {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.mp-apk-topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mp-apk-mini-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--mp-text);
  text-decoration: none;
}

.mp-apk-mini-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  object-fit: cover;
}

.mp-apk-mini-brand > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.mp-apk-mini-brand strong { font-size: 15px; font-weight: 900; }
.mp-apk-mini-brand small { margin-top: 4px; color: #6b7280; font-size: 11px; }

.mp-apk-top-link {
  color: var(--mp-text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.mp-apk-top-link:hover { text-decoration: underline; }

.mp-apk-main { padding: 34px 0 52px; }

.mp-apk-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 52px;
  align-items: center;
  min-height: 520px;
  padding: 58px;
  border: 1px solid #252525;
  border-bottom: 7px solid var(--mp-yellow);
  border-radius: 28px;
  background:
    radial-gradient(circle at 93% 3%, rgba(255, 212, 0, .23), transparent 15rem),
    linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  box-shadow: 0 24px 60px rgba(17, 24, 39, .14);
}

.mp-apk-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -155px;
  width: 280px;
  height: 280px;
  border: 44px solid rgba(255, 212, 0, .07);
  border-radius: 50%;
}

.mp-apk-hero-copy,
.mp-apk-download-panel { position: relative; z-index: 2; min-width: 0; }

.mp-apk-badge,
.mp-apk-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--mp-yellow);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mp-apk-logo {
  display: block;
  width: min(360px, 78%);
  max-width: 360px;
  height: auto;
  margin: 18px 0 28px;
}

.mp-apk-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 950;
  line-height: .99;
  letter-spacing: -.045em;
}
.mp-apk-hero h1 span { color: var(--mp-yellow); }

.mp-apk-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #d2d6dc;
  font-size: 16px;
  line-height: 1.72;
}
.mp-apk-lead strong { color: #fff; }

.mp-apk-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}
.mp-apk-trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(255,255,255,.045);
  font-size: 11px;
  font-weight: 800;
}

.mp-apk-download-panel {
  width: 100%;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.mp-apk-app-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--mp-yellow);
  color: #111;
  font-size: 23px;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(255,212,0,.16);
}

.mp-apk-panel-kicker {
  margin: 0 0 5px;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.mp-apk-download-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.1;
}

.mp-apk-status {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0 22px;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.mp-apk-status i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.13);
}
.mp-apk-status.is-error i {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.13);
}

.mp-apk-download-btn {
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--mp-yellow);
  color: #111;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255,212,0,.19);
  transition: transform .18s ease, filter .18s ease;
}
.mp-apk-download-btn:hover { transform: translateY(-2px); filter: brightness(1.03); }

.mp-apk-download-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #111;
  color: var(--mp-yellow);
  font-size: 26px;
  font-weight: 950;
}

.mp-apk-download-label {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mp-apk-download-label b { font-size: 18px; line-height: 1.15; }
.mp-apk-download-label small { color: #3f3f46; font-size: 12px; line-height: 1.35; }

.mp-apk-direct-link {
  display: block;
  margin-top: 12px;
  color: #d1d5db;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mp-apk-file-meta {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 10px;
  margin-top: 16px;
}
.mp-apk-file-meta > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
}
.mp-apk-file-meta b,
.mp-apk-file-meta span { display: block; width: 100%; overflow-wrap: anywhere; }
.mp-apk-file-meta b { color: #fff; font-size: 11px; line-height: 1.4; }
.mp-apk-file-meta span { margin-top: 4px; color: #9ca3af; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.mp-apk-host-note {
  margin: 17px 0 0;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.mp-apk-host-note strong { color: #d1d5db; }

.mp-apk-error-note {
  padding: 14px;
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 13px;
  background: rgba(127,29,29,.24);
  color: #fecaca;
  font-size: 12px;
  line-height: 1.55;
}

.mp-apk-install-section {
  margin-top: 22px;
  padding: 36px;
  border: 1px solid var(--mp-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17,24,39,.055);
}

.mp-apk-section-heading {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
  gap: 40px;
  align-items: end;
  padding-bottom: 25px;
  border-bottom: 1px solid #eceef1;
}
.mp-apk-section-heading > * { min-width: 0; }
.mp-apk-section-heading h2,
.mp-apk-verify h2 {
  margin: 6px 0 0;
  color: #161616;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.mp-apk-section-heading p,
.mp-apk-verify p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #626772;
  font-size: 14px;
  line-height: 1.7;
}
.mp-apk-install-section .mp-apk-eyebrow,
.mp-apk-verify .mp-apk-eyebrow { color: #8d7600; }

/* Full-width step cards: text is never forced into a tiny left column. */
.mp-apk-steps {
  width: 100%;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.mp-apk-steps > li {
  min-width: 0;
  width: 100%;
  min-height: 138px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fafafa;
}

.mp-apk-step-no {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #111;
  color: var(--mp-yellow);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.mp-apk-steps > li > div { min-width: 0; width: 100%; }
.mp-apk-steps b { display: block; width: 100%; color: #161616; font-size: 16px; line-height: 1.3; }
.mp-apk-steps p {
  display: block;
  width: 100%;
  max-width: none;
  margin: 8px 0 0;
  color: #656b76;
  font-size: 13px;
  line-height: 1.62;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.mp-apk-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.mp-apk-info-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--mp-line);
  border-radius: 20px;
  background: #fff;
}
.mp-apk-security-card { border-color: #eedb75; background: #fffdf1; }
.mp-apk-info-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #111;
  color: var(--mp-yellow);
  font-weight: 950;
}
.mp-apk-info-card h3 { margin: 1px 0 7px; font-size: 17px; }
.mp-apk-info-card p { width: 100%; margin: 0; color: #666c76; font-size: 13px; line-height: 1.65; }

.mp-apk-verify {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 30px;
  align-items: center;
  margin-top: 15px;
  padding: 30px;
  border: 1px solid var(--mp-line);
  border-radius: 20px;
  background: #fff;
}
.mp-apk-sha {
  width: 100%;
  min-width: 0;
  display: block;
  padding: 17px;
  border-radius: 13px;
  background: #111;
  color: var(--mp-yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.mp-apk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}
.mp-apk-action {
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.mp-apk-action.primary { background: var(--mp-yellow); color: #111; }
.mp-apk-action.secondary { border-color: #d9dde2; background: #fff; color: #111; }

.mp-apk-footer-links {
  margin: 21px 0 0;
  color: #70747d;
  font-size: 11px;
  text-align: center;
}
.mp-apk-footer-links a { color: #444; }

@media (max-width: 920px) {
  .mp-apk-topbar-inner,
  .mp-apk-main { width: min(760px, calc(100% - 28px)); }
  .mp-apk-hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding: 40px; }
  .mp-apk-download-panel { max-width: 600px; }
  .mp-apk-section-heading,
  .mp-apk-verify { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 660px) {
  .mp-apk-topbar-inner { width: calc(100% - 22px); min-height: 62px; }
  .mp-apk-main { width: calc(100% - 18px); padding-top: 14px; }
  .mp-apk-top-link { display: none; }
  .mp-apk-hero { padding: 28px 20px; border-radius: 21px; }
  .mp-apk-logo { width: min(300px, 92%); margin-bottom: 21px; }
  .mp-apk-hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .mp-apk-lead { font-size: 14px; }
  .mp-apk-download-panel { padding: 21px; border-radius: 19px; }
  .mp-apk-file-meta { grid-template-columns: 1fr; }
  .mp-apk-install-section { padding: 25px 18px; border-radius: 20px; }
  .mp-apk-steps { grid-template-columns: 1fr; }
  .mp-apk-steps > li { min-height: 0; grid-template-columns: 42px minmax(0, 1fr); padding: 18px; }
  .mp-apk-step-no { width: 42px; height: 42px; }
  .mp-apk-info-grid { grid-template-columns: 1fr; }
  .mp-apk-verify { padding: 23px 18px; }
  .mp-apk-actions { flex-direction: column; }
  .mp-apk-action { width: 100%; }
}
