/* ================================================
   EVENTOS FINAIS — Dark Cinematic Glassmorphism
   Palette: Deep charcoal · Fiery orange · Amber gold
   ================================================ */

:root {
  /* Brand colours (legacy names kept for HTML compatibility) */
  --color-blue: #f0a840;
  --color-blue-dark: #07040a;
  --color-orange: #e8712b;
  --color-orange-dark: #c55e1e;
  --color-yellow: #f0c040;
  --color-gray: rgba(230, 218, 208, 0.6);
  --color-light: #100c15;

  /* Design tokens */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-md: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-warm: rgba(232, 113, 43, 0.22);
  --glow-orange: rgba(232, 113, 43, 0.25);
  --text-primary: #f3ede7;
  --text-muted: rgba(235, 222, 210, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

/* ================================
   TEXT SELECTION
================================ */

::selection {
  background: #f3ede7;
  color: #07040a;
}

::-moz-selection {
  background: #f3ede7;
  color: #07040a;
}

/* ================================
   CUSTOM SCROLLBARS
================================ */

/* Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0810;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-orange), #c55e1e);
  border-radius: 99px;
  border: 2px solid #0d0810;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f09840, var(--color-orange));
}

::-webkit-scrollbar-corner {
  background: #0d0810;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-orange) #0d0810;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #08050a;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Ambient glow fixed behind every section */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 8% 18%, rgba(210, 25, 8, 0.12) 0%, transparent 62%),
    radial-gradient(ellipse 65% 45% at 92% 78%, rgba(232, 80, 20, 0.07) 0%, transparent 58%),
    radial-gradient(ellipse 110% 60% at 50% 115%, rgba(100, 10, 4, 0.22) 0%, transparent 68%),
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(80, 8, 3, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* All sections sit above the ambient layer */
section,
nav,
footer {
  position: relative;
  z-index: 1;
}

/* Bootstrap text-muted override for dark theme */
.text-muted {
  color: var(--color-gray) !important;
}

/* ================================
   STICKY HEADER
================================ */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(10, 5, 9, 0.80);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(232, 113, 43, 0.14);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
  animation: headerSlideDown .5s ease both;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sticky-header img {
  height: 44px;
}

/* ================================
   HERO SECTION
================================ */
.hero-section {
  background-image: url('../img/bg.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 90vh;
  z-index: 10;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 4, 10, 0.72) 0%, rgba(7, 4, 10, 0.50) 55%, rgba(7, 4, 10, 0.78) 100%),
    radial-gradient(ellipse 65% 65% at 20% 65%, rgba(195, 48, 18, 0.14) 0%, transparent 68%),
    radial-gradient(ellipse 50% 45% at 80% 35%, rgba(232, 113, 43, 0.07) 0%, transparent 60%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

/* ---- Floating ember particles ---- */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.ember {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp var(--dur, 7s) var(--delay, 0s) infinite ease-in;
  filter: blur(0.8px);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }

  8% {
    opacity: var(--op, 0.65);
  }

  85% {
    opacity: var(--op, 0.40);
  }

  100% {
    transform: translateY(-115vh) translateX(var(--drift, 40px)) scale(0.15);
    opacity: 0;
  }
}

/* ---- Book cover ---- */
.hero-cover {
  max-width: 380px;
  border-radius: 12px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(232, 113, 43, 0.14);
  transition: transform .45s ease, box-shadow .45s ease;
  animation: coverFloat 6s ease-in-out infinite;
}

@keyframes coverFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.hero-cover:hover {
  transform: scale(1.02) rotate(-0.5deg) translateY(-4px);
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(232, 113, 43, 0.16);
}

/* ---- Hero badge ---- */
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-orange), #f09040);
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(232, 113, 43, 0.28);
  animation: badgePulse 5s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(232, 113, 43, 0.25);
  }

  50% {
    box-shadow: 0 4px 26px rgba(232, 113, 43, 0.40);
  }
}

