:root {
  --bg: #061b25;
  --bg-dark: #020a0e;
  --blue: #003047;
  --blue-2: #082633;
  --blue-3: #0d3445;
  --offwhite: #f1eee6;
  --concrete: #a7a49d;
  --muted: #b8b8b0;
  --text: #ffffff;
  --soft: rgba(255, 255, 255, 0.72);
  --border: rgba(241, 238, 230, 0.16);
  --border-strong: rgba(241, 238, 230, 0.28);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  padding-top: calc(28px + env(safe-area-inset-top));
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at top left, rgba(241, 238, 230, 0.10), transparent 28%),
    linear-gradient(180deg, #082c3c 0%, #061b25 38%, #020a0e 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.page {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px 36px;
}

/* HEADER */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(241, 238, 230, 0.96), rgba(198, 198, 190, 0.88)),
    radial-gradient(circle at top right, rgba(0, 48, 71, 0.18), transparent 45%);
  border: 1px solid rgba(241, 238, 230, 0.35);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow);
  color: var(--blue);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, transparent 58%, rgba(0, 48, 71, 0.08) 58%, rgba(0, 48, 71, 0.08) 100%);
  pointer-events: none;
}

/* LOGO COM BLOCO E NEON */

.brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6f7f86;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: visible;
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -15px;
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle, rgba(0, 169, 255, 0.34) 0%, rgba(0, 169, 255, 0.18) 35%, rgba(0, 169, 255, 0.08) 55%, transparent 76%);
  filter: blur(15px);
  opacity: 0.85;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: none;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--blue);
}

.hero-text {
  margin: 10px 0 0;
  color: rgba(0, 48, 71, 0.82);
  font-size: 14px;
  line-height: 1.35;
  max-width: 650px;
}

/* TABS */

.tabs-wrap {
  margin-top: 18px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tab-btn {
  appearance: none;
  min-height: 62px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(13, 52, 69, 0.92), rgba(6, 27, 37, 0.96));
  color: var(--offwhite);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: 0.2s ease;
}

.tab-btn:active {
  transform: scale(0.98);
}

.tab-btn.active {
  background:
    linear-gradient(180deg, #fff8ee, var(--offwhite));
  color: var(--blue);
  border-color: rgba(241, 238, 230, 0.8);
  box-shadow: 0 14px 40px rgba(241, 238, 230, 0.12);
}

/* CONTENT */

.content {
  margin-top: 18px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background:
    linear-gradient(180deg, rgba(13, 52, 69, 0.94), rgba(6, 27, 37, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-header {
  margin-bottom: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(241, 238, 230, 0.2);
  background: rgba(241, 238, 230, 0.06);
  color: var(--offwhite);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-header h2 {
  margin: 14px 0 8px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.card-header p {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}

/* FORMS */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--offwhite);
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(241, 238, 230, 0.18);
  background: rgba(2, 10, 14, 0.52);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: 0.2s ease;
}

input::placeholder {
  color: rgba(241, 238, 230, 0.44);
}

input:focus,
select:focus {
  border-color: rgba(241, 238, 230, 0.52);
  background: rgba(2, 10, 14, 0.72);
  box-shadow: 0 0 0 4px rgba(241, 238, 230, 0.05);
}

select {
  appearance: auto;
}

/* BUTTONS */

.primary-btn {
  width: 100%;
  min-height: 62px;
  margin-top: 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8ee, var(--offwhite));
  color: var(--blue);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  transition: 0.2s ease;
}

.primary-btn:active {
  transform: scale(0.98);
}

/* RESULT */

.result-card {
  background:
    linear-gradient(180deg, rgba(13, 52, 69, 0.96), rgba(5, 23, 32, 0.98));
}

.result-empty h3,
.result-box h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.result-empty p {
  margin: 0;
  color: var(--soft);
  line-height: 1.5;
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(241, 238, 230, 0.14);
  background: rgba(2, 10, 14, 0.34);
}

.result-label {
  color: var(--muted);
  font-size: 14px;
}

.result-value {
  color: var(--offwhite);
  font-size: 16px;
  font-weight: 900;
  text-align: left;
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

/* CTAS */

.cta-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.whatsapp-btn,
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: 100%;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  transition: 0.2s ease;
}

.whatsapp-btn {
  background: linear-gradient(180deg, #218c4a, #146b36);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.store-btn {
  background: rgba(2, 10, 14, 0.34);
  color: var(--offwhite);
  border: 1px solid rgba(241, 238, 230, 0.2);
}

.whatsapp-btn:active,
.store-btn:active {
  transform: scale(0.98);
}

/* CAMPOS DINÂMICOS - PAREDES E VÃOS */

.calc-section {
  margin-bottom: 24px;
}

.section-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.section-title-row h3 {
  margin: 0;
  color: var(--offwhite);
  font-size: 18px;
  line-height: 1.2;
}

.helper-text {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.dynamic-list {
  display: grid;
  gap: 12px;
}

.dynamic-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(241, 238, 230, 0.14);
  background: rgba(2, 10, 14, 0.28);
}

.dynamic-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.dynamic-card-title {
  color: var(--offwhite);
  font-size: 14px;
  font-weight: 900;
}

.remove-btn {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--offwhite);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.inline-grid,
.inline-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.secondary-btn,
.mini-btn {
  border: 1px solid rgba(241, 238, 230, 0.22);
  background: rgba(241, 238, 230, 0.08);
  color: var(--offwhite);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.secondary-btn {
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.mini-btn {
  min-height: 38px;
  padding: 0 10px;
}

.dynamic-card input,
.dynamic-card select {
  min-height: 50px;
  font-size: 14px;
}

.dynamic-card label {
  font-size: 12px;
}

@media (min-width: 520px) {
  .page {
    max-width: 430px;
  }
}