/* ============================================================
   Imersão Colaborador 24H · Escola ED
   ============================================================ */

:root {
  /* Brand palette */
  --ed-gold: #BA7517;
  --ed-amber: #EF9F27;
  --ed-ink: #2C2C2A;
  --ed-muted: #888780;
  --ed-caption: #b4b2a9;
  --ed-cream-1: #FEF9F3;
  --ed-cream-2: #FDF5EB;
  --ed-cream-card: #FFF5E6;
  --ed-cream-highlight: #FFEBCC;
  --ed-neutral: #D3D1C7;
  --ed-success-bg: #F0FAF0;
  --ed-success-text: #4A9E4A;

  --ed-gradient: linear-gradient(135deg, #BA7517 0%, #EF9F27 100%);
  --ed-bg: linear-gradient(135deg, #FEF9F3 0%, #FDF5EB 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(44, 44, 42, 0.04), 0 1px 3px rgba(44, 44, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 44, 42, 0.06), 0 2px 4px rgba(44, 44, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(186, 117, 23, 0.12), 0 4px 12px rgba(44, 44, 42, 0.08);

  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-system);
  color: var(--ed-ink);
  background: var(--ed-bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 80px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; color: var(--ed-ink); }
p { margin: 0; }
a { color: var(--ed-gold); text-decoration: none; }
a:hover, a:focus-visible { color: var(--ed-amber); }

:focus-visible {
  outline: 3px solid var(--ed-amber);
  outline-offset: 2px;
  border-radius: 6px;
}

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.hidden { display: none !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ed-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus { left: 12px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 249, 243, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(211, 209, 199, 0.6);
}

.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 18px;
}

.topbar__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ed-gradient);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: grid;
  place-items: center;
  font-size: 15px;
  box-shadow: var(--shadow-md);
}
.topbar__titles { display: flex; flex-direction: column; line-height: 1.1; }
.topbar__brandname { font-size: 11px; color: var(--ed-muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.topbar__title { font-size: 16px; font-weight: 700; }

.topbar__level { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.level-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ed-cream-card);
  border: 1px solid var(--ed-cream-highlight);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ed-ink);
  align-self: flex-start;
}
.level-chip__icon { font-size: 16px; }

.level-bar {
  width: 100%;
  height: 8px;
  background: var(--ed-neutral);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}
.level-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--ed-gradient);
  border-radius: 999px;
  transition: width 600ms var(--ease);
}
.level-bar__next { font-size: 11px; color: var(--ed-muted); }

.topbar__badges {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 6px;
  justify-content: end;
}

.topbar__badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: rgba(255,255,255,0.4);
  border: 1px dashed var(--ed-neutral);
  color: var(--ed-caption);
  transition: transform 200ms var(--ease), background 200ms var(--ease), opacity 200ms var(--ease);
  filter: grayscale(1);
  opacity: 0.28;
}
.topbar__badge.is-unlocked {
  filter: none;
  background: var(--ed-cream-highlight);
  border-color: var(--ed-amber);
  box-shadow: 0 0 0 2px rgba(239, 159, 39, 0.15);
}
.topbar__badge.is-just-unlocked { animation: pop 700ms var(--ease); }

.topbar__zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ed-ink) !important;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--ed-cream-highlight);
  white-space: nowrap;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}
.topbar__zoom:hover, .topbar__zoom:focus-visible {
  border-color: var(--ed-amber);
  background: var(--ed-cream-card);
  color: var(--ed-ink);
  transform: translateY(-1px);
}
.topbar__zoom-icon { font-size: 15px; }

