﻿:root {
  --bg-main: #043052;
  --bg-card: #f5f7f9;
  --accent: #1c5d8c;
  --accent-soft: #4db5ff;
  --text-main: #0f172a;
  --text-light: #e5e7eb;
  --radius-lg: 18px;
  --radius-md: 12px;
}

body[data-theme="install"] {
  --bg-main: #043052;
  --accent: #1c5d8c;
  --accent-soft: #4db5ff;
}

body[data-theme="clean"] {
  --bg-main: #0f5c3c;
  --accent: #1b8a5a;
  --accent-soft: #4ade80;
}

body[data-theme="maint"] {
  --bg-main: #7c3412;
  --accent: #c05621;
  --accent-soft: #f6ad55;
}

body[data-theme="other"] {
  --bg-main: #4c1d95;
  --accent: #6b21a8;
  --accent-soft: #c084fc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
  color: var(--text-main);
}

.app-container {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.logo-mark {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--accent);
}

.menu-button {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.screen {
  display: none;
  padding: 20px 20px 80px;
}

.screen-active {
  display: block;
}

.hero {
  margin-bottom: 16px;
}

.hero-pill {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(28, 93, 140, 0.3);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
}

.hero-pill--soft {
  background: rgba(28, 93, 140, 0.08);
  border-color: transparent;
}

.hero-title--small {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 6px;
  font-weight: 600;
}

.hero-subtitle--strong {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 0;
}

.hero-title--direct {
  text-transform: none;
  max-width: 220px;
}

.hero-subtitle--short {
  max-width: 260px;
  color: #111827;
}

.hero-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--bg-main);
}

.hero-subtitle {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.hero-highlight {
  background: var(--bg-main);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.hero-highlight p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
}

.hero-highlight ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.section-title {
  font-size: 16px;
  margin: 0 0 12px;
  color: #111827;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 14px 12px;
  text-align: left;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(77, 181, 255, 0.25);
}

.card-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-text {
  font-size: 12px;
  color: #4b5563;
  margin: 0;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  border-color: var(--accent-soft);
}

.location-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.region-block {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
}

.card-region {
  width: 100%;
  border: none;
  border-radius: 0;
  background: #fff;
  font-weight: 700;
}

.card-region.active {
  border-color: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.subzone-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
}

.subzone-grid.active {
  display: grid;
}

.card-subzone {
  font-size: 13px;
}

/* CAIXA PRINCIPAL DO PRE?�O */
.price-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

/* PRE?�O PRINCIPAL */
.price-value {
  font-size: 36px;
  font-weight: 800;
  color: #043f6e;
  margin-bottom: 10px;
}

/* LINHAS DE PAGAMENTO */
.payment-options {
  margin-top: 10px;
  text-align: left;
}

.payment-line {
  font-size: 15px;
  padding: 6px 0;
  color: #333;
}

/* SETINHA DAS LINHAS */
.payment-line::before {
  content: "- ";
  color: #043f6e;
  font-weight: bold;
}

.payment-line.emphasis {
  font-weight: 700;
  color: #0f9d58; /* destaque pix */
}

.payment-line.emphasis::before {
  content: "";
}

/* LABEL */
.price-label {
  font-size: 18px;
  color: #666;
  margin-bottom: 8px;
}

.price-sub {
  margin: 4px 0 8px;
  color: #4b5563;
  font-weight: 600;
  font-size: 13px;
}

.micro-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.price-sub {
  margin: 4px 0 12px;
  color: #1f2937;
  font-weight: 600;
}


/* Formul??rio da T5 */

.form-section {
  margin-top: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-field label {
  font-size: 13px;
  margin-bottom: 4px;
  color: #374151;
}

.form-field input,
.form-field select {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(77, 181, 255, 0.3);
}

/* Bot??es */

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.primary-button,
.secondary-button {
  flex: 1;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.3);
}

.primary-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.15);
}

.secondary-button {
  background: #e5e7eb;
  color: #111827;
}

/* Rodap?? */

.app-footer {
  margin-top: auto;
  padding: 10px 20px 16px;
  border-top: 1px solid #e5e7eb;
  background: #ffffffee;
  position: sticky;
  bottom: 0;
}

.footer-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}

.footer-version {
  margin: 2px 0 0;
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
}

.hidden {
  display: none;
}

.payment-box {
  margin-top: 15px;
}

.payment-line {
  font-size: 16px;
  color: #003366;
  margin: 6px 0;
}

.info-alert {
  margin-top: 12px;
  padding: 12px;
  background: #ecfeff;
  border: 1px solid #7dd3fc;
  border-radius: 12px;
  color: #0f172a;
  font-size: 13px;
}

