/* Shared mobile app layer. No remote fonts, images, trackers or private caches. */
.app-icon{width:24px;height:24px;flex:none;vertical-align:middle}
/* These pages scroll as a whole; loaded cards must not squeeze the welcome out. */
body.has-tabbar main>.screen:not(#s-chat)>*{flex-shrink:0}
header.top{padding-top:max(10px,env(safe-area-inset-top));gap:8px}
.wellbeing-hub{position:relative;overflow:hidden;padding:28px;border-radius:28px;background:var(--raised);gap:18px}
.eyebrow{font-size:11px;font-weight:650;letter-spacing:.1em;color:var(--muted);line-height:1.7}
.wellbeing-intro{display:flex;align-items:center;gap:16px;max-width:640px}
.wellbeing-mark{width:64px;height:64px;flex:none;border:1px solid var(--line);background:var(--accent-soft);border-radius:22px;display:grid;place-items:center;color:var(--primary)}
.wellbeing-mark svg{width:34px;height:34px}
.wellbeing-hub h2{font-size:clamp(1.55rem,4vw,2.25rem);font-weight:550;letter-spacing:-.025em}
.wellbeing-grid{gap:12px}.wellbeing-choice{position:relative;border-color:var(--line);background:var(--surface);border-radius:22px;min-height:142px;padding:18px;transition:background .15s,transform .15s}
.wellbeing-choice>.app-icon{margin-bottom:5px;color:var(--primary)}
.wellbeing-choice[data-need=talk]{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.wellbeing-choice[data-need=talk] .app-icon,.wellbeing-choice[data-need=talk] .muted{color:inherit}
.wellbeing-choice strong{font-size:1rem}.wellbeing-choice span{line-height:1.5;max-width:32ch}
.wellbeing-choice:hover{transform:translateY(-2px)}.wellbeing-choice[data-need=talk]:hover{background:var(--primary)}
.wellbeing-support{padding-top:18px}.wellbeing-support p{font-size:12px;line-height:1.65}
.device-shortcut{display:flex;align-items:center;gap:14px;width:100%;text-align:start;font:inherit;cursor:pointer;background:var(--affirm-soft);color:var(--text);padding:18px 20px;border:1px solid var(--line);border-radius:22px;min-height:88px}
.shortcut-icon{padding:12px;border-radius:16px;background:var(--raised);display:grid;place-items:center;color:var(--affirm-text)}
.shortcut-words{display:flex;flex-direction:column;gap:3px;flex:1}.shortcut-words strong{font-size:1rem;font-weight:600}
[dir=rtl] .device-shortcut>.app-icon{transform:rotate(180deg)}
.devices-screen{padding-bottom:24px;gap:20px}.device-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.devices-screen>h1{font-size:clamp(1.7rem,4vw,2.4rem);letter-spacing:-.03em;line-height:1.25}
.devices-screen>p{max-width:65ch}.device-status{display:flex;gap:12px;align-items:center;padding:16px 18px;border-radius:18px;background:var(--accent-soft);border:1px solid var(--line);font-size:14px}
.provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.provider-card{background:var(--raised);border:1px solid var(--line);border-radius:22px;padding:20px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}
.provider-title{display:flex;align-items:center;gap:10px;min-height:58px}.provider-title h2{font-size:16px;line-height:1.5;overflow-wrap:anywhere}.provider-card .btn{margin-top:auto;width:100%;font-size:12px;padding:10px 8px;min-height:44px}
.status-pill{border:1px solid var(--line);padding:4px 9px;border-radius:9px;font-size:11px;font-weight:550;display:inline-block;align-self:flex-start;color:var(--muted);background:var(--surface);line-height:1.5}
.device-details{border:1px solid var(--line);border-radius:18px;background:var(--raised);padding:12px 18px}.device-details summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;font-size:15px;font-weight:550}.device-details p{padding:10px 0;max-width:76ch}
.device-sample{background:var(--raised);border:1px solid var(--line);border-radius:24px;padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%;min-width:0}
.device-sample>h2{font-size:24px}.device-sample>.row{gap:8px}.device-sample .btn{font-size:13px}.device-sample>p{max-width:72ch}
.stream-choices{display:flex;flex-wrap:wrap;gap:12px;width:100%;border:0;padding:0;margin:0;min-width:0}.stream-choices legend{font-size:14px;font-weight:550;padding:0;margin-bottom:12px}
.stream-choice{display:flex;flex-direction:row;align-items:center;gap:10px;border:1px solid var(--line-strong);border-radius:14px;padding:12px;flex:1;min-height:48px;font-size:14px;cursor:pointer;background:var(--surface)}
.stream-choice:has(input:checked){background:var(--affirm-soft);border-color:var(--affirm-text)}.stream-choice input{width:20px;height:20px;flex:none;accent-color:var(--primary);margin:0}
.sample-state{padding:10px 12px;border-inline-start:3px solid var(--accent);background:var(--surface);width:100%;border-radius:0 10px 10px 0}
.reading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}.reading-card{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface);display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}
.reading-top{display:flex;gap:10px;align-items:center;min-height:36px}.reading-top h3{font-size:13px;font-weight:550}.reading-top .app-icon{width:20px;height:20px;color:var(--primary)}
.reading-value{font-size:clamp(1.5rem,4vw,2rem);line-height:1.4;font-weight:500;letter-spacing:-.03em}.reading-card .small{font-size:11px}.reading-card[data-state=poor] .status-pill,.reading-card[data-state=stale] .status-pill{border-color:var(--accent-text);color:var(--accent-text)}
.device-privacy{padding:8px 0}.device-privacy h2{font-size:18px;margin-bottom:8px}.device-feedback:empty{display:none}
body.has-tabbar .tabbar{padding-bottom:max(10px,env(safe-area-inset-bottom));background:var(--raised);border-top:1px solid var(--line);gap:4px}
body.has-tabbar .tabbar .tab{border-radius:16px;color:var(--muted);font-size:12px;min-height:56px;padding:8px 6px;border:0;gap:4px}
body.has-tabbar .tabbar .tab.on{background:var(--accent-soft);color:var(--text)}
.tabbar .ic{display:flex;align-items:center;justify-content:center}.tabbar .app-icon{width:22px;height:22px}.tabbar .lb{white-space:normal;line-height:1.4}
.composer{border-radius:20px;padding:8px;background:var(--raised);border:1px solid var(--line)}.composer textarea{border:0;background:transparent;min-height:48px;padding:10px;line-height:1.5}
#s-landing .hero{padding-block:40px 20px}#s-landing h1{font-size:clamp(1.9rem,5vw,3rem);letter-spacing:-.025em;max-width:24ch}#s-landing .hero>p{max-width:60ch}
.landing-moments{display:flex;gap:8px;flex-wrap:wrap}.landing-moments span{font-size:13px;padding:6px 12px;background:var(--raised);border:1px solid var(--line);border-radius:999px}
.demo-banner{padding:10px 16px;background:var(--accent-soft);border-bottom:1px solid var(--line);font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.mobile-demo main{max-width:1050px;width:100%;margin:auto;gap:20px}.mobile-demo .app{max-width:1200px}.mobile-demo footer{flex-direction:row;justify-content:space-between;flex-wrap:wrap;gap:10px}
@media(min-width:901px){body.has-tabbar main>.screen{padding:22px}body.has-tabbar .tabbar{justify-content:center}body.has-tabbar .tabbar .tab{max-width:170px;flex-direction:row;gap:10px}#s-day>.wellbeing-hub{margin-top:0}}
@media(max-width:760px){.provider-grid{grid-template-columns:1fr}.provider-card{display:grid;grid-template-columns:1fr auto;padding:18px;gap:12px}.provider-title{min-height:0}.provider-card>p{grid-column:1 / -1}.provider-card>.btn{grid-column:1 / -1}.provider-card>.status-pill{max-width:160px}.wellbeing-hub{padding:22px}.wellbeing-intro{gap:12px}.wellbeing-mark{width:52px;height:52px;border-radius:18px}.device-sample{padding:18px}.stream-choice{min-width:120px}}
@media(max-width:520px){header.top{gap:6px;padding-inline:12px}header.top .brand{font-size:17px;gap:6px}header.top .brand svg{width:26px;height:26px}header.top .ai{order:0;flex-basis:auto;border:0;padding:0;font-size:10px}header.top .btn{font-size:11px;padding:8px 10px}header.top #btnInstall{flex-basis:100%}main{padding:14px}.wellbeing-hub{padding:18px;border-radius:24px}.wellbeing-choice{padding:15px;min-height:152px}.wellbeing-choice strong{font-size:14px}.wellbeing-choice span{font-size:12px}.wellbeing-hub>.muted{font-size:14px}.wellbeing-intro .eyebrow{font-size:10px}.wellbeing-hub h2{font-size:1.6rem}.wellbeing-support .btn{font-size:12px;padding-inline:10px}.device-shortcut{padding:15px;gap:10px}.shortcut-words strong{font-size:14px}.shortcut-words .small{font-size:11px}.device-shortcut>.app-icon{width:18px}.shortcut-icon{padding:9px}.reading-card{padding:14px;gap:10px}.reading-top{align-items:flex-start;gap:7px}.reading-top h3{font-size:12px}.reading-value{font-size:1.55rem}.device-sample .row .btn{flex:1}.device-sample .row .btn:last-child{flex-basis:100%}.device-heading .eyebrow{display:none}body.has-tabbar .tabbar .tab{font-size:10px;min-height:58px;gap:4px;padding:8px 2px}.composer{gap:3px}.composer .btn{min-width:44px;padding-inline:10px}.mobile-demo header.top .lang button{padding-inline:10px}#s-landing .hero{padding-top:22px}}
@media(max-width:360px){.wellbeing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wellbeing-choice{min-height:152px;padding:12px}.wellbeing-intro{align-items:flex-start}.wellbeing-mark{width:42px;height:42px}.wellbeing-hub h2{font-size:1.4rem}.reading-grid{grid-template-columns:1fr}.provider-card{grid-template-columns:1fr}.provider-card>.status-pill{max-width:100%}.stream-choice{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.wellbeing-choice:hover{transform:none}}
