:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#19202b;background:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,a{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px max(5%,calc((100% - 1180px)/2));background:#fff;position:sticky;top:0;z-index:5;box-shadow:0 1px 8px #0000000c}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:900;letter-spacing:-.7px}.brand small{display:block;font-size:9px;letter-spacing:4px;color:#717987}.mark{display:grid;place-items:center;background:#e92c37;color:white;border-radius:12px;width:42px;height:42px;font-size:28px}.red{color:#e92c37}nav{display:flex;gap:28px;font-size:14px;font-weight:600}nav a:hover{color:#e92c37}.outline,.ghost{background:transparent;border:1px solid #cfd3d9;border-radius:9px;padding:12px 18px;font-weight:700}.hero{background:#111a27;color:white;display:grid;grid-template-columns:1.1fr .9fr;gap:60px;padding:95px max(5%,calc((100% - 1180px)/2));align-items:center;min-height:610px}.eyebrow{color:#ef4a52;font-size:12px;font-weight:850;letter-spacing:2px}.hero h1{font-size:clamp(38px,5vw,66px);line-height:1.09;letter-spacing:-2.3px;margin:24px 0}.hero h1 em{font-style:normal;color:#fa4752}.hero p{color:#c5cbd4;line-height:1.75;font-size:17px;max-width:570px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}.btn{background:#e92c37;color:white;border:0;border-radius:10px;padding:15px 23px;font-weight:800;display:inline-block;text-align:center}.ghost{color:white;border-color:#626b79}.trust{display:flex;flex-wrap:wrap;gap:18px;color:#b8c0cc;font-size:12px;margin-top:38px}.product{min-height:385px;border:1px solid #354153;border-radius:28px;background:radial-gradient(circle at center,#334458,#192434 70%);display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative}.helmet{font-size:150px;filter:grayscale(1);opacity:.35}.sticker{position:absolute;transform:rotate(-8deg);background:white;color:#19202b;border:6px solid #e92c37;border-radius:14px;padding:14px;width:175px;text-align:center;box-shadow:0 18px 30px #0007}.sticker strong{font-size:12px;color:#d72733}.sticker small{font-size:7px;display:block;font-weight:800}.qr{width:90px;height:90px;margin:12px auto;background:repeating-conic-gradient(#111 0 25%,white 0 50%) 0 0/14px 14px;border:8px solid white;outline:1px solid #ddd}.product>p{position:absolute;bottom:6px;font-size:12px}.section{padding:85px max(5%,calc((100% - 1180px)/2))}.section-title{text-align:center;margin-bottom:36px}.section-title h2,.band h2{font-size:clamp(30px,4vw,43px);letter-spacing:-1px;margin:12px 0}.section-title p{color:#6b7280}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.cards article{border:1px solid #e6e9ee;border-radius:16px;padding:32px;box-shadow:0 5px 22px #00000005}.number{color:#e92c37;font-size:30px;font-weight:900}.cards h3{font-size:19px}.cards p{color:#697282;line-height:1.7}.band{background:#e92c37;color:white;padding:60px max(5%,calc((100% - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:30px}.band .eyebrow{color:#ffced1}.band p{max-width:680px;line-height:1.7}.light{background:white;color:#b61927;border:0;border-radius:9px;padding:15px 23px;font-weight:800;white-space:nowrap}.pricing{display:flex;justify-content:center}.price-card{border:1px solid #e4e8ef;border-radius:20px;padding:35px;width:min(100%,410px);box-shadow:0 12px 45px #0000000b}.pill{background:#ffe9eb;color:#bb2530;border-radius:100px;padding:7px 12px;font-size:11px;font-weight:800}.price{font-size:42px;font-weight:900;margin:15px 0}.price-card p,.price-card li{color:#6b7280}.price-card li{margin:12px 0}.price-card .btn{width:100%;margin-top:18px}footer{background:#101822;color:#d4d8e0;padding:40px 5%;text-align:center}footer .brand{justify-content:center}footer p,footer small{color:#a5adba;font-size:12px}dialog{border:0;border-radius:20px;box-shadow:0 25px 100px #0006;width:min(92vw,520px);max-height:85vh;overflow:auto;padding:26px;color:#19202b}dialog::backdrop{background:#101722b8}.modal-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.modal-head h2{margin:0 0 18px;font-size:24px}.modal-head small{display:block;font-size:10px;color:#e92c37;letter-spacing:1.5px;margin-top:5px}.x{border:0;background:#f1f3f5;border-radius:50%;font-size:25px;width:34px;height:34px}.notice,.alert{background:#fff5df;border-radius:10px;padding:14px;color:#75501a;font-size:13px;line-height:1.5}.alert{background:#ffebed;color:#a52630}.fake-profile{display:flex;align-items:center;gap:15px;margin:22px 0}.fake-profile p,.muted{font-size:13px;color:#6b7280;line-height:1.6}.avatar{background:#eef1f4;border-radius:50%;padding:14px;font-size:24px}.menu-grid{display:grid;gap:10px}.menu-grid button{padding:16px;text-align:left;background:#f6f7f9;border:1px solid #e3e6eb;border-radius:10px;font-weight:700}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.fields>div{background:#f5f6f8;padding:16px;border-radius:10px}.fields small{display:block;color:#737b88;margin-bottom:7px}.fields b{font-size:14px}.full{display:block}.tag-demo{text-align:center;padding:20px}.tag-demo .qr{width:160px;height:160px;background-size:20px 20px}.tag-demo p{color:#6b7280}@media(max-width:760px){header{padding:14px 5%}header nav{display:none}.brand{font-size:17px}.outline{padding:10px;font-size:12px}.hero{grid-template-columns:1fr;padding:65px 6%;gap:30px}.product{min-height:310px}.section{padding:60px 6%}.cards{grid-template-columns:1fr}.band{padding:50px 6%;display:block}.light{margin-top:15px}.fields{grid-template-columns:1fr 1fr}}

