:root {
  --dark: #071f1b;
  --ink: #123031;
  --muted: #4f6264;
  --teal: #03777d;
  --teal-dark: #075157;
  --green: #3ba856;
  --yellow: #f5c84a;
  --ice: #f0f6f7;
  --mist: #e8f3f4;
  --card: #dfeef0;
  --white: #fff;
  --wrap: min(1180px, calc(100% - 48px));
  --shadow: 0 24px 70px rgba(7, 31, 27, 0.13);
  --soft-shadow: 0 18px 48px rgba(7, 31, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
}

.report-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid rgba(18, 48, 49, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.report-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-family: "Lexend", "DM Sans", sans-serif;
  font-size: 1.44rem;
  font-weight: 700;
}

.report-brand img {
  width: 42px;
  height: 46px;
  object-fit: contain;
}

.site-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-links a:hover,
.site-links .active {
  color: var(--teal);
}

.site-links .cta-link {
  padding: 12px 21px;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
}

.cell-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.76fr);
  gap: clamp(42px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 7vw, 86px) max(24px, calc((100vw - 1210px) / 2)) 74px;
  background: var(--ice);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cell-hero-copy h1 {
  max-width: 820px;
  margin: 0;
  color: var(--dark);
  font-family: "Lexend", "DM Sans", sans-serif;
  font-size: clamp(2.6rem, 5.1vw, 4.7rem);
  font-weight: 700;
  line-height: 1.07;
}

.cell-hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.62;
}

.cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 25px;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: #00929a;
  transform: translateY(-2px);
}

.button.ghost {
  color: var(--teal-dark);
  background: var(--white);
  box-shadow: inset 0 0 0 2px rgba(3, 119, 125, 0.22);
}

.button.ghost:hover {
  color: var(--white);
  background: var(--teal-dark);
}

.cell-hero-media {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  border-radius: 43% 43% 18px 18px / 28% 28% 18px 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.cell-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 490px;
  object-fit: cover;
}

.hero-insight {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 20px 22px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(6, 31, 30, 0.8);
  backdrop-filter: blur(12px);
}

.hero-insight span {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-insight strong {
  font-family: "Lexend", "DM Sans", sans-serif;
  font-size: 1.1rem;
}

.report-nav {
  position: sticky;
  top: 82px;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 44px);
  padding: 15px 24px;
  border-bottom: 1px solid rgba(18, 48, 49, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.report-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.report-nav a:hover {
  color: var(--teal);
}

.section {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(66px, 8vw, 96px) 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  color: var(--dark);
  font-family: "Lexend", "DM Sans", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
}

.section-heading p {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-rule,
.mini-rule {
  width: 50px;
  height: 3px;
  margin: 0 auto 23px;
  background: var(--teal);
}

.section-heading.left .section-rule {
  margin-left: 0;
}

.report-intro {
  display: grid;
  grid-template-columns: minmax(270px, 0.69fr) minmax(0, 1.31fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.insight-card,
.policy-card,
.latam-chart-card,
.pisa-card,
.research-card,
.trend-card {
  border-radius: 22px;
  background: var(--white);
}

.insight-card {
  min-height: 280px;
  padding: 28px 24px;
  border: 1px solid rgba(18, 48, 49, 0.1);
}

.number {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.insight-card h3,
.policy-card h3,
.latam-chart-card h3,
.pisa-card h3,
.research-copy h3,
.trend-card h3 {
  margin: 0;
  color: var(--dark);
  font-family: "Lexend", "DM Sans", sans-serif;
  line-height: 1.17;
}

.insight-card h3 {
  font-size: 1.22rem;
}

.mini-rule {
  margin: 19px 0 17px;
  height: 2px;
}

.insight-card p,
.policy-card p,
.latam-chart-card p,
.pisa-card p,
.trend-card p,
.policy-point p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.report-band {
  padding: clamp(66px, 8vw, 96px) 0;
  background: var(--ice);
}

.segmented-control {
  width: var(--wrap);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 34px;
}

.segmented-control button,
.research-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  color: var(--teal-dark);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(3, 119, 125, 0.18);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.segmented-control button:hover,
.segmented-control button.active,
.research-tabs button:hover,
.research-tabs button.active {
  color: var(--white);
  background: var(--teal);
  transform: translateY(-1px);
}

.policy-grid {
  width: var(--wrap);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.policy-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid rgba(3, 119, 125, 0.14);
  box-shadow: var(--soft-shadow);
}

.policy-card.latam {
  border-color: rgba(59, 168, 86, 0.28);
}

.policy-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-card-top strong {
  max-width: 112px;
  color: var(--teal);
  text-align: right;
}

.policy-card h3 {
  font-size: 1.38rem;
}

.policy-status {
  margin: 15px 0 12px !important;
  color: var(--dark) !important;
  font-weight: 800;
}

.latam-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
  gap: clamp(40px, 7vw, 78px);
  align-items: center;
}

.policy-points {
  display: grid;
  gap: 18px;
}

.policy-point {
  padding-bottom: 21px;
  border-bottom: 1px solid rgba(18, 48, 49, 0.15);
}

.policy-point h3 {
  margin: 0 0 8px;
  color: var(--dark);
  font-family: "Lexend", "DM Sans", sans-serif;
  font-size: 1.15rem;
}

.latam-chart-card {
  padding: 30px;
  border: 1px solid rgba(3, 119, 125, 0.15);
  background: var(--mist);
  box-shadow: var(--soft-shadow);
}

.latam-chart-card h3,
.pisa-card h3,
.research-copy h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.canvas-shell {
  width: 100%;
  min-height: 282px;
  margin: 22px 0 18px;
}

.canvas-shell canvas {
  display: block;
  width: 100%;
}

.evidence-section {
  padding: clamp(66px, 8vw, 96px) 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 31, 30, 0.96), rgba(8, 45, 47, 0.94)),
    url("../images/celulares-aula-hero.jpg") center/cover no-repeat;
}

.evidence-section .section-heading h2,
.evidence-section .section-heading p {
  color: var(--white);
}

.evidence-section .section-rule {
  background: var(--yellow);
}

.evidence-grid {
  width: var(--wrap);
  display: grid;
  grid-template-columns: minmax(300px, 0.77fr) minmax(0, 1.23fr);
  gap: 26px;
  margin: 0 auto;
}

.pisa-card,
.research-card {
  padding: 29px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
}

.impact-bars {
  display: grid;
  gap: 20px;
  margin-top: 27px;
}

.impact-row {
  display: grid;
  gap: 9px;
}

.impact-row div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-weight: 800;
}

.impact-row span {
  color: var(--muted);
  font-size: 0.91rem;
}

.impact-row i {
  display: block;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfecee;
}

.impact-row i::before {
  content: "";
  display: block;
  width: var(--bar-size);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--green));
}

