/* Content and lesson pages */
.content-page {
  background: #fff !important;
}

.content-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.content-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 520px) 1fr;
  gap: 54px;
  align-items: center;
  min-height: 650px;
  padding: 92px 0 70px;
  overflow: visible;
}

.content-hero > div:first-child {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #0969e8;
  font-size: .92rem;
  font-weight: 800;
}

.content-hero h1,
.lesson-hero h1 {
  margin: 0;
  color: #071943;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: .9;
  letter-spacing: -.085em;
}

.content-hero p,
.lesson-hero p {
  max-width: 660px;
  margin: 26px 0 0;
  color: #53627d;
  font-size: 1.14rem;
  line-height: 1.8;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.content-visual,
.lesson-visual-card {
  position: relative;
  min-height: 360px;
  padding: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7fbff, #fff);
  border: 1px solid #e4edf7;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(8, 24, 61, .08);
}

.content-visual::before,
.lesson-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image: linear-gradient(#dcecff 1px, transparent 1px), linear-gradient(90deg, #dcecff 1px, transparent 1px);
  background-size: 28px 28px;
}

.graph-card {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 305px;
  padding: 30px;
  background: rgba(255,255,255,.88);
  border: 1px solid #dbe8f7;
  border-radius: 24px;
  transform: rotate(-2deg);
}

.formula-note {
  display: inline-block;
  padding: 10px 14px;
  color: #071943;
  font-weight: 800;
  background: #ffd85c;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(7,25,67,.12);
}

.graph-svg {
  width: 100%;
  height: 210px;
  margin-top: 20px;
}

.graph-svg line,
.graph-svg path.axis {
  stroke: #10204d;
  stroke-width: 4;
  stroke-linecap: round;
}

.graph-svg path.curve,
.graph-svg path.line-graph {
  fill: none;
  stroke: #0969e8;
  stroke-width: 6;
  stroke-linecap: round;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px 0 52px;
}

.overview-card,
.chapter-card,
.side-card,
.lesson-card,
.quick-card {
  background: #fff;
  border: 1px solid #e4edf7;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(8,24,61,.055);
}

.overview-card {
  padding: 24px;
  text-align: center;
}

.overview-card strong {
  display: block;
  color: #071943;
  font-size: 1.5rem;
  letter-spacing: -.04em;
}

.overview-card span {
  color: #5d6a83;
  font-weight: 700;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.content-main h2,
.lesson-main h2 {
  margin: 0 0 20px;
  color: #071943;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.065em;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.chapter-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(8,24,61,.1);
}

.chapter-card .num {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #0969e8;
  font-weight: 900;
  background: #eef7ff;
  border: 1px solid #d7ecff;
  border-radius: 16px;
}

.chapter-card h3,
.side-card h3,
.lesson-card h3,
.quick-card h3 {
  margin: 0 0 8px;
  color: #071943;
  letter-spacing: -.04em;
}

.chapter-card p,
.side-card p,
.lesson-card p,
.quick-card p,
.chapter-card span {
  margin: 0;
  color: #5b6680;
  line-height: 1.6;
}

.chapter-card a {
  display: inline-flex;
  margin-top: 12px;
  color: #0969e8;
  font-weight: 800;
}

.content-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 22px;
}

.roadmap-list,
.formula-list,
.lesson-menu {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.roadmap-list li,
.formula-list li,
.lesson-menu a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  color: #263755;
  font-weight: 700;
  background: #f7fbff;
  border: 1px solid #edf3fb;
  border-radius: 14px;
}

.roadmap-list b {
  color: #0969e8;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  margin-top: 34px;
}

.lesson-card,
.quick-card {
  padding: 26px;
}

.formula-box {
  margin: 18px 0;
  padding: 22px;
  color: #071943;
  font-size: 1.65rem;
  font-weight: 900;
  text-align: center;
  background: #eef7ff;
  border: 1px solid #d7ecff;
  border-radius: 18px;
}

.lesson-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  padding: 62px 0 38px;
}

.lesson-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}

.lesson-sidebar {
  position: sticky;
  top: 112px;
}

.lesson-sidebar .side-card {
  padding: 18px;
}

.lesson-menu a {
  color: #263755;
  text-decoration: none;
}

.lesson-menu a:hover {
  color: #0969e8;
}

.lesson-main {
  display: grid;
  gap: 20px;
}

.lesson-section {
  padding: 28px;
  background: #fff;
  border: 1px solid #e4edf7;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(8,24,61,.055);
}

.lesson-section h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.lesson-section p,
.lesson-section li {
  color: #53627d;
  font-size: 1.02rem;
  line-height: 1.8;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: center;
}

.step-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.step-row {
  padding: 14px 16px;
  color: #263755;
  font-weight: 800;
  background: #f7fbff;
  border: 1px solid #e4edf7;
  border-radius: 14px;
}

.warning-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.warning-list li::before {
  content: "!";
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-right: 8px;
  color: #071943;
  font-weight: 900;
  background: #ffd85c;
  border-radius: 50%;
}

.lesson-question {
  display: grid;
  gap: 12px;
}

.lesson-question button {
  min-height: 48px;
  padding: 0 16px;
  color: #071943;
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 14px;
  cursor: pointer;
}

.lesson-question button:hover {
  border-color: #8fcaff;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
}

.topic-link {
  position: relative;
  z-index: 1;
  margin-top: auto !important;
  padding-top: 28px !important;
  color: #0969e8 !important;
  font-weight: 800;
}

.topic-link::after {
  content: " \2192";
}

@media (max-width: 1040px) {
  .content-hero,
  .lesson-hero,
  .content-layout,
  .lesson-layout,
  .feature-row,
  .split-section {
    grid-template-columns: 1fr;
  }

  .content-sidebar,
  .lesson-sidebar {
    position: static;
  }

  .overview-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .content-shell {
    width: min(100% - 28px, 1180px);
  }

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

  .content-hero h1,
  .lesson-hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .lesson-nav {
    flex-direction: column;
  }
}

