:root {
  --navy: #07154b;
  --accent: #05b3a4;
  --blue-1: #0d1f64;
  --blue-2: #1e43e8;
  --blue-3: #4854ff;
  --blue-4: #1ca3ff;
  --text: #071754;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', 'Arial', sans-serif;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-header {
  width: auto;
  text-align: center;
  margin: 16px 0 4px;
}

.page-title-img {
  width: 400px;
  max-width: 95vw;
  height: auto;
  display: block;
}

.page {
  text-align: center;
  width: 100%;
  padding: 8px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero {
  position: relative;
  height: 0;
  width: 100%;
  margin: 0;
}

.content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5cm;
  flex-wrap: wrap;
  width: 100%;
}

.arc-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 85vw);
  height: 110px;
  pointer-events: none;
  z-index: 4;
}

.arc-top {
  top: -44px;
}

.arc-text svg {
  width: 100%;
  height: 100%;
}

.arc-text text {
  font-size: 20px;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  fill: var(--navy);
}

.arc-bottom {
  top: auto;
  bottom: -50px;
  transform: translate(-50%, 0) rotate(180deg);
}

.container {
  position: relative;
  --wheel-size: clamp(300px, 82vw, 420px);
  width: var(--wheel-size);
  height: var(--wheel-size);
}

.cta-card {
  border: 2px solid #0b1d5c;
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 320px;
  width: 100%;
  background: linear-gradient(135deg, #f8fbff, #edf3ff);
  box-shadow: 0 12px 24px rgba(7, 21, 75, 0.12);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--swatch, var(--navy));
  border: 2px solid #0b1d5c;
}

.legend-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cta-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.input-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

input[type='text'] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(7, 21, 75, 0.05);
  box-sizing: border-box;
}

input[type='text']:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(5, 179, 164, 0.15);
}

input[type='tel'],
input[type='email'] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(7, 21, 75, 0.05);
  box-sizing: border-box;
}

input[type='tel']:focus,
input[type='email']:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(5, 179, 164, 0.15);
}

.form-error {
  margin: 4px 0 0;
  color: #d92c2c;
  font-weight: 600;
  font-size: 0.9rem;
}

.ponteiro {
  --pointer-width: clamp(22px, 6vw, 28px);
  --pointer-height: clamp(40px, 12vw, 54px);
  position: absolute;
  left: 50%;
  bottom: calc(-1 * var(--pointer-height) / 3.6);
  transform: translate(-50%, -0.5cm);
  width: 0;
  height: 0;
  border-left: calc(var(--pointer-width) / 2) solid transparent;
  border-right: calc(var(--pointer-width) / 2) solid transparent;
  border-bottom: var(--pointer-height) solid #e63946;
  z-index: 8;
}

.roleta {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  border: 16px solid #041336;
  box-shadow: 0 18px 40px rgba(7, 21, 75, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 4s cubic-bezier(0.25, 0.1, 0.1, 1);
}

.roleta::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  background: #000;
  border-radius: 50%;
  border: 8px solid #0b1d5c;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.rotulos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.rotulo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  color: #fff;
  font-weight: 700;
  width: 140px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  border-radius: 50%;
  background: transparent;
  border: none;
}

.logo-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
}

button {
  padding: 16px 60px;
  font-size: 1.05rem;
  border: none;
  border-radius: 999px;
  background: #041133;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  box-shadow: 0 15px 20px rgba(4, 17, 51, 0.3);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#resultado {
  margin-top: 4px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.countdown {
  margin: 4px 0 0;
  font-weight: 600;
  color: #041133;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.support {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 2px solid #0b1d5c;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #edf3ff);
  box-shadow: 0 12px 24px rgba(7, 21, 75, 0.12);
}

.support-title {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.support-subtitle {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.support-link {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 16px rgba(4, 17, 51, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-link:hover,
.support-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(4, 17, 51, 0.3);
}

@media (max-width: 520px) {
  .container {
    --wheel-size: clamp(260px, 88vw, 340px);
  }

  button {
    width: 100%;
    letter-spacing: 0.2em;
    padding: 14px 24px;
  }

  .arc-text {
    width: min(280px, 82vw);
    height: 96px;
  }

  .arc-top {
    top: -36px;
  }

  .support {
    flex-direction: column;
    text-align: center;
  }
}
