:root {
  --bg: #f1f5fb;
  --panel: #ffffff;
  --text: #14233b;
  --muted: #4d607e;
  --stroke: #d7e0ec;
  --accent: #0f5b8d;
  --accent-2: #118d8b;
  --accent-soft: #e7f4ff;
  --ok: #16a34a;
  --hero-start: #0f355e;
  --hero-mid: #116291;
  --hero-end: #11a2b3;
  --hero-ink: #f5fbff;
  --incompany: #19408a;
  --recorded: #4f637e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at 85% 2%, rgba(53, 119, 185, 0.18) 0%, rgba(53, 119, 185, 0) 34%),
    radial-gradient(circle at -10% 100%, rgba(17, 141, 139, 0.14) 0%, rgba(17, 141, 139, 0) 36%),
    linear-gradient(180deg, #edf2f9 0%, #f7fbff 65%);
}

body.tone-rh {
  --hero-start: #0d315c;
  --hero-mid: #1e4e8f;
  --hero-end: #357fc5;
}

body.tone-lideranca {
  --hero-start: #3c2a67;
  --hero-mid: #6a2f8f;
  --hero-end: #b54fa2;
}

body.tone-estrategia {
  --hero-start: #4a1f2b;
  --hero-mid: #8f2d3b;
  --hero-end: #d14f3c;
}

body.tone-publica {
  --hero-start: #2b1f64;
  --hero-mid: #5130a2;
  --hero-end: #8a4ee3;
}

body.tone-empresarial {
  --hero-start: #5a3c0f;
  --hero-mid: #a66a16;
  --hero-end: #d89b24;
}

body.tone-financeira {
  --hero-start: #1f4f33;
  --hero-mid: #1f7d4b;
  --hero-end: #3abf71;
}

.course-page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}

.brand-logo {
  max-height: 52px;
  width: auto;
}

.header-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.course-page-main {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(19, 38, 73, 0.09);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--hero-ink);
  border: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(130deg, var(--hero-start) 0%, var(--hero-mid) 52%, var(--hero-end) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  border: 34px solid rgba(255, 255, 255, 0.14);
}

.hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.8fr);
  gap: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  opacity: 0.92;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  max-width: 16ch;
}

.subtitle {
  margin: 12px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.06rem;
  line-height: 1.5;
  max-width: 78ch;
}

.meta-line,
.chip-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-line {
  margin-top: 16px;
}

.chip-row {
  margin-top: 8px;
}

.hero-actions {
  margin-top: 18px;
}

.macro-tag,
.hero-chip,
.chip {
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.macro-tag,
.hero-chip {
  padding: 7px 12px;
  font-size: 0.86rem;
}

.macro-tag {
  background: rgba(9, 22, 43, 0.44);
}

.hero-chip {
  background: rgba(255, 255, 255, 0.12);
}

.chip {
  font-size: 0.79rem;
  padding: 5px 10px;
  background: rgba(8, 22, 42, 0.34);
}

.hero-next-class {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  color: #13233a;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(209, 223, 239, 0.9);
  align-self: start;
  box-shadow: 0 12px 28px rgba(13, 31, 58, 0.15);
}

.hero-next-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 800;
  color: #48658b;
}

.hero-next-class strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-next-class p {
  margin: 8px 0 0;
  color: #445a79;
  font-family: "Manrope", sans-serif;
  font-size: 0.94rem;
  line-height: 1.4;
}

.hero-value-grid {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-value-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(6, 19, 38, 0.28);
  padding: 11px 12px;
  display: grid;
  gap: 5px;
}

