:root{color-scheme:light;--ink:#12294f;--green:#145b9a;--paper:#f5f9fe;--line:#d7e4f2;--muted:#445979;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box} [hidden]{display:none!important} body{margin:0} a{color:var(--green)} button,input,select,textarea{font:inherit} :focus-visible{outline:3px solid #987027;outline-offset:3px} .wrap{width:min(1120px,calc(100% - 36px));margin:auto}.top,.foot{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 0}.brand{display:block;width:clamp(115px,22vw,165px);flex:none}.brand img{display:block;width:100%;height:auto;border-radius:12px}.outline,.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:11px;padding:12px 16px;font-weight:750;text-decoration:none}.outline{border:1px solid #96b5d7}.button{background:var(--green);color:#fff;border:0;min-height:46px;cursor:pointer}.button:hover{background:#123469}.hero{background:#e3f1ff;border-radius:25px;display:grid;grid-template-columns:1.12fr .88fr;align-items:center;padding:clamp(23px,5vw,60px);gap:18px}.hero-visual{display:grid;place-items:center;min-width:0;background:radial-gradient(circle closest-side,#b7ddff 0 82%,transparent 83%)}.hero-art{display:block;width:100%;height:clamp(260px,36vw,385px);object-fit:contain;filter:drop-shadow(0 12px 10px #12346929)}.tag{font-size:.72rem;font-weight:850;letter-spacing:.13em;color:var(--green);margin:0 0 8px}h1,h2{letter-spacing:-.045em;line-height:1.03;margin:0}h1{font-size:clamp(2.6rem,6.2vw,5rem)}h2{font-size:clamp(2rem,4vw,3.35rem);margin-bottom:19px}h3{margin:0 0 10px;font-size:1.2rem}.hero p:not(.tag){max-width:34ch;line-height:1.55;color:#344f73}.section{padding-top:clamp(38px,7vw,80px);scroll-margin-top:12px}.offers{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.offer,.panel{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px}.offer{display:flex;flex-direction:column}.offer p:not(.tag){margin:8px 0 0;font-size:.92rem}.offer .detail,.muted{color:var(--muted);font-size:.88rem;line-height:1.45}.price{font-size:clamp(1.6rem,3.4vw,2.4rem);line-height:1.1;letter-spacing:-.05em}.unit{font-size:.84rem;margin:4px 0}.offer-link{display:block;font-weight:800;margin-top:auto;padding-top:14px;text-underline-offset:3px}form{display:grid;gap:12px}.pieces,.fields,.summary{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.piece{display:flex;align-items:center;justify-content:space-between;min-height:53px;gap:8px;border-top:1px solid var(--line);padding:7px 0}.piece small{display:block;color:var(--muted)}.piece input[type=number]{width:68px}.measured{flex-wrap:wrap}.measured label{flex:1 0 100%}.panel label{font-weight:620;font-size:.94rem}.fields label{display:grid;gap:6px;align-content:start}.wide{grid-column:1/-1}input,select,textarea{border:1px solid #9eb7d4;border-radius:9px;padding:9px 10px;min-height:44px;color:var(--ink);background:#fff;max-width:100%}.panel>select{display:block;margin-top:6px;width:min(100%,400px)}.summary{background:#e5f1ff;align-items:center}.total{font-size:2.25rem;font-weight:850;letter-spacing:-.05em;margin:0}.summary p{margin:4px 0}.error{color:#8b261e;font-weight:700;font-size:.9rem}.error:empty{display:none}.faq{margin-bottom:55px}.faq details{border-bottom:1px solid var(--line);padding:14px 0}.faq summary{cursor:pointer;font-weight:750}footer{background:#e3f1ff}.foot{flex-wrap:wrap}
@media(max-width:850px){.offers{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.hero{grid-template-columns:1fr}.hero-art{height:230px}.piece{font-size:.9rem}.pieces,.fields,.summary{grid-template-columns:1fr}.offer,.panel{padding:14px}.offer h3{font-size:1rem}.summary .button{width:100%}.wrap{width:calc(100% - 28px)}}@media(max-width:350px){.offers{grid-template-columns:1fr}}

.hero h1 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
.add-piece { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.add-piece-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.add-piece-fields input { flex: 1 1 190px; min-width: 0; }
button.outline { background: #fff; color: var(--green); cursor: pointer; }
.panel details summary { cursor: pointer; font-weight: 700; }
.panel details .fields { margin-top: 12px; }

.account-panel { margin-top: 12px; }
.account-fields { border: 0; padding: 0; margin: 12px 0; min-width: 0; }
.account-fields .button { justify-self: start; }
.account-fields :disabled { cursor: not-allowed; }
.account-fields button:disabled { opacity: .65; }
.account-panel summary strong { color: var(--green); text-decoration: underline; }

.service-panel { background: #123469; border-color: #123469; color: #fff; }
.service-panel .muted { color: #dfedff; }
.service-panel > select { width: 100%; font-weight: 700; }

#admin-orders, #client-order-list { display: grid; gap: 20px; }
.order-slip { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.order-slip-head { background: #123469; color: #fff; padding: 20px; }
.order-slip-head .tag { color: #d0e8ff; }
.order-slip-head h2 { margin: 0 0 12px; font-size: clamp(1.55rem, 4vw, 2.3rem); line-height: 1.1; }
.order-badge { display: inline-block; margin: 0; padding: 5px 10px; border-radius: 999px; background: #e6f2ff; color: #153862; font-size: .84rem; font-weight: 700; }
.order-badge[data-state="cancelado"] { background: #fce7e5; color: #83251c; }
.order-badge[data-state="entregue"] { background: #dcf4e7; color: #175539; }
.order-slip-body { display: grid; gap: 18px; padding: 18px; }
.order-contacts, .order-payment { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-contacts section, .order-payment { border-radius: 12px; padding: 12px; background: #f0f6fd; overflow-wrap: anywhere; }
.order-slip h3, .order-slip-body p { margin: 0; }
.order-slip-body h3 { margin-bottom: 5px; font-size: .9rem; }
.order-items { width: 100%; border-collapse: collapse; }
.order-items caption { text-align: left; font-weight: 800; margin-bottom: 8px; }
.order-items th, .order-items td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.order-items tr > :last-child { text-align: right; }
.order-items tfoot { font-weight: 800; }
.order-payment strong { display: block; font-size: clamp(1.4rem, 5vw, 1.9rem); }
.order-payment > :last-child { align-self: center; text-align: right; }
.order-actions { display: grid; gap: 8px; }
.order-actions .order-cancel { justify-self: start; margin-top: 4px; color: #83251c; border-color: #dcb4b0; }
.order-actions button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 520px) {
  .order-contacts { grid-template-columns: 1fr; }
  .order-slip-body, .order-slip-head { padding: 14px; }
}
.order-plan { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.order-balance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.order-balance div { padding: 8px; background: #f0f6fd; border-radius: 8px; }
.order-balance dt { font-size: .8rem; }
.order-balance dd { margin: 0; font-size: 1.3rem; font-weight: 800; }
.order-plan details { margin-top: 12px; }
.order-plan summary { cursor: pointer; font-weight: 700; }
.order-editor { border-top: 1px solid var(--line); padding-top: 12px; }
.order-editor summary { color: var(--green); cursor: pointer; font-weight: 750; padding: 8px 0; }
.order-edit-fields { display: grid; gap: 6px; }
.order-edit-fields label { display: grid; grid-template-columns: 1fr 78px; gap: 8px; align-items: center; }
.order-edit-fields input { width: 100%; }
.order-actions fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0; padding: 8px 12px; min-width: 0; }
.order-actions legend { font-weight: 750; }
.order-check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.order-check input { min-height: 0; width: 20px; height: 20px; accent-color: #155b9b; }
.order-actions textarea { display: block; width: 100%; margin-top: 6px; resize: vertical; }
.order-actions [data-action-status]:empty { display: none; }

.admin-order-confirm { min-height: 44px; padding-inline: 16px; border: 0; background: #ffe299; color: #362a0a; cursor: pointer; }
.admin-order-confirm:disabled { opacity: .65; cursor: wait; }
.admin-order-details { border-top: 1px solid var(--line); }
.admin-order-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--green); cursor: pointer; font-weight: 750; list-style: none; }
.admin-order-details > summary::-webkit-details-marker { display: none; }
.admin-order-details > summary::after { content: ''; width: .52em; height: .52em; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.admin-order-details[open] > summary::after { transform: rotate(225deg); }
.admin-order-details-body { display: grid; gap: 18px; padding-top: 8px; }
.order-slip-body > [data-action-status]:empty { display: none; }

.service-coupon { display: grid; gap: 6px; margin-top: 14px; }
.service-coupon input { width: 100%; }
.service-coupon input:disabled { background: #dce1e8; color: #475569; opacity: 1; cursor: not-allowed; }
.service-coupon input:disabled::placeholder { color: #475569; }
#coupon-help { margin: 6px 0 0; }
.admin-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0; }
.contacts-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.contacts-search label { display: grid; gap: 6px; flex: 1 1 230px; }
.contacts-search input, .contacts-search select { width: 100%; }
.funnel-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 18px 0; }
.funnel-metrics div { display: grid; gap: 6px; padding: 16px; background: #e5f1ff; border-radius: 14px; border-top: 4px solid #145b9a; }
.funnel-metrics strong { font-size: 2rem; }
.contacts-list { display: grid; gap: 16px; }
.contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; overflow-wrap: anywhere; }
.contact-card h3 { margin-top: 0; }
.contact-card p { margin: 10px 0; }
.contact-card a { display: inline-block; margin-right: 10px; }
.contact-card p a:not(:first-child) { margin-left: 12px; }
.registration-consents { display: grid; gap: 8px; margin: 8px 0; color: var(--muted); font-size: .82rem; }
.registration-consents label { display: flex; align-items: center; gap: 8px; font-weight: 400; min-height: 32px; }
.registration-consents input { flex: 0 0 17px; width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--green); }


/* Melhor legibilidade do seletor de planos no celular e desktop. */
.service-panel > select#service {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Crect width='44' height='44' rx='11' fill='%23e7f2ff'/%3E%3Cpath d='M12 18l10 10 10-10' fill='none' stroke='%23123469' stroke-width='3.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 44px 44px;
  min-height: 60px;
  padding-right: 76px;
  cursor: pointer;
}
.service-panel > select#service:focus-visible {
  outline: 3px solid #86b8ea;
  outline-offset: 3px;
}