.research-card {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 25px;
}

.research-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.research-tabs button {
  width: 100%;
  padding: 12px 15px;
  text-align: left;
}

.research-copy {
  min-height: 330px;
}

.research-copy .number {
  margin-bottom: 18px;
}

.research-stack {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.research-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.research-stack strong {
  color: var(--dark);
}

.research-implication {
  padding: 18px;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.55;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.trend-card {
  min-height: 240px;
  padding: 29px;
  background: var(--mist);
}

.trend-card h3 {
  font-size: 1.34rem;
}

.trend-card p {
  margin-top: 18px;
}

.source-note {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 18px 22px;
  border-radius: 16px;
  color: var(--muted);
  background: var(--ice);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.report-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 38px max(24px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: var(--dark);
}

.report-footer strong {
  font-family: "Lexend", "DM Sans", sans-serif;
  font-size: 1.45rem;
}

.report-footer p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.report-footer a {
  color: var(--yellow);
  font-weight: 800;
}

@media (max-width: 1060px) {
  .cell-hero,
  .latam-panel,
  .report-intro,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .cell-hero-media {
    min-height: 390px;
  }

  .cell-hero-media img {
    min-height: 390px;
  }

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

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

@media (max-width: 720px) {
  .report-header {
    height: 72px;
    padding: 0 18px;
  }

  .site-links a:not(.cta-link) {
    display: none;
  }

  .site-links .cta-link {
    padding: 10px 17px;
  }

  .cell-hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cell-hero-copy h1 {
    font-size: clamp(2.22rem, 11vw, 3rem);
  }

  .cell-hero-media,
  .cell-hero-media img {
    min-height: 335px;
  }

  .report-nav {
    top: 72px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 13px 18px;
  }

  .report-nav a {
    white-space: nowrap;
  }

  .section,
  .policy-grid,
  .segmented-control,
  .evidence-grid {
    width: min(100% - 36px, 1180px);
  }

  .insight-grid,
  .policy-grid,
  .trend-grid {
    grid-template-columns: 1fr;
  }

  .research-card {
    display: block;
  }

  .research-tabs {
    margin-bottom: 26px;
  }

  .report-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