.auth-form{display:grid;gap:10px;margin:18px 0}.auth-form label{font-weight:700;font-size:14px}.auth-form input{width:100%;padding:13px;border:1px solid #cbd0d8;border-radius:10px;font-size:16px}.auth-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}.auth-primary,.auth-secondary{border-radius:10px;padding:12px 18px;font-weight:700;cursor:pointer}.auth-primary{background:#ec2938;color:white;border:0}.auth-secondary{background:white;color:#17202b;border:1px solid #bfc6d0}#auth-status{white-space:pre-wrap}#auth-user .menu-grid{margin-top:16px}[hidden]{display:none!important}

.rls-test{margin:20px 0;padding:16px;border:1px solid #d7dce3;border-radius:14px;background:#f8fafc}.rls-test h3{margin:0 0 10px}.rls-test p{overflow-wrap:anywhere}.rls-test button:disabled{opacity:.6}

.owned-tag{border:1px solid #dce1e8;border-left:4px solid #e92c37;border-radius:10px;padding:13px;margin:10px 0;background:white;overflow-wrap:anywhere}.owned-tag p{font-size:12px;margin:7px 0;color:#4b5563}

/* V8 - anonymous emergency landing page */
.public-emergency{min-height:100vh;background:#f1f4f7;padding:28px 14px;color:#14202d}.emergency-panel{max-width:530px;margin:0 auto;background:#fff;border-radius:20px;padding:28px 22px;box-shadow:0 12px 36px #12263b1a}.emergency-brand{font-weight:900;font-size:21px;color:#d92535;letter-spacing:.4px}.emergency-brand span{color:#172433}.emergency-kicker{font-size:11px;font-weight:800;letter-spacing:1px;color:#596474;margin-top:26px}.emergency-panel h1{font-size:29px;line-height:1.2;margin:10px 0 18px}.emergency-warning{background:#fff4e5;border-left:4px solid #e9a23b;border-radius:8px;padding:13px;font-size:13px}.emergency-field{margin-top:16px;padding:18px;background:#f5f7fa;border-radius:12px;display:flex;flex-direction:column;gap:7px}.emergency-field small{color:#596474}.emergency-field strong{font-size:21px}.emergency-call{display:block;margin-top:24px;background:#d92535;color:white!important;padding:15px;border-radius:11px;text-align:center;font-weight:800;text-decoration:none}.emergency-disclaimer{font-size:12px;color:#667281;margin-top:19px}.emergency-preview-link{display:inline-block;margin-top:12px;color:#c61f32;font-weight:700;overflow-wrap:anywhere}body>header[hidden],body>main[hidden],body>footer[hidden],body>dialog[hidden]{display:none!important}
/* V9: emergency contact link */
.emergency-phone{display:inline-block;margin-top:5px;font-size:15px;font-weight:700;color:#b91c2b;overflow-wrap:anywhere}.emergency-field strong{overflow-wrap:anywhere}

/* Gerenciamento de perfis V10 */
#profiles-manager {margin-top:1.25rem}
#profiles-manager textarea,#profiles-manager select,#profiles-manager input:not([type="checkbox"]):not([type="hidden"]) {width:100%;box-sizing:border-box;max-width:100%}
#profiles-manager .profile-check{display:flex;align-items:center;gap:.65rem;margin:.7rem 0;line-height:1.4}
#profiles-manager .profile-check input{width:auto;flex:0 0 auto}
#profiles-manager .profile-item{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.7rem 0;border-bottom:1px solid #ddd}
#profiles-manager .profile-item span{overflow-wrap:anywhere}

/* V11: fotos privadas */
.profile-photo-area{margin:1rem 0;padding:1rem;border:1px solid #d6dbe2;border-radius:14px;background:#f7f8fa}
.profile-photo-area h4{margin:.25rem 0 .6rem}
.profile-photo-area img{display:block;max-width:160px;max-height:160px;object-fit:cover;border-radius:12px;margin:.75rem 0}
.profile-photo-area img[hidden]{display:none}
.profile-photo-area button{margin:.5rem .5rem .5rem 0}
.profile-photo-area input[type=file]{display:block;max-width:100%;margin:.5rem 0}

#photo-isolation-test textarea{display:block;width:100%;box-sizing:border-box;overflow-wrap:anywhere;margin:.6rem 0 1rem}#other-photo-result{overflow-wrap:anywhere}

/* Seleção do perfil vinculado à etiqueta QR + NFC */
.tag-profile-picker { display:flex; flex-direction:column; gap:10px; margin:14px 0; }
.tag-profile-picker label { font-weight:700; }
.tag-profile-picker select { width:100%; max-width:100%; padding:12px; border:1px solid #bac2ce; border-radius:10px; background:#fff; color:#19212d; font:inherit; }
.tag-profile-picker button { align-self:flex-start; max-width:100%; }