.hero-art-frame {
  position: absolute;
  z-index: 1;
  inset: 0 calc(50% - 50vw) 0 38%;
  min-height: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-art-frame::before {
  display: none;
}

.hero-art-image {
  display: block;
  width: min(74vw, 1040px);
  max-width: none;
  height: auto;
  object-fit: contain;
  transform: translate(70px, -8px);
  filter: drop-shadow(0 34px 44px rgba(8, 24, 61, .13));
}

@media (max-width: 980px) {
  .content-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 72px 0 48px;
  }

  .hero-art-frame {
    position: relative;
    inset: auto;
    margin-top: 28px;
    justify-content: center;
  }

  .hero-art-image {
    width: min(100%, 620px);
    transform: none;
  }
}

@media (max-width: 760px) {
  .hero-art-image {
    width: min(112%, 480px);
  }
}
/* Hero de conteúdo: texto dentro da arte, como no mockup de referência */
.content-page {
  overflow-x: hidden;
}

.content-hero {
  width: min(1512px, calc(100vw - 40px));
  margin-left: 50%;
  transform: translateX(-50%);
  isolation: isolate;
  grid-template-columns: minmax(0, 520px) 1fr;
  min-height: 650px;
  padding: 92px clamp(28px, 6vw, 84px) 70px;
  border-bottom: 1px solid #e8f2ff;
}

.content-hero > div:first-child {
  align-self: center;
}

.content-hero .hero-art-frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.content-hero .hero-art-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
}

@media (max-width: 980px) {
  .content-hero {
    width: min(100%, calc(100vw - 28px));
    margin-left: auto;
    margin-right: auto;
    transform: none;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 58px 0 42px;
    border-bottom: 0;
  }

  .content-hero .hero-art-frame {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
  }

  .content-hero .hero-art-image {
    object-fit: cover;
  }
}
/* Ajuste fino: hero de Funções um pouco menor */
.content-hero {
  width: min(1380px, calc(100vw - 52px));
  min-height: 575px;
  padding: 74px clamp(26px, 5vw, 72px) 56px;
}

.content-hero h1 {
  font-size: clamp(3.4rem, 6.2vw, 5.8rem);
}

@media (max-width: 980px) {
  .content-hero {
    width: min(100%, calc(100vw - 28px));
    min-height: auto;
    padding: 54px 0 38px;
  }
}
/* Faixa de resumo igual ao mockup: uma caixa com três métricas */
.overview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
  margin: 8px 0 52px;
  padding: 26px 32px;
  background: rgba(255,255,255,.94);
  border: 1px solid #dfeaf7;
  border-radius: 26px;
  box-shadow: 0 20px 54px rgba(8,24,61,.055);
}

