:root {
  --color-bg: #f8fbff;
  --color-ink: #111827;
  --color-muted: #4f5f70;
  --color-border: #d8e4ef;
  --color-cyan: #08c8df;
  --color-cyan-dark: #069db4;
  --color-purple: #7548f2;
  --color-purple-dark: #5731c9;
  --color-navy: #243f53;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(36, 63, 83, 0.18);
  --radius-card: 8px;
  --z-base: 1;
  --z-modal: 40;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  overflow-x: hidden;
  color: var(--color-ink);
  background: var(--color-bg);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(320px, 0.72fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px 36px;
  width: 100%;
  height: 100dvh;
  padding: 24px 7vw 34px;
  overflow: hidden;
}

.page-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../vista-externa-do-teatro.jpg");
  background-position: center;
  background-size: cover;
  content: "";
  opacity: 0.2;
  pointer-events: none;
}

.page-shell::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-bg);
  content: "";
  opacity: 0.86;
  pointer-events: none;
}

.page-shell > * {
  position: relative;
  z-index: var(--z-base);
  min-width: 0;
}

.brand-row,
.hero-content,
.pme-panel {
  animation: reveal-up 180ms ease-out both;
}

.hero-content {
  animation-delay: 40ms;
}

.pme-panel {
  animation-delay: 80ms;
}

.brand-row {
  display: flex;
  grid-column: 1 / 3;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 54px;
}

.topprime-logo {
  width: 138px;
  max-width: 34vw;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 42px;
  margin-left: auto;
  background: var(--color-border);
}

.select-header-logo {
  width: 220px;
  max-width: 29vw;
  height: auto;
  flex: 0 0 auto;
}

.hero-content {
  align-self: center;
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--color-white);
  background: var(--color-purple);
  border-radius: var(--radius-card);
  padding: 10px 16px;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(1.35rem, 3vw, 2.65rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.modal-eyebrow {
  margin: 0 0 18px;
  color: var(--color-purple);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 600px;
  margin: 0;
  color: var(--color-navy);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.03;
  text-wrap: balance;
}

.brand-text {
  display: inline-block;
  color: var(--color-purple);
  white-space: nowrap;
}

.support-copy {
  max-width: 510px;
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.38;
  text-wrap: pretty;
}

.price-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  width: min(100%, 560px);
  max-width: 100%;
  margin-top: 10px;
  padding: 0;
  text-align: left;
}

.price-card span {
  margin: 0 0 1px 6px;
  color: var(--color-ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  max-width: 100%;
}

.price-card strong {
  margin: 0;
  color: var(--color-purple);
  font-size: 4.75rem;
  font-weight: 900;
  line-height: 0.94;
  white-space: nowrap;
}

.price-line small,
.price-line em {
  color: var(--color-navy);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 900;
}

.price-line em {
  white-space: nowrap;
}

.contract-tags {
  display: block;
  overflow: hidden;
  gap: 8px;
  width: min(100%, 660px);
  max-width: 660px;
  margin-top: 12px;
  padding: 2px 0;
}

.contract-track {
  display: flex;
  width: max-content;
  gap: 8px;
  animation: tags-marquee 16s linear infinite;
}

.contract-track span {
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 7px 10px;
  color: var(--color-navy);
  background: var(--color-white);
  font-size: 0.86rem;
  font-weight: 800;
}

.contract-track span:nth-child(even) {
  border-color: var(--color-cyan);
  color: var(--color-purple);
}

.contract-track span,
.side-quote-button,
.quiz-option,
.quiz-back,
.quiz-close-button,
.submit-button {
  transition: transform 160ms ease-out;
}

.contract-track span:hover,
.side-quote-button:hover,
.quiz-option:hover,
.quiz-back:hover,
.quiz-close-button:hover,
.submit-button:hover {
  transform: translateY(-2px);
}

.pme-panel {
  align-self: center;
  justify-self: end;
  display: grid;
  grid-template-rows: auto auto;
  width: min(100%, 540px);
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pme-visual {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, calc(100dvh - 190px));
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #f3f3f3;
}

.pme-visual img {
  display: block;
  width: min(68%, 300px);
  height: auto;
}

.pme-panel video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 0;
  background: #f3f3f3;
  object-fit: cover;
  object-position: center;
}

.pme-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  padding: 14px 16px;
  color: var(--color-ink);
  background: var(--color-white);
}

.pme-copy p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.pme-copy strong {
  color: var(--color-purple);
  font-size: 1.15rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.side-quote-button {
  position: relative;
  z-index: var(--z-base);
  display: inline-grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  color: var(--color-white);
  background: var(--color-purple);
  box-shadow: none;
}

.side-quote-button span:last-child,
.submit-button {
  font-weight: 900;
  line-height: 1.12;
  text-align: left;
}

.button-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--color-purple);
  background: var(--color-white);
}

