/* ================================================================
   ESPIÃO OFICIAL WHATSAPP — folha de estilo
   ================================================================ */

:root{
  --green:#25d366;
  --green-hi:#2ee06e;
  --green-lo:#12a150;
  --green-deep:#0e8f66;
  --teal:#008069;
  --teal-dark:#075e54;
  --ink:#0d1f1a;
  --ink-soft:#33463f;
  --muted:#667781;
  --muted-2:#8a9a94;
  --line:#e2eae7;
  --bg:#f5f8f7;
  --card:#ffffff;
  --chat-bg:#efeae2;
  --bubble-in:#ffffff;
  --bubble-out:#d9fdd3;
  --amber:#8a5300;
  --amber-bg:#fffaeb;
  --amber-line:#f6e3b4;
  --danger:#c0392b;
  --shadow-card:0 10px 30px -12px rgba(9,54,40,.18);
  --shadow-cta:0 14px 30px -10px rgba(24,180,92,.55), inset 0 1px 0 rgba(255,255,255,.28);
  --font:"Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

*{box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent;}
html,body{height:100%;}
button{font-family:inherit;}
body{
  font-family:var(--font);
  background:
    radial-gradient(1100px 700px at 50% -15%, #10452f 0%, #081b13 48%, #04100b 100%);
  display:grid;
  place-items:center;
  -webkit-font-smoothing:antialiased;
  color:var(--ink);
}

/* ---------- moldura do app ---------- */
.app{
  position:relative;
  width:min(430px, 100vw);
  height:min(880px, 100vh);
  height:min(880px, 100dvh);
  background:var(--bg);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 40px 90px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
}

/* ---------- telas ---------- */
.screen{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  background:var(--bg);
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translateX(14px);
  transition:opacity .26s ease, transform .26s ease, visibility .26s;
}
.screen.active{opacity:1; visibility:visible; pointer-events:auto; transform:none;}

/* ---------- componentes gerais ---------- */
.cta{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; height:56px;
  border:0; border-radius:16px;
  background:linear-gradient(180deg, var(--green-hi), var(--green-lo));
  color:#fff;
  font-family:var(--font); font-size:14.5px; font-weight:800; letter-spacing:.7px;
  cursor:pointer;
  box-shadow:var(--shadow-cta);
  position:relative; overflow:hidden;
  transition:transform .12s ease, filter .15s ease;
}
.cta .ico{width:19px; height:19px; flex:0 0 auto;}
.cta .chev{width:16px; height:16px; opacity:.9; margin-left:2px;}
.cta::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(115deg, transparent 38%, rgba(255,255,255,.34) 48%, transparent 58%);
  transform:translateX(-130%);
  animation:shine 3.8s ease-in-out infinite;
}
@keyframes shine{0%,55%{transform:translateX(-130%)} 75%,100%{transform:translateX(130%)}}
.cta:active{transform:translateY(1px) scale(.995);}
.cta:disabled{filter:grayscale(.25) brightness(.92); cursor:default;}

.field-label{
  display:block; font-size:12px; font-weight:700; letter-spacing:.4px;
  color:var(--ink-soft); margin-bottom:8px;
}

.disclaimer{
  font-size:10.5px; line-height:1.5; text-align:center; color:#647a72;
  margin-top:16px;
}

/* ================================================================
   TELA 1 — INICIAL
   ================================================================ */
.home{overflow-y:auto; background:linear-gradient(180deg, #ffffff 0%, #f2f8f5 46%, #e9f4ee 100%);}
.home-deco{position:absolute; inset:0; overflow:hidden; pointer-events:none;}
.deco-dot{
  position:absolute; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, rgba(46,224,110,.5), rgba(46,224,110,.08));
  animation:floatA 6s ease-in-out infinite;
}
.deco-dot.p1{width:10px; height:10px; top:170px; right:36px;}
.deco-dot.p2{width:7px; height:7px; top:64px; left:44px; animation-delay:1.2s;}
.deco-dot.p3{width:5px; height:5px; bottom:110px; left:30px; animation-delay:2.1s;}
@keyframes floatA{50%{transform:translateY(-10px) rotate(2deg)}}
.home-inner{
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:26px 22px 20px;
  min-height:100%;
}
.home::before{
  content:""; position:absolute; top:-140px; left:50%; transform:translateX(-50%);
  width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(37,211,102,.16), transparent 65%);
  pointer-events:none;
}

.status-pill{
  display:inline-flex; align-items:center; gap:7px;
  padding:7px 13px; border-radius:999px;
  background:rgba(255,255,255,.8);
  border:1px solid #d9ebe1;
  font-size:10px; font-weight:800; letter-spacing:1.4px;
  color:#0f7a4d;
  backdrop-filter:blur(6px);
}
.pill-dot{
  width:7px; height:7px; border-radius:50%; background:var(--green);
  box-shadow:0 0 0 0 rgba(37,211,102,.5);
  animation:dotPulse 2s infinite;
}
@keyframes dotPulse{
  0%{box-shadow:0 0 0 0 rgba(37,211,102,.45)}
  70%{box-shadow:0 0 0 7px rgba(37,211,102,0)}
  100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}
}

