:root {
  --lime: #C9FF4A;
  --lime-soft: #E8FF9B;
  --blue: #5B83F6;
  --blue-deep: #436DE8;
  --blue-soft: #EEF1FF;
  --pink: #F58CEB;
  --cream: #FFF8E6;
  --ink: #1B1C1D;
  --muted: #6C6F78;
  --line: #D8DDF5;
  --white: #FFFFFF;
  --shadow: 0 20px 60px rgba(48, 68, 126, .10);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, "Montserrat", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(91,131,246,.14);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.05em;
}
.topbar-copy strong,
.topbar-copy span { display: block; }
.topbar-copy strong { font-size: 13px; }
.topbar-copy span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.save-state { color: var(--muted); font-size: 10px; margin-right: 4px; }

.primary-btn,
.ghost-btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  transition: .18s var(--ease);
}
.primary-btn {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
}
.primary-btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.ghost-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--blue);
}
.ghost-btn:hover { background: var(--blue-soft); }

.builder-view {
  width: min(1760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 70px) 0 80px;
}
.builder-hero {
  min-height: 360px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 84% 8%, rgba(255,255,255,.62) 0 11%, transparent 12%),
    radial-gradient(circle at 77% 14%, rgba(255,255,255,.25) 0 18%, transparent 19%),
    var(--lime);
  padding: clamp(30px, 5vw, 68px);
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.builder-hero::after {
  content: "";
  position: absolute;
  width: 52%;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255,255,255,.42);
  border-radius: 50%;
  right: -18%;
  bottom: -55%;
  box-shadow: 0 0 40px rgba(255,255,255,.5);
}
.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 900;
}
.builder-hero h1,
.presentation-heading h1 {
  margin: 14px 0 16px;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: .96;
  letter-spacing: -.055em;
  max-width: 920px;
}
.builder-hero p {
  max-width: 760px;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
}
.hero-rule {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 26px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-rule div {
  min-height: 150px;
  padding: 24px 18px;
  display: grid;
  align-content: center;
  text-align: center;
}
.hero-rule div + div { border-left: 1px solid rgba(91,131,246,.16); }
.hero-rule strong {
  font-size: clamp(34px, 4vw, 52px);
  color: var(--blue);
  letter-spacing: -.05em;
}
.hero-rule span {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.builder-shell {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.2fr);
  gap: 24px;
}
.course-library,
.trail-workspace {
  border: 1px solid rgba(91,131,246,.16);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 34px);
  background: white;
}
.trail-workspace {
  background: linear-gradient(180deg, #fff 0%, #FBFCFF 100%);
  box-shadow: var(--shadow);
}
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.section-title h2 {
  margin: 6px 0 0;
  font-size: 27px;
  letter-spacing: -.035em;
}
.selection-counter {
  min-width: 58px;
  min-height: 36px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}
.helper-text { color: var(--muted); font-size: 10px; max-width: 180px; text-align: right; }

.library-tools { display: grid; gap: 12px; margin-bottom: 18px; }
.search-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FBFCFF;
}
.search-field span { color: var(--blue); font-size: 18px; }
.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.age-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  border: 1px solid var(--line);
  background: white;
  color: var(--blue);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 11px;
  font-size: 9px;
  font-weight: 900;
}
.filter-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.course-list {
  display: grid;
  gap: 8px;
  max-height: 700px;
  overflow: auto;
  padding-right: 3px;
}
.course-option {
  border: 1px solid transparent;
  background: #F9FAFF;
  border-radius: 15px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  transition: .18s var(--ease);
}
.course-option:hover { border-color: var(--line); transform: translateY(-1px); }
.course-option.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.course-main { min-width: 0; }
.course-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.course-title-row strong { font-size: 14px; }
.course-age {
  border-radius: 999px;
  background: white;
  color: var(--blue);
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 900;
}
.course-option p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.select-course-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 5px 18px rgba(91,131,246,.10);
}
.course-option.selected .select-course-btn {
  background: var(--blue);
  color: white;
}
.course-option.disabled { opacity: .48; }
.course-option.disabled .select-course-btn { cursor: not-allowed; }

.selected-trail {
  display: grid;
  gap: 10px;
  min-height: 255px;
}
.empty-trail {
  min-height: 255px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
}
.empty-trail strong { display: block; color: var(--blue); font-size: 20px; }
.empty-trail p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.selected-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--blue-soft);
  border: 1px solid transparent;
}
.selected-row.parallel {
  border-color: var(--pink);
  background: linear-gradient(90deg, #FFF 0%, #FFF5FE 100%);
}
.order-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-weight: 900;
  font-size: 15px;
}
.selected-copy strong { display: block; font-size: 14px; }
.selected-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.parallel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}
.parallel-toggle input { accent-color: var(--pink); }
.parallel-toggle.disabled { opacity: .4; cursor: not-allowed; }

