:root{
  --green-950:#0c2717;--green-900:#123820;--green-800:#174f2e;--green-700:#20663a;
  --green-600:#2b7b48;--green-100:#e5f4ea;--green-50:#f2faf4;--bg:#f4f7f5;
  --surface:#fff;--text:#172019;--muted:#6f7b72;--border:rgba(23,79,46,.10);
  --soft-shadow:0 10px 30px rgba(15,56,31,.08);--shadow:0 20px 55px rgba(15,56,31,.13);
  --ease:cubic-bezier(.2,.7,.2,1)
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:var(--bg)}
body{min-height:100vh;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(circle at 15% 0%,rgba(43,123,72,.12),transparent 30%),linear-gradient(180deg,#fbfdfb 0%,var(--bg) 100%);-webkit-font-smoothing:antialiased}
a,button{font:inherit;-webkit-tap-highlight-color:transparent}button{border:0}
.page{width:100%;overflow:hidden}
.hero{position:relative;min-height:330px;padding:38px 16px 105px;display:flex;justify-content:center;color:#fff;background:linear-gradient(135deg,rgba(7,31,17,.90),rgba(23,79,46,.79)),var(--cover,url('../images/cover.svg')) center/cover no-repeat;border-radius:0 0 36px 36px;box-shadow:0 25px 70px rgba(12,39,23,.22)}
.hero-inner{width:min(100%,560px);text-align:center;position:relative;z-index:1}
.brand-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;margin-bottom:14px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.10);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.9px}
.logo-shell{width:108px;height:108px;margin:0 auto 14px;padding:5px;border-radius:28px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.14);box-shadow:0 18px 42px rgba(0,0,0,.25)}
.logo{width:100%;height:100%;object-fit:cover;border-radius:23px;background:#fff;display:block}
h1{font-size:clamp(30px,8vw,40px);line-height:1.04;font-weight:850;letter-spacing:-1px}
.tagline{max-width:430px;margin:9px auto 0;font-size:15px;color:rgba(255,255,255,.84)}
.hero-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:15px}
.meta-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);font-size:12px}
.wrap{width:min(100%,560px);margin:-74px auto 0;padding:0 12px 32px;position:relative;z-index:3}
.main-card{padding:12px;border:1px solid rgba(255,255,255,.82);background:rgba(255,255,255,.82);backdrop-filter:blur(16px);box-shadow:var(--shadow);border-radius:27px}
.primary-card{display:block;position:relative;padding:18px;border-radius:21px;background:linear-gradient(135deg,var(--green-800),var(--green-600));color:#fff;text-decoration:none;box-shadow:0 18px 40px rgba(23,79,46,.25)}
.primary-top{display:flex;align-items:flex-start;gap:13px}.primary-icon{flex:0 0 46px;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.14);font-size:21px}
.primary-copy{flex:1;text-align:left}.eyebrow{font-size:9px;font-weight:850;letter-spacing:1px;text-transform:uppercase;color:rgba(255,255,255,.68)}.primary-title{display:block;margin-top:3px;font-size:18px;font-weight:820}.primary-sub{display:block;margin-top:5px;font-size:12px;line-height:1.4;color:rgba(255,255,255,.75)}
.response-badge{display:inline-flex;align-items:center;gap:7px;margin-top:14px;padding:7px 10px;border-radius:999px;font-size:10.5px;font-weight:750;background:rgba(255,255,255,.11)}
.section-title{display:flex;align-items:center;gap:10px;margin:20px 5px 10px;font-size:10px;font-weight:850;letter-spacing:1px;text-transform:uppercase;color:#718077}.section-title:after{content:"";height:1px;flex:1;background:var(--border)}
.nfc-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.nfc-action{min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px 7px;border-radius:15px;border:1px solid var(--border);background:#fff;color:var(--text);text-decoration:none;box-shadow:var(--soft-shadow);cursor:pointer}.nfc-action i{width:33px;height:33px;display:grid;place-items:center;border-radius:11px;background:var(--green-100);color:var(--green-800)}.nfc-action span{font-size:10px;font-weight:750;text-align:center}
.link-list{display:grid;gap:9px}.link-item{min-height:66px;display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:17px;border:1px solid var(--border);background:#fff;color:var(--text);text-decoration:none;box-shadow:var(--soft-shadow)}.link-icon{flex:0 0 43px;width:43px;height:43px;display:grid;place-items:center;border-radius:13px;color:var(--green-800);background:var(--green-100);font-size:17px}.link-copy{flex:1;text-align:left}.link-copy strong{display:block;font-size:14px}.link-copy small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}
.panel-block{margin-top:15px;padding:14px;border-radius:19px;border:1px solid var(--border);background:linear-gradient(180deg,#fff,#f8fbf9)}
.block-head{display:flex;align-items:flex-start;gap:9px;margin-bottom:11px}.block-head i{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:var(--green-100);color:var(--green-700);font-size:12px}.block-head h3{font-size:13px;font-weight:850}.block-head p{margin-top:3px;font-size:10.5px;color:var(--muted)}
.promo-list{display:grid;gap:9px}.promo-card{display:grid;grid-template-columns:82px 1fr;gap:11px;align-items:center;padding:9px;border-radius:15px;border:1px solid rgba(23,79,46,.08);background:#fff}.promo-card img{width:82px;height:82px;object-fit:cover;border-radius:12px;background:var(--green-50)}.promo-card strong{display:block;font-size:12.5px}.promo-card small{display:block;margin-top:4px;font-size:10.5px;color:var(--muted);line-height:1.35}.promo-badge{display:inline-flex;padding:4px 7px;border-radius:999px;background:#fff3df;color:#8a5a15;font-size:8px;font-weight:850;text-transform:uppercase}.promo-action{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:7px 9px;border-radius:9px;background:var(--green-800);color:#fff;text-decoration:none;font-size:9px;font-weight:800}
.store-info-grid,.trust-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.info-mini,.trust-item{display:flex;align-items:center;gap:8px;min-height:54px;padding:9px;border-radius:12px;background:#fff;border:1px solid rgba(23,79,46,.08)}.info-mini i,.trust-item i{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:var(--green-100);color:var(--green-700);font-size:11px}.info-mini strong{display:block;font-size:10.5px}.info-mini small{display:block;margin-top:2px;font-size:9.5px;color:var(--muted)}
.store-gallery{display:grid;grid-template-columns:1.55fr 1fr;grid-template-rows:100px 100px;gap:7px}.store-photo{overflow:hidden;border-radius:14px;background:var(--green-50);cursor:pointer}.store-photo:first-child{grid-row:1/3}.store-photo img{width:100%;height:100%;object-fit:cover;display:block}.gallery-footer{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid var(--border);font-size:10px;color:var(--muted)}.gallery-map{padding:7px 9px;border-radius:9px;background:var(--green-100);color:var(--green-800);text-decoration:none;font-weight:800}
.social-row{display:flex;justify-content:center;gap:9px;padding:3px}.social-btn{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;border:1px solid var(--border);background:#fff;color:var(--green-800);text-decoration:none;cursor:pointer;box-shadow:var(--soft-shadow)}
.footer{text-align:center;padding:21px 8px 4px;color:var(--muted);font-size:11px}
.photo-modal,.modal{position:fixed;inset:0;z-index:1700;display:grid;place-items:center;padding:18px;background:rgba(8,24,14,.72);backdrop-filter:blur(9px);opacity:0;visibility:hidden;transition:.2s}.photo-modal.show,.modal.show{opacity:1;visibility:visible}.photo-modal-inner,.modal-card{position:relative;width:min(100%,760px)}.photo-modal img{width:100%;max-height:88vh;object-fit:contain;border-radius:18px;background:#0d1c12}.photo-close,.close-btn{position:absolute;top:10px;right:10px;width:38px;height:38px;border-radius:12px;background:#fff;color:var(--green-800);cursor:pointer}.modal-card{max-width:360px;background:#fff;padding:18px;border-radius:22px}.qr-box{min-height:240px;display:grid;place-items:center}
.notification{position:fixed;left:50%;bottom:22px;z-index:2000;transform:translate(-50%,14px);padding:11px 14px;border-radius:11px;background:var(--green-950);color:#fff;font-size:12px;font-weight:700;opacity:0;visibility:hidden}.notification.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
@media(max-width:460px){.nfc-actions{grid-template-columns:repeat(2,1fr)}.store-info-grid,.trust-grid{grid-template-columns:1fr}.promo-card{grid-template-columns:72px 1fr}.promo-card img{width:72px;height:72px}.store-gallery{grid-template-columns:1fr 1fr;grid-template-rows:165px 100px}.store-photo:first-child{grid-column:1/-1;grid-row:auto}}


/* ===== Temas selecionáveis pelo CMS ===== */

/* Classic: visual original */
body.theme-classic{
  --bg:#f4f7f5;
  --surface:#fff;
  --text:#172019;
  --muted:#6f7b72;
}

/* Emerald Glass: mais sofisticado, ainda claro */
body.theme-emerald{
  --bg:#edf6f0;
  --surface:rgba(255,255,255,.88);
  --text:#122019;
  --muted:#63756a;
  background:
    radial-gradient(circle at 12% 0%,rgba(52,133,83,.19),transparent 31%),
    radial-gradient(circle at 92% 40%,rgba(45,123,72,.10),transparent 27%),
    linear-gradient(180deg,#f8fcf9,#eaf4ed);
}
body.theme-emerald .hero{
  background:
    radial-gradient(circle at 50% 0%,rgba(103,180,126,.24),transparent 31%),
    linear-gradient(145deg,rgba(8,39,22,.92),rgba(34,105,61,.80)),
    var(--cover) center/cover no-repeat;
  border-radius:0 0 42px 42px;
}
body.theme-emerald .main-card{
  background:rgba(255,255,255,.68);
  border-color:rgba(255,255,255,.78);
  box-shadow:0 26px 70px rgba(14,62,34,.16);
}
body.theme-emerald .primary-card{
  background:linear-gradient(135deg,var(--green-800),#55a66e);
}
body.theme-emerald .nfc-action,
body.theme-emerald .link-item,
body.theme-emerald .panel-block,
body.theme-emerald .social-btn{
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(12px);
}

/* Dark Tech */
body.theme-dark{
  --bg:#080d0a;
  --surface:#121713;
  --text:#f3f7f4;
  --muted:#9aa69e;
  --border:rgba(255,255,255,.075);
  --soft-shadow:0 12px 30px rgba(0,0,0,.22);
  --shadow:0 24px 65px rgba(0,0,0,.38);
  background:
    radial-gradient(circle at 10% 0%,rgba(34,116,65,.18),transparent 30%),
    #080d0a;
  color:var(--text);
}
body.theme-dark .hero{
  background:
    linear-gradient(145deg,rgba(3,13,7,.92),rgba(18,58,34,.84)),
    var(--cover) center/cover no-repeat;
  box-shadow:0 25px 70px rgba(0,0,0,.38);
}
body.theme-dark .main-card{
  background:rgba(14,18,15,.88);
  border-color:rgba(255,255,255,.07);
}
body.theme-dark .primary-card{
  background:linear-gradient(135deg,var(--green-800),#3c8f58);
}
body.theme-dark .section-title{color:#8e9b92}
body.theme-dark .section-title:after{background:rgba(255,255,255,.07)}
body.theme-dark .nfc-action,
body.theme-dark .link-item,
body.theme-dark .panel-block,
body.theme-dark .social-btn{
  background:#121713;
  color:#f2f6f3;
  border-color:rgba(255,255,255,.07);
}
body.theme-dark .nfc-action i,
body.theme-dark .link-icon,
body.theme-dark .info-mini i,
body.theme-dark .trust-item i,
body.theme-dark .block-head i{
  background:rgba(64,142,88,.14);
  color:#72c68d;
}
body.theme-dark .promo-card,
body.theme-dark .info-mini,
body.theme-dark .trust-item{
  background:#0d120e;
  border-color:rgba(255,255,255,.06);
}
body.theme-dark .link-copy small,
body.theme-dark .info-mini small,
body.theme-dark .block-head p,
body.theme-dark .promo-card small,
body.theme-dark .footer{
  color:#929f97;
}
body.theme-dark .gallery-footer{
  border-top-color:rgba(255,255,255,.07);
  color:#96a199;
}
body.theme-dark .gallery-map{
  background:rgba(65,145,90,.15);
  color:#7fd19a;
}
body.theme-dark .modal-card{
  background:#111713;
  color:#fff;
}
body.theme-dark .qr-box{background:#fff}

/* Graphite: neutro/corporativo */
body.theme-graphite{
  --bg:#e9edeb;
  --surface:#fff;
  --text:#1c211e;
  --muted:#6c746f;
  --border:rgba(33,47,39,.10);
  background:
    radial-gradient(circle at 15% 0%,rgba(61,89,72,.10),transparent 28%),
    linear-gradient(180deg,#f3f5f4,#e7ebe9);
}
body.theme-graphite .hero{
  background:
    linear-gradient(135deg,rgba(23,28,25,.91),rgba(57,72,63,.80)),
    var(--cover) center/cover no-repeat;
}
body.theme-graphite .primary-card{
  background:linear-gradient(135deg,#26362d,#477259);
}
body.theme-graphite .main-card{
  background:rgba(245,247,246,.90);
  border-color:rgba(255,255,255,.80);
}
body.theme-graphite .nfc-action i,
body.theme-graphite .link-icon,
body.theme-graphite .info-mini i,
body.theme-graphite .trust-item i,
body.theme-graphite .block-head i{
  background:#e4ece7;
  color:#315d40;
}
body.theme-graphite .gallery-map{
  background:#e3ebe6;
  color:#315d40;
}

.footer{display:flex;flex-direction:column;align-items:center;gap:5px}
.tapvio-credit{font-size:11px;color:var(--muted);opacity:.82}
.tapvio-credit a{color:var(--green-800);font-weight:800;text-decoration:none;transition:.2s ease}
.tapvio-credit a:hover{opacity:.72}
body.theme-dark .tapvio-credit a{color:#72c68d}


/* ===== Selo Tecnologia TapVio ===== */
.tapvio-credit{display:none}
.tapvio-tech-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:30px;
  margin-top:5px;
  padding:5px 10px 5px 12px;
  border:1px solid rgba(28,88,51,.12);
  border-radius:999px;
  background:rgba(255,255,255,.58);
  color:#647168;
  text-decoration:none;
  box-shadow:0 5px 16px rgba(22,63,38,.045);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.tapvio-tech-badge:hover{
  transform:translateY(-1px);
  border-color:rgba(28,88,51,.24);
  box-shadow:0 8px 20px rgba(22,63,38,.08);
}
.tapvio-tech-label{
  font-size:10px;
  font-weight:500;
  color:#7c8980;
}
.tapvio-tech-mark{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:6px;
  background:var(--green-800);
  color:#fff;
  font-size:8px;
  font-weight:900;
  letter-spacing:-.3px;
}
.tapvio-tech-badge strong{
  color:var(--green-800);
  font-size:10px;
  font-weight:850;
}
body.theme-dark .tapvio-tech-badge{
  background:rgba(255,255,255,.045);
  border-color:rgba(255,255,255,.1);
  color:#aebbb2;
}
body.theme-dark .tapvio-tech-label{color:#91a097}
body.theme-dark .tapvio-tech-mark{background:#4fb979;color:#07180f}
body.theme-dark .tapvio-tech-badge strong{color:#67ca8c}
