/* =========================================================
   Alunos Jainara Dantas — portal de alunos
   Paleta preto e branco, minimalista
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f6f6f5;
  --bg-3: #efefee;
  --ink: #0a0a0a;
  --ink-2: #4d4d4d;
  --ink-3: #8c8c8c;
  --line: #ebebea;
  --line-2: #dededc;
  --black: #0a0a0a;
  --white: #ffffff;
  --ok: #1f7a4d;
  --radius: 16px;
  --radius-sm: 11px;
  --side: 256px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #262626; }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: #ececec; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark small { font-size: 10.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; opacity: .6; }
.wordmark strong { margin-top: 5px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }

/* =========================================================
   LOGIN
   ========================================================= */
.login { display: grid; grid-template-columns: 1fr; min-height: 100svh; }
.login__art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px 26px;
  min-height: 260px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.login__art img {
  position: absolute;
  right: -30px;
  bottom: 0;
  height: 108%;
  width: auto;
  max-width: none;
  z-index: -1;
  filter: grayscale(1) contrast(1.1);
  opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.login__quote { max-width: 340px; margin: 0; font-size: 1.35rem; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.login__quote span { display: block; margin-top: 12px; font-size: 13px; font-weight: 500; letter-spacing: .04em; opacity: .55; }
.login__form-wrap { display: flex; align-items: center; justify-content: center; padding: 32px 20px 40px; }
.login__form { width: 100%; max-width: 380px; }
.login__form h1 { margin: 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.login__form > p { margin: 8px 0 28px; color: var(--ink-2); }
.field { display: grid; gap: 7px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; }
.field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 15.5px;
  font-weight: 400;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 10, 10, .06); }
.field__pass { position: relative; }
.field__pass input { padding-right: 48px; }
.field__pass button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-3);
}
.login__row { display: flex; justify-content: flex-end; margin: -4px 0 20px; }
.link { font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: var(--ink); }
.form-error { margin: 0 0 14px; padding: 11px 13px; border-radius: 10px; background: #f6eded; color: #8a1c1c; font-size: 13.5px; font-weight: 500; }
.form-ok { margin: 0 0 14px; padding: 11px 13px; border-radius: 10px; background: #edf5f0; color: var(--ok); font-size: 13.5px; font-weight: 500; }
.login__help { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

@media (min-width: 900px) {
  .login { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .login__art { padding: 44px; min-height: 100svh; }
  .login__art img { right: -60px; height: 96%; opacity: .7; }
  .login__quote { font-size: 1.9rem; max-width: 420px; }
}

/* =========================================================
   ESTRUTURA DA ÁREA DE MEMBROS
   ========================================================= */
.shell { min-height: 100svh; }
.side { display: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wordmark strong { font-size: 16px; }
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; background: #e9e9e9; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.avatar--line { background: var(--bg-3); color: var(--ink); }

.main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
.page { max-width: 1180px; margin: 0 auto; animation: page-in .35s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 0;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.tabbar a.is-on { color: var(--ink); }
.tabbar a .icon { width: 22px; height: 22px; }

@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
  .topbar, .tabbar { display: none; }
  .side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100svh;
    padding: 28px 18px 18px;
    border-right: 1px solid var(--line);
    background: var(--bg);
  }
  .side .wordmark { padding: 0 10px 30px; }
  .side__nav { display: grid; gap: 4px; }
  .side__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--ink-2);
    transition: background .15s ease, color .15s ease;
  }
  .side__link:hover { background: var(--bg-2); color: var(--ink); }
  .side__link.is-on { background: var(--black); color: var(--white); }
  .side__label { margin: 26px 12px 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .side__product { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
  .side__product:hover { background: var(--bg-2); color: var(--ink); }
  .side__product img { width: 28px; height: 35px; border-radius: 5px; object-fit: cover; }
  .side__user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 10px;
    border-radius: 14px;
    text-align: left;
    border: 0;
    background: none;
    width: 100%;
  }
  .side__user:hover { background: var(--bg-2); }
  .side__user span { display: grid; min-width: 0; line-height: 1.25; }
  .side__user b { font-size: 13.5px; }
  .side__user small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { padding: 36px 44px 64px; }
}

/* =========================================================
   ACADEMY
   ========================================================= */
.greet { margin-bottom: 22px; }
.greet p { margin: 0; font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.greet h1 { margin: 2px 0 0; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.1; }

/* destaque: continuar assistindo */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 22px;
  border-radius: 22px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .92) 10%, rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, .1));
}
.hero__eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.hero__title { margin: 6px 0 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; max-width: 520px; }
.hero__meta { margin: 6px 0 0; font-size: 14px; opacity: .75; }
.hero__foot { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.hero__progress { flex: 1; min-width: 160px; max-width: 280px; }
.hero__progress small { display: block; margin-bottom: 6px; font-size: 12.5px; opacity: .75; }
.bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.bar--dark { background: var(--bg-3); color: var(--ink); }

@media (min-width: 760px) {
  .hero { min-height: 340px; padding: 36px; justify-content: center; }
  /* a capa larga tem o logo à esquerda: o lado do texto fica em preto sólido */
  .hero::after { background: linear-gradient(90deg, #000 0%, #000 53%, rgba(0, 0, 0, .35) 63%, rgba(0, 0, 0, 0) 74%); }
  .hero__title { font-size: 2rem; max-width: 460px; }
}

/* carrosséis */
.row { margin-top: 38px; }
.row__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.row__head h2 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.03em; }
.row__head p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.row__arrows { display: none; gap: 6px; }
.arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--white);
  transition: border-color .15s ease, opacity .15s ease;
}
.arrow:hover { border-color: var(--ink); }
.arrow:disabled { opacity: .3; cursor: default; border-color: var(--line-2); }
@media (min-width: 760px) { .row.is-scrollable .row__arrows { display: flex; } }

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 46%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  margin: 0 -16px;
  padding: 2px 16px 6px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