.row-actions { display: flex; gap: 5px; }
.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  color: var(--blue);
  font-weight: 900;
}
.icon-btn:hover { background: var(--blue-soft); }
.remove-btn { color: #E05276; }

.parallel-explainer {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFF5FE;
  border: 1px solid rgba(245,140,235,.35);
}
.parallel-symbol {
  color: var(--pink);
  font-size: 28px;
  line-height: 1;
}
.parallel-explainer strong { font-size: 12px; }
.parallel-explainer p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.trail-summary {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: white;
}
.summary-metric {
  padding: 17px 13px;
  min-width: 0;
}
.summary-metric + .summary-metric { border-left: 1px solid var(--line); }
.summary-metric span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.summary-metric strong {
  display: block;
  margin-top: 7px;
  font-size: 21px;
  color: var(--blue);
  letter-spacing: -.03em;
}
.workspace-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }

/* Presentation */
.presentation-view {
  min-height: 100vh;
  background: white;
  overflow-x: hidden;
}
.presentation-top {
  min-height: 70px;
  padding: 14px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.presentation-brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.05em;
}
.presentation-back {
  border: 1px solid var(--line);
  background: white;
  color: var(--blue);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 13px;
  font-size: 9px;
  font-weight: 900;
}
.presentation-heading {
  width: min(1480px, calc(100% - 40px));
  margin: 12px auto 0;
  text-align: center;
}
.presentation-heading h1 {
  max-width: 980px;
  margin-inline: auto;
  color: var(--blue);
  font-size: clamp(40px, 4.8vw, 74px);
}
.presentation-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.presentation-metrics {
  width: min(1480px, calc(100% - 40px));
  margin: 34px auto 0;
  border: 1px solid var(--blue);
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.presentation-metric {
  padding: 18px 20px;
  text-align: center;
  background: white;
}
.presentation-metric + .presentation-metric { border-left: 1px solid var(--blue); }
.presentation-metric.highlight {
  background: var(--blue);
  color: white;
}
.presentation-metric span {
  display: block;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.presentation-metric.highlight span { color: rgba(255,255,255,.78); }
.presentation-metric strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(20px, 2.1vw, 30px);
}

.journey-section {
  width: min(2000px, 100%);
  margin: 46px auto 0;
  padding: 0 clamp(18px, 3vw, 48px) 50px;
}
.stage-timeline {
  width: min(1480px, 100%);
  margin: 0 auto 34px;
}

/* Linha do tempo da trilha */
.learning-progress {
  width: 100%;
}

.learning-progress-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.learning-progress-head > div:first-child span,
.learning-progress-total span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .10em;
}

.learning-progress-head > div:first-child strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.learning-progress-total {
  text-align: right;
}

.learning-progress-total strong {
  display: block;
  margin-top: 3px;
  color: var(--blue);
  font-size: 24px;
  letter-spacing: -.04em;
}

.learning-progress-body {
  position: relative;
  padding-bottom: 48px;
}

.progress-course-blocks {
  min-height: 82px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--blue);
  border-radius: 18px;
  background: white;
}

.progress-course-block {
  flex: 1 1 0;
  min-width: 0;
  padding: 13px 16px;
  display: grid;
  align-content: center;
  border-right: 1px solid rgba(91,131,246,.42);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FF 100%);
}

.progress-course-block:last-child {
  border-right: 0;
}

.progress-course-block.parallel {
  background:
    linear-gradient(
      110deg,
      rgba(91,131,246,.14) 0%,
      rgba(245,140,235,.22) 100%
    );
}

.progress-course-block small {
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.progress-course-block.parallel small {
  color: #C959BC;
}

.progress-course-block strong {
  display: block;
  margin: 5px 0 4px;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-course-block span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
}

/* Checkpoints 0, 9, 18, 27, 36... */
.progress-checkpoint-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  border-top: 2px solid var(--blue);
}

.progress-checkpoint {
  position: absolute;
  top: -7px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  min-width: 52px;
}

.progress-checkpoint.first {
  transform: translateX(0);
  justify-items: start;
}

.progress-checkpoint.last {
  transform: translateX(-100%);
  justify-items: end;
}

.checkpoint-dot {
  width: 13px;
  height: 13px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}

.progress-checkpoint strong {
  margin-top: 7px;
  color: var(--blue);
  font-size: 12px;
}

.progress-checkpoint small {
  margin-top: -1px;
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.journey-track {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  width: max-content;
  min-width: min(100%, 1480px);
  margin: 0 auto;
}
.course-card {
  width: clamp(245px, 20vw, 330px);
  min-height: 720px;
  flex: 0 0 auto;
  border-radius: 24px;
  background: var(--blue-soft);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.course-card.parallel-card {
  box-shadow: inset 0 0 0 2px rgba(245,140,235,.5);
}
.card-step {
  position: absolute;
  top: -14px;
  left: 18px;
  min-height: 27px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 9px;
  font-weight: 900;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
}
.course-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(24px, 2.4vw, 35px);
  line-height: .98;
  letter-spacing: -.045em;
}
.course-card > p {
  margin: 0;
  min-height: 90px;
  line-height: 1.47;
  font-size: 12px;
}
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.skill-chip {
  background: white;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 9px;
}
.graduate-title {
  margin-top: 22px;
  color: #86A2FF;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.graduate-copy {
  margin: 9px 0 18px !important;
  min-height: 106px !important;
  padding-left: 18px;
  position: relative;
  font-size: 11px !important;
}
.graduate-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.course-example {
  margin-top: auto;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 18px;
  background: white;
}
.card-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-foot span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.05);
  font-size: 16px;
}

