/* Mandve — install-the-app page (/app). Loaded after pages.css + styles.css. */

/* ---------- hero ---------- */
.ia-hero{position:relative;z-index:2;overflow:hidden}
.ia-hero>.pg-wrap{position:relative;z-index:1}
.ia-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:center;gap:clamp(24px,4vw,64px);padding-top:clamp(40px,6vw,96px);padding-bottom:clamp(48px,6vw,96px)}
.ia-copy{display:flex;flex-direction:column;align-items:flex-start;gap:22px}
.ia-h1{font-size:clamp(48px,7vw,104px)}
.ia-copy .c-actions{margin-top:6px}
.ia-now{min-height:56px;padding:0 26px;gap:10px;font-size:var(--fs-body)}
.ia-now svg,.ia-tabs svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ia-now[hidden],.ia-done[hidden]{display:none !important}
.ia-done{margin:0;padding:14px 18px;border-radius:16px;background:rgba(80,180,110,.12);color:#9EE0B0;font-size:var(--fs-body)}
.ia-art{justify-self:center}

/* ---------- phone mock-up ---------- */
.mk{position:relative;flex:none;width:200px;aspect-ratio:9/18.5;padding:8px;box-sizing:border-box;border-radius:34px;background:#0B0908;
  border:1px solid rgba(245,242,236,.16);box-shadow:0 30px 60px rgba(0,0,0,.45),inset 0 0 0 2px rgba(245,242,236,.04)}
.mk::before{content:"";position:absolute;top:14px;left:50%;width:56px;height:16px;transform:translateX(-50%);border-radius:999px;background:#0B0908;z-index:3}
.mk-scr{position:relative;width:100%;height:100%;overflow:hidden;border-radius:26px;background:#1A1514;font-family:system-ui,-apple-system,Roboto,sans-serif;color:#F5F2EC}
.mk-big{width:250px}
/* fake site content */
.mk-site{position:absolute;left:0;right:0;top:58px;bottom:56px;padding:20px 16px;display:flex;flex-direction:column;gap:10px;
  background:radial-gradient(80% 50% at 50% 30%,rgba(212,42,42,.2),rgba(212,42,42,0) 70%)}
.mk-logo{width:30px;height:30px;border-radius:9px;background:url(/assets/img/icon-192.png) center/cover;margin-bottom:8px}
.mk-l{height:12px;border-radius:6px;background:rgba(245,242,236,.75)}
.mk-l.w70{width:78%;height:16px}.mk-l.w50{width:56%;background:rgba(245,242,236,.4)}
.mk-btn{margin-top:10px;width:58%;height:26px;border-radius:999px;background:#D42A2A}
/* Chrome (Android) top bar */
.mk-chrome{position:absolute;left:0;right:0;top:0;height:58px;padding:30px 10px 0;box-sizing:border-box;display:flex;align-items:center;gap:6px;background:#26201F;z-index:2}
.mk-url{flex:1;min-width:0;height:22px;padding:0 10px;border-radius:999px;background:rgba(245,242,236,.1);font-size:10px;line-height:22px;color:rgba(245,242,236,.8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-ico{flex:none;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;color:#F5F2EC}
.mk-ico svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mk-chrome .mk-ico svg circle{fill:currentColor;stroke:none}
/* Safari (iPhone) bottom bar */
.mk-safari{position:absolute;left:0;right:0;bottom:0;padding:8px 10px 18px;display:flex;flex-direction:column;gap:8px;background:#26201F;z-index:2}
.mk-safari .mk-url{flex:none;text-align:center}
.mk-tools{display:flex;justify-content:space-between;align-items:center;padding:0 6px}
.mk-tools i{width:14px;height:14px;border-radius:4px;background:rgba(245,242,236,.25)}
.mk-safari .mk-ico{color:#5EA2FF}
/* "hot" = where to tap */
.mk .hot{position:relative;z-index:1}
.mk-ico.hot{background:rgba(212,42,42,.25);box-shadow:0 0 0 2px #D42A2A}
.mk-ico.hot::after,.mk .hot::after{content:"";position:absolute;inset:-5px;border-radius:inherit;border:2px solid #D42A2A;animation:mkPulse 1.8s ease-out infinite;pointer-events:none}
@keyframes mkPulse{0%{opacity:.9;transform:scale(.92)}80%,100%{opacity:0;transform:scale(1.25)}}
/* Chrome menu */
.mk-menu{position:absolute;top:50px;right:8px;width:72%;padding:6px 0;border-radius:12px;background:#2E2726;box-shadow:0 12px 30px rgba(0,0,0,.5);display:flex;flex-direction:column;z-index:3}
.mk-menu span{padding:7px 12px;font-size:10.5px;color:rgba(245,242,236,.75)}
.mk-menu span.sub{color:rgba(245,242,236,.45);font-size:9.5px;padding-top:0}
.mk-menu span.hot{margin:2px 6px;border-radius:8px;background:rgba(212,42,42,.22);color:#F5F2EC;font-weight:600;box-shadow:0 0 0 1.5px #D42A2A}
/* dialogs */
.mk-dim{position:absolute;inset:0;background:rgba(0,0,0,.5);z-index:2}
.mk-dlg{position:absolute;left:12px;right:12px;top:38%;padding:14px;border-radius:16px;background:#2E2726;z-index:3;display:flex;flex-direction:column;gap:12px;font-size:11px}
.mk-dlg b{font-size:13px}
.mk-app{display:flex;align-items:center;gap:8px}
.mk-app img{border-radius:8px}
.mk-app em{font-style:normal;font-size:11px;font-weight:600;display:flex;flex-direction:column}
.mk-app small{font-weight:400;font-size:9px;color:rgba(245,242,236,.55)}
.mk-acts{display:flex;justify-content:flex-end;gap:14px;font-weight:600;color:#9DB8FF}
.mk-acts .hot{padding:3px 10px;border-radius:999px;background:#D42A2A;color:#F5F2EC}
/* iOS share sheet */
.mk-sheet{position:absolute;left:6px;right:6px;bottom:6px;padding:10px 0 4px;border-radius:16px;background:#2E2726;z-index:3;display:flex;flex-direction:column}
.mk-sh-apps{display:flex;gap:8px;padding:0 12px 10px;border-bottom:1px solid rgba(245,242,236,.08)}
.mk-sh-apps i{width:26px;height:26px;border-radius:8px;background:rgba(245,242,236,.16)}
.mk-sheet>span:not(.mk-sh-apps){display:flex;justify-content:space-between;align-items:center;padding:8px 12px;font-size:10.5px;border-bottom:1px solid rgba(245,242,236,.06);color:rgba(245,242,236,.8)}
.mk-sheet>span.hot{margin:4px 6px;border-radius:10px;background:rgba(212,42,42,.22);color:#F5F2EC;font-weight:600;box-shadow:0 0 0 1.5px #D42A2A;border-bottom:0}
.mk-pl svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
/* iOS "Add to Home Screen" screen */
.mk-add{position:absolute;inset:0;background:#1F1A19;padding-top:38px}
.mk-add-top{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;font-size:10px;color:#5EA2FF;border-bottom:1px solid rgba(245,242,236,.08)}
.mk-add-top b{color:#F5F2EC;font-size:10.5px}
.mk-add-top .hot{padding:2px 8px;border-radius:999px;background:#D42A2A;color:#F5F2EC;font-weight:600}
.mk-add .mk-app{margin:16px 12px;padding:10px;border-radius:12px;background:rgba(245,242,236,.06)}
/* home screen */
.mk-wall .mk-scr{background:linear-gradient(160deg,#3A2A2A 0%,#1A1514 55%,#2A1C1C 100%)}
.mk-home{position:absolute;inset:44px 14px 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:14px 10px}
.mk-home i{aspect-ratio:1;border-radius:22%;background:rgba(245,242,236,.14)}
.mk-me{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.mk-me img{display:block;width:100%;min-width:0;height:auto;aspect-ratio:1;border-radius:22%;box-shadow:0 0 0 2px #D42A2A,0 0 18px rgba(212,42,42,.6);animation:mkGlow 2.2s ease-in-out infinite}
.mk-me em{font-style:normal;font-size:9px;color:#F5F2EC;white-space:nowrap}
@keyframes mkGlow{50%{box-shadow:0 0 0 2px #D42A2A,0 0 4px rgba(212,42,42,.2)}}

/* ---------- device tabs + steps ---------- */
.ia-pick{margin:0 0 20px}
.ia-tabs{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:rgba(245,242,236,.05);border:1px solid rgba(245,242,236,.1);margin-bottom:clamp(28px,4vw,48px)}
.ia-tabs button{appearance:none;display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 22px;border:0;border-radius:999px;background:transparent;color:rgba(245,242,236,.7);font:inherit;font-size:var(--fs-body);font-weight:500;cursor:pointer;transition:background .2s,color .2s}
.ia-tabs button[aria-selected=true]{background:#F5F2EC;color:#14100F}
.ia-tabs button:focus-visible{outline:2px solid #F5F2EC;outline-offset:2px}
.ia-panel[hidden]{display:none}
.sts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.st{display:flex;flex-direction:column;align-items:center;gap:20px;padding:24px 16px 26px;border-radius:28px;border:1px solid rgba(245,242,236,.1);background:linear-gradient(155deg,#2A2422 0%,#191413 100%)}
.st .mk{width:min(100%,190px)}
.st-t{display:flex;flex-direction:column;gap:6px;width:100%}
.st-n{font-size:var(--fs-small);font-weight:500;color:#D42A2A;letter-spacing:.02em}
.st h3{margin:0;font-size:var(--fs-lead);font-weight:500;line-height:1.35}
.st p{margin:0;font-size:var(--fs-body);line-height:1.55;color:rgba(245,242,236,.7)}
.ia-note{margin:20px 0 0;padding:16px 20px;border-radius:18px;background:rgba(245,242,236,.04);font-size:var(--fs-small);line-height:1.6;color:rgba(245,242,236,.72)}
.ia-note b{color:#F5F2EC;font-weight:500}
.ia-desk{display:none;align-items:center;gap:24px;margin-top:28px;padding:22px 26px;border-radius:24px;border:1px dashed rgba(245,242,236,.18)}
html.os-desktop .ia-desk{display:flex}
@media (min-width:1000px){html:not(.os-ios):not(.os-android) .ia-desk{display:flex}}
.ia-qr{flex:none;width:120px;height:120px;padding:8px;border-radius:14px;background:#F5F2EC}
.ia-qr svg{display:block;width:100%;height:100%}
.ia-qr svg path{fill:#14100F}
.ia-desk h3{margin:0 0 6px;font-size:var(--fs-h3);font-weight:500}
.ia-desk p{margin:0;font-size:var(--fs-body);line-height:1.55;color:rgba(245,242,236,.7)}
.ia-why{grid-template-columns:repeat(3,minmax(0,1fr)) !important;margin-top:clamp(24px,3vw,40px)}

/* ---------- staff ---------- */
.ia-staff{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(28px,5vw,80px);align-items:center}
.ia-staff-art{justify-self:center}
.ia-staff-copy{display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.ia-staff-copy .pg-h2{margin:0}
.ia-staff-copy .c-lead b{color:#F5F2EC;font-weight:500}

/* ---------- responsive ---------- */
@media (max-width:1080px){.sts{grid-template-columns:repeat(2,minmax(0,1fr))}.ia-why{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
@media (max-width:860px){
  .ia-grid{grid-template-columns:minmax(0,1fr);padding-top:24px}
  .ia-art{order:0;margin-top:8px}
  .mk-big{width:170px}
  .ia-staff{grid-template-columns:minmax(0,1fr)}
  .ia-staff-art .mk{width:170px}
}
@media (max-width:600px){
  .sts{grid-template-columns:minmax(0,1fr);gap:14px}
  .st{flex-direction:row;align-items:center;gap:16px;padding:16px;border-radius:24px}
  .st .mk{width:118px;border-radius:22px;padding:5px}
  .st .mk::before{top:9px;width:34px;height:10px}
  .st .mk .mk-scr{border-radius:17px}
  .ia-tabs{display:flex}
  .ia-tabs button{flex:1;justify-content:center;padding:0 12px}
  .ia-why{grid-template-columns:minmax(0,1fr) !important}
  .ia-now{width:100%;justify-content:center}
}
/* the small mock-ups on phones: scale their inner UI down */
@media (max-width:600px){
  .st .mk-scr{font-size:80%}
  .st .mk-chrome{height:44px;padding:20px 6px 0}
  .st .mk-site{top:44px;padding:12px 10px;gap:6px}
  .st .mk-logo{width:20px;height:20px}
  .st .mk-l{height:7px}.st .mk-l.w70{height:9px}.st .mk-btn{height:15px}
  .st .mk-url{height:16px;line-height:16px;font-size:7px;padding:0 6px}
  .st .mk-ico{width:18px;height:18px}.st .mk-ico svg{width:12px;height:12px}
  .st .mk-menu{top:40px;width:84%}.st .mk-menu span{padding:4px 7px;font-size:7px}.st .mk-menu span.sub{font-size:6.5px}
  .st .mk-dlg{left:6px;right:6px;padding:8px;gap:7px;font-size:7px}.st .mk-dlg b{font-size:8.5px}
  .st .mk-app img{width:18px;height:18px}.st .mk-app em{font-size:7px}.st .mk-app small{font-size:6px}
  .st .mk-safari{padding:5px 6px 10px;gap:5px}
  .st .mk-tools i{width:9px;height:9px}
  .st .mk-sheet{padding:6px 0 2px}.st .mk-sh-apps{gap:5px;padding:0 7px 6px}.st .mk-sh-apps i{width:15px;height:15px}
  .st .mk-sheet>span:not(.mk-sh-apps){padding:4px 7px;font-size:7px}
  .st .mk-pl svg{width:10px;height:10px}
  .st .mk-add{padding-top:24px}.st .mk-add-top{padding:5px 6px;font-size:6.5px}.st .mk-add-top b{font-size:7px}
  .st .mk-add .mk-app{margin:8px 6px;padding:6px}
  .st .mk-home{inset:28px 8px 10px;gap:8px 6px}.st .mk-me em{font-size:6.5px}
}
@media (prefers-reduced-motion:reduce){.mk .hot::after,.mk-ico.hot::after,.mk-me img{animation:none}}