.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ed-gradient);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.topbar__cta:hover, .topbar__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 880px) {
  .topbar__inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }
  .topbar__level { grid-column: 1 / -1; order: 4; }
  .topbar__badges { grid-column: 1 / -1; order: 5; justify-content: flex-start; max-width: 100%; }
  .topbar__zoom { order: 2; padding: 8px 12px; font-size: 12px; }
  .topbar__zoom-label { display: none; }
  .topbar__cta { order: 3; padding: 8px 12px; font-size: 12px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: 1100px;
  margin: 28px auto 8px;
  padding: 0 20px;
}
.hero__inner {
  position: relative;
  background: linear-gradient(135deg, rgba(186, 117, 23, 0.06) 0%, rgba(239, 159, 39, 0.10) 100%);
  border: 1px solid var(--ed-cream-highlight);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  overflow: hidden;
}
.hero__inner::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 240px;
  height: 240px;
  background: var(--ed-gradient);
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.hero__eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ed-gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.hero__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 720px;
}
.hero__accent {
  background: var(--ed-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ed-ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ed-cream-highlight);
}
.hero__dismiss:hover { background: #fff; }

.hero.is-collapsed .hero__inner { padding: 14px 20px; }
.hero.is-collapsed .hero__title { font-size: 14px; font-weight: 600; }
.hero.is-collapsed .hero__eyebrow { display: none; }
.hero.is-collapsed .hero__dismiss { display: none; }

/* ============================================================
   AGENDA
   ============================================================ */
.agenda {
  max-width: 1100px;
  margin: 22px auto 0;
  padding: 0 20px;
}
.agenda__inner {
  background: #fff;
  border: 1px solid var(--ed-cream-highlight);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.agenda__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.agenda__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ed-gold);
  margin: 0;
}
.agenda__zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ed-gradient);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  white-space: nowrap;
}
.agenda__zoom:hover, .agenda__zoom:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.agenda__slots {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.agenda__slot {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ed-cream-1);
  border: 1px solid var(--ed-cream-highlight);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.agenda__slot--pause {
  background: rgba(255,255,255,0.6);
  border-style: dashed;
  border-color: var(--ed-neutral);
}
.agenda__slot-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  flex-shrink: 0;
}
.agenda__slot-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.agenda__slot-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ed-ink);
}
.agenda__slot-text span {
  font-size: 13px;
  color: var(--ed-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .agenda__slots { grid-template-columns: 1fr; }
  .agenda__head { flex-direction: column; align-items: stretch; }
  .agenda__zoom { justify-content: center; }
}

/* ============================================================
   DAY PROGRESS
   ============================================================ */
.dayprogress {
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 0 20px;
}
.dayprogress__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dayprogress__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.dayprogress__bar {
  flex: 1;
  height: 10px;
  background: var(--ed-neutral);
  border-radius: 999px;
  overflow: hidden;
}
.dayprogress__fill {
  height: 100%;
  width: 0%;
  background: var(--ed-gradient);
  border-radius: 999px;
  transition: width 600ms var(--ease);
}

/* ============================================================
   JORNADA
   ============================================================ */
.jornada {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 6px;
}
.section-divider__icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ed-cream-card);
  border: 1px solid var(--ed-cream-highlight);
  border-radius: 14px;
}
.section-divider__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ed-gold);
}
.section-divider__line {
  flex: 1;
  height: 1px;
  background: var(--ed-neutral);
}

.pause {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--ed-neutral);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--ed-muted);
  font-size: 14px;
  font-weight: 500;
}
.pause__icon { font-size: 18px; }

/* Block card */
.block {
  background: #fff;
  border: 1px solid var(--ed-cream-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease), transform 240ms var(--ease);
}
.block.is-current {
  border-color: var(--ed-amber);
  box-shadow: var(--shadow-lg);
}
.block.is-done { background: linear-gradient(180deg, #ffffff 0%, var(--ed-cream-1) 100%); }
.block.is-done .block__number { background: var(--ed-success-text); color: #fff; }

.block.is-locked {
  background: rgba(255, 255, 255, 0.5);
  border-style: dashed;
  border-color: var(--ed-neutral);
  box-shadow: none;
  opacity: 0.55;
}
.block.is-locked:hover { opacity: 0.7; }
.block.is-locked .block__head { cursor: not-allowed; }
.block.is-locked .block__number {
  background: var(--ed-neutral);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}
.block.is-locked .block__title { color: var(--ed-muted); }
.block.is-locked .block__objective { font-style: italic; }
.block.is-locked .block__status { color: var(--ed-caption); }

.block__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  text-align: left;
  background: transparent;
}
.block__number {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  background: var(--ed-cream-card);
  color: var(--ed-gold);
  border: 1px solid var(--ed-cream-highlight);
  transition: all 240ms var(--ease);
}
.block__number-check,
.block__number-lock {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid var(--ed-neutral);
  box-shadow: var(--shadow-sm);
}
.block__number-check {
  background: var(--ed-success-text);
  color: #fff;
  border-color: #fff;
}
.block__number-lock { background: #fff; border-color: var(--ed-neutral); font-size: 10px; }
.block.is-current .block__number {
  background: var(--ed-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(239, 159, 39, 0.18);
}
.block__head-text { flex: 1; min-width: 0; }
.block__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.block__objective {
  font-size: 14px;
  color: var(--ed-muted);
  line-height: 1.45;
}
.block__status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-muted);
}
.block.is-current .block__status { color: var(--ed-gold); }
.block.is-done .block__status { color: var(--ed-success-text); }
.block__chevron {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  transition: transform 240ms var(--ease);
  color: var(--ed-muted);
}
.block.is-open .block__chevron { transform: rotate(180deg); }

.block__body {
  padding: 0 24px 24px 24px;
  display: none;
}
.block.is-open .block__body { display: block; }

.task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ed-cream-highlight);
}
.task:first-child { border-top: 0; padding-top: 4px; }
.task__check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 8px;
  border: 2px solid var(--ed-neutral);
  background: #fff;
  display: grid;
  place-items: center;
  transition: all 200ms var(--ease);
  cursor: pointer;
}
.task__check:hover { border-color: var(--ed-amber); }
.task__check.is-done {
  background: var(--ed-success-text);
  border-color: var(--ed-success-text);
}
.task__check.is-done::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.task__main { flex: 1; min-width: 0; }
.task__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ed-ink);
}
.task.is-done .task__label {
  color: var(--ed-muted);
  text-decoration: line-through;
  text-decoration-color: var(--ed-caption);
}
.task__optional {
  font-size: 11px;
  color: var(--ed-caption);
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.task__input { margin-top: 10px; }
.task__input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}
.task__field {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ed-cream-highlight);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ed-ink);
  resize: vertical;
  min-height: 44px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.task__field:focus {
  outline: none;
  border-color: var(--ed-amber);
  box-shadow: 0 0 0 3px rgba(239, 159, 39, 0.18);
}
.task__field--textarea { min-height: 88px; line-height: 1.5; }
.task__suffix {
  font-size: 12px;
  color: var(--ed-muted);
  margin-top: 4px;
}

