/* ==========================================================================
   Facilita Academy — Design System
   Moderno, minimalista, alto contraste editorial + acento vermelho da marca.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  /* surfaces */
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f2f0;
  --ink: #101011;
  --ink-soft: #38393c;
  --muted: #6d6e72;
  --muted-2: #9a9a9e;
  --line: #e8e6e3;
  --line-strong: #dad7d3;

  /* brand */
  --red: #e11c2e;
  --red-dark: #ad1220;
  --red-soft: #fdecec;
  --ring: rgba(225, 28, 46, .16);

  /* radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(16, 16, 17, .04), 0 1px 1px rgba(16,16,17,.02);
  --shadow-md: 0 10px 30px rgba(16, 16, 17, .06);
  --shadow-lg: 0 30px 80px rgba(16, 16, 17, .12);
  --shadow-glow: 0 20px 50px rgba(225, 28, 46, .22);

  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--red); color: #fff; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(250, 250, 249, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 138px; height: auto; display: block; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--red-dark);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav a { position: relative; padding: 6px 2px; transition: color .15s ease; }
.nav a:hover { color: var(--red); }
.nav a:last-child {
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: #fff;
}
.nav a:last-child:hover { background: var(--red); color: #fff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-md); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--shadow-glow); }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 13px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, .78fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 64px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle at center, rgba(225,28,46,.14), rgba(225,28,46,0) 68%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-blob { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(30px); }
.hero-blob-a { top: -10%; right: -6%; width: 42vw; height: 42vw; max-width: 520px; max-height: 520px; background: radial-gradient(circle, rgba(225,28,46,.22), rgba(225,28,46,0) 70%); }
.hero-blob-b { bottom: -14%; left: 2%; width: 30vw; height: 30vw; max-width: 360px; max-height: 360px; background: radial-gradient(circle, rgba(16,16,17,.10), rgba(16,16,17,0) 70%); }
.hero-copy, .hero-img { position: relative; z-index: 1; }

.hero-illustration { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.hero-illustration-img { width: 100%; height: auto; display: block; }
.hero-float-badge {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 10px 24px rgba(16,16,17,.10);
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
}
.hfb-0 { top: 4%; left: -4%; }
.hfb-1 { top: 2%; right: -2%; }
.hfb-2 { top: 24%; left: -12%; }
.hfb-3 { top: 22%; right: -14%; }
.hfb-4 { bottom: 30%; left: -8%; }
.hfb-5 { bottom: 26%; right: -10%; }
.hfb-6 { bottom: 6%; left: 2%; }
.hfb-7 { bottom: 2%; right: 4%; }
@media (max-width: 980px) {
  .hero-float-badge { display: none; }
}

.glass-card {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.5);
}
.service-icon { font-size: 28px; display: block; margin-bottom: 10px; }

.faq-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 4px 22px;
}
.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 750;
  font-size: 15.5px;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--red);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; color: var(--muted); line-height: 1.6; }
.hero-word { display: inline-block; will-change: transform, opacity; }
.hero h1 {
  max-width: 660px;
  margin: 18px 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.65;
}
.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* logo strip */
.strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px clamp(18px, 5vw, 64px);
  background: var(--ink);
}
.strip span {
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ==========================================================================
   Sections / generic layout
   ========================================================================== */
.section { padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 64px); }
.section.compact { padding-top: 60px; padding-bottom: 40px; }
.section.soft { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head.slim { max-width: 660px; }
.section h1, .section h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.section p, .mini-card p, .course-card p, .panel p, .lesson p {
  color: var(--muted);
  line-height: 1.6;
}

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mini-card, .panel, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mini-card:hover, .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tilt-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.tilt-card.mini-card:hover, .tilt-card.step-card:hover { transform: none; }
.mini-card h3, .card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 750; }

/* stat / feature number badges used across mini-cards */
.mini-card { position: relative; padding-top: 26px; }

/* discipline accordion (home) */
.accordion-list { display: grid; gap: 12px; }