@media (min-width: 560px) { .track { grid-auto-columns: 30%; } }
@media (min-width: 760px) { .track { grid-auto-columns: 210px; gap: 18px; } }
@media (min-width: 1024px) { .track { margin: 0; padding: 2px 0 6px; scroll-padding: 0; } }

.card { scroll-snap-align: start; display: block; min-width: 0; }
.card__cover {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card__cover img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__cover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .45); }
.card__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.card__title { margin: 11px 0 0; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.card__sub { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
.card__progress { margin-top: 9px; }
.card__progress small { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-3); }

/* bloqueado */
.card.is-locked .card__cover img { filter: grayscale(1) brightness(.55); }
.lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--white);
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
}
.lock span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* em breve */
.card--soon .card__cover {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1.5px dashed var(--line-2);
  background: var(--bg);
  color: var(--ink-3);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 16px;
}
.card--soon:hover .card__cover { transform: none; box-shadow: none; }

/* =========================================================
   PRODUTO (curso / ferramenta)
   ========================================================= */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.back:hover { color: var(--ink); }

.product-head { display: grid; gap: 22px; }
.product-head__media { border-radius: 20px; overflow: hidden; background: var(--bg-3); aspect-ratio: 16 / 9; position: relative; }
.product-head__media img { width: 100%; height: 100%; object-fit: cover; }
.product-head__media.is-locked img { filter: grayscale(1) brightness(.5); }
.product-head__kind { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.product-head h1 { margin: 6px 0 0; font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.product-head__tag { margin: 8px 0 0; font-size: 1.05rem; font-weight: 500; color: var(--ink-2); }
.product-head__desc { margin: 14px 0 0; color: var(--ink-2); line-height: 1.6; max-width: 560px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.stats li { display: inline-flex; align-items: center; gap: 6px; }
.product-head__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.product-head__progress { margin-top: 20px; max-width: 360px; }
.product-head__progress small { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; color: var(--ink-2); }

@media (min-width: 900px) {
  .product-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .product-head--book { grid-template-columns: 280px minmax(0, 1fr); }
}
.product-head--book .product-head__media { aspect-ratio: 4 / 5; max-width: 280px; }

.locked-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-2);
  font-size: 14px;
  color: var(--ink-2);
}
.locked-note .icon { margin-top: 1px; color: var(--ink); }

/* módulos */
.section-title { margin: 44px 0 14px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.03em; }
.modules { display: grid; gap: 10px; }
.module { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.module__head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: none;
  text-align: left;
}
.module__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 13px;
  font-weight: 700;
}
.module.is-done .module__num { background: var(--black); color: var(--white); }
.module__info { flex: 1; min-width: 0; }
.module__info b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.module__info small { font-size: 12.5px; color: var(--ink-3); }
.module__chev { transition: transform .2s ease; color: var(--ink-3); }
.module.is-open .module__chev { transform: rotate(180deg); }
.module__lessons { margin: 0; padding: 0 10px 10px; list-style: none; }
.lesson-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 14px;
}
.lesson-link:hover { background: var(--bg-2); }
.lesson-link.is-current { background: var(--bg-2); font-weight: 600; }
.lesson-link__state {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  color: var(--ink-3);
}
.lesson-link.is-done .lesson-link__state { background: var(--black); border-color: var(--black); color: var(--white); }
.lesson-link__title { flex: 1; min-width: 0; }
.lesson-link__time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.lesson-link.is-locked { color: var(--ink-3); pointer-events: none; }