.block__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Quiz (Bloco 4) */
.quiz {
  background: linear-gradient(180deg, #fff 0%, var(--ed-cream-1) 100%);
  border: 1px solid var(--ed-cream-highlight);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quiz__intro {
  font-size: 15px;
  color: var(--ed-ink);
  line-height: 1.55;
  margin: 0 0 6px;
}
.quiz__progress {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ed-gold);
}
.quiz__question {
  font-size: 18px;
  font-weight: 700;
  color: var(--ed-ink);
  margin: 0;
  line-height: 1.4;
}
.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.quiz__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--ed-cream-highlight);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--ed-ink);
  cursor: pointer;
  transition: all 200ms var(--ease);
  line-height: 1.45;
}
.quiz__option:hover:not(:disabled) {
  border-color: var(--ed-amber);
  background: var(--ed-cream-card);
  transform: translateY(-1px);
}
.quiz__option:disabled { cursor: default; }
.quiz__option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ed-cream-card);
  color: var(--ed-gold);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.quiz__option.is-correct {
  background: var(--ed-success-bg);
  border-color: var(--ed-success-text);
  color: var(--ed-success-text);
}
.quiz__option.is-correct .quiz__option-letter {
  background: var(--ed-success-text);
  color: #fff;
}
.quiz__option.is-wrong {
  background: #fef0e8;
  border-color: #c8492c;
  color: #c8492c;
}
.quiz__option.is-wrong .quiz__option-letter {
  background: #c8492c;
  color: #fff;
}
.quiz__feedback {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.quiz__feedback strong { display: block; margin-bottom: 4px; font-size: 14px; }
.quiz__feedback p { margin: 0; }
.quiz__feedback.is-correct {
  background: var(--ed-success-bg);
  border: 1px solid #d8efd8;
  color: var(--ed-ink);
}
.quiz__feedback.is-correct strong { color: var(--ed-success-text); }
.quiz__feedback.is-wrong {
  background: #fef0e8;
  border: 1px solid #f3d4c6;
  color: var(--ed-ink);
}
.quiz__feedback.is-wrong strong { color: #c8492c; }
.quiz__result {
  background: var(--ed-cream-card);
  border: 1px solid var(--ed-cream-highlight);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.quiz__result.is-perfect {
  background: linear-gradient(135deg, var(--ed-cream-card), var(--ed-cream-highlight));
  border-color: var(--ed-amber);
}
.quiz__result-icon { font-size: 38px; }
.quiz__result h4 { font-size: 20px; font-weight: 700; color: var(--ed-ink); margin: 0; }
.quiz__result p { font-size: 14px; color: var(--ed-muted); margin: 0; }
.quiz__result p strong { color: var(--ed-gold); font-size: 16px; }

/* Chat launcher card (dentro do bloco) */
.chat-launcher {
  background: linear-gradient(180deg, #fff 0%, var(--ed-cream-1) 100%);
  border: 1px solid var(--ed-cream-highlight);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.chat-launcher__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ed-gradient);
  color: #fff;
  font-size: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.chat-launcher__icon--photo { background: var(--ed-cream-card); padding: 0; }
.chat-launcher__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.chat-launcher__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-launcher__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ed-ink);
}
.chat-launcher__sub {
  font-size: 13px;
  color: var(--ed-muted);
  line-height: 1.4;
}
.chat-launcher__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ed-success-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.chat-launcher__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.chat-launcher__actions .btn { white-space: nowrap; }
.chat-launcher__result {
  background: var(--ed-success-bg);
  border: 1px solid #d8efd8;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ed-ink);
}
.chat-launcher__result strong {
  color: var(--ed-success-text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}
.chat-launcher__result-preview {
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 120px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
}

@media (max-width: 640px) {
  .chat-launcher { flex-direction: column; align-items: stretch; text-align: center; padding: 18px; }
  .chat-launcher__icon { margin: 0 auto; }
  .chat-launcher__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .chat-launcher__status { justify-content: center; }
}

/* Chat full-screen modal */
.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(44, 44, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade-in 240ms var(--ease);
}
.chat-modal__shell {
  width: min(720px, 100%);
  height: min(720px, calc(100vh - 40px));
  background: var(--ed-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chat-modal-in 280ms var(--ease);
}
@keyframes chat-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--ed-ink);
  color: #fff;
  flex-shrink: 0;
}
.chat-modal__title-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.chat-modal__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ed-gradient);
  font-size: 22px;
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.chat-modal__avatar--photo { background: transparent; }
.chat-modal__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.chat-modal__title-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.chat-modal__title { font-size: 17px; font-weight: 700; color: #fff; }
.chat-modal__sub {
  font-size: 12px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  margin-top: 2px;
}
.chat-modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.chat-modal__close:hover { background: rgba(255,255,255,0.26); }

.chat-modal__messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ed-cream-1);
}

