/* Demo page: the app itself, full screen and centered, with a quiet progress bar at the bottom.
   The screens inside reuse the phone-screen styles from styles.css. */
body.app-page{background:#F7FAF9;color:#10211C;color-scheme:light}
body.app-page::before{background:#fff}
.app{position:fixed;inset:0 0 calc(54px + env(safe-area-inset-bottom,0px)) 0;display:flex;flex-direction:column;background:#F7FAF9;color:#10211C;padding-top:env(safe-area-inset-top,0px)}
/* center the app's content in a readable column on wide screens */
.app .apphead,.app .body,.app .foot{padding-left:max(16px,calc(50% - 330px));padding-right:max(16px,calc(50% - 330px))}
.app .apphead{background:#fff;padding-top:14px;padding-bottom:14px}
.app .apphead a.mark{display:block}
.app .body{padding-top:22px;padding-bottom:22px;gap:14px}
.app .foot{padding-top:14px;padding-bottom:16px}
.app .foot .pbtn{max-width:660px}
@media (min-width:900px){
  html{font-size:17px}
  .app .body > .s-h{font-size:1.6rem}
}

/* bottom progress: simplified stages, deliberately understated */
.prog{position:fixed;left:0;right:0;bottom:0;height:calc(54px + env(safe-area-inset-bottom,0px));padding:0 16px env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid #E3ECE8;display:flex;align-items:center;justify-content:center}
.prog ol{list-style:none;margin:0;padding:0;display:flex;gap:6px;width:100%;max-width:720px}
.prog li{flex:1;min-width:0}
.prog button{border:0;background:none;padding:6px 0;margin:0;cursor:pointer;display:grid;gap:6px;width:100%;font:inherit}
.prog i{display:block;height:3px;border-radius:3px;background:#E3ECE8;transition:background .3s ease}
.prog .done i{background:#2F7D6D}
.prog .now i{background:#FF9F1C}
.prog span{font-size:.66rem;font-weight:600;letter-spacing:.02em;color:#A7B8B2;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prog .done span{color:#6F827C}
.prog .now span{color:#10211C}
@media (max-width:520px){.prog span{visibility:hidden}.prog .now span{visibility:visible;overflow:visible}}

/* phone: describe */
.mtabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#E6EFEB;border-radius:12px;padding:4px}
.mtab{border:0;background:transparent;border-radius:9px;padding:8px 4px;font-weight:600;font-size:.8rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;color:#10211C}
.mtab svg{width:18px;height:18px;color:#2F7D6D}
.mtab[aria-pressed="true"]{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.voice{display:grid;justify-items:center;gap:10px;padding:12px 0 2px}
.mic{width:84px;height:84px;border-radius:50%;border:0;background:#10211C;color:#fff;display:grid;place-items:center;cursor:pointer;position:relative}
.mic svg{width:34px;height:34px}
.mic.rec{background:#FF9F1C;color:#10211C}
.mic.rec::before,.mic.rec::after{content:"";position:absolute;inset:-8px;border-radius:50%;border:3px solid #FF9F1C;animation:ring 1.4s ease-out infinite}
.mic.rec::after{animation-delay:.7s}
@keyframes ring{from{transform:scale(.92);opacity:.9}to{transform:scale(1.35);opacity:0}}
.wave{display:flex;gap:4px;align-items:center;height:26px}
.wave i{width:4px;height:8px;border-radius:4px;background:#2F7D6D;animation:wv .9s ease-in-out infinite}
.wave i:nth-child(2){animation-delay:.12s}.wave i:nth-child(3){animation-delay:.24s}.wave i:nth-child(4){animation-delay:.36s}.wave i:nth-child(5){animation-delay:.48s}.wave i:nth-child(6){animation-delay:.6s}.wave i:nth-child(7){animation-delay:.72s}
@keyframes wv{50%{height:26px}}
.transcript p{font-size:.92rem;line-height:1.5}
.caret{display:inline-block;width:2px;height:1em;background:#2F7D6D;margin-left:2px;vertical-align:-2px;animation:pulse .8s infinite}
.drop{border:2px dashed #9BB3AA;border-radius:14px;background:#fff;padding:24px 16px;display:grid;justify-items:center;gap:6px;cursor:pointer;width:100%;color:#10211C;text-align:center}
.drop:hover{border-color:#2F7D6D}
.drop svg{width:30px;height:30px;color:#2F7D6D}
.drop .fake{background:#E6EFEB;border-radius:10px;padding:9px 16px;font-weight:700;font-size:.88rem;margin-top:4px}
.file{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
.file .prog{grid-column:1 / -1}
.fic{width:36px;height:42px;border-radius:6px;background:#FFE7C2;color:#8A4B00;display:grid;place-items:center}
.fic svg{width:22px;height:22px}
.fname{display:block;font-size:.84rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.docscan{position:relative;height:78px;border-radius:10px;background:#F1F5F3;padding:12px;display:grid;gap:7px;overflow:hidden}
.docscan i{display:block;height:6px;border-radius:4px;background:#D3E0DA}
.docscan i:nth-child(2n){width:76%}
.scanline{position:absolute;left:0;right:0;top:0;height:22px;background:linear-gradient(180deg,transparent,rgba(255,159,28,.5),transparent);animation:scan 1.1s linear infinite}
@keyframes scan{from{transform:translateY(-22px)}to{transform:translateY(84px)}}
.reqs{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.reqs li{display:flex;gap:8px;font-size:.85rem;line-height:1.4}
.reqs svg{width:16px;height:16px;color:#2F7D6D;flex:none;margin-top:2px}
.reqs em{font-style:normal;color:#53635E;font-size:.75rem;white-space:nowrap}

/* phone: questions, tools */
.why{display:block;font-size:.78rem;color:#53635E;margin-top:6px;padding-top:6px;border-top:1px dashed #D8E3DE}
.spin{width:16px;height:16px;border-radius:50%;border:2.5px solid #C9D8D2;border-top-color:#2F7D6D;animation:spin .8s linear infinite;flex:none;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
.tool{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;padding:10px 12px;background:#fff;border:1px solid #E3ECE8;border-radius:12px;font-size:.86rem}
.tool.wait{opacity:.45}
.tool .spin{margin-top:2px}
.tool code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.68rem;background:#E6EFEB;border-radius:5px;padding:1px 6px;color:#1F4D43;margin-left:4px}
.tool .res{display:block;color:#53635E;font-size:.8rem;margin-top:2px;line-height:1.4}
.okc{width:20px;height:20px;border-radius:50%;background:#2F7D6D;color:#fff;display:grid;place-items:center;flex:none}
.okc svg{width:12px;height:12px}
.dim{width:20px;height:20px;border-radius:50%;border:1.5px dashed #9BB3AA;display:block}

/* phone: plan */
.stg{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;padding:10px 0 2px;border-top:1px solid #E3ECE8}
.dn{width:22px;height:22px;border-radius:50%;background:#1F4D43;color:#fff;font-size:.72rem;font-weight:700;display:grid;place-items:center}
.stg .row{font-size:.86rem}
.stg .bar{height:6px;border-radius:6px;background:#E6EFEB;position:relative;margin:6px 0 4px}
.stg .bar i{position:absolute;top:0;bottom:0;border-radius:6px;background:#2F7D6D}
.stg .due{color:#8A4B00;font-weight:600}
.stg .row.small{flex-wrap:wrap;gap:2px 10px}
.stg .row.small span{white-space:nowrap}
.cardx.ink .row span{color:#A9CABF}
.cardx.ink .row b{color:#fff}

/* phone: match, build, payments */
.av{width:38px;height:38px;border-radius:50%;background:#1F4D43;color:#fff;font-weight:700;font-size:.8rem;display:grid;place-items:center;flex:none}
.av.amber{background:#FF9F1C;color:#10211C}
.who2{flex:1;min-width:0}
.who2 b{display:block;font-size:.92rem}
.tags{display:flex;flex-wrap:wrap;gap:4px}
.tags span{font-size:.72rem;font-weight:600;background:#EEF4F1;color:#1F4D43;border-radius:999px;padding:3px 8px}

.brow{display:grid;grid-template-columns:minmax(0,1fr) 60px 74px;gap:8px;align-items:center;font-size:.82rem}
.brow .st{justify-self:end}
.feed{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.feed li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;font-size:.82rem;line-height:1.4;padding:8px 10px;background:#fff;border:1px solid #E3ECE8;border-radius:10px}
.feed li b{font-size:.72rem;color:#53635E}
.feed li.pay{border-color:#9CCBBE;background:#EEF7F3}
.feed li.flag{border-color:#FF9F1C;background:#FFF6E8}
.ledger .row{padding:7px 0;border-top:1px solid #E3ECE8}
.ledger h4 + .row{border-top:0}
.ledger small{display:block;color:#53635E;font-size:.74rem}

/* phone: installer */
.refs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.addref{aspect-ratio:1;border:2px dashed #9BB3AA;border-radius:10px;background:#fff;display:grid;place-items:center;align-content:center;gap:4px;font-size:.72rem;font-weight:600;cursor:pointer;color:#10211C;padding:4px;text-align:center}
.addref svg{width:20px;height:20px;color:#2F7D6D}
.ring{width:92px;height:92px;border-radius:50%;background:conic-gradient(#2F7D6D calc(var(--v) * 1%), #E6EFEB 0);display:grid;place-items:center;flex:none}
.ring span{width:72px;height:72px;border-radius:50%;background:#fff;display:grid;place-items:center;align-content:center;font-weight:800;font-size:1.5rem;line-height:1}
.ring small{font-size:.6rem;font-weight:600;color:#53635E;letter-spacing:.06em}
.skill{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center;font-size:.82rem}
.skill .prog{grid-column:1 / -1}
.sdots{display:flex;gap:5px}
.sdots i{flex:1;height:5px;border-radius:5px;background:#E6EFEB}
.sdots i.on{background:#2F7D6D}
.sdots i.cur{background:#FF9F1C}
.ph.shot{aspect-ratio:16/9;max-height:150px;font-size:.72rem}
.ph.shot svg{width:16%;top:20%}
.ph .scanline{height:30px}
.prodchip{display:inline-flex;gap:6px;align-items:center;font-size:.74rem;font-weight:600;background:#FFF1DA;color:#8A4B00;border-radius:999px;padding:3px 9px;justify-self:start}

/* keep fixed-size items (like the big check mark) from squashing when a screen scrolls */
.body > *{flex-shrink:0}

/* account avatar and menu */
.app .apphead{position:relative}
.avatar{width:32px;height:32px;border-radius:50%;border:0;background:#1F4D43;color:#fff;font-weight:700;font-size:.74rem;cursor:pointer;flex:none;margin-left:2px}
.avatar[aria-expanded="true"]{box-shadow:0 0 0 3px rgba(255,159,28,.45)}
.acctmenu{position:absolute;top:calc(100% - 4px);right:max(16px,calc(50% - 330px));z-index:20;width:250px;background:#fff;border:1px solid #E3ECE8;border-radius:14px;box-shadow:0 20px 40px -16px rgba(0,0,0,.3);padding:6px;display:grid}
.am-who{display:grid;padding:10px 12px;border-bottom:1px solid #E3ECE8;margin-bottom:4px}
.am-who b{font-size:.92rem}
.am-who span{font-size:.78rem;color:#53635E}
.acctmenu button,.acctmenu a{border:0;background:none;text-align:left;padding:10px 12px;border-radius:10px;font:inherit;font-size:.88rem;color:#10211C;text-decoration:none;cursor:pointer}
.acctmenu button:hover,.acctmenu a:hover{background:#F1F5F3}
.acctmenu [data-act="signout"]{color:#B42318}
