/* ===================================================================
   STRUCT · CENTRAL DE APRENDIZADO
   App-like (sidebar + conteúdo) — bebe da LP do Struct
   Montserrat + JetBrains Mono | Dark minimal | accent azul
   =================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0b;
  --surface: #13131a;
  --card: #101017;
  --card-2: #15151e;
  --border: rgba(255,255,255,0.06);
  --border-h: rgba(255,255,255,0.12);
  --t1: #ededeb;
  --t2: #a1a1aa;
  --t3: #71717a;
  --accent: #3b82f6;
  --accent-dim: #2563eb;
  --accent-light: #60a5fa;
  --accent-soft: rgba(59,130,246,0.06);
  --accent-border: rgba(59,130,246,0.22);
  --accent-glow: rgba(59,130,246,0.10);
  --green: #22c55e;
  --amber: #fbbf24;
  --font: 'Montserrat', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
  --nav-h: 60px;
  --sidebar-w: 312px;
}

html { scroll-behavior: smooth; font-size: 108%; }
body {
  font-family: var(--font); font-weight: 400; font-size: 1rem;
  line-height: 1.65; color: var(--t2); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
strong { color: var(--t1); font-weight: 600; }

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.02;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ═══ TOPNAV ═══ */
.lp-topnav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(10,10,11,0.78); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.lp-topnav__brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; position: relative; }
/* halo azul difuso atrás da logo */
.lp-topnav__brand::before {
  content: ""; position: absolute; left: -6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(59,130,246,0.45), transparent 68%);
  filter: blur(3px); opacity: 0.55;
  animation: brandHalo 3.4s ease-in-out infinite;
}
.lp-topnav__brand img {
  position: relative; height: 30px; width: auto; object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(96,165,250,0.5));
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}
.lp-topnav__brand:hover img { transform: scale(1.07); filter: drop-shadow(0 0 11px rgba(96,165,250,0.9)); }
.lp-topnav__brand:hover::before { opacity: 0.9; }
@keyframes brandHalo {
  0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(0.92); }
  50% { opacity: 0.8; transform: translateY(-50%) scale(1.08); }
}
.lp-topnav__brand-tag {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-light);
  border: 1px solid var(--accent-border); border-radius: 4px;
  padding: 0.18rem 0.5rem; background: var(--accent-soft);
}
.lp-topnav__ctas { display: inline-flex; align-items: center; gap: 0.5rem; }
.lp-topnav__ghost, .lp-topnav__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem; border-radius: 100px;
  font-weight: 600; font-size: 0.8rem; text-decoration: none;
  transition: all 0.2s;
}
.lp-topnav__ghost { color: var(--t2); border: 1px solid var(--border-h); }
.lp-topnav__ghost:hover { color: #fff; border-color: var(--accent-border); background: var(--accent-soft); }
.lp-topnav__cta { color: #fff; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.32); }
.lp-topnav__cta svg { color: var(--green); }
.lp-topnav__cta:hover { background: rgba(34,197,94,0.2); }

/* ═══ APP SHELL ═══ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  align-items: start;
}

/* ─── SIDEBAR ─── */
.sidebar {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #0c0c11, #0a0a0b);
  overflow: hidden;
}
.sidebar-inner { height: 100%; display: flex; flex-direction: column; }
.sidebar-search {
  position: relative; padding: 1rem 1rem 0.75rem; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-search svg {
  position: absolute; left: 1.85rem; top: 50%; transform: translateY(-15%);
  width: 15px; height: 15px; color: var(--t3); pointer-events: none;
}
.sidebar-search input {
  width: 100%; padding: 0.6rem 0.8rem 0.6rem 2.3rem;
  background: var(--card); border: 1px solid var(--border-h); border-radius: 10px;
  color: var(--t1); font-family: var(--font); font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}
.sidebar-search input::placeholder { color: var(--t3); }
.sidebar-search input:focus { outline: none; border-color: var(--accent-border); background: var(--surface); }

.sidebar-title {
  flex-shrink: 0; padding: 0.95rem 1.15rem 0.55rem;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3);
  border-bottom: 1px solid var(--border);
}
.sidebar-nav {
  flex: 1; overflow-y: auto; padding: 0.35rem 0.5rem 2rem;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 8px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.nav-panel { margin: 0.12rem 0; }
.nav-panel-btn {
  position: relative; width: 100%; display: flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 0.7rem; border: none; background: transparent; cursor: pointer;
  color: var(--t1); font-family: var(--font); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.01em; border-radius: 10px; transition: background 0.18s;
  text-align: left;
}
.nav-panel-btn:hover { background: rgba(255,255,255,0.03); }
/* ícone do painel num chip arredondado com tom azul */
.np-ico {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  transition: background 0.18s, border-color 0.18s;
}
.np-ico svg { width: 16px; height: 16px; color: var(--accent-light); }
.nav-panel-btn:hover .np-ico,
.nav-panel.open > .nav-panel-btn .np-ico {
  background: rgba(59,130,246,0.16); border-color: rgba(96,165,250,0.42);
}
/* painel aberto/ativo: fundo + barra azul à esquerda */
.nav-panel.open > .nav-panel-btn { background: var(--accent-soft); }
.nav-panel.open > .nav-panel-btn::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 58%; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-panel-btn .np-name { flex: 1; }
.nav-panel-btn .np-count {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600; color: var(--t3);
  background: rgba(255,255,255,0.04); border-radius: 20px; padding: 0.1rem 0.45rem;
}
.nav-panel-btn .np-chevron { width: 14px; height: 14px; color: var(--t3); transition: transform 0.25s var(--ease); }
.nav-panel.open .np-chevron { transform: rotate(90deg); }

.nav-panel-list {
  overflow: hidden; max-height: 0; transition: max-height 0.32s var(--ease);
}
.nav-panel.open .nav-panel-list { max-height: 1600px; }

.nav-group-label {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--t3);
  padding: 0.7rem 0.7rem 0.3rem 2.3rem;
}
.nav-tool {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.7rem 0.5rem 1.9rem;
  text-decoration: none; color: var(--t2); font-size: 0.82rem; font-weight: 500;
  border-radius: 8px; margin: 0.08rem 0.15rem;
  border-left: 2px solid transparent; transition: all 0.16s;
}
.nav-tool img { width: 26px; height: 26px; object-fit: contain; opacity: 0.9; flex-shrink: 0; }
.nav-tool-svg { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; color: var(--accent-light); }
.nav-tool-svg svg { width: 20px; height: 20px; }
.nav-tool span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-tool:hover { color: var(--t1); background: rgba(255,255,255,0.03); }
.nav-tool.active {
  color: #fff; background: var(--accent-soft);
  border-left-color: var(--accent); font-weight: 600;
}
.nav-tool.active img { opacity: 1; }
.nav-empty { padding: 1.5rem; text-align: center; color: var(--t3); font-size: 0.8rem; }

/* item standalone (Solicitação de suporte) com divisória acima */
.nav-standalone { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border-h); }
.nav-tool-solo { font-weight: 600; color: var(--t1); padding: 0.6rem 0.7rem 0.6rem 0.85rem; }
.nav-tool-solo .nav-tool-svg { color: var(--accent-light); }
.nav-tool-solo.active { color: #fff; background: var(--accent-soft); border-left-color: var(--accent); }

/* ─── CONTENT ─── */
.content { min-height: calc(100vh - var(--nav-h)); padding: 0; outline: none; }

/* === OVERVIEW (home) === */
.ov-hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 380px at 50% -8%, var(--accent-glow), transparent 70%),
    linear-gradient(180deg, #0c0e16, var(--bg));
  text-align: center;
}
.ov-hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(700px 320px at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(700px 320px at 50% 0%, #000, transparent 75%);
}
.ov-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.ov-hero-logo { position: relative; display: flex; justify-content: center; margin-bottom: 1.4rem; }
.ov-hero-logo::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 150px; height: 150px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(59,130,246,0.4), transparent 66%);
  filter: blur(8px); animation: brandHalo 3.6s ease-in-out infinite;
}
.ov-hero-logo img {
  position: relative; height: clamp(58px, 11vw, 84px); width: auto; object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(59,130,246,0.45));
  animation: heroLogoFloat 5s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.ov-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-light);
  border: 1px solid var(--accent-border); border-radius: 100px;
  padding: 0.3rem 0.8rem; background: var(--accent-soft); margin-bottom: 1.4rem;
}
.ov-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 8px var(--accent-light); }
.ov-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.06; font-weight: 800;
  color: #fff; letter-spacing: -0.02em; margin-bottom: 1.1rem;
}
.ov-hero h1 .nowrap { white-space: nowrap; }
.br-desk { display: none; }
@media (min-width: 680px) { .br-desk { display: inline; } }
.ov-hero h1 .grad {
  background: linear-gradient(120deg, #2563eb, #60a5fa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ov-hero p { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--t2); max-width: 640px; margin: 0 auto; }
.ov-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem; margin-top: 2.2rem; }
.ov-stat-n { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ov-stat-l { font-size: 0.78rem; color: var(--t3); }

.ov-body { padding: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 5vw, 4rem) 4rem; max-width: 1180px; margin: 0 auto; }
.ov-section-title {
  font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; letter-spacing: -0.01em;
}
.ov-section-sub { color: var(--t2); margin-bottom: 1.6rem; font-size: 0.95rem; }

.ov-panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.ov-panel-card {
  display: block; text-decoration: none; padding: 1.4rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.25s var(--ease); position: relative; overflow: hidden;
}
.ov-panel-card:hover { border-color: var(--accent-border); transform: translateY(-3px); background: var(--card-2); }
.ov-panel-card-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.ov-panel-card-ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.ov-panel-card-ico svg { width: 19px; height: 19px; color: var(--accent-light); }
.ov-panel-card h3 { font-size: 1.02rem; font-weight: 700; color: #fff; }
.ov-panel-card-count { font-family: var(--mono); font-size: 0.7rem; color: var(--t3); }
.ov-panel-card p { font-size: 0.85rem; color: var(--t2); line-height: 1.55; margin-bottom: 0.9rem; }
.ov-panel-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ov-panel-chip {
  font-size: 0.72rem; color: var(--t2); background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 6px; padding: 0.2rem 0.5rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.ov-panel-chip img { width: 13px; height: 13px; object-fit: contain; }
.ov-panel-chip.more { color: var(--accent-light); border-color: var(--accent-border); background: var(--accent-soft); }

/* hero CTAs */
.ov-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 2rem; }
.btn-ghost { background: transparent; color: var(--t1); border: 1px solid var(--border-h); }
.btn-ghost:hover { border-color: var(--accent-border); color: var(--accent-light); background: var(--accent-soft); }

/* aviso de recomendação de dispositivo (home) */
.ov-device-note {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 1.6rem auto 0; max-width: 640px;
  font-size: 0.85rem; color: var(--t2);
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: 100px; padding: 0.5rem 1rem;
}
.ov-device-note svg { width: 16px; height: 16px; color: var(--accent-light); flex-shrink: 0; }

/* blocos / cabeçalhos de seção da home */
.ov-block { margin-top: clamp(2.4rem, 5vw, 3.8rem); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.ov-block:first-child { margin-top: 0; }
.ov-head { margin-bottom: 1.5rem; text-align: center; }
.ov-head .ov-section-sub { max-width: 620px; margin-left: auto; margin-right: auto; }
.ov-kicker {
  display: inline-block; font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 0.5rem;
}

/* destaques: comece por aqui */
.ov-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.ov-feature-card {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; transition: all 0.22s var(--ease);
}
.ov-feature-card:hover { border-color: var(--accent-border); background: var(--card-2); transform: translateY(-2px); }
.ov-feature-ico {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, #1a1c27, #101017); border: 1px solid var(--border-h);
}
.ov-feature-ico img { width: 30px; height: 30px; object-fit: contain; }
.ov-feature-txt { flex: 1; min-width: 0; }
.ov-feature-panel { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t3); }
.ov-feature-txt h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0.1rem 0 0.2rem; }
.ov-feature-txt p { font-size: 0.82rem; color: var(--t2); line-height: 1.45; }
.ov-feature-arrow { width: 18px; height: 18px; color: var(--t3); flex-shrink: 0; transition: transform 0.22s, color 0.22s; }
.ov-feature-card:hover .ov-feature-arrow { color: var(--accent-light); transform: translateX(3px); }

/* como usar */
.ov-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.ov-how-step { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.2rem; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.ov-how-n {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 0.85rem; color: var(--accent-light);
  background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.ov-how-step strong { display: block; color: #fff; font-size: 0.92rem; margin-bottom: 0.2rem; }
.ov-how-step span { font-size: 0.82rem; color: var(--t2); line-height: 1.5; }
.ov-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem;
  padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.ov-legend-title { font-size: 0.8rem; font-weight: 600; color: var(--t1); }
.ov-legend-item { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--t2); }
.ov-legend-item svg { width: 17px; height: 17px; }
.ov-legend-item.image svg { color: var(--accent-light); }
.ov-legend-item.video svg { color: #a78bfa; }

/* footer */
.ov-footer { border-top: 1px solid var(--border); margin-top: clamp(2.4rem, 5vw, 4rem); background: #0c0c11; }
.ov-footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
}
.ov-footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.ov-footer-brand img { height: 22px; width: auto; opacity: 0.9; }
.ov-footer-brand span { font-size: 0.85rem; font-weight: 600; color: var(--t1); }
.ov-footer-links { display: inline-flex; flex-wrap: wrap; gap: 1.2rem; }
.ov-footer-links a { font-size: 0.82rem; color: var(--t2); text-decoration: none; transition: color 0.2s; }
.ov-footer-links a:hover { color: var(--accent-light); }
.ov-footer-copy { margin-left: auto; font-size: 0.75rem; color: var(--t3); }

/* link Início em destaque no topo */
.lp-topnav__home, .lp-topnav__accent { color: var(--accent-light); border-color: var(--accent-border); background: var(--accent-soft); }
.lp-topnav__home svg, .lp-topnav__accent svg { color: var(--accent-light); }
.lp-topnav__home:hover, .lp-topnav__accent:hover { color: #fff; background: rgba(59,130,246,0.14); }

@media (max-width: 560px) {
  .ov-footer-copy { margin-left: 0; width: 100%; }
}

/* === ARTICLE (tool) === */
.article { max-width: 1080px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3.5rem) 5rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--t3); margin-bottom: 1.6rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--t3); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .crumb-sep { opacity: 0.5; }
.breadcrumb .crumb-current { color: var(--t1); }

.art-head { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.5rem; }
.art-logo {
  width: 70px; height: 70px; flex-shrink: 0; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #1a1c27, #101017);
  border: 1px solid var(--border-h); box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.art-logo img { width: 40px; height: 40px; object-fit: contain; }
.art-logo-svg { color: var(--accent-light); }
.art-logo-svg svg { width: 36px; height: 36px; }

/* grade de ferramentas da biblioteca */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.lib-card { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--border); border-radius: 14px; transition: all 0.22s var(--ease); }
.lib-card:hover { border-color: var(--accent-border); background: var(--card-2); transform: translateY(-2px); }
.lib-card-ico { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(160deg, #1a1c27, #101017); border: 1px solid var(--border-h); }
.lib-card-ico img { width: 28px; height: 28px; object-fit: contain; }
.lib-card-txt { flex: 1; min-width: 0; }
.lib-card-panel { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t3); display: block; }
.lib-card-txt strong { font-size: 0.98rem; font-weight: 700; color: #fff; }
.lib-card-arrow { width: 18px; height: 18px; color: var(--t3); flex-shrink: 0; transition: transform 0.2s, color 0.2s; }
.lib-card:hover .lib-card-arrow { color: var(--accent-light); transform: translateX(3px); }
.art-head-txt { flex: 1; }
.art-panel-tag {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-light);
}
.art-head h1 { font-size: clamp(1.85rem, 3.4vw, 2.55rem); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -0.02em; margin: 0.25rem 0 0.55rem; }
.art-tagline { font-size: 1.2rem; color: var(--t2); line-height: 1.5; }

.art-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 2rem; }
.art-tag { font-size: 0.8rem; color: var(--t2); background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 100px; padding: 0.26rem 0.7rem; }

.art-section { margin-top: 2.8rem; }
.art-section-label {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3);
}
.art-section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.art-section-label svg { width: 17px; height: 17px; color: var(--accent-light); }

.art-desc p { margin-bottom: 1.1rem; color: var(--t2); font-size: 1.1rem; line-height: 1.8; }
.art-desc p:last-child { margin-bottom: 0; }
.inline-link {
  color: var(--accent-light); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--accent-border); transition: border-color 0.2s, color 0.2s;
}
.inline-link:hover { color: #fff; border-bottom-color: var(--accent); }
.art-bullets { list-style: none; margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.art-bullets:last-child { margin-bottom: 0; }
.art-bullets li { position: relative; padding-left: 1.5rem; color: var(--t2); font-size: 1.1rem; line-height: 1.7; }
.art-bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent);
}
.art-bullets li strong { color: var(--t1); }

/* capa: ícone da ferramenta ampliado */
.art-iconhero { margin: 0 0 0.5rem; }
.art-iconhero-frame {
  position: relative; display: grid; place-items: center;
  min-height: 220px; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(440px 220px at 50% 0%, var(--accent-glow), transparent 70%),
    linear-gradient(160deg, #16161f, #0e0e15);
  border: 1px solid var(--border-h);
}
.art-iconhero-frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(300px 160px at 50% 50%, #000, transparent 75%);
          mask-image: radial-gradient(300px 160px at 50% 50%, #000, transparent 75%);
}
.art-iconhero-frame img {
  position: relative; width: 104px; height: 104px; object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.5));
}

/* hero media (no topo da descrição) */
.media-hero { margin: 0 0 0.5rem; }

/* io cards (inputs / outputs) */
.art-io { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.io-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.5rem; }
.io-card h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.9rem; }
.io-card h4 svg { width: 18px; height: 18px; }
.io-card.inputs h4 svg { color: var(--amber); }
.io-card.outputs h4 svg { color: var(--green); }
.io-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.io-list li { position: relative; padding-left: 1.4rem; font-size: 1rem; color: var(--t2); line-height: 1.6; }
.io-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 2px; }
.io-card.inputs .io-list li::before { background: var(--amber); }
.io-card.outputs .io-list li::before { background: var(--green); }

