:root {
  --blue: #1552ad;
  --blue-700: #0e428e;
  --blue-50: #eef5ff;
  --yellow: #e6c43d;
  --yellow-soft: #fff8d9;
  --ink: #1b2430;
  --muted: #697586;
  --muted-2: #8993a2;
  --line: #e6e9ee;
  --line-strong: #d8dde5;
  --surface: #ffffff;
  --canvas: #f6f7f9;
  --success: #168a62;
  --success-soft: #ecf9f4;
  --danger: #b94a55;
  --shadow: 0 18px 50px rgba(18, 35, 58, .08);
  --shadow-soft: 0 8px 28px rgba(18, 35, 58, .06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(21,82,173,.055), transparent 30%),
    linear-gradient(180deg, #fafbfc 0, var(--canvas) 420px, var(--canvas) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(21,82,173,.22);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(222,226,232,.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand-logo {
  width: 46px; height: 46px; object-fit: cover; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(21,82,173,.16); border: 1px solid rgba(21,82,173,.15);
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-copy strong { font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand-copy strong span { color: var(--yellow); }
.brand-copy small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.header-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  color: #4f5b6b; font-size: 12px; font-weight: 650;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22,138,98,.11); }

.page-main { padding: 56px 0 72px; }
.hero { max-width: 760px; margin-bottom: 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-weight: 750; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 3px; border-radius: 99px; background: var(--yellow); }
.hero h1 { margin: 12px 0 12px; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.048em; font-weight: 780; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 680px; }

.simulator-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr); gap: 26px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.builder-panel { padding: 28px; }
.panel-heading, .summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2, .summary-head h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.025em; }
.step-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--blue); }
.secure-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.secure-note svg { width: 15px; fill: var(--success); }
.section-heading { margin-top: 0; }
.form-divider { height: 1px; background: var(--line); margin: 28px 0; }
.form-section { margin-top: 20px; }
.compact-section { margin-top: 18px; }
.field-label { display: block; color: #475466; font-size: 12px; font-weight: 750; margin-bottom: 8px; }

.search-wrap { margin-top: 20px; position: relative; }
.search-box {
  min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,82,173,.08); }