/* =========================================================
   AULA
   ========================================================= */
.lesson { display: grid; gap: 28px; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.player__btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
}
.player__btn span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  transition: transform .2s var(--ease);
}
.player__btn:hover span { transform: scale(1.06); }
.lesson__crumb { margin: 18px 0 0; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.lesson__title { margin: 6px 0 0; font-size: clamp(1.35rem, 5vw, 1.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.lesson__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.lesson__nav { display: flex; gap: 8px; margin-left: auto; }
.lesson__text { margin-top: 20px; color: var(--ink-2); line-height: 1.65; }
.materials { display: grid; gap: 8px; margin-top: 18px; }
.material {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 14px;
  font-weight: 500;
}
.material small { margin-left: auto; color: var(--ink-3); font-weight: 400; }
.lesson__side h2 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.lesson__side .modules { gap: 8px; }
.lesson__side .module__head { padding: 13px 14px; }

@media (min-width: 1100px) {
  .lesson { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .lesson__side { position: sticky; top: 24px; max-height: calc(100svh - 48px); overflow-y: auto; padding-right: 4px; }
}

/* =========================================================
   COMUNIDADE
   ========================================================= */
.community { display: grid; gap: 18px; }
.channels { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.channels::-webkit-scrollbar { display: none; }
.channels__group { display: contents; }
.channels__label { display: none; }
.channel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.channel .icon { width: 16px; height: 16px; }
.channel.is-on { background: var(--black); border-color: var(--black); color: var(--white); }

.channel-head { display: flex; align-items: center; gap: 12px; }
.channel-head h1 { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -.035em; }
.channel-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.channel-head__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--bg-2); }

@media (min-width: 1024px) {
  .community { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
  .channels { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 2px; position: sticky; top: 36px; }
  .channels__group { display: grid; gap: 2px; }
  .channels__group + .channels__group { margin-top: 18px; }
  .channels__label { display: block; margin: 0 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .channel { border: 0; border-radius: 10px; padding: 10px 12px; }
  .channel:hover:not(.is-on) { background: var(--bg-2); color: var(--ink); }
  .channel .icon { width: 18px; height: 18px; }
}

/* canal de programa: abas feed e chat */
.channel-tabs {
  display: inline-flex;
  gap: 4px;
  justify-self: start;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-2);
}
.channel-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.channel-tabs a .icon { width: 17px; height: 17px; }
.channel-tabs a.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.channel__lock { width: 14px !important; height: 14px !important; margin-left: auto; opacity: .55; }
.channel-locked {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 560px;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  text-align: center;
}
.channel-locked > .icon { width: 28px; height: 28px; }
.channel-locked h2 { margin: 4px 0 0; font-size: 1.2rem; letter-spacing: -.02em; }
.channel-locked p { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; }

/* feed */
.feed { display: grid; gap: 14px; max-width: 680px; }
.composer { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.composer__box { flex: 1; min-width: 0; }
.composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 220px;
  padding: 10px 0;
  border: 0;
  resize: none;
  font-size: 15px;
  line-height: 1.5;
  background: none;
}
.composer textarea:focus { outline: 0; }
.composer__actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.readonly-note { padding: 14px 16px; border-radius: var(--radius); background: var(--bg-2); font-size: 13.5px; color: var(--ink-2); }

.post { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.post__head { display: flex; align-items: center; gap: 11px; }
.post__who { display: grid; line-height: 1.25; min-width: 0; }
.post__who b { font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.post__who small { font-size: 12.5px; color: var(--ink-3); }
.role { padding: 2px 7px; border-radius: 99px; background: var(--black); color: var(--white); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; }
.post__text { margin: 12px 0 0; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.post__actions { display: flex; gap: 4px; margin-top: 12px; margin-left: -8px; }
.post__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.post__action:hover { background: var(--bg-2); color: var(--ink); }
.post__action.is-on { color: var(--ink); }
.post__action.is-on .icon { fill: currentColor; }
.comments { display: grid; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.comment { display: flex; gap: 10px; }
.comment__body { flex: 1; min-width: 0; padding: 9px 13px; border-radius: 4px 14px 14px 14px; background: var(--bg-2); }
.comment__body b { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.comment__body p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; }
.comment-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
}
.comment-form input:focus { outline: 0; border-color: var(--ink); }

/* chat */
.chat {
  display: flex;
  flex-direction: column;
  /* tela − barra superior, canais, título do canal e barra inferior */
  height: calc(100svh - 312px - env(safe-area-inset-bottom));
  min-height: 230px;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.chat__list { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.chat__day { align-self: center; margin: 10px 0; padding: 4px 10px; border-radius: 99px; background: var(--bg-2); font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.msg { display: flex; gap: 9px; align-items: flex-end; max-width: 86%; }
.msg + .msg { margin-top: 6px; }
.msg__bubble { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--bg-2); min-width: 0; }
.msg__bubble b { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 1px; }
.msg__bubble p { margin: 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg__time { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-3); text-align: right; }
.msg--me { align-self: flex-end; flex-direction: row-reverse; }
.msg--me .msg__bubble { background: var(--black); color: var(--white); border-radius: 16px 16px 4px 16px; }
.msg--me .msg__time { color: rgba(255, 255, 255, .55); }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat__form textarea {
  flex: 1;
  min-width: 0;
  height: 44px;
  max-height: 120px;
  padding: 11px 16px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  resize: none;
  font-size: 14.5px;
  line-height: 1.4;
}
.chat__form textarea:focus { outline: 0; border-color: var(--ink); }
.send { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--black); color: var(--white); }
.send:disabled { opacity: .3; cursor: default; }

.chat--tabbed { height: calc(100svh - 378px - env(safe-area-inset-bottom)); min-height: 180px; }

@media (min-width: 1024px) {
  .chat { height: calc(100svh - 190px); }
  .chat--tabbed { height: calc(100svh - 250px); }
}

/* =========================================================
   PERFIL
   ========================================================= */
.profile { max-width: 560px; }
.profile__card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 18px; background: var(--bg-2); }
.profile__card .avatar { width: 58px; height: 58px; font-size: 20px; }
.profile__card b { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.profile__card small { color: var(--ink-3); font-size: 13.5px; }
.list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.list a, .list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  background: none;
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
}
.list a:hover, .list button:hover { background: var(--bg-2); }
.list .muted { margin-left: auto; color: var(--ink-3); font-size: 13px; font-weight: 400; }
.list img { width: 32px; height: 40px; border-radius: 6px; object-fit: cover; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translateX(-50%);
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
  animation: page-in .25s var(--ease);
}
@media (min-width: 1024px) { .toast { bottom: 28px; } }

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

/* =========================================================
   EBOOK: página do produto
   ========================================================= */
.toc { display: grid; gap: 20px; }
.toc__label { margin: 0 8px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc__item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.toc__item:hover { background: var(--bg-2); }
.toc__item.is-current { background: var(--bg-2); font-weight: 600; }
.toc__state { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); }
.toc__state .icon { width: 13px; height: 13px; }
.toc__item.is-done .toc__state { background: var(--black); border-color: var(--black); color: var(--white); }
.toc__text { min-width: 0; line-height: 1.3; }
.toc__text small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }

/* ---------- página do ebook (redesenho) ---------- */
.bk-hero {
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: 34px 20px 28px;
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 50% 0%, #ffffff 0%, transparent 70%),
    var(--bg-2);
  text-align: center;
}
.bk-hero__cover {
  position: relative;
  width: min(54vw, 230px);
  aspect-ratio: 4 / 5;
  border-radius: 6px 12px 12px 6px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .12),
    0 18px 30px -12px rgba(0, 0, 0, .35),
    0 40px 70px -30px rgba(0, 0, 0, .45);
  transform: perspective(900px) rotateY(-4deg);
  transition: transform .4s var(--ease);
}
.bk-hero__cover:hover { transform: perspective(900px) rotateY(0deg); }
.bk-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
/* lombada: brilho sutil na borda esquerda */
.bk-hero__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .18) 0, rgba(255, 255, 255, 0) 3%, rgba(0, 0, 0, .25) 3.6%, rgba(0, 0, 0, 0) 8%);
  pointer-events: none;
}
.bk-hero__cover.is-locked img { filter: grayscale(1) brightness(.5); }

.bk-hero__info { display: grid; justify-items: center; max-width: 520px; }
.bk-kind { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.bk-hero h1 { margin: 10px 0 0; font-size: clamp(2rem, 7.6vw, 3rem); font-weight: 700; letter-spacing: -.05em; line-height: 1.02; text-wrap: balance; }
.bk-tag { margin: 12px 0 0; font-size: 1.05rem; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.bk-desc { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.bk-cta { display: grid; justify-items: center; gap: 16px; width: 100%; margin-top: 26px; }
.bk-cta__btn { width: 100%; max-width: 340px; min-height: 52px; font-size: 15px; }
.bk-progress { display: flex; align-items: center; gap: 10px; text-align: left; }
.bk-progress span { display: grid; font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.bk-progress b { font-size: 14px; color: var(--ink); }
.bk-ring { width: 40px; height: 40px; transform: rotate(-90deg); }
.bk-ring circle { fill: none; stroke-width: 4; }
.bk-ring__track { stroke: var(--line-2); }
.bk-ring__bar { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.bk-hero .locked-note { text-align: left; background: var(--white); }

.bk-section { margin-top: 44px; }
.bk-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bk-section__head h2 { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -.035em; }
.bk-section__head span { font-size: 13px; color: var(--ink-3); }

.bk-saved {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -16px;
  padding: 0 16px 4px;
  scrollbar-width: none;
}
.bk-saved::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .bk-saved { grid-auto-columns: 300px; margin: 0; padding: 0 0 4px; } }
.bk-saved__item {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 20px;
  border-radius: 20px;
  background: var(--black);
  color: var(--white);
  transition: transform .2s var(--ease);
}
.bk-saved__item:hover { transform: translateY(-2px); }
.bk-saved__item small { font-size: 12px; opacity: .55; }
.bk-saved__item b { font-size: 1.1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }

.bk-toc { display: grid; gap: 30px; }
.bk-group__head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.bk-group__num { font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.bk-group__head small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.bk-group__head b { display: block; font-size: 1.12rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.bk-rows { margin: 0; padding: 0; list-style: none; }
.bk-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 12px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease, padding .2s var(--ease);
}
a.bk-row:hover { background: var(--bg-2); padding-left: 10px; padding-right: 10px; }
.bk-row__idx { font-size: 12.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bk-row__title { font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.bk-row__title small { display: block; margin-bottom: 1px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.bk-row__here {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--black);
  color: var(--white);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: 2px;
  white-space: nowrap;
}
.bk-row__time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.bk-row__state {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--ink-3);
}
.bk-row__state .icon { width: 15px; height: 15px; }
.bk-row.is-done .bk-row__state { background: var(--black); color: var(--white); }
.bk-row.is-done .bk-row__title { color: var(--ink-2); }
.bk-row.is-here .bk-row__state { background: var(--bg-3); color: var(--ink); }
.bk-row.is-locked { color: var(--ink-3); }

@media (min-width: 900px) {
  .bk-hero {
    grid-template-columns: 260px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 56px;
    padding: 48px 56px;
    text-align: left;
    background:
      radial-gradient(70% 120% at 0% 50%, #ffffff 0%, transparent 60%),
      var(--bg-2);
  }
  .bk-hero__cover { width: 100%; }
  .bk-hero__info { justify-items: start; }
  .bk-cta { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 22px; }
  .bk-cta__btn { width: auto; padding: 0 28px; }
  .bk-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
}

/* =========================================================
   LEITOR
   ========================================================= */
.reader {
  --r-bg: #ffffff;
  --r-ink: #111111;
  --r-ink-2: #505050;
  --r-ink-3: #8f8f8f;
  --r-line: #ececec;
  --r-soft: #f5f5f4;
  --r-card: #0a0a0a;
  --r-card-ink: #ffffff;
  --r-size: 18px;
  --r-font: var(--font);
  min-height: 100svh;
  background: var(--r-bg);
  color: var(--r-ink);
  transition: background .25s ease, color .25s ease;
}
.reader[data-theme="sepia"] {
  --r-bg: #f6f0e4; --r-ink: #2b2219; --r-ink-2: #5d4f40; --r-ink-3: #978876; --r-line: #e6dccb; --r-soft: #efe6d4; --r-card: #2b2219; --r-card-ink: #f6f0e4;
}
.reader[data-theme="dark"] {
  --r-bg: #0f0f0f; --r-ink: #ececea; --r-ink-2: #b4b4b0; --r-ink-3: #7c7c78; --r-line: #262626; --r-soft: #1a1a1a; --r-card: #f2f2f0; --r-card-ink: #0f0f0f;
}
.reader[data-size="s"] { --r-size: 16px; }
.reader[data-size="l"] { --r-size: 20.5px; }
.reader[data-font="serif"] { --r-font: "Literata", Georgia, "Times New Roman", serif; }
html.r-lock { overflow: hidden; }

.reader__top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 58px;
  padding: 0 10px;
  background: color-mix(in srgb, var(--r-bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--r-line);
}
.reader__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--r-ink);
}
.reader__btn:hover { background: var(--r-soft); }
.reader__where { flex: 1; min-width: 0; text-align: center; line-height: 1.25; }
.reader__where small { display: block; font-size: 11.5px; color: var(--r-ink-3); }
.reader__where b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.reader__progress span { display: block; height: 100%; width: 0; background: var(--r-ink); transition: width .1s linear; }

.reader__main { max-width: 680px; margin: 0 auto; padding: 36px 22px calc(48px + env(safe-area-inset-bottom)); }
.reader__page { font-family: var(--r-font); font-size: var(--r-size); line-height: 1.75; animation: page-in .4s var(--ease); }
.reader__page p { margin: 0 0 1.15em; color: var(--r-ink); text-wrap: pretty; }
.reader__count { margin: 28px 0 0; text-align: center; font-size: 12.5px; color: var(--r-ink-3); }

/* cabeçalhos */
.r-head { margin-bottom: 34px; font-family: var(--font); }
.r-eyebrow { margin: 0 0 12px !important; font-size: 12px !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--r-ink-3) !important; line-height: 1.4 !important; }
.r-head h1 { margin: 0; font-size: clamp(2rem, 8vw, 2.9rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.r-num { margin: 0 0 4px !important; font-size: 15px !important; font-weight: 600; color: var(--r-ink-2) !important; }
.r-num span { color: var(--r-ink-3); font-weight: 500; }
.r-lead { margin: 14px 0 0 !important; font-size: 1.05em !important; color: var(--r-ink-2) !important; line-height: 1.55 !important; }

/* fase */
.r-head--phase { padding-bottom: 6px; }
.r-phases { display: flex; gap: 8px; margin-bottom: 28px; }
.r-phases span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--r-line);
  font-size: 13px;
  font-weight: 700;
  color: var(--r-ink-3);
}
.r-phases .is-past { border-color: var(--r-ink-3); color: var(--r-ink-2); }
.r-phases .is-on { background: var(--r-ink); border-color: var(--r-ink); color: var(--r-bg); }
.r-phase .r-head h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
.r-next-defs { display: grid; gap: 10px; margin-top: 30px; font-family: var(--font); }
.r-next-defs a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--r-line);
  border-radius: 14px;
  transition: border-color .15s ease, background .15s ease;
}
.r-next-defs a:hover { border-color: var(--r-ink-3); background: var(--r-soft); }
.r-next-defs small { font-size: 12px; font-weight: 600; color: var(--r-ink-3); white-space: nowrap; }
.r-next-defs b { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

/* blocos da defesa */
.r-block { margin-top: 38px; }
.r-block:first-of-type { margin-top: 0; }
.r-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--r-ink);
}
.r-label span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--r-ink);
  font-size: 12px;
  letter-spacing: 0;
}
.r-label--plain { font-size: 12px; color: var(--r-ink-3); margin-bottom: 4px; }

.r-phrase {
  margin: 4px 0 26px;
  padding: 28px 24px 20px;
  border-radius: 20px;
  background: var(--r-card);
  color: var(--r-card-ink);
  font-family: var(--font);
}
.r-phrase figcaption { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.r-phrase blockquote { margin: 12px 0 0; font-size: clamp(1.45rem, 6vw, 1.85rem); font-weight: 600; line-height: 1.25; letter-spacing: -.03em; text-wrap: balance; }
.r-phrase--silence blockquote { font-size: clamp(1.3rem, 5.4vw, 1.6rem); }
.r-phrase__actions { display: flex; gap: 8px; margin-top: 20px; }
.r-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  background: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: inherit;
}
.r-chip .icon { width: 16px; height: 16px; }
.r-chip:hover { border-color: currentColor; }
.r-chip.is-on { background: var(--r-card-ink); color: var(--r-card); border-color: var(--r-card-ink); }
.r-chip.is-on .icon { fill: currentColor; }
.r-chip--sm { height: 32px; padding: 0 12px; font-size: 12.5px; }

.r-quote {
  margin: 0 0 1.15em;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--r-soft);
  font-family: var(--font);
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: -.02em;
}
.r-action {
  margin-top: 8px;
  padding: 22px 22px 6px;
  border-radius: 18px;
  border: 1px solid var(--r-line);
  background: var(--r-soft);
}
.r-action__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px !important;
  font-family: var(--font);
  font-size: 12.5px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3 !important;
}
.r-action__label .icon { width: 18px; height: 18px; }