.course-connector {
  width: clamp(48px, 4vw, 74px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-self: center;
  position: relative;
}
.course-connector::before {
  content: "";
  width: 82%;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
}
.course-connector::after {
  content: "";
  position: absolute;
  right: 7%;
  width: 18px;
  height: 18px;
  border-top: 4px solid var(--blue);
  border-right: 4px solid var(--blue);
  transform: rotate(45deg);
}
.course-connector.parallel::before { background: var(--pink); }
.course-connector.parallel::after { border-color: var(--pink); }
.parallel-label {
  position: absolute;
  top: calc(50% - 48px);
  width: 110px;
  text-align: center;
  color: var(--pink);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.presentation-footer {
  background: var(--lime);
  padding: clamp(32px, 5vw, 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 10vw, 160px);
}
.presentation-footer > div:first-child { max-width: 720px; }
.presentation-footer p { margin: 7px 0 0; line-height: 1.5; }
.footer-badge {
  min-width: 220px;
  border-radius: 24px;
  background: white;
  padding: 22px 28px;
  text-align: center;
}
.footer-badge strong {
  display: block;
  color: var(--blue);
  font-size: 42px;
  letter-spacing: -.05em;
}
.footer-badge span { color: var(--muted); font-size: 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 10px;
  font-weight: 800;
  transition: .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.presentation-mode .builder-only { display: none !important; }

/* HD/FHD */
@media (max-width: 1440px) {
  .builder-shell { grid-template-columns: minmax(330px, .78fr) minmax(500px, 1.22fr); }
  .course-card { width: 250px; min-height: 700px; }
  .journey-track { justify-content: flex-start; }
}

/* Tablet / compact laptop */
@media (max-width: 1080px) {
  .builder-hero { grid-template-columns: 1fr; }
  .hero-rule { max-width: 620px; }
  .builder-shell { grid-template-columns: 1fr; }
  .course-list { max-height: 520px; }
  .journey-section { overflow-x: auto; }
  .journey-track { padding-right: 30px; }
}

/* Mobile */
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr;
    padding: 10px 14px;
  }
  .topbar-copy { display: none; }
  .topbar-actions { gap: 5px; }
  .save-state, .topbar-actions .ghost-btn { display: none; }
  .primary-btn { padding-inline: 12px; font-size: 9px; }

  .builder-view { width: min(100% - 20px, 700px); padding-top: 14px; }
  .builder-hero {
    min-height: 0;
    padding: 28px 20px 34px;
    border-radius: 24px;
  }
  .builder-hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .hero-rule { grid-template-columns: 1fr; }
  .hero-rule div { min-height: 90px; }
  .hero-rule div + div { border-left: 0; border-top: 1px solid rgba(91,131,246,.16); }

  .course-library, .trail-workspace { padding: 18px; border-radius: 22px; }
  .section-title { align-items: center; }
  .helper-text { display: none; }
  .trail-summary { grid-template-columns: repeat(2,1fr); }
  .summary-metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .summary-metric:nth-child(4) { border-top: 1px solid var(--line); }

  .presentation-top { padding-inline: 16px; }
  .presentation-brand { font-size: 24px; }
  .presentation-heading { width: min(100% - 24px, 700px); }
  .presentation-heading h1 { font-size: clamp(36px, 11vw, 54px); }
  .presentation-metrics {
    width: min(100% - 24px, 700px);
    grid-template-columns: repeat(2,1fr);
  }
  .presentation-metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--blue); }
  .presentation-metric:nth-child(4) { border-top: 1px solid var(--blue); }

  .journey-section {
    padding-inline: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .stage-timeline { min-width: 780px; }
  .learning-progress-head { margin-bottom: 14px; }
  .journey-track {
    justify-content: flex-start;
    min-width: max-content;
    padding: 20px 12px 26px;
  }
  .course-card {
    width: min(82vw, 310px);
    min-height: 690px;
    scroll-snap-align: center;
  }
  .course-connector { width: 52px; }
  .presentation-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .footer-badge { min-width: 0; }
}

/* FHD/QHD/UWQHD */
@media (min-width: 1800px) {
  .builder-view { width: min(1880px, calc(100% - 80px)); }
  .builder-shell { grid-template-columns: 620px minmax(900px,1fr); }
  .course-card { width: 330px; }
  .journey-track { min-width: 1580px; }
}
@media (min-width: 2400px) {
  .builder-view { width: 2200px; }
  .course-card { width: 370px; min-height: 760px; }
  .course-card > p { font-size: 13px; }
  .graduate-copy { font-size: 12px !important; }
}


