:root {
  --primary: #319513;
  --primary-soft: rgba(43, 177, 2, 0.1);
  --primary-border: rgba(43, 177, 2, 0.5);
  --primary-strong: #2bb102;
  --title: #030712;
  --content: #6b7280;
  --bg: #ffffff;
  --line: #e5e7eb;
  --radius: 16px;
  --element: 68px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--title);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 12px 48px;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Header ---------- */
.header { padding-top: 15px; }

.logo {
  width: 82px;
  height: auto;
  margin: 0 auto;
}

.progress {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: #ecf5e7;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.4s ease;
}

/* ---------- Step ---------- */
.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 36px;
  animation: fade-in 0.35s ease both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.step__before,
.step__title {
  margin: 0;
  text-align: center;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--title);
}

.step__before { margin-bottom: 40px; }
.step__title strong { font-weight: 900; }

.step__subtitle {
  margin: 6px 0 12px;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  color: var(--content);
}

.step__title + .options { margin-top: 16px; }

.hl-red { color: #dc2626; }

/* ---------- Options: list ---------- */
.options {
  display: grid;
  gap: 8px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: var(--element);
  padding: 12px 14px 12px 12px;
  border: 1px solid #dcdcdc;
  border-radius: var(--radius);
  background: #fff;
  color: var(--title);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.option:hover { border-color: var(--primary-strong); }
.option:active { transform: scale(0.99); }

.option__radio {
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.option__radio svg { width: 15px; height: 15px; opacity: 0; transition: opacity 0.15s ease; }

.option.is-selected {
  border-color: var(--primary-strong);
  background: var(--primary-soft);
}

.option.is-selected .option__radio {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.option.is-selected .option__radio svg { opacity: 1; }

/* ---------- Options: list with image on the right ---------- */
.options--list-image .option {
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
  min-height: 72px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.options--list-image .option__label { flex: 1; padding: 14px 0; }

.options--list-image .option__thumb {
  flex: none;
  align-self: stretch;
  width: 72px;
  object-fit: cover;
}

/* ---------- Options: image grid ---------- */
.options--image-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px;
}

.options--image-grid .option {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: #e3e3e3;
  box-shadow: var(--shadow);
}

.options--image-grid .option:hover { box-shadow: var(--shadow-lg); }

.options--image-grid .option__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.options--image-grid .option__label {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 12px 10px 14px;
  text-align: center;
}

/* ---------- Button ---------- */
.btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: var(--element);
  margin-top: 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.99); }

/* ---------- Ruler (peso / altura) ---------- */
.unit-toggle {
  display: flex;
  margin: 24px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: #f1f1f1;
}

.unit-toggle button {
  min-width: 58px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a3a3a3;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.unit-toggle button.is-active { background: var(--primary); color: #fff; }

.ruler-value {
  margin-top: 20px;
  text-align: center;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ruler-value small { font-size: 18px; font-weight: 700; margin-left: 2px; }

.ruler {
  position: relative;
  margin: 8px -12px 0;
}

.ruler__track {
  display: flex;
  align-items: flex-start;
  height: 100px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.ruler__track::-webkit-scrollbar { display: none; }
.ruler__track.is-dragging { cursor: grabbing; }

.ruler__tick {
  position: relative;
  flex: none;
  width: 12px;
  height: 100%;
}

.ruler__tick::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 16px;
  background: #cfcfcf;
}

.ruler__tick--mid::before { height: 32px; }
.ruler__tick--major::before { height: 40px; background: #bdbdbd; }

.ruler__tick span {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: #555;
  white-space: nowrap;
}

.ruler__pad { flex: none; }

.ruler__needle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 92px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--primary);
  pointer-events: none;
}

.ruler__needle::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 14px solid transparent;
  border-bottom-color: var(--primary);
  border-top: 0;
}

.ruler__base {
  height: 1px;
  margin: -8px -12px 0; /* cancels the step gap so the needle sits on the line */
  background: linear-gradient(90deg, transparent, #c4c4c4 20%, #c4c4c4 80%, transparent);
}

.ruler-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #b5b5b5;
}

/* ---------- Field ---------- */
.field {
  width: 100%;
  height: var(--element);
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid #dcdcdc;
  border-radius: var(--radius);
  font: inherit;
  font-size: 17px;
  color: var(--title);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field:focus { border-color: var(--primary-strong); box-shadow: 0 0 0 3px var(--primary-soft); }
.field.is-invalid { border-color: #dc2626; animation: shake 0.3s; }

.field-error {
  min-height: 18px;
  margin-top: 4px;
  font-size: 14px;
  color: #dc2626;
}

@keyframes shake {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ---------- Loading ---------- */
.loading__title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.loading__bar {
  position: relative;
  height: 28px;
  margin-top: 18px;
  border-radius: 999px;
  background: #ecf5e7;
  overflow: hidden;
}

.loading__fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 999px;
}

.loading__percent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--title);
  font-variant-numeric: tabular-nums;
}

.spinner {
  width: 44%;
  max-width: 200px;
  margin: 22px auto 14px;
}

/* ---------- Alerts ---------- */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #cbe8bd;
  border-radius: 12px;
  background: #f1f9ec;
  font-size: 15px;
  line-height: 1.4;
  color: #1f3d12;
}

.alert svg { flex: none; width: 20px; height: 20px; color: var(--primary); }
.alert--strong { font-weight: 600; justify-content: center; }

/* ---------- Result ---------- */
.result__title {
  margin: 20px 0 0;
  text-align: center;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: #211c12;
}

.result__text {
  margin: 8px 0 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: #847862;
}

.vsl { margin-top: 16px; }

.vsl__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  margin: 0 auto;
  padding: 24px;
  border: 2px dashed #d4d4d4;
  border-radius: var(--radius);
  background: #fafafa;
  color: #9ca3af;
  font-size: 15px;
  text-align: center;
}

.vsl__stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.vsl__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.vsl__start,
.vsl__halt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  border: 0;
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.vsl__start[hidden],
.vsl__halt[hidden] { display: none; }

.vsl__start { background: rgba(0, 0, 0, 0.4); }
.vsl__start span:last-child { font-size: 17px; font-weight: 700; }

.vsl__playicon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: var(--shadow-lg);
}