.overview-card.overview-metric {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 116px;
  padding: 12px 34px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.overview-card.overview-metric + .overview-card.overview-metric {
  border-left: 1px solid #e2edf8;
}

.metric-icon {
  width: 96px;
  height: 96px;
  display: inline-grid;
  place-items: center;
  border-radius: 22px;
  font-size: 3.15rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.08em;
  border: 1px solid rgba(9,105,232,.09);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 16px 34px rgba(8,24,61,.07);
}

.metric-blue {
  color: #0973f2;
  background: linear-gradient(135deg, #eef8ff, #dcecff);
}

.metric-green {
  color: #36b48d;
  background: linear-gradient(135deg, #eefbf6, #dff5ef);
}

.metric-purple {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f7f1ff, #ece6ff);
}

.metric-purple i {
  display: block;
  width: 13px;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, #8b65ff, #6744e8);
  box-shadow: 0 4px 8px rgba(103,68,232,.18);
}

.metric-purple i:nth-child(1) { height: 25px; }
.metric-purple i:nth-child(2) { height: 42px; }
.metric-purple i:nth-child(3) { height: 60px; }

.overview-card.overview-metric strong {
  display: block;
  color: #071943;
  font-size: 1.32rem;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.overview-card.overview-metric span:not(.metric-icon) {
  display: block;
  margin-top: 10px;
  color: #66728a;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .overview-strip {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .overview-card.overview-metric {
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 18px 10px;
  }

  .overview-card.overview-metric + .overview-card.overview-metric {
    border-left: 0;
    border-top: 1px solid #e2edf8;
  }

  .metric-icon {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    font-size: 2.35rem;
  }
}
/* Ajuste fino: faixa de resumo mais leve e menos grossa */
.overview-strip {
  width: min(1180px, 100%);
  margin: 0 auto 48px;
  padding: 18px 26px;
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(8,24,61,.045);
}

.overview-card.overview-metric {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  min-height: 88px;
  padding: 8px 28px;
}

.metric-icon {
  width: 70px;
  height: 70px;
  border-radius: 17px;
  font-size: 2.35rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 10px 22px rgba(8,24,61,.05);
}

.metric-purple i {
  width: 10px;
  border-radius: 4px 4px 3px 3px;
}

.metric-purple i:nth-child(1) { height: 18px; }
.metric-purple i:nth-child(2) { height: 30px; }
.metric-purple i:nth-child(3) { height: 44px; }

.overview-card.overview-metric strong {
  font-size: 1.15rem;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.overview-card.overview-metric span:not(.metric-icon) {
  margin-top: 7px;
  font-size: .94rem;
  line-height: 1.45;
  font-weight: 500;
}

.overview-card.overview-metric + .overview-card.overview-metric {
  border-left-color: #edf3fb;
}

@media (max-width: 980px) {
  .overview-strip {
    padding: 14px 16px;
  }

  .overview-card.overview-metric {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 76px;
    padding: 14px 6px;
  }

  .metric-icon {
    width: 58px;
    height: 58px;
    font-size: 1.9rem;
  }
}
/* Ajuste fino: cores das métricas conforme o mockup */
.metric-blue {
  color: #0878ff;
  background: linear-gradient(135deg, #eef8ff 0%, #e4f2ff 100%);
  border-color: #cfe8ff;
}

.metric-green {
  color: #35b997;
  background: linear-gradient(135deg, #effcf8 0%, #e2f7f0 100%);
  border-color: #c9efe5;
}

.metric-purple {
  background: linear-gradient(135deg, #f7f1ff 0%, #eee8ff 100%);
  border-color: #e2d7ff;
}

.metric-purple i {
  background: linear-gradient(180deg, #8b65ff 0%, #6d49ed 100%);
}
/* Correção forte das cores das métricas */
.overview-strip .metric-icon.metric-blue {
  color: #0878ff !important;
}

.overview-strip .metric-icon.metric-green {
  color: #35b997 !important;
}

.overview-strip .metric-icon.metric-purple i:nth-child(1) {
  background: #8b65ff !important;
}

.overview-strip .metric-icon.metric-purple i:nth-child(2) {
  background: #7b58f2 !important;
}

.overview-strip .metric-icon.metric-purple i:nth-child(3) {
  background: #6d49ed !important;
}
/* Ícone melhorado para o nível: progresso + evolução */
.metric-icon.metric-level {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.9) 0 9px, transparent 10px),
    linear-gradient(135deg, #f6f0ff 0%, #eee7ff 100%);
  border-color: #ded2ff;
}

.metric-icon.metric-level::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,0));
  pointer-events: none;
}

.metric-level svg {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  overflow: visible;
}

.metric-level .level-bar {
  fill: #7958f1;
  filter: drop-shadow(0 5px 7px rgba(103,68,232,.2));
}

.metric-level .level-bar-1 { fill: #9a79ff; }
.metric-level .level-bar-2 { fill: #805cf4; }
.metric-level .level-bar-3 { fill: #6845e8; }

.metric-level .level-arrow,
.metric-level .level-arrow-head {
  fill: none;
  stroke: #5d3ed4;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 980px) {
  .metric-level svg {
    width: 48px;
    height: 48px;
  }
}
/* Respiro entre o hero e a faixa de métricas */
.overview-strip {
  margin-top: 34px;
  margin-bottom: 64px;
}

.content-layout {
  padding-top: 0;
}

@media (max-width: 980px) {
  .overview-strip {
    margin-top: 24px;
    margin-bottom: 48px;
  }
}
/* Roteiro recomendado com ilustrações */
.content-layout {
  grid-template-columns: minmax(0, 1fr) 370px;
}

.roadmap-card {
  padding: 26px 24px 28px;
}

.roadmap-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.roadmap-heading img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.roadmap-heading h3 {
  margin: 0;
  color: #071943;
  font-size: 1.22rem;
  line-height: 1.15;
}

.roadmap-timeline {
  position: relative;
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 27px;
  border-left: 2px dashed #d7e9fb;
}

.roadmap-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  min-height: 102px;
}

.roadmap-number {
  position: absolute;
  z-index: 3;
  top: -1px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  background: #0878ff;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(8,120,255,.22);
}

.roadmap-illustration {
  position: relative;
  z-index: 2;
  grid-column: 1;
  align-self: center;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin-left: 12px;
  background: linear-gradient(135deg, #f7fbff, #eaf5ff);
  border: 1px solid #dceeff;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(8,24,61,.055);
}

.roadmap-illustration img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.roadmap-timeline h4 {
  margin: 0 0 8px;
  color: #071943;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.roadmap-timeline p {
  margin: 0;
  color: #68748b;
  font-size: .96rem;
  font-weight: 500;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .roadmap-timeline li {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .roadmap-illustration {
    width: 76px;
    height: 76px;
  }

  .roadmap-illustration img {
    width: 58px;
    height: 58px;
  }
}
/* CTA azul final da página de conteúdo */
.content-final-cta {
  width: min(1180px, 100%);
  min-height: 270px;
  margin: 10px auto 76px;
  padding: 48px 28px;
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
}

.content-final-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.content-final-cta p {
  max-width: 680px;
  margin: 18px auto 0;
  color: rgba(255,255,255,.94);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.55;
}

.content-final-cta .button.accent {
  margin-top: 28px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .content-final-cta {
    min-height: 235px;
    margin-bottom: 52px;
    padding: 38px 20px;
  }
}
/* Ajuste fino do roteiro: ilustrações preenchidas e recortadas como no mockup */
.roadmap-card {
  padding: 30px 28px 32px;
}

.roadmap-timeline {
  gap: 30px;
}

.roadmap-timeline::before {
  top: 68px;
  bottom: 68px;
  left: 50px;
  border-left-color: #d7eaff;
}

.roadmap-timeline li {
  grid-template-columns: 124px minmax(0, 1fr);
  column-gap: 20px;
  min-height: 132px;
}

.roadmap-number {
  top: 0;
  left: 14px;
  width: 44px;
  height: 44px;
  font-size: 1.12rem;
  box-shadow: 0 14px 28px rgba(8, 120, 255, .28);
}

.roadmap-illustration {
  width: 106px;
  height: 106px;
  margin-left: 24px;
  overflow: hidden;
  border-radius: 22px;
  background: #eef7ff;
}

.roadmap-illustration::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .42);
  pointer-events: none;
}

.roadmap-illustration img {
  position: relative;
  z-index: 1;
  width: 136px;
  height: 136px;
  max-width: none;
  object-fit: cover;
  transform: scale(1.15);
}

@media (max-width: 980px) {
  .roadmap-timeline li {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .roadmap-timeline::before {
    left: 46px;
  }

  .roadmap-illustration {
    width: 96px;
    height: 96px;
    margin-left: 20px;
  }

  .roadmap-illustration img {
    width: 126px;
    height: 126px;
  }
}
/* Correção: manter os desenhos do roteiro com preenchimento forte, sem camada lavada por cima */
.roadmap-illustration::after {
  display: none;
}

.roadmap-illustration img {
  width: 150px;
  height: 150px;
  transform: scale(1.18);
}
/* Painel dos capítulos: título + cards dentro de uma caixa única, como no mockup */
.content-main {
  padding: 36px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e0edf8;
  border-radius: 28px;
  box-shadow: 0 22px 58px rgba(8, 24, 61, .055);
}

.content-main h2 {
  margin-bottom: 30px;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.content-main .chapter-grid {
  gap: 20px;
}

.content-main .chapter-card {
  min-height: 136px;
  padding: 24px 26px;
  border-color: #e5eff8;
  box-shadow: none;
}

.content-main .chapter-card:hover {
  box-shadow: 0 18px 42px rgba(8, 24, 61, .075);
}

.content-main .chapter-card .num {
  width: 58px;
  height: 58px;
  color: #0878ff;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #eef8ff 0%, #e4f2ff 100%);
  border-color: #cfe8ff;
  border-radius: 17px;
}

@media (max-width: 760px) {
  .content-main {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .content-main .chapter-card {
    grid-template-columns: 54px 1fr;
    padding: 20px;
  }

  .content-main .chapter-card .num {
    width: 50px;
    height: 50px;
  }
}
/* Correção do encaixe dos desenhos do roteiro: grandes, mas sem cortar partes importantes */
.roadmap-illustration {
  width: 106px;
  height: 106px;
  margin-left: 24px;
  padding: 13px;
  overflow: visible;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fcff 0%, #eaf5ff 100%);
}

.roadmap-illustration img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.roadmap-number {
  left: 10px;
}

.roadmap-timeline::before {
  left: 48px;
}

@media (max-width: 980px) {
  .roadmap-illustration {
    width: 96px;
    height: 96px;
    padding: 12px;
    overflow: visible;
  }

  .roadmap-timeline::before {
    left: 44px;
  }
}
/* Ajuste simples: dar zoom apenas nos desenhos do roteiro recomendado */
.roadmap-illustration {
  padding: 4px;
  overflow: hidden;
}

.roadmap-illustration img {
  width: 128px;
  height: 128px;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transform: scale(1.08);
}

@media (max-width: 980px) {
  .roadmap-illustration {
    padding: 4px;
  }

  .roadmap-illustration img {
    width: 116px;
    height: 116px;
  }
}
/* Roteiro recomendado: depois do recorte real dos PNGs, encaixar sem cortar no CSS */
.roadmap-illustration {
  width: 106px;
  height: 106px;
  padding: 10px;
  overflow: visible;
}

.roadmap-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

@media (max-width: 980px) {
  .roadmap-illustration {
    width: 96px;
    height: 96px;
    padding: 9px;
  }
}
/* Fórmulas-chave igual ao mockup + links de aula em azul nos capítulos */
.chapter-card div > span {
  display: inline-flex;
  margin-top: 14px;
  color: #0878ff !important;
  font-weight: 850;
  letter-spacing: -.015em;
}

.formula-card {
  padding: 28px 26px 30px;
  border-radius: 26px;
}

.formula-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.formula-heading > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffb21f;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 900;
}

.formula-heading h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.1;
}

.formula-stack {
  gap: 14px;
  margin-top: 0;
}

.formula-stack li {
  display: grid;
  align-items: start;
  gap: 7px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e4edf7;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(8, 24, 61, .035);
}

.formula-stack strong {
  color: #071943;
  font-size: 1.18rem;
  line-height: 1.22;
  letter-spacing: -.035em;
}

.formula-stack strong em {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3em;
  font-style: italic;
}

.formula-stack span,
.formula-stack small {
  color: #65718a;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.5;
}

.formula-stack .formula-expression {
  color: #263755;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.32rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .formula-card {
    padding: 24px 20px;
  }
}
/* Ajuste de peso visual: Fórmulas-chave menos pesado/negrito */
.formula-heading h3 {
  font-weight: 800;
}

.formula-stack strong {
  font-weight: 760;
  letter-spacing: -.025em;
}

.formula-stack span,
.formula-stack small {
  font-weight: 500;
  color: #69758c;
}

.formula-stack .formula-expression {
  font-weight: 600;
  color: #263755;
}
/* Fórmulas-chave: símbolos matemáticos sem negrito excessivo */
.formula-stack strong em,
.formula-stack .formula-expression {
  font-weight: 500;
}

.formula-stack li:first-child strong {
  font-weight: 500;
}
/* Fórmulas-chave: primeiro item com aparência de fórmula matemática */
.formula-stack li:first-child strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.48rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .015em;
  color: #263755;
}
/* Fórmulas-chave: título com fonte mais arredondada, menos aparência de Arial */
.formula-heading h3 {
  font-family: 'Trebuchet MS', 'Segoe UI Rounded', 'Segoe UI', sans-serif;
  font-weight: 800;
  letter-spacing: -.045em;
}
/* Fórmulas-chave: fonte mais amigável e arredondada no título */
.formula-card .formula-heading h3 {
  font-family: 'Nunito', 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 900;
  letter-spacing: -.035em;
  font-size: 1.42rem;
}
/* Página Fundamentos */
.fundamentos-page .fundamentos-art {
  background:
    radial-gradient(circle at 82% 18%, rgba(225, 243, 255, .95) 0 110px, transparent 112px),
    radial-gradient(circle at 10% 82%, rgba(225, 243, 255, .9) 0 150px, transparent 152px),
    linear-gradient(135deg, #ffffff 0%, #f8fcff 56%, #edf7ff 100%);
}

.fundamentos-page .fundamentos-art::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  opacity: .65;
  background-image: linear-gradient(#dcecff 1px, transparent 1px), linear-gradient(90deg, #dcecff 1px, transparent 1px);
  background-size: 28px 28px;
}

.fundamentos-sheet {
  position: absolute;
  right: clamp(90px, 11vw, 190px);
  top: 52px;
  width: min(440px, 38vw);
  min-height: 430px;
  padding: 34px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #dfeaf7;
  border-radius: 28px;
  box-shadow: 0 32px 70px rgba(8, 24, 61, .13);
  transform: rotate(-3deg);
}

.sheet-tag {
  display: inline-flex;
  padding: 8px 14px;
  color: #0878ff;
  font-weight: 900;
  background: #e8f4ff;
  border-radius: 999px;
}

.sheet-title {
  margin: 22px 0 20px;
  color: #071943;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.045em;
}

.calc-grid {
  width: 180px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 3px solid #0878ff;
  border-radius: 18px;
  background: #eff8ff;
}

.calc-grid span {
  display: grid;
  height: 78px;
  place-items: center;
  color: #0878ff;
  font-size: 2.2rem;
  font-weight: 900;
  border: 1px solid rgba(8, 120, 255, .2);
}

.sheet-formula {
  margin: 28px 0 0;
  color: #263755;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  font-style: italic;
}

.fraction-card {
  position: absolute;
  right: 36px;
  bottom: 52px;
  width: 112px;
  height: 128px;
  display: grid;
  place-items: center;
  color: #071943;
  font-size: 2rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  background: #fff3bf;
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(8, 24, 61, .1);
}

.fraction-card i {
  width: 58px;
  height: 3px;
  background: #071943;
  border-radius: 99px;
}

.sticky-note {
  position: absolute;
  right: clamp(430px, 39vw, 610px);
  bottom: 92px;
  max-width: 210px;
  padding: 18px 20px;
  color: #071943;
  font-weight: 850;
  line-height: 1.35;
  background: #d6f4ff;
  box-shadow: 0 18px 36px rgba(8, 24, 61, .1);
  transform: rotate(-5deg);
}

.blue-pen {
  position: absolute;
  right: 68px;
  bottom: 82px;
  width: 24px;
  height: 250px;
  background: linear-gradient(90deg, #031b47 0 20%, #0878ff 20% 76%, #034ea8 76% 100%);
  border-radius: 999px;
  transform: rotate(13deg);
  box-shadow: 0 18px 30px rgba(8, 24, 61, .18);
}

@media (max-width: 980px) {
  .fundamentos-page .fundamentos-art {
    min-height: 360px;
  }

  .fundamentos-sheet {
    position: relative;
    right: auto;
    top: auto;
    width: min(92%, 420px);
    min-height: 360px;
    margin: 30px auto;
  }

  .sticky-note,
  .blue-pen {
    display: none;
  }
}
/* Hero PNG da página Fundamentos */
.fundamentos-png-hero {
  position: relative;
  width: min(1380px, calc(100vw - 52px));
  margin: 0 auto 34px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #e8f2ff;
}

.fundamentos-png-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.fundamentos-hero-hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 12px;
}

.fundamentos-hero-hotspot.primary {
  left: 6.2%;
  top: 62.4%;
  width: 23%;
  height: 8.3%;
}

.fundamentos-hero-hotspot.secondary {
  left: 31.2%;
  top: 62.4%;
  width: 12.5%;
  height: 8.3%;
}

.fundamentos-hero-hotspot:focus-visible {
  outline: 3px solid #0878ff;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .fundamentos-png-hero {
    width: min(100%, calc(100vw - 20px));
    margin-bottom: 24px;
  }
}
/* Fundamentos page - visual pattern from supplied concept */
.fundamentos-pattern-page {
  background: #fff !important;
}

.fundamentos-page-shell {
  width: min(1380px, calc(100% - 52px));
  margin: 0 auto;
}

.fundamentos-pattern-page .fundamentos-png-hero {
  width: 100%;
  margin: 0 auto 34px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.fundamentos-pattern-page .fundamentos-png-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.foundation-learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 36px;
  align-items: start;
  margin: 34px 0 42px;
}

.foundation-main-panel,
.foundation-side-panel,
.foundation-exercise-section {
  background: #fff;
  border: 1px solid #e0edf8;
  border-radius: 28px;
  box-shadow: 0 22px 58px rgba(8, 24, 61, 0.055);
}

.foundation-main-panel {
  padding: 34px;
}

.section-title-left h2 {
  margin: 0;
  color: #071943;
  font-family: "Nunito", "Inter", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-title-left p {
  margin: 10px 0 26px;
  color: #60708d;
  font-weight: 600;
}

.foundation-chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.foundation-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 82px 1fr 22px;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5eff8;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(8, 24, 61, 0.035);
  color: inherit;
  text-decoration: none;
}

.foundation-card h3 {
  margin: 0 0 7px;
  color: #071943;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.25;
}

.foundation-card p {
  margin: 0;
  color: #5e6d88;
  line-height: 1.45;
  font-size: 0.9rem;
  font-weight: 600;
}

.foundation-card b {
  color: #0878ff;
  font-size: 2rem;
  font-weight: 700;
}

.foundation-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #0878ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.foundation-icon span {
  position: absolute;
  font-size: 1.1rem;
}

.foundation-icon span:nth-child(1) {
  right: 16px;
  top: 16px;
}

.foundation-icon span:nth-child(2) {
  right: 22px;
  bottom: 12px;
}

.foundation-icon i {
  position: absolute;
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-style: normal;
}

.foundation-icon i:nth-of-type(1) {
  right: 18px;
  top: 18px;
}

.foundation-icon i:nth-of-type(2) {
  left: 20px;
  bottom: 17px;
}

.foundation-icon i:nth-of-type(3) {
  right: 18px;
  bottom: 17px;
}

.foundation-icon small {
  position: absolute;
  bottom: 11px;
  left: 11px;
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  color: #071943;
}

.foundation-icon em {
  font-style: normal;
  font-size: 1.08rem;
}

.tone-blue {
  background: #e5f4ff;
  color: #0878ff;
}

.tone-green {
  background: #dbf8f1;
  color: #0a9e92;
}

.tone-purple {
  background: #eee9ff;
  color: #263755;
}

.tone-yellow {
  background: #fff0d9;
  color: #bd7a10;
}

.foundation-side-panel {
  padding: 34px 32px;
  position: sticky;
  top: 112px;
}

.foundation-side-panel h2 {
  margin: 0 0 28px;
  color: #071943;
  font-family: "Nunito", "Inter", sans-serif;
  font-size: 1.65rem;
  letter-spacing: -0.045em;
}

.foundation-roadmap {
  position: relative;
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foundation-roadmap::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 20px;
  border-left: 2px dashed #8cc8ff;
}

.foundation-roadmap li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 72px 1fr;
  gap: 14px;
  align-items: center;
}

.road-num {
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #0878ff;
  background: #fff;
  color: #0878ff;
  border-radius: 50%;
  font-weight: 900;
}

.road-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.road-icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.foundation-roadmap h3 {
  margin: 0 0 7px;
  color: #071943;
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 850;
}

.foundation-roadmap p {
  margin: 0;
  color: #61708b;
  line-height: 1.5;
  font-weight: 600;
  font-size: 0.9rem;
}

.foundation-note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
  padding: 16px 18px;
  background: #fff0bf;
  border-radius: 14px;
  color: #071943;
}

.foundation-note span {
  color: #0878ff;
  font-size: 1.8rem;
}

.foundation-note strong {
  font-weight: 850;
  line-height: 1.35;
}

.foundation-exercise-section {
  position: relative;
  overflow: hidden;
  padding: 34px;
  margin-bottom: 34px;
  background: linear-gradient(135deg, #f8fcff, #fff);
}

.section-title-center {
  text-align: center;
}

.section-title-center h2 {
  margin: 0;
  color: #071943;
  font-family: "Nunito", "Inter", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-title-center p {
  margin: 8px 0 24px;
  color: #60708d;
  font-weight: 600;
}

.foundation-exercise-card {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.15fr 260px;
  gap: 28px;
  align-items: center;
  margin: 0 auto;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #e4edf7;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(8, 24, 61, 0.055);
}

.tag-pill {
  display: inline-flex;
  padding: 7px 13px;
  color: #0878ff;
  background: #e8f4ff;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
}

.exercise-question-block p {
  margin: 16px 0 8px;
  color: #263755;
}

.exercise-question-block strong {
  display: block;
  color: #071943;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.level-chip {
  display: inline-flex;
  margin-top: 20px;
  color: #0878ff;
  font-weight: 800;
}

.progress-mini {
  display: block;
  width: 150px;
  height: 8px;
  margin-top: 10px;
  background: linear-gradient(90deg, #37d2a2 0 48%, #edf1f5 48%);
  border-radius: 999px;
}

.exercise-options {
  display: grid;
  gap: 10px;
}

.exercise-options button {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #dfeaf7;
  border-radius: 12px;
  color: #071943;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.exercise-options b {
  color: #0878ff;
}

.exercise-feedback {
  min-height: 22px;
  margin: 3px 0 0;
  color: #35b997;
  font-weight: 800;
}

.exercise-help {
  padding-left: 20px;
  border-left: 1px solid #e8f0f8;
  text-align: center;
}

.exercise-help img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.exercise-help p {
  color: #53627d;
  font-weight: 700;
  line-height: 1.45;
}

.exercise-help .button {
  width: 100%;
  justify-content: center;
}

.more-exercises {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  color: #0878ff;
  font-weight: 900;
  text-decoration: none;
}

.foundation-final-cta {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .foundation-learning-grid {
    grid-template-columns: 1fr;
  }

  .foundation-side-panel {
    position: static;
  }

  .foundation-exercise-card {
    grid-template-columns: 1fr;
  }

  .exercise-help {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid #e8f0f8;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .fundamentos-page-shell {
    width: min(100% - 24px, 1380px);
  }

  .foundation-main-panel,
  .foundation-side-panel,
  .foundation-exercise-section {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .foundation-chapter-grid {
    grid-template-columns: 1fr;
  }

  .foundation-card {
    grid-template-columns: 72px 1fr 18px;
  }

  .foundation-roadmap li {
    grid-template-columns: 38px 62px 1fr;
  }

  .road-icon {
    width: 58px;
    height: 58px;
  }
}

/* Fundamentos hero using clean supplied PNG */
.fundamentos-pattern-page .fundamentos-live-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  margin: 0 auto 34px;
  background: #fff;
}

.fundamentos-pattern-page .fundamentos-live-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fundamentos-hero-copy {
  position: relative;
  z-index: 2;
  width: min(43%, 600px);
  padding: clamp(86px, 9vw, 150px) 0 0 clamp(54px, 5.8vw, 96px);
  color: #071943;
}

.fundamentos-hero-copy h1 {
  position: relative;
  display: inline-block;
  margin: 0 0 38px;
  font-family: "Nunito", "Inter", sans-serif;
  font-size: clamp(4.1rem, 6vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.fundamentos-hero-copy h1::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 8px;
  border-radius: 999px;
  background: #ffd45f;
}

.fundamentos-hero-copy p {
  max-width: 510px;
  margin: 0;
  color: #3d557c;
  font-size: clamp(1.1rem, 1.55vw, 1.55rem);
  line-height: 1.55;
  font-weight: 500;
}

.fundamentos-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: clamp(28px, 3vw, 48px);
}

.fundamentos-hero-actions .button {
  min-height: 62px;
  padding: 0 38px;
  border-radius: 9px;
  font-weight: 850;
}

.fundamentos-hero-actions .secondary {
  border: 2px solid #0878ff;
  background: #fff;
  color: #0878ff;
  box-shadow: none;
}

.fundamentos-hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(36px, 4.3vw, 68px);
  color: #3d557c;
  font-size: clamp(1rem, 1.28vw, 1.28rem);
  font-weight: 700;
}

.fundamentos-hero-proof span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 3px solid #0878ff;
  color: #0878ff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
}

@media (max-width: 1050px) {
  .fundamentos-pattern-page .fundamentos-live-hero {
    min-height: 720px;
    aspect-ratio: auto;
  }

  .fundamentos-pattern-page .fundamentos-live-hero img {
    object-position: 63% center;
    opacity: 0.55;
  }

  .fundamentos-hero-copy {
    width: min(88%, 620px);
    padding: 86px 0 0 42px;
  }
}

@media (max-width: 640px) {
  .fundamentos-pattern-page .fundamentos-live-hero {
    min-height: 650px;
    border-radius: 0;
  }

  .fundamentos-pattern-page .fundamentos-live-hero img {
    object-position: 68% center;
    opacity: 0.36;
  }

  .fundamentos-hero-copy {
    width: calc(100% - 36px);
    padding: 74px 18px 0;
  }

  .fundamentos-hero-copy h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .fundamentos-hero-actions .button {
    width: 100%;
    justify-content: center;
  }
}

.foundation-icon.foundation-image {
  background: transparent;
  border-radius: 18px;
  overflow: visible;
  box-shadow: none;
}

.foundation-icon.foundation-image img {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 18px;
}

.foundation-card:has(.foundation-image) {
  grid-template-columns: 86px 1fr 22px;
}
/* Ajuste de largura: Fundamentos alinhado à página de Funções */
.fundamentos-page-shell {
  width: min(1180px, calc(100% - 40px));
}

.fundamentos-pattern-page .fundamentos-live-hero {
  margin-bottom: 30px;
}

.foundation-learning-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin: 30px 0 38px;
}

.foundation-main-panel {
  padding: 30px;
}

.foundation-side-panel {
  padding: 30px 28px;
}

.foundation-chapter-grid {
  gap: 14px;
}

.foundation-card {
  min-height: 106px;
  gap: 14px;
  padding: 14px;
}

.foundation-card:has(.foundation-image) {
  grid-template-columns: 82px 1fr 18px;
}

.foundation-icon.foundation-image img {
  width: 68px;
  height: 68px;
}

.foundation-exercise-section {
  padding: 30px;
}

@media (max-width: 760px) {
  .fundamentos-page-shell {
    width: min(100% - 28px, 1180px);
  }
}
/* Ajuste fino da tipografia do hero Fundamentos: mais próximo da referência */
.fundamentos-hero-copy {
  width: min(45%, 520px);
  padding: clamp(74px, 7.2vw, 116px) 0 0 clamp(44px, 5vw, 72px);
}

.fundamentos-hero-copy h1 {
  margin-bottom: 34px;
  font-size: clamp(3.55rem, 4.85vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.fundamentos-hero-copy h1::after {
  bottom: -11px;
  height: 6px;
}

.fundamentos-hero-copy p {
  max-width: 455px;
  color: #3e557a;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.58;
  font-weight: 500;
}

.fundamentos-hero-actions {
  gap: 16px;
  margin-top: clamp(24px, 2.55vw, 34px);
}

.fundamentos-hero-actions .button {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.fundamentos-hero-proof {
  margin-top: clamp(28px, 3.4vw, 46px);
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  font-weight: 650;
}

.fundamentos-hero-proof span {
  width: 28px;
  height: 28px;
  border-width: 2px;
  font-size: 0.82rem;
}

@media (max-width: 1050px) {
  .fundamentos-hero-copy {
    width: min(82%, 560px);
  }
}
/* Fonte do título do hero Fundamentos - mais fiel à referência */
.fundamentos-hero-copy h1 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(3.65rem, 4.95vw, 5.25rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}
/* Desenhos específicos do roteiro recomendado de Fundamentos */
.fundamentos-pattern-page .foundation-roadmap .road-icon {
  background: transparent;
  border-radius: 22px;
  overflow: visible;
}

.fundamentos-pattern-page .foundation-roadmap .road-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 18px;
}
/* Refinamento Fundamentos: desenhos maiores e tipografia menos pesada */
.fundamentos-pattern-page .foundation-card h3,
.fundamentos-pattern-page .foundation-roadmap h3,
.fundamentos-pattern-page .foundation-side-panel h2,
.fundamentos-pattern-page .section-title-left h2,
.fundamentos-pattern-page .section-title-center h2 {
  font-family: "Nunito", "Inter", sans-serif;
  letter-spacing: -0.035em;
}

.fundamentos-pattern-page .foundation-card h3 {
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.22;
}

.fundamentos-pattern-page .foundation-card p {
  color: #596985;
  font-size: 0.93rem;
  font-weight: 560;
  line-height: 1.44;
}

.fundamentos-pattern-page .foundation-card b {
  font-size: 1.85rem;
  font-weight: 700;
}

.fundamentos-pattern-page .foundation-side-panel h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.fundamentos-pattern-page .foundation-roadmap li {
  grid-template-columns: 42px 88px 1fr;
  gap: 14px;
}

.fundamentos-pattern-page .foundation-roadmap h3 {
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.fundamentos-pattern-page .foundation-roadmap p {
  color: #61708a;
  font-size: 0.92rem;
  font-weight: 560;
  line-height: 1.48;
}

.fundamentos-pattern-page .foundation-roadmap .road-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
}

.fundamentos-pattern-page .foundation-roadmap .road-icon img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.fundamentos-pattern-page .foundation-roadmap::before {
  left: 19px;
}

.fundamentos-pattern-page .foundation-note strong {
  font-family: "Nunito", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.fundamentos-pattern-page .foundation-icon.foundation-image img {
  width: 76px;
  height: 76px;
}

.fundamentos-pattern-page .foundation-card:has(.foundation-image) {
  grid-template-columns: 88px 1fr 18px;
}

@media (max-width: 760px) {
  .fundamentos-pattern-page .foundation-roadmap li {
    grid-template-columns: 38px 76px 1fr;
  }

  .fundamentos-pattern-page .foundation-roadmap .road-icon,
  .fundamentos-pattern-page .foundation-roadmap .road-icon img {
    width: 76px;
    height: 76px;
  }
}
/* Página de Álgebra seguindo o padrão visual aprovado */
.algebra-page .fundamentos-hero-copy h1 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.075em;
}

.algebra-page .fundamentos-hero-copy p {
  max-width: 470px;
}

.algebra-page .algebra-icon {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.algebra-page .algebra-icon em {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1;
}

.algebra-page .foundation-card:has(.algebra-icon) {
  grid-template-columns: 88px 1fr 18px;
}

.algebra-page .foundation-roadmap .road-icon {
  width: 82px;
  height: 82px;
}

.algebra-page .foundation-roadmap .road-icon img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}
/* Álgebra: PNGs reais nos cards e no roteiro recomendado */
.algebra-page .foundation-icon.foundation-image {
  width: 78px;
  height: 78px;
  background: transparent;
  border-radius: 20px;
  box-shadow: none;
  overflow: visible;
}

.algebra-page .foundation-icon.foundation-image img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 20px;
  display: block;
}

.algebra-page .foundation-card:has(.foundation-image) {
  grid-template-columns: 92px 1fr 18px;
}

.algebra-page .foundation-roadmap .road-icon {
  width: 90px;
  height: 90px;
  background: transparent;
  border-radius: 24px;
  overflow: visible;
  box-shadow: none;
}

.algebra-page .foundation-roadmap .road-icon img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 24px;
  display: block;
}

@media (max-width: 760px) {
  .algebra-page .foundation-card:has(.foundation-image) {
    grid-template-columns: 78px 1fr 18px;
  }

  .algebra-page .foundation-icon.foundation-image,
  .algebra-page .foundation-icon.foundation-image img {
    width: 68px;
    height: 68px;
  }

  .algebra-page .foundation-roadmap .road-icon,
  .algebra-page .foundation-roadmap .road-icon img {
    width: 76px;
    height: 76px;
  }
}
/* Página de Trigonometria seguindo o padrão visual aprovado */
.trig-page .fundamentos-hero-copy h1 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.075em;
}

.trig-page .fundamentos-hero-copy p {
  max-width: 500px;
}

.trig-page .foundation-card:has(.trig-icon) {
  grid-template-columns: 88px 1fr 18px;
}

.trig-page .trig-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-family: "Nunito", "Inter", sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 18px 34px rgba(8, 120, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.trig-page .trig-icon::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border: 3px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 999px;
  opacity: 0.18;
  right: -12px;
  bottom: -14px;
  transform: rotate(-18deg);
}

.trig-page .trig-icon em {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  font-style: normal;
  line-height: 1;
  color: #0878ff;
}

.trig-page .trig-icon em:nth-child(1) {
  position: relative;
}

.trig-page .foundation-roadmap .road-icon {
  width: 90px;
  height: 90px;
}

.trig-page .foundation-roadmap .road-icon img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 24px;
}