/* --- melhorias de leitura do paralelo --- */
.parallel-notes {
  width: min(1480px, 100%);
  margin: 0 auto 22px;
  display: grid;
  gap: 12px;
}
.parallel-note {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(245,140,235,.12) 0%, rgba(91,131,246,.10) 100%);
  border: 2px solid rgba(245,140,235,.42);
}
.parallel-note-pill {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
}
.parallel-note strong {
  font-size: 18px;
  letter-spacing: -.02em;
}
.parallel-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.card-title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.card-title-wrap h2 {
  margin: 14px 0 12px;
}

.card-inline-badge {
  flex: 0 0 auto;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(245,140,235,.18);
  color: #C959BC;
  border: 1px solid rgba(245,140,235,.45);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.course-card.parallel-card {
  box-shadow:
    inset 0 0 0 2px rgba(245,140,235,.58),
    0 16px 40px rgba(245,140,235,.12);
  background:
    linear-gradient(180deg, rgba(255,245,254,.85) 0%, rgba(238,241,255,.95) 100%);
}

.course-connector.parallel {
  width: clamp(92px, 6vw, 118px);
}
.course-connector.parallel::before {
  height: 6px;
  background: linear-gradient(90deg, var(--pink) 0%, var(--pink) 55%, var(--blue) 100%);
}
.course-connector.parallel::after {
  width: 20px;
  height: 20px;
  right: 4%;
  border-top-width: 5px;
  border-right-width: 5px;
  border-top-color: var(--pink);
  border-right-color: var(--pink);
}
.parallel-label {
  top: calc(50% - 60px);
  width: 136px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(245,140,235,.18);
  border: 1px solid rgba(245,140,235,.42);
  color: #C959BC;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}


@media (max-width: 720px) {
  .parallel-note strong { font-size: 15px; }
  .parallel-note p { font-size: 11px; }
  .card-title-wrap {
    flex-direction: column;
    gap: 0;
  }
  .card-inline-badge {
    margin-top: -2px;
    margin-bottom: 6px;
  }
  .parallel-label {
    width: 110px;
    font-size: 8px;
    top: calc(50% - 58px);
  }
}

/* =========================================================
   V3 FIX — resumo do paralelo fora do flex dos cards
   ========================================================= */
.parallel-summary {
  width: min(1480px, 100%);
  margin: 0 auto 26px;
  display: grid;
  gap: 10px;
}
.parallel-summary[hidden] { display: none !important; }
.parallel-summary .parallel-note {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(245,140,235,.50);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(245,140,235,.12), rgba(91,131,246,.07));
}
.parallel-note-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.parallel-note-copy strong {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.parallel-note-copy strong span { color: var(--pink); }
.parallel-note-copy p {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}

/* O bloco antigo não participa mais do layout. */
.parallel-notes { display: none !important; }

/* Desktop: quatro cursos devem caber na largura útil sem scroll horizontal. */
@media (min-width: 1081px) {
  .journey-track {
    width: min(1480px, 100%);
    min-width: 0;
    max-width: 1480px;
    justify-content: center;
    align-items: stretch;
  }
  .journey-track .course-card {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: 340px;
  }
  .journey-track .course-connector {
    width: clamp(42px, 3.8vw, 64px);
    flex: 0 0 clamp(42px, 3.8vw, 64px);
  }
  .journey-track .course-connector.parallel {
    width: clamp(64px, 5vw, 82px);
    flex-basis: clamp(64px, 5vw, 82px);
  }
  .journey-track.course-count-4 .course-card {
    max-width: 315px;
  }
  .journey-track.course-count-4 .course-connector.parallel {
    width: clamp(58px, 4.5vw, 74px);
    flex-basis: clamp(58px, 4.5vw, 74px);
  }
  .journey-track.course-count-4 .parallel-label {
    width: 112px;
    font-size: 7.5px;
    padding: 7px 8px;
  }
}

/* A dupla paralela deve parecer um mesmo período sem virar um card gigante. */
.course-card.parallel-card {
  position: relative;
  border: 2px solid rgba(245,140,235,.64);
  box-shadow: 0 14px 34px rgba(245,140,235,.09);
}
.course-card.parallel-card::before {
  content: "MESMO PERÍODO";
  position: absolute;
  right: 14px;
  top: -13px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #FFE8FC;
  border: 1px solid rgba(245,140,235,.55);
  color: #C959BC;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: .06em;
}
.card-inline-badge { display: none; }

.course-connector.parallel::before {
  background: var(--pink);
  height: 5px;
}
.course-connector.parallel::after {
  border-color: var(--pink);
}
.parallel-label {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
  box-shadow: 0 6px 18px rgba(245,140,235,.18);
}

@media (max-width: 1080px) {
  .parallel-summary {
    min-width: 860px;
    margin-bottom: 22px;
  }
}

@media (max-width: 720px) {
  .parallel-summary .parallel-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .parallel-note-pill { width: max-content; }
  .parallel-note-copy strong { font-size: 14px; }
}


/* Responsividade da barra de progresso com checkpoints */
@media (max-width: 1080px) {
  .learning-progress-head {
    align-items: center;
  }

  .progress-course-block {
    padding-inline: 12px;
  }

  .progress-course-block strong {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .learning-progress-head {
    align-items: flex-start;
  }

  .learning-progress-total strong {
    font-size: 20px;
  }

  .progress-course-blocks {
    min-height: 76px;
  }

  .progress-course-block {
    padding: 10px 9px;
  }

  .progress-course-block small {
    font-size: 6px;
  }

  .progress-course-block strong {
    font-size: 11px;
  }

  .progress-course-block span {
    font-size: 6.5px;
  }
}


/* =========================================================
   CARROSSEL DE MÍDIAS DOS CURSOS
   Mantém a janelinha visual existente e torna as setas funcionais.
   ========================================================= */
.course-media-carousel {
  margin-top: auto;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: white;
}

.course-media-carousel .course-example {
  margin-top: 0;
  display: block;
}

.card-foot {
  min-height: 30px;
}

.card-foot.single-media {
  min-height: 30px;
}

.media-nav {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.05);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.media-nav:hover {
  background: rgba(91,131,246,.14);
  color: var(--blue);
  transform: translateY(-1px);
}

.media-nav[hidden],
.media-counter[hidden] {
  display: none !important;
}

.media-counter {
  min-width: 38px;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
  user-select: none;
}


/* =========================================================
   HUB, METODOLOGIA, PREÇOS E BENEFÍCIOS
   ========================================================= */

.hub-cta-section {
  padding: 58px 20px 72px;
  display: grid;
  place-items: center;
  background: #fff;
}

.hub-projects-button {
  min-width: 320px;
  min-height: 62px;
  padding: 0 28px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 14px 34px rgba(91,131,246,.18);
  transition: transform .2s ease, background .2s ease;
}

.hub-projects-button:hover {
  transform: translateY(-3px);
  background: #476FE6;
}

.methodology-section {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 90px;
}

.methodology-heading {
  max-width: 930px;
}

.methodology-heading h2,
.pricing-heading h2 {
  margin: 10px 0 14px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: .96;
  letter-spacing: -.055em;
  color: var(--blue);
}

.methodology-heading p,
.pricing-heading p {
  max-width: 800px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.methodology-panel {
  margin-top: 38px;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  background: #080809;
  box-shadow: 0 28px 80px rgba(0,0,0,.14);
}

.methodology-art {
  min-width: 0;
}

.methodology-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.methodology-copy {
  align-self: center;
  margin: 38px 42px 38px 0;
  padding: 38px 42px;
  border-radius: 26px;
  background: #303033;
  color: white;
}

.methodology-copy > span {
  color: #aaa;
  font-size: 13px;
}

.methodology-copy ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 23px;
}

.methodology-copy li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.45;
}

.methodology-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.pricing-section {
  margin-top: 0;
  padding: 82px max(24px, calc((100vw - 1480px) / 2)) 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(255,255,255,.38) 0 15%, transparent 15.5%),
    radial-gradient(circle at 82% 0%, rgba(255,255,255,.16) 0 27%, transparent 27.5%),
    var(--lime);
}

.pricing-heading {
  text-align: center;
}

.pricing-heading h2 {
  color: var(--ink);
}

.pricing-heading p {
  margin-inline: auto;
  color: #343635;
}

.pricing-grid {
  margin-top: 48px;
  display: grid;
  gap: 22px;
  justify-content: center;
}

.pricing-grid.plan-count-1 {
  grid-template-columns: minmax(310px, 430px);
}

.pricing-grid.plan-count-2 {
  grid-template-columns: repeat(2, minmax(310px, 430px));
}

.pricing-grid.plan-count-3 {
  grid-template-columns: repeat(3, minmax(300px, 1fr));
}

.price-card {
  min-height: 510px;
  padding: 30px;
  border-radius: 27px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: white;
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(92,111,43,.08);
}

.price-card.featured {
  background: var(--blue);
  color: white;
  transform: translateY(-15px);
  box-shadow: 0 22px 46px rgba(91,131,246,.25);
}

.price-card-top {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-badge,
.classes-badge {
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11px;
}

.price-badge {
  background: var(--pink);
  color: white;
}

.classes-badge {
  background: var(--blue);
  color: white;
}

.price-card.featured .classes-badge {
  background: white;
  color: var(--ink);
}

.price-card h3 {
  margin: 27px 0 12px;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.no-interest {
  color: #85869b;
  font-size: 14px;
  font-weight: 700;
}

.price-card.featured .no-interest {
  color: rgba(255,255,255,.78);
}

.installment-price {
  margin-top: 13px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.installment-price strong {
  color: var(--blue);
  font-size: clamp(18px, 1.8vw, 25px);
}

.price-card.featured .installment-price strong {
  color: white;
}

.installment-price del {
  color: #8b8c9f;
  font-size: 14px;
}

.price-card.featured .installment-price del {
  color: rgba(255,255,255,.7);
}

.price-card > p {
  margin: 48px 0 20px;
  color: #7d7e96;
  font-size: 14px;
  line-height: 1.5;
}

.price-card.featured > p {
  color: white;
  opacity: .98;
}

.classic-warning {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.plan-duration {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(126,128,148,.20);
  text-align: center;
}

.plan-duration span,
.plan-duration small {
  display: block;
}

.plan-duration span {
  color: #80818f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan-duration strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.plan-duration small {
  margin-top: 7px;
  color: #7d7e96;
  font-size: 10px;
  line-height: 1.4;
}

.price-card.featured .plan-duration {
  border-color: rgba(255,255,255,.25);
}

.price-card.featured .plan-duration span,
.price-card.featured .plan-duration small {
  color: rgba(255,255,255,.75);
}

.benefits-section {
  margin-top: 75px;
}

.benefits-heading {
  text-align: center;
}

.benefits-heading h3 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 45px);
  letter-spacing: -.04em;
}

.benefits-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 27px 22px;
}

.benefit-card {
  min-height: 190px;
  padding: 19px;
  text-align: center;
}

.benefit-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 17px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--pink));
  color: white;
  font-size: 28px;
  box-shadow: 0 10px 26px rgba(91,131,246,.18);
}