/* ================================
   FORM CARD — Glassmorphism
================================ */
.form-card {
  background: rgba(18, 8, 14, 0.58);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 20px;
  border: 1px solid var(--glass-border-warm);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: cardReveal .75s ease both;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-card .form-header {
  background: linear-gradient(135deg, rgba(225, 100, 35, 0.92), rgba(195, 72, 16, 0.92));
  padding: 2rem;
  text-align: center;
  border-radius: 19px 19px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}

/* Sheen overlay on form header */
.form-card .form-header::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle at 50% 110%, rgba(255, 255, 255, 0.13) 0%, transparent 55%);
  pointer-events: none;
}

.form-card .form-body {
  padding: 2rem;
}

.form-card .form-control,
.form-card .form-select {
  border-radius: 10px;
  padding: .72rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.11);
  color: var(--text-primary);
  font-size: .92rem;
  transition: all .25s ease;
}

.form-card .form-control::placeholder {
  color: rgba(220, 205, 190, 0.38);
}

.form-card .form-control:focus,
.form-card .form-select:focus {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--color-orange);
  box-shadow: 0 0 0 .2rem rgba(232, 113, 43, 0.22);
  color: var(--text-primary);
  outline: none;
}

.form-card label {
  font-weight: 600;
  font-size: .85rem;
  color: rgba(245, 205, 160, 0.85);
  margin-bottom: .4rem;
}

/* ================================
   BUTTONS
================================ */
.btn-orange {
  background: linear-gradient(135deg, var(--color-orange), #f09840);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: 10px;
  transition: all .3s ease;
  text-transform: uppercase;
  letter-spacing: .5px;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep */
.btn-orange::before {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: left .5s ease;
}

.btn-orange:hover::before {
  left: 150%;
}

.btn-orange:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--glow-orange), 0 0 0 1px var(--glass-border-warm);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(225, 212, 200, 0.80) !important;
  border-radius: 10px;
  transition: all .25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* btn-submit extends btn-orange; only unique overrides below */
.btn-submit {
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.btn-submit:not(:disabled):hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--glow-orange);
}

.btn-submit:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ================================
   SECTION TYPOGRAPHY
================================ */
.section-title {
  font-weight: 800;
  color: var(--text-primary);
}

.text-orange {
  color: var(--color-orange) !important;
}

.text-blue {
  color: var(--color-yellow) !important;
}

.text-yellow {
  color: var(--color-yellow) !important;
}

.bg-blue {
  background-color: #07040a !important;
}

/* ================================
   STEP INDICATOR
================================ */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-pill {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  border: 2px solid rgba(255, 255, 255, 0.14);
  color: rgba(220, 210, 200, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  transition: all .35s ease;
}

.step-pill.active {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 113, 43, 0.28);
  transform: scale(1.08);
}

.step-pill.done {
  background: rgba(232, 113, 43, 0.22);
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.10);
  transition: background .35s ease;
  max-width: 60px;
}

.step-line.done {
  background: var(--color-orange);
}

/* ================================
   DESCRIPTION SECTION
================================ */
.description-section {
  background: #070305;
  position: relative;
  overflow: hidden;
}

.description-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 5% 50%, rgba(180, 18, 8, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 30% at 50% 100%, rgba(100, 10, 5, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* Lens flare top-right */
.description-section::after {
  content: '';
  position: absolute;
  top: -60px;
  right: 8%;
  width: 280px;
  height: 280px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 120, 40, 0.08) 0%, rgba(255, 60, 10, 0.04) 30%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: lensFlareFloat1 10s ease-in-out infinite;
}

@keyframes lensFlareFloat1 {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(0, 0) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-8px, 10px) scale(1.06);
  }
}

/* ================================
   LEARN SECTION
================================ */
.learn-section {
  background: #060204;
  position: relative;
  overflow: hidden;
}