@media (max-width: 760px) {
  .trig-page .foundation-card:has(.trig-icon) {
    grid-template-columns: 76px 1fr 18px;
  }

  .trig-page .trig-icon {
    width: 66px;
    height: 66px;
  }

  .trig-page .foundation-roadmap .road-icon,
  .trig-page .foundation-roadmap .road-icon img {
    width: 76px;
    height: 76px;
  }
}
/* Trigonometria: PNGs reais nos cards das matérias */
.trig-page .foundation-icon.foundation-image {
  width: 78px;
  height: 78px;
  background: transparent;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  overflow: visible;
}

.trig-page .foundation-icon.foundation-image img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  border-radius: 20px;
}

.trig-page .foundation-card:has(.foundation-image) {
  grid-template-columns: 92px 1fr 18px;
  align-items: center;
}

@media (max-width: 760px) {
  .trig-page .foundation-card:has(.foundation-image) {
    grid-template-columns: 78px 1fr 18px;
  }

  .trig-page .foundation-icon.foundation-image,
  .trig-page .foundation-icon.foundation-image img {
    width: 68px;
    height: 68px;
  }
}

/* Geometria Plana: padrão visual dos cards */
.geometry-page .fundamentos-hero-copy h1 {
  font-size: clamp(52px, 6.4vw, 98px);
  letter-spacing: -0.075em;
}

