/* =========================================================
   BitRecoveryAid — páginas e composições
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg .orb-a,
.hero-bg .orb-b {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.hero-bg .orb-a {
  width: 44rem; height: 44rem;
  top: -18rem; right: -14rem;
  background: radial-gradient(circle, rgba(20, 160, 88, 0.42), transparent 62%);
}

.hero-bg .orb-b {
  width: 34rem; height: 34rem;
  bottom: -16rem; left: -12rem;
  background: radial-gradient(circle, rgba(255, 92, 107, 0.24), transparent 64%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.45rem 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.815rem;
  color: var(--ink-dim);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}

.hero-kicker b {
  padding: 0.18rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #04200f;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero h1 { margin-bottom: 1.15rem; }

.hero h1 .grad {
  background: var(--grad-mix);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-lede {
  font-size: clamp(1.03rem, 1.9vw, 1.22rem);
  color: var(--ink-dim);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-cta { margin-bottom: 2.4rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.hero-fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.03em;
}

.hero-fact span {
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- composição visual do hero: orbe fonético --- */

.sound-orb {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 520px);
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.orb-ring.r1 { inset: 0; border-style: dashed; animation: spinSlow 64s linear infinite; }
.orb-ring.r2 { inset: 11%; border-color: rgba(70, 209, 127, 0.16); }
.orb-ring.r3 { inset: 23%; border-color: rgba(255, 92, 107, 0.12); animation: spinSlow 44s linear reverse infinite; border-style: dashed; }

.orb-core {
  position: relative;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(147, 240, 176, 0.35), transparent 58%),
    radial-gradient(circle at 70% 78%, rgba(255, 92, 107, 0.26), transparent 60%),
    rgba(6, 15, 11, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 2px 30px rgba(147, 240, 176, 0.12),
    0 40px 90px -30px rgba(20, 160, 88, 0.6);
  animation: floaty 7s ease-in-out infinite;
}

.orb-core img {
  width: 54%;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6));
}

.orb-wave {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
}

.orb-wave i {
  display: block;
  width: 4px;
  height: 100%;
  border-radius: 3px;
  background: var(--grad-brand);
  transform-origin: bottom;
  animation: bars 1.5s ease-in-out infinite;
  opacity: 0.85;
}

.orb-wave i:nth-child(2) { animation-delay: 0.16s; }
.orb-wave i:nth-child(3) { animation-delay: 0.32s; }
.orb-wave i:nth-child(4) { animation-delay: 0.1s; }
.orb-wave i:nth-child(5) { animation-delay: 0.42s; }
.orb-wave i:nth-child(6) { animation-delay: 0.24s; }
.orb-wave i:nth-child(7) { animation-delay: 0.36s; }

.orb-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(10, 21, 17, 0.85);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-md);
  font-size: 0.86rem;
  white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.orb-chip:hover { transform: scale(1.06); border-color: rgba(70, 209, 127, 0.5); }

.orb-chip .ipa { font-size: 1.02rem; font-weight: 600; }
.orb-chip small { color: var(--faint); font-size: 0.74rem; }

.orb-chip.c1 { top: 6%; left: -4%; animation-delay: 0.4s; }
.orb-chip.c2 { top: 30%; right: -6%; animation-delay: 1.1s; }
.orb-chip.c3 { bottom: 20%; left: -8%; animation-delay: 1.8s; }
.orb-chip.c4 { bottom: 2%; right: 4%; animation-delay: 0.8s; }

/* =========================================================
   PALAVRA DO DIA
   ========================================================= */

.wotd {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(30rem 14rem at 6% 0%, rgba(255, 92, 107, 0.12), transparent 70%),
    radial-gradient(26rem 14rem at 94% 100%, rgba(70, 209, 127, 0.14), transparent 70%),
    rgba(7, 15, 12, 0.72);
  overflow: hidden;
}

.wotd-mark {
  width: 74px; height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--grad-hot);
  color: #2a0409;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  box-shadow: 0 18px 40px -18px rgba(255, 92, 107, 0.8);
  transform: rotate(-4deg);
}

.wotd-body h3 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.wotd-body .ipa { font-size: 1.05rem; }
.wotd-body p { color: var(--muted); font-size: 0.94rem; margin-top: 0.35rem; }
.wotd-tip { color: var(--ink-dim) !important; font-size: 0.9rem !important; margin-top: 0.6rem !important; }

.wotd-actions { display: flex; flex-direction: column; gap: 0.55rem; }

/* =========================================================
   EXPLORADOR DE TEMAS
   ========================================================= */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1rem;
}

.theme-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem 1.4rem 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.006) 60%), rgba(7, 15, 12, 0.5);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  color: var(--ink-dim);
}

.theme-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 209, 127, 0.36);
  color: var(--ink-dim);
}

