/*
  Tutorial "Como usar" (como-usar/index.html): o seletor de tipo de lavanderia e as
  telas do app dentro do celular, que imitam home-screen, nav-bar, checkout (+ modal
  PIX), disponibilidade-maquinas e qr-code-scanner. Medidas das telas em px na tela
  de 375px do animacao.css.
*/

/* ---------- Seletor do tipo (fora do celular: usa os tokens da página) ---------- */
.tipo-sel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin: -12px 0 36px; }
.tipo-sel button {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tipo-sel button > .ms {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; font-size: 26px;
  background: var(--accent-soft); color: var(--accent);
}
.tipo-sel b { display: block; font-size: 16px; }
.tipo-sel small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.tipo-sel button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.tipo-sel button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .tipo-sel { margin-bottom: 24px; }
  .tipo-sel button { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .tipo-sel button > .ms { width: 36px; height: 36px; font-size: 22px; }
}
html.gif .tipo-sel { display: none; }

/* ---------- Moldura do app (cabeçalho + barra inferior) ---------- */
.app-head {
  flex-shrink: 0; height: 58px; padding: 0 20px; background: var(--app-navy-2);
  display: flex; align-items: center; justify-content: space-between;
}
.app-logo { display: flex; align-items: center; gap: 8px; color: #FFFFFF; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.app-logo img { width: 30px; height: 30px; border-radius: 8px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #FFFFFF; color: var(--app-teal); font-weight: 700; font-size: 16px;
  border: 2px solid rgba(255,255,255,.45);
}
.app-body { flex: 1; min-height: 0; overflow: hidden; background: var(--app-light); position: relative; }

.bnav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 84px; padding: 8px 18px 20px;
  background: rgba(255,255,255,.96); border-top: 1px solid rgba(92,105,112,.2);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.bn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(92,105,112,.65); font-size: 10px; font-weight: 700; transition: transform .15s ease; }
.bn .ms { font-size: 26px; }
.bn.on { color: var(--app-teal); }
.bn-qr {
  width: 64px; height: 64px; margin-top: -26px; border-radius: 14px; background: var(--app-navy); color: var(--app-lime);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(14,37,48,.25); flex-shrink: 0;
}
.bn-qr .ms { font-size: 26px; }