.geometry-page .fundamentos-hero-copy p {
  max-width: 470px;
}

.geometry-page .foundation-card {
  grid-template-columns: 84px 1fr 18px;
  align-items: center;
  min-height: 132px;
}

.geometry-page .geometry-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eef8ff 0%, #e3f3ff 100%);
  border: 1px solid #cfe8ff;
  color: #0777ee;
  font-family: "Nunito", "Inter", sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(18, 102, 214, 0.08);
}

.geometry-page .foundation-card:nth-child(3n + 2) .geometry-icon {
  background: linear-gradient(145deg, #eefcf7 0%, #dff8ee 100%);
  border-color: #ccefe3;
  color: #0e9f8f;
}

.geometry-page .foundation-card:nth-child(3n) .geometry-icon {
  background: linear-gradient(145deg, #fbf4ff 0%, #eee7ff 100%);
  border-color: #e5dafd;
  color: #6d5be7;
}


@media (max-width: 760px) {
  .geometry-page .foundation-card {
    grid-template-columns: 74px 1fr 18px;
  }

  .geometry-page .geometry-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 22px;
  }
}

/* Geometria Plana: PNGs reais nos cards */
.geometry-page .foundation-icon.geometry-image {
  width: 78px;
  height: 78px;
  background: transparent;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  overflow: visible;
}

.geometry-page .foundation-icon.geometry-image img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  border-radius: 20px;
}

