/* ==========================================================================
   GARAGE SIMULATOR PRO — Upsell Page Styles
   Pure CSS3 | Mobile-First | Automotive Dark Aesthetic
   ========================================================================== */

:root {
  --bg-primary: #101010;
  --bg-surface: #1e2024;
  --bg-surface-elevated: #24272c;
  --accent-orange: #ff4d20;
  --accent-orange-soft: rgba(255, 77, 32, 0.14);
  --accent-green: #0f7865;
  --accent-green-light: #22c59e;
  --text-primary: #ffffff;
  --text-secondary: #c9cdd4;
  --text-muted: #8f96a3;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.45);
  --font-display: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg-primary);
  background-image: radial-gradient(
    ellipse 80% 420px at 50% 0%,
    rgba(255, 77, 32, 0.09) 0%,
    rgba(16, 16, 16, 0) 70%
  );
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 18px;
}

.container--narrow {
  max-width: 780px;
}

/* --------------------------------------------------------------------------
   SEÇÃO 01 — CONFIRMAÇÃO
   -------------------------------------------------------------------------- */
.confirmation-bar {
  background-color: #15171a;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.confirmation-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.confirmation-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.confirmation-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.confirmation-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--accent-green-light);
  text-transform: uppercase;
}

.confirmation-text {
  margin: 0;
  max-width: 620px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   SEÇÃO 02 — HEADLINE
   -------------------------------------------------------------------------- */
.hero {
  padding: 36px 0 28px;
  text-align: center;
}

.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.05rem, 6.4vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.hero-title .accent {
  color: var(--accent-orange);
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   SEÇÃO 03 — APRESENTAÇÃO DO PRODUTO
   -------------------------------------------------------------------------- */
.showcase {
  padding: 8px 0 44px;
}

.brand-lockup {
  text-align: center;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.brand-accent {
  color: var(--accent-orange);
}

.media-card {
  margin: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.media-card + .media-card {
  margin-top: 20px;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.media-frame img {
  width: 100%;
  height: auto;
}

.media-caption {
  margin-top: 12px;
  padding: 0 6px 4px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.video-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   SEÇÕES GERAIS (04 & 05)
   -------------------------------------------------------------------------- */
.section {
  padding: 36px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   SEÇÃO 04 — BENEFÍCIOS
   -------------------------------------------------------------------------- */
.benefits-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.benefit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.benefit-card:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-surface-elevated);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-orange-soft);
  color: var(--accent-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

.benefit-text {
  margin: 0;
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   SEÇÃO 05 — COMO FUNCIONA
   -------------------------------------------------------------------------- */
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.step-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--accent-orange);
}

.step-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   SEÇÃO 06 — OFERTA & SEÇÃO 07 — INTEGRAÇÃO OFICIAL COM A CAKTO
   -------------------------------------------------------------------------- */
.section--offer {
  padding: 36px 0 56px;
}

.offer-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px 20px 28px;
  text-align: center;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent-orange);
}

.offer-header {
  margin-bottom: 24px;
}

.offer-lead {
  margin: 0 auto 12px;
  max-width: 480px;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
}

.offer-price {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 11vw, 4.75rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.offer-note {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Container da integração oficial Cakto — mantém centralização e legibilidade no tema escuro */
.cakto-upsell-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
}

.cakto-upsell-container > div {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

cakto-upsell-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

cakto-upsell-accept {
  display: none;
}

cakto-upsell-reject {
  display: inline-block;
  margin-top: 2px;
  color: #d5d9e0;
  font-size: 0.925rem;
  line-height: 1.45;
  text-align: center;
}

cakto-upsell-reject a,
cakto-upsell-reject button,
cakto-upsell-reject span,
cakto-upsell-reject p {
  color: #d5d9e0 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

cakto-upsell-reject a:hover,
cakto-upsell-reject button:hover {
  color: #ffffff !important;
}

.direct-checkout {
  margin-top: 4px;
}

.direct-checkout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-green);
  background-color: var(--accent-green);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 120, 101, 0.35);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.direct-checkout-link:hover {
  background-color: #138c76;
  border-color: #138c76;
  box-shadow: 0 10px 26px rgba(15, 120, 101, 0.45);
  transform: translateY(-1px);
}

.direct-checkout-link:focus-visible {
  outline: 2px solid var(--accent-green-light);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   SEÇÃO 08 — RODAPÉ
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 44px;
  text-align: center;
}

.footer-brand {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-tagline {
  margin: 0 0 14px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--accent-orange);
}

.footer-disclaimer {
  margin: 0 auto;
  max-width: 580px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVO (TABLET & DESKTOP)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .media-card {
    padding: 14px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .benefit-card--wide {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .offer-card {
    padding: 44px 36px 38px;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 44px 0;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .step-card {
    padding: 26px 22px;
  }
}