.search-box > svg { width: 21px; fill: #7a8594; flex: 0 0 auto; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 14px; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #9aa3af; }
.clear-search { border: 0; background: #f1f3f6; color: #667180; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.search-results {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0;
  max-height: 340px; overflow: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 18px 48px rgba(15,29,49,.15); padding: 7px;
}
.search-item { width: 100%; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px; text-align: left; color: inherit; }
.search-item:hover, .search-item[aria-selected="true"] { background: var(--blue-50); }
.search-item-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #f1f5fa; color: var(--blue); font-size: 13px; font-weight: 800; flex: 0 0 auto; }
.search-item-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.search-item-copy strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-copy small { color: var(--muted); font-size: 11px; }
.no-results { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 13px; }

.selected-equipment { margin-top: 18px; display: flex; align-items: center; gap: 12px; background: linear-gradient(180deg, #f8fbff, #f3f8ff); border: 1px solid #dbe9fb; border-radius: 15px; padding: 13px 14px; }
.equipment-icon { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid #dce9fa; display: grid; place-items: center; flex: 0 0 auto; }
.equipment-icon svg { width: 22px; fill: var(--blue); }
.selected-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.selected-copy span { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.selected-copy strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selected-copy small { color: var(--muted); font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 750; cursor: pointer; padding: 6px 4px; }
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: var(--danger); }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented button { border: 1px solid var(--line-strong); background: #fff; color: #4e5968; border-radius: 11px; padding: 10px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.segmented button.active { color: var(--blue); border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }

.period-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.period-option { min-height: 67px; padding: 11px 8px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; color: #475466; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; transition: all .17s ease; }
.period-option span { font-size: 12.5px; font-weight: 760; }
.period-option small { color: var(--muted-2); font-size: 10px; }
.period-option:hover { transform: translateY(-1px); border-color: #aeb9c8; box-shadow: var(--shadow-soft); }
.period-option.active { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 8px 20px rgba(21,82,173,.08); background: var(--blue-50); color: var(--blue); }
.period-option.active small { color: #567cb2; }
.quantity-row { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quantity-row .field-label { margin-bottom: 3px; }
.quantity-row p { margin: 0; color: var(--muted); font-size: 11.5px; }
.stepper { height: 42px; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { border: 0; width: 40px; height: 100%; background: #f7f8fa; color: var(--blue); font-size: 20px; cursor: pointer; }
.stepper input { width: 48px; height: 100%; border: 0; text-align: center; outline: 0; color: var(--ink); font-weight: 750; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.quote-box { margin-top: 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg,#fbfcfe,#f8fafc); overflow: hidden; min-height: 112px; }
.quote-empty { min-height: 112px; display: flex; align-items: center; gap: 13px; padding: 18px; }
.quote-empty-icon { width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center; background: #f0f3f7; }
.quote-empty-icon svg { width: 22px; fill: #8792a1; }
.quote-empty > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.quote-empty strong { font-size: 13px; }
.quote-empty span { color: var(--muted); font-size: 11.5px; }
.quote-loading { min-height: 112px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.loader { width: 18px; height: 18px; border: 2px solid #dce4ef; border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.quote-result { padding: 19px; }
.quote-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 650; }
.best-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--yellow-soft); color: #765e00; border: 1px solid #f1df8a; border-radius: 999px; padding: 5px 8px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.quote-price { margin-top: 7px; font-size: 32px; line-height: 1; letter-spacing: -.04em; font-weight: 820; color: var(--blue); }
.quote-unit { margin-top: 6px; color: var(--muted); font-size: 11px; }
.advantage-note { margin-top: 14px; border-left: 3px solid var(--yellow); background: #fffdf4; border-radius: 0 10px 10px 0; padding: 10px 12px; color: #5f5b48; font-size: 11.5px; line-height: 1.5; }
.breakdown-details { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 11px; }
.breakdown-details summary { cursor: pointer; list-style: none; color: #556172; font-size: 11.5px; font-weight: 720; display: flex; align-items: center; justify-content: space-between; }
.breakdown-details summary::-webkit-details-marker { display: none; }
.breakdown-details summary::after { content: "+"; color: var(--blue); font-size: 16px; }
.breakdown-details[open] summary::after { content: "−"; }
.breakdown-list { padding-top: 9px; display: grid; gap: 7px; }
.breakdown-row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.breakdown-row strong { color: #475466; font-weight: 700; }
.shorter-option { margin-top: 12px; width: 100%; border: 1px dashed #cfd6df; background: #fff; color: #536071; border-radius: 10px; padding: 9px 11px; cursor: pointer; font-size: 10.5px; text-align: left; }
.shorter-option:hover { border-color: var(--blue); color: var(--blue); }

.primary-button { margin-top: 14px; width: 100%; min-height: 52px; border: 0; border-radius: 13px; background: var(--blue); color: white; font-weight: 780; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 10px 24px rgba(21,82,173,.20); transition: transform .17s ease, background .17s ease, box-shadow .17s ease; }
.primary-button svg { width: 18px; fill: currentColor; }
.primary-button:hover:not(:disabled) { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(21,82,173,.24); }
.primary-button:disabled { background: #c8ced7; box-shadow: none; cursor: not-allowed; }

.trust-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; }
.trust-strip > div { display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: #5c6877; }
.trust-strip > div > span { width: 24px; height: 24px; border-radius: 50%; background: #eaf7f2; color: var(--success); display: grid; place-items: center; font-size: 11px; font-weight: 850; }
.trust-strip p { margin: 0; display: flex; flex-direction: column; gap: 1px; }
.trust-strip strong { font-size: 10.5px; }
.trust-strip small { font-size: 9.5px; color: var(--muted-2); }

.summary-column { position: sticky; top: 106px; }
.summary-panel { padding: 24px; }
.summary-empty { padding: 40px 12px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.empty-illustration { width: 68px; height: 68px; border-radius: 22px; background: #f3f5f8; display: grid; place-items: center; margin-bottom: 14px; }
.empty-illustration svg { width: 29px; fill: #9ca6b2; }
.summary-empty strong { font-size: 13px; }
.summary-empty p { max-width: 260px; margin: 7px auto 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.cart-items { margin-top: 18px; display: grid; gap: 10px; }
.cart-item { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 13px 38px 13px 13px; background: #fff; }
.cart-item-title { font-size: 12px; font-weight: 780; line-height: 1.35; }
.cart-item-meta { margin-top: 4px; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; }
.cart-item-bottom span { color: var(--muted); font-size: 9.5px; }
.cart-item-bottom strong { font-size: 15px; color: var(--blue); letter-spacing: -.02em; }
.remove-item { position: absolute; top: 9px; right: 9px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: #f4f5f7; color: #7b8593; cursor: pointer; font-size: 15px; }
.remove-item:hover { background: #ffeff0; color: var(--danger); }
.add-more { margin-top: 12px; width: 100%; border: 1px dashed #cdd4de; border-radius: 12px; padding: 11px; background: #fff; color: #586575; font-size: 11px; font-weight: 700; cursor: pointer; }
.add-more span { color: var(--blue); font-size: 16px; vertical-align: -1px; margin-right: 4px; }
.add-more:hover { border-color: var(--blue); color: var(--blue); }
.summary-total { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.summary-total > div { display: flex; flex-direction: column; gap: 3px; }
.summary-total span { font-size: 11.5px; font-weight: 720; }
.summary-total small { color: var(--muted); font-size: 9.5px; }
.summary-total strong { font-size: 24px; letter-spacing: -.04em; color: var(--ink); }
.summary-notice { margin-top: 16px; background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 11px; display: flex; gap: 8px; }
.summary-notice svg { width: 16px; height: 16px; fill: #7a8594; flex: 0 0 auto; margin-top: 1px; }
.summary-notice p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.summary-notice strong { color: #515c6b; }
.whatsapp-button { margin-top: 14px; min-height: 49px; width: 100%; border: 0; border-radius: 12px; background: #1d9c68; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 780; font-size: 12px; cursor: pointer; box-shadow: 0 9px 22px rgba(29,156,104,.16); }
.whatsapp-button svg { width: 18px; fill: currentColor; }
.whatsapp-button:hover { background: #16865a; }
.reservation-note { margin: 9px 0 0; color: var(--muted-2); text-align: center; font-size: 9px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-2); font-size: 10px; }
.mobile-total-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #17202b; color: #fff; border-radius: 11px; padding: 11px 14px; font-size: 11.5px; font-weight: 650; box-shadow: 0 12px 30px rgba(0,0,0,.18); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 920px) {
  .simulator-grid { grid-template-columns: 1fr; }
  .summary-column { position: static; }
  .period-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { margin-bottom: 8px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .site-header { height: 68px; }
  .brand-logo { width: 39px; height: 39px; border-radius: 12px; }
  .brand-copy strong { font-size: 12.5px; }
  .brand-copy small { font-size: 9.5px; }
  .header-badge { display: none; }
  .page-main { padding: 35px 0 112px; }
  .hero { margin-bottom: 24px; }
  .hero h1 { font-size: 34px; line-height: 1.05; margin-top: 10px; }
  .hero p { font-size: 13.5px; line-height: 1.58; }
  .builder-panel, .summary-panel { padding: 20px; border-radius: 20px; }
  .panel-heading h2, .summary-head h2 { font-size: 18px; }
  .secure-note { display: none; }
  .search-box { min-height: 54px; }
  /* Evita o zoom automático do iOS/Safari ao focar a busca, sem bloquear o zoom manual do usuário. */
  .search-box input { font-size: 16px !important; line-height: 1.25; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
  .search-results { position: fixed; left: 12px; right: 12px; top: 76px; max-height: min(62vh, 430px); }
  .period-grid { grid-template-columns: repeat(2, 1fr); }
  .period-option { min-height: 62px; }
  .quantity-row { align-items: flex-end; }
  .quote-price { font-size: 29px; }
  .trust-strip { grid-template-columns: 1fr; gap: 2px; }
  .trust-strip > div { padding: 6px 7px; }
  .summary-column { scroll-margin-top: 82px; }
  .footer-inner { flex-direction: column; justify-content: center; gap: 4px; text-align: center; padding: 16px 0; }
  .mobile-total-bar {
    position: fixed; z-index: 50; bottom: 0; left: 0; right: 0; min-height: 74px;
    padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: rgba(255,255,255,.95); border-top: 1px solid var(--line); backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: space-between; gap: 14px; box-shadow: 0 -10px 30px rgba(15,29,49,.08);
  }
  .mobile-total-bar > div { display: flex; flex-direction: column; gap: 2px; }
  .mobile-total-bar small { color: var(--muted); font-size: 9.5px; }
  .mobile-total-bar strong { font-size: 18px; letter-spacing: -.02em; }
  .mobile-total-bar button { border: 0; border-radius: 11px; min-height: 43px; padding: 0 16px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 750; }
  .toast { bottom: 92px; max-width: calc(100% - 32px); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .001ms !important; }
}