.geometry-page .foundation-card:has(.geometry-image) {
  grid-template-columns: 92px 1fr 18px;
  align-items: center;
}

@media (max-width: 760px) {
  .geometry-page .foundation-card:has(.geometry-image) {
    grid-template-columns: 78px 1fr 18px;
  }

  .geometry-page .foundation-icon.geometry-image,
  .geometry-page .foundation-icon.geometry-image img {
    width: 68px;
    height: 68px;
  }
}
.combo-page .fundamentos-hero-copy h1 {
  font-size: clamp(42px, 5vw, 78px);
  letter-spacing: -0.072em;
  max-width: 720px;
}

.combo-page .fundamentos-hero-copy p {
  max-width: 560px;
}

.combo-page .geometry-icon {
  font-size: clamp(17px, 1.8vw, 25px);
  letter-spacing: -0.04em;
}


.matrix-page .fundamentos-live-hero img {
  inset: 0 -3px;
  width: calc(100% + 6px);
  max-width: none;
}

.matrix-page .fundamentos-live-hero::before,
.matrix-page .fundamentos-live-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  z-index: 4;
  pointer-events: none;
}

.matrix-page .fundamentos-live-hero::before {
  left: -1px;
}

.matrix-page .fundamentos-live-hero::after {
  right: -1px;
}
.matrix-page .fundamentos-hero-copy h1 {
  font-size: clamp(48px, 5.6vw, 88px);
  letter-spacing: -0.072em;
  max-width: 700px;
}