/* course finder (interactive filter) */
.course-finder {
  margin-top: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface) 60%, var(--red-soft) 140%);
  position: relative;
  overflow: hidden;
}
.course-finder::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 40%;
  height: 180%;
  background: radial-gradient(circle, rgba(225,28,46,.10), transparent 70%);
  pointer-events: none;
}
.course-finder select {
  font-weight: 650;
  cursor: pointer;
}
.finder-results { margin-top: 22px; }
.finder-results:empty { display: none; }
#finderEmpty { margin-top: 20px; text-align: center; border-color: var(--red); }
#finderEmpty strong { color: var(--red-dark); }
.discipline-accordion {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.discipline-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 750;
  color: var(--ink);
}
.discipline-accordion summary::-webkit-details-marker { display: none; }
.discipline-accordion summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.discipline-accordion[open] summary::after { transform: rotate(225deg); }
.discipline-accordion summary .meta { margin-left: 12px; margin-right: auto; font-weight: 700; }
.track-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 22px 20px;
}
.track-list a {
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.track-list a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ==========================================================================
   How it works / steps (home page)
   ========================================================================== */
.steps { counter-reset: step; }
.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px 22px;
}
.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 17px; margin-bottom: 6px; }
.step-card p { font-size: 14px; margin: 0; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  margin: clamp(20px, 4vw, 40px) clamp(18px, 5vw, 64px);
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(225,28,46,.35), transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); max-width: 480px; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.7); max-width: 420px; margin: 0; }
.cta-band .btn.primary { box-shadow: 0 20px 50px rgba(225,28,46,.35); }
.cta-band .btn.ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.08); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 54px clamp(18px, 5vw, 64px) 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 36px;
}
.footer-brand img { width: 140px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 300px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 14px; }
.footer-col { display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 14.5px; font-weight: 550; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 13px;
}

/* ==========================================================================
   Courses listing
   ========================================================================== */
.courses-page { padding-top: 58px; }
.discipline-block {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.discipline-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.discipline-title span { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.discipline-title small { color: var(--muted); font-weight: 650; }
.track-block { margin-top: 22px; }
.track-block h3 {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course-card {
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.course-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.course-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.course-card h4, .course-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 750;
}
.course-card p { margin: 0; font-size: 14px; flex: 1; }
.meta { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; }
.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.course-foot strong { color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }

/* ==========================================================================
   Course detail
   ========================================================================== */
.course-detail {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .7fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
  padding: clamp(38px, 7vw, 82px) clamp(18px, 5vw, 64px);
}
.course-detail-copy .eyebrow { margin-bottom: 4px; }
.course-detail h1 {
  max-width: 640px;
  margin: 12px 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.course-detail p { max-width: 580px; color: var(--muted); line-height: 1.65; }
.course-detail img {
  width: 100%;
  aspect-ratio: auto;
  max-height: 520px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.lesson-list { display: grid; gap: 12px; margin-top: 22px; }
.lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.lesson:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.lesson.locked { opacity: .68; background: var(--surface-2); }
.lesson h3 { margin: 4px 0 8px; font-size: 17px; font-weight: 700; }
.video-embed {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Classroom (student lesson-watching experience)
   ========================================================================== */
.classroom-hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(32px, 6vw, 56px) clamp(18px, 5vw, 64px) clamp(28px, 5vw, 44px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.classroom-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(225,28,46,.22), transparent 70%);
  pointer-events: none;
}
.classroom-hero > * { position: relative; z-index: 1; }
.classroom-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); max-width: 720px; margin: 8px auto 18px; letter-spacing: -0.02em; }
.classroom-hero .eyebrow { justify-content: center; }
.classroom-complete-badge {
  display: inline-block;
  margin: 0 auto 18px;
  padding: 10px 20px;
  border-radius: var(--r-full);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-glow);
}
.classroom-progress { max-width: 480px; margin: 0 auto; }
.classroom-progress-bar { width: 100%; height: 10px; border-radius: var(--r-full); background: rgba(255,255,255,.15); overflow: hidden; }
.classroom-progress-fill { height: 100%; background: var(--red); border-radius: var(--r-full); transition: width .3s ease; }
.classroom-progress span { display: block; margin-top: 10px; font-size: 13.5px; color: rgba(255,255,255,.75); font-weight: 650; }

.classroom-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  background: #0d0d0e;
  min-height: 60vh;
}
.classroom-main { padding: clamp(24px, 4vw, 48px); display: flex; justify-content: center; }
.classroom-panel { width: 100%; max-width: 860px; }
.classroom-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
}
.classroom-video .video-embed { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; margin: 0; border-radius: 0; }
.classroom-novideo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  padding: 20px;
}
.classroom-panel-body { padding-top: 26px; background: var(--surface); border-radius: var(--r-lg); padding: 26px; margin-top: 20px; }
.classroom-panel-index { color: var(--red); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.classroom-panel-body h2 { margin: 8px 0 10px; font-size: 24px; letter-spacing: -0.02em; }
.classroom-panel-body p { color: var(--muted); line-height: 1.65; }
.classroom-panel-body .complete-toggle { margin-top: 20px; }

.classroom-materials { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.classroom-materials h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin: 0 0 12px; }
.classroom-materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.classroom-material-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.classroom-material-card:hover { border-color: var(--red); background: var(--red-soft); transform: translateY(-2px); }
.classroom-material-icon { font-size: 22px; flex-shrink: 0; }
.classroom-material-name { flex: 1; font-size: 13.5px; font-weight: 650; color: var(--ink); line-height: 1.3; word-break: break-word; }
.classroom-material-action { font-size: 12px; font-weight: 800; color: var(--red-dark); flex-shrink: 0; }

.classroom-sidebar {
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 76px;
  align-self: start;
}
.classroom-lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
.classroom-lesson-item:hover { background: var(--surface-2); }
.classroom-lesson-item.active { background: var(--red-soft); border-color: var(--red); }
.classroom-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line-strong);
}
.classroom-check.done { background: var(--red); color: #fff; border-color: var(--red); }
.classroom-lesson-title { font-size: 14px; font-weight: 650; color: var(--ink-soft); line-height: 1.3; }
.classroom-lesson-item.active .classroom-lesson-title { color: var(--ink); }

@media (max-width: 900px) {
  .classroom-body { grid-template-columns: 1fr; }
  .classroom-sidebar { border-left: none; border-top: 1px solid var(--line); position: static; max-height: none; flex-direction: column; }
}

/* admin: editable lesson cards */
.lesson-edit-card { margin-bottom: 4px; }
.lesson-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.lesson-edit-head .lesson-index { font-size: 13px; }
.danger-btn {
  background: var(--red-soft);
  border-color: var(--red-soft);
  color: var(--red-dark);
}
.danger-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.lesson-index { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.lock-badge { padding: 8px 12px; border-radius: var(--r-full); color: var(--red-dark); background: var(--red-soft); font-size: 12px; font-weight: 800; }
.materials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.materials a { padding: 8px 10px; border-radius: var(--r-sm); background: var(--red-soft); color: var(--red-dark); font-weight: 750; font-size: 13px; }
.materials-manage { display: grid; gap: 8px; margin: 4px 0 6px; }
.material-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.material-row a { font-size: 13.5px; font-weight: 650; color: var(--ink-soft); }
.material-row .btn { min-height: 30px; padding: 0 10px; font-size: 12px; }

/* ==========================================================================
   Checkout / Auth
   ========================================================================== */
.checkout, .auth-wrap {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 70px);
  background:
    radial-gradient(circle at 15% 10%, rgba(225,28,46,.06), transparent 45%),
    var(--bg);
}
.checkout-card, .auth-card { width: min(860px, 100%); }
.auth-card { max-width: 480px; }
.auth-card h1, .checkout-card h1 { font-size: 30px; margin: 10px 0 6px; letter-spacing: -0.02em; }
.checkout-course {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.checkout-course img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); }
.checkout-course strong, .checkout-course span { display: block; }
.checkout-course span { margin-top: 6px; color: var(--red); font-weight: 800; }