.info-alert p {
  margin: 6px 0 0;
  color: #334155;
}

.hi-methods {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.method-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.method-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(77, 181, 255, 0.3);
}

.method-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.method-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-recommended {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}



/* ===== UI 1.6.3 ===== */
.progress {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px 12px 12px 12px;
  margin: 10px 0 14px 0;
}

.progress-hidden {
  display: none;
}

.progress-top {
  font-size: 0.95rem;
  font-weight: 700;
}

.progress-track {
  margin-top: 8px;
  height: 10px;
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: rgba(0,0,0,.85);
  transition: width .2s ease;
}

.app-footer {
  margin-top: 18px;
  padding: 12px 0 4px 0;
  text-align: center;
  color: rgba(0,0,0,.55);
  font-size: 0.85rem;
}


#copy-message { display: none !important; }


/* ===== UI 1.6.4: Tela final em cards ===== */
.final-layout {
  display: grid;
  gap: 12px;
}

.final-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.card-title {
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 800;
}

.final-price .price-value {
  font-size: 2.25rem;
  margin: 6px 0 8px 0;
}

.final-actions {
  margin-top: 12px;
}

.final-schedule .form-section {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.final-schedule .form-field {
  margin-bottom: 10px;
}

.final-schedule input {
  width: 100%;
}

/* Resumo mais compacto */
.final-summary p {
  margin: 6px 0;
}


/* ===== UI: Tela final (mais próxima do mock) ===== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.final-screen {
  background: #f5f7f9;
  padding: 12px 12px 16px 12px;
}

.final-screen .final-top {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.06);
}

.final-title {
  margin: 0 0 12px 0;
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 850;
  color: #0b2a45;
}

.final-price-block {
  display: grid;
  gap: 6px;
}

.final-pix {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.final-pix-value {
  font-size: 2.1rem;
  font-weight: 900;
  color: #166534;
  letter-spacing: -0.01em;
}

.final-pix-suffix {
  font-size: 1rem;
  color: rgba(2, 6, 23, 0.72);
  font-weight: 650;
}

.final-card-installments {
  font-size: 1.05rem;
  color: rgba(2, 6, 23, 0.78);
  font-weight: 600;
}

.final-card-total {
  font-size: 1.02rem;
  color: rgba(2, 6, 23, 0.65);
}

.final-screen .final-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.06);
  margin-top: 12px;
}

.final-google {
  display: flex;
  align-items: center;
  gap: 10px;
}

.final-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 1.05rem;
  color: #fbbf24;
}

.final-google-text {
  font-size: 1.05rem;
  color: rgba(2, 6, 23, 0.85);
}

.final-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(2, 6, 23, 0.10);
}

.final-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.final-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(2, 6, 23, 0.85);
  font-weight: 650;
}

/* Ícone no estilo do mock: escudo verde com fundo suave */
.benefit-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
  margin-top: -2px;
}

.benefit-icon i {
  font-size: 1.25rem;
  line-height: 1;
}

/* Fallback visual caso o CDN de ícones não carregue */
.benefit-icon:empty::before {
  content: "\2713";
  font-weight: 800;
}

.final-resume-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.final-resume-text {
  color: rgba(2, 6, 23, 0.88);
  font-size: 1.05rem;
}

.final-link {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.final-link:active {
  opacity: 0.8;
}

.final-details {
  margin-top: 10px;
  border-top: 1px solid rgba(2, 6, 23, 0.10);
  padding-top: 10px;
}

.final-details.is-collapsed {
  display: none;
}

.final-details-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(2, 6, 23, 0.78);
}

.final-hint {
  margin: 14px 2px 10px 2px;
  color: rgba(2, 6, 23, 0.62);
  font-size: 1rem;
}

.final-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 999px;
  border: 0;
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(180deg, #2f6f56 0%, #1f5a45 100%);
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.20);
  cursor: pointer;
}

.final-whatsapp i {
  font-size: 1.45rem;
}

.final-whatsapp:active {
  transform: translateY(1px);
}

.final-subhint {
  margin: 10px 2px 10px 2px;
  color: rgba(2, 6, 23, 0.62);
  font-size: 1rem;
}

.final-form {
  position: relative;
}

.final-form .form-field {
  position: relative;
}

.final-form input {
  border-radius: 14px;
  padding-right: 44px;
}

.final-input-caret {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(2, 6, 23, 0.35);
  pointer-events: none;
}

.final-actions {
  margin-top: 12px;
}

.final-back {
  width: 100%;
  border: 1px solid rgba(2, 6, 23, 0.14);
  background: #ffffff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 750;
  cursor: pointer;
}
