/* Jornada de adesão · estilos compartilhados por todas as telas */
:root{
  --green:#E92043; --green-600:#CF1A3A; --green-50:#FDEBEF; --green-soft:#F4A0AE;
  --ink:#1F2421; --muted:#7A807C; --line:#E6E8E7; --bg:#F6F7F6;
  --yellow:#F5C518; --yellow-50:#FFF6D6; --blue:#2F7DF6; --ios-blue:#0A84FF; --red:#E5484D;
  --ease-out:cubic-bezier(.23,1,.32,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{font-family:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#E9ECEA;
  min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:24px 16px}
img,svg{display:block}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
svg.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ---------- navegação da apresentação (fora do celular) ---------- */
.deck{display:flex;align-items:center;gap:10px;font-size:13px;color:#4B524E;flex-wrap:wrap;justify-content:center}
.deck a,.deck button{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;background:#fff;border:1px solid #D9DDDA;color:inherit;text-decoration:none;font-weight:500;
  transition:transform .16s var(--ease-out),background-color .2s}
.deck a:active,.deck button:active{transform:scale(.97)}
.deck .count{font-weight:600;padding:0 6px}
.deck .title{width:100%;text-align:center;font-weight:600;color:var(--ink)}
.deck .tag{display:inline-block;font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--green-50);color:var(--green-600);margin-right:6px}
body.editing .deck #edit{background:var(--green);color:#fff;border-color:var(--green)}
body.editing .phone{outline:2px dashed var(--green);outline-offset:6px}
@media (hover:hover) and (pointer:fine){.deck a:hover,.deck button:hover{background:#F2F4F3}}
@media print{.deck{display:none}body{background:#fff}}

/* ---------- aparelho ---------- */
.phone{position:relative;isolation:isolate;width:390px;max-width:100%;height:844px;border-radius:46px;background:#fff;overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 0 0 10px #1B1D1C,0 0 0 11px #3A3D3B,0 40px 80px -30px rgba(0,0,0,.45)}
.status{flex:none;display:flex;justify-content:space-between;align-items:flex-start;padding:14px 28px 6px;font-size:15px;font-weight:600;letter-spacing:-.01em;font-family:-apple-system,"SF Pro Text","Segoe UI",sans-serif}
.status .left{display:flex;flex-direction:column;line-height:1.15}
.status .back{font-size:11px;font-weight:500;color:#333}
.status .sys{display:flex;align-items:center;gap:6px;padding-top:2px}
.status .sys .net{font-size:12px;font-weight:600}
.status .bat{width:25px;height:12px;border-radius:4px;border:1.5px solid currentColor;position:relative;padding:1.5px}
.status .bat::after{content:"";position:absolute;right:-4px;top:3px;width:2px;height:4px;border-radius:0 2px 2px 0;background:currentColor}
.status .bat i{display:block;height:100%;width:var(--lvl,80%);border-radius:2px;background:currentColor}
.status .bat.low i{background:var(--red)}
.status.light{color:#fff}
.home-ind{position:absolute;left:50%;bottom:8px;width:134px;height:5px;border-radius:3px;background:#111;transform:translateX(-50%);z-index:20}
.home-ind.light{background:#fff}

/* ---------- Safari (telas web) ---------- */
.safari{flex:none;background:#2A2B2D;color:#fff;padding:10px 14px 30px}
.safari .url{display:flex;align-items:center;gap:10px;height:44px;padding:0 14px;border-radius:14px;background:#3D3E41;font-size:14px;font-family:-apple-system,"SF Pro Text",sans-serif}
.safari .url span{flex:1;text-align:center}
.safari .tools{display:flex;justify-content:space-between;padding:14px 10px 0;color:#9DA0A4}
.safari .tools .on{color:#fff}

/* ---------- conteúdo ---------- */
.screen{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;position:relative}
.scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.scroll::-webkit-scrollbar{display:none}
.pad{padding:0 22px}
.appbar{flex:none;display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 22px}
.appbar .logo{height:22px;width:auto}
.appbar .act{color:var(--green);display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500}
.appbar.center{justify-content:center;position:relative}
.appbar.center .l{position:absolute;left:18px;color:var(--green)}
.appbar.center .r{position:absolute;right:20px;color:var(--ink)}
.appbar .i{width:22px;height:22px}

h1.hello{font-size:17px;font-weight:600;margin:14px 0 22px}
.muted{color:var(--muted)}
.small{font-size:12px}
.lbl{font-size:12px;color:var(--muted);margin-bottom:6px}

.card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:18px}
.card + .card{margin-top:12px}
.shadow{box-shadow:0 2px 10px rgba(0,0,0,.06)}

.badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:500;padding:3px 10px;border-radius:999px}
.badge.pending{background:var(--yellow-50);color:#A07A00;border:1px solid var(--yellow)}
.badge.progress{color:var(--blue);padding:0}
.badge.progress::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.badge.open{color:#C98A00;padding:0}
.badge.open::before{content:"";width:6px;height:6px;border-radius:50%;background:#F0A500}
.badge.green{background:var(--green-50);color:var(--green-600);border-radius:6px}
.badge.ans{background:#111;color:#fff;border-radius:3px;font-size:9px;padding:1px 6px}

/* formulários */
.field{margin-bottom:18px}
.field label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
.input{display:flex;align-items:center;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:6px;font-size:13px;color:#A3A8A5}
.input.focus{border:2px solid var(--green);box-shadow:0 0 0 3px rgba(18,146,79,.12)}
.input span{flex:1}

/* botões */
.btn{display:flex;align-items:center;justify-content:center;width:100%;height:44px;border-radius:6px;font-size:13px;font-weight:600;
  transition:transform .16s var(--ease-out)}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--green);color:#fff}
.btn.soft{background:var(--green-soft);color:#fff}
.btn.outline{border:1px solid var(--line);color:var(--green);background:#fff}
.btn.inline{width:auto;padding:0 22px;display:inline-flex}
.btn + .btn{margin-top:10px}

/* stepper */
.stepper{display:flex;align-items:center;padding:16px 22px 18px}
.stepper .dot{width:20px;height:20px;border-radius:50%;border:2px solid #CFD3D1;background:#fff;flex:none;display:grid;place-items:center}
.stepper .dot.active{border:5px solid var(--green)}
.stepper .dot.done{background:var(--green);border-color:var(--green);color:#fff}
.stepper .dot.done .i{width:12px;height:12px;stroke-width:3}
.stepper .bar{flex:1;height:2px;background:#CFD3D1}
.stepper .bar.done{background:var(--green)}
.step-title{font-size:13px;line-height:1.5;padding:0 22px 14px}

.reader{margin:0 22px;border:1px solid var(--line);border-radius:6px;padding:16px;flex:1;min-height:0;overflow:hidden;position:relative}
.reader::after{content:"";position:absolute;right:4px;top:10px;width:4px;height:44px;border-radius:2px;background:var(--green)}
.reader h3{font-size:16px;font-weight:500;line-height:1.4;margin-bottom:12px}
.reader p{font-size:11.5px;line-height:1.6;color:#4C524E;margin-bottom:10px}
.reader .blk{border:1px solid var(--line);border-radius:6px;padding:14px;margin-bottom:10px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.reader .blk h4{font-size:14px;font-weight:500;letter-spacing:.02em;margin-bottom:10px}

.actions{flex:none;padding:12px 22px 10px}
.helpline{flex:none;text-align:center;font-size:10px;line-height:1.5;color:var(--muted);padding:6px 30px 12px;border-top:1px solid var(--line)}
.helpline b{color:var(--green);font-weight:600}

/* proposta (chave/valor) */
.kv{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.kv div{font-size:10.5px;color:var(--muted);line-height:1.35}
.kv b{display:block;font-size:12px;color:var(--ink);font-weight:500}
.kv .full{grid-column:1/-1}
.sep{height:1px;background:var(--line);margin:14px 0}
.sub{font-size:12px;font-weight:600;margin-bottom:12px}

/* toast */
.toast{display:flex;align-items:center;gap:10px;background:var(--green);color:#fff;font-size:12px;padding:12px 16px;position:relative}
.toast .x{margin-left:auto;opacity:.85}
.toast .i{width:18px;height:18px}

/* sucesso */
.success{text-align:center;padding:12px 30px}
.success .ok{width:76px;height:76px;border-radius:50%;margin:16px auto 22px;display:grid;place-items:center;box-shadow:0 6px 20px rgba(0,0,0,.08);color:var(--green)}
.success .ok .i{width:36px;height:36px;stroke-width:2.5}
.success h2{font-size:14px;font-weight:600;margin-bottom:14px}
.success p{font-size:12px;line-height:1.6;color:#4C524E;margin-bottom:22px}

/* app: tab bar */
.tabbar{flex:none;display:flex;justify-content:space-around;padding:10px 6px 30px;border-top:1px solid var(--line);background:#fff}
.tabbar a{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;color:#4C524E;text-decoration:none}
.tabbar a.on{color:var(--green)}
.tabbar .i{width:22px;height:22px}

.avatar{width:46px;height:46px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:600;font-size:17px}
.chips{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:11px;color:#4C524E}
.chips span{display:inline-flex;align-items:center;gap:5px}
.chips .i{width:14px;height:14px}

.prod{display:flex;gap:14px;align-items:center}
.prod .lg{width:64px;flex:none}
.prod .nm{font-size:11px;color:var(--muted)}
.prod .tt{font-size:13px;font-weight:600;margin:1px 0 6px}
.prod .tg{display:inline-block;font-size:10px;padding:2px 8px;border-radius:4px;background:#F1F2F1;color:#4C524E}
.prod .pr{font-size:10px;color:var(--muted);margin-top:6px}
.prod .pr b{color:var(--ink)}

/* bottom sheet */
.dim{position:absolute;inset:0;background:rgba(0,0,0,.45);z-index:5}
.sheet{position:absolute;left:0;right:0;bottom:0;z-index:6;background:#fff;border-radius:22px 22px 0 0;padding:26px 24px 46px}
.sheet h3{font-size:15px;font-weight:600;margin-bottom:22px}
.timeline{position:relative;padding-left:4px}
.timeline::before{content:"";position:absolute;left:12px;top:10px;bottom:-140px;width:2px;background:var(--line)}
.timeline li{list-style:none;display:flex;align-items:center;gap:12px;font-size:12px;margin-bottom:26px;position:relative}
.timeline .ic{width:18px;height:18px;border-radius:4px;border:1.5px solid var(--blue);color:var(--blue);display:grid;place-items:center;background:#fff}
.timeline .ic .i{width:11px;height:11px}
.timeline .d{color:var(--muted)}

/* tabs */
.tabs{display:flex;gap:6px}
.tabs span{font-size:12px;padding:8px 12px;border-radius:6px;border:1px solid var(--line);color:#4C524E}
.tabs span.on{background:var(--green-50);border-color:var(--green-50);color:var(--green-600);font-weight:600}
.utabs{display:flex;border-bottom:1px solid var(--line)}
.utabs span{flex:1;text-align:center;font-size:12px;padding:10px 0;color:#4C524E}
.utabs span.on{color:var(--green);font-weight:600;box-shadow:inset 0 -2px 0 var(--green)}

.docs li{list-style:none;display:flex;align-items:center;gap:12px;padding:20px 0;border-bottom:1px solid var(--line);font-size:13px}
.docs li .i:last-child{margin-left:auto;color:var(--green)}

/* lista de menu */
.menu li{list-style:none;display:flex;align-items:center;gap:14px;padding:15px 0;font-size:14px}
.menu li .i:last-child{margin-left:auto;color:#A3A8A5;width:18px;height:18px}

/* faturas */
.row{display:flex;justify-content:space-between;align-items:center}
.inv{display:flex;align-items:center;gap:12px}
.inv .ic{width:38px;height:38px;border-radius:8px;background:var(--green-50);color:var(--green);display:grid;place-items:center}
.select{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:6px 12px;border:1px solid var(--line);border-radius:999px}
.pay{display:flex;align-items:center;gap:14px}
.pay .i{width:22px;height:22px}
.pay b{display:block;font-size:13px;font-weight:500}
.pay small{font-size:10px;color:var(--muted)}
.instr h4{font-size:13px;font-weight:600;margin:18px 0 12px}
.instr li{list-style:none;display:flex;gap:16px;font-size:12px;line-height:1.5;margin-bottom:16px;color:#3B413D}
.instr li b{font-weight:500;flex:none;width:20px}

/* visualizador de PDF (iOS) */
.qlook{flex:none;display:flex;align-items:center;gap:12px;padding:10px 18px;background:#F2F2F7;border-bottom:1px solid #DCDCE0;font-family:-apple-system,"SF Pro Text",sans-serif}
.qlook .i{color:var(--ios-blue)}
.qlook .fn{flex:1;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qlook .ok{color:var(--ios-blue);font-weight:600;font-size:16px}
.pdfbg{flex:1;min-height:0;overflow:hidden;background:#E5E5EA;padding:14px;position:relative}
.page{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15);padding:16px 14px;font-family:Georgia,"Times New Roman",serif;color:#222;font-size:6.5px;line-height:1.45}
.page + .page{margin-top:12px}
.page .pc{position:absolute;left:24px;top:22px;font-family:-apple-system,sans-serif;font-size:11px;background:rgba(240,240,240,.95);padding:4px 10px;border-radius:6px;display:flex;gap:6px;align-items:center}
.page h5{font-family:-apple-system,"Segoe UI",sans-serif;font-size:9px;margin-bottom:4px}
.page .admin{font-family:-apple-system,sans-serif;font-weight:800;font-size:10px;color:#1D4E9E;letter-spacing:-.02em}
.page .box{border:1px solid #444;padding:6px;margin:6px 0}
.page .grid2{display:grid;grid-template-columns:1fr 1fr;gap:3px 10px}
.page .ln{height:4px;background:#CFCFD4;border-radius:2px;margin:3px 0}
.page .ln.s{width:60%}.page .ln.m{width:85%}
.page table{width:100%;border-collapse:collapse;font-size:6px}
.page td{border:1px solid #D9A5AE;padding:4px;vertical-align:top}
.page td.h{background:#E92043;color:#fff;font-weight:700;width:32%}
.page td.hl{background:#FDEBEF}
.page .big{font-family:Georgia,serif;font-size:15px;font-weight:700;line-height:1.15;margin:6px 0}
.pdfbar{flex:none;display:flex;justify-content:space-between;padding:12px 22px 32px;background:#F2F2F7;border-top:1px solid #DCDCE0;color:var(--ios-blue)}

/* boleto */
.sftop{flex:none;display:flex;align-items:center;gap:10px;padding:8px 16px;font-family:-apple-system,sans-serif;font-size:13px;color:var(--ios-blue)}
.sftop span{flex:1;text-align:center;color:#111;font-weight:500}
.boleto{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15);padding:12px 10px;font-family:Arial,sans-serif;font-size:6px;color:#222}
.boleto .hd{display:flex;align-items:center;gap:6px;border-bottom:1.5px solid #222;padding-bottom:4px;margin-bottom:4px;font-weight:700;font-size:8px}
.boleto .hd .bank{border-left:1.5px solid #222;border-right:1.5px solid #222;padding:0 5px}
.boleto .cells{display:grid;grid-template-columns:3fr 1fr;border:1px solid #444}
.boleto .cells div{border:.5px solid #444;padding:2px 3px;min-height:12px}
.boleto .cells small{display:block;font-size:4.5px;color:#666}
.barcode{height:26px;margin:8px 0 4px;background:repeating-linear-gradient(90deg,#000 0 1px,#fff 1px 2px,#000 2px 4px,#fff 4px 5px,#000 5px 6px,#fff 6px 8px,#000 8px 9px,#fff 9px 11px)}
.qr{width:46px;height:46px;background:
  conic-gradient(from 90deg at 30% 30%,#000 25%,#fff 0 50%,#000 0 75%,#fff 0) 0 0/9px 9px;border:3px solid #000}
.cut{border-top:1px dashed #888;margin:10px 0}

/* miniatura usada na visão geral (index.html) */
html.thumb body{padding:0;display:block;background:#fff;min-height:0}
html.thumb .deck{display:none}
html.thumb .phone{border-radius:0;box-shadow:none;width:390px}

.phone>.dim{z-index:15}.phone>.sheet{z-index:16}
.page .pc{top:8px}

/* espaço reservado para a logo da operadora */
.phlogo{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:4px 10px;border:1.5px dashed rgba(233,32,67,.55);border-radius:8px;
  font-size:11px;font-weight:600;color:var(--green);letter-spacing:-.01em;line-height:1.2}
.phlogo.white{border-color:rgba(255,255,255,.75);color:#fff}
.phlogo.lg{width:64px;height:48px;flex:none;white-space:normal;text-align:center;font-size:9.5px;padding:2px 4px}
.phlogo.sm{font-size:6px;padding:2px 5px;border-width:1px;border-radius:4px}
.phlogo.idx{font-size:13px;padding:8px 16px;border-radius:10px}