.learn-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 40%, rgba(200, 30, 10, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 90% 25% at 50% 0%, rgba(80, 8, 4, 0.16) 0%, transparent 60%);
  pointer-events: none;
}

/* Lens flare bottom-left */
.learn-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 5%;
  width: 320px;
  height: 320px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 80, 20, 0.07) 0%, rgba(200, 30, 5, 0.04) 35%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  animation: lensFlareFloat2 12s ease-in-out infinite;
}

@keyframes lensFlareFloat2 {

  0%,
  100% {
    opacity: 0.4;
    transform: translate(0, 0) scale(1);
  }

  50% {
    opacity: 0.7;
    transform: translate(10px, -8px) scale(1.05);
  }
}

.learn-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--glass-border);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease;
  position: relative;
  isolation: isolate;
}

/* Top accent line on hover */
.learn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}

.learn-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-md);
  border-color: rgba(232, 113, 43, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(232, 113, 43, 0.07);
}

.learn-card:hover::before {
  opacity: 1;
}

.learn-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-orange), #f09840);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(232, 113, 43, 0.22);
}

.learn-card h5 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.learn-card p {
  color: var(--color-gray);
  font-size: .92rem;
  margin-bottom: 0;
}

/* ================================
   TESTIMONIALS SECTION
================================ */
.testimonial-section {
  background: #080204;
  position: relative;
  overflow: hidden;
}

.testimonial-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(160, 20, 8, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 30%, rgba(200, 40, 10, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

/* Central lens flare glow */
.testimonial-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 200px;
  background:
    radial-gradient(ellipse at center, rgba(255, 80, 20, 0.04) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: lensFlareFloat3 14s ease-in-out infinite;
}

@keyframes lensFlareFloat3 {

  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.7;
    transform: translate(-50%, -53%) scale(1.08);
  }
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--glass-border);
  position: relative;
  isolation: isolate;
  transition: transform .30s ease, box-shadow .30s ease, border-color .30s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-orange);
  opacity: .22;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  border-color: rgba(232, 113, 43, 0.22);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.35), 0 0 24px rgba(232, 113, 43, 0.08);
  transform: translateY(-4px);
}

.testimonial-card p {
  font-size: .95rem;
  color: var(--color-gray);
  font-style: italic;
  flex: 1;
}

.testimonial-card .author {
  color: var(--color-orange);
  font-weight: 600;
  font-size: .9rem;
}

/* ================================
   FOR WHOM SECTION
================================ */
.for-whom-section {
  background: #0a0202;
  position: relative;
  overflow: hidden;
}

.for-whom-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('../img/bg0.webp') center/cover,
    linear-gradient(135deg, rgba(10, 2, 2, 0.88) 0%, rgba(22, 6, 4, 0.82) 100%);
  opacity: .10;
}

.for-whom-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 90% at 0% 50%, rgba(200, 25, 8, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 70% 30% at 50% 0%, rgba(120, 12, 4, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 25% at 50% 100%, rgba(80, 8, 3, 0.16) 0%, transparent 55%);
  pointer-events: none;
}

/* Lens flare streak for-whom — quieted */
.for-whom-section .lens-flare {
  position: absolute;
  top: 15%;
  right: 12%;
  width: 3px;
  height: 250px;
  background: linear-gradient(180deg, transparent, rgba(255, 120, 40, 0.07), rgba(255, 200, 80, 0.09), rgba(255, 120, 40, 0.07), transparent);
  transform: rotate(-30deg);
  filter: blur(2px);
  pointer-events: none;
  animation: flareStreak 10s ease-in-out infinite;
}

@keyframes flareStreak {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

/* ================================
   NOTIFICATION LIST (for-whom)
================================ */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.notif-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  opacity: 0;
}

.notif-card.notif-entering {
  animation: notifSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes notifSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notif-icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.notif-content {
  flex: 1;
}

.notif-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.35;
  margin-bottom: 3px;
}

.notif-text {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  line-height: 1.45;
}