.benefit-card h4 {
  margin: 0;
  font-size: 17px;
}

.benefit-card p {
  margin: 14px auto 0;
  max-width: 260px;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1050px) {
  .methodology-panel {
    grid-template-columns: 1fr;
  }

  .methodology-copy {
    margin: 0 24px 24px;
  }

  .pricing-grid.plan-count-3 {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }

  .pricing-grid.plan-count-3 .price-card:last-child {
    grid-column: 1 / -1;
    width: min(430px, 100%);
    justify-self: center;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hub-cta-section {
    padding: 38px 12px 52px;
  }

  .hub-projects-button {
    min-width: 0;
    width: 100%;
    max-width: 370px;
  }

  .methodology-section {
    width: min(100% - 24px, 640px);
    padding-bottom: 60px;
  }

  .methodology-panel {
    margin-top: 25px;
    border-radius: 23px;
  }

  .methodology-art {
    min-height: 315px;
  }

  .methodology-copy {
    margin: 0 14px 14px;
    padding: 25px 22px;
  }

  .methodology-copy li {
    font-size: 13px;
  }

  .pricing-section {
    padding: 57px 12px 65px;
  }

  .pricing-grid,
  .pricing-grid.plan-count-1,
  .pricing-grid.plan-count-2,
  .pricing-grid.plan-count-3 {
    grid-template-columns: 1fr;
  }

  .pricing-grid.plan-count-3 .price-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .price-card.featured {
    transform: none;
  }

  .price-card {
    min-height: 485px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 0;
  }
}


/* =========================================================
   V3 — FIDELIDADE VISUAL AOS PRINTS DE REFERÊNCIA
   ========================================================= */

.methodology-section-exact {
  width: min(1204px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 58px;
}

.methodology-exact-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Fundo e tipografia da seção de preços */
.pricing-section {
  --reference-lime: #D2FF5C;
  --reference-blue: #5988FF;
  --reference-pink: #FD98FB;
  position: relative;
  isolation: isolate;
  margin-top: 0;
  padding:
    clamp(72px, 7vw, 96px)
    max(24px, calc((100vw - 1180px) / 2))
    72px;
  overflow: hidden;
  background: var(--reference-lime);
  color: #171719;
  font-family: "Montserrat", Arial, sans-serif;
}

/* Curva luminosa superior */
.pricing-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1180px;
  height: 430px;
  left: 50%;
  top: -350px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  box-shadow:
    0 18px 35px rgba(255,255,255,.17),
    inset 0 -18px 32px rgba(255,255,255,.10);
}

/* Curva inferior esquerda */
.pricing-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 780px;
  height: 310px;
  left: -420px;
  bottom: -225px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.08);
  box-shadow: 22px -18px 42px rgba(255,255,255,.19);
}

