:root {
  --lime: #a4c614;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --soft: #8a8a8a;
  --line: #e4e4e4;
  --card: #ffffff;
  --page: #f7f7f7;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: clamp(300px, 78vw, 380px);
  padding: 18px 20px 120px;
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(255, 255, 255, 0.12) 28%,
      rgba(255, 255, 255, 0.45) 55%,
      rgba(255, 255, 255, 0.88) 78%,
      #fff 100%
    ),
    url("/images/hero-field.png") center 35% / cover no-repeat;
  filter: saturate(0.85) brightness(1.08);
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand__text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #3a3a3a;
  font-style: italic;
}

.brand__text em {
  color: var(--lime);
  font-style: italic;
  font-weight: 800;
}

.brand__mark {
  width: 22px;
  height: 22px;
  color: var(--lime);
  display: grid;
  place-items: center;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.hero__copy {
  position: relative;
  z-index: 1;
  margin-top: 56px;
}

.content {
  position: relative;
  z-index: 1;
  padding: 0 20px 28px;
  margin-top: -100px;
}

.headline {
  font-size: clamp(1.85rem, 7.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.headline span {
  color: var(--lime);
}

.subhead {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 18px;
  max-width: 22rem;
}

.subhead strong {
  font-weight: 700;
  color: var(--ink);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card--venue {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.card__icon {
  width: 48px;
  height: 36px;
  color: var(--lime);
  flex-shrink: 0;
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.card__body strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.card__body span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--soft);
}

.venue-eye {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lime);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.venue-eye[hidden] {
  display: none !important;
}

.venue-eye svg {
  width: 22px;
  height: 22px;
}

.venue-eye:hover,
.venue-eye:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.viewpoint-modal[hidden] {
  display: none !important;
}

.viewpoint-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.viewpoint-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.viewpoint-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  background: #fff;
  color: #111;
  border-radius: 18px;
  padding: 22px 20px 20px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.viewpoint-modal__panel h2 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 28px 14px;
}

.viewpoint-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.viewpoint-modal__img {
  display: block;
  width: 100%;
  max-height: min(60vh, 420px);
  object-fit: contain;
  border-radius: 12px;
  background: #f2f2f2;
}

.card--product {
  padding: 16px 18px 18px;
  margin-bottom: 16px;
}

.product__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--soft);
  margin-bottom: 8px;
}

.product__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product__info {
  flex: 1;
  min-width: 0;
}

.price {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--lime);
  font-weight: 800;
}

.price__currency {
  font-size: 0.95rem;
  margin-top: 0.45rem;
  margin-right: 4px;
  color: #9aa00f;
}

.price__value {
  font-size: 2.75rem;
  letter-spacing: -0.04em;
}

.price__cents {
  font-size: 1.1rem;
  margin-top: 0.35rem;
}

.product__desc {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  max-width: 13.5rem;
}

.product__divider {
  width: 0;
  align-self: stretch;
  border-left: 1.5px dashed #d5d5d5;
  margin: 4px 2px;
}