.chat-modal__form {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--ed-cream-highlight);
  flex-shrink: 0;
}
.chat-modal__input {
  flex: 1;
  resize: none;
  border: 1.5px solid var(--ed-cream-highlight);
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  background: var(--ed-cream-1);
  color: var(--ed-ink);
  max-height: 140px;
  line-height: 1.45;
  transition: border-color 200ms var(--ease);
}
.chat-modal__input:focus {
  outline: none;
  border-color: var(--ed-amber);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(239, 159, 39, 0.18);
}
.chat-modal__send {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ed-gradient);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
  align-self: flex-end;
  transition: transform 200ms var(--ease);
}
.chat-modal__send:hover { transform: scale(1.05); }
.chat-modal__send:disabled {
  background: var(--ed-neutral);
  cursor: not-allowed;
  transform: none;
}

.chat-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
  background: #fff;
  border-top: 1px solid var(--ed-cream-highlight);
  flex-shrink: 0;
}
.chat-modal__actions .btn { font-size: 13px; padding: 10px 16px; min-height: 40px; }

@media (max-width: 640px) {
  .chat-modal { padding: 0; }
  .chat-modal__shell {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  .chat-modal__messages { padding: 16px; }
  .chat-modal__form { padding: 10px 12px; }
  .chat-modal__actions { padding: 8px 12px 12px; }
}

.block__pitch {
  margin-top: 4px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--ed-gradient);
  color: #fff;
}
.block__pitch p {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  max-width: 640px;
}
.block__pitch .block__actions { margin-top: 14px; }
.block__pitch .btn--primary {
  background: #fff;
  color: var(--ed-gold) !important;
}
.block__pitch .btn--primary:hover { background: var(--ed-cream-1); color: var(--ed-gold) !important; }
.block__pitch .btn--ghost {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.block__pitch .btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.block__qr {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--ed-ink);
}
.block__qr img { width: 140px; height: 140px; border-radius: 10px; background: #fff; }
.block__qr span { font-size: 13px; color: var(--ed-muted); max-width: 200px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--ed-cream-highlight);
  background: #fff;
  color: var(--ed-gold);
  transition: all 200ms var(--ease);
  cursor: pointer;
  text-decoration: none;
  min-height: 42px;
}
.btn:hover, .btn:focus-visible {
  border-color: var(--ed-amber);
  background: var(--ed-cream-card);
  color: var(--ed-gold);
}
.btn--primary {
  background: var(--ed-gradient);
  color: #fff !important;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--ed-gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn--ghost {
  background: transparent;
  color: var(--ed-ink);
  border-color: var(--ed-neutral);
}
.btn--ghost:hover { background: rgba(255,255,255,0.6); color: var(--ed-ink); }
.btn--danger { background: #C8492C; color: #fff; border-color: transparent; }
.btn--danger:hover { background: #b13e23; color: #fff; }
.btn--lg { padding: 14px 28px; font-size: 16px; min-height: 52px; }

.btn__arrow { display: inline-block; transition: transform 200ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ============================================================
   BADGES PANEL
   ============================================================ */
.badges-panel {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 20px;
}
.badges-panel__header { margin-bottom: 18px; }
.badges-panel__title {
  font-size: 22px;
  font-weight: 700;
}
.badges-panel__sub {
  font-size: 14px;
  color: var(--ed-muted);
  margin-top: 4px;
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.badge-card {
  background: rgba(255,255,255,0.5);
  border: 1px dashed var(--ed-neutral);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 240ms var(--ease);
  filter: grayscale(1);
  opacity: 0.4;
}
.badge-card.is-unlocked {
  filter: none;
  background: linear-gradient(180deg, #fff 0%, var(--ed-cream-card) 100%);
  border-color: var(--ed-amber);
  box-shadow: var(--shadow-md);
}
.badge-card__icon {
  font-size: 36px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--ed-cream-card);
  border-radius: 50%;
}
.badge-card.is-unlocked .badge-card__icon {
  background: var(--ed-gradient);
}
.badge-card__name { font-size: 14px; font-weight: 700; color: var(--ed-ink); }
.badge-card__desc { font-size: 12px; color: var(--ed-muted); line-height: 1.4; }

/* Grid 5x2 — todos os badges iguais */
.badges-grid {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 880px) {
  .badges-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 64px;
  border-top: 1px solid var(--ed-neutral);
  padding: 18px 0;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__credit { font-size: 13px; color: var(--ed-muted); }
.footer__reset {
  font-size: 13px;
  color: var(--ed-muted);
  text-decoration: underline;
  padding: 6px 10px;
}
.footer__reset:hover { color: var(--ed-ink); }

/* ============================================================
   CHAT MESSAGES (partilhado pelos chats embebidos)
   ============================================================ */
.chat-panel__pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4A9E4A;
  box-shadow: 0 0 0 0 rgba(74, 158, 74, 0.5);
  animation: pulse-online 1800ms var(--ease) infinite;
}
@keyframes pulse-online {
  0% { box-shadow: 0 0 0 0 rgba(74, 158, 74, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 158, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 158, 74, 0); }
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--ed-gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg--assistant {
  align-self: flex-start;
  background: #fff;
  color: var(--ed-ink);
  border: 1px solid var(--ed-cream-highlight);
  border-bottom-left-radius: 4px;
}
.chat-msg--error {
  align-self: stretch;
  background: #fef0e8;
  color: #c8492c;
  border: 1px solid #f3d4c6;
  font-size: 13px;
}
.chat-msg--typing {
  align-self: flex-start;
  background: #fff;
  color: var(--ed-muted);
  border: 1px solid var(--ed-cream-highlight);
  border-bottom-left-radius: 4px;
  display: inline-flex;
  gap: 4px;
}
.chat-msg--typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ed-muted);
  animation: typing 1s infinite;
}
.chat-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* ============================================================
   EFOUNDER STICKY BOTTOM BAR
   ============================================================ */
.efounder-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--ed-gradient);
  color: #fff;
  box-shadow: 0 -12px 32px rgba(186, 117, 23, 0.25);
  animation: slide-up 400ms var(--ease);
}
.efounder-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
}
.efounder-bar__crown {
  font-size: 32px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  flex-shrink: 0;
}
.efounder-bar__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.efounder-bar__text strong { font-size: 16px; font-weight: 700; }
.efounder-bar__text span { font-size: 13px; opacity: 0.9; }
.efounder-bar__actions { display: flex; align-items: center; gap: 14px; }
.efounder-bar .btn--primary {
  background: #fff;
  color: var(--ed-gold) !important;
  border: none;
}
.efounder-bar .btn--primary:hover {
  background: var(--ed-cream-1);
  transform: translateY(-1px);
}
.efounder-bar__secondary {
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.efounder-bar__secondary:hover { color: #fff; text-decoration-color: #fff; }
.efounder-bar__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}
.efounder-bar__close:hover { background: rgba(255,255,255,0.28); }

body.has-efounder-bar { padding-bottom: 130px; }

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 720px) {
  .efounder-bar__inner {
    grid-template-columns: auto 1fr auto;
    padding: 12px 16px;
    gap: 12px;
  }
  .efounder-bar__crown { width: 40px; height: 40px; font-size: 24px; }
  .efounder-bar__text strong { font-size: 14px; }
  .efounder-bar__text span { display: none; }
  .efounder-bar__actions { grid-column: 1 / -1; justify-content: space-between; }
  .efounder-bar__close { position: absolute; top: 8px; right: 12px; }
  body.has-efounder-bar { padding-bottom: 170px; }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}
