/* ==========================================================================
   Mobile Apps page only (mobile-apps.html, _build/mobile_page.py). Loaded
   after systems.css, which supplies the phone frame, the flip and the
   timeline frame; behaviour is all in systems.js.
   ========================================================================== */

#apps { padding-bottom: clamp(36px, 4.5vw, 60px); }

/* ---- hero: a day in one phone ------------------------------------------------
   pinned by scrubhero.js (the .sh- rules live in systems.css); mobileday.js
   runs the clock */
.mb-day__read { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; width: 100%; max-width: 440px; }
.mb-day__clock {
  margin: 0; font-family: var(--font-pixel); font-variation-settings: "ROND" 0; font-weight: 800; font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap;
}
.mb-day__cap b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 400; line-height: 1.15; }
.mb-day__cap p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

.mb-day__bar { position: relative; width: 100%; max-width: 440px; height: 40px; margin-top: 4px; }
.mb-day__line { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line-2); }
.mb-day__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text); }
.mb-day__fill::after { content: ""; position: absolute; right: -1px; top: -5px; width: 2px; height: 12px; background: var(--text); }
.mb-day__tick { position: absolute; top: 12px; width: 1px; height: 4px; background: var(--line-2); }
.mb-day__tick--l { height: 7px; background: var(--text-3); }
.mb-day__tick small { position: absolute; top: 10px; left: 0; translate: -50% 0; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.mb-day__stop {
  position: absolute; top: 1px; width: 14px; height: 14px; translate: -50% 0; padding: 0; border-radius: 50%;
  border: 2px solid var(--text); background: var(--bg, #F4F3EF); cursor: pointer; transition: background .2s, border-color .2s, scale .2s;
}
.mb-day__stop:hover { scale: 1.2; }
.mb-day__stop.is-on { border-color: var(--green); background: var(--green); }
.mb-day__stop:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (max-width: 900px) {
  .mb-day__read { gap: 14px; }
  .mb-day__cap b { font-size: 18px; }
  .mb-day__cap p { font-size: 13px; }
}

/* ---- hero phones ------------------------------------------------------------ */
.mb-k { margin: 2px 0 0; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #70757a; }
.mb-th { width: 30px; height: 30px; flex: none; border-radius: 7px; }
.mb-th--0 { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .6), transparent 55%), linear-gradient(135deg, #E2520F, #F2C230); }
.mb-th--1 { background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .5), transparent 55%), linear-gradient(135deg, #2F5BD3, #7FB8F0); }
.mb-hi { display: grid; grid-template-columns: 1fr auto; margin: 2px 0 0; }
.mb-hi small { font-size: 10px; color: #70757a; }
.mb-hi b { grid-row: 2; font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1.05; }
.mb-hi .sy-mono { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 30px; height: 30px; }
.mb-next { display: grid; gap: 2px; padding: 11px; border-radius: 14px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .35), transparent 50%), linear-gradient(135deg, #E2520F, #F2C230); }
.mb-next small { font-size: 9.5px; opacity: .85; }
.mb-next b { font-size: 14px; }
.mb-next span { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10px; }
.mb-next span i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.mb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mb-list li { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.mb-list span { display: grid; flex: 1; }
.mb-list b { font-size: 11.5px; }
.mb-list small { font-size: 9.5px; color: #8a8f94; }
.mb-list em { font-style: normal; font-size: 10px; font-weight: 700; color: #E2520F; }
.mb-tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 8px 6px 12px; border-top: 1px solid #e8e8e5; background: rgba(255, 255, 255, .92); }
.mb-tabbar span { display: grid; justify-items: center; gap: 3px; font-size: 8.5px; color: #8a8f94; }
.mb-tabbar i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid currentColor; }
.mb-tabbar .is-on { color: #E2520F; }

.mb-lock { background: radial-gradient(circle at 30% 20%, rgba(242, 194, 48, .55), transparent 55%), radial-gradient(circle at 80% 85%, rgba(47, 91, 211, .6), transparent 55%), #1d2238; color: #fff; }
.mb-clock { display: grid; justify-items: center; margin: 6px 0 14px; font-size: 52px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.mb-clock small { margin-bottom: 4px; font-size: 11px; font-weight: 400; letter-spacing: 0; opacity: .85; }
.mb-note { display: grid; gap: 2px; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .78); color: #202124; backdrop-filter: blur(8px); }
.mb-note p { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; }
.mb-note .sy-mono { width: 16px; height: 16px; border-radius: 4px; font-size: 8px; }
.mb-note p b { font-size: 9px; letter-spacing: .04em; color: #555; }
.mb-note p small { margin-left: auto; font-size: 9px; color: #777; }
.mb-note > b { font-size: 11.5px; }
.mb-note > span { font-size: 10.5px; color: #444; }
.mb-lock__foot { position: absolute; left: 22px; right: 22px; bottom: 16px; display: flex; justify-content: space-between; margin: 0; }
.mb-lock__foot i { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .22); }

.mb-scan { padding: 0; gap: 0; background: #111; }
.mb-cam { position: relative; display: grid; place-items: center; height: 210px; background: radial-gradient(circle at 50% 45%, #3b3b3b, #121212 70%); }
.mb-cam__frame { position: absolute; width: 120px; height: 80px; border-radius: 10px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.mb-cam__frame::before, .mb-cam__frame::after { content: ""; position: absolute; inset: -2px; border-radius: 10px; border: 3px solid #F2C230; clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%, 0 0, 100% 0, 100% 100%, 78% 100%, 78% 0); }
.mb-cam__frame i { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: #E2520F; box-shadow: 0 0 10px #E2520F; }
.mb-cam__code { width: 84px; height: 46px; background: repeating-linear-gradient(90deg, #ddd 0 2px, transparent 2px 4px, #ddd 4px 7px, transparent 7px 9px); opacity: .9; }
.mb-cam small { position: absolute; bottom: 12px; font-size: 10px; color: rgba(255, 255, 255, .8); }
.mb-sheet { display: grid; gap: 7px; padding: 14px 13px; border-radius: 18px 18px 0 0; background: #fff; flex: 1; height: 100%; }
.mb-sheet p { display: flex; align-items: center; gap: 9px; margin: 0; }
.mb-sheet p span { display: grid; }
.mb-sheet b { font-size: 12.5px; }
.mb-sheet small { font-size: 9.5px; color: #8a8f94; }
.mb-sheet__row { justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0ee; font-size: 11px; color: #555; }
.mb-btn { display: block; padding: 10px; border-radius: 100px; background: #202124; color: #fff; font-size: 11px; font-weight: 700; text-align: center; }

.mb-offline { display: flex; align-items: center; gap: 7px; margin: 0; padding: 7px 10px; border-radius: 9px; background: #fdf1d6; color: #8a5a00; font-size: 10px; font-weight: 700; }
.mb-offline i { width: 7px; height: 7px; border-radius: 50%; background: #E8A317; }
.mb-form__h { display: grid; margin: 2px 0 0; font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.mb-form__h small { font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #70757a; }
.mb-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.mb-check li { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 10px; background: #fff; font-size: 11px; }
.mb-check li::before { content: ""; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid #c9c9c5; }
.mb-check li.is-on::before { border-color: #E2520F; background: #E2520F; box-shadow: inset 0 0 0 2px #fff; }
.mb-photos { display: flex; gap: 6px; margin: 0; }
.mb-photos i, .mb-photos span { width: 40px; height: 40px; border-radius: 8px; }
.mb-photos i { background: linear-gradient(135deg, #8C95A0, #d6d6d2); }
.mb-photos i + i { background: linear-gradient(135deg, #7FB8F0, #2F5BD3); }
.mb-photos i + i + i { background: linear-gradient(135deg, #F2C230, #E2520F); }
.mb-photos span { display: grid; place-items: center; border: 1.5px dashed #c9c9c5; color: #8a8f94; }

/* ---- one app, two phones ---------------------------------------------------- */
#twin .sy-win { display: grid; place-items: center; padding: 26px 16px; background: linear-gradient(180deg, #f6f6f3, #ecebe6); }
.mb-tw .sy-phone { width: 236px; height: 440px; gap: 10px; }
.mb-tw__top { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 26px; }
.mb-tw__top b { font-size: 15px; }
.mb-tw--ios .mb-tw__top { justify-content: center; position: relative; }
.mb-tw--ios .mb-tw__top .sy-hl { position: absolute; left: 0; }
.mb-tw__back { font-size: 13px; color: #2F5BD3; padding: 2px 4px; }
.mb-tw--android .mb-tw__back { font-size: 18px; color: #202124; }
.mb-tw--android .sy-phone { border-radius: 26px; font-family: Roboto, Arial, Helvetica, sans-serif; }
.mb-tw__sum { display: flex; justify-content: space-between; margin: 0; padding: 8px 2px; border-top: 1px solid #e3e3df; font-size: 12px; }
.mb-tw__pay { display: block; padding: 11px; border-radius: 10px; background: #000; color: #fff; text-align: center; font-size: 13px; }
.mb-tw--android .mb-tw__pay { border-radius: 100px; background: #202124; }
.mb-tw__auth { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; font-size: 11px; color: #555; }
.mb-tw__auth i { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #2F5BD3; }
.mb-tw__auth--fp i { border-radius: 50%; border-style: double; border-width: 4px; }
.mb-tw__tabs { position: absolute; left: 0; right: 0; bottom: 0; }
.mb-tw__tabs .sy-hl { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 6px 12px; border-radius: 0; background: rgba(255, 255, 255, .95); }
.mb-tw__tabs .sy-hl > span { display: grid; justify-items: center; gap: 3px; font-size: 9px; color: #8a8f94; }
.mb-tw__tabs i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid currentColor; }
.mb-tw--ios .mb-tw__tabs .sy-hl > .is-on { color: #2F5BD3; }
.mb-tw--android .mb-tw__tabs .sy-hl > .is-on { color: #202124; }
.mb-tw--android .mb-tw__tabs .sy-hl > .is-on i { width: 40px; border-radius: 100px; border: 0; background: rgba(226, 82, 15, .2); }

/* ---- the rollout horn ---------------------------------------------------------- */
.mb-plan { fill: none; stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 4 6; opacity: .55; }
.mb-live path { fill: none; stroke: url(#syLine); stroke-width: 2; }
.mb-axisline { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 2 5; opacity: .6; }
.mb-proto rect { fill: var(--ink); stroke: var(--orange); stroke-width: 2; }
.mb-proto path { stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.mb-dev { fill: url(#syLine); stroke: var(--ink); stroke-width: 1; transition: opacity .35s var(--ease), transform .35s var(--ease); transform-box: fill-box; transform-origin: center; }
.sg-js .mb-dev:not(.is-live) { opacity: 0; transform: scale(.2); }
.mb-gate path { stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.mb-gate text { fill: var(--text-3); font-size: 11px; letter-spacing: .1em; }
.mb-gate.is-live path { stroke: var(--orange); }
.mb-gate.is-live text { fill: var(--text); }
@media (prefers-reduced-motion: reduce) { .mb-dev { transition: none; } }