.radar{position:relative; width:150px; height:150px; margin:16px 0 8px;}

/* trilhos circulares (HUD) */
.radar-track{
  position:absolute; border-radius:50%;
  pointer-events:none;
}
.radar-track.t1{
  inset:6px;
  border:1px dashed rgba(18,140,102,.24);
}
.radar-track.t2{
  inset:24px;
  border:1px solid rgba(18,140,102,.10);
}

/* feixe girando em volta do ícone (recortado no anel) */
.radar-beam{
  position:absolute; inset:6px; border-radius:50%;
  background:conic-gradient(from 0deg,
    transparent 248deg,
    rgba(46,224,110,.14) 268deg,
    rgba(46,224,110,.36) 310deg,
    rgba(46,224,110,.72) 344deg,
    rgba(120,255,170,.95) 357.5deg,
    rgba(190,255,214,.95) 359.2deg,
    transparent 360deg);
  -webkit-mask:radial-gradient(circle, transparent 42px, #000 43px, #000 65px, transparent 66px);
          mask:radial-gradient(circle, transparent 42px, #000 43px, #000 65px, transparent 66px);
  animation:beamSpin 3.2s linear infinite;
}
.radar-beam::after{
  content:""; position:absolute;
  top:calc(50% - 60px); left:50%; transform:translateX(-50%);
  width:7px; height:7px; border-radius:50%;
  background:#8fffbf;
  box-shadow:0 0 10px 3px rgba(46,224,110,.85), 0 0 22px 6px rgba(46,224,110,.35);
}
@keyframes beamSpin{to{transform:rotate(360deg)}}

/* ondas saindo da borda do ícone */
.radar-ping{
  position:absolute; inset:37px; border-radius:50%;
  border:1.5px solid rgba(37,211,102,.5);
  opacity:0;
  animation:ping 3.2s ease-out infinite;
}
.radar-ping.p2{animation-delay:1.06s;}
.radar-ping.p3{animation-delay:2.12s;}
@keyframes ping{
  0%{transform:scale(1); opacity:.65;}
  75%{transform:scale(1.6); opacity:0;}
  100%{transform:scale(1.6); opacity:0;}
}

.radar-core{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  z-index:1;
  width:76px; height:76px; border-radius:50%;
  background:linear-gradient(160deg, #ffffff, #f0fdf5);
  display:grid; place-items:center;
  box-shadow:0 10px 26px -6px rgba(16,160,90,.6), inset 0 0 0 1px rgba(18,140,102,.12);
}
.core-logo{width:48px; height:48px; display:block;}

.title{
  text-align:center;
  font-size:27px; line-height:1.14; font-weight:800;
  letter-spacing:-.4px;
  color:var(--ink);
  margin-top:6px;
}
.title-mark{
  background:linear-gradient(90deg, #0e9f6e, #25d366);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.subtitle{
  text-align:center; font-size:13.5px; color:#5f7770;
  margin-top:8px;
}

.home-form{width:100%; margin-top:24px;}
.phone-box{
  display:flex; align-items:center; gap:10px;
  height:56px; padding:0 14px;
  background:var(--card);
  border:1.5px solid var(--line);
  border-radius:16px;
  box-shadow:0 4px 16px -10px rgba(9,54,40,.25);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.phone-box:focus-within{
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(37,211,102,.16);
}
.phone-flag svg{width:22px; height:15px; border-radius:2px; display:block; box-shadow:0 0 0 1px rgba(0,0,0,.08);}
.ddi{
  font-size:14px; font-weight:700; color:var(--ink);
  padding-right:10px; border-right:1px solid var(--line);
}
#phone-input{
  flex:1; border:0; outline:0; background:transparent;
  font-family:var(--font); font-size:16px; font-weight:600; letter-spacing:.4px;
  color:var(--ink);
}
#phone-input::placeholder{color:#a9bab3; font-weight:400;}
.field-error{font-size:12.5px; color:var(--danger); margin:8px 2px 0;}
.home-form .cta{margin-top:14px;}

.warn{
  display:flex; gap:10px; align-items:flex-start;
  width:100%; margin-top:20px;
  padding:12px 14px;
  background:var(--amber-bg);
  border:1px solid var(--amber-line);
  border-radius:14px;
}
.warn-ico{width:18px; height:18px; color:#c98a00; flex:0 0 auto; margin-top:1px;}
.warn p{font-size:12px; line-height:1.55; color:var(--amber);}

.chips{
  display:flex; flex-wrap:wrap; justify-content:center; gap:8px;
  margin-top:16px;
}
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 12px; border-radius:999px;
  background:#fff; border:1px solid var(--line);
  font-size:11.5px; font-weight:600; color:#365248;
}
.chip svg{width:14px; height:14px; color:var(--green-deep);}

/* ================================================================
   TELA 2 — CARREGAMENTO
   ================================================================ */
.loading{
  overflow-y:auto;
  color:#d8f5e6;
  background:
    radial-gradient(700px 420px at 50% -5%, #0d3a2c 0%, #071a13 55%, #04100b 100%);
}
.loading::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(37,211,102,.05) 0 1px, transparent 1px 64px);
  opacity:.7;
}
.scanline{
  position:absolute; left:0; right:0; height:120px;
  background:linear-gradient(180deg, transparent, rgba(46,224,110,.055), transparent);
  animation:scan 4.2s linear infinite;
  pointer-events:none;
}
@keyframes scan{0%{top:-140px} 100%{top:105%}}

.load-inner{
  position:relative;
  display:flex; flex-direction:column; align-items:center;
  min-height:100%;
  padding:30px 22px 18px;
}
.load-head{
  display:flex; align-items:center; gap:9px;
  font-size:10.5px; font-weight:700; letter-spacing:2.4px;
  color:#7fe3b0;
}
.radar-dot{
  width:8px; height:8px; border-radius:50%; background:var(--green);
  animation:dotPulse 1.6s infinite;
}

.gauge{position:relative; width:172px; height:172px; margin:26px 0 16px;}
.gauge-svg{width:100%; height:100%; transform:rotate(-90deg);}
.g-bg{fill:none; stroke:rgba(255,255,255,.08); stroke-width:10;}
.g-fg{
  fill:none; stroke:url(#gaugeGrad); stroke-width:10; stroke-linecap:round;
  stroke-dasharray:427.26; stroke-dashoffset:427.26;
  transition:stroke-dashoffset .35s ease;
  filter:drop-shadow(0 0 7px rgba(37,211,102,.55));
}
.gauge-center{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.gauge-pct{
  display:flex; align-items:baseline;
  font-variant-numeric:tabular-nums;
}
.gauge-pct b{font-size:42px; font-weight:800; color:#fff; letter-spacing:-1px;}
.gauge-pct small{font-size:16px; font-weight:700; color:#7fe3b0; margin-left:2px;}
.gauge-center em{
  font-style:normal; font-size:9.5px; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; color:#86b39f; margin-top:2px;
}

.linear{
  width:100%; height:6px; border-radius:99px;
  background:rgba(255,255,255,.08);
  overflow:hidden; margin-bottom:22px;
}
.linear-fill{
  height:100%; width:0%;
  border-radius:99px;
  background:linear-gradient(90deg, #0e9f6e, var(--green-hi));
  box-shadow:0 0 12px rgba(37,211,102,.6);
  transition:width .3s ease;
}

.steps{list-style:none; width:100%;}
.steps li{
  display:grid; grid-template-columns:22px 1fr auto; align-items:center; gap:10px;
  padding:8px 0;
  font-size:12.5px; color:#7fa694;
  border-bottom:1px dashed rgba(255,255,255,.05);
  transition:color .25s;
}
.steps li:last-child{border-bottom:0;}
.tick{
  position:relative;
  width:20px; height:20px; border-radius:50%;
  border:1.5px solid rgba(127,227,176,.25);
  display:grid; place-items:center;
  transition:background-color .25s, border-color .25s;
}
.tick svg{display:none; width:12px; height:12px; color:#34d399;}
.step-state{
  font-size:9px; font-weight:800; letter-spacing:1.2px; text-transform:uppercase;
  color:transparent;
}
.steps li.running{color:#c7f3de;}
.steps li.running .tick{border-color:#34d399; animation:tickPulse 1.1s infinite;}
.steps li.running .step-state{color:#7fe3b0;}
.steps li.running .step-state::after{content:"processando";}
.steps li.running .tick::after{
  content:""; position:absolute; inset:1px;
  border-radius:50%;
  border:2px solid rgba(52,211,153,.22);
  border-top-color:#34d399;
  animation:step-spin .8s linear infinite;
}
@keyframes tickPulse{50%{box-shadow:0 0 0 5px rgba(52,211,153,.12)}}
@keyframes step-spin{to{transform:rotate(360deg)}}
.steps li.done{color:#d8f5e6;}
.steps li.done .tick{background:rgba(52,211,153,.12); border-color:#34d399;}
.steps li.done .tick svg{display:block;}
.steps li.done .step-state{color:#34d399;}
.steps li.done .step-state::after{content:"ok";}

.load-foot{
  margin-top:auto; padding-top:18px;
  font-size:9.5px; font-weight:600; letter-spacing:1.6px; text-transform:uppercase;
  color:#7fa694;
}

/* ================================================================
   TELA 3 — WHATSAPP / DEMO
   ================================================================ */
.chat{overflow:hidden; background:#fff;}
.pane{display:flex; flex-direction:column; height:100%; overflow:hidden;}
.pane[hidden]{display:none;}

.wa-top{
  flex:0 0 auto;
  display:flex; align-items:center; gap:12px;
  height:58px; padding:0 10px 0 16px;
  background:var(--teal);
  color:#fff;
  padding-top:env(safe-area-inset-top);
}
.wa-brand{display:flex; align-items:center; gap:9px; font-size:19px; font-weight:700; letter-spacing:.2px; flex:1;}
.brand-ico{width:22px; height:22px; flex:0 0 auto; display:block; filter:drop-shadow(0 1px 1px rgba(0,0,0,.2));}
.wa-actions{display:flex; align-items:center; gap:16px; padding-right:4px;}
.wa-ico{width:21px; height:21px; opacity:.92;}

.wa-tools{flex:0 0 auto; padding:8px 12px; background:#fff; border-bottom:1px solid #f0f4f2;}
.search-pill{
  display:flex; align-items:center; gap:9px;
  height:38px; padding:0 13px;
  background:#f0f4f2; border-radius:10px;
  font-size:13px; color:#5f7770;
}
.search-pill svg{width:15px; height:15px; flex:0 0 auto;}

.banners{flex:0 0 auto; display:flex; flex-direction:column; gap:6px; padding:9px 12px 3px;}
.banner{
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:11px;
  background:#e9f9f0; border:1px solid #c9eed9;
  font-size:11.5px; font-weight:700; color:#0c7a45;
}
.banner svg{width:14px; height:14px; flex:0 0 auto;}
.banner.teal{background:#e8f6f4; border-color:#c4e9e3; color:#0b6b60;}

.chat-rows{
  flex:1; overflow-y:auto; list-style:none;
  padding:4px 0 6px;
  overscroll-behavior:contain;
  scrollbar-width:none;
}
.chat-rows::-webkit-scrollbar{display:none;}
.chat-row{
  display:flex; align-items:center; gap:12px;
  padding:10px 14px;
  cursor:pointer;
  transition:background .12s;
}
.chat-row:hover{background:#f5f8f7;}
.chat-row:active{background:#edf3f0;}
.avatar{
  width:47px; height:47px; border-radius:50%;
  display:grid; place-items:center;
  color:#fff; font-size:17px; font-weight:700;
  flex:0 0 auto;
}
.cr-mid{flex:1; min-width:0;}
.cr-top{display:flex; align-items:baseline; justify-content:space-between; gap:8px;}
.cr-name{font-size:15px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.cr-time{font-size:11px; color:#667781; flex:0 0 auto;}
.cr-preview{
  display:flex; align-items:center; gap:6px;
  font-size:13px; color:var(--muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.cr-badge{
  min-width:19px; height:19px; padding:0 5px; border-radius:999px;
  background:var(--green); color:#fff;
  font-size:11px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 auto;
}
.chat-row.blurred{cursor:default;}
.chat-row.blurred .cr-mid{filter:blur(4.5px); user-select:none; pointer-events:none;}

.list-label{
  display:flex; align-items:center; gap:7px;
  padding:11px 16px 5px;
  font-size:9px; font-weight:800; letter-spacing:1.4px;
  color:#667781;
  list-style:none;
}
.list-label svg{width:11px; height:11px; flex:0 0 auto;}
.list-label::after{content:""; flex:1; height:1px; background:#eef2f0;}

.list-cta{
  flex:0 0 auto;
  padding:9px 12px 10px;
  background:linear-gradient(180deg, rgba(255,255,255,0), #fff 40%);
}
.list-cta .cta{height:50px; font-size:13px; border-radius:14px;}

.tabbar{
  flex:0 0 auto;
  display:grid; grid-template-columns:repeat(4, 1fr);
  height:56px;
  padding-bottom:env(safe-area-inset-bottom);
  background:#fff; border-top:1px solid #eef2f0;
}
.tab{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  font-size:10px; color:#667781; user-select:none;
}
.tab svg{width:22px; height:22px;}
.tab.active{color:var(--teal); font-weight:700;}

/* conversa aberta */
.chat-top{padding-left:6px; gap:9px; height:62px; padding-top:env(safe-area-inset-top);}
.round-btn{
  width:44px; height:44px; border-radius:50%;
  border:0; background:transparent; cursor:pointer;
  display:grid; place-items:center; flex:0 0 auto;
}
.round-btn:active{background:rgba(255,255,255,.12);}
.round-btn svg{width:22px; height:22px;}
.chat-top .avatar{width:38px; height:38px; font-size:15px;}
.chat-title{display:flex; flex-direction:column; line-height:1.25; flex:1; min-width:0;}
.chat-title strong{font-size:15.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.chat-title span{font-size:11.5px; opacity:.78;}

.chat-body{
  flex:1; overflow-y:auto;
  padding:14px 10px 18px;
  display:flex; flex-direction:column; gap:4px;
  background-color:var(--chat-bg);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.035' stroke-width='1'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cpath d='M38 8l7 7M8 38l7 7M42 36q5 5 0 10M30 20h8M20 30v8'/%3E%3C/g%3E%3C/svg%3E");
  overscroll-behavior:contain;
  scrollbar-width:none;
}
.chat-body::-webkit-scrollbar{display:none;}
.day-chip{
  align-self:center;
  margin:4px 0 8px;
  padding:5px 12px; border-radius:999px;
  background:rgba(255,255,255,.86);
  box-shadow:0 1px 1px rgba(0,0,0,.08);
  font-size:11px; font-weight:600; color:#54656f;
  letter-spacing:.4px;
}
.sys{
  align-self:center;
  display:flex; align-items:center; gap:6px;
  margin:4px 0;
  padding:5px 11px; border-radius:999px;
  background:#d9f5e4; border:1px solid #b9ecd0;
  font-size:11px; font-weight:600; color:#0b7a45;
}
.sys svg{width:12px; height:12px;}

.bubble{
  position:relative;
  max-width:80%;
  padding:6px 8px 6px 9px;
  border-radius:10px;
  font-size:13.8px; line-height:1.42;
  color:#111b21;
  box-shadow:0 1px 1px rgba(9,30,20,.13);
  animation:bubbleIn .24s ease both;
}
@keyframes bubbleIn{from{opacity:0; transform:translateY(7px)} to{opacity:1; transform:none}}
.bubble.in{align-self:flex-start; background:var(--bubble-in); border-top-left-radius:3px;}
.bubble.out{align-self:flex-end; background:var(--bubble-out); border-top-right-radius:3px;}
.bubble .meta{
  display:flex; align-items:center; justify-content:flex-end; gap:3px;
  margin-top:3px;
  font-size:10px; color:#7d918a; float:right;
  padding-left:8px;
}
.bubble .ticks{width:14px; height:14px; stroke:#53bdeb; fill:none; stroke-width:2;}

.bubble.media{padding:3px 3px 4px; max-width:78%;}
.photo{
  position:relative;
  width:212px; max-width:100%;
  aspect-ratio:4 / 3;
  border-radius:7px;
  overflow:hidden;
}
.photo-art{
  position:absolute; inset:-8px;
  width:calc(100% + 16px); height:calc(100% + 16px);
  filter:blur(1.6px) saturate(.92);
}
.photo::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  box-shadow:inset 0 0 26px rgba(0,0,0,.18);
}
.tarja{
  position:absolute; left:0; right:0; bottom:0;
  padding:5px 8px;
  background:rgba(10,18,24,.74);
  color:#eef2f0;
  font-size:8.5px; font-weight:700; letter-spacing:1.1px; text-transform:uppercase;
  text-align:center;
  backdrop-filter:blur(2px);
}
.media .meta{float:none; padding:3px 6px 1px;}

.chat-foot{
  flex:0 0 auto;
  display:flex; align-items:center; gap:8px;
  padding:7px 9px calc(7px + env(safe-area-inset-bottom));
  background:#f0f2f2;
}
.foot-ico{width:22px; height:22px; color:#54656f; flex:0 0 auto;}
.foot-input{
  flex:1; height:43px;
  display:flex; align-items:center;
  padding:0 16px;
  background:#fff; border-radius:999px;
  font-size:14px; color:#93a49d;
}
.mic{
  width:45px; height:45px; border-radius:50%;
  background:linear-gradient(180deg, var(--green-hi), var(--green-lo));
  display:grid; place-items:center;
  box-shadow:0 6px 14px -6px rgba(24,180,92,.6);
  flex:0 0 auto;
}
.mic svg{width:21px; height:21px;}

/* ================================================================
   TELA 4 — CONTRATAÇÃO
   ================================================================ */
.pay{overflow-y:auto; background:var(--bg); padding-bottom:24px;}
.pay-hero{
  position:relative;
  padding:calc(14px + env(safe-area-inset-top)) 20px 34px;
  background:
    radial-gradient(420px 260px at 90% -20%, rgba(46,224,110,.35), transparent 70%),
    linear-gradient(165deg, #0a4c3c 0%, #008069 60%, #0d8a5f 100%);
  border-radius:0 0 26px 26px;
  color:#fff;
}
.pay-back{margin-left:-6px; margin-bottom:10px; color:#fff;}
.pay-badge{
  width:56px; height:56px; border-radius:18px;
  background:linear-gradient(160deg, #3ae27a, #0d8a58);
  display:grid; place-items:center;
  box-shadow:0 12px 26px -8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.35);
  margin-bottom:14px;
}
.pay-badge svg{width:28px; height:28px; color:#fff;}
.pay-hero h2{
  font-size:21.5px; line-height:1.22; font-weight:800; letter-spacing:-.3px;
  max-width:300px;
}
.pay-sub{
  margin-top:9px;
  font-size:11.5px; line-height:1.65; letter-spacing:.9px; font-weight:600;
  color:rgba(255,255,255,.82);
  text-transform:uppercase;
}
.pay-sub strong{color:#c8ffe0; font-weight:800;}

.pay-card{
  background:var(--card);
  border-radius:18px;
  box-shadow:var(--shadow-card);
}
.benefits{
  position:relative;
  margin:-16px 14px 0;
  padding:4px 16px;
}
.benefit{
  display:flex; align-items:center; gap:10px;
  padding:11px 0;
  font-size:13.5px; font-weight:500; color:var(--ink-soft);
  border-bottom:1px solid #f0f4f2;
}
.benefit:last-child{border-bottom:0;}
.bcheck{
  width:20px; height:20px; border-radius:50%;
  background:rgba(37,211,102,.14);
  display:grid; place-items:center;
  flex:0 0 auto;
}
.bcheck svg{width:12px; height:12px; color:var(--green-lo);}

.plans{
  display:grid; grid-template-columns:1fr; gap:10px;
  margin:16px 14px 0;
}
.plan{
  position:relative;
  display:flex; flex-direction:column; gap:5px;
  padding:15px 13px 13px;
  background:var(--card);
  border:2px solid var(--line);
  border-radius:16px;
  cursor:pointer;
  transition:border-color .15s, box-shadow .15s, transform .12s;
}
.plan:active{transform:scale(.985);}
.plan input{position:absolute; opacity:0; pointer-events:none;}
.plan.selected{
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(37,211,102,.14);
}
.plan-name{font-size:10px; font-weight:800; letter-spacing:1.2px; color:var(--muted);}
.plan-price{
  font-size:19px; font-weight:800; color:var(--ink);
  letter-spacing:-.4px; font-variant-numeric:tabular-nums;
}
.plan-price small{font-size:10.5px; font-weight:500; color:var(--muted); margin-left:2px; letter-spacing:0;}

.pay-cta{
  display:flex; flex-direction:column; gap:12px;
  margin:16px 14px 0;
}
.pay-cta .cta{height:54px;}
.pay-secure{
  display:flex; align-items:center; justify-content:center; gap:6px;
  font-size:11.5px; color:var(--muted);
}
.pay-secure svg{width:13px; height:13px; flex:0 0 auto;}

/* ================================================================
   TELA 5 — SUCESSO
   (escopado por id: a classe "done" também é usada nas etapas
   concluídas do loading e não pode herdar estes estilos)
   ================================================================ */
#screen-done{
  align-items:center; justify-content:center; text-align:center;
  padding:34px 26px;
  background:linear-gradient(180deg, #ffffff, #eef7f2);
}
.done-badge{
  width:86px; height:86px; border-radius:50%;
  background:linear-gradient(160deg, #3ae27a, #0d8a58);
  display:grid; place-items:center;
  box-shadow:0 18px 40px -10px rgba(20,170,95,.55), inset 0 1px 0 rgba(255,255,255,.4);
  margin-bottom:22px;
  animation:pop .45s cubic-bezier(.2,1.6,.45,1) both;
}
@keyframes pop{from{transform:scale(.3); opacity:0} to{transform:scale(1); opacity:1}}
.done-badge svg{width:42px; height:42px;}
#screen-done h2{font-size:22px; font-weight:800; letter-spacing:-.3px; color:var(--ink);}
#screen-done > p{font-size:13.5px; color:var(--muted); margin-top:8px;}
#screen-done .done-plan{
  margin-top:14px;
  font-size:13px; font-weight:700; color:var(--ink);
  background:#fff; border:1px solid var(--line); border-radius:12px;
  padding:10px 16px;
}
#screen-done .cta{margin-top:26px; max-width:280px;}

/* ================================================================
   ACESSIBILIDADE
   ================================================================ */
.cta:focus-visible,
.round-btn:focus-visible,
.tab:focus-visible,
.chat-row:focus-visible,
.plan:focus-within{
  outline:2px solid #0e9f6e;
  outline-offset:2px;
}
.plan:focus-within{outline-offset:3px;}
.pay-field input:focus-visible{outline:none;}

/* Scan do radar, scanline do loading e transições permanecem ativos:
   fazem parte da experiência pedida e não são decoração de fundo.
   Aqui só desligamos o que pode incomodar por movimento. */
@media (prefers-reduced-motion: reduce){
  .cta::after{display:none;}
  .deco-dot{animation:none !important;}
  .tabbar,.tab{transition:none !important;}
}

/* ================================================================
   RESPONSIVO
   ================================================================ */
@media (max-width:500px), (max-height:700px){
  body{display:block; background:var(--bg);}
  .app{width:100vw; height:100vh; height:100dvh; border-radius:0; box-shadow:none;}
}
@media (max-height:700px){
  .radar{transform:scale(.8); margin:2px 0 -2px;}
  .title{font-size:23px;}
  .home-inner{padding-top:18px;}
  .home-form{margin-top:18px;}
  .gauge{width:146px; height:146px; margin:18px 0 12px;}
  .gauge-pct b{font-size:36px;}
  .steps li{padding:6px 0; font-size:12px;}
}