.toast {
  background: #fff;
  border: 1px solid var(--ed-cream-highlight);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--ed-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 340px;
  animation: toast-in 320ms var(--ease), toast-out 320ms var(--ease) 3.4s forwards;
  pointer-events: auto;
}
.toast--xp { color: var(--ed-success-text); background: var(--ed-success-bg); border-color: #d8efd8; }
.toast--badge {
  background: var(--ed-gradient);
  color: #fff;
  border-color: transparent;
}
.toast--level {
  background: var(--ed-ink);
  color: #fff;
  border-color: transparent;
}
.toast__icon { font-size: 20px; }
.toast__title { font-weight: 700; }
.toast__sub { display: block; font-weight: 500; font-size: 12px; opacity: 0.85; }

/* ============================================================
   MODALS
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 300;
  animation: fade-in 200ms var(--ease);
}
.modal__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal__title { font-size: 18px; margin-bottom: 8px; }
.modal__body { font-size: 14px; color: var(--ed-muted); margin-bottom: 18px; line-height: 1.5; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ============================================================
   FINAL SCREEN
   ============================================================ */
.finalscreen {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: linear-gradient(135deg, #2C2C2A 0%, #1a1a18 100%);
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  animation: fade-in 400ms var(--ease);
}
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.finalscreen__card {
  position: relative;
  background: var(--ed-bg);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  z-index: 1;
}
.finalscreen__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--ed-ink);
  font-size: 16px;
}
.finalscreen__close:hover { background: rgba(0,0,0,0.12); }
.finalscreen__crown {
  font-size: 56px;
  margin-bottom: 12px;
  animation: pop 700ms var(--ease);
}
.finalscreen__title {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.grad-text {
  background: var(--ed-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.finalscreen__lead {
  font-size: 16px;
  color: var(--ed-ink);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.55;
}
.finalscreen__summary {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
  text-align: left;
  border: 1px solid var(--ed-cream-highlight);
}
.finalscreen__summary h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ed-muted);
  margin-bottom: 10px;
}
.finalscreen__summary .badges-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.finalscreen__summary .badges-mini span {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ed-cream-card);
  border-radius: 50%;
  font-size: 18px;
}
.finalscreen__summary .hours-line {
  font-size: 15px;
  color: var(--ed-ink);
  font-weight: 500;
}
.finalscreen__summary .hours-line strong { color: var(--ed-gold); font-weight: 800; font-size: 18px; }

