/* ==========================================================================
   The Up Cursos — Campanha EAD (Landing Page & Formulário por Etapas)
   Clean, leve, mobile-first e fiel à identidade visual The Up Cursos
   ========================================================================== */

:root {
  --teal-900: #004c66;
  --teal-700: #006b8f;
  --teal-600: #047da3;
  --teal-100: #e6f5fa;
  --teal-50: #f2f9fc;

  --magenta-600: #ec0e6a;
  --magenta-700: #ce0a5b;
  --magenta-100: #fde8f1;
  --magenta-50: #fff4f9;

  --ink-900: #0f2937;
  --ink-700: #334e5e;
  --ink-500: #5c7484;
  --ink-400: #879ba8;

  --surface: #ffffff;
  --border: #d8e7ee;
  --border-strong: #b6d3df;

  --success: #0d9468;
  --success-bg: #e8f8f2;
  --danger: #d92d4b;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 20px 50px -18px rgba(0, 76, 102, 0.16), 0 4px 14px -4px rgba(0, 76, 102, 0.06);
  --shadow-btn: 0 10px 24px -8px rgba(236, 14, 106, 0.45);
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: linear-gradient(180deg, #eff8fb 0%, #f8fcfd 50%, #eef7fa 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

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

/* Soft background accents */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.35;
}

.bg-blob--teal {
  width: 460px;
  height: 460px;
  background: #8ad8ef;
  top: -160px;
  right: -120px;
}

.bg-blob--magenta {
  width: 380px;
  height: 380px;
  background: #f9a8cc;
  bottom: -140px;
  left: -120px;
  opacity: 0.25;
}

/* Page Shell */
.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
}

.topbar__logo {
  height: 42px;
  width: auto;
  display: block;
}

.topbar__site-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.topbar__site-link:hover {
  background: var(--surface);
  border-color: var(--teal-600);
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
}

.stepper__item {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-400);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stepper__item:disabled {
  cursor: default;
}

.stepper__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--teal-50);
  color: var(--ink-400);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.stepper__item.is-active {
  color: var(--teal-900);
  background: var(--teal-100);
}

.stepper__item.is-active .stepper__num {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #ffffff;
}

.stepper__item.is-done {
  color: var(--teal-700);
}

.stepper__item.is-done .stepper__num {
  background: var(--magenta-600);
  border-color: var(--magenta-600);
  color: #ffffff;
}

.stepper__connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  min-width: 10px;
}

/* Funnel Card */
.funnel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 26px;
  position: relative;
  overflow: hidden;
}

.funnel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-600) 60%, var(--magenta-600) 100%);
}

.step-panel {
  animation: fadeSlideIn 0.28s ease both;
}

.step-panel[hidden] {
  display: none;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Header */
.step-header {
  text-align: center;
  margin-bottom: 22px;
}

.step-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--teal-900);
  letter-spacing: -0.02em;
}

.accent-underline {
  color: var(--magenta-600);
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 4px;
  border-radius: 4px;
  background: var(--magenta-600);
  opacity: 0.25;
}

.step-subtitle {
  margin: 0 auto;
  max-width: 440px;
  font-size: 0.92rem;
  color: var(--ink-500);
}