.product__cam {
  width: 72px;
  color: var(--lime);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.product__cam svg {
  width: 100%;
  height: auto;
}

.cta {
  width: 100%;
  border: 0;
  cursor: pointer;
  background: var(--lime);
  color: var(--ink);
  border-radius: 14px;
  min-height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(164, 198, 20, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cta:active {
  transform: scale(0.98);
  filter: brightness(0.97);
}

.cta__play {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cta__play svg {
  width: 16px;
  height: 16px;
}

.cta__text {
  flex: 1;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cta__chevron {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cta__chevron svg {
  width: 18px;
  height: 18px;
}

.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 18px;
  padding: 4px 0;
}

.features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 0 6px;
  position: relative;
}

.features li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #ddd;
}

.features__icon {
  width: 28px;
  height: 28px;
  color: var(--lime);
}

.features__icon svg {
  width: 100%;
  height: 100%;
}

.features span:last-child {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #b0b0b0;
  font-size: 0.78rem;
  font-weight: 500;
}

.secure svg {
  width: 14px;
  height: 14px;
}

/* —— Checkout / Success —— */
.page--checkout,
.page--success {
  overflow: visible;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  gap: 12px;
}

.topbar__back {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.brand--compact .brand__text {
  font-size: 13px;
}

.checkout {
  padding: 8px 20px calc(36px + env(safe-area-inset-bottom, 0px));
}

.checkout__title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.card--form {
  padding: 16px 18px;
  margin-bottom: 14px;
}

.card--price {
  background: linear-gradient(180deg, #fbfef0 0%, #fff 100%);
  border: 1px solid rgba(164, 198, 20, 0.25);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--soft);
  letter-spacing: 0.02em;
}

.field__input {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  /* 16px evita zoom automático do iOS ao focar inputs */
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  -webkit-text-fill-color: #1a1a1a;
  background: #fff;
  background-color: #fff;
  color-scheme: light;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

select.field__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #fff;
  padding-right: 36px;
  color: #1a1a1a;
  -webkit-text-fill-color: #1a1a1a;
}

select.field__input option {
  color: #1a1a1a;
  background-color: #fff;
}

.field__input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(164, 198, 20, 0.2);
}

.field__input--readonly {
  background: #f5f5f5;
  color: var(--ink);
  font-weight: 700;
  text-transform: capitalize;
  cursor: default;
}

.field__input:disabled {
  background: #f3f3f3;
  color: #999;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-row .field {
  margin-bottom: 0;
}

.field__hint {
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--soft);
  line-height: 1.4;
}

.field__msg {
  font-size: 0.75rem;
  font-weight: 600;
}

.field__msg--ok {
  color: #3d7a00;
}

.field__msg--err {
  color: #c62828;
}

.section-note {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 14px;
}

.coupon-row {
  display: flex;
  gap: 8px;
}

.coupon-row .field__input {
  flex: 1;
}

.btn-secondary {
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  background: #ececec;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:active {
  filter: brightness(0.96);
}

.checkout-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-price__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
}

.checkout-price__duration {
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.price--checkout {
  margin: 0;
}

.price--checkout .price__value {
  font-size: 2.2rem;
}

.coupon-applied {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3d7a00;
}

.btn-mp {
  width: 100%;
  margin-top: 6px;
  margin-bottom: env(safe-area-inset-bottom, 0px);
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: #009ee3;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 158, 227, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}

.btn-mp__logo {
  width: 32px;
  height: 24px;
  display: grid;
  place-items: center;
}

.btn-mp__logo svg {
  width: 100%;
  height: 100%;
}

.btn-mp:not(:disabled):active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.btn-mp:disabled {
  background: #c8c8c8;
  color: #f5f5f5;
  box-shadow: none;
  cursor: not-allowed;
}



/* Retorno do Mercado Pago — pagamento não concluído */
.page--pay-retry #checkout-form-fields,
.page--pay-retry #pay-btn {
  display: none !important;
}

.pay-fail {
  margin: 0;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: #fff7f7;
  border: 1px solid #ffc9c9;
}

.pay-fail__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fde8e8;
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pay-fail__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #b42318;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.pay-fail__text {
  font-size: 0.9rem;
  color: #7a2e2e;
  line-height: 1.45;
  margin-bottom: 16px;
}

.pay-fail__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0d4d4;
}

.pay-fail__summary small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pay-fail__summary span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.pay-fail__summary-total {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid #f0e0e0;
}

.pay-fail__summary-total span {
  font-size: 1.2rem;
  color: #b42318;
}

.pay-fail .btn-mp {
  margin-top: 0;
}


.page--gate {
  overflow: hidden;
}

.gate {
  padding: 72px 28px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gate__icon {
  width: 80px;
  height: 80px;
  color: var(--lime);
  margin-bottom: 22px;
  opacity: 0.95;
}

.gate__icon svg {
  width: 100%;
  height: 100%;
}

.gate__title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.gate__text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
  max-width: 18rem;
}

.page--processing {
  overflow: hidden;
}

.processing {
  padding: 64px 28px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.processing__mp {
  width: 56px;
  height: 42px;
  margin-bottom: 22px;
}

.processing__mp svg {
  width: 100%;
  height: 100%;
}

.processing__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.processing__text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  max-width: 16rem;
  margin-bottom: 28px;
}

.progress {
  width: 100%;
  max-width: 280px;
  height: 10px;
  border-radius: 999px;
  background: #ececec;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #009ee3 0%, #00b1ff 100%);
  transition: none;
}

.processing__pct {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #009ee3;
}

.success {
  padding: 48px 28px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success__icon {
  width: 72px;
  height: 72px;
  color: var(--lime);
  margin-bottom: 20px;
}

.success__icon svg {
  width: 100%;
  height: 100%;
}

.success__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.success__text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  max-width: 18rem;
  margin-bottom: 28px;
}

.success__cta {
  justify-content: center;
  text-decoration: none;
}

@media (min-width: 480px) {
  body {
    background: #ececec;
    padding: 24px 0;
  }

  .page {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    min-height: auto;
  }
}

/* Desktop stage — mobile composition preserved inside .page */
@media (min-width: 900px) {
  body {
    padding: 48px 32px;
    background:
      radial-gradient(ellipse at 12% 10%, rgba(164, 198, 20, 0.18) 0%, transparent 42%),
      radial-gradient(ellipse at 88% 90%, rgba(0, 158, 227, 0.12) 0%, transparent 40%),
      #e8e8e8;
  }

  .page {
    border-radius: 28px;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.12),
      0 2px 0 rgba(255, 255, 255, 0.6) inset;
  }

  .page--checkout,
  .page--gate,
  .page--success,
  .page--processing {
    max-width: 460px;
  }

  .gate,
  .success,
  .processing {
    padding-top: 80px;
    padding-bottom: 64px;
  }

  .checkout {
    padding-bottom: 48px;
  }

  .checkout__title {
    font-size: 1.6rem;
  }
}