.theme-tile .tt-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(70, 209, 127, 0.22);
  background: linear-gradient(150deg, rgba(70, 209, 127, 0.16), rgba(70, 209, 127, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--green-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.theme-tile .tt-ico svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.theme-tile:hover .tt-ico {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(70, 209, 127, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 26px -12px rgba(70, 209, 127, 0.7);
}

/* dois acentos alternados evitam a monotonia de doze ícones iguais */
.theme-tile:nth-child(3n+2) .tt-ico {
  border-color: rgba(255, 92, 107, 0.22);
  background: linear-gradient(150deg, rgba(255, 92, 107, 0.16), rgba(255, 92, 107, 0.03));
  color: #ff8a95;
}

.theme-tile:nth-child(3n+2):hover .tt-ico {
  border-color: rgba(255, 92, 107, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 26px -12px rgba(255, 92, 107, 0.7);
}

.theme-tile:nth-child(3n) .tt-ico {
  border-color: rgba(157, 140, 255, 0.24);
  background: linear-gradient(150deg, rgba(157, 140, 255, 0.16), rgba(157, 140, 255, 0.03));
  color: #b3a6ff;
}

.theme-tile:nth-child(3n):hover .tt-ico {
  border-color: rgba(157, 140, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 26px -12px rgba(157, 140, 255, 0.7);
}

/* ícone grande no topo da página de tema */
.hero-ico {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0.9rem 0 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(70, 209, 127, 0.26);
  background: linear-gradient(150deg, rgba(70, 209, 127, 0.18), rgba(70, 209, 127, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px -22px rgba(70, 209, 127, 0.8);
  color: var(--green-soft);
}

.hero-ico svg { width: 29px; height: 29px; stroke-width: 1.6; }

.theme-tile strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: #fff;
  line-height: 1.25;
}

.theme-tile p { font-size: 0.88rem; color: var(--muted); }

.theme-tile .tt-count {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.theme-tile .tt-count svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.theme-tile:hover .tt-count svg { transform: translateX(4px); }

.theme-tile::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 209, 127, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.theme-tile:hover::after { opacity: 1; }

/* =========================================================
   TRILHAS POR NÍVEL
   ========================================================= */

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.level-card {
  position: relative;
  padding: 1.7rem 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(7, 15, 12, 0.6);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.level-card:hover { transform: translateY(-5px); }

.level-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}

.level-card.lv1::before { background: linear-gradient(90deg, #6fe3a0, transparent); }
.level-card.lv2::before { background: linear-gradient(90deg, #ffc46b, transparent); }
.level-card.lv3::before { background: linear-gradient(90deg, #ff7f8f, transparent); }

.level-card.lv1:hover { border-color: rgba(111, 227, 160, 0.4); }
.level-card.lv2:hover { border-color: rgba(255, 196, 107, 0.4); }
.level-card.lv3:hover { border-color: rgba(255, 127, 143, 0.4); }

.level-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.07);
  position: absolute;
  top: 1rem; right: 1.2rem;
}

.level-card h3 { margin-bottom: 0.5rem; }
.level-card p { color: var(--muted); font-size: 0.92rem; }

.level-card ul {
  list-style: none;
  margin: 1.1rem 0 1.4rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.89rem;
  color: var(--ink-dim);
}

.level-card li { display: flex; gap: 0.55rem; align-items: flex-start; }
.level-card li::before { content: "→"; color: var(--green); flex: none; }

/* =========================================================
   DESTAQUE DE FERRAMENTAS
   ========================================================= */

.tools-spot {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(34rem 20rem at 88% 20%, rgba(255, 92, 107, 0.14), transparent 68%),
    radial-gradient(30rem 20rem at 6% 90%, rgba(20, 160, 88, 0.2), transparent 68%),
    rgba(6, 13, 10, 0.76);
  overflow: hidden;
}

.tool-list { display: grid; gap: 0.85rem; }

.tool-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s var(--ease);
  color: var(--ink-dim);
}

.tool-item:hover {
  transform: translateX(5px);
  border-color: rgba(70, 209, 127, 0.4);
  background: rgba(70, 209, 127, 0.07);
  color: var(--ink-dim);
}

.tool-ico {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(70, 209, 127, 0.12);
  border: 1px solid rgba(70, 209, 127, 0.25);
  color: var(--green-soft);
}

.tool-ico svg { width: 21px; height: 21px; }
.tool-item:nth-child(2) .tool-ico { background: rgba(255, 92, 107, 0.12); border-color: rgba(255, 92, 107, 0.25); color: var(--coral); }
.tool-item:nth-child(3) .tool-ico { background: rgba(157, 140, 255, 0.12); border-color: rgba(157, 140, 255, 0.25); color: var(--violet); }

.tool-item strong { display: block; font-family: var(--font-display); color: #fff; font-size: 1rem; }
.tool-item span { font-size: 0.86rem; color: var(--muted); }
.tool-item .ti-arrow { color: var(--faint); }

/* =========================================================
   ARTIGO / GUIA
   ========================================================= */

.guide-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.4rem) 0 clamp(1.5rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.guide-hero::before {
  content: "";
  position: absolute;
  top: -22rem; right: -12rem;
  width: 40rem; height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 160, 88, 0.26), transparent 62%);
  filter: blur(50px);
  pointer-events: none;
}

.guide-hero-inner { position: relative; }

.guide-hero h1 {
  font-size: clamp(1.95rem, 4.6vw, 3.25rem);
  margin: 0.4rem 0 1rem;
  max-width: 20ch;
}

.guide-hero .lede { font-size: clamp(1rem, 1.7vw, 1.14rem); }

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.guide-layout > * { min-width: 0; }

.guide-side {
  position: sticky;
  top: calc(var(--head-h) + 20px);
  display: grid;
  gap: 1rem;
}

.toc {
  padding: 1.2rem 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.toc h4 {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.85rem;
}

.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 0.15rem; }

.toc a {
  display: block;
  padding: 0.38rem 0.5rem 0.38rem 1.5rem;
  border-radius: var(--r-xs);
  font-size: 0.875rem;
  color: var(--muted);
  position: relative;
  line-height: 1.4;
}

.toc li { counter-increment: toc; }

.toc a::before {
  content: counter(toc);
  position: absolute;
  left: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--faint);
  top: 0.45rem;
}

.toc a:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }

.toc a.is-current {
  background: rgba(70, 209, 127, 0.1);
  color: var(--green-soft);
}

.toc a.is-current::before { color: var(--green); }

/* corpo do artigo */

.prose { max-width: 72ch; }

.prose > h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin: 2.9rem 0 1rem;
  scroll-margin-top: calc(var(--head-h) + 20px);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.prose > h2:first-child { margin-top: 0; }

.prose > h2 .h-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  flex: none;
  letter-spacing: 0;
}

.prose h3 {
  font-size: 1.18rem;
  margin: 1.9rem 0 0.7rem;
  color: #f2fbf6;
}

.prose p { margin-bottom: 1.05rem; color: var(--ink-dim); }

.prose ul, .prose ol {
  margin: 0 0 1.25rem 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-dim);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.66em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.prose ol { counter-reset: pl; }

.prose ol li {
  position: relative;
  padding-left: 2rem;
  counter-increment: pl;
  color: var(--ink-dim);
}

.prose ol li::before {
  content: counter(pl);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 21px; height: 21px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(70, 209, 127, 0.14);
  color: var(--green-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.prose blockquote {
  margin: 1.8rem 0;
  padding: 0.3rem 0 0.3rem 1.3rem;
  border-left: 3px solid rgba(70, 209, 127, 0.5);
  color: var(--ink);
  font-size: 1.04rem;
}

.block { margin: 1.9rem 0; }

.block-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.85rem;
  font-weight: 650;
}

.block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* relacionados */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* =========================================================
   FERRAMENTAS
   ========================================================= */

.tool-hero {
  padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(1.4rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}

.tool-hero::before {
  content: "";
  position: absolute;
  top: -20rem; left: 40%;
  width: 46rem; height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 209, 127, 0.2), transparent 62%);
  filter: blur(60px);
  pointer-events: none;
}

.tool-hero-inner { position: relative; }

/* --- tabela IPA --- */

.ipa-groups { display: grid; gap: 1.8rem; }

.ipa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.7rem;
}

.ipa-cell {
  position: relative;
  padding: 1rem 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.008)), rgba(7, 15, 12, 0.5);
  text-align: left;
  transition: all 0.22s var(--ease);
  cursor: pointer;
  overflow: hidden;
}

.ipa-cell:hover {
  transform: translateY(-3px);
  border-color: rgba(70, 209, 127, 0.4);
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.9);
}

.ipa-cell.is-playing {
  border-color: rgba(70, 209, 127, 0.7);
  background: rgba(70, 209, 127, 0.1);
}

.ipa-cell .sym {
  font-family: var(--font-ipa);
  font-size: 1.6rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0.25rem;
  display: block;
}

.ipa-cell .word {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--green-soft);
  display: block;
}

.ipa-cell .gloss {
  font-size: 0.76rem;
  color: var(--faint);
  display: block;
}

.ipa-cell .hard {
  position: absolute;
  top: 0.55rem; right: 0.55rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px rgba(255, 92, 107, 0.8);
}

/* --- desafio de sons --- */

.challenge {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(36rem 20rem at 50% -20%, rgba(70, 209, 127, 0.18), transparent 66%),
    rgba(6, 13, 10, 0.8);
  padding: clamp(1.6rem, 4vw, 3rem);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.ch-stage {
  display: grid;
  place-items: center;
  gap: 1.4rem;
  text-align: center;
  padding: 1rem 0 1.6rem;
}

.ch-play {
  position: relative;
  width: clamp(110px, 22vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #04200f;
  box-shadow: 0 30px 70px -26px rgba(70, 209, 127, 0.85);
  transition: transform 0.25s var(--ease);
}

.ch-play:hover { transform: scale(1.05); }
.ch-play svg { width: 40%; height: 40%; }

.ch-play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(70, 209, 127, 0.45);
  animation: pulseRing 2.4s ease-out infinite;
}

.ch-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  max-width: 640px;
  margin-inline: auto;
  width: 100%;
}

.ch-opt {
  padding: 1.05rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 650;
  color: #fff;
  transition: all 0.2s var(--ease);
}

.ch-opt small { display: block; font-family: var(--font-ipa); font-size: 0.85rem; color: var(--muted); font-weight: 400; margin-top: 0.15rem; }

.ch-opt:hover:not(:disabled) { transform: translateY(-3px); border-color: rgba(70, 209, 127, 0.5); background: rgba(70, 209, 127, 0.08); }
.ch-opt.is-right { border-color: var(--green); background: rgba(70, 209, 127, 0.16); }
.ch-opt.is-wrong { border-color: var(--coral); background: rgba(255, 92, 107, 0.14); }

.ch-scoreline {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  margin-top: 1.4rem;
}

.ch-score b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  display: block;
  line-height: 1;
}