.notif-check {
  color: #f0c040;
  font-size: 1rem;
  margin-top: 2px;
  opacity: 0.8;
}

/* ================================
   AUTHOR SECTION
================================ */
.author-free-bg {
  background: #070204;
  overflow: hidden;
  position: relative;
}

.author-section {
  background: transparent;
  position: relative;
}

.author-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(180, 22, 8, 0.10) 0%, transparent 62%),
    radial-gradient(ellipse 80% 20% at 50% 100%, rgba(90, 10, 4, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

/* Author section lens flare halo */
.author-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
      rgba(255, 60, 10, 0.03) 0%,
      rgba(200, 30, 5, 0.02) 30%,
      transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: authorHalo 12s ease-in-out infinite;
}

@keyframes authorHalo {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.author-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(232, 113, 43, 0.65);
  box-shadow:
    0 0 0 6px rgba(232, 113, 43, 0.07),
    0 18px 45px rgba(0, 0, 0, 0.50);
  transition: all .4s ease;
}

.author-photo:hover {
  box-shadow:
    0 0 0 8px rgba(232, 113, 43, 0.14),
    0 22px 55px rgba(0, 0, 0, 0.60);
  transform: scale(1.02);
}

/* ================================
   FREE SECTION
================================ */
.free-section {
  background: transparent;
  position: relative;
}

.free-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(160, 18, 6, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(140, 15, 5, 0.08) 0%, transparent 58%);
  pointer-events: none;
}

/* Lens flare: dual bokeh circles */
.free-section::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 100, 30, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 65% 65%, rgba(255, 60, 10, 0.04) 0%, transparent 45%);
  filter: blur(16px);
  pointer-events: none;
  animation: freeSectionFlare 14s ease-in-out infinite;
}

@keyframes freeSectionFlare {

  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1.08);
  }
}

.free-magazine-mockup {
  border-radius: 12px 12px 0 0;
  border: none;
  position: relative;
  z-index: 1;
  max-height: 40vh;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom,
      black 0%,
      black 35%,
      rgba(0, 0, 0, 0.7) 55%,
      rgba(0, 0, 0, 0.2) 75%,
      transparent 100%);
  mask-image: linear-gradient(to bottom,
      black 0%,
      black 35%,
      rgba(0, 0, 0, 0.7) 55%,
      rgba(0, 0, 0, 0.2) 75%,
      transparent 100%);
}

.free-magazine-img {
  width: 100%;
  display: block;
}

/* ================================
   CTA SECTION
================================ */
.cta-section {
  background: transparent;
  position: relative;
}


.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(210, 40, 10, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(180, 25, 8, 0.09) 0%, transparent 65%);
  pointer-events: none;
}

/* CTA lens flare: quieted */
.cta-section .cta-flare {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(255, 160, 60, 0.10), rgba(255, 255, 180, 0.14), rgba(255, 160, 60, 0.10), transparent);
  filter: blur(1.5px);
  pointer-events: none;
  animation: ctaFlareV 8s ease-in-out infinite;
}

.cta-section .cta-flare::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 1px;
  height: 200px;
  background: linear-gradient(180deg, transparent, rgba(255, 140, 40, 0.08), rgba(255, 220, 120, 0.10), rgba(255, 140, 40, 0.08), transparent);
  filter: blur(1.5px);
}

@keyframes ctaFlareV {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.65;
  }
}

.cta-section .container,
.for-whom-section .container,
.description-section .container,
.learn-section .container,
.testimonial-section .container,
.author-section .container,
.free-section .container {
  position: relative;
  z-index: 1;
}

/* ================================
   FOOTER
================================ */
.footer {
  background: #050308;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

/* ================================
   FADE-UP SCROLL ANIMATION
================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   CUSTOM CHECKBOX
================================ */
.custom-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  color: rgba(228, 216, 205, 0.80);
}

.custom-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-orange);
}

