:root {
  --brand-primary: #6a72b8;
  --brand-primary-deep: #2d315f;
  --brand-primary-soft: rgba(106, 114, 184, 0.58);
  --brand-surface: rgba(45, 49, 95, 0.58);
  --brand-surface-strong: rgba(33, 36, 74, 0.78);
  --brand-border: rgba(231, 226, 246, 0.16);
  --brand-highlight: #ebe3fb;
  --brand-accent: #d7b34a;
  --brand-accent-soft: #e5c86a;
  --brand-success: #4caf7b;
  --brand-danger: #cb6671;
  --text-main: #faf7ff;
  --text-soft: rgba(250, 247, 255, 0.8);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.26);
}

* {
  color: var(--text-main);
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #121630 0%, #1a1f45 52%, #22295a 100%);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body.modal-active {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(229, 200, 106, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(235, 227, 251, 0.14), transparent 28%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  padding: 32px 16px 48px;
}

.page-shell--wide {
  max-width: 1200px;
}

.hero-panel,
.support-panel,
.result-hero,
.result-section,
.modal.custom .modal-content {
  background: linear-gradient(180deg, rgba(106, 114, 184, 0.26), rgba(33, 36, 74, 0.64));
  border: 1px solid var(--brand-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  padding: 28px;
}

.hero-copy,
.form-panel {
  position: relative;
}

.hero-brand {
  position: absolute;
  top: 8px;
  right: 8px;
  margin-bottom: 0;
}

.hero-brand__logo {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(235, 227, 251, 0.1);
  padding: 10px;
  border: 1px solid rgba(235, 227, 251, 0.26);
  box-shadow: var(--shadow-card);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 18px 8px;
}

.eyebrow,
.panel-kicker,
.card-kicker,
.meta-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-highlight);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-hint {
  color: var(--brand-accent-soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.hero-text,
.panel-header p,
.support-panel p,
.insight-card p,
.warning-card h3,
.descricao-numero p,
.modal.custom .modal-body > p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 1.05rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-badges span,
.meta-chip {
  padding: 12px 16px;
  border: 1px solid rgba(235, 227, 251, 0.14);
  border-radius: 999px;
  background: rgba(235, 227, 251, 0.04);
}

.form-panel {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(235, 227, 251, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(235, 227, 251, 0.14);
}

.panel-header {
  margin-bottom: 22px;
}

.panel-header h2 {
  margin-bottom: 10px;
}

.form-grid,
.action-grid {
  display: grid;
  gap: 16px;
}

.form-actions {
  margin-top: 16px;
}

.field-block {
  display: grid;
  gap: 8px;
}

.form-label {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  min-height: 56px;
  border: 1px solid rgba(235, 227, 251, 0.16);
  border-radius: 18px;
  background: rgba(235, 227, 251, 0.08);
  color: var(--text-main);
  box-shadow: none;
}

.form-control::placeholder {
  color: rgba(255, 248, 255, 0.5);
}

.form-control:focus {
  border-color: rgba(229, 200, 106, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  box-shadow: 0 0 0 0.2rem rgba(229, 200, 106, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  min-height: 56px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
  line-height: 1.2;
  text-align: center;
  opacity: 1;
  color: #fff;
}

#btnEnviarDados {
  background: #5f6cff;
}

#btnEnviarDados:hover,
#btnEnviarDados:focus {
  background: #7380ff;
}

#btnEnviarDados:active {
  background: #515de8;
}

#btnLimpar,
.btnVoltar {
  background: #df4a62;
}

#btnLimpar:hover,
#btnLimpar:focus,
.btnVoltar:hover,
.btnVoltar:focus {
  background: #ef6279;
}

#btnLimpar:active,
.btnVoltar:active {
  background: #cf3d54;
}

.mensagem-whatsapp {
  background: #1fbf6b;
}

.mensagem-whatsapp:hover,
.mensagem-whatsapp:focus {
  background: #31d37f;
}

.mensagem-whatsapp:active {
  background: #179f58;
}

.support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 24px 28px;
}

.support-panel h2 {
  margin-bottom: 10px;
}

.result-layout {
  display: grid;
  gap: 22px;
}

.result-hero,
.result-section {
  padding: 28px;
}

.result-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.result-hero__top > div {
  min-width: 0;
}

.result-brand {
  flex-shrink: 0;
  margin-left: 14px;
}

.result-brand__logo {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(235, 227, 251, 0.1);
  padding: 10px;
  border: 1px solid rgba(235, 227, 251, 0.26);
  box-shadow: var(--shadow-card);
}

.result-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.btn-back-inline {
  min-width: 140px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.meta-chip {
  min-width: 220px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.meta-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-main);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta-chip .meta-label {
  color: var(--brand-accent-soft);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-top: 4px;
}

.section-hint {
  max-width: 42ch;
  margin: 10px auto 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.insight-card,
.warning-card {
  height: 100%;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(235, 227, 251, 0.14);
  background:
    linear-gradient(180deg, rgba(235, 227, 251, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(229, 200, 106, 0.06), transparent);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-height: 230px;
  cursor: pointer;
}

.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 200, 106, 0.4);
}

.insight-card h3 {
  color: var(--brand-accent-soft);
}

.insight-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  width: fit-content;
  min-height: 88px;
  margin-top: 6px;
  border-radius: 22px;
  background: rgba(235, 227, 251, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--brand-accent);
}

.triangle-panel {
  padding: 24px 12px;
  border-radius: 24px;
  background: rgba(235, 227, 251, 0.04);
  border: 1px solid rgba(235, 227, 251, 0.1);
  overflow-x: auto;
}

.triangle-panel .row {
  justify-content: center;
  margin: 0;
}

.triangle-panel h2 {
  width: 100%;
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.9rem);
  line-height: 1.8;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.triangulo-nome {
  letter-spacing: 0.02em;
  text-align: center;
}

#divSequenciasNegativas {
  display: grid;
  gap: 16px;
}