.matrix-page .fundamentos-hero-copy p {
  max-width: 560px;
}

.matrix-page .geometry-icon {
  font-size: clamp(18px, 1.9vw, 26px);
  letter-spacing: -0.045em;
}




.complex-page .fundamentos-hero-copy h1 {
  font-size: clamp(46px, 5.3vw, 86px);
  letter-spacing: -0.072em;
  max-width: 650px;
}

.complex-page .fundamentos-hero-copy p {
  max-width: 560px;
}

.complex-page .geometry-icon {
  font-size: clamp(17px, 1.75vw, 24px);
  letter-spacing: -0.045em;
}

/* Movimento dos cards da trilha de Fundamentos */
.fundamentos-pattern-page .foundation-card {
  animation: foundation-card-enter .46s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: var(--foundation-card-delay, 0ms);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.fundamentos-pattern-page .foundation-card:hover,
.fundamentos-pattern-page .foundation-card:focus-visible {
  transform: translateY(-6px);
  border-color: #cfe1f4;
  box-shadow: 0 24px 48px rgba(8, 43, 96, .12);
  outline: none;
}

.fundamentos-pattern-page .foundation-card .foundation-image img,
.fundamentos-pattern-page .foundation-card b {
  transition: transform .2s ease;
}

.fundamentos-pattern-page .foundation-card:hover .foundation-image img,
.fundamentos-pattern-page .foundation-card:focus-visible .foundation-image img {
  transform: translateY(-2px) scale(1.04);
}

.fundamentos-pattern-page .foundation-card:hover b,
.fundamentos-pattern-page .foundation-card:focus-visible b {
  transform: translateX(4px);
}

@keyframes foundation-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fundamentos-pattern-page .foundation-card {
    animation: none;
    transition: none;
  }
}