/* ================================
   SELECTRIC — Dark Theme
================================ */
.selectric-wrapper {
  position: relative;
  cursor: pointer;
  width: 100%;
}

.selectric-wrapper.form-select {
  appearance: none !important;
  background-image: none !important;
  padding: 0 !important;
  border: none !important;
  height: auto !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.selectric-hide-select {
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  width: 1px !important;
  height: 1px !important;
  z-index: -100 !important;
}

.selectric-hide-select select {
  opacity: 0 !important;
  display: none !important;
  position: absolute !important;
}

.selectric-input {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: none !important;
  outline: none !important;
  background: none !important;
  z-index: -100 !important;
}

.selectric {
  border-radius: 10px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  background-image: none !important;
  position: relative;
  transition: all .25s ease;
}

.selectric .label {
  padding: .72rem 1rem !important;
  font-size: .92rem !important;
  color: var(--text-primary) !important;
  height: auto !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  display: block;
  text-align: left;
}

.selectric-placeholder .selectric .label {
  color: rgba(220, 205, 190, 0.38) !important;
}

.selectric .button {
  height: 100% !important;
  width: 40px !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0;
}

.selectric .button::after {
  content: none !important;
}

.selectric .button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(220, 200, 178, 0.55);
}

.selectric-focus .selectric,
.selectric-open .selectric {
  border-color: var(--color-orange) !important;
  box-shadow: 0 0 0 .2rem rgba(232, 113, 43, 0.22) !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

.selectric-open .selectric .button::before {
  border-top: none;
  border-bottom: 5px solid rgba(220, 200, 178, 0.55);
}

.selectric-items {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border-radius: 10px !important;
  border: 1.5px solid rgba(232, 113, 43, 0.20) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55) !important;
  background: rgba(18, 8, 14, 0.95) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  margin-top: 4px !important;
  overflow: hidden;
  z-index: 999999 !important;
  isolation: auto;
}

.selectric-open .selectric-items {
  display: block !important;
}

.selectric-items .selectric-scroll {
  max-height: 250px;
  overflow-y: auto;
}

.selectric-items ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.selectric-items li {
  padding: .72rem 1rem !important;
  font-size: .92rem !important;
  color: rgba(225, 212, 200, 0.80) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: background .2s ease, color .2s ease;
  text-align: left;
  cursor: pointer;
  display: block;
}

.selectric-items li:last-child {
  border-bottom: none !important;
}

.selectric-items li:hover,
.selectric-items li.highlighted {
  background: rgba(232, 113, 43, 0.12) !important;
  color: var(--color-orange) !important;
}

.selectric-items li.selected {
  background: rgba(232, 113, 43, 0.22) !important;
  color: var(--color-yellow) !important;
}

.selectric-search-wrap {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  background: rgba(18, 8, 14, 0.98);
  z-index: 1;
}

.selectric-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .85rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s ease;
}

.selectric-search-input::placeholder {
  color: rgba(220, 205, 190, 0.38);
}

.selectric-search-input:focus {
  border-color: var(--color-orange);
}

/* ================================
   BORDER GLOW — Proximity effect
================================ */
.learn-card::after,
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(280px circle at var(--glow-x, -500px) var(--glow-y, -500px),
      rgba(232, 113, 43, 1.00) 0%,
      rgba(200, 55, 12, 0.65) 30%,
      rgba(140, 20, 5, 0.25) 55%,
      transparent 70%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: var(--glow-opacity, 0);
  transition: opacity 0.55s ease;
  z-index: 0;
}

/* ================================
   MODAL — Dark Glass
================================ */
.modal-content {
  background: rgba(14, 7, 18, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-primary);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header .btn-close {
  filter: invert(1) opacity(.7);
}

.modal-body p {
  color: var(--color-gray);
}

.modal-body h6 {
  color: var(--color-yellow);
}

/* ================================
   TERMS CONTENT
================================ */
.terms-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 15px;
  margin-top: 0;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.85em;
  transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.4s ease, margin-top 0.35s ease, border-color 0.35s ease;
}