/* steps timeline */
.steps { position: relative; }
.step {
  position: relative; padding-left: 4rem; padding-bottom: 2.1rem;
}
.step::before {
  content: ""; position: absolute; left: 20px; top: 2.8rem; bottom: -0.4rem; width: 2px;
  background: linear-gradient(180deg, var(--accent-border), var(--border));
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 0.95rem;
  color: var(--accent-light); background: var(--card-2); border: 1px solid var(--accent-border);
  z-index: 1;
}
.step-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.35rem; padding-top: 0.5rem; }
.step-detail { font-size: 1.05rem; color: var(--t2); line-height: 1.7; }
.step-detail p { margin: 0 0 0.5rem; }
.step-detail p:last-child { margin-bottom: 0; }
.step-detail .art-bullets { margin: 0.6rem 0 0; gap: 0.45rem; }
.step-detail .art-bullets li { font-size: 1.02rem; padding-left: 1.4rem; }
.step-detail .art-bullets li::before { top: 0.6em; }

/* ─── MEDIA PLACEHOLDER (código identificador) ─── */
.media-ph {
  margin-top: 1rem; border-radius: 14px; overflow: hidden;
  border: 1.5px dashed var(--accent-border);
  background:
    repeating-linear-gradient(45deg, rgba(59,130,246,0.025) 0 12px, transparent 12px 24px),
    var(--card);
  transition: border-color 0.2s, background 0.2s;
}
.media-ph:hover { border-color: var(--accent); }
.media-ph.video { border-color: rgba(167,139,250,0.32); }
.media-ph.video:hover { border-color: #a78bfa; }
.media-ph-inner { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; align-items: flex-start; }
.media-ph-icon {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-light);
}
.media-ph.video .media-ph-icon { background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.3); color: #a78bfa; }
.media-ph-icon svg { width: 22px; height: 22px; }
.media-ph-body { flex: 1; min-width: 0; }
.media-ph-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.media-ph-badge {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.16rem 0.5rem; border-radius: 4px;
  color: var(--accent-light); background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.media-ph.video .media-ph-badge { color: #a78bfa; background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.3); }
.media-ph-code {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 600; color: var(--t1);
  background: rgba(0,0,0,0.35); border: 1px solid var(--border-h); border-radius: 5px; padding: 0.16rem 0.5rem;
  cursor: pointer; transition: all 0.18s; user-select: all;
}
.media-ph-code:hover { border-color: var(--accent); color: #fff; }
.media-ph-code.copied { border-color: var(--green); color: var(--green); }
.media-ph-hint { font-size: 0.86rem; color: var(--t1); font-weight: 500; line-height: 1.45; }
.media-ph-why { font-size: 0.78rem; color: var(--t3); margin-top: 0.25rem; }
.media-ph-path {
  display: block; margin-top: 0.55rem; font-family: var(--mono); font-size: 0.7rem; color: var(--t3);
  border-top: 1px dashed var(--border); padding-top: 0.5rem;
}
.media-ph-path b { color: var(--accent-light); font-weight: 600; }
/* hero placeholder maior */
.media-hero .media-ph { min-height: 200px; }
.media-hero .media-ph-inner { min-height: 200px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.media-hero .media-ph-icon { width: 58px; height: 58px; }
.media-hero .media-ph-icon svg { width: 28px; height: 28px; }
.media-hero .media-ph-top { justify-content: center; }

/* ─── mídia real / pré-visualização ─── */
.media-slot { display: block; margin-top: 1rem; }
.media-figure {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-h); background: #fff;
}
.media-real { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #fff; }
/* vídeos/GIFs mantêm fundo escuro nas sobras */
video.media-real { background: #0b0b10; }
.media-figure:has(video.media-real) { background: #0b0b10; }
.media-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem 0.3rem 0.5rem; border-radius: 100px;
  color: #fff; background: rgba(37,99,235,0.92); border: 1px solid rgba(96,165,250,0.65);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4); backdrop-filter: blur(4px);
}
.media-badge svg { width: 12px; height: 12px; }
.media-ov { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; align-items: center; opacity: 0; transition: opacity 0.2s; }
.media-figure:hover .media-ov { opacity: 1; }
.media-ov-badge { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 5px; background: rgba(59,130,246,0.9); color: #fff; }
.media-ov-badge.real { background: rgba(34,197,94,0.9); }
.media-ov-btn { font-family: var(--font); font-size: 0.7rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.25); background: rgba(0,0,0,0.55); color: #fff; cursor: pointer; backdrop-filter: blur(4px); }
.media-ov-btn:hover { background: rgba(0,0,0,0.82); }
.media-ov-btn.danger:hover { background: rgba(220,38,38,0.85); border-color: rgba(220,38,38,0.9); }

/* afordâncias no modo edição */
body.rr-edit .media-slot { cursor: pointer; }
body.rr-edit .media-slot:hover .media-ph { border-color: var(--accent); }
.media-slot.drag .media-ph { border-color: var(--accent); background: rgba(59,130,246,0.1); }
.media-slot.rr-target .media-ph { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-border); }
.media-slot.rr-target .media-figure { box-shadow: 0 0 0 2px var(--accent); }

/* botão de modo de edição (oculto: edição via console RRMedia.setEdit(true)) */
.rr-edit-toggle { display: none !important; }
.rr-edit-toggle-x {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 70;
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border-radius: 100px;
  background: var(--surface); color: var(--t1); border: 1px solid var(--border-h); cursor: pointer;
  font-family: var(--font); font-size: 0.82rem; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.rr-edit-toggle svg { width: 16px; height: 16px; color: var(--accent-light); }
.rr-edit-toggle:hover { border-color: var(--accent-border); }
body.rr-edit .rr-edit-toggle { background: var(--accent-dim); color: #fff; }
body.rr-edit .rr-edit-toggle svg { color: #fff; }

/* barra de ações da edição */
.rr-edit-bar {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%) translateY(160%);
  z-index: 70; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: center;
  padding: 0.6rem 0.8rem; border-radius: 14px; max-width: calc(100vw - 2rem);
  background: rgba(13,13,18,0.92); backdrop-filter: blur(12px); border: 1px solid var(--accent-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); transition: transform 0.3s var(--ease);
}
body.rr-edit .rr-edit-bar { transform: translateX(-50%) translateY(0); }
.rr-edit-info { font-size: 0.8rem; color: var(--t2); }
.rr-edit-info strong { color: #fff; }
.rr-edit-action { font-family: var(--font); font-size: 0.8rem; font-weight: 600; padding: 0.5rem 0.9rem; border-radius: 8px; cursor: pointer; border: 1px solid var(--border-h); background: transparent; color: var(--t1); }
.rr-edit-action.primary { background: var(--accent-dim); border-color: var(--accent-dim); color: #fff; }
.rr-edit-action.primary:hover { background: var(--accent); }
.rr-edit-action.ghost { color: var(--t3); }
.rr-edit-action:hover { border-color: var(--accent-border); color: #fff; }
.rr-edit-action.disabled { opacity: 0.4; pointer-events: none; }

/* tips callout */
.tips-box { background: linear-gradient(135deg, rgba(251,191,36,0.05), transparent); border: 1px solid rgba(251,191,36,0.18); border-radius: 14px; padding: 1.2rem 1.3rem; }
.tips-box h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.9rem; }
.tips-box h4 svg { width: 18px; height: 18px; color: var(--amber); }
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.tips-list li { position: relative; padding-left: 1.6rem; font-size: 1rem; color: var(--t2); line-height: 1.6; }
.tips-list li svg { position: absolute; left: 0; top: 0.25em; width: 15px; height: 15px; color: var(--amber); }

/* páginas de vídeo: aulas locais e playlist do YouTube */
.lessons { display: flex; flex-direction: column; gap: 2.2rem; }
.lesson-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.6rem; }
.lesson-num { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--accent-light); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 7px; padding: 0.15rem 0.5rem; }
.lesson-head h3 { font-size: 1.15rem; font-weight: 700; color: #fff; }
.lesson-desc { margin-bottom: 0.9rem; }
.lesson-desc p { color: var(--t2); font-size: 1rem; line-height: 1.7; margin: 0 0 0.5rem; }
.lesson-video, .yt-embed { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-h); background: #000; }
.lesson-video video { display: block; width: 100%; height: auto; }
.yt-embed { position: relative; padding-top: 56.25%; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* grid de vídeos da playlist (estilo home RR) */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.yt-card { display: flex; flex-direction: column; gap: 0.6rem; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.yt-thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-h); background: #000; aspect-ratio: 16 / 9; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.yt-card:hover .yt-thumb img { transform: scale(1.05); }
.yt-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.yt-play svg { width: 54px; height: 54px; color: #fff; background: rgba(220, 38, 38, 0.92); border-radius: 50%; padding: 13px 11px 13px 15px; box-shadow: 0 6px 20px rgba(0,0,0,0.4); transition: transform 0.25s ease, background 0.25s ease; }
.yt-card:hover .yt-play svg { transform: scale(1.1); background: #dc2626; }
.yt-card-title { font-size: 0.95rem; font-weight: 600; line-height: 1.45; color: var(--t1); }
.yt-card:hover .yt-card-title { color: #fff; }
.yt-loading, .yt-error { color: var(--t3); font-size: 0.95rem; grid-column: 1 / -1; }
.yt-error a { color: var(--accent-light); text-decoration: underline; }

/* card "ver mais" no fim do grid */
.yt-card-more { text-decoration: none; }
.yt-thumb-more { display: flex; align-items: center; justify-content: center; border-style: dashed; border-color: var(--accent-border); background: var(--accent-soft); }
.yt-more { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; color: var(--accent-light); font-weight: 700; font-size: 0.95rem; }
.yt-more svg { width: 38px; height: 38px; }
.yt-card-more:hover .yt-thumb-more { border-color: var(--accent); background: rgba(59,130,246,0.14); }

/* modal central do vídeo */
.yt-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 6vh 5vw; background: rgba(5,7,12,0.85); backdrop-filter: blur(4px); animation: ytFade 0.18s ease; }
@keyframes ytFade { from { opacity: 0; } to { opacity: 1; } }
.yt-modal-inner { position: relative; width: min(980px, 94vw); }
.yt-modal-frame { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 24px 70px rgba(0,0,0,0.6); border: 1px solid var(--border-h); }
.yt-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-modal-close { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-h); background: var(--surface); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.yt-modal-close:hover { background: var(--accent-dim); border-color: var(--accent-dim); }

/* ícone SVG em destaque na capa (áreas extras) */
.art-iconhero-svg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--accent-light); }
.art-iconhero-svg svg { width: 46%; height: 46%; }

/* página de Solicitação de suporte */
.support-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-h); background: #fff; }
.support-shot img { display: block; width: 100%; height: auto; }
.support-cta { display: inline-flex; }
.support-fields { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.support-field-label { display: block; color: var(--t1); font-size: 1rem; font-weight: 600; }
.support-req { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); border: 1px solid var(--accent-border); background: var(--accent-soft); border-radius: 4px; padding: 0.1rem 0.4rem; margin-left: 0.35rem; vertical-align: middle; }
.support-field-note { display: block; color: var(--t3); font-size: 0.9rem; margin-top: 0.15rem; }
.support-fields > li { border-left: 2px solid var(--border-h); padding: 0.1rem 0 0.1rem 0.9rem; }

/* clicar para ampliar a mídia da ferramenta */
.media-figure.zoomable { cursor: zoom-in; }
.media-lb {
  position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; background: rgba(5,7,12,0.88); backdrop-filter: blur(4px); animation: ytFade 0.18s ease;
}
.media-lb-media {
  max-width: 95vw; max-height: 92vh; width: auto; height: auto; display: block;
  border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,0.6); background: #fff;
}
.media-lb video.media-lb-media { background: #0b0b10; }
.media-lb-close {
  position: fixed; top: 16px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-h); background: var(--surface); color: #fff; font-size: 1.7rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1;
}
.media-lb-close:hover { background: var(--accent-dim); border-color: var(--accent-dim); }

/* vídeo alternativo dentro de um guia (ex.: correção de conversão IFC) */
.guide-video-cap { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0.7rem; font-size: 0.95rem; font-weight: 600; color: var(--accent-light); }
.guide-video-cap svg { width: 16px; height: 16px; flex-shrink: 0; }
.guide-video { margin-bottom: 0.4rem; }

/* seção de pré-requisito antes do passo a passo */
.prelude-box {
  border: 1px solid var(--accent-border); border-left: 3px solid var(--accent); border-radius: 14px;
  padding: 1.2rem 1.4rem; background: var(--accent-soft);
}
.prelude-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.5rem; }
.prelude-head svg { width: 18px; height: 18px; color: var(--accent-light); flex-shrink: 0; }
.prelude-head h3 { font-size: 1.05rem; font-weight: 700; color: #fff; }
.prelude-box p { color: var(--t2); font-size: 1rem; line-height: 1.7; margin: 0 0 0.6rem; }
.prelude-box p:last-child { margin-bottom: 0; }

/* guia extra (tutorial à parte) */
.guide-box {
  border: 1px solid var(--border-h); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(700px 260px at 0% 0%, var(--accent-glow), transparent 70%), var(--card);
}
.guide-head { padding: 1.4rem 1.5rem 1.1rem; border-bottom: 1px solid var(--border); }
.guide-badge {
  display: inline-block; font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light);
  border: 1px solid var(--accent-border); border-radius: 100px; padding: 0.2rem 0.6rem;
  background: var(--accent-soft); margin-bottom: 0.7rem;
}
.guide-head h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.guide-head p { font-size: 1rem; color: var(--t2); line-height: 1.65; }
.guide-steps { padding: 1.2rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.guide-step { display: flex; gap: 0.9rem; align-items: flex-start; }
.guide-step-num {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 0.85rem; color: var(--accent-light);
  background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.guide-step-txt { min-width: 0; }
.guide-step-txt strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 0.2rem; }
.guide-step-txt span { font-size: 0.98rem; color: var(--t2); line-height: 1.65; }

/* quebra de palavras/caminhos longos para não estourar a largura no mobile */
.guide-head h3, .guide-head p, .guide-step-txt strong, .guide-step-txt span,
.art-desc, .art-desc p, .art-bullets li, .step-title, .step-detail,
.io-list li, .lesson-desc, .lesson-desc p, .prelude-box, .prelude-box p,
.tips-list li, .support-field-label, .support-field-note,
.media-ph-path, .media-ph-code, .breadcrumb { overflow-wrap: anywhere; word-break: break-word; }

/* footer nav prev/next + cta */
.art-foot { margin-top: 3.5rem; }
.art-pager { display: flex; gap: 1rem; }
.pager-btn {
  flex: 1; display: flex; align-items: center; gap: 0.8rem; text-decoration: none;
  padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  transition: all 0.22s var(--ease); min-width: 0;
}
.pager-btn:hover { border-color: var(--accent-border); background: var(--card-2); }
.pager-btn.next { flex-direction: row-reverse; text-align: right; }
.pager-btn svg { width: 18px; height: 18px; color: var(--accent-light); flex-shrink: 0; }
.pager-btn-lbl { font-size: 0.7rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; }
.pager-btn-name { font-size: 0.92rem; font-weight: 600; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager-btn-info { min-width: 0; }

.art-cta {
  margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  padding: 1.6rem 1.8rem; border-radius: var(--radius);
  background: radial-gradient(600px 200px at 90% 0%, var(--accent-glow), transparent), var(--card);
  border: 1px solid var(--accent-border);
}
.art-cta-txt h4 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.art-cta-txt p { font-size: 0.86rem; color: var(--t2); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  font-family: var(--font); font-weight: 600; font-size: 0.85rem; text-decoration: none;
  padding: 0.75rem 1.6rem; border-radius: 10px; border: none; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-fill { background: var(--accent-dim); color: #fff; box-shadow: 0 2px 12px rgba(37,99,235,0.25); }
.btn-fill:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,0.3); }

/* ─── mobile menu button + backdrop ─── */
.app-menu-btn {
  display: none; position: fixed; left: 1rem; bottom: 1rem; z-index: 38;
  align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border-radius: 100px;
  background: var(--accent-dim); color: #fff; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 0.85rem; box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.app-menu-btn svg { width: 18px; height: 18px; }
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
}

/* ─── reveal ─── */
.sr { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.sr.vis { opacity: 1; transform: translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1080px) {
  .article { max-width: 100%; }
}
@media (max-width: 980px) {
  :root { --sidebar-w: 280px; }
  .art-io { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  /* botão de menu como barra fixa no TOPO, logo abaixo da topbar */
  .app-menu-btn {
    display: flex; position: sticky; top: var(--nav-h); z-index: 37;
    left: auto; right: auto; bottom: auto; width: 100%;
    justify-content: flex-start; gap: 0.6rem;
    padding: 0.72rem 1.05rem; border-radius: 0;
    border: none; border-bottom: 1px solid var(--border);
    background: rgba(14,14,18,0.92); backdrop-filter: blur(8px);
    color: var(--t1); box-shadow: none;
  }
  .app-menu-btn svg { color: var(--accent-light); }
  .sidebar {
    position: fixed; top: var(--nav-h); left: 0;
    height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    width: min(86vw, 340px); z-index: 40;
    transform: translateX(-100%); transition: transform 0.32s var(--ease);
    box-shadow: 0 0 60px rgba(0,0,0,0.6);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }
  .article { padding: clamp(1.2rem, 4vw, 2rem) clamp(1.1rem, 4vw, 2rem) 4rem; }
  .ov-body { padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.1rem, 4vw, 2rem) 3.5rem; }
  .art-section { margin-top: 2.3rem; }
}
/* topbar enxuta no celular: logo + "Baixar o plugin" (com texto) */
@media (max-width: 720px) {
  .lp-topnav { padding: 0 0.9rem; }
  .lp-topnav__home { display: none; }           /* a logo já volta ao início */
  .lp-topnav__ctas { gap: 0.45rem; }
  .art-pager { flex-direction: column; }
  .ov-stats { gap: 1.4rem 2rem; }
  /* passos mais compactos */
  .step { padding-left: 3.1rem; padding-bottom: 1.8rem; }
  .step::before { left: 16px; top: 2.5rem; }
  .step-num { width: 34px; height: 34px; font-size: 0.85rem; }
  .step-title { font-size: 1.08rem; padding-top: 0.35rem; }
  /* cabeçalho da ferramenta */
  .art-head { gap: 0.9rem; }
  .art-logo { width: 56px; height: 56px; border-radius: 13px; }
  .art-logo img { width: 32px; height: 32px; }
  .art-logo-svg svg { width: 30px; height: 30px; }
  .art-iconhero-frame { min-height: 170px; }
  .art-iconhero-frame img { width: 84px; height: 84px; }
  /* botão flutuante de menu um pouco menor */
  .app-menu-btn { padding: 0.6rem 0.95rem; font-size: 0.8rem; }
}
@media (max-width: 560px) {
  .ov-footer-copy { margin-left: 0; width: 100%; }
  /* tipografia de leitura confortável no celular */
  .art-tagline { font-size: 1.05rem; }
  .art-desc p, .art-bullets li { font-size: 1.02rem; line-height: 1.7; }
  .step-detail { font-size: 1rem; }
  .step-detail .art-bullets li { font-size: 1rem; }
  .io-card { padding: 1.1rem 1.2rem; }
  .io-list li { font-size: 0.95rem; }
  .art-section { margin-top: 2rem; }
  .guide-box, .prelude-box, .tips-box, .support-shot { padding: 1.1rem 1.15rem; }
  .support-shot { padding: 0; }
  .lesson-head h3 { font-size: 1.05rem; }
  /* hero da home: permite quebrar a linha e respira menos */
  .ov-hero h1 .nowrap { white-space: normal; }
  .ov-stats { gap: 1.2rem 1.8rem; }
  .ov-stat-n { font-size: 1.5rem; }
  /* grid de vídeos vira lista (miniatura à esquerda) */
  .yt-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .yt-card { flex-direction: row; gap: 0.8rem; align-items: center; }
  .yt-thumb { width: 44%; flex-shrink: 0; }
  .yt-card-title { font-size: 0.9rem; }
  .yt-play svg { width: 42px; height: 42px; }
  /* modal do vídeo ocupa a tela */
  .yt-modal { padding: 0; }
  .yt-modal-inner { width: 100%; }
  .yt-modal-frame { border-radius: 0; border-left: 0; border-right: 0; }
  .yt-modal-close { top: 10px; right: 10px; background: rgba(0,0,0,0.55); }
}
@media (max-width: 470px) {
  .lp-topnav__brand-tag { display: none; }      /* só o logo identifica */
}
@media (max-width: 400px) {
  .lp-topnav__brand img { height: 26px; }
  .art-head h1 { font-size: 1.6rem; }
  .breadcrumb { font-size: 0.78rem; }
  .art-section-label { font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