/* texto corrido */
.r-highlight {
  margin: 30px 0 !important;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--r-ink);
  font-family: var(--font);
  font-size: 1.35em;
  font-weight: 600;
  line-height: 1.35 !important;
  letter-spacing: -.025em;
}
.r-steps { display: grid; gap: 10px; margin: 6px 0 28px; padding: 0; list-style: none; font-family: var(--font); }
.r-steps li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--r-soft); }
.r-steps li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--r-ink);
  color: var(--r-bg);
  font-size: 13px;
  font-weight: 700;
}
.r-steps b { display: block; font-size: .95em; font-weight: 600; line-height: 1.35; }
.r-steps p { margin: 4px 0 0 !important; font-size: .88em; line-height: 1.5; color: var(--r-ink-2) !important; }

/* cola das 10 frases */
.r-sheet { margin-top: 30px; font-family: var(--font); }
.r-sheet__phase { margin: 0 0 10px !important; font-size: 12px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--r-ink-3) !important; }
.r-sheet__item { margin-bottom: 10px; padding: 18px 18px 16px; border-radius: 16px; border: 1px solid var(--r-line); }
.r-sheet__name { font-size: 13px; font-weight: 600; color: var(--r-ink-2); }
.r-sheet__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.r-sheet__phrase { margin: 8px 0 0 !important; font-size: 1.2em; font-weight: 600; line-height: 1.35 !important; letter-spacing: -.02em; }
.r-sheet__action { margin: 8px 0 12px !important; font-size: .88em; line-height: 1.5 !important; color: var(--r-ink-2) !important; }