/* ================= STEP 1: HERO ================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.hero__logo {
  height: 58px;
  max-width: 100%;
  width: auto;
  display: block;
}

.hero__ribbon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.hero__sparks {
  flex-shrink: 0;
}

.hero__ribbon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-900) 100%);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 18px;
  box-shadow: 0 12px 26px -10px rgba(0, 83, 110, 0.48);
  transform: rotate(-1.4deg);
}

.hero__ribbon-top {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero__ribbon-bottom {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.hero__ribbon-pink {
  color: #ff2e88;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.hero__ribbon-one {
  font-size: 1.32rem;
}

.hero__headline-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 420px;
}

.hero__title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.18;
  color: var(--teal-900);
}

.hero__underline {
  width: 210px;
  max-width: 78%;
  height: 10px;
  display: block;
}

.hero__combo-box {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  background: rgba(242, 249, 252, 0.85);
  border: 1.5px solid #8bd0e4;
  font-size: 0.9rem;
  color: var(--teal-900);
  line-height: 1.35;
}

.hero__date-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 12px;
}

.hero__date-icon {
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__date-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--teal-900);
}

.benefits-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fbfdfe;
}

.benefit-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.benefit-item__icon--teal {
  background: var(--teal-100);
  color: var(--teal-700);
}

.benefit-item__icon--magenta {
  background: var(--magenta-100);
  color: var(--magenta-600);
}

.benefit-item h3 {
  margin: 0 0 1px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-900);
}

.benefit-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-500);
  line-height: 1.35;
}

.hero__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.btn--hero {
  padding: 19px 26px;
  font-size: 1.08rem;
  box-shadow: 0 12px 28px -8px rgba(236, 14, 106, 0.5);
}

.hero__microcopy {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-500);
}

/* ================= STEP 2: PLANS ================= */
.plans-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.plan-card {
  position: relative;
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.plan-card:hover {
  border-color: var(--border-strong);
}

.plan-card.is-selected {
  border-color: var(--teal-700);
  background: linear-gradient(180deg, #f8fdff 0%, #ffffff 100%);
  box-shadow: 0 10px 26px -14px rgba(0, 107, 143, 0.38);
}

.plan-card--featured.is-selected {
  border-color: var(--magenta-600);
  background: linear-gradient(180deg, var(--magenta-50) 0%, #ffffff 65%);
  box-shadow: 0 12px 28px -14px rgba(236, 14, 106, 0.32);
}

.plan-card__badge {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--magenta-600);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(236, 14, 106, 0.28);
}

.plan-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-card__radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.plan-card__radio-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
  transform: scale(0.4);
}

.plan-card.is-selected .plan-card__radio {
  border-color: var(--teal-700);
}

.plan-card.is-selected .plan-card__radio-dot {
  background: var(--teal-700);
  transform: scale(1);
}

.plan-card--featured.is-selected .plan-card__radio {
  border-color: var(--magenta-600);
}

.plan-card--featured.is-selected .plan-card__radio-dot {
  background: var(--magenta-600);
}

.plan-card__heading {
  flex: 1;
  min-width: 0;
}

.plan-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--teal-900);
  line-height: 1.2;
}

.plan-card__desc {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.plan-card__price {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  color: var(--magenta-600);
  font-family: var(--font-display);
  font-weight: 800;
}

.plan-card__currency {
  font-size: 0.85rem;
  margin-right: 2px;
}

.plan-card__amount {
  font-size: 1.85rem;
  line-height: 1;
}

.plan-card__cents {
  font-size: 1rem;
}

.plan-card__features {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--ink-700);
}

.plan-card__features li {
  position: relative;
  padding-left: 22px;
}

.plan-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-700);
  font-weight: 800;
}

.plan-card__bonus-item::before {
  color: var(--magenta-600) !important;
}

.plan-card__bonus-item {
  color: var(--ink-900);
}

/* Inside Self Expandable Box */
.inside-self-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(236, 14, 106, 0.14);
}

.inside-self-box__toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 2px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-700);
  cursor: pointer;
}

.inside-self-box__toggle svg {
  transition: transform 0.2s ease;
}

.inside-self-box__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.inside-self-box__details {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  font-size: 0.81rem;
  color: var(--ink-700);
}

.inside-self-box__details p {
  margin: 0 0 6px;
}

.inside-self-box__link {
  font-weight: 700;
  color: var(--teal-700);
  text-decoration: none;
}

.inside-self-box__link:hover {
  text-decoration: underline;
}

/* ================= STEP 3: COURSES ================= */
.combos-strip {
  margin-bottom: 18px;
}

.combos-strip__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 7px;
}

.combos-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.combo-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--teal-50);
  color: var(--teal-900);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.16s ease;
}

.combo-chip:hover {
  border-color: var(--teal-600);
  background: var(--teal-100);
}

.combo-chip.is-active {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #ffffff;
}

.course-field {
  margin-bottom: 16px;
}

.course-field__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 7px;
}

.course-field__count {
  font-weight: 500;
  color: var(--ink-500);
  font-size: 0.8rem;
}