.lead-modal {
  z-index: var(--z-modal);
  width: min(92vw, 460px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  color: var(--color-ink);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

.lead-modal[open] {
  animation: modal-in 180ms ease-out both;
}

.lead-modal::backdrop {
  background: rgba(17, 24, 39, 0.58);
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.modal-eyebrow {
  margin-bottom: 6px;
  color: var(--color-purple);
  font-size: 0.82rem;
}

.lead-form h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: 1.75rem;
  line-height: 1.1;
  text-wrap: balance;
}

.quiz-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.quiz-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--color-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease-out;
}

.quiz-body {
  display: grid;
  gap: 12px;
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.quiz-body.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.quiz-question {
  margin: 0;
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

.employee-thank-you {
  display: grid;
  gap: 16px;
  border-radius: var(--radius-card);
  padding: 20px;
  color: var(--color-white);
  background: var(--color-navy);
}

.employee-thank-you p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.employee-thank-you .quiz-close-button {
  color: var(--color-purple);
  background: var(--color-white);
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  color: var(--color-ink);
  background: var(--color-white);
  font-weight: 800;
  text-align: left;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: var(--color-purple);
  outline: 3px solid rgba(117, 72, 242, 0.18);
  outline-offset: 2px;
}

.quiz-fields {
  display: grid;
  gap: 14px;
}

.quiz-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.quiz-back {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  color: var(--color-ink);
  background: var(--color-white);
  font-weight: 800;
}

.quiz-close-button {
  min-height: 50px;
  border: 0;
  border-radius: var(--radius-card);
  padding: 12px 16px;
  color: var(--color-white);
  background: var(--color-purple);
  font-weight: 800;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-ink);
  background: var(--color-white);
  font-weight: 800;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--color-ink);
  font-size: 0.93rem;
  font-weight: 700;
}

.lead-form input,
.lead-form select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 0 13px;
  color: var(--color-ink);
  background: var(--color-white);
}

.lead-form input:focus,
.lead-form select:focus,
.side-quote-button:focus-visible,
.submit-button:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid rgba(8, 200, 223, 0.3);
  outline-offset: 3px;
}

.form-feedback {
  min-height: 20px;
  margin: 0;
  color: var(--color-navy);
  font-size: 0.9rem;
  line-height: 1.35;
}

.submit-button {
  display: inline-grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 0;
  border-radius: var(--radius-card);
  padding: 10px 16px;
  color: var(--color-white);
  background: var(--color-purple);
  text-align: left;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tags-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 4px));
  }
}

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

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

  .page-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    min-height: 0;
    gap: 8px;
    padding: 12px 12px 14px;
    overflow: hidden;
  }

  .page-shell::after {
    opacity: 0.88;
  }

  .brand-row,
  .pme-panel {
    grid-column: 1;
  }

  .brand-row {
    position: relative;
    justify-content: flex-start;
    gap: 8px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-height: 42px;
    margin-left: 0;
    overflow: hidden;
  }

  .topprime-logo {
    width: clamp(72px, 23vw, 86px);
    max-width: 28vw;
    flex: 0 0 auto;
  }

  .brand-divider {
    display: none;
    flex: 0 0 1px;
    height: 34px;
  }

  .select-header-logo {
    position: absolute;
    top: 50%;
    right: 0;
    width: clamp(112px, 34vw, 145px);
    max-width: 42vw;
    flex: 0 0 auto;
    transform: translateY(-50%);
  }

  .hero-content {
    align-self: start;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-width: 0;
    padding-top: 4px;
  }

  .eyebrow {
    margin-bottom: 6px;
    padding: 7px 9px;
    font-size: clamp(0.95rem, 6vw, 1.45rem);
  }

  h1 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .brand-text {
    white-space: normal;
  }

  .support-copy {
    display: block;
    max-width: calc(100vw - 24px);
    margin-top: 5px;
    color: #667789;
    font-size: clamp(0.68rem, 2.7vw, 0.78rem);
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
  }

  .price-card {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-width: 0;
    grid-template-columns: 1fr;
    margin-top: 5px;
    padding: 0;
  }

  .price-line {
    gap: 8px;
  }

  .price-card strong {
    font-size: clamp(2.2rem, 12vw, 2.7rem);
  }

  .price-line small,
  .price-line em {
    font-size: 0.96rem;
  }

  .contract-tags {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-width: 0;
    overflow: hidden;
    display: block;
    margin-top: 6px;
  }

  .contract-track {
    gap: 6px;
    animation-duration: 13s;
  }

  .contract-track span {
    min-width: 0;
    padding: 6px 9px;
    overflow-wrap: anywhere;
    font-size: 0.68rem;
    text-align: center;
  }

  .pme-panel {
    align-self: start;
    justify-self: start;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-width: 0;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .pme-visual {
    justify-self: center;
    width: min(100%, max(230px, calc(100dvh - 390px)));
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    max-height: none;
    border: 0;
    background: #f3f3f3;
  }

  .pme-panel video {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: none;
    border: 0;
    background: #f3f3f3;
    object-fit: cover;
    object-position: center;
  }

  .pme-visual img {
    width: min(68%, 260px);
  }

  .pme-panel .side-quote-button {
    grid-column: 1;
  }

  .side-quote-button {
    width: 100%;
    min-height: 54px;
    border-radius: 0;
  }

  .side-quote-button span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
  }

  .button-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-height: 640px) {
  .page-shell {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .brand-row {
    min-height: 48px;
  }

  .hero-content {
    align-self: start;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

}