.pricing-heading-exact {
  text-align: center;
}

.pricing-heading-exact h2 {
  margin: 0;
  color: #171719;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(45px, 4vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}

/* Os cards formam um bloco único, como no print */
.pricing-grid {
  width: min(1168px, 100%);
  margin: 92px auto 0;
  display: grid;
  gap: 0;
  align-items: stretch;
  justify-content: center;
}

.pricing-grid.plan-count-1 {
  grid-template-columns: minmax(320px, 390px);
}

.pricing-grid.plan-count-2 {
  grid-template-columns: repeat(2, minmax(310px, 390px));
}

.pricing-grid.plan-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  min-width: 0;
  min-height: 465px;
  padding: 38px 48px 30px;
  border-radius: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #19191b;
  box-shadow: none;
}

.price-card + .price-card:not(.featured),
.price-card.featured + .price-card {
  margin-left: -1px;
}

.price-card.featured {
  z-index: 3;
  min-height: 500px;
  margin-top: -20px;
  margin-bottom: -2px;
  background: linear-gradient(180deg, #5E89F9 0%, #5A84F4 100%);
  color: white;
  transform: translateY(-10px);
  box-shadow: 0 22px 48px rgba(86, 125, 240, 0.26);
}

.price-floating-badges {
  position: absolute;
  left: 54px;
  right: 48px;
  top: -20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 21px;
  pointer-events: none;
}

.price-card:not(.featured) .price-floating-badges {
  justify-content: flex-start;
}

.price-card.featured .price-floating-badges {
  justify-content: space-between;
  top: -18px;
}

.discount-badge,
.popular-badge {
  min-height: 39px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--reference-pink);
  color: white;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.popular-badge {
  min-width: 180px;
  font-size: 18px;
}

.classes-badge {
  width: max-content;
  min-width: 144px;
  min-height: 64px;
  margin: 1px 0 0;
  padding: 0 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--reference-blue);
  color: white;
  font-size: 21px;
  font-weight: 400;
}