/* três regras */
.r-rules { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-family: var(--font); }
.r-rules li { display: flex; gap: 16px; padding: 22px 20px; border-radius: 18px; background: var(--r-soft); }
.r-rules__n { font-size: 2.4em; font-weight: 700; line-height: .9; letter-spacing: -.05em; }
.r-rules h2 { margin: 0; font-size: 1.15em; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.r-rules p { margin: 6px 0 0 !important; font-size: .95em; line-height: 1.6; color: var(--r-ink-2) !important; }

/* navegação entre capítulos */
.r-pager { display: grid; gap: 12px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--r-line); font-family: var(--font); }
.r-pager__next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 14px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--r-card);
  color: var(--r-card-ink);
  transition: transform .2s var(--ease);
}
.r-pager__next:hover { transform: translateY(-2px); }
.r-pager__next small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.r-pager__next b { grid-column: 1; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }
.r-pager__next .icon { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; }
.r-pager__prev { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 4px; font-size: 13.5px; font-weight: 500; color: var(--r-ink-2); }
.r-pager__prev:hover { color: var(--r-ink); }
.r-pager__prev .icon { width: 16px; height: 16px; }
.r-done { padding: 30px 22px; border-radius: 20px; background: var(--r-soft); text-align: center; }
.r-done > span { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--r-ink); color: var(--r-bg); }
.r-done h2 { margin: 14px 0 0; font-size: 1.35rem; letter-spacing: -.03em; }
.r-done p { margin: 8px auto 20px; max-width: 380px; font-size: 14.5px; line-height: 1.55; color: var(--r-ink-2); }
.r-done__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.reader[data-theme="dark"] .r-done .btn--dark { background: var(--r-ink); color: var(--r-bg); }
.reader[data-theme="dark"] .r-done .btn--ghost, .reader[data-theme="dark"] .btn--ghost { color: var(--r-ink); border-color: var(--r-line); }

