/* Site público — Harba Manutenção (clean e futurista) */
:root {
  --escuro: #070B1A; --tinta: #0B1020; --texto2: #5B6481; --linha: #E4E8F2; --fundo: #F4F6FB;
  --grad: linear-gradient(135deg, #22D3EE 0%, #6366F1 55%, #A855F7 100%);
  --brilho: 0 10px 30px rgba(99, 102, 241, .3);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -.01em; }
a { color: #4F46E5; }
button, a, input, select, label { -webkit-tap-highlight-color: transparent; }

.s-topo { position: sticky; top: 0; z-index: 20; background: rgba(7, 11, 26, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-top: env(safe-area-inset-top); }
.s-topo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad); opacity: .8; }
.s-in { max-width: 860px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.s-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; min-width: 0; }
.s-logo span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-logo img { height: 34px; width: auto; border-radius: 8px; }
.s-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); font-size: 18px; box-shadow: 0 6px 18px rgba(99,102,241,.5); flex: none; }
.s-acomp { color: #C9D1EA; text-decoration: none; font-size: .88rem; font-weight: 600; border: 1px solid rgba(255,255,255,.18); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }

.s-main { max-width: 860px; margin: 0 auto; padding: 0 16px 140px; }
.s-hero { position: relative; margin: 0 -16px 18px; padding: 34px 20px 30px; background: var(--escuro); color: #fff; overflow: hidden; }
.s-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.s-hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -160px; border-radius: 50%; background: var(--grad); filter: blur(80px); opacity: .5; }
.s-hero h1 { position: relative; z-index: 1; margin: 0 0 8px; font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.15; }
.s-hero p { position: relative; z-index: 1; margin: 0; color: #C9D1EA; max-width: 560px; }
@media (min-width: 900px) { .s-hero { margin: 18px 0; border-radius: 22px; } }

.s-card { background: #fff; border: 1px solid var(--linha); border-radius: 20px; padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16,24,64,.04), 0 8px 24px rgba(16,24,64,.06); }
.s-card h2 { margin: 0 0 12px; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.s-card h2 span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .9rem; }
.s-sutil { color: var(--texto2); font-size: .9rem; }
.s-hp { position: absolute; left: -9999px; }

.s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chip { font: inherit; font-weight: 600; border: 1.5px solid var(--linha); background: #fff; color: var(--tinta); border-radius: 14px; padding: 10px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.s-chip:hover { border-color: #A5B4FC; }
.s-chip.ativo { border-color: transparent; background: var(--grad); color: #fff; box-shadow: var(--brilho); }
.s-chip i { font-style: normal; margin-right: 6px; }
.s-chips-grandes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.s-chips-grandes .s-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; font-size: .95rem; }
.s-chips-grandes .s-chip i { font-size: 1.9rem; margin: 0; }
.s-link { background: none; border: 0; padding: 0; margin-top: 10px; font: inherit; color: #4F46E5; text-decoration: underline; cursor: pointer; display: inline-block; }

.s-input, .s-card select, .s-card textarea { display: block; width: 100%; margin-top: 4px; padding: 12px 14px; font: inherit; font-size: 16px; border: 1.5px solid var(--linha); border-radius: 12px; background: #fff; color: var(--tinta); }
.s-input:focus, .s-card select:focus, .s-card textarea:focus { outline: none; border-color: #818CF8; box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
#busca { margin: 0 0 10px; }
.s-card label { display: block; margin-bottom: 12px; font-size: .9rem; color: var(--texto2); font-weight: 600; }
.s-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.s-servicos { display: grid; gap: 8px; }
.s-serv { display: flex !important; align-items: center; gap: 12px; margin: 0 !important; padding: 12px 14px; border: 1.5px solid var(--linha); border-radius: 14px; cursor: pointer; color: var(--tinta) !important; font-weight: 400 !important; }
.s-serv input { width: 22px; height: 22px; accent-color: #6366F1; flex: none; }
.s-serv-in { flex: 1; display: flex; flex-direction: column; } .s-serv-in small { color: var(--texto2); font-size: .82rem; }
.s-serv-preco { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.s-serv-preco em { font-style: normal; font-size: .82rem; color: #92400E; background: #FEF3C7; padding: 3px 8px; border-radius: 99px; font-family: Inter, sans-serif; }
.s-serv:has(input:checked) { border-color: #818CF8; background: #EEF0FF; }

.s-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(7, 11, 26, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; }
.s-barra::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad); }
.s-barra small { display: block; color: #8A94B4; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.s-barra b { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; background: linear-gradient(90deg, #67E8F9, #A5B4FC 60%, #D8B4FE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-barra span { color: #A9B3D1; font-size: .82rem; }
@media (min-width: 900px) { .s-barra { left: 50%; transform: translateX(-50%); bottom: 16px; width: 828px; border-radius: 18px; } }

.s-btn { display: inline-block; border: 0; border-radius: 14px; padding: 14px 22px; font: inherit; font-weight: 700; color: #fff; background: var(--grad); box-shadow: var(--brilho); cursor: pointer; text-decoration: none; text-align: center; }
.s-btn:disabled { opacity: .6; }
.s-btn-zap { background: #16A34A; box-shadow: 0 10px 24px rgba(22,163,74,.3); }
.s-btn-sec { background: #fff; color: var(--tinta); border: 1.5px solid var(--linha); box-shadow: none; }

.s-erro, .s-aviso, .s-sucesso { padding: 12px 14px; border-radius: 12px; margin: 14px 0; font-weight: 600; }
.s-erro { background: #FFF1F2; color: #9F1239; } .s-aviso { background: #FFFBEB; color: #92400E; } .s-sucesso { background: #ECFDF5; color: #065F46; }

.s-ok { text-align: center; margin-top: 24px; padding: 30px 20px; }
.s-ok-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 34px; display: grid; place-items: center; box-shadow: var(--brilho); }
.s-ok h1 { margin: 0 0 8px; } .s-ok .s-btn { display: block; margin: 16px auto 8px; max-width: 340px; }
.s-valor-final b { font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; color: #4F46E5; }

/* acompanhamento */
.s-busca-os { margin-top: 24px; } .s-busca-os h1 { margin-top: 0; }
.s-os { margin-top: 18px; } .s-os h1 { margin: 6px 0; font-size: 1.5rem; }
.s-os-topo { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.s-os-num { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #4F46E5; }
.s-st { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.s-st-azul { background: #E0F2FE; color: #075985; } .s-st-roxo { background: #EDE9FE; color: #5B21B6; } .s-st-amarelo { background: #FEF3C7; color: #92400E; }
.s-st-verde { background: #DCFCE7; color: #166534; } .s-st-cinza { background: #F1F5F9; color: #475569; } .s-st-vermelho { background: #FFE4E6; color: #9F1239; }
.s-msg { font-size: 1.05rem; }
.s-etapas { list-style: none; display: flex; padding: 0; margin: 18px 0 6px; counter-reset: e; }
.s-etapas li { flex: 1; text-align: center; font-size: .75rem; color: var(--texto2); position: relative; }
.s-etapas li span { display: block; width: 16px; height: 16px; margin: 0 auto 6px; border-radius: 50%; background: var(--linha); position: relative; z-index: 1; }
.s-etapas li::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--linha); }
.s-etapas li:first-child::before { display: none; }
.s-etapas li.feito span, .s-etapas li.agora span { background: var(--grad); } .s-etapas li.feito::before, .s-etapas li.agora::before { background: #818CF8; }
.s-etapas li.agora { color: var(--tinta); font-weight: 700; } .s-etapas li.agora span { box-shadow: 0 0 0 5px rgba(99,102,241,.2); }
.s-garantia { background: #ECFDF5; color: #065F46; padding: 10px 12px; border-radius: 12px; }
.s-itens { list-style: none; padding: 0; margin: 0; } .s-itens li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linha); }
.s-itens-total { border-bottom: 0 !important; font-size: 1.2rem; } .s-itens-total b { font-family: "Space Grotesk", sans-serif; color: #4F46E5; }
.s-aprovar { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 14px; }
.s-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; } .s-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.s-hist { list-style: none; padding: 0; margin: 0; } .s-hist li { padding: 8px 0 8px 14px; border-left: 2px solid #C7CDF9; } .s-hist small { display: block; color: var(--texto2); font-size: .75rem; }
.s-loja .s-btn { display: block; }

.s-rodape { max-width: 860px; margin: 0 auto; padding: 20px 16px 120px; color: var(--texto2); font-size: .85rem; display: grid; gap: 8px; }
.s-lojas { display: grid; gap: 4px; } .s-rodape a { color: var(--texto2); }

@media (max-width: 560px) {
  .s-grade { grid-template-columns: 1fr; }
  .s-acomp { font-size: .78rem; padding: 6px 10px; }
  .s-aprovar { grid-template-columns: 1fr; }
}
.s-escolhido { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #EEF0FF; border: 1.5px solid #818CF8; }
.s-escolhido .s-link { margin: 0; }
#achados { margin-top: 10px; }
.s-navegar { margin-top: 12px; } .s-navegar summary { cursor: pointer; color: #4F46E5; font-weight: 600; }
.s-navegar .s-chips { margin-top: 10px; }
.s-livre { margin-top: 14px; }
.s-btn-bloco { display: block; width: 100%; margin-top: 4px; }
.s-main { padding-bottom: 40px; }
[hidden] { display: none !important; }

/* ---------- App do cliente: convite, sininho e caixa de avisos ---------- */
.convite-app, .convite-avisos { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 440px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; background: var(--escuro); color: #E8ECF8; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 10px 10px 10px 14px;
  box-shadow: 0 18px 40px rgba(7,11,26,.45); font-size: .88rem; line-height: 1.3; animation: sobe .35s ease; }
.convite-app img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.convite-app span, .convite-avisos span:nth-child(2) { flex: 1; }
.convite-app span b:first-child, .convite-avisos span b:first-child { display: block; font-size: .95rem; }
.convite-sino { font-size: 1.6rem; }
.convite-instalar, .convite-ativar { border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 800; background: var(--grad); color: #fff; cursor: pointer; }
.convite-x { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #8A94B4; cursor: pointer; padding: 4px 6px; }
@keyframes sobe { from { transform: translateY(30px); opacity: 0; } }
.modo-app body { -webkit-user-select: none; user-select: none; } .modo-app input, .modo-app textarea { -webkit-user-select: text; user-select: text; }
.s-icones { display: flex; align-items: center; gap: 6px; }
.sino { position: relative; display: flex; padding: 7px; color: #E8ECF8; text-decoration: none; border-radius: 999px; }
.sino svg { width: 22px; height: 22px; }
.sino-n { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: #F43F5E; color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--escuro); }
.sino.tem svg { animation: balanca 1.6s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes balanca { 0%,100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-4deg); } }
.avisos-chamada { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--linha); border-left: 4px solid #6366F1; border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.avisos-chamada p { margin: 0; flex: 1 1 220px; } .avisos-chamada .avisos-msg { flex-basis: 100%; font-size: .88rem; color: var(--texto2); }
.avisos-chamada.feito button { display: none; } .avisos-ativos .avisos-chamada:not(.feito) { display: none; }
.avisos-chamada .s-btn { padding: 10px 16px; }
.msg-lista { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.msg { display: flex; gap: 12px; background: #fff; border: 1px solid var(--linha); border-radius: 16px; padding: 14px; text-decoration: none; color: inherit; position: relative; }
.msg.nova { box-shadow: 0 0 0 2px #6366F1; } .msg.nova::after { content: "Nova"; position: absolute; top: 10px; right: 12px; background: var(--grad); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.msg-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #EEF0FF; font-size: 1.3rem; } .msg-ico.os { background: #ECFEFF; }
.msg b { display: block; padding-right: 44px; } .msg p { margin: 2px 0 4px; color: var(--texto2); font-size: .92rem; } .msg small { color: #999; }
.msg img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-top: 8px; }
.msg-vazio { text-align: center; color: var(--texto2); padding: 30px 10px; }
.avisos-perdidos { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; background: #fff4d6; border: 1px solid #f1d27a; border-radius: 14px; padding: 10px 10px 10px 14px; font-size: .88rem; color: #5c4400; }
.avisos-perdidos span:nth-child(2) { flex: 1; } .avisos-perdidos span b:first-child { display: block; }
.meus-lista { display: grid; gap: 10px; } .meu-item { display: block; text-decoration: none; color: inherit; }
.meu-item .s-st { float: right; }

/* formulário enxuto */
.s-form { max-width: 480px; margin: 16px auto 0; }
.s-form h1 { margin: 0 0 4px; }
.s-form form { display: grid; gap: 12px; margin-top: 14px; }
.s-form label { display: grid; gap: 4px; font-weight: 600; }