.price-card.featured .classes-badge {
  background: white;
  color: #27272a;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.18);
}

.price-card h3 {
  margin: 8px 0 14px;
  color: inherit;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(39px, 3.4vw, 49px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}

.no-interest {
  color: #85859f;
  font-size: 18px;
  font-weight: 500;
}

.price-card.featured .no-interest {
  color: white;
}

.installment-price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.installment-price strong {
  color: var(--reference-blue);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  white-space: nowrap;
}

.price-card.featured .installment-price strong {
  color: white;
}

.installment-price del {
  color: #84849a;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.price-card.featured .installment-price del {
  color: white;
}

.price-card > p {
  margin: 67px 0 18px;
  color: #85859f;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.price-card.featured > p {
  color: white;
}

.plan-duration {
  margin-top: auto;
  padding: 0;
  border: 0;
  text-align: center;
}

.plan-duration strong {
  margin: 0;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
}

/* Pequeno + decorativo da referência */
.benefits-section::before {
  content: "+";
  position: absolute;
  right: max(28px, calc((100vw - 1380px) / 2));
  top: -19px;
  width: 29px;
  height: 29px;
  border: 2px solid var(--reference-blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--reference-blue);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

.benefits-section {
  position: relative;
  width: min(1480px, 100%);
  margin: 79px auto 0;
}

.benefits-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 43px 22px;
  align-items: start;
}

.benefit-card {
  min-height: 225px;
  padding: 0 8px;
  text-align: center;
}

.benefit-icon-image {
  width: 124px;
  height: 94px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.benefit-card h4 {
  max-width: 220px;
  margin: 0 auto;
  color: #050506;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.18;
}

.benefit-card p {
  max-width: 255px;
  margin: 31px auto 0;
  color: #050506;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.36;
}

.benefit-card:nth-child(6) {
  grid-column: 2 / 3;
}

.benefit-card:nth-child(7) {
  grid-column: 4 / 5;
}

@media (max-width: 1080px) {
  .pricing-grid.plan-count-3 {
    width: min(850px, 100%);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .price-card,
  .price-card.featured {
    width: min(430px, 100%);
    min-height: 465px;
    margin: 0 auto;
  }

  .price-card.featured {
    min-height: 481px;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit-card:nth-child(6),
  .benefit-card:nth-child(7) {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .methodology-section-exact {
    width: min(100% - 20px, 620px);
    padding: 38px 0 40px;
  }

  .methodology-exact-image {
    border-radius: 13px;
  }

  .pricing-section {
    padding: 58px 12px 54px;
  }

  .pricing-grid,
  .pricing-grid.plan-count-1,
  .pricing-grid.plan-count-2,
  .pricing-grid.plan-count-3 {
    margin-top: 70px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .price-card,
  .price-card.featured {
    width: 100%;
    max-width: 430px;
    padding: 38px 32px 28px;
  }

  .price-floating-badges {
    left: 30px;
    right: 30px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 10px;
  }

  .benefit-card h4 {
    font-size: 15px;
  }

  .benefit-card p {
    margin-top: 16px;
    font-size: 12px;
  }

  .benefit-card:nth-child(6),
  .benefit-card:nth-child(7) {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}


.price-card.featured h3 {
  font-weight: 700;
  letter-spacing: -.05em;
}

.price-card.featured .installment-price strong {
  font-weight: 600;
}

.price-card.featured .plan-duration strong {
  font-weight: 600;
}

.price-card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  pointer-events: none;
}

.discount-badge,
.popular-badge {
  box-shadow: 0 8px 18px rgba(253, 152, 251, 0.18);
}


/* =========================================================
   V5 — TIPOGRAFIA E BENEFÍCIOS HORIZONTAIS
   ========================================================= */

/* A referência usa uma sans mais neutra e compacta. */
.pricing-section,
.pricing-heading-exact h2,
.price-card,
.price-card h3,
.benefit-card h4,
.benefit-card p {
  font-family: "Inter", Arial, sans-serif;
}

.pricing-heading-exact h2 {
  font-weight: 500;
  letter-spacing: -.048em;
}

.price-card h3 {
  font-weight: 700;
  letter-spacing: -.052em;
}

.price-card.featured h3 {
  font-weight: 700;
}

/* Todos os benefícios permanecem em uma única linha. */
.benefits-section {
  width: min(1480px, 100%);
  overflow: visible;
}

.benefits-grid {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  margin-top: 0;
  padding: 0 4px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  scrollbar-width: auto;
  scrollbar-color: var(--reference-blue) rgba(255,255,255,.45);
}

.benefits-grid::-webkit-scrollbar {
  height: 11px;
}

.benefits-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255,255,255,.48);
}

.benefits-grid::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255,255,255,.48);
  border-radius: 999px;
  background: var(--reference-blue);
}

.benefits-grid::-webkit-scrollbar-thumb:hover {
  background: #4777ef;
}

.benefit-card {
  flex: 0 0 245px;
  min-width: 245px;
  min-height: 225px;
  padding: 0 8px;
  scroll-snap-align: start;
}

/* Cancelar posicionamentos da grade anterior. */
.benefit-card:nth-child(6),
.benefit-card:nth-child(7) {
  grid-column: auto;
}

@media (max-width: 1080px) {
  .benefits-grid {
    display: flex;
    grid-template-columns: none;
  }

  .benefit-card {
    flex-basis: 230px;
    min-width: 230px;
  }
}

@media (max-width: 700px) {
  .benefits-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    padding-bottom: 20px;
  }

  .benefit-card {
    flex-basis: 205px;
    min-width: 205px;
  }
}

@media (max-width: 460px) {
  .benefits-grid {
    display: flex;
    grid-template-columns: none;
  }
}


/* FunTech possui 80 aulas e ocupa 18 meses na linha do tempo. */
.progress-course-blocks {
  align-items: stretch;
}

.progress-course-block {
  flex-shrink: 0;
}


/* =========================================================
   V8 — ABERTURA INSTITUCIONAL ANTES DA TRILHA
   ========================================================= */

.presentation-view {
  position: relative;
}

.presentation-view .presentation-top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  min-height: 0;
  height: 0;
  padding: 0;
  pointer-events: none;
  background: transparent;
}