/* ---------- Início ---------- */
.hero {
  background: linear-gradient(180deg, var(--app-navy-2) 0%, var(--app-navy) 100%);
  padding: 20px 20px 52px; border-radius: 0 0 28px 28px; color: #FFFFFF;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hero-date { margin: 0 0 4px; font-size: 13.5px; opacity: .85; }
.hero-name { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.bal {
  background: #FFFFFF; color: var(--app-teal); border-radius: 14px; padding: 11px 16px; min-width: 110px;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 6px 16px rgba(10,26,34,.22);
  transition: box-shadow .3s ease, transform .3s ease;
}
.bal-v { font-size: 30px; font-weight: 900; white-space: nowrap; line-height: 1.15; }
.bal-l { font-size: 12px; font-weight: 500; opacity: .75; }
.bump { animation: bump .6s ease; }
@keyframes bump { 40% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(198,242,61,.8); } }

.home-main { padding: 0 16px; margin-top: -36px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.unit { background: #FFFFFF; border-radius: 16px; padding: 10px 14px; box-shadow: 0 6px 16px rgba(14,37,48,.06); display: flex; flex-direction: column; }
.unit-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--app-gray); font-weight: 600; }
.unit-top .ms { font-size: 20px; }
.unit b { font-size: 16px; color: var(--app-ink); }
.unit small { font-size: 13px; color: var(--app-gray); }
.acard {
  display: flex; align-items: center; gap: 16px; padding: 18px 19px; border-radius: 16px; color: #FFFFFF;
  background: linear-gradient(180deg, var(--app-navy-2) 0%, var(--app-navy) 100%);
  box-shadow: 0 6px 16px rgba(14,37,48,.12); transition: transform .15s ease;
}
.acard.sec { background: linear-gradient(180deg, #2C5F5D 0%, #22484A 100%); }
.acard-ic { width: 52px; height: 52px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0; }
.acard-ic .ms { font-size: 30px; color: var(--app-lime); }
.acard-info { flex: 1; display: flex; align-items: center; gap: 12px; }
.acard-n { font-size: 38px; font-weight: 800; line-height: 1; color: var(--app-lime); }
.acard-l { display: flex; flex-direction: column; line-height: 1.15; }
.acard-l b { font-size: 17.5px; }
.acard-l span { font-size: 14.5px; opacity: .9; }
.acard > .ms { font-size: 26px; opacity: .85; }
.emuso {
  display: flex; align-items: center; gap: 13px; padding: 14px 17px; border-radius: 16px;
  background: #F3FCD8; border: 1.5px solid rgba(198,242,61,.7); box-shadow: 0 2px 8px rgba(14,37,48,.12);
  transition: transform .15s ease;
}
.emuso > .ms:first-child { font-size: 26px; color: var(--app-teal); animation: spin 3s linear infinite; }
.emuso div { flex: 1; display: flex; flex-direction: column; }
.emuso b { font-size: 15px; color: var(--app-ink); }
.emuso span { font-size: 13px; color: var(--app-gray); }
.emuso > .ms:last-child { font-size: 22px; color: var(--app-teal); opacity: .7; }

/* ---------- Carteira ---------- */
.co-top { display: flex; align-items: center; gap: 12px; padding: 12px 18px 8px; }
.co-back { width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; color: var(--app-navy); box-shadow: 0 2px 6px rgba(14,37,48,.08); }
.co-top h5 { flex: 1; margin: 0; text-align: center; font-size: 17px; font-weight: 800; color: var(--app-navy); }
.co-top i { width: 40px; }
.co-body { padding: 0 18px; display: flex; flex-direction: column; gap: 14px; }
.wallet {
  border-radius: 24px; padding: 18px 20px 16px; color: #FFFFFF;
  background: linear-gradient(150deg, var(--app-navy-2) 0%, var(--app-navy) 100%);
  box-shadow: 0 18px 40px -16px rgba(14,37,48,.6);
}
.wallet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.wallet-top span:first-child { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.78); }
.wallet-rate { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(198,242,61,.16); color: var(--app-lime); }
.wallet-bal { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wallet-v { font-size: 38px; font-weight: 900; line-height: 1.1; transition: color .3s ease; }
.wallet-v.lit { color: var(--app-lime); }
.wallet-u { font-size: 14px; color: rgba(255,255,255,.78); }
.wallet-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.7); }
.wallet-foot .ms { font-size: 16px; }
.wallet-foot em { opacity: .8; }
.sheet2 { background: #FFFFFF; border-radius: 22px; padding: 16px 16px 16px; box-shadow: 0 6px 18px rgba(14,37,48,.06); }
.sheet2 h6 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: var(--app-navy); }
.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.stp { width: 54px; height: 64px; border-radius: 16px; background: var(--app-navy); color: var(--app-lime); display: grid; place-items: center; flex-shrink: 0; transition: transform .15s ease; }
.stp .ms { font-size: 26px; }
.stp-mid { flex: 1; height: 64px; border-radius: 16px; background: var(--app-light); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stp-v { font-size: 30px; font-weight: 900; color: var(--app-ink); line-height: 1.1; font-variant-numeric: tabular-nums; display: flex; align-items: center; }
.stp-v .cur { font-size: 16px; font-weight: 700; color: var(--app-gray); margin-right: 6px; }
.stp-l { font-size: 10.5px; font-weight: 600; color: var(--app-gray); text-transform: uppercase; letter-spacing: .04em; }
/* Campo de valor (residencial) usa o .fld do motor para a digitação. */
.stp-mid.fld { padding: 0; height: 64px; display: flex; flex-direction: column; justify-content: center; box-shadow: none; }
.stp-mid.fld.focus { box-shadow: 0 0 0 2px rgba(44,95,93,.35); }
.stp-mid.fld .ph { color: #A2ABAF; }
.stp-total { text-align: center; font-size: 13.5px; color: var(--app-gray); margin: 4px 0 10px; min-height: 18px; }
.stp-total strong { color: var(--app-navy); font-weight: 800; }
.usage {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 14px; margin-bottom: 12px;
  background: #EEF4F2; font-size: 13.5px; color: var(--app-teal);
}
.usage .ms { font-size: 18px; }
.methods { display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: var(--app-light); margin-bottom: 12px; }
.methods span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 8px; border-radius: 12px; font-size: 14.5px; font-weight: 700; color: var(--app-gray); }
.methods span .ms { font-size: 20px; }
.methods span.on { background: #FFFFFF; color: var(--app-teal); box-shadow: 0 2px 10px -2px rgba(14,37,48,.18); }
.cta { height: 54px; border-radius: 16px; background: var(--app-lime); color: var(--app-ink); font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease; }
.cta .ms { font-size: 22px; }

/* Modal PIX */
.ov {
  position: absolute; inset: 0; z-index: 10; padding: 16px; display: grid; place-items: center;
  background: rgba(14,37,48,.6); opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.ov.on { opacity: 1; }
.pix {
  position: relative; width: 100%; background: #FFFFFF; border-radius: 22px; padding: 22px 18px 16px;
  box-shadow: 0 24px 60px -16px rgba(14,37,48,.7); transform: translateY(14px) scale(.97); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.ov.on .pix { transform: none; }
.pix-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--app-light); display: grid; place-items: center; color: var(--app-gray); }
.pix-x .ms { font-size: 20px; }
.pix-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.pix-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(150deg, var(--app-navy-2), var(--app-navy)); }
.pix-badge .ms { font-size: 26px; color: var(--app-lime); }
.pix-head b { font-size: 18px; color: var(--app-navy); }
.pix-res { display: flex; gap: 10px; margin-bottom: 12px; }
.pix-res div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 14px; background: var(--app-light); }
.pix-res small { font-size: 11px; font-weight: 700; color: var(--app-gray); text-transform: uppercase; letter-spacing: .04em; }
.pix-res b { font-size: 17px; color: var(--app-ink); }
.pix-code {
  font-family: 'Courier New', monospace; font-size: 11.5px; line-height: 1.45; color: var(--app-ink); word-break: break-all;
  padding: 10px 12px; border-radius: 14px; background: var(--app-light); border: 1.5px solid rgba(92,105,112,.18); margin-bottom: 10px; height: 72px; overflow: hidden;
}
.pix-copy { height: 46px; border-radius: 14px; background: var(--app-lime); color: var(--app-ink); font-weight: 800; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease; }
.pix-copy .ms { font-size: 20px; }
.pix-steps { margin: 12px 0; font-size: 13px; color: var(--app-ink); }
.pix-steps b { display: block; font-size: 12px; color: var(--app-gray); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.pix-steps ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 2px; }
.pix-wait { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(92,105,112,.14); font-size: 13.5px; color: var(--app-gray); }
.pix-wait strong { color: var(--app-teal); font-weight: 800; }

/* ---------- Disponibilidade ---------- */
.disp-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px 16px; background: #F5F7F8; }
.disp-top .co-back { box-shadow: none; background: #FFFFFF; }
.disp-top b { display: block; font-size: 21.5px; font-weight: 800; color: #1F2A37; line-height: 1.2; }
.disp-top span { font-size: 13px; color: #166534; font-weight: 600; }
.mlist { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.mcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .15s ease; }
.mcard-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #E8F3E7; color: #166534; flex-shrink: 0; }
.mcard-ic .ms { font-size: 24px; }
.mcard-info { flex: 1; display: flex; flex-direction: column; }
.mcard-info b { font-size: 16px; color: #1F2A37; }
.mcard-info span { font-size: 13px; color: #4B5563; }
.mcard-meta { display: flex; flex-direction: column; align-items: flex-end; }
.mcard-meta b { font-size: 15px; font-weight: 800; color: #166534; }
.mcard-meta span { font-size: 12.5px; opacity: .75; }
.mcard.uso { background: #DBEAFE; }
.mcard.uso .mcard-ic { background: #BFDBFE; color: #1E40AF; }
.mcard.uso .mcard-ic .ms { animation: spin 3s linear infinite; }
.mcard.uso .mcard-meta b, .mcard.uso .mcard-info span { color: #1E40AF; }

/* ---------- Tela do QR (scanner, instruções, confirmação, sucesso) ---------- */
.qr-wrap { flex: 1; min-height: 0; padding: 16px 14px; background: linear-gradient(180deg, #EEF2F3 0%, #E3E9EB 100%); display: flex; align-items: center; }
.qr-card {
  position: relative; width: 100%; background: #FFFFFF; border-radius: 24px; padding: 26px 18px 18px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.qr-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: linear-gradient(90deg, #0E7F3B, #2ACB70, #0E7F3B); }
.qr-card h3 { margin: 0 0 18px; padding-bottom: 12px; position: relative; text-align: center; color: #2A4954; font-size: 21px; font-weight: 700; line-height: 1.25; }
.qr-card h3::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #0E7F3B, #2ACB70); }
.qbadge { display: flex; width: fit-content; align-items: center; gap: 6px; margin: -6px auto 14px; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; background: #E3F0FC; color: #1565C0; }
.qbadge .ms { font-size: 20px; }
.qr-card .cam { height: 280px; }
.semqr {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 13px 14px; border-radius: 12px;
  background: #0E7F3B; color: #FFFFFF; font-size: 13.5px; font-weight: 600; text-align: center; line-height: 1.3;
}
.semqr .ms { font-size: 20px; flex-shrink: 0; }
.lavar .semqr { background: #1565C0; }
.qbtns { display: flex; gap: 10px; margin-top: 10px; }
.qbtn {
  flex: 1; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15px; font-weight: 700; border: 2px solid #2A4954; color: #2A4954; transition: transform .15s ease;
}
.qbtn .ms { font-size: 19px; }
.qbtn.pri { background: linear-gradient(to right, #0E7F3B, #1A936F); border-color: #0A5D2A; color: #FFFFFF; }
.qbtn.wait { opacity: .55; }
.qlist { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qlist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #333; line-height: 1.35; }
.qlist .ms { font-size: 20px; color: #0E7F3B; flex-shrink: 0; }
.qwarn { text-align: center; color: #C62828; font-size: 24px; font-weight: 800; line-height: 1.2; margin: 4px 0 12px; animation: pulsered 1.2s infinite; }
@keyframes pulsered { 50% { opacity: .55; } }
.qtext { margin: 0 0 16px; font-size: 14px; color: #444; text-align: center; line-height: 1.4; }
.banner {
  border-radius: 16px; padding: 16px 14px 14px; text-align: center; border: 3px solid #66BB6A; margin-bottom: 14px;
  background: linear-gradient(135deg, #1B5E20, #2E7D32); color: #FFFFFF;
}
.banner.off { background: linear-gradient(135deg, #B71C1C, #C62828); border-color: #EF9A9A; }
.banner-acao { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.banner-nome { display: flex; flex-direction: column; align-items: center; margin: 6px 0 8px; }
.banner-nome span { font-size: 30px; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.82); line-height: 1.2; }
.banner-nome strong { font-size: 66px; font-weight: 900; line-height: 1; text-shadow: 0 3px 10px rgba(0,0,0,.35); }
.banner-aviso { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.15); color: #FFF9C4; font-size: 12.5px; font-weight: 700; }
.banner-aviso .ms { font-size: 16px; }
.banner-preco { margin-top: 10px; display: inline-block; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); font-size: 14px; font-weight: 700; }
.done2 { text-align: center; }
.done2 > .ms { font-size: 72px; color: #0E7F3B; animation: bounce 1s ease-in-out; }
@keyframes bounce { 50% { transform: scale(1.15); } }
.done2 h3 { padding-bottom: 0; margin: 6px 0 8px; }
.done2 h3::after { display: none; }
.done2 p { margin: 0 0 14px; font-size: 14.5px; color: #444; }
.redir { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13.5px; color: var(--app-gray); }
.redir b { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #0E7F3B; color: #0E7F3B; display: grid; place-items: center; font-size: 18px; }
