/* =====================================================================
   Mchellabs — site
   Estrutura e base neutra iguais à referência (branco / cinzas / preto).
   Cor só nos destaques: roxo do logo Mchellabs; lima e magenta pontuais.
   Padrão: tema branco. O botão do topo troca para o tema preto.
   ===================================================================== */

:root {
  --roxo-noite: #220145;
  --roxo-profundo: #3B0967;
  --roxo-lab: #571593;
  --roxo-neon: #802CBE;
  --roxo: #8B00FF;
  --magenta: #B5016E;
  --lima: #D4FF00;

  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --card: #FFFFFF;
  --ink: #0B0D10;
  --ink-soft: #3D4450;
  --ink-muted: #5B6370;
  --border: #E4E7EC;
  --border-hover: #CDD2D9;
  --accent: #8B00FF;
  --accent-hover: #7600DB;
  --accent-ink: #7A00E0;
  --accent-soft: rgba(139, 0, 255, .07);
  --accent-line: rgba(139, 0, 255, .3);
  --warn: #B5016E;
  --warn-soft: rgba(181, 1, 110, .06);
  --dot: rgba(11, 13, 16, .06);
  --shadow: 0 1px 2px rgba(11, 13, 16, .04), 0 8px 24px -16px rgba(11, 13, 16, .16);
  --shadow-hover: 0 1px 2px rgba(11, 13, 16, .05), 0 20px 44px -22px rgba(11, 13, 16, .28);
  --tag-roxo-bg: rgba(139, 0, 255, .08); --tag-roxo: #7A00E0;
  --tag-magenta-bg: rgba(181, 1, 110, .08); --tag-magenta: #A3015F;
  --tag-lima-bg: rgba(160, 200, 0, .16); --tag-lima: #4A5A00;

  --f-display: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", "Fira Code", ui-monospace, Consolas, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1);
  --header-h: 64px;
  --wrap: 1200px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0B0D12; --bg-soft: #101319; --card: #13161D;
  --ink: #F2F4F7; --ink-soft: #B8BFCA; --ink-muted: #959EAA;
  --border: #262B35; --border-hover: #3A414D;
  --accent: #9B30FF; --accent-hover: #A94DFF; --accent-ink: #C08CFF; --accent-soft: rgba(155, 48, 255, .13); --accent-line: rgba(176, 102, 255, .4);
  --warn: #F06AB5; --warn-soft: rgba(181, 1, 110, .14);
  --dot: rgba(242, 244, 247, .05);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -16px rgba(0, 0, 0, .7);
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 44px -22px rgba(0, 0, 0, .9);
  --tag-roxo-bg: rgba(155, 48, 255, .16); --tag-roxo: #C08CFF;
  --tag-magenta-bg: rgba(240, 106, 181, .14); --tag-magenta: #F49ACB;
  --tag-lima-bg: rgba(212, 255, 0, .12); --tag-lima: #D4FF00;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent-ink); }
code { font-family: var(--f-mono); font-size: .86em; background: var(--accent-soft); color: var(--accent-ink); padding: .12em .4em; border-radius: 5px; overflow-wrap: anywhere; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--card); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

/* ---------------------------------------------------------------- botões */
.btn {
  --b-bg: transparent; --b-fg: var(--ink); --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font: 600 14.5px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease-spring), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn svg { font-size: 1.1em; transition: transform .3s var(--ease-spring); }
.btn:hover svg:last-child { transform: translateX(2px); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { --b-bg: var(--accent); --b-fg: #fff; box-shadow: 0 1px 2px rgba(11, 13, 16, .1), 0 6px 18px -8px rgba(139, 0, 255, .6); }
.btn-primary:hover { --b-bg: var(--accent-hover); }
.btn-outline { --b-bd: var(--border); --b-bg: var(--card); box-shadow: 0 1px 2px rgba(11, 13, 16, .04); }
.btn-outline:hover { --b-bd: var(--border-hover); --b-bg: var(--bg-soft); }
.btn-ghost { --b-fg: var(--ink-soft); }
.btn-ghost:hover { color: var(--accent-ink); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--card); color: var(--ink-soft); cursor: pointer; font-size: 17px; transition: color .2s, border-color .2s, background-color .2s; }
.icon-btn:hover { color: var(--ink); border-color: var(--border-hover); background: var(--bg-soft); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px/1 var(--f-body); color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.link-more:hover svg { transform: translateX(3px); }
.link-more svg { transition: transform .3s var(--ease-spring); }

/* ---------------------------------------------------------------- topbar + header */
.topbar { background: #0B0D10; color: #E8EAEE; font: 500 13.5px/1.3 var(--f-body); border-bottom: 1px solid #1C1F26; }
.topbar-in { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; text-align: center; flex-wrap: wrap; padding-block: 6px; }
.topbar-badge { padding: 3px 8px; border-radius: 999px; background: var(--lima); color: #0B0D10; font: 700 11.5px/1.2 var(--f-body); }
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 640px) { .topbar-txt { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--border); }
.header-in { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: none; transition: transform .3s var(--ease-spring); }
.brand:hover { transform: rotate(-2deg) scale(1.03); }
.logo { height: 28px; width: auto; }
.logo-d, .logo-foot.logo-d { display: none; }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
.nav { display: flex; gap: 24px; height: 100%; margin-right: auto; }
.nav a { position: relative; display: flex; align-items: center; font: 500 14.5px/1 var(--f-body); color: var(--ink-muted); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; border-radius: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.i-lua { display: none; }
.i-sol, .i-lua { line-height: 0; }
:root[data-theme="dark"] .i-sol { display: none; }
:root[data-theme="dark"] .i-lua { display: inline; }
.show-sm { display: none; }
.menu-mobile { border-top: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow); }
.menu-mobile nav { display: grid; padding-block: 8px 16px; }
.menu-mobile a { padding: 14px 4px; font: 600 17px/1.2 var(--f-display); text-decoration: none; border-bottom: 1px solid var(--border); }
.menu-mobile a[aria-current="page"] { color: var(--accent-ink); }
.menu-mobile a:last-child { border-bottom: 0; color: var(--accent-ink); }
@media (max-width: 820px) {
  .nav, .hide-sm { display: none; }
  .show-sm { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .logo { height: 26px; }
}

/* ---------------------------------------------------------------- hero home */
.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(80% 70% at 75% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(80% 70% at 75% 30%, #000 30%, transparent 80%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-kicker { display: flex; align-items: center; gap: 8px; font: 600 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero h1 { margin-top: 20px; font-size: clamp(2.6rem, 5.4vw, 4.1rem); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
.hero h1 em { font-size: 1.08em; letter-spacing: -.02em; }
.hero .lede { margin-top: 20px; max-width: 33em; font-size: 1.08rem; color: var(--ink-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-autor { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.hero-autor img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; filter: grayscale(1); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--border); }
.hero-autor strong { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-hover); }

/* colagem de capas */
.collage { position: relative; height: 420px; }
.col-card { position: absolute; display: block; border-radius: var(--r); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-hover); overflow: hidden; text-decoration: none; transition: transform .6s var(--ease); }
.col-a { width: 58%; left: 0; top: 46px; transform: rotate(-6deg); opacity: .96; }
.col-b { width: 58%; right: 0; top: 0; transform: rotate(5deg); }
.col-c { width: 68%; left: 16%; top: 110px; transform: rotate(-1.5deg); z-index: 2; }
.collage:hover .col-a { transform: rotate(-8deg) translate(-10px, 4px); }
.collage:hover .col-b { transform: rotate(7deg) translate(10px, -4px); }
.collage:hover .col-c { transform: rotate(0) translateY(-6px); }
.col-cap { display: grid; gap: 6px; padding: 12px 14px 14px; border-top: 1px solid var(--border); }
.col-cap-k { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.col-cap strong { font: 600 14.5px/1.3 var(--f-display); color: var(--ink); }
.float-pill { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-hover); font: 600 12.5px/1 var(--f-body); color: var(--ink); animation: flutua 6s ease-in-out infinite; }
.float-pill svg { color: var(--accent); }
.fp-1 { left: 2%; top: 4px; }
.fp-2 { right: 0; top: 230px; animation-delay: -3s; }
@keyframes flutua { 50% { transform: translateY(-6px); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage { height: auto; }
  .col-a, .col-b, .float-pill { display: none; }
  .col-c { position: relative; width: 100%; left: 0; top: 0; transform: none; }
}

/* ---------------------------------------------------------------- capa estilo revista */
.thumb {
  position: relative; container-type: inline-size; aspect-ratio: 16 / 8.6; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; column-gap: 5%; align-items: center; padding: 5% 6% 7%;
  background:
    linear-gradient(rgba(11, 13, 16, .045) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(11, 13, 16, .045) 1px, transparent 1px) 0 0 / 22px 100%,
    #FBFBF8;
  color: #0B0D10;
}
.th-l { display: grid; gap: 2.4cqw; align-content: center; min-width: 0; }
.th-k { font: italic 400 4cqw/1.15 var(--f-serif); color: #5B6370; }
.th-t { font: 800 7.6cqw/1.02 var(--f-display); letter-spacing: -.035em; color: #0B0D10; overflow-wrap: anywhere; }
.th-t mark { background: linear-gradient(transparent 12%, var(--lima) 12%, var(--lima) 92%, transparent 92%); color: inherit; padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.thumb-artigo .th-t mark { background: none; color: var(--roxo); }
.th-sub { font: 600 3.2cqw/1.3 var(--f-body); color: #0B0D10; }
.th-tags { display: flex; flex-wrap: wrap; gap: 1.2cqw; }
.th-tags i { font: 700 2.2cqw/1 var(--f-mono); font-style: normal; letter-spacing: .04em; color: #fff; background: #0B0D10; padding: 1.1cqw 1.6cqw; border-radius: 1cqw; }
.th-r { min-width: 0; }
.th-win { border-radius: 2.2cqw; background: #1E1F24; box-shadow: 0 3cqw 6cqw -3cqw rgba(11, 13, 16, .5); overflow: hidden; transform: rotate(2deg); }
.th-dots { display: flex; gap: 1cqw; padding: 1.8cqw 2.2cqw; background: #2E2F35; }
.th-dots i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #FF5F57; }
.th-dots i:nth-child(2) { background: #FEBC2E; }
.th-dots i:nth-child(3) { background: #28C840; }
.th-win pre { margin: 0; padding: 2.2cqw 2.4cqw 2.8cqw; font: 500 2.5cqw/1.6 var(--f-mono); color: #E6E6E6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 22cqw; overflow: hidden; }
.th-win .ln { display: block; }
.th-terminal .ln.cmd::before { content: "$ "; color: #28C840; }
.th-claude .ln.cmd::before { content: "> "; color: #D38CFF; }
.th-marcas { display: flex; align-items: center; justify-content: center; gap: 2cqw; flex-wrap: wrap; }
.th-marca { display: grid; place-items: center; min-width: 22cqw; min-height: 22cqw; padding: 2cqw; border-radius: 3cqw; background: #fff; border: .5cqw solid #0B0D10; box-shadow: 1.2cqw 1.2cqw 0 #0B0D10; font: 800 3.6cqw/1 var(--f-display); color: #0B0D10; text-align: center; }
.th-vs { display: grid; place-items: center; width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--lima); border: .5cqw solid #0B0D10; font: 800 3cqw/1 var(--f-display); color: #0B0D10; }
.th-url { position: absolute; left: 6%; bottom: 3.2%; font: 500 2cqw/1 var(--f-mono); color: #8A909A; }

/* ---------------------------------------------------------------- seções */
.sec { padding: clamp(56px, 7vw, 88px) 0; }
.sec-tight { padding-top: 8px; }
.sec-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2, .quem h2, .guide-end h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.sec-sub { margin-top: 8px; color: var(--ink-muted); max-width: 38em; }
.eyebrow { font: 600 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }

.page-head { padding: clamp(40px, 6vw, 64px) 0 28px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.25rem); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; }
.page-head .lede { margin-top: 14px; max-width: 36em; font-size: 1.08rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid, .grid-2 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; text-decoration: none; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border-hover); }
.card .thumb { border-bottom: 1px solid var(--border); }
.card .th-win { transition: transform .5s var(--ease-spring); }
.card:hover .th-win { transform: rotate(0) scale(1.04); }
.card-b { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.card-b h3 { font-size: 17.5px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.card-b p { font-size: 14px; line-height: 1.55; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--f-body); color: var(--accent-ink); }
.card-link svg { transition: transform .3s var(--ease-spring); }
.card:hover .card-link svg { transform: translateX(4px); }
.card-date { margin-top: auto; font-size: 13px; color: var(--ink-muted); }
.card[hidden], .news[hidden] { display: none; }

.tag { display: inline-flex; align-self: flex-start; padding: 3px 9px; border-radius: 6px; font: 600 12px/1.3 var(--f-body); background: var(--tag-roxo-bg); color: var(--tag-roxo); }
.tag-magenta { background: var(--tag-magenta-bg); color: var(--tag-magenta); }
.tag-lima { background: var(--tag-lima-bg); color: var(--tag-lima); }

/* notícias */
.news { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); text-decoration: none; align-items: start; }
.news .thumb { border-radius: var(--r-sm); border: 1px solid var(--border); transition: transform .4s var(--ease); }
.news:hover .thumb { transform: scale(1.02); }
.news-b { display: grid; gap: 8px; min-width: 0; }
.news-b h3 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; transition: color .2s; }
.news:hover h3 { color: var(--accent-ink); }
.news-b p { font-size: 14px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-b time { font-size: 13px; color: var(--ink-muted); }
.news-lg { grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); align-items: center; }
.news-lg h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.news-lg p { -webkit-line-clamp: 4; font-size: 15px; }
.news-list .news:last-child { border-bottom: 0; }
.news-home { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
.news-home .news-lg { grid-template-columns: 1fr; }
.news-home .news-list .news { grid-template-columns: 150px 1fr; }
.news-home .news-list .news:first-child { padding-top: 0; }
.news-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.news-2 .news { border-bottom: 0; }
.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; margin-top: 24px; }
.news-main .news-list { margin-top: 12px; }
.news-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.side-box { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.side-box h2 { font-size: 19px; line-height: 1.25; font-weight: 700; }
.side-box p:not(.eyebrow) { margin: 8px 0 16px; font-size: 14px; color: var(--ink-muted); }
.mais-lidas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mais-lidas li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.mais-lidas span { font: 700 20px/1 var(--f-display); color: var(--accent-ink); }
.mais-lidas a { font: 600 14px/1.35 var(--f-body); text-decoration: none; }
.mais-lidas a:hover { color: var(--accent-ink); }
@media (max-width: 960px) {
  .news-layout, .news-home { grid-template-columns: 1fr; }
  .news-side { position: static; }
  .news-lg { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .news, .news-home .news-list .news { grid-template-columns: 110px 1fr; gap: 14px; }
  .news-lg { grid-template-columns: 1fr; padding: 16px; }
  .news-b p { display: none; }
  .news-lg .news-b p { display: -webkit-box; }
  .news-2 { grid-template-columns: 1fr; }
}

/* filtros */
.filters { display: grid; gap: 14px; margin-bottom: 28px; }
.search { display: flex; align-items: center; gap: 10px; max-width: 440px; padding: 0 14px; min-height: 44px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--border); color: var(--ink-muted); font-size: 17px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 15px/1 var(--f-body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink-soft); font: 500 13.5px/1 var(--f-body); cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--border-hover); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.empty { margin-top: 24px; padding: 28px; border-radius: var(--r); border: 1px dashed var(--border-hover); text-align: center; color: var(--ink-muted); }
.empty a { color: var(--accent-ink); }

/* quem faz */
.quem { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; max-width: 880px; }
.quem-foto { width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); filter: grayscale(1) contrast(1.05); box-shadow: var(--shadow-hover); }
.quem p:not(.eyebrow) { margin-top: 12px; color: var(--ink-muted); max-width: 38em; }
.quem .cta-row { margin-top: 20px; }
@media (max-width: 640px) { .quem { grid-template-columns: 1fr; gap: 24px; } .quem-foto { width: 140px; } }

/* bloco Instagram (no lugar da newsletter) */
.insta-card { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.insta-l { padding: clamp(24px, 4vw, 40px); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--bg-soft); border-right: 1px solid var(--border); }
.insta-l .eyebrow { color: var(--accent-ink); }
.insta-l h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; max-width: 14em; }
.insta-l > p { margin-top: 12px; color: var(--ink-muted); max-width: 30em; }
.insta-l ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.insta-l li { display: flex; gap: 10px; align-items: center; }
.insta-l li svg { color: var(--accent-ink); font-size: 18px; }
.insta-autor { display: flex; gap: 12px; align-items: center; margin-top: 28px; font-size: 13px; color: var(--ink-muted); }
.insta-autor img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.insta-autor strong { display: block; color: var(--ink); font-size: 14px; }
.insta-r { padding: clamp(24px, 4vw, 40px); display: grid; align-content: center; gap: 14px; }
.insta-handle { font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--accent-ink); }
.insta-r p { color: var(--ink-muted); }
.insta-r small { text-align: center; color: var(--ink-muted); font-size: 12.5px; }
@media (max-width: 820px) { .insta-card { grid-template-columns: 1fr; } .insta-l { border-right: 0; border-bottom: 1px solid var(--border); } }
.insta-strip { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px 28px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.insta-strip h2 { font-size: 20px; font-weight: 700; }
.insta-strip p { margin-top: 6px; color: var(--ink-muted); max-width: 40em; font-size: 14.5px; }

/* sobre */
.sobre { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.sobre-foto { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); filter: grayscale(1) contrast(1.05); box-shadow: var(--shadow-hover); }
.prose { max-width: 40em; }
.prose > * + * { margin-top: 16px; }
.prose p { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 760px) { .sobre { grid-template-columns: 1fr; } .sobre-foto { max-width: 280px; } }

/* ---------------------------------------------------------------- leitura (notícia / artigo) */
.leitura { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font: 500 14px/1 var(--f-body); color: var(--ink-muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.leitura h1 { margin-top: 14px; font-size: clamp(2rem, 4.4vw, 2.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.leitura > .lede { margin-top: 16px; font-size: 1.12rem; color: var(--ink-muted); }
.byline { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--ink-muted); }
.byline img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.leitura-capa { margin: 28px 0 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.leitura-corpo { margin-top: 32px; }
.leitura-corpo > * + * { margin-top: 18px; }
.leitura-corpo p, .leitura-corpo li { font-size: 1.06rem; line-height: 1.7; color: var(--ink-soft); }
.leitura-corpo strong { color: var(--ink); font-weight: 600; }
.leitura-corpo a { color: var(--accent-ink); text-underline-offset: 3px; }
.a-h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; padding-top: 18px; }
.fontes { margin-top: 40px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--border); }
.fontes h2 { font-size: 13px; font-family: var(--f-body); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.fontes ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.fontes li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fontes a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.fontes a:hover { text-decoration: underline; }
.fontes small { color: var(--ink-muted); font: 400 12.5px/1.6 var(--f-mono); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
thead th { background: var(--bg-soft); font-weight: 600; color: var(--ink-muted); font-size: 13px; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--ink); }
td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- página do guia */
.ghero { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.ghero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.crumbs { display: flex; gap: 8px; align-items: center; font: 500 13.5px/1 var(--f-body); color: var(--ink-muted); }
.crumbs a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ghero h1 { margin-top: 16px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06; font-weight: 700; letter-spacing: -.04em; }
.ghero .lede { margin-top: 16px; max-width: 38em; font-size: 1.06rem; color: var(--ink-muted); }
.chips-static { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-static li { padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-soft); font: 500 13px/1.2 var(--f-body); color: var(--ink-soft); }
.ghero-thumb .thumb { border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-hover); transform: rotate(1.5deg); transition: transform .6s var(--ease); }
.ghero-thumb .thumb:hover { transform: rotate(0); }
@media (max-width: 900px) { .ghero-grid { grid-template-columns: 1fr; } .ghero-thumb { display: none; } }

.toc { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--border); }
.toc-in { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.toc-count { flex: none; font: 500 13px/1 var(--f-mono); color: var(--ink-muted); padding-right: 16px; border-right: 1px solid var(--border); }
.toc-count b { color: var(--accent-ink); font-weight: 700; }
.toc-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); padding-block: 8px; }
.toc-links::-webkit-scrollbar { display: none; }
.toc-links a { flex: none; padding: 7px 12px; border-radius: 6px; font: 500 14px/1 var(--f-body); color: var(--ink-muted); text-decoration: none; white-space: nowrap; transition: color .2s, background-color .25s; }
.toc-links a:hover { color: var(--ink); }
.toc-links a.on { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.toc-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.toc-bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }
.mobile-note { display: none; }
@media (max-width: 760px) and (pointer: coarse) { .mobile-note { display: block; margin-top: 24px; } }
.mobile-note .btn { margin-top: 12px; }

.guide { max-width: 800px; padding-top: 8px; padding-bottom: 32px; }
.g-sec { padding-top: clamp(48px, 6vw, 72px); }
.g-sec > h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; margin-bottom: 20px; }
.g-sec > * + * { margin-top: 18px; }
.g-sec > .eyebrow + h2 { margin-top: 0; }
.g-sec > .eyebrow { color: var(--accent-ink); }
.g-sec p, .g-sec li { color: var(--ink-soft); }
.g-sec a:not(.btn):not(.tool-link) { color: var(--accent-ink); text-underline-offset: 3px; }
.g-sec strong { color: var(--ink); font-weight: 600; }
.g-h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.02em; padding-top: 12px; }
.g-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.g-list li { position: relative; padding-left: 24px; }
.g-list li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

.steps { list-style: none; padding: 0; display: grid; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; position: relative; padding-bottom: 22px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--border); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); color: var(--accent-ink); font: 700 13px/1 var(--f-mono); box-shadow: var(--shadow); }
.step-b { padding-top: 8px; min-width: 0; }
.step-b h4 { font-size: 1.04rem; font-weight: 600; letter-spacing: -.01em; }
.step-b p { margin-top: 4px; }
.step-b .code { margin-top: 12px; }

/* terminal estilo macOS, comandos coloridos */
.code { margin: 0; border-radius: 12px; overflow: hidden; background: #1E1F24; border: 1px solid rgba(0, 0, 0, .55); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .06) inset, 0 22px 48px -24px rgba(11, 13, 16, .55), 0 2px 6px rgba(11, 13, 16, .12); }
.code figcaption { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 8px 6px 14px; background: linear-gradient(#34353B, #2B2C31); border-bottom: 1px solid #111216; font: 500 12.5px/1.3 var(--f-body); color: #A9ABB3; }
.code-dots { display: flex; gap: 8px; flex: none; }
.code-dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.code-dots i:nth-child(2) { background: #FEBC2E; }
.code-dots i:nth-child(3) { background: #28C840; }
.code-label { flex: 1; min-width: 0; text-align: center; color: #D7D8DD; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-label code { background: rgba(255, 255, 255, .08); color: #E9D5FF; }
.code-kind { flex: none; font: 500 11px/1 var(--f-mono); color: #7D7F88; text-transform: uppercase; letter-spacing: .06em; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #E4E5EA; font: 600 12px/1 var(--f-body); cursor: pointer; transition: all .2s var(--ease); }
.copy:hover { background: rgba(255, 255, 255, .12); }
.copy.ok { background: #28C840; border-color: #28C840; color: #0B0D10; }
.code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font: 400 14px/1.75 var(--f-mono); color: #E6E6E6; }
.code pre code { background: none; color: inherit; padding: 0; font-size: inherit; display: grid; border-radius: 0; }
.ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-terminal .ln.cmd, .code-claude .ln.cmd { padding-left: 1.6em; text-indent: -1.6em; }
.code-terminal .ln.cmd::before { content: "$ "; color: #28C840; font-weight: 700; }
.code-claude .ln.cmd::before { content: "> "; color: #D38CFF; font-weight: 700; }
.c { color: #7D8590; font-style: italic; }
.k-cmd { color: #5CCFE6; font-weight: 500; }
.k-slash { color: #D38CFF; font-weight: 500; }
.k-flag { color: #FFCB6B; }
.k-str { color: #A5E075; }
.k-url { color: #78B6FF; }
.k-op { color: #FF7B72; }
.k-ph { color: #FFCB6B; background: rgba(255, 203, 107, .1); border-radius: 4px; padding: 0 .2em; }
.code-prompt pre { color: #F2F4F7; font-family: var(--f-body); font-size: 15px; line-height: 1.7; }
@media (max-width: 560px) { .code-kind { display: none; } .code-label { text-align: left; } }

/* destaques */
.callout { position: relative; padding: 16px 18px 16px 20px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.callout::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.callout-t { display: block; font: 700 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.callout p { color: var(--ink-soft); }
.callout-atencao { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.callout-atencao::before { background: var(--warn); }
.callout-atencao .callout-t { color: var(--warn); }
.callout-info { background: var(--bg-soft); border-color: var(--border); }
.callout-info::before { background: var(--border-hover); }
.callout-info .callout-t { color: var(--ink-muted); }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-1 { grid-template-columns: 1fr; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .cards, .cards-2 { grid-template-columns: 1fr; } }
.mini { padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.mini-k { font: 600 11.5px/1.2 var(--f-mono); letter-spacing: .04em; color: var(--accent-ink); text-transform: uppercase; }
.mini-k code { background: none; padding: 0; font-size: 1.2em; }
.mini h4 { margin-top: 8px; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.mini p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-muted) !important; }

.rows { margin: 0; border-radius: var(--r); border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.rows > div { display: grid; grid-template-columns: minmax(140px, 32%) 1fr; gap: 16px; padding: 13px 16px; }
.rows > div + div { border-top: 1px solid var(--border); }
.rows dt { font: 600 14.5px/1.4 var(--f-body); color: var(--ink); }
.rows dd { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 560px) { .rows > div { grid-template-columns: 1fr; gap: 4px; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats > div { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.stats strong { display: block; font: 800 clamp(1.6rem, 3.4vw, 2rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--accent-ink); }
.stats span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--ink-muted); }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }

.tool { padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tool > * { min-width: 0; }
.tool + .tool { margin-top: 16px; }
.tool header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-n { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding: 0 10px; border-radius: 8px; background: #0B0D10; color: var(--lima); font: 700 13px/1 var(--f-mono); }
.tool h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.025em; }
.tool-meta { margin-left: auto; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); font: 600 12px/1.2 var(--f-body); color: var(--ink-muted); }
.tool-nota { font-size: 14.5px; color: var(--ink-muted) !important; }
.tool-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font: 600 13px/1.2 var(--f-mono); text-decoration: none; }
.tool-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-link:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
@media (max-width: 560px) { .tool { padding: 16px; } }

.checklist { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.check-head { display: flex; justify-content: space-between; padding: 12px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--border); font: 600 12.5px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.check-count { color: var(--accent-ink); font-family: var(--f-mono); letter-spacing: 0; text-transform: none; }
.checklist ul { list-style: none; margin: 0; padding: 6px 0; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 11px 18px; cursor: pointer; color: var(--ink-soft); transition: background-color .2s; }
.checklist label:hover { background: var(--bg-soft); }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.box { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1.5px solid var(--border-hover); display: grid; place-items: center; transition: all .25s var(--ease-spring); }
.box::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--ease-spring); }
.checklist input:checked + .box { background: var(--accent); border-color: var(--accent); }
.checklist input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.checklist input:checked ~ span:last-child { color: var(--ink-muted); text-decoration: line-through; }
.checklist input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 3px; }

.linkrow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.linkrow a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--card); text-decoration: none !important; color: var(--ink) !important; transition: border-color .2s, transform .3s var(--ease); }
.linkrow a:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.linkrow span { font: 600 14.5px/1.3 var(--f-body); }
.linkrow small { grid-column: 1; font: 400 12px/1.3 var(--f-mono); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkrow svg { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--accent-ink); }

.guide-end { margin-top: clamp(56px, 7vw, 88px); padding: clamp(22px, 4vw, 32px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 8px; }
.guide-end p:not(.eyebrow) { color: var(--ink-muted); margin-top: 8px; }
.guide-end .cta-row { margin-top: 14px; }

/* ---------------------------------------------------------------- rodapé */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.logo-foot { height: 30px; width: auto; }
:root[data-theme="dark"] .logo-foot.logo-l { display: none; }
:root[data-theme="dark"] .logo-foot.logo-d { display: block; }
.footer-brand p { margin-top: 14px; max-width: 24em; color: var(--ink-muted); font-size: 14px; }
.footer-grid nav { display: grid; align-content: start; gap: 10px; }
.footer-grid h2 { font: 600 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.footer-grid nav a { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; text-decoration: none; color: var(--ink-soft); }
.footer-grid nav a:hover { color: var(--accent-ink); }
.footer-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- entrada suave */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* contato (página Sobre) */
.contato { margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 4vw, 36px); border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--border); }
.contato h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.035em; }
.contato > p { margin-top: 10px; max-width: 42em; color: var(--ink-soft); line-height: 1.7; }
.contato > p a { color: var(--accent-ink); text-underline-offset: 3px; }
.contato-lista { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.contato-lista a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--border); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.contato-lista a:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.contato-lista strong { font: 600 14.5px/1.3 var(--f-body); }
.contato-lista span { grid-column: 1; font-size: 13px; color: var(--ink-muted); }
.contato-lista svg { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--accent-ink); }

/* sobre: lateral, habilidades, formação, estúdio */
.sobre-lado { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.sobre-lado .cta-row { margin-top: 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
.sobre-bloco { margin-top: clamp(56px, 7vw, 88px); }
.sobre-bloco .sec-head { margin-bottom: 24px; }
.sobre-bloco h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.035em; }
.skills { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.skills > div { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color .25s, transform .35s var(--ease); }
.skills > div:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.skills dt { font: 600 15px/1.3 var(--f-display); color: var(--ink); }
.skills dt::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 2px; background: var(--accent); vertical-align: middle; transform: translateY(-1px); }
.skills dd { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.formacao { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.formacao > div { padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.formacao h3 { font: 600 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 12px 0; }
.timeline li + li { border-top: 1px solid var(--border); }
.tl-ano { font: 700 14px/1.4 var(--f-mono); color: var(--accent-ink); }
.timeline strong { display: block; font: 600 15.5px/1.35 var(--f-display); }
.timeline span:not(.tl-ano) { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-muted); }
.studio { margin-top: clamp(56px, 7vw, 88px); padding: clamp(26px, 4vw, 40px); border-radius: var(--r-lg); color: #fff; background:
    radial-gradient(rgba(244, 241, 248, .1) 1px, transparent 1.2px) 0 0 / 20px 20px,
    radial-gradient(80% 120% at 100% 0%, var(--roxo) 0%, transparent 60%),
    linear-gradient(150deg, var(--roxo-profundo), var(--roxo-noite) 70%);
  box-shadow: 0 30px 70px -40px rgba(139, 0, 255, .8); }
.studio .eyebrow { color: var(--lima); }
.studio h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.035em; color: #fff; }
.studio > p:not(.eyebrow) { margin-top: 12px; max-width: 40em; color: rgba(244, 241, 248, .82); font-size: 1.05rem; }
.studio-tags { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.studio-tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(244, 241, 248, .22); background: rgba(244, 241, 248, .06); font: 500 13.5px/1.2 var(--f-body); }
.studio .btn-primary { --b-bg: var(--lima); --b-fg: #0B0D10; box-shadow: 0 8px 24px -10px rgba(212, 255, 0, .6); }
.studio .btn-primary:hover { --b-bg: #E3FF4D; }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sobre-lado { position: static; } .formacao { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

/* lista de PDFs (página de guias) */
.pdf-lista { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pdf-lista a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--border); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.pdf-lista a:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.pdf-lista svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); }
.pdf-lista span { display: grid; gap: 2px; min-width: 0; }
.pdf-lista strong { font: 600 14.5px/1.35 var(--f-body); }
.pdf-lista small { font-size: 12.5px; color: var(--ink-muted); }
@media (max-width: 760px) { .pdf-lista { grid-template-columns: 1fr; } }

/* ================================================================
   Capa centralizada (artigos): título em cima, ilustração, etiquetas.
   Tudo em cqw: escala igual no card pequeno e na capa grande.
   ================================================================ */
.thumb.capa { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; gap: 2.4cqw; padding: 4.4% 6% 6.5%; text-align: center; }
.capa-t { font: 800 5.6cqw/1.1 var(--f-display); letter-spacing: -.035em; color: #0B0D10; max-width: 86%; text-wrap: balance; }
.capa-t mark { background: linear-gradient(transparent 10%, var(--lima) 10%, var(--lima) 94%, transparent 94%); color: inherit; padding: 0 .1em; }
.capa-t em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -.01em; color: #0B0D10; }
.capa-art { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; }
.capa-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2cqw; }
.capa-tags i { font: 700 1.9cqw/1 var(--f-mono); font-style: normal; letter-spacing: .05em; color: #fff; background: #0B0D10; padding: 1cqw 1.5cqw; border-radius: .9cqw; }
.capa-url { position: absolute; left: 0; right: 0; bottom: 2.4%; font: 500 1.7cqw/1 var(--f-mono); color: #8A909A; }

.il { display: flex; align-items: center; justify-content: center; gap: 3cqw; font-family: var(--f-mono); }
.il-l { display: block; font-size: 1.9cqw; line-height: 1.75; white-space: nowrap; text-align: left; }
.il-term { background: #1E1F24; color: #E6E6E6; border-radius: 1.8cqw; padding: 0 2.2cqw 2cqw; box-shadow: 0 2.4cqw 5cqw -2.4cqw rgba(11, 13, 16, .55); text-align: left; }
.il-dots { display: flex; align-items: center; gap: .9cqw; padding: 1.6cqw 0 1.4cqw; }
.il-dots i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #FF5F57; }
.il-dots i:nth-child(2) { background: #FEBC2E; }
.il-dots i:nth-child(3) { background: #28C840; }
.il-dots em { margin-left: 1cqw; font: 500 1.6cqw/1 var(--f-mono); font-style: normal; color: #8A8C94; }
.il-p { font-style: normal; color: #D38CFF; }
.il-ok { color: #28C840; }

/* skill: arquivo SKILL.md e terminal */
.il-file { position: relative; background: #fff; border: .3cqw solid #0B0D10; border-radius: 1.6cqw; padding: 1.6cqw 2.4cqw 2.2cqw; box-shadow: 1.1cqw 1.1cqw 0 #0B0D10; transform: rotate(-3deg); text-align: left; color: #0B0D10; }
.il-file-h { display: flex; align-items: center; gap: 1cqw; margin-bottom: .8cqw; font: 700 1.9cqw/1 var(--f-mono); }
.il-file-h i { width: 2.2cqw; height: 2.6cqw; border-radius: .4cqw; background: var(--roxo); }
.il-file b { font-weight: 700; }
.il-mut { color: #9AA0A9; }
.il-hl { background: var(--lima); border-radius: .5cqw; padding: 0 .8cqw; margin: 0 -.8cqw; }
.il-bar { display: block; height: 1.1cqw; width: 26cqw; margin-top: 1.2cqw; border-radius: 1cqw; background: #E4E7EC; }
.il-bar-s { width: 18cqw; }
.il-seta { width: 7cqw; height: .45cqw; background: #0B0D10; position: relative; border-radius: 1cqw; }
.il-seta::after { content: ""; position: absolute; right: -.2cqw; top: 50%; width: 2cqw; height: 2cqw; border-top: .45cqw solid #0B0D10; border-right: .45cqw solid #0B0D10; transform: translateY(-50%) rotate(45deg); }
.il-skill .il-term { transform: rotate(2deg); }

/* tokens: medidor de contexto e teclas */
.il-tokens { gap: 4cqw; }
.il-ctx { width: 44cqw; }
.il-meter { display: flex; height: 3.4cqw; border-radius: 1cqw; overflow: hidden; background: #2E2F35; }
.il-meter i { width: var(--w); background: var(--c); }
.il-meter i + i { box-shadow: -.3cqw 0 0 #1E1F24; }
.il-leg { display: flex; flex-wrap: wrap; gap: .6cqw 2cqw; margin-top: 1.6cqw; }
.il-leg i { font: 500 1.6cqw/1.2 var(--f-mono); font-style: normal; color: #B8BBC4; display: flex; align-items: center; gap: .7cqw; }
.il-leg i::before { content: ""; width: 1.3cqw; height: 1.3cqw; border-radius: .3cqw; background: var(--c); }
.il-uso { display: block; margin-top: 1.8cqw; font: 500 1.9cqw/1 var(--f-mono); color: #B8BBC4; }
.il-uso b { font: 800 4cqw/1 var(--f-display); color: #FF7B72; margin-right: .6cqw; }
.il-keys { display: grid; gap: 1.8cqw; }
.il-keys kbd { display: block; font: 700 2.2cqw/1 var(--f-mono); color: #0B0D10; background: #fff; border: .3cqw solid #0B0D10; border-radius: 1.2cqw; padding: 1.6cqw 2.2cqw; box-shadow: 0 .9cqw 0 #0B0D10; }
.il-keys kbd:last-child { transform: rotate(-4deg); }

/* mcp: agente, plugue MCP e servidores */
.il-mcp { gap: 0; }
.il-node { display: grid; justify-items: center; gap: .6cqw; padding: 1.4cqw 2.2cqw; background: #fff; border: .3cqw solid #0B0D10; border-radius: 1.4cqw; box-shadow: .8cqw .8cqw 0 #0B0D10; font: 700 2cqw/1.1 var(--f-display); color: #0B0D10; white-space: nowrap; }
.il-agent { padding: 2cqw 2.6cqw; }
.il-agent small { font: 500 1.5cqw/1 var(--f-mono); color: #8A909A; }
.il-ico { display: grid; place-items: center; width: 6cqw; height: 6cqw; border-radius: 1.4cqw; background: #1E1F24; color: #D38CFF; font: 700 2.2cqw/1 var(--f-mono); }
.il-cabo { width: 5.5cqw; border-top: .45cqw dashed #0B0D10; }
.il-plug { display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--lima); border: .4cqw solid #0B0D10; box-shadow: 0 0 0 1.4cqw rgba(212, 255, 0, .25); font: 800 2.4cqw/1 var(--f-display); color: #0B0D10; }
.il-servers { display: grid; gap: 1.4cqw; }
.il-servers .il-node { padding: 1.3cqw 2.4cqw; }

/* ================================================================
   Página de artigo (modelo da referência)
   ================================================================ */
.artigo-head { padding: 28px 0 40px; border-bottom: 1px solid var(--border); }
.artigo-head-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.artigo-head h1 { margin-top: 14px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.artigo-head .lede { margin-top: 16px; font-size: 1.08rem; color: var(--ink-muted); max-width: 36em; }
.artigo-capa { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-hover); }
.artigo-grid { display: grid; grid-template-columns: minmax(0, 720px) 240px; justify-content: space-between; gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.artigo-main .leitura-corpo { margin-top: 32px; }
.resumo-rapido { padding: 20px 22px; border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.resumo-rapido h2 { font: 700 15px/1.2 var(--f-display); color: var(--accent-ink); }
.resumo-rapido ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.resumo-rapido li { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.resumo-rapido li::marker { color: var(--accent); }
.resumo-rapido strong { color: var(--ink); }
.artigo-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.artigo-toc nav { display: grid; gap: 2px; border-left: 2px solid var(--border); }
.artigo-toc a { margin-left: -2px; padding: 6px 12px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--ink-muted); text-decoration: none; transition: color .2s, border-color .2s; }
.artigo-toc a:hover { color: var(--ink); }
.artigo-toc a.on { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
.artigo-toc code { font-size: .9em; }
.autor-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.autor-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex: none; }
.autor-box .eyebrow { margin-bottom: 6px; color: var(--accent-ink); }
.autor-box p:not(.eyebrow) { color: var(--ink-soft); font-size: 15px; }
.autor-box .cta-row { margin-top: 14px; }
@media (max-width: 1000px) { .artigo-grid { grid-template-columns: 1fr; } .artigo-toc { display: none; } }
@media (max-width: 860px) { .artigo-head-grid { grid-template-columns: 1fr; } }

.artigo-head .back, .leitura .back { display: flex; width: fit-content; }

/* ================================================================
   Capa "foto" (artigos): pergunta em itálico, título com destaque
   roxo, etiquetas e objeto 3D à direita (como a referência).
   ================================================================ */
.thumb.foto { grid-template-columns: 1.05fr .95fr; column-gap: 2%; padding: 0 0 0 6%; background: #fff; }
.thumb.foto .th-l { gap: 2.2cqw; padding: 6% 0 9%; }
.thumb.foto .th-k { font-size: 3.6cqw; color: #7A818C; }
.thumb.foto .th-t { font-size: 7.4cqw; line-height: 1; }
.thumb.foto .th-t .cor { color: var(--roxo); }
.foto-tags { display: flex; flex-wrap: wrap; gap: 1cqw; }
.foto-tags i { font: 500 1.9cqw/1 var(--f-mono); font-style: normal; color: #3A404A; border: .25cqw solid #D5D9DF; border-radius: 99px; padding: .9cqw 1.6cqw; background: #fff; }
.foto-img { justify-self: end; align-self: center; width: 100%; height: 100%; object-fit: contain; object-position: right center; padding: 4% 4% 4% 0; }
.thumb.foto .th-url { color: #A3A9B2; }
.foto-img { mix-blend-mode: multiply; }

/* ================================================================
   Achadinhos de tecnologia: capa com foto real do produto +
   identidade Mchellabs (grade, marca-texto lima, itálico serifado)
   ================================================================ */
.achados { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.achado { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s, border-color .25s, transform .25s; }
.achado:hover { box-shadow: var(--shadow-hover); border-color: var(--border-hover); transform: translateY(-2px); }
.achado-capa {
  position: relative; container-type: inline-size; aspect-ratio: 4 / 4.4; overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; text-align: center; padding: 7% 7% 6%; gap: 1.6cqw;
  background:
    radial-gradient(60% 45% at 50% 62%, rgba(139, 0, 255, .10), transparent 70%),
    linear-gradient(rgba(11, 13, 16, .05) 1px, transparent 1px) 0 0 / 100% 9.5cqw,
    linear-gradient(90deg, rgba(11, 13, 16, .05) 1px, transparent 1px) 0 0 / 9.5cqw 100%,
    #fff;
  color: #0B0D10; border-bottom: 1px solid var(--border);
}
.ac-k { font: italic 400 5.4cqw/1.1 var(--f-serif); color: #5B6370; }
.ac-t { font: 800 9.6cqw/1.02 var(--f-display); letter-spacing: -.04em; color: #2A2F38; text-wrap: balance; }
.ac-t mark { background: var(--lima); color: #0B0D10; padding: 0 .12em; outline: .5cqw solid #A9CC00; outline-offset: 0; }
.ac-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 4cqw 4cqw rgba(11, 13, 16, .14)); transition: transform .35s ease; }
.achado:hover .ac-img { transform: scale(1.04) rotate(-1.5deg); }
.ac-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4cqw; }
.ac-tags i { font: 700 3cqw/1 var(--f-mono); font-style: normal; color: #0B0D10; background: #fff; border: .4cqw solid #0B0D10; border-radius: 1.4cqw; padding: 1.4cqw 2cqw; box-shadow: .8cqw .8cqw 0 #0B0D10; }
.ac-tags i:first-child { background: var(--lima); }
.ac-logo { position: absolute; top: 5%; right: 5%; width: 15cqw; height: auto; opacity: .9; }
.achado-b { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.achado-loja { align-self: flex-start; font: 600 12px/1 var(--f-body); color: #C2410C; background: rgba(238, 77, 45, .1); padding: 6px 9px; border-radius: 99px; }
.achado-b h2 { font: 700 17px/1.3 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.achado-b p { color: var(--ink-muted); font-size: 14.5px; line-height: 1.55; }
.achado-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.achado-cta .btn { flex: 1 1 auto; justify-content: center; }
.achado-aviso { margin-top: 28px; padding: 14px 16px; border-radius: var(--r); border: 1px dashed var(--border-hover); color: var(--ink-muted); font-size: 14px; line-height: 1.55; }
.achado-aviso strong { color: var(--ink); }
@media (max-width: 980px) { .achados { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .achados { grid-template-columns: 1fr; } }
.achado-capa { grid-template-rows: auto auto 1fr auto auto; padding-bottom: 5%; }
.ac-img { mix-blend-mode: normal; }
.ac-logo { position: static; width: 17cqw; margin-top: .6cqw; opacity: 1; }
/* achadinhos: cor do destaque por produto (capa.cor) */
.ac-roxo .ac-t mark { background: var(--roxo); color: #fff; outline-color: #5E00B0; }
.ac-roxo .ac-tags i:first-child { background: var(--roxo); color: #fff; }
.ac-rosa .ac-t mark { background: #FF2D9B; color: #fff; outline-color: #C4006E; }
.ac-rosa .ac-tags i:first-child { background: #FF2D9B; color: #fff; }
.ac-rosa { background:
    radial-gradient(60% 45% at 50% 62%, rgba(255, 45, 155, .10), transparent 70%),
    linear-gradient(rgba(11, 13, 16, .05) 1px, transparent 1px) 0 0 / 100% 9.5cqw,
    linear-gradient(90deg, rgba(11, 13, 16, .05) 1px, transparent 1px) 0 0 / 9.5cqw 100%, #fff; }
.ac-lima { background:
    radial-gradient(60% 45% at 50% 62%, rgba(180, 230, 0, .16), transparent 70%),
    linear-gradient(rgba(11, 13, 16, .05) 1px, transparent 1px) 0 0 / 100% 9.5cqw,
    linear-gradient(90deg, rgba(11, 13, 16, .05) 1px, transparent 1px) 0 0 / 9.5cqw 100%, #fff; }
.achado-filtros { margin-bottom: 24px; }
.achado[hidden] { display: none; }