.ch-score span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }

.ch-feedback {
  min-height: 2.4rem;
  font-size: 0.97rem;
  color: var(--ink-dim);
}

.ch-feedback b { color: var(--green-soft); }
.ch-feedback.bad b { color: var(--coral); }

/* --- comparador AM x BR --- */

.ab-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  transition: all 0.22s var(--ease);
}

.ab-row:hover { border-color: rgba(157, 140, 255, 0.35); background: rgba(157, 140, 255, 0.05); }

.ab-word strong { font-family: var(--font-display); font-size: 1.06rem; color: #fff; display: block; }
.ab-word span { font-size: 0.8rem; color: var(--muted); }

.ab-side { display: flex; align-items: center; gap: 0.65rem; }
.ab-side .flagtag {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
}
.ab-side .ipa { font-size: 0.97rem; }

.ab-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1rem;
  padding: 0 1.15rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 650;
}

/* =========================================================
   PÁGINAS INSTITUCIONAIS
   ========================================================= */

.page-hero {
  padding: clamp(2.4rem, 6vw, 4rem) 0 clamp(1.2rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -24rem; left: -10rem;
  width: 42rem; height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 160, 88, 0.2), transparent 62%);
  filter: blur(60px);
  pointer-events: none;
}

.page-hero-inner { position: relative; }

