@font-face{font-family:"Alfa Slab One";src:url("fonts/AlfaSlabOne-Regular.ttf") format("truetype");font-display:swap}
:root{--navy:#131a2a;--navy2:#1e2840;--navy3:#28345a;--gold:#f2b84b;--orange:#ff9f1c;--red:#ef4b3f;--olive:#6f8048;--ink:#1b2333;--muted:#8d97ab;--card:#fff;--soft:#f5f6fa}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:radial-gradient(120% 70% at 50% 0%,#22305a 0%,var(--navy) 60%);background-attachment:fixed;color:#fff;display:flex;flex-direction:column;min-height:100vh}
main{flex:1;width:100%;max-width:520px;margin:0 auto;padding:16px 18px 18px}
.footer{text-align:center;font-size:12px;color:#9aa3b8;padding:14px 16px calc(14px + env(safe-area-inset-bottom))}
.banner{background:var(--gold);color:#2a1c00;text-align:center;font-size:12.5px;font-weight:800;padding:6px;letter-spacing:.3px}
button{font:inherit}
a{color:inherit}
/* title */
.hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding-top:6px}
.badge{display:block;width:230px;height:230px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 6px rgba(242,184,75,.18),0 18px 40px rgba(0,0,0,.45);cursor:pointer}
.badge img{width:100%;height:100%;display:block}
.badge-name{margin:14px 0 0;font-family:"Alfa Slab One",Rockwell,"Roboto Slab",Georgia,serif;font-weight:900;font-size:42px;letter-spacing:2px;color:var(--gold);text-shadow:0 2px 0 #0b1020;line-height:1}
.badge-sub{font-size:17px;font-weight:700;color:#d6dbe6;margin:4px 0 0;letter-spacing:.3px}
.bubble-up{margin:12px 0 4px;max-width:300px;text-align:center}
.bubble-up:after{display:none}
.mascot{width:130px;height:auto;display:block;border-radius:50%;box-shadow:0 10px 24px rgba(0,0,0,.4)}
.mascot img{width:100%;height:auto;display:block;border-radius:50%}
.mascot.talking{animation:talk .5s ease-in-out infinite alternate}
@keyframes talk{from{transform:translateY(0) scale(1)}to{transform:translateY(-3px) scale(1.03)}}
.helper{display:flex;align-items:flex-end;gap:6px;margin:6px 0}
.bubble{position:relative;background:#fff;color:var(--ink);border-radius:20px;padding:12px 14px;font-size:15px;line-height:1.35;max-width:220px;text-align:left;box-shadow:0 8px 20px rgba(0,0,0,.25);margin-bottom:70px;animation:pop .25s ease-out}
.bubble:after{content:"";position:absolute;left:-8px;bottom:14px;border:9px solid transparent;border-right-color:#fff;border-left:0}
@keyframes pop{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}
.round-btn{width:118px;height:118px;border-radius:50%;border:0;background:radial-gradient(circle at 35% 30%,#ffc766,var(--orange));color:#2a1700;font-size:22px;font-weight:900;cursor:pointer;box-shadow:0 10px 26px rgba(255,159,28,.35);margin-top:6px}
.small-links{display:flex;gap:16px;justify-content:center;margin-top:18px;font-size:13px}
.small-links a,.small-links button{color:#aab3c7;background:none;border:0;cursor:pointer;text-decoration:underline;padding:4px}
/* pill btns */
.btn{display:block;width:100%;border:0;border-radius:999px;padding:16px 20px;font-size:17px;font-weight:800;cursor:pointer;text-align:center;text-decoration:none}
.btn-primary{background:var(--orange);color:#1b1300}
.btn-ghost{background:rgba(255,255,255,.06);color:#fff;border:1.5px solid rgba(255,255,255,.3)}
.stack{display:flex;flex-direction:column;gap:12px;width:100%;max-width:340px;margin:0 auto}
.note{font-size:13px;color:#aab3c7;line-height:1.45;margin:4px 0}
/* top bar */
.topbar{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-bottom:10px;gap:10px}
.mini{width:44px;height:44px;border-radius:50%;border:3px solid var(--gold);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:11px;letter-spacing:.5px;background:var(--navy2)}
.navl{display:flex;align-items:center;gap:8px}
.home-badge{width:44px;height:44px;border-radius:50%;overflow:hidden;display:block;flex:none;box-shadow:0 0 0 2px var(--gold)}
.home-badge img{width:100%;height:100%;display:block}
.home-btn{width:52px;height:52px;border-radius:50%;background:var(--gold);color:#1b1300;display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;font-size:10px;font-weight:900;box-shadow:0 6px 14px rgba(242,184,75,.3);flex:none}
.home-btn svg{width:20px;height:20px;stroke:#1b1300;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.back{width:44px;height:44px;border-radius:50%;border:0;background:var(--navy3);color:#fff;font-size:22px;cursor:pointer}
.owed{border:0;border-radius:999px;background:linear-gradient(135deg,#ffd27a,var(--gold));color:#2a1c00;padding:8px 14px;font-weight:900;font-size:15px;cursor:pointer;box-shadow:0 6px 16px rgba(242,184,75,.3);text-align:right;line-height:1.1}
.owed small{display:block;font-size:10.5px;font-weight:700;opacity:.8}
/* menu grid */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px;justify-items:center;margin-top:6px}
.circ{position:relative;width:132px;height:132px;border-radius:50%;border:4px solid var(--navy3);background:radial-gradient(circle at 35% 30%,#2c3a66,#1a2340 70%);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.35)}
.circ svg{width:38px;height:38px;stroke:var(--gold);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.circ span{font-size:15px;font-weight:800}
.circ .cnt{position:absolute;top:-2px;right:-2px;min-width:36px;height:36px;border-radius:18px;background:#fff;color:var(--ink);font-weight:900;font-size:15px;display:flex;align-items:center;justify-content:center;padding:0 8px;border:3px solid var(--navy)}
.circ.red{border-color:var(--red)} .circ.red .cnt{background:var(--red);color:#fff}
.circ.orange{border-color:var(--orange)} .circ.orange .cnt{background:var(--orange);color:#1b1300}
.mic-row{display:flex;flex-direction:column;align-items:center;margin-top:22px;gap:6px}
.mic{width:84px;height:84px;border-radius:50%;border:0;background:radial-gradient(circle at 35% 30%,#8ea35f,var(--olive));box-shadow:0 0 0 6px rgba(111,128,72,.25),0 10px 24px rgba(0,0,0,.35);cursor:pointer;display:flex;align-items:center;justify-content:center}
.mic svg{width:36px;height:36px;stroke:#fff;fill:none;stroke-width:2.2;stroke-linecap:round}
.mic.on{animation:pulse 1s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(242,184,75,.6)}100%{box-shadow:0 0 0 18px rgba(242,184,75,0)}}
.mic-label{font-size:13px;color:#cdd3e0;font-weight:700}
/* lists */
.lh{font-size:24px;margin:2px 0 2px}
.explain{font-size:12.5px;color:#aab3c7;margin:0 0 12px;line-height:1.4}
.cards{display:flex;flex-direction:column;gap:10px}
.card{background:var(--card);color:var(--ink);border-radius:22px;overflow:hidden;border:3px solid transparent}
.card.red{border-color:var(--red)} .card.orange{border-color:var(--orange)}
.card>button{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;padding:14px 16px;cursor:pointer}
.card .nm{flex:1;font-weight:750;font-size:15px;line-height:1.3}
.card .amt{font-weight:900;font-size:15px;white-space:nowrap}
.card .chev{width:28px;height:28px;border-radius:50%;background:var(--soft);display:flex;align-items:center;justify-content:center;transition:transform .2s;font-size:14px;color:var(--muted)}
.card.open .chev{transform:rotate(180deg)}
.card .det{display:none;padding:0 16px 14px;font-size:13.5px}
.card.open .det{display:block}
.det dl{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;margin:0}
.det dt{color:#6b7488} .det dd{margin:0;word-break:break-word}
.det a{color:#0b5cad;font-weight:700}
.dot{width:10px;height:10px;border-radius:50%;flex:none;background:#cfd5e2}
.card.red .dot{background:var(--red)} .card.orange .dot{background:var(--orange)}
/* sheet */
.sheet{position:fixed;inset:0;background:rgba(5,8,16,.6);display:flex;align-items:flex-end;justify-content:center;z-index:10}
.sheet[hidden]{display:none}
.sheet-in{background:#fff;color:var(--ink);width:100%;max-width:520px;border-radius:26px 26px 0 0;padding:20px 20px 26px;animation:up .2s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.sheet-in h3{margin:0 0 4px;font-size:20px}
.sheet-in .row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eceef3;font-size:15px}
.sheet-in .row.tot{font-weight:900;border:0;font-size:17px}
.sheet-in .muted{color:#6b7488;font-size:12.5px}
.sheet-in .btn{margin-top:14px;background:var(--navy);color:#fff}
/* voice */
.voice{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.voice .helper{justify-content:center}
.ask{display:flex;gap:8px;width:100%;max-width:360px}
.ask input{flex:1;font:inherit;font-size:16px;border-radius:999px;border:0;padding:13px 16px;color:var(--ink)}
.ask button{border:0;border-radius:999px;background:var(--orange);color:#1b1300;font-weight:900;padding:0 18px;cursor:pointer}
.chips{display:flex;flex-direction:column;gap:8px;width:100%;max-width:360px}
.chip{border:1.5px solid rgba(255,255,255,.25);background:rgba(255,255,255,.05);color:#e7eaf2;border-radius:999px;padding:10px 14px;font-size:14px;cursor:pointer}
.chips-h{font-size:12px;color:#aab3c7;text-transform:uppercase;letter-spacing:.8px;margin-top:6px}
/* email */
.form{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.fl{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#d6dbe6;font-weight:700}
.fl input,.fl textarea{font:inherit;font-weight:400;font-size:15px;border-radius:16px;border:0;padding:12px 14px;background:#fff;color:var(--ink);width:100%}
.fl textarea{font-size:13.5px;line-height:1.45;resize:vertical}
.sec{font-size:15px;margin:8px 0 0;color:var(--gold)}
.pick{display:flex;gap:10px;align-items:flex-start;background:var(--card);color:var(--ink);border-radius:18px;padding:11px 14px;font-size:13.5px;line-height:1.35}
.pick input{width:22px;height:22px;margin-top:1px;flex:none;accent-color:var(--orange)}
.total{font-weight:800;margin:4px 0}
/* download */
.dl{display:flex;flex-direction:column;gap:12px}
.dl a{display:flex;align-items:center;gap:14px;background:#fff;color:var(--ink);text-decoration:none;border-radius:999px;padding:14px 18px;font-weight:800}
.dl a i{width:40px;height:40px;border-radius:50%;background:var(--navy);color:var(--gold);display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:900}
.dl small{display:block;font-weight:500;color:#6b7488;font-size:12.5px}
/* v3: Captain Army intro */
.intro{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.intro-badge{width:200px;height:200px;cursor:default}
.badge.talking{animation:talk .5s ease-in-out infinite alternate}
.intro-bubble{min-height:72px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600}
.dots{display:flex;gap:7px;justify-content:center;margin:4px 0}
.dots i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.25)}
.dots i.on{background:var(--gold)}
.hear{max-width:320px;margin:6px auto 2px}
.intro-btns{display:flex;gap:22px;justify-content:center;margin-top:8px}
.ib-round{width:84px;height:84px;border-radius:50%;border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:22px;font-weight:900;box-shadow:0 10px 24px rgba(0,0,0,.35)}
.ib-round span{font-size:13px}
.ib-round.play{background:radial-gradient(circle at 35% 30%,#8ea35f,var(--olive));color:#fff}
.ib-round.skip{background:var(--navy3);color:#fff;border:2px solid rgba(255,255,255,.3)}
.hear-intro{background:rgba(255,255,255,.06);border:1.5px solid rgba(242,184,75,.6);color:#fff;border-radius:999px;padding:8px 16px;font-size:14px;font-weight:800;cursor:pointer;margin-top:10px}
.intro-badge{position:relative}
.intro-badge img{position:absolute;inset:0}
.intro-badge .sal{opacity:0;transition:opacity .22s ease-out}
.intro-badge.saluting .sal{opacity:1}
.intro-badge.saluting{animation:snap .55s cubic-bezier(.3,1.7,.5,1)}
@keyframes snap{0%{transform:scale(1)}30%{transform:scale(1.09) rotate(-4deg)}55%{transform:scale(.97) rotate(1.5deg)}80%{transform:scale(1.02)}100%{transform:none}}
.intro-bubble.wait{visibility:hidden}
/* v3: calendar export */
.cal-row{display:flex;flex-direction:column;align-items:center;gap:6px;margin:2px 0 14px}
.cal-btn{width:76px;height:76px;border-radius:50%;border:0;background:radial-gradient(circle at 35% 30%,#ffd27a,var(--gold));box-shadow:0 0 0 6px rgba(242,184,75,.2),0 10px 24px rgba(0,0,0,.35);cursor:pointer;display:flex;align-items:center;justify-content:center}
.cal-btn svg{width:34px;height:34px;stroke:#1b1300;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cal-small{display:flex;align-items:center;gap:8px;margin:16px auto 0;background:rgba(255,255,255,.06);border:1.5px solid rgba(242,184,75,.6);color:#fff;border-radius:999px;padding:8px 16px 8px 10px;font-size:14px;font-weight:800;cursor:pointer}
.cal-small svg{width:22px;height:22px;stroke:var(--gold);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