/* ==========================================================================
   Student area
   ========================================================================== */
.student-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.student-page h2 { font-size: 22px; margin: 34px 0 16px; letter-spacing: -0.015em; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}
.sidebar { padding: 26px 20px; background: #0d0d0e; color: #fff; }
.sidebar strong { font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; }
.sidebar nav { display: grid; gap: 6px; margin-top: 22px; }
.sidebar a {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.72);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { padding: clamp(22px, 4vw, 46px); }
.admin-main h1 { font-size: 26px; margin-bottom: 22px; letter-spacing: -0.02em; }

/* ==========================================================================
   Forms
   ========================================================================== */
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--ink-soft); font-weight: 650; font-size: 13.5px; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--ring);
}
textarea { min-height: 120px; resize: vertical; }

/* ==========================================================================
   Tables / rows
   ========================================================================== */
.table { display: grid; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 130px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.student-row { grid-template-columns: minmax(0, 1fr) 150px 180px; }
.course-admin-row { grid-template-columns: minmax(0, 1fr) 90px auto; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { display: inline; }

.completion-row { grid-template-columns: minmax(0, 1fr) minmax(180px, 320px); }
.completion-bar-wrap { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.completion-bar { width: 100%; height: 8px; border-radius: var(--r-full); background: var(--surface-2); overflow: hidden; }
.completion-bar-fill { height: 100%; background: var(--red); border-radius: var(--r-full); }

.student-course-progress { display: grid; gap: 6px; margin-top: 12px; }
.student-course-progress .classroom-progress-bar { height: 6px; }

/* ==========================================================================
   Certificate
   ========================================================================== */
.certificate-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 50px);
  background: var(--surface-2);
}
.certificate {
  width: 100%;
  max-width: 900px;
}
.certificate-border {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(30px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.certificate-border::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--red);
  border-radius: calc(var(--r-xl) - 10px);
  pointer-events: none;
}
.certificate-logo { width: 130px; height: auto; margin: 0 auto 22px; display: block; }
.certificate-eyebrow { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin: 0 0 18px; }
.certificate-name { font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 46px); letter-spacing: -0.02em; margin: 0 0 14px; color: var(--ink); }
.certificate-text { color: var(--muted); font-size: 15px; max-width: 560px; margin: 0 auto; line-height: 1.6; }
.certificate-course { font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); color: var(--red-dark); margin: 14px 0; letter-spacing: -0.01em; }
.certificate-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.certificate-footer > div { display: flex; flex-direction: column; gap: 2px; }
.certificate-date { font-weight: 700; color: var(--ink); font-size: 14px; }
.certificate-label { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }
.certificate-seal {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.certificate-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

@media print {
  .topbar, .footer, .faciliter, .certificate-actions, .no-print { display: none !important; }
  .certificate-wrap { min-height: 0; padding: 0; background: #fff; }
  .certificate-border { border-color: #000; }
}
.danger { color: var(--red-dark); font-weight: 650; }
.field-error { color: var(--red-dark); font-weight: 650; font-size: 13.5px; margin: -6px 0 0; }

.captcha-box {
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.captcha-box label { font-size: 13.5px; }
.captcha-box input { max-width: 100px; margin-top: 8px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }
.cf-turnstile { margin: 4px 0; }
.consent-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.consent-check input { width: auto; min-height: auto; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.consent-check a { color: var(--red-dark); font-weight: 700; }
.auth-links {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 14px;
}
.auth-links a { color: var(--ink-soft); font-weight: 650; }
.auth-links a:hover { color: var(--red); }

/* ==========================================================================
   Monte seu TCC
   ========================================================================== */
.tcc-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, .72fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: start;
  padding: clamp(42px, 7vw, 82px) clamp(18px, 5vw, 64px);
}
.tcc-hero h1 {
  margin: 12px 0;
  max-width: 640px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.tcc-hero p { max-width: 580px; color: var(--muted); line-height: 1.65; }
.tcc-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.ai-answer {
  white-space: pre-wrap;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 14.5px;
}

/* ==========================================================================
   Faciliter widget
   ========================================================================== */
.faciliter {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 80 !important;
  font-family: var(--font-body) !important;
}
.faciliter-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 62px !important;
  height: 62px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: var(--shadow-lg) !important;
  cursor: pointer !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
  animation: faciliter-float 3s ease-in-out infinite;
}
.faciliter-toggle:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow-glow) !important; }
.faciliter-toggle svg { pointer-events: none; }
@keyframes faciliter-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.faciliter-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(370px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.faciliter[data-open="true"] .faciliter-panel { display: block !important; }
.faciliter-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ink); color: #fff; }
.faciliter-head svg { flex-shrink: 0; background: #fff; border-radius: 50%; }
.faciliter-head div { display: grid; gap: 3px; }
.faciliter-head strong { font-family: var(--font-display); }
.faciliter-head span { color: rgba(255,255,255,.65); font-size: 12px; }
.faciliter-log { max-height: 280px; overflow: auto; padding: 16px 18px; background: var(--bg); }
.faciliter-log p { margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.faciliter-form { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.faciliter-form input { min-height: 42px; }
.faciliter-form button { border: 0; border-radius: var(--r-md); background: var(--red); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.faciliter-whats { display: block; padding: 13px 14px; border-top: 1px solid var(--line); color: var(--red-dark); font-weight: 800; font-size: 14px; text-align: center; }

/* ==========================================================================
   Misc / articles
   ========================================================================== */
.article-area { margin-top: 30px; }
.article-area h2 { font-size: 22px; margin-bottom: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero, .course-detail, .tcc-hero, .admin-layout, .grid.two, .grid.three, .grid.four, .course-grid, .cta-band, .footer-top {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero::before { width: 90vw; height: 90vw; top: -20%; right: -30%; }
  .brand img { width: 122px; }
  .student-head { align-items: flex-start; flex-direction: column; }
  .row, .student-row, .lesson { grid-template-columns: 1fr; }
  .cta-band { text-align: left; }
  .footer-top { gap: 28px; }
}
@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-width: none;
    padding: 10px clamp(18px, 5vw, 64px) 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { margin-top: 10px; text-align: center; border-bottom: none; }
}
@media (max-width: 620px) {
  .topbar { flex-wrap: nowrap; }
  .hero h1, .tcc-hero h1 { font-size: 34px; }
  .section h1, .section h2, .course-detail h1 { font-size: 28px; }
  .checkout-course { grid-template-columns: 1fr; }
  .checkout-course img { width: 100%; }
  .faciliter { right: 12px !important; bottom: 12px !important; }
  .cta-band { padding: 32px 22px; }
}
