/* Mobile app page: only what this page alone needs. Everything else is v1's vocabulary in components.css.
   The HTML-built phones (.mph / .mps) are always-dark or always-light device surfaces, so they use their own fixed screen colors. */

/* ---------- hero ---------- */
.page-mobile .page-hero--split .hero-trust { justify-content: flex-start; gap: 12px 22px; }
.page-mobile .page-hero--split .phones { height: 560px; max-width: 560px; margin: 0 auto; }
.page-mobile .page-hero--split .hero-copy { max-width: 560px; }

/* ---------- the HTML-built Android phone ---------- */
.mph {
  position: relative; width: 250px; max-width: 100%; margin: 0 auto; padding: 9px; border-radius: 38px; background: #05070c;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -24px rgba(0,0,0,.7), inset 0 0 0 2px #1d2230;
}
.mph::before { content: ""; position: absolute; top: 15px; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: #05070c; border-radius: 99px; z-index: 3; }
.mph__screen { position: relative; aspect-ratio: 9 / 19.5; border-radius: 29px; overflow: hidden; background: #0b0f17; }
.mps {
  position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s;
  color: #eaf0fb; font-family: var(--font); background: #0b0f17; text-align: center;
}
.mps.is-on { opacity: 1; visibility: visible; }
.mps .i { width: 16px; height: 16px; flex-shrink: 0; }
.mps p { margin: 0; }
.mps__sb { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 0; font: 600 10px var(--font); color: #cdd6e8; min-height: 28px; }
.mps__sbr { display: inline-flex; align-items: center; gap: 6px; }
.mps__bat { width: 16px; height: 8px; border-radius: 2px; border: 1px solid #cdd6e8; position: relative; }
.mps__bat::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: #cdd6e8; border-radius: 1px; }
.mps__bar { position: absolute; left: 50%; bottom: 7px; width: 72px; height: 3px; margin-left: -36px; border-radius: 3px; background: rgba(255,255,255,.55); }
.mps--idle { background: radial-gradient(120% 70% at 50% 0%, #1b2a55, #0b0f17 70%); }
.mps__lockhead { margin-top: 54px; }
.mps__clock { font: 300 52px/1 var(--display); letter-spacing: -.02em; }
.mps__date { margin-top: 6px !important; font-size: 12px; color: #9fb0cc; }
.mps__dock { margin-top: auto; margin-bottom: 30px; display: flex; justify-content: center; gap: 18px; }
.mps__dock i { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.1); }
.mps--call { align-items: center; background: #0a0e16; }
.mps__cname { margin-top: 44px !important; font: 600 22px/1.2 var(--display); padding: 0 12px; }
.mps__cnum { margin-top: 4px !important; font-size: 12.5px; color: #9fb0cc; }
.mps__ctime { margin-top: 4px !important; font: 500 13px var(--mono); color: #9fb0cc; }
.mps__ctl { margin-top: auto; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 0 10px 18px; }
.mps__ctl span { display: grid; justify-items: center; gap: 5px; font-size: 9.5px; color: #cdd6e8; }
.mps__ctl i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.mps__end { display: grid; justify-items: center; gap: 5px; font-size: 10px; color: #cdd6e8; margin-bottom: 26px !important; }
.mps__end i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #d93a40; color: #fff; }
.mps__end--ok i { background: #2a8a3e; animation: mpPulse 1.4s ease-in-out infinite; }
.mps__end .i { width: 20px; height: 20px; }
.mps__pair { margin-top: auto; width: 100%; display: flex; justify-content: space-around; padding: 0 14px; }
.mps--call > .mps__end { margin-top: 0 !important; }
@keyframes mpPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(42,138,62,.55); } 60% { box-shadow: 0 0 0 10px rgba(42,138,62,0); } }

/* the app itself: dark or light, switched by data-mode */
.mps--app {
  --a-bg: #0e121a; --a-fg: #eaf0fb; --a-sub: #94a1bb; --a-card: #171d29; --a-line: rgba(255,255,255,.1); --a-key: #1b2230; --a-acc: #5b88ff; --a-acc-fg: #fff; --a-on: #4cc26a;
  background: var(--a-bg); color: var(--a-fg); text-align: left; transition: opacity .45s, visibility .45s, background-color .5s, color .5s;
}
.mps--app[data-mode="light"] { --a-bg: #fbfcff; --a-fg: #141a2a; --a-sub: #5d6987; --a-card: #ffffff; --a-line: rgba(20,30,60,.13); --a-key: #eaeff9; --a-acc: #2f5fe0; --a-on: #2f9e44; }
.mps--app .mps__sb { color: var(--a-sub); }
.mps--app .mps__bat { border-color: var(--a-sub); } .mps--app .mps__bat::after { background: var(--a-sub); }
.mps--app .mps__bar { background: var(--a-line); }
.mpa__bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 4px; }
.mpa__bar b { font: 700 15px var(--display); }
.mpa__acct { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--a-line); color: var(--a-sub); }
.mpa__acct .i { width: 13px; height: 13px; }
.mpa__ready { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10.5px; color: var(--a-sub); padding: 2px 0 6px; }
.mpa__ready i { width: 6px; height: 6px; border-radius: 50%; background: var(--a-on); }
.mpa__queue { margin: 0 12px; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-card); }
.mpa__queue > p:first-child { font-size: 9.5px; color: var(--a-sub); margin-bottom: 5px; }
.mpa__pills { display: flex; gap: 5px; flex-wrap: wrap; }
.mpa__pills span, .mpa__pills button {
  padding: 3px 8px; border-radius: 99px; border: 1px solid var(--a-acc); color: var(--a-acc); font: 600 9.5px var(--font); background: none; line-height: 1.4;
}
.mpa__pills .is-on { background: var(--a-acc); color: var(--a-acc-fg); }
.mpa__num { min-height: 26px; margin-top: 6px !important; text-align: center; font: 700 16px var(--mono); letter-spacing: .04em; }
.mpa__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; padding: 0 24px; }
.mpa__keys span { height: 38px; border-radius: 19px; background: var(--a-key); display: grid; place-content: center; text-align: center; line-height: 1; }
.mpa__keys b { font: 600 15px var(--display); } .mpa__keys small { font-size: 6.5px; letter-spacing: .1em; color: var(--a-sub); min-height: 7px; margin-top: 1px; }
.mpa__call { width: 42px; height: 42px; margin: 8px auto 0 !important; border-radius: 50%; display: grid; place-items: center; background: var(--a-on); color: #fff; }
.mpa__nav { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 2px 18px; border-top: 1px solid var(--a-line); background: var(--a-bg); }
.mpa__nav span { display: grid; justify-items: center; gap: 2px; font-size: 8px; color: var(--a-sub); }
.mpa__nav .i { width: 14px; height: 14px; }
.mpa__nav .is-on { color: var(--a-acc); }
.mpa__nav--2 { grid-template-columns: repeat(2, 1fr); }
.mpa__h { padding: 4px 14px 2px; font: 700 18px var(--display); }
.mpa__sec { padding: 8px 14px 4px; font: 600 8.5px var(--font); letter-spacing: .08em; color: var(--a-sub); }
.mpa__card { margin: 0 12px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-card); }
.mpa__ct { font: 600 11px var(--font); }
.mpa__cs { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px !important; font-size: 9.5px; color: var(--a-sub); }
.mpa__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a-on); }
.mpa__dot.is-warn { background: #f0a020; }
.mpa__pills--sel button { cursor: pointer; }
.mpa__pills--sel button:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.mpa__list { padding: 2px 10px; }
.mpa__list p { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font: 600 10.5px var(--font); border-bottom: 1px solid var(--a-line); }
.mpa__list p:last-child { border-bottom: 0; }
.mpa__list small { font-weight: 400; font-size: 9px; color: var(--a-sub); }

/* ---------- consoles ---------- */
.mp-cap { margin: 10px 0 0; text-align: center; min-height: 3.2em; }
.mp-hint { margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
.mp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.mp-foot__btns { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.mp-foot .btn .i { margin-right: 2px; }
.kbd { display: inline-block; font: 700 14px/1 var(--mono); color: var(--gold-text); background: rgba(255,187,46,.12); border: 1px solid rgba(255,187,46,.35); border-radius: 8px; padding: 5px 8px; }
.kbd--s { font-size: 12.5px; padding: 3px 6px; border-radius: 6px; }
.btn-primary .kbd { color: #fff; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); padding: 3px 7px; }

/* push to ring */
.mp-ring__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 28px; }
.rsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rstep {
  position: relative; overflow: hidden; width: 100%; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; text-align: left; padding: 15px 18px; border-radius: 15px;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); transition: border-color .2s, background-color .2s, color .2s;
}
.rstep:hover { border-color: var(--line-2); color: var(--text); }
.rstep__n { grid-row: 1 / 3; align-self: start; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 13px var(--mono); color: var(--gold-text); background: rgba(255,187,46,.1); border: 1px solid rgba(255,187,46,.28); }
.rstep__t { font: 700 16px var(--display); color: var(--text); }
.rstep__d { font-size: 14px; color: var(--text-2); margin-top: 3px; }
.rstep.is-active { border-color: rgba(77,124,255,.55); background: rgba(77,124,255,.12); }
.rstep .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.mp-ring[data-attract="running"] .rstep.is-active .prog { animation: prog var(--dw, 3.6s) linear forwards; }
.mp-ring__stage { display: grid; justify-items: center; align-content: center; }
.mp-ring__stage .mp-cap { max-width: 280px; }

/* move a call */
.mp-move__bar { display: flex; align-items: center; justify-content: center; gap: 12px 16px; flex-wrap: wrap; }
.mp-scene { display: grid; grid-template-columns: minmax(0, 230px) minmax(70px, 150px) 250px; justify-content: center; align-items: center; gap: 8px 14px; margin: 18px 0 8px; }
.mp-tag { margin: 0 0 8px; text-align: center; font: 600 12.5px var(--font); color: var(--muted); }
.mv-phone { display: grid; justify-items: center; }
.desk { width: 100%; }
.desk__body { padding: 12px; border-radius: 20px; background: #0c1018; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7), inset 0 0 0 2px #1d2230; transform: perspective(900px) rotateX(8deg); }
.desk__lcd { padding: 12px 12px 14px; border-radius: 10px; background: #0d2238; color: #bfe1ff; font-family: var(--mono); display: grid; gap: 4px; min-height: 92px; align-content: start; transition: background-color .4s, color .4s, opacity .4s; }
.desk__lcd p { margin: 0; }
.desk__hd { font-size: 10px; opacity: .7; }
.desk__line { font: 700 13px var(--mono); }
.desk__sub { font-size: 11px; }
.desk[data-desk="call"] .desk__lcd { background: #0f3a2a; color: #c8ffe0; }
.desk[data-desk="moving"] .desk__lcd { background: #3a2a0a; color: #ffd78a; animation: mpPulse2 1s ease-in-out infinite; }
.desk[data-desk="free"] .desk__lcd { background: #0d1c2e; color: #7f97b3; }
@keyframes mpPulse2 { 50% { opacity: .72; } }
.desk__soft { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.desk__soft i { height: 8px; border-radius: 4px; background: #202838; }
.desk__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 10px; margin: 12px 14px 4px; }
.desk__keys i { height: 14px; border-radius: 5px; background: #1a2130; }
.wire { display: grid; justify-items: center; gap: 8px; padding: 0 4px; }
.wire__line { position: relative; display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--line-2); transition: background .4s; }
.wire__dot { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--gold); opacity: 0; box-shadow: 0 0 12px var(--gold); }
.mp-move[data-state="moving"] .wire__dot { opacity: 1; animation: mpWire 1.2s linear infinite; }
.mp-move[data-state="moving"] .wire__line { background: linear-gradient(90deg, var(--blue), var(--gold)); }
.mp-move[data-state="done"] .wire__line { background: linear-gradient(90deg, var(--blue), var(--green)); }
@keyframes mpWire { from { left: 0; } to { left: calc(100% - 10px); } }
.mp-codes { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-codes li { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.mp-codes li .kbd { font-size: 17px; padding: 8px 10px; }
.mp-codes b { font: 700 16.5px var(--display); }
.mp-codes p { margin: 4px 0 0; font-size: 14.5px; color: var(--text-2); }
.mp-codes .chip { grid-column: 2; justify-self: start; }

/* tour of real screens */
.mtour { grid-template-columns: minmax(0, 1fr); }
.mtour .tour-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mp-fig { width: fit-content; justify-self: center; }
.mp-fig .chip.fig__chip { top: -12px; right: -16px; }
.mp-fig .phone, .fig--phone.mp-fig .phone { position: relative; width: 236px; }
.mp-duo { display: flex; gap: 20px; align-items: flex-start; }
.mp-fig .mp-duo .phone { position: relative; width: 206px; }
.mp-fig .mp-duo .phone:nth-child(2) { margin-top: 44px; }

/* look + admin */
.mp-look__body { display: grid; grid-template-columns: 1fr 250px; gap: 26px; align-items: center; padding: 26px; }
.mp-look__ctl { display: grid; gap: 22px; }
.mp-look .seg { flex-wrap: wrap; }
.mp-adm__body { display: grid; grid-template-columns: 1fr 250px; gap: 26px; align-items: center; padding: 26px; }
.mp-adm__copy { display: grid; gap: 14px; }
.mp-adm__copy .lead { font-size: 16.5px; }
.mp-adm__copy .checks { margin-top: 2px; }
.mp-admin { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center; }
.mp-more { margin-top: 26px; text-align: center; }

/* narrow screens: nothing wider than the viewport */
@media (max-width: 1180px) {
  .page-mobile .page-hero--split .hero-copy { max-width: none; }
  .page-mobile .page-hero--split .hero-trust { justify-content: center; }
  .mtour .tour-panel { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .mp-admin { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .mp-admin .console-wrap { width: 100%; }
  .mp-ring__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .page-mobile .page-hero--split .phones { height: 500px; transform: scale(.72); transform-origin: 50% 0; margin-bottom: -150px; }
  .mp-ring__grid, .mp-look__body, .mp-adm__body { padding: 18px; }
  .mp-look__body, .mp-adm__body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .mp-look__ctl, .mp-adm__copy { width: 100%; }
  .mp-scene { grid-template-columns: 1fr; justify-items: center; gap: 4px; }
  .desk { max-width: 230px; }
  .wire { width: 60px; padding: 8px 0; }
  .wire__line { width: 2px; height: 46px; }
  .wire__dot { left: 50%; top: 0; margin: 0 0 0 -5px; }
  .mp-move[data-state="moving"] .wire__dot { animation-name: mpWireV; }
  .mp-codes { grid-template-columns: 1fr; }
  .mp-fig .mp-duo .phone { width: 168px; }
  .mp-duo { gap: 14px; }
  .mp-fig .mp-duo .phone:nth-child(2) { margin-top: 32px; }
  .mp-fig .chip.fig__chip { right: -4px; top: -14px; }
}
@keyframes mpWireV { from { top: 0; } to { top: calc(100% - 10px); } }
@media (max-width: 420px) {
  .page-mobile .page-hero--split .phones { transform: scale(.62); margin-bottom: -200px; }
  .mph { width: 236px; }
  .mp-fig .mp-duo .phone { width: 150px; }
  .rstep { padding: 13px 14px; column-gap: 11px; grid-template-columns: 30px 1fr; }
  .rstep__n { width: 30px; height: 30px; }
}
@media (max-width: 340px) { .mp-fig .mp-duo .phone { width: 128px; } .mp-duo { gap: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .mps, .mps--app, .desk__lcd { transition: none; }
  .mps__end--ok i, .desk[data-desk="moving"] .desk__lcd, .mp-move[data-state="moving"] .wire__dot { animation: none; }
}
html[data-motion="reduced"] .mps, html[data-motion="reduced"] .mps--app, html[data-motion="reduced"] .desk__lcd { transition: none; }
html[data-motion="reduced"] .mps__end--ok i, html[data-motion="reduced"] .desk[data-desk="moving"] .desk__lcd, html[data-motion="reduced"] .mp-move[data-state="moving"] .wire__dot { animation: none; }

/* provenance chips that sit on a dark device surface keep their light text in the light theme too (components.css gives .chip--real a dark green there) */
body.page-mobile .fig__chip.chip--real { color: #8fd488; }
body.page-mobile .fig__chip.chip--demo { color: #ffcb52; }
#look-sec .cc { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
@media (max-width: 1180px) { #look-sec .cc { grid-template-columns: minmax(0, 1fr); } }

.page-mobile .console-wrap, .page-mobile .cc > *, .page-mobile .mp-admin > * { min-width: 0; }
.page-mobile .mp-fig { max-width: 100%; }