.course-select-trigger {
  width: 100%;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.course-select-trigger:hover {
  border-color: var(--teal-700);
}

.course-select-trigger:focus-visible {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(0, 107, 143, 0.16);
}

.course-select-trigger__text.is-placeholder {
  color: var(--ink-400);
  font-weight: 500;
}

.course-preview {
  margin-top: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  border: 1px solid var(--border);
  animation: fadeSlideIn 0.2s ease both;
}

.course-preview__summary {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-700);
  line-height: 1.45;
}

.info-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--teal-700);
  margin: 4px 0 16px;
}

.mini-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.mini-summary__eyebrow {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-500);
}

.mini-summary__plan {
  font-size: 0.95rem;
  color: var(--teal-900);
}

.mini-summary__right {
  text-align: right;
}

.mini-summary__meta {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-500);
}

.mini-summary__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--magenta-600);
}

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff1f3;
  border: 1px solid #fecdd3;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ================= STEP 4: CHECKOUT ================= */
.order-summary {
  background: var(--teal-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  margin-bottom: 18px;
}

.order-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-strong);
}

.order-summary__eyebrow {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-500);
}

.order-summary__plan {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal-900);
}

.order-summary__price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--magenta-600);
}

.order-summary__courses {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.84rem;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-500);
}

.order-summary__row strong {
  color: var(--ink-900);
  text-align: right;
}

.order-summary__row--bonus strong {
  color: var(--magenta-600);
}

.order-summary__edit {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 0 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-700);
  cursor: pointer;
  text-decoration: underline;
}

/* Inputs */
.input-group {
  margin-bottom: 12px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap__icon {
  position: absolute;
  left: 14px;
  color: var(--teal-700);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--ink-900);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap input::placeholder {
  color: var(--ink-400);
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(0, 107, 143, 0.15);
}

.input-wrap input.is-invalid {
  border-color: var(--danger);
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 4px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--danger);
}

/* Payment Method */
.payment-fieldset {
  border: 0;
  padding: 0;
  margin: 14px 0 18px;
}

.payment-fieldset__legend {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 8px;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.18s ease;
}

.payment-option__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  position: relative;
}

.payment-option.is-selected {
  border-color: var(--teal-700);
  background: var(--teal-50);
  color: var(--teal-900);
}

.payment-option.is-selected .payment-option__radio {
  border-color: var(--teal-700);
}

.payment-option.is-selected .payment-option__radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--teal-700);
}

.payment-option__icon--pix {
  color: #00bdae;
}

.trust-badge {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-500);
}

/* ================= BUTTONS ================= */
.step-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--magenta-600) 0%, #d80c60 100%);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--magenta-700) 0%, #bd0953 100%);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--teal-50);
  color: var(--teal-900);
  border: 1px solid var(--border);
  padding: 13px 16px;
}

.btn--ghost:hover {
  background: var(--teal-100);
}

.btn--lg {
  padding: 16px 26px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn--grow {
  flex: 1;
}

/* ================= STEP 5: CONFIRMATION ================= */
.confirmation {
  text-align: center;
}

.confirmation__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.confirmation__lead {
  margin: 0 auto 18px;
  max-width: 420px;
  font-size: 0.92rem;
  color: var(--ink-500);
}

.confirmation__card {
  text-align: left;
  background: var(--teal-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.confirmation__protocol {
  font-size: 0.8rem;
  color: var(--teal-700);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border-strong);
}

.confirmation__list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.86rem;
}

.confirmation__list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.confirmation__list dt {
  color: var(--ink-500);
}

.confirmation__list dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink-900);
  text-align: right;
}

.confirmation__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================= COURSE MODAL ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 41, 55, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 540px;
  max-height: min(84vh, 680px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px -16px rgba(15, 41, 55, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeSlideIn 0.2s ease both;
}

.modal-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.modal-dialog__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--teal-900);
}

.modal-dialog__subtitle {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ink-500);
}