.presentation-view .presentation-brand {
  display: none;
}

.presentation-view .presentation-back {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 70;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(91, 131, 246, .25);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(25, 40, 90, .08);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.presentation-prelude,
.prelude-screen {
  width: 100%;
  margin: 0;
  padding: 0;
}

.presentation-prelude {
  background: white;
}

.prelude-screen {
  line-height: 0;
  overflow: hidden;
  background: white;
}

.prelude-screen img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.prelude-screen-method {
  background: #CDFF53;
}

.presentation-trail-start {
  padding-top: 70px;
}

@media (max-width: 900px) {
  .presentation-view .presentation-back {
    top: 10px;
    right: 10px;
    min-height: 34px;
    padding: 0 11px;
    font-size: 8px;
  }

  .presentation-trail-start {
    padding-top: 48px;
  }
}


/* V8.1 — remove espaços verticais excessivos entre telas institucionais */
.prelude-screen-about img,
.prelude-screen-world img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.prelude-screen-about,
.prelude-screen-world {
  min-height: 0;
  height: auto;
}


/* =========================================================
   V8.2 — telas institucionais sem vazio interno
   ========================================================= */

/*
  "Sobre nós" e "Um mundo criado..." são composições de conteúdo,
  não slides que devem ser esticados até a largura inteira.
  Mantê-los centralizados no tamanho de leitura evita ampliar
  artificialmente qualquer margem branca do screenshot.
*/
.prelude-screen-about,
.prelude-screen-world {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: clamp(28px, 3.5vw, 58px) 20px;
  box-sizing: border-box;
  background: #fff;
}

.prelude-screen-about img,
.prelude-screen-world img {
  display: block;
  width: min(1240px, 100%);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* Remove qualquer espaçamento residual entre as duas telas. */
.prelude-screen-about + .prelude-screen-world {
  margin-top: 0;
}

@media (max-width: 700px) {
  .prelude-screen-about,
  .prelude-screen-world {
    padding: 24px 12px;
  }

  .prelude-screen-about img,
  .prelude-screen-world img {
    width: 100%;
  }
}