/* painéis: sumário e ajustes */
.r-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .35); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.r-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  width: min(380px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--r-bg);
  color: var(--r-ink);
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .35);
  animation: drawer-in .28s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } }
.r-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 12px 22px; border-bottom: 1px solid var(--r-line); }
.r-drawer .toc { padding: 16px 12px 32px; overflow-y: auto; }
.r-drawer .toc__label { color: var(--r-ink-3); }
.r-drawer .toc__item:hover, .r-drawer .toc__item.is-current { background: var(--r-soft); }
.r-drawer .toc__state { border-color: var(--r-line); }
.r-drawer .toc__item.is-done .toc__state { background: var(--r-ink); border-color: var(--r-ink); color: var(--r-bg); }

.r-prefs {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 41;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: var(--r-bg);
  color: var(--r-ink);
  border: 1px solid var(--r-line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4);
  animation: page-in .25s var(--ease);
}
@media (min-width: 700px) { .r-prefs { left: auto; right: 16px; top: 66px; bottom: auto; width: 320px; } }
.r-prefs p { margin: 14px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--r-ink-3); }
.r-prefs p:first-child { margin-top: 0; }
.r-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--r-soft); }
.r-seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--r-ink-2);
}
.r-seg button.is-on { background: var(--r-bg); color: var(--r-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.r-seg__s { font-size: 13px !important; } .r-seg__m { font-size: 16px !important; } .r-seg__l { font-size: 19px !important; }
.r-seg__font-serif { font-family: "Literata", Georgia, serif; }
.r-seg--theme span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.t-light span { background: #fff; } .t-sepia span { background: #f6f0e4; } .t-dark span { background: #0f0f0f; }

@media (min-width: 900px) {
  .reader__top { padding: 0 18px; }
  .reader__main { padding-top: 64px; }
}
