/* App screen mockups. Same tokens as the website; iOS and Android each keep their own platform conventions. */

.apps-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.apps-hero .section-intro { margin-bottom: 0; }
.platform { padding: 2.5rem 0 3.5rem; }
.platform + .platform { border-top: 1px solid var(--rule); }
.platform h2 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.platform > .wrap > p { color: var(--steel); max-width: 40rem; }

.device-row { display: flex; gap: 2.25rem; overflow-x: auto; padding: 2rem var(--gutter) 1rem; margin: 0 calc(var(--gutter) * -1); scroll-snap-type: x mandatory; }
.device-row:focus-visible { outline-offset: -3px; }
figure.shot { margin: 0; flex: none; width: 300px; scroll-snap-align: start; display: grid; gap: 0.9rem; }
figure.shot figcaption { font-size: 0.92rem; color: var(--ink-soft); }
figure.shot figcaption strong { display: block; color: var(--ink); font-weight: 700; }

/* Frames */
.phone { position: relative; width: 300px; height: 640px; background: #0e1520; padding: 10px; box-shadow: 0 30px 50px -35px rgba(19, 36, 58, 0.6); }
.phone .screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; color: var(--ink); }
.ios { border-radius: 48px; }
.ios .screen { border-radius: 38px; }
.ios .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 20px; background: #0e1520; z-index: 3; }
.android { border-radius: 34px; }
.android .screen { border-radius: 26px; }
.android .camera { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #0e1520; z-index: 3; }

.status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0; height: 44px; font-weight: 650; font-size: 13px; flex: none; }
.android .status { padding: 10px 22px 0; height: 36px; font-weight: 500; }
.status .icons { display: flex; gap: 5px; align-items: center; }
.status .icons i { display: block; width: 15px; height: 9px; border-radius: 2px; background: currentColor; opacity: 0.85; }
.status .icons i:nth-child(1) { width: 14px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.status .icons i:nth-child(3) { width: 22px; border-radius: 3px; }

.home-bar { flex: none; height: 22px; display: grid; place-items: center; }
.home-bar::after { content: ""; width: 110px; height: 5px; border-radius: 3px; background: #0e1520; }
.android .home-bar::after { width: 90px; height: 4px; background: #5f6b78; }

.scroll { flex: 1; overflow: hidden; padding: 0 18px; display: flex; flex-direction: column; gap: 12px; }

/* iOS parts */
.ios-nav { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 2px; color: var(--tab-blue); font-size: 15px; flex: none; }
.ios-nav b { color: var(--ink); font-weight: 650; }
.large-title { font: 800 28px/1.1 var(--sans); font-stretch: 112%; padding: 4px 18px 8px; flex: none; }
.search { margin: 0 18px 4px; background: #eef1f4; border-radius: 10px; padding: 8px 12px; color: #7d8b99; flex: none; }
.group-label { font-size: 12px; color: var(--steel); margin: 8px 0 -6px 4px; }
.ios-list { background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.ios-list .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; }
.ios-list .row + .row { border-top: 1px solid var(--rule); }
.ios-list .row small { color: var(--steel); font-size: 12px; white-space: nowrap; }
.ios-list .row .chev::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid #b4bec8; border-top: 2px solid #b4bec8; transform: rotate(45deg); margin-left: 6px; }
.ios-list .row.sel { background: #f0f5ff; }
.tab-dot { display: inline-block; width: 7px; height: 10px; border-radius: 0 2px 2px 0; background: var(--c, var(--tab-blue)); margin-right: 8px; vertical-align: -1px; }
.cta-bar { flex: none; padding: 10px 18px 6px; display: grid; gap: 8px; }
.pill-btn { display: block; text-align: center; padding: 12px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 650; }
.pill-btn.light { background: #eef1f4; color: var(--ink); }
.android .pill-btn { border-radius: 22px; }

/* Question screen parts */
.q-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--steel); }
.progress-line { height: 4px; border-radius: 2px; background: #e4e9ee; overflow: hidden; }
.progress-line span { display: block; height: 100%; width: 30%; background: var(--tab-blue); }
.q-text { font-family: var(--serif); font-size: 16.5px; line-height: 1.42; }
.opt { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--rule); border-radius: 11px; padding: 9px 11px; font-size: 13.5px; }
.opt b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #eef1f4; font-size: 12px; }
.opt.right { border-color: var(--tab-green); background: #ecf7f1; }
.opt.right b { background: var(--tab-green); color: #fff; }
.android .opt { border-radius: 14px; }
.explain { border-top: 1px dashed var(--rule); padding-top: 10px; display: grid; gap: 8px; font-size: 13px; }
.explain q { font-family: var(--serif); quotes: none; font-size: 14px; }
.cite { position: relative; display: flex; align-items: center; gap: 10px; background: var(--tab-blue); color: #fff; border-radius: 0 10px 10px 0; padding: 8px 12px; margin-left: -18px; margin-right: 18px; }
.cite .pg { font: 800 19px/1 var(--sans); white-space: nowrap; }
.cite .bk { font-size: 11.5px; line-height: 1.25; }

/* Progress screen */
.score { display: flex; align-items: baseline; gap: 10px; }
.score b { font: 800 34px/1 var(--sans); font-stretch: 112%; }
.score span { color: var(--steel); font-size: 13px; }
.areas { display: grid; gap: 6px; }
.area { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 12px; line-height: 1.3; }
.area .bar { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: #e4e9ee; overflow: hidden; }
.area .bar span { display: block; height: 100%; background: var(--tab-green); }
.area.weak .bar span { background: var(--tab-red); }
.area small { color: var(--steel); }
.callout { background: var(--marker-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* Lock screen */
.phone .screen.lock { background: linear-gradient(170deg, #1b3150 0%, #2c4f78 55%, #4a7aa8 100%); color: #fff; }
.lock .clock { text-align: center; padding-top: 18px; flex: none; }
.lock .clock small { display: block; font-size: 14px; opacity: 0.85; }
.lock .clock b { display: block; font: 700 64px/1 var(--sans); font-stretch: 105%; }
.lock .scroll { justify-content: flex-end; padding-bottom: 10px; }
.ios-notif { background: rgba(255, 255, 255, 0.86); color: var(--ink); border-radius: 18px; padding: 11px 13px; display: grid; gap: 6px; }
.ios-notif .head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--steel); }
.ios-notif .head .ico, .a-notif .ico { width: 20px; height: 20px; border-radius: 5px; background: var(--ink); position: relative; flex: none; }
.ios-notif .head .ico::after, .a-notif .ico::after { content: ""; position: absolute; right: 4px; top: 5px; width: 4px; height: 7px; background: var(--marker); border-radius: 0 1px 1px 0; }
.ios-notif .head span:last-child { margin-left: auto; }
.ios-notif p { font-size: 13.5px; }
.actions { display: grid; gap: 6px; }
.actions span { background: rgba(255, 255, 255, 0.92); color: var(--tab-blue); text-align: center; padding: 9px; border-radius: 12px; font-size: 13.5px; }

/* Pipe chat */
.chat-head { display: flex; align-items: center; gap: 10px; padding: 6px 18px 10px; border-bottom: 1px solid var(--rule); flex: none; }
.chat-head .av { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--marker); display: grid; place-items: center; font: 800 15px/1 var(--sans); }
.chat-head small { display: block; color: var(--steel); font-size: 11.5px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; }
.msg.me { align-self: flex-end; background: var(--tab-blue); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: #eef1f4; border-bottom-left-radius: 5px; display: grid; gap: 7px; }
.msg.bot .src { font-size: 11.5px; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 6px; display: flex; gap: 6px; }
.msg.bot .src::before { content: ""; flex: none; width: 6px; height: 9px; margin-top: 3px; border-radius: 0 2px 2px 0; background: var(--tab-blue); }
.composer { flex: none; margin: 8px 14px 4px; border: 1px solid var(--rule); border-radius: 20px; padding: 9px 14px; color: #8a97a5; font-size: 13px; }

/* Android parts */
.top-bar { display: flex; align-items: center; gap: 14px; padding: 8px 16px; font-size: 19px; font-weight: 600; flex: none; }
.top-bar .back { width: 10px; height: 10px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-left: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--rule); border-radius: 8px; padding: 5px 10px; font-size: 12px; }
.chip.on { background: #e3ecfb; border-color: #e3ecfb; color: #1c4fae; font-weight: 600; }
.book-group { display: grid; gap: 6px; }
.book-group h4 { margin: 4px 0 0; font-size: 13px; display: flex; align-items: center; }
.hl-item { display: grid; grid-template-columns: 52px 1fr 20px; gap: 10px; align-items: start; padding: 9px 10px; border-radius: 14px; background: #f4f6f8; font-size: 12.5px; }
.hl-item .pg { font: 800 15px/1.2 var(--sans); }
.hl-item .box { width: 18px; height: 18px; border: 2px solid #7d8b99; border-radius: 4px; }
.hl-item.done .box { background: var(--tab-green); border-color: var(--tab-green); }
.hl-item.empty { grid-template-columns: 1fr; color: var(--steel); background: none; border: 1px dashed var(--rule); }
.fab { align-self: flex-end; background: #d8e5fb; color: #1c4fae; border-radius: 16px; padding: 12px 16px; font-weight: 600; font-size: 13px; }
.phone .screen.shade { background: #1e2733; color: #e6ebf0; }
.shade .qs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 6px 16px 12px; flex: none; }
.shade .qs i { height: 44px; border-radius: 22px; background: #2e3a48; }
.shade .qs i:nth-child(1), .shade .qs i:nth-child(3) { background: #9fc3ff; }
.a-notif { background: #2a3442; border-radius: 20px; padding: 12px 14px; display: grid; gap: 8px; }
.a-notif .head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b7c2cf; }
.a-notif p { font-size: 13.5px; }
.a-notif .acts { display: flex; gap: 14px; font-size: 13px; font-weight: 600; color: #9fc3ff; }
.a-notif.muted { opacity: 0.75; }