.doc-prose h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 2.5rem 0 0.9rem;
  scroll-margin-top: calc(var(--head-h) + 20px);
}

.doc-prose h2:first-child { margin-top: 0; }
.doc-prose h3 { font-size: 1.1rem; margin: 1.6rem 0 0.6rem; }
.doc-prose p { margin-bottom: 1rem; color: var(--ink-dim); }
.doc-prose ul { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1.2rem; }
.doc-prose ul li { position: relative; padding-left: 1.4rem; color: var(--ink-dim); }
.doc-prose ul li::before {
  content: "";
  position: absolute; left: 0.1rem; top: 0.66em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-brand);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.contact-card p { color: var(--muted); font-size: 0.9rem; }
.contact-card a { font-family: var(--font-display); font-weight: 600; }

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.author-av {
  width: 66px; height: 66px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #04200f;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

/* página 404 */
.nf {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.nf-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.85;
  background: var(--grad-mix);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .sound-orb { width: min(90%, 420px); order: -1; }
  .hero { min-height: auto; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-side { position: static; order: -1; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); display: grid; }
  .tools-spot { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wotd { grid-template-columns: 1fr; text-align: left; }
  .wotd-actions { flex-direction: row; flex-wrap: wrap; }
  .ab-row, .ab-head { grid-template-columns: 1fr; }
  .ab-head { display: none; }
  .ab-row { gap: 0.6rem; }
  .prose { max-width: none; }
}

@media (max-width: 520px) {
  .orb-chip.c1, .orb-chip.c3 { left: -2%; }
  .orb-chip.c2 { right: -2%; }
  .orb-chip { font-size: 0.76rem; padding: 0.4rem 0.7rem; }
  .hero-facts { gap: 1.4rem; }
  .hero-fact b { font-size: 1.5rem; }
  .ch-opts { grid-template-columns: 1fr 1fr; }
}
