/* ===================================================
   RESET / BASE
=================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-text: #f5f5f5;
  --color-text-muted: #b9b9b9;
  --color-accent: #c9a227;
  --color-accent-dark: #8f7118;
  --max-content-width: 720px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-title {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* ===================================================
   HERO — identidade visual (logo integrado)
=================================================== */
.hero {
  width: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
}

.hero__logo {
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* ===================================================
   QUEM CRIOU O MIRA PRO
=================================================== */
.creator {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.creator__photo-wrap {
  width: 200px;
  max-width: 60%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.creator__photo {
  width: 100%;
  height: auto;
}

.creator__paragraph {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: justify;
}

.creator__paragraph:last-child {
  margin-bottom: 0;
}

/* ===================================================
   COMPATIBILIDADE
=================================================== */
.compatibility {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compatibility__text {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0.75rem 0 1.5rem;
}

.check-compat-button {
  width: 100%;
  max-width: 360px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: transparent;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.check-compat-button:hover {
  background-color: var(--color-accent);
  color: #0a0a0a;
}

.check-compat-button:active {
  transform: scale(0.98);
}

/* ===================================================
   PÁGINA DE COMPATIBILIDADE (pistão)
=================================================== */
.piston-check {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  text-align: center;
}

.piston-check__text {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0.75rem 0 1.5rem;
}

.piston-check__image-wrap {
  width: 220px;
  max-width: 60%;
  margin: 0 auto 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.piston-check__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================================================
   COMPRA
=================================================== */
.purchase {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
  display: flex;
  justify-content: center;
}

/* ===================================================
   PÁGINA DE COMPRA — Fluxo 3
=================================================== */
.purchase-flow {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.price-row__label {
  font-size: 1.05rem;
  font-weight: 600;
}

.price-row__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
}

.cep-field {
  margin-bottom: 1.5rem;
}

.cep-field__label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.cep-field__input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  background-color: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.cep-field__input:focus {
  border-color: var(--color-accent);
}

.cep-field__hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
}

.freight-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.freight-error {
  color: #e0665a;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.order-summary {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
}

.order-summary__row--total {
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.15rem;
  padding-top: 0.9rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.order-summary .buy-button {
  margin-top: 1.75rem;
}

.buy-button {
  width: 100%;
  max-width: 360px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0a0a0a;
  background-color: var(--color-accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.buy-button:hover {
  background-color: var(--color-accent-dark);
}

.buy-button:active {
  transform: scale(0.98);
}

/* ===================================================
   FLUXO 5 — CADASTRO
=================================================== */
.registration {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-row {
  display: flex;
  gap: 1rem;
}

.field--grow {
  flex: 1;
}

.field--small {
  flex: 0 0 110px;
}

.field label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.field__optional {
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background-color: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b9b9b9'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
}

.field input:focus,
.field select:focus {
  border-color: var(--color-accent);
}

.field input:invalid.touched,
.field select:invalid.touched {
  border-color: #e0665a;
}

.form-error {
  color: #e0665a;
  font-size: 0.9rem;
}

/* ===================================================
   PLACEHOLDER GENÉRICO DE ETAPA
=================================================== */
.placeholder-stage {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.placeholder-stage__text {
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.placeholder-stage__text--highlight {
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ===================================================
   FOOTER
=================================================== */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================================================
   RESPONSIVE — telas maiores
=================================================== */
@media (min-width: 640px) {
  .creator {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }

  .creator__photo-wrap {
    flex: 0 0 200px;
    max-width: 200px;
    margin: 0;
  }

  .creator__text {
    flex: 1;
  }
}
