  :root{
    --teal:#36919C; --teal-dark:#2b7480; --teal-tint:#eaf3f4;
    --lime:#B0CA1F; --lime-dark:#9ab01a;
    --ink:#1e2a2d; --muted:#5c6b6e; --line:#e3ebec;
    --bg:#ffffff; --bg-soft:#f5f9fa; --wa:#25D366; --link-green:#3f9d86;
    --radius:16px; --shadow:0 10px 30px rgba(31,42,45,.08);
  }
  *{box-sizing:border-box;margin:0;padding:0}
  body{font-family:'Inter',-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--ink);background:var(--bg-soft);line-height:1.55}
  h1,h2,h3,.logo-text{font-family:'Poppins','Inter',sans-serif}
  img{max-width:100%;display:block}
  a{color:inherit;text-decoration:none}
  .wrap{max-width:1120px;margin:0 auto;padding:0 24px}



  /* ---- Buttons ---- */
  .btn{display:inline-flex;align-items:center;gap:8px;font-weight:600;border:none;cursor:pointer;border-radius:999px;padding:13px 24px;font-size:15px;font-family:'Inter';transition:.15s}
  .btn-lime{background:var(--lime);color:#1e2a2d}
  .btn-lime:hover{background:var(--lime-dark)}
  .btn-teal{background:var(--teal);color:#fff}
  .btn-teal:hover{background:var(--teal-dark)}
  .btn-ghost{background:transparent;color:var(--teal);border:1.5px solid var(--teal)}
  .btn-ghost:hover{background:var(--teal-tint)}
  .btn-lg{padding:16px 30px;font-size:16px}

  /* ---- Site header ---- */
  .site-head{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
  .site-head .wrap{display:flex;align-items:center;justify-content:space-between;padding-top:14px;padding-bottom:14px}
  .brand{height:34px}
  .head-actions{display:flex;align-items:center;gap:14px}
  .link-quiet{color:var(--muted);font-weight:500;font-size:14px}
  .link-soft{color:var(--link-green);font-weight:500;font-size:14px}
  .link-soft:hover{text-decoration:underline}
  .link-wa{color:var(--link-green);font-weight:500;font-size:14px;display:inline-flex;align-items:center;gap:6px}
  .link-wa svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

  /* ---- Hero ---- */
  .hero{background:linear-gradient(180deg,#e6f2f6 0%,#f2f9fb 55%,#ffffff 100%);padding:56px 0 64px}
  .hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;align-items:center}
  .hero h1{font-size:44px;line-height:1.1;font-weight:800;letter-spacing:-.5px}
  .hero .sub{font-size:18px;color:var(--muted);margin:18px 0 26px;max-width:520px}
  .trust{display:flex;gap:14px 22px;flex-wrap:wrap;margin-top:22px;font-size:14px;color:var(--muted);font-weight:500}
  .trust span{display:inline-flex;align-items:center;gap:6px}
  .trust i{color:var(--link-green);font-style:normal;font-weight:700}
  .help-inline{margin-top:20px;font-size:14px;color:var(--muted)}
  .help-inline a{color:var(--link-green);font-weight:600;text-decoration:underline}

  /* generator card */
  .gen-card{background:#fff;border-radius:20px;box-shadow:var(--shadow);padding:26px}
  .gen-card label{font-size:13px;font-weight:600;color:var(--muted);display:block;margin-bottom:8px}
  .gen-row{display:flex;gap:10px}
  .gen-row input{flex:1;border:1.5px solid var(--line);border-radius:12px;padding:13px 14px;font-size:15px;font-family:'Inter';outline:none}
  .gen-row input:focus{border-color:var(--teal)}
  .qr-box{margin-top:22px;display:flex;flex-direction:column;align-items:center;gap:14px}
  .qr-frame{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}
  .qr-frame canvas,.qr-frame img{display:block}
  .dl-locked{position:relative;width:100%}
  .dl-locked .btn{width:100%;justify-content:center;opacity:.55;filter:grayscale(.3);pointer-events:none}
  .lock-badge{margin-top:8px;font-size:12.5px;color:var(--muted);text-align:center}

  /* ---- Sections ---- */
  section.blk{padding:64px 0}
  .sec-head{text-align:center;max-width:640px;margin:0 auto 40px}
  .sec-head h2{font-size:32px;font-weight:700}
  .sec-head p{color:var(--muted);margin-top:10px}

  .cards4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
  .card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;transition:.15s}
  .card:hover{box-shadow:var(--shadow);transform:translateY(-3px)}
  .card .ico{width:48px;height:48px;border-radius:50%;background:var(--teal-tint);color:var(--teal);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
  .card .ico svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .card h3{font-size:16px;font-weight:600;margin-bottom:6px}
  .card p{font-size:14px;color:var(--muted)}

  .how-grid{display:grid;grid-template-columns:.82fr 1.18fr;gap:46px;align-items:center}
  .how-photo{margin:0;border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}
  .how-photo img{width:100%;height:100%;max-height:470px;object-fit:cover;display:block}
  .how-steps{display:flex;flex-direction:column;gap:24px}
  .hstep{display:flex;gap:16px;align-items:flex-start}
  .hstep .num{flex:none;width:46px;height:46px;border-radius:50%;background:var(--teal);color:#fff;font-family:'Poppins';font-weight:700;font-size:20px;display:flex;align-items:center;justify-content:center}
  .hstep h3{font-size:17px;margin-bottom:3px}
  .hstep p{color:var(--muted);font-size:14px}

  .band-teal{background:var(--teal);color:#fff}
  .band-teal .inner{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap}
  .band-teal h2{font-size:27px;margin-bottom:12px}
  .band-teal p{opacity:.92;max-width:640px}
  .btn-wa{background:var(--wa);color:#fff}
  .btn-wa:hover{filter:brightness(.95)}

  .about{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}
  .about h2{font-size:30px;margin-bottom:16px}
  .about p{color:var(--muted);margin-bottom:22px}
  .about .team-photo{margin:0;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);position:relative}
  .about .team-photo img{width:100%;height:480px;object-fit:cover;object-position:center 12%;display:block}
  .about .team-photo figcaption{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(18,33,31,.72));color:#fff;font-size:14px;font-weight:500;padding:26px 18px 14px;text-align:left}
  .stat-row{display:flex;gap:16px;margin-top:16px;flex-wrap:wrap}
  .stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;flex:1;min-width:130px}
  .stat b{font-family:'Poppins';font-size:22px;color:var(--teal);display:block;margin-bottom:2px}
  .stat small{color:var(--muted)}

  /* Já teve dor de cabeça — centralizado, fundo claro */
  .dor-band{background:var(--teal-tint)}
  .dor-inner{max-width:760px;margin:0 auto;text-align:center}
  .dor-inner h2{font-size:30px;margin-bottom:16px}
  .dor-inner p{color:var(--muted);margin-bottom:26px}

  /* Grátis hoje — card branco com selo */
  .free-section{background:var(--bg-soft)}
  .free-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);text-align:center;max-width:780px;margin:0 auto;padding:42px 30px}
  .free-badge{display:inline-flex;align-items:center;gap:7px;background:var(--lime);color:#1e2a2d;font-weight:600;font-size:13.5px;padding:8px 16px;border-radius:999px;margin-bottom:16px}
  .free-card h2{font-size:28px;color:var(--ink);margin-bottom:8px}
  .free-card p{color:var(--muted)}

  .cta-final{background:#2f8791;color:#fff;text-align:center;padding:66px 0}
  .cta-final h2{font-size:30px;max-width:640px;margin:0 auto 24px;color:#fff}
  .cta-final .help{margin-top:16px;color:rgba(255,255,255,.85);font-size:14px}
  .cta-final .help a{color:#fff;font-weight:600;text-decoration:underline}

  footer{background:#2b7c86;color:rgba(255,255,255,.85);padding:34px 0 22px}
  footer .foot-top{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;align-items:center}
  footer .brand-neg{height:30px}
  footer .flinks{display:flex;gap:18px;flex-wrap:wrap;font-size:14px}
  footer small{display:block;opacity:.85;margin-top:10px;font-size:12.5px}
  .foot-copy{max-width:1120px;margin:22px auto 0;padding:16px 24px 0;border-top:1px solid rgba(255,255,255,.16);text-align:center;font-size:12.5px;opacity:.7}

  /* ---- Auth / centered screens ---- */
  .auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:50px 24px;background:linear-gradient(180deg,var(--teal-tint),#fff)}
  .auth-card{background:#fff;border-radius:20px;box-shadow:var(--shadow);padding:38px;width:100%;max-width:440px}
  .auth-card .brand{height:32px;margin:0 auto 22px}
  .auth-card h2{text-align:center;font-size:24px;margin-bottom:6px}
  .auth-card .lead{text-align:center;color:var(--muted);font-size:14px;margin-bottom:24px}
  .field{margin-bottom:16px}
  .field label{font-size:13px;font-weight:600;color:var(--ink);display:block;margin-bottom:6px}
  .field input{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;font-size:15px;font-family:'Inter';outline:none}
  .field input:focus{border-color:var(--teal)}
  .check{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--muted);margin:6px 0 20px}
  .check input{margin-top:3px}
  .auth-card .btn{width:100%;justify-content:center}
  .auth-foot{text-align:center;font-size:13.5px;color:var(--muted);margin-top:16px}
  .auth-foot a{color:var(--teal);font-weight:600}
  .mini-note{font-size:12.5px;color:var(--muted);text-align:center;margin-top:14px}
  .email-ico{width:74px;height:74px;border-radius:50%;background:var(--teal-tint);color:var(--teal);display:flex;align-items:center;justify-content:center;font-size:34px;margin:0 auto 20px}

  /* ---- Dashboard ---- */
  .dash{min-height:100vh;background:var(--bg-soft)}
  .dash-head{background:#fff;border-bottom:1px solid var(--line);padding:16px 0}
  .dash-head .wrap{display:flex;align-items:center;justify-content:space-between}
  .dash-body{padding:36px 0 70px}
  .dash-body h1{font-size:26px;margin-bottom:4px}
  .dash-body .muted{color:var(--muted);margin-bottom:26px}
  .newqr{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:30px;box-shadow:var(--shadow)}
  .newqr .gen-row{max-width:640px}
  .qr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
  .qr-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:12px}
  .qr-card .thumb{align-self:center;border:1px solid var(--line);border-radius:12px;padding:10px}
  .qr-card .lnk{font-size:13.5px;color:var(--teal-dark);font-weight:600;word-break:break-all}
  .qr-card .meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
  .qr-card .date{font-size:12.5px;color:var(--muted)}
  .qr-card .views{font-size:12px;color:var(--teal-dark);font-weight:600;background:var(--teal-tint);padding:4px 10px;border-radius:999px;display:inline-flex;align-items:center;gap:5px}
  /* modal */
  .modal-ov{display:none;position:fixed;inset:0;background:rgba(18,33,31,.55);z-index:80;align-items:flex-start;justify-content:center;padding:44px 20px;overflow:auto}
  .modal-ov.on{display:flex}
  .modal-card{background:#fff;border-radius:20px;max-width:440px;width:100%;padding:34px;position:relative;box-shadow:var(--shadow)}
  .modal-card h2{font-size:22px;margin-bottom:4px}
  .modal-card .lead{color:var(--muted);font-size:14px;margin-bottom:20px}
  .modal-x{position:absolute;top:12px;right:16px;border:none;background:transparent;font-size:28px;color:var(--muted);cursor:pointer;line-height:1}
  .divi{border:none;border-top:1px solid var(--line);margin:20px 0}
  .sub-h{font-weight:700;font-family:'Poppins';font-size:15px;margin-bottom:14px}
  .qr-card .actions{display:flex;gap:8px;margin-top:auto}
  .qr-card .actions .btn{flex:1;justify-content:center;padding:9px 10px;font-size:13px}

  /* ---- Floating WhatsApp ---- */
  .wa-float{position:fixed;right:22px;bottom:22px;width:58px;height:58px;border-radius:50%;background:var(--wa);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(37,211,102,.45);z-index:70;font-size:28px}
  .wa-float:hover{filter:brightness(.95)}

  /* Tablet e mobile: esconder a foto do CEO, texto ocupa a largura toda */
  @media(max-width:1024px){
    .about{grid-template-columns:1fr}
    .about .team-photo{display:none}
  }
  @media(max-width:900px){
    .hero-grid,.about,.how-grid{grid-template-columns:1fr}
    .cards4{grid-template-columns:repeat(2,1fr)}
    .qr-grid{grid-template-columns:1fr 1fr}
    .hero h1{font-size:34px}
  }
  @media(max-width:560px){
    .cards4,.qr-grid{grid-template-columns:1fr}
    .head-actions .link-quiet{display:none}
    .hero h1{font-size:29px}
    .band-teal .inner{flex-direction:column;align-items:flex-start}
  }

/* ===================== Complementos do sistema ===================== */
.btn[disabled],.btn.is-loading{opacity:.6;pointer-events:none}
.btn-sm{padding:9px 14px;font-size:13px}
.link-wa span{white-space:nowrap}
.hero-note{font-size:12.5px;color:var(--muted);text-align:center}
.gen-error{color:#b42318;font-size:13px;margin-top:8px;min-height:18px}
.qr-frame{min-width:200px;min-height:200px;display:flex;align-items:center;justify-content:center}
.qr-placeholder{width:168px;height:168px;border-radius:10px;background:repeating-linear-gradient(45deg,var(--bg-soft),var(--bg-soft) 10px,#fff 10px,#fff 20px);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;text-align:center;padding:12px}
.dl-open{width:100%}
.dl-open .btn{width:100%;justify-content:center}

/* Alerts */
.alert{border-radius:12px;padding:12px 14px;font-size:14px;margin-bottom:18px;line-height:1.45;text-align:left}
.alert-success{background:#ecf7e3;color:#35610d;border:1px solid #cfe6b7}
.alert-error{background:#fdecea;color:#912018;border:1px solid #f6c9c3}
.alert-info{background:var(--teal-tint);color:var(--teal-dark);border:1px solid #cfe3e6}
.alert-dev{background:#fff8e1;color:#7a5b00;border:1px dashed #e5c461}
.alert a{font-weight:600;text-decoration:underline}

/* Auth */
.auth-card.center{text-align:center}
.auth-card .brand{display:block}
.field .hint{font-size:12px;color:var(--muted);margin-top:5px;display:block}
.field input[readonly]{background:var(--bg-soft);color:var(--muted)}
.row-between{display:flex;justify-content:space-between;align-items:center;margin:-6px 0 16px;font-size:13px}
.row-between a{color:var(--teal);font-weight:600}
.link-btn{background:none;border:none;color:var(--teal);font-weight:600;cursor:pointer;font:inherit;font-weight:600;text-decoration:underline}
.privacy{font-size:12px;color:var(--muted);margin-top:12px;text-align:center}
.auth-card form .btn{margin-top:4px}
.url-pill{background:var(--teal-tint);color:var(--teal-dark);border-radius:12px;padding:10px 12px;font-size:13px;margin-bottom:18px;word-break:break-all}
.url-pill b{display:block;font-size:12px;color:var(--muted);font-weight:600;margin-bottom:2px}

/* Painel */
.dash-head .head-actions .link-quiet{cursor:pointer}
.newqr .gen-row{max-width:none}
.newqr .gen-row input.title-in{flex:0 0 240px}
.newqr .gen-error{min-height:0}
.list-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;flex-wrap:wrap}
.list-head h2{font-size:19px}
.list-head input{border:1.5px solid var(--line);border-radius:999px;padding:9px 16px;font-size:14px;font-family:'Inter';outline:none;min-width:240px;background:#fff}
.list-head input:focus{border-color:var(--teal)}
.qr-card{position:relative}
.qr-card.is-new{border-color:var(--lime);box-shadow:0 0 0 3px rgba(176,202,31,.25)}
.qr-card .title{font-family:'Poppins';font-weight:600;font-size:15px;display:flex;align-items:center;gap:6px}
.qr-card .title .edit{border:none;background:none;cursor:pointer;color:var(--muted);font-size:13px;padding:2px 4px;border-radius:6px}
.qr-card .title .edit:hover{background:var(--bg-soft);color:var(--teal)}
.qr-card .title.empty span{color:var(--muted);font-weight:500}
.qr-card .dest{font-size:12px;color:var(--muted);margin-bottom:-8px}
.qr-card .thumb img,.qr-card .thumb canvas{display:block;width:150px;height:150px;image-rendering:pixelated}
.qr-card .actions{flex-wrap:wrap}
.qr-card .actions .btn{flex:1 1 30%}
.qr-card .short{font-size:12px;color:var(--muted);word-break:break-all}
.empty-state{background:#fff;border:1.5px dashed var(--line);border-radius:var(--radius);padding:44px 20px;text-align:center;color:var(--muted)}
.empty-state b{display:block;color:var(--ink);font-family:'Poppins';font-size:17px;margin-bottom:4px}
.admin-bar{font-size:13px;margin-bottom:18px}
.admin-bar a{color:var(--teal);font-weight:600;text-decoration:underline}
.modal-card form .btn{width:100%;justify-content:center;margin-top:6px}
.modal-card .check{margin:4px 0 10px}

/* Toast */
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);background:#12211f;color:#fff;padding:12px 20px;border-radius:999px;font-size:14px;opacity:0;pointer-events:none;transition:.25s;z-index:90;max-width:calc(100% - 40px);text-align:center}
.toast.on{opacity:1;transform:translateX(-50%) translateY(0)}

/* Página simples (404 de QR) */
.simple-page .auth-card .btn{margin-top:8px}

@media(max-width:900px){
  .newqr .gen-row{flex-direction:column}
  .newqr .gen-row input.title-in{flex:1}
}
@media(max-width:560px){
  .link-wa span{display:none}
  .gen-row{flex-direction:column}
  .gen-row .btn{justify-content:center}
  .site-head .head-actions{gap:10px}
  .site-head .btn{padding:10px 14px;font-size:13px}
  .list-head input{min-width:0;width:100%}
  .auth-card{padding:28px 22px}
}
.gen-row .btn{white-space:nowrap;flex:none}