.finalscreen__ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.finalscreen__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.finalscreen__qr img {
  width: 160px; height: 160px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ed-cream-highlight);
}
.finalscreen__qr span { font-size: 12px; color: var(--ed-muted); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toast-out {
  to { transform: translateY(-10px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar__inner { padding: 10px 14px; }
  .topbar__title { font-size: 14px; }
  .topbar__logo { width: 36px; height: 36px; font-size: 13px; }
  .topbar__badges { gap: 4px; }
  .topbar__badge { width: 28px; height: 28px; font-size: 14px; }
  .hero { margin-top: 18px; padding: 0 14px; }
  .hero__inner { padding: 22px 22px; }
  .dayprogress { padding: 0 14px; }
  .jornada { padding: 0 14px; gap: 14px; }
  .block__head { padding: 18px 16px; gap: 12px; }
  .block__body { padding: 0 16px 18px; }
  .block__number { width: 36px; height: 36px; font-size: 14px; }
  .block__title { font-size: 16px; }
  .block__objective { font-size: 13px; }
  .badges-panel { padding: 0 14px; }
  .footer__inner { padding: 0 14px; }
  .toast-stack { right: 14px; left: 14px; bottom: 14px; align-items: stretch; }
  .toast { max-width: 100%; }
  .finalscreen__card { padding: 36px 22px; }
}