.hero-value-card span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-value-card strong {
  font-size: 0.94rem;
  line-height: 1.35;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.incompany-btn,
.recorded-btn,
.btn-outline {
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  cursor: pointer;
}

.primary-btn {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.secondary-btn {
  background: #fff;
  border-color: #c3d1e6;
  color: var(--accent);
}

.ghost-btn,
.btn-outline {
  background: #fff;
  border-color: #d1ddea;
  color: #2a3f5f;
}

.incompany-btn {
  background: var(--incompany);
  border-color: var(--incompany);
  color: #fff;
}

.recorded-btn {
  background: var(--recorded);
  border-color: var(--recorded);
  color: #fff;
}

.section-intro {
  background: linear-gradient(120deg, #f6fbff 0%, #eef5ff 100%);
}

h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.section-desc,
.empty-state {
  margin: 0;
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
  font-size: 1rem;
}

.landing-grid,
.layout {
  display: grid;
  gap: 16px;
}

.landing-grid {
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
}

.layout {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
}

.lead-panel {
  background: linear-gradient(160deg, #ffffff 0%, #f5faff 100%);
}

.lead-form {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.86rem;
  color: #304766;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid #c7d7ea;
  border-radius: 10px;
  padding: 10px 11px;
  font: 500 0.93rem/1.4 "Manrope", sans-serif;
  color: #14233b;
  background: #fff;
}

.lead-form textarea {
  resize: vertical;
  min-height: 92px;
}

.lead-status {
  min-height: 20px;
  margin: 2px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  color: #385274;
}

.content-grid,
.teacher-list,
.class-list,
.relations-grid {
  display: grid;
  gap: 10px;
}

.content-item,
.teacher-item,
.class-item,
.relation-item,
.offer-card {
  border-radius: 13px;
  border: 1px solid #d7e4f1;
  background: #f7fbff;
}

.content-item {
  padding: 12px;
}

.content-item h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.content-item p,
.teacher-cv,
.class-item span,
.offer-card p {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.52;
  color: #3a4f6f;
}

.global-files {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.global-files a {
  color: var(--accent);
  font-weight: 700;
}

.teacher-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 11px;
}

.teacher-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #c6d4e6;
}

.teacher-avatar-fallback {
  display: grid;
  place-items: center;
  background: #e8f2ff;
  color: var(--accent);
  font-weight: 800;
}

.teacher-name {
  margin: 0;
  font-size: 1rem;
}

.teacher-degree {
  margin: 3px 0 5px;
  font-size: 0.86rem;
  color: #587093;
}

.class-item {
  padding: 12px;
  border-left: 5px solid #87aad2;
  display: grid;
  gap: 4px;
}

.class-item.status-open {
  border-left-color: #16a34a;
  background: linear-gradient(90deg, #f4fff9 0%, #f8fcff 100%);
}

.class-item strong {
  font-size: 1rem;
}

.class-enroll-btn {
  margin-top: 8px;
  width: fit-content;
}

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

.offer-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.offer-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.offer-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.relation-item {
  padding: 10px;
}

.relation-title {
  margin: 0 0 7px;
  font-size: 0.93rem;
}

.relation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.relation-link {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #bfd1e5;
  color: #214e76;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

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

.testimonial-card {
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(150deg, #124f72 0%, #0d3554 100%);
  color: #fff;
}

.testimonial-card p {
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.testimonial-author {
  font-size: 0.84rem;
  opacity: 0.95;
}

.logo-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.logo-tile {
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  min-height: 74px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 8px;
}

.logo-tile img {
  max-height: 48px;
  max-width: 100%;
}

.final-cta {
  background:
    radial-gradient(circle at 85% 0%, rgba(38, 110, 176, 0.2) 0%, rgba(38, 110, 176, 0) 36%),
    linear-gradient(135deg, #f4f9ff 0%, #eaf4ff 100%);
}

@media (max-width: 1120px) {
  .hero-main,
  .hero-value-grid,
  .landing-grid,
  .layout,
  .offer-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .course-page-header {
    padding: 10px 12px;
  }

  .brand-logo {
    max-height: 44px;
  }

  .course-page-main {
    padding: 12px;
    gap: 12px;
  }

  .panel {
    padding: 14px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: 1.72rem;
  }

  .subtitle {
    font-size: 0.97rem;
  }

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