.warning-card h2 {
  margin-bottom: 10px;
  color: var(--brand-accent-soft);
}

.warning-card h3 {
  font-size: 1rem;
  line-height: 1.75;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding-bottom: 8px;
}

.result-actions .btn,
.result-actions .mensagem-whatsapp {
  min-width: min(100%, 340px);
}

.textRed {
  color: #e5c86a;
}

.triangulo {
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.link {
  text-decoration: underline;
}

a,
a:hover,
a:focus,
a:visited {
  color: var(--text-main);
  text-decoration: none;
}

a > i {
  background: transparent;
}

.mensagem-whatsapp i,
.btn-success i {
  margin-left: 8px;
}

.modal.custom {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow-y: auto;
  padding: 24px 12px;
  background: rgba(7, 2, 10, 0.72);
  opacity: 0;
}

.modal.custom.is-open {
  display: block;
  opacity: 1;
}

.modal.custom .modal-dialog {
  max-width: 900px;
  margin: 24px auto;
  transform: translateY(16px);
  transition: transform 160ms ease;
}

.modal.custom .modal-content {
  background-color: var(--brand-surface-strong);
}

.modal.custom.is-open .modal-dialog {
  transform: translateY(0);
}

.modal.custom .modal-body {
  position: relative;
  padding: 28px;
}

.descricao-numero {
  padding: 20px 0 8px;
}

.modal-close-icon {
  position: sticky;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  margin-bottom: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(235, 227, 251, 0.12);
  color: var(--text-main);
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: var(--shadow-card);
  color: var(--brand-accent-soft);
}

.descricao-numero p + p {
  margin-top: 16px;
}

@media (max-width: 991.98px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .support-panel,
  .result-hero__top {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-back-inline {
    width: 100%;
  }

  .hero-brand__logo {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 767.98px) {
  html,
  body {
    overflow-x: hidden;
  }

  .page-shell {
    padding: 12px 8px 24px;
  }

  .hero-panel,
  .support-panel,
  .result-hero,
  .result-section,
  .modal.custom .modal-body {
    padding: 14px;
  }

  .form-panel {
    padding: 16px;
  }

  .hero-brand {
    top: 6px;
    right: 6px;
  }

  .hero-brand__logo {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    padding: 8px;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.95rem, 9vw, 2.8rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .result-layout {
    gap: 12px;
  }

  .result-hero {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .hero-text {
    margin-top: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .result-title-row {
    align-items: center;
  }

  .result-brand {
    margin-left: 10px;
  }

  .result-brand__logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    padding: 8px;
  }

  .eyebrow,
  .panel-kicker,
  .card-kicker,
  .meta-label {
    margin-bottom: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .result-meta {
    gap: 10px;
    margin-top: 14px;
  }

  .meta-chip {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
  }

  .meta-chip strong {
    font-size: 0.98rem;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .section-heading.text-center {
    text-align: center;
  }

  .section-hint {
    margin-top: 8px;
    font-size: 0.88rem;
  }

  .insight-card {
    min-height: auto;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
  }

  .insight-card h3 {
    font-size: 1.2rem;
  }

  .insight-card p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .insight-number {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    margin-top: 6px;
    border-radius: 14px;
    font-size: 1.9rem;
  }

  .result-section .row {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
    margin-left: 0;
    margin-right: 0;
  }

  .result-section .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .warning-card {
    padding: 14px;
    border-radius: 18px;
  }

  .warning-card h3 {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .triangle-panel {
    padding: 10px 4px;
    border-radius: 16px;
  }

  .triangle-panel h2 {
    font-size: clamp(0.82rem, 3.6vw, 1rem);
    letter-spacing: 0.06em;
  }

  .result-actions {
    gap: 10px;
  }

  .result-actions .btn,
  .result-actions .mensagem-whatsapp,
  .btn-back-inline {
    width: 100%;
    min-width: 0;
  }

  .btn,
  .result-actions .btn,
  .result-actions .mensagem-whatsapp,
  .btn-back-inline {
    min-height: 48px;
    border-radius: 16px;
    font-size: 0.95rem;
  }

  .form-actions {
    gap: 12px;
    margin-top: 12px;
  }

  .modal.custom {
    padding: 10px 6px;
  }

  .modal.custom .modal-dialog {
    margin: 8px auto;
  }
}