.vsl__playicon::after {
  content: "";
  margin-left: 6px;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff;
}

/* Alerta de pausa: fundo preto, texto em negrito, ícone de pare e botão vermelho. */
.vsl__halt {
  gap: 28px;
  background: #000;
  cursor: default;
}

.vsl__haltrow {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
}

.vsl__haltcopy { flex: 1; min-width: 0; display: grid; gap: 10px; }

.vsl__halt h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.vsl__halt p {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.vsl__halt .vsl__haltnote { color: #fde68a; }

.vsl__stop { flex: none; width: 84px; }
.vsl__stop svg { display: block; width: 100%; height: auto; }

.vsl__halt .btn {
  width: 100%;
  max-width: 320px;
  min-height: 60px;
  margin-top: 0;
  border-radius: 999px;
  background: #ff4136;
  font-size: 18px;
  font-weight: 700;
}

.checkout { animation: fade-in 0.35s ease both; }
.checkout[hidden] { display: none; }
.esconder { display: none; } /* usada pelo delay do vTurb */
.btn--link { text-decoration: none; }

.section-title {
  margin: 40px 0 0;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #211c12;
}

.section-text {
  margin: 8px 0 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: #09090b;
}

/* ---------- Carousel ---------- */
.carousel { margin: 18px -12px 0; }

.carousel__track {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 12%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: none;
  width: 76%;
  scroll-snap-align: center;
  margin: 0;
}

.carousel__slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #f3f4f6;
}

.carousel__slide figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #211c12;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d4d4d4;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.carousel__dots button.is-active { width: 22px; background: var(--primary); }

/* ---------- Guarantee ---------- */
.seal {
  width: 47%;
  margin: 40px auto 0;
}

.seal svg { display: block; width: 100%; height: auto; }

.guarantee__title {
  margin: 18px 0 0;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #2563eb;
}

.guarantee__text {
  margin: 8px 0 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  color: #847862;
}

.guarantee__text strong { color: #211c12; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