.terms-content.terms-open {
  max-height: 180px;
  overflow-y: auto;
  opacity: 1;
  padding: 15px;
  margin-top: 10px;
  border-color: var(--glass-border);
}

/* ================================
   DESCRIPTION MOCKUP
================================ */
.description-img {
  max-width: 500px;
}

/* ================================
   MISC
================================ */
#etapa-2 #street,
#etapa-2 #street-label {
  display: block !important;
}

#carregandoCEP {
  font-size: .8rem;
  color: var(--color-gray) !important;
}

/* ================================
   SECTION SPACING
================================ */
.description-section,
.learn-section,
.testimonial-section,
.for-whom-section,
.author-section,
.free-section,
.cta-section {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

footer.footer {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 991.98px) {
  .hero-cover {
    max-width: 280px;
  }

  .hero-section {
    min-height: auto;
  }

  .description-section,
  .learn-section,
  .testimonial-section,
  .for-whom-section,
  .author-section,
  .free-section,
  .cta-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

@media (max-width: 767.98px) {

  /* ---- Section spacing ---- */
  .description-section,
  .learn-section,
  .testimonial-section,
  .for-whom-section,
  .author-section,
  .free-section,
  .cta-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  footer.footer {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* ---- Hero ---- */
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .hero-section .row {
    --bs-gutter-y: 1.75rem;
  }

  .hero-cover {
    max-width: 200px;
  }

  /* ---- Form card ---- */
  .form-card .form-header {
    padding: 1.5rem 1.25rem;
  }

  .form-card .form-body {
    padding: 1.5rem 1.25rem;
  }

  /* ---- Section headings ---- */
  .section-title {
    font-size: 1.6rem;
  }

  .for-whom-section h2,
  .testimonial-section h2 {
    font-size: 1.6rem;
  }

  /* ---- Cards ---- */
  .learn-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  /* ---- Description ---- */
  .description-img {
    max-width: 100%;
  }

  /* ---- Author ---- */
  .author-photo {
    width: 150px;
    height: 150px;
  }

  /* ---- Free magazine ---- */
  .free-magazine-mockup {
    max-height: 55vh;
  }

  /* ---- Selectric: larger touch targets, shorter dropdown ---- */
  .selectric-items li {
    padding: .9rem 1rem !important;
  }

  .selectric-items .selectric-scroll {
    max-height: 200px;
  }

  /* ---- Notification cards ---- */
  .notif-card {
    padding: 12px 14px;
    gap: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-cover {
    max-width: 180px;
  }

  .btn-orange {
    padding: 12px 28px;
    font-size: .95rem;
  }

  .form-card .form-header,
  .form-card .form-body {
    padding: 1.25rem 1rem;
  }
}

/* Remove as setas no Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove as setas no Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.logo-sm {
  max-height: 2rem;
}

.px-1 {
  padding-right: 0.625rem !important;
  padding-left: 0.625rem !important;
}

.pointer {
  cursor: pointer;
}

/* ================================
   TERMS TOGGLE — Accessible button
================================ */
.btn-terms-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline;
  font: inherit;
  color: var(--color-orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-terms-toggle:focus-visible,
[role="button"].btn-terms-toggle:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 2px;
  text-decoration: none;
}

/* ================================
   REDUCED MOTION — Accessibility
================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================
   SCROLL PROGRESS — Flame fuse
   Hidden at rest; scroll-driven in
   supporting browsers (Chrome/Edge/Safari).
   Firefox sees opacity: 0 — no jank.
================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 center;
  transform: scaleX(0);
  z-index: 2000;
  pointer-events: none;
  /* Dark ember → orange → amber → bright tip */
  background: linear-gradient(90deg,
      #7a2010 0%,
      var(--color-orange) 32%,
      #f0a840 68%,
      #fff4c0 100%);
  box-shadow:
    0 0 10px rgba(232, 113, 43, 0.50),
    0 0 20px rgba(232, 113, 43, 0.18);
  opacity: 0;
}

/* ================================
   SCROLL-DRIVEN ANIMATIONS
   @supports fence: Chrome 115+, Edge 115+, Safari 15.4+
   Firefox and older browsers receive zero changes.
================================ */
@supports (animation-timeline: scroll()) {

  /* ---- Flame fuse progress bar ---- */
  .scroll-progress {
    animation: sd-progress-fill linear both;
    animation-timeline: scroll(root);
  }

  @keyframes sd-progress-fill {
    from {
      transform: scaleX(0);
      opacity: 0;
    }

    1% {
      opacity: 1;
    }

    to {
      transform: scaleX(1);
      opacity: 1;
    }
  }

  /* ---- Hero background parallax ---- */
  /* bg.webp shifts at ~0.5× the scroll rate, creating depth */
  .hero-section {
    animation: sd-hero-parallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0% 55%;
  }

  @keyframes sd-hero-parallax {
    from {
      background-position: center 0%;
    }

    to {
      background-position: center 28%;
    }
  }

  /* ---- Magazine cover: scroll-linked lift + tilt ---- */
  /* Uses individual transform properties (translate, rotate) so they
     compose with the existing coverFloat (which uses transform:
     translateY). Both run simultaneously without conflict. */
  .hero-cover {
    animation-name: coverFloat, sd-cover-lift;
    animation-duration: 6s, auto;
    animation-timing-function: ease-in-out, linear;
    animation-iteration-count: infinite, 1;
    animation-fill-mode: none, both;
    animation-timeline: auto, scroll(root);
    animation-range: auto, 0% 55%;
  }

  @keyframes sd-cover-lift {
    from {
      translate: 0 0;
      rotate: 0deg;
    }

    to {
      translate: 0 -22px;
      rotate: 1.2deg;
    }
  }

  /* ---- Learn & testimonial cards: view-based entry slide ---- */
  /* Only translate (not opacity) to avoid conflicting with the
     parent .fade-up JS-driven opacity transition. */
  .learn-card,
  .testimonial-card {
    animation: sd-card-enter linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 52%;
  }

  @keyframes sd-card-enter {
    from {
      translate: 0 18px;
    }

    to {
      translate: 0 0;
    }
  }

  /* ---- Reduced motion: disable all scroll-driven enhancements ---- */
  /* ---- Radio estilizado: tipo de revista ---- */
  .revista-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .revista-option {
    flex: 1;
    min-width: 180px;
    cursor: pointer;
    display: flex;
  }

  .revista-card {
    flex: 1;
  }

  .revista-option input[type="radio"] {
    display: none;
  }

  .revista-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s, background 0.2s;
  }

  .revista-card svg {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.6);
    transition: opacity 0.2s, color 0.2s;
  }

  .revista-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .revista-titulo {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
  }

  .revista-texto {
    font-size: 0.75rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
  }

  .revista-option input[type="radio"]:checked+.revista-card {
    border-color: #E5A62D;
    background: rgba(229, 166, 45, 0.12);
  }

  .revista-option input[type="radio"]:checked+.revista-card svg {
    opacity: 1;
    color: #E5A62D;
  }

  .revista-option input[type="radio"]:checked+.revista-card .revista-titulo {
    color: #E5A62D;
  }

  .revista-option input[type="radio"]:checked+.revista-card .revista-texto {
    color: rgba(255, 255, 255, 0.7);
  }

  .revista-option:hover .revista-card {
    border-color: rgba(229, 166, 45, 0.4);
    background: rgba(255, 255, 255, 0.08);
  }

  @media (prefers-reduced-motion: reduce) {
    .scroll-progress {
      display: none;
    }

    .hero-section {
      animation: none;
    }

    .hero-cover {
      animation: none;
    }

    .learn-card,
    .testimonial-card {
      animation: none;
    }
  }
}