.modal-dialog__close {
  appearance: none;
  border: 0;
  background: var(--teal-50);
  color: var(--teal-900);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-dialog__close:hover {
  background: var(--teal-100);
}

.modal-dialog__search {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: #fbfdfe;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cat-chip {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-chip.is-active {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #ffffff;
}

.modal-dialog__list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-option {
  width: 100%;
  appearance: none;
  text-align: left;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.course-option:hover {
  border-color: var(--teal-600);
  background: var(--teal-50);
}

.course-option.is-selected {
  border-color: var(--magenta-600);
  background: var(--magenta-50);
}

.course-option__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.course-option__name {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink-900);
}

.course-option__cat {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.course-option__summary {
  margin: 0;
  font-size: 0.81rem;
  color: var(--ink-500);
  line-height: 1.4;
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--ink-500);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-500);
  padding: 4px 8px;
}

.footer p {
  margin: 2px 0;
}

.footer a {
  color: var(--teal-700);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__cookie-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 600;
  color: var(--teal-700);
  cursor: pointer;
}

.footer__cookie-btn:hover {
  text-decoration: underline;
}

/* ================= COOKIE BANNER (LGPD) ================= */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 42px -12px rgba(15, 41, 55, 0.28);
  padding: 16px 18px;
  animation: fadeSlideIn 0.25s ease both;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--teal-900);
  margin-bottom: 4px;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.81rem;
  color: var(--ink-500);
  line-height: 1.45;
}

.cookie-banner__text a {
  color: var(--teal-700);
  font-weight: 600;
}

.cookie-banner__prefs {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.cookie-toggle.is-locked {
  opacity: 0.78;
  cursor: default;
}

.cookie-toggle strong {
  display: block;
  color: var(--ink-900);
  font-size: 0.82rem;
}

.cookie-toggle small {
  display: block;
  color: var(--ink-500);
  font-size: 0.74rem;
}

.cookie-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal-700);
  flex-shrink: 0;
}

.cookie-banner__actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner__buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cookie-btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 9px 15px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.cookie-btn--primary {
  background: var(--magenta-600);
  color: #ffffff;
}

.cookie-btn--primary:hover {
  background: var(--magenta-700);
}

.cookie-btn--ghost {
  background: var(--teal-50);
  color: var(--teal-900);
  border: 1px solid var(--border);
}

.cookie-btn--ghost:hover {
  background: var(--teal-100);
}

.cookie-btn--link {
  background: transparent;
  color: var(--teal-700);
  padding: 6px 4px;
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .page-shell {
    padding: 12px 10px 28px;
  }

  .topbar__logo {
    height: 36px;
  }

  .funnel-card {
    padding: 20px 14px 18px;
    border-radius: 20px;
  }

  .stepper {
    padding: 5px 8px;
    gap: 4px;
  }

  .stepper__item {
    padding: 4px 6px;
  }

  .stepper__label {
    display: none;
  }

  .stepper__item.is-active .stepper__label {
    display: inline;
  }

  .hero__logo {
    height: 48px;
  }

  .hero__sparks {
    width: 18px;
    height: 26px;
  }

  .hero__ribbon {
    padding: 11px 16px;
    transform: rotate(-1deg);
  }

  .hero__ribbon-top {
    font-size: 1.65rem;
  }

  .hero__ribbon-bottom {
    font-size: 0.95rem;
  }

  .hero__title {
    font-size: 1.3rem;
  }

  .hero__combo-box {
    border-radius: var(--radius-md);
    font-size: 0.85rem;
  }

  .combo-chip {
    font-size: 0.72rem;
    padding: 5px 9px;
  }

  .btn--hero {
    padding: 17px 18px;
    font-size: 0.98rem;
  }

  .step-title {
    font-size: 1.45rem;
  }

  .plan-card {
    padding: 16px 14px 14px;
  }

  .plan-card__top {
    gap: 10px;
  }

  .plan-card__amount {
    font-size: 1.45rem;
  }

  .order-summary__row,
  .confirmation__list > div {
    flex-direction: column;
    gap: 2px;
  }

  .order-summary__row strong,
  .confirmation__list dd {
    text-align: left;
  }

  .btn {
    padding: 13px 16px;
    font-size: 0.9rem;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__buttons {
    margin-left: 0;
    width: 100%;
  }

  .cookie-banner__buttons .cookie-btn {
    flex: 1;
  }
}
