/* =========================================================
   David Nascimento — portfólio
   ========================================================= */

:root {
  /* Paleta Ardósia: azul-acinzentado suave. O tema escuro é o padrão (ver script no <head>). */
  --paper: #F1F3F5;
  --paper-alt: #E7EBEF;
  --surface: #F9FAFB;
  --ink: #26303A;
  --ink-soft: #4A5663;
  --muted: #606C78;
  --rule: #D5DCE2;
  --pass: #41697E;
  --pass-soft: #DCE7EE;
  --fail: #A33A32;
  --fail-soft: #F6E3E1;
  --glow: rgba(65,105,126,.12);
  --run-bg: #26303A;
  --run-ink: #D3DCE4;
  --run-muted: #93A1AE;
  --run-pass: #8DBDD3;
  --lc2: #5E8A6E;
  --lc3: #9A6B1F;
  --lc4: #7A5A9E;
  --lc5: #B04E2E;
  --bird: #12171B;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B2128;
    --paper-alt: #1F262E;
    --surface: #232B34;
    --ink: #D8DFE6;
    --ink-soft: #AAB5C0;
    --muted: #8794A1;
    --rule: #313B46;
    --pass: #86B3C8;
    --pass-soft: #21323D;
    --fail: #E8998F;
    --fail-soft: #3A2524;
    --glow: rgba(134,179,200,.10);
    --run-bg: #151A20;
    --run-ink: #CBD4DC;
    --run-muted: #7D8A97;
    --run-pass: #86B3C8;
    --lc2: #8FBF9E;
    --lc3: #D9B064;
    --lc4: #B8A0DA;
    --lc5: #E89A7C;
    --bird: #B9C4CE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1B2128;
  --paper-alt: #1F262E;
  --surface: #232B34;
  --ink: #D8DFE6;
  --ink-soft: #AAB5C0;
  --muted: #8794A1;
  --rule: #313B46;
  --pass: #86B3C8;
  --pass-soft: #21323D;
  --fail: #E8998F;
  --fail-soft: #3A2524;
  --glow: rgba(134,179,200,.10);
  --run-bg: #151A20;
  --run-ink: #CBD4DC;
  --run-muted: #7D8A97;
  --run-pass: #86B3C8;
  --lc2: #8FBF9E;
  --lc3: #D9B064;
  --lc4: #B8A0DA;
  --lc5: #E89A7C;
  --bird: #B9C4CE;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); color: var(--ink); line-height: 1.15; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }

:focus-visible { outline: 2px solid var(--pass); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--rule); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 650; font-size: 1.0625rem;
  text-decoration: none; white-space: nowrap;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px; background: var(--run-bg);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: var(--run-pass); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: .9375rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-alt); }
.nav-links .nav-cta { color: var(--ink); border: 1px solid var(--rule); margin-left: 6px; }
.nav-links .nav-cta:hover { border-color: var(--ink); background: transparent; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.hero-role {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9375rem; color: var(--pass);
  margin-bottom: 18px;
}
.hero-role::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pass);
  box-shadow: 0 0 0 4px var(--pass-soft);
}
.hero h1 {
  font-size: clamp(2.75rem, 5.4vw, 4.25rem); min-width: 0;
  font-weight: 750; letter-spacing: -0.035em; line-height: 0.98;
  font-variation-settings: "opsz" 96;
}
.hero-id { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); }
.hero-photo {
  flex: none; width: clamp(84px, 9vw, 124px); height: clamp(84px, 9vw, 124px);
  border-radius: 50%; object-fit: cover; background: var(--paper-alt);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--rule);
}
.hero-lede {
  margin-top: 26px; max-width: 34em;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-soft);
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 26px; color: var(--muted); font-size: .9375rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 20px; border-radius: 9px;
  font-weight: 600; font-size: .9875rem; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--pass); color: var(--paper); }
.btn-ghost { border: 1px solid var(--rule); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }

/* test-run panel: the one signature element */
.run {
  background: var(--run-bg); color: var(--run-ink);
  border-radius: 14px; overflow: hidden;
  font-family: var(--f-mono); font-size: .875rem; line-height: 1.7;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(20, 32, 43, .45);
}
.run-head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.run-dots { display: flex; gap: 6px; }
.run-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.run-file { color: var(--run-muted); font-size: .8125rem; }
.run-body { padding: 22px 22px 24px; }
.run-cmd { color: var(--run-muted); }
.run-cmd span { color: var(--run-pass); margin-right: 6px; }
.run-describe { margin-top: 14px; color: #fff; font-weight: 500; }
.run-cases { margin-top: 4px; }
.run-cases li { position: relative; padding-left: 44px; }
.run-cases li::before {
  content: "✓"; position: absolute; left: 18px; color: var(--run-pass); font-weight: 500;
}
.run-summary { margin-top: 16px; color: var(--run-pass); }
.run-summary strong { font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .js .run-cases li, .js .run-summary { opacity: 0; transform: translateY(4px); }
  .js .run.is-running .run-cases li,
  .js .run.is-running .run-summary {
    animation: pass-in .32s ease forwards;
  }
  .js .run.is-running .run-cases li:nth-child(1) { animation-delay: .35s; }
  .js .run.is-running .run-cases li:nth-child(2) { animation-delay: .6s; }
  .js .run.is-running .run-cases li:nth-child(3) { animation-delay: .85s; }
  .js .run.is-running .run-cases li:nth-child(4) { animation-delay: 1.1s; }
  .js .run.is-running .run-cases li:nth-child(5) { animation-delay: 1.35s; }
  .js .run.is-running .run-summary { animation-delay: 1.75s; }
}
@keyframes pass-in { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--rule); }
.section-alt { background: var(--paper-alt); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); max-width: 32em; justify-self: end; text-align: right; }

.sub-title {
  font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em;
  margin: clamp(48px, 6vw, 72px) 0 20px;
}

/* ---------- experience ---------- */
.jobs { border-top: 1px solid var(--rule); }
.job {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 24px 48px; padding: 36px 0; border-bottom: 1px solid var(--rule);
}
.job-company { font-family: var(--f-display); font-weight: 650; font-size: 1.25rem; letter-spacing: -0.01em; }
.job-context { color: var(--muted); font-size: .9375rem; margin-top: 2px; }
.job-period { margin-top: 10px; color: var(--ink-soft); font-size: .875rem; font-weight: 500; line-height: 1.45; }
.job-dur { display: block; color: var(--muted); font-weight: 400; }
.job-now {
  display: inline-block; margin-top: 12px; padding: 2px 10px; border-radius: 99px;
  background: var(--pass-soft); color: var(--pass); font-size: .8125rem; font-weight: 600;
}
.job-what h3 { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em; }
.job-what > p { margin-top: 10px; color: var(--ink-soft); max-width: 40em; }
.job-what ul { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.job-what li { position: relative; padding-left: 22px; font-size: .9875rem; color: var(--ink-soft); }
.job-what li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px;
  border-left: 2px solid var(--pass); border-bottom: 2px solid var(--pass); transform: rotate(-45deg);
}
.job-what .job-tools { margin-top: 18px; color: var(--muted); font-size: .875rem; font-family: var(--f-mono); }

/* ---------- projects ---------- */
.case {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: clamp(24px, 3.5vw, 40px);
}
.case + .case { margin-top: 20px; }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.case-head h3 { font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 700; letter-spacing: -0.025em; }
.case-sub { margin-top: 4px; color: var(--muted); }
.case-links { display: flex; gap: 8px; flex-wrap: wrap; }
.case-links a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px;
  font-weight: 600; font-size: .9375rem; text-decoration: none; border: 1px solid var(--rule);
}
.case-links a:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.case-links a:first-child:hover { background: var(--pass); border-color: var(--pass); color: var(--paper); }
.case-links a:last-child:hover { border-color: var(--ink); }

.case-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px; border-top: 1px solid var(--rule);
}
.case-cols > div { padding: 22px 28px 0 0; }
.case-cols > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.case-cols h4 { font-family: var(--f-body); font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.case-cols > div:last-child h4 { color: var(--pass); }
.case-cols p { color: var(--ink-soft); font-size: .9875rem; }

.repos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.repo {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px 22px; transition: border-color .2s ease, transform .2s ease;
}
.repo:hover { border-color: var(--pass); transform: translateY(-2px); }
.repo-main { flex: 1; }
.repo h4 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.repo-main p { margin-top: 6px; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.repo-tags {
  color: var(--muted); font-family: var(--f-mono); font-size: .75rem;
  padding-top: 12px; border-top: 1px solid var(--rule);
}
.repo-link {
  position: absolute; top: 20px; right: 22px;
  font-weight: 600; font-size: .8125rem; text-decoration: none; color: var(--muted);
}
.repo-link::after { content: ""; position: absolute; inset: -20px -22px; }
.repo:hover .repo-link { color: var(--pass); }
.repo h4 { padding-right: 64px; }
@media (max-width: 980px) { .repos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .repo, .repo:hover { transition: none; transform: none; } }

/* ---------- stack ---------- */
.stack {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.stack > div { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; }
.stack > div:nth-child(odd) { padding-right: 32px; }
.stack > div:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--rule); }
.stack dt { font-weight: 600; }
.stack dd { color: var(--ink-soft); }

.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.principles-grid h4 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; padding-top: 16px; border-top: 2px solid var(--ink); }
.principles-grid p { margin-top: 8px; color: var(--ink-soft); font-size: .9875rem; }

/* ---------- contact ---------- */
.contact { background: var(--run-bg); color: var(--run-ink); padding: clamp(72px, 10vw, 128px) 0; }
.contact-inner > * { max-width: 820px; }
.contact h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.contact p { margin-top: 18px; color: var(--run-muted); font-size: 1.125rem; max-width: 34em; }
.contact-mail {
  display: inline-block; margin-top: 36px;
  font-family: var(--f-display); font-weight: 650; letter-spacing: -0.02em;
  font-size: clamp(1.375rem, 4vw, 2.25rem); color: var(--run-pass);
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: #fff; }
.contact-links { display: flex; gap: 24px; margin-top: 28px; }
.contact-links a { color: var(--run-ink); font-weight: 600; text-decoration: none; }
.contact-links a:hover { color: var(--run-pass); }
.contact :focus-visible { outline-color: var(--run-pass); }

.footer { background: var(--run-bg); color: var(--run-muted); border-top: 1px solid rgba(255,255,255,.07); padding: 24px 0; font-size: .875rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .run { max-width: 560px; }
  .stack { grid-template-columns: 1fr; }
  .stack > div:nth-child(odd), .stack > div:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.25rem, 10.5vw, 2.75rem); }
  .nav-links li:not(:last-child) { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-head p { justify-self: start; text-align: left; }
  .job { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .job-where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .job-now { margin-top: 0; }
  .job-period { margin-top: 0; flex-basis: 100%; }
  .job-dur { display: inline; margin-left: 6px; }
  .job-what ul { grid-template-columns: 1fr; }
  .case-cols { grid-template-columns: 1fr; }
  .case-cols > div, .case-cols > div + div { padding: 18px 0 0; border-left: 0; }
  .case-cols > div + div { margin-top: 18px; border-top: 1px solid var(--rule); }
  .repos { grid-template-columns: 1fr; }
  .stack > div { grid-template-columns: 1fr; gap: 4px; }
  .principles-grid { grid-template-columns: 1fr; gap: 24px; }
  .run { font-size: .8125rem; }
  .run-body { padding: 18px 16px 20px; }
  .run-cases li { padding-left: 30px; }
  .run-cases li::before { left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* projeto em destaque */
.case-featured { border: 2px solid var(--pass); box-shadow: 0 10px 30px -18px var(--pass); }
.case-badge {
  display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 99px;
  background: var(--pass-soft); color: var(--pass); font-size: .8125rem; font-weight: 600;
}

/* demo do projeto em destaque */
.case-links a.demo-link { display: inline-flex; align-items: center; gap: 8px; background: var(--pass); border-color: var(--pass); color: var(--paper); }
.case-links a.demo-link:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; }  }

/* ---------- como eu testo ---------- */
.how-block + .how-block { margin-top: clamp(64px, 8vw, 96px); padding-top: clamp(48px, 6vw, 64px); border-top: 1px solid var(--rule); }
.how-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--pass);
}
.how-num { color: var(--muted); }
.how-title { margin-top: 10px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.025em; }
.how-lead { margin-top: 12px; color: var(--ink-soft); max-width: 46em; }
.how-note { margin-top: 18px; color: var(--muted); font-size: .875rem; max-width: 52em; }
.how-note a, .art-source a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
.how-note a:hover, .art-source a:hover { color: var(--pass); border-color: var(--pass); }
#como-testo code { font-family: var(--f-mono); font-size: .85em; }
#como-testo p code, #como-testo dd code { background: var(--paper-alt); padding: 1px 5px; border-radius: 4px; }

/* abas */
.tabs { margin-top: 28px; }
.tab-list {
  display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface);
  max-width: 100%; overflow-x: auto;
}
.tab {
  font: inherit; font-size: .875rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  background: none; border: 0; border-radius: 7px; padding: 8px 14px; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab-panel {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: clamp(20px, 3vw, 32px);
}
.tab-panel:focus-visible { outline: 2px solid var(--pass); outline-offset: 2px; }
.art-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.art-id { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.art-head h4 { margin-top: 4px; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }
.art-chip {
  flex-shrink: 0; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600;
  background: var(--pass-soft); color: var(--pass);
}
.art-chip-fail { background: var(--fail-soft); color: var(--fail); }
.art-lead { margin-top: 12px; color: var(--ink-soft); font-size: .9625rem; }
.art-meta { margin-top: 18px; display: grid; gap: 10px; }
.art-meta > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; }
.art-meta dt { font-size: .8125rem; font-weight: 600; color: var(--muted); padding-top: 2px; }
.art-meta dd { color: var(--ink-soft); font-size: .9625rem; }
.table-scroll { margin-top: 20px; overflow-x: auto; }
.art-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.art-table th { text-align: left; font-size: .75rem; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.art-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); vertical-align: top; }
.art-table td:first-child, .art-table th:first-child { width: 2.5em; color: var(--muted); font-family: var(--f-mono); }
.art-table tr:last-child td { border-bottom: 0; }
.art-source { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }

/* código */
.code {
  margin-top: 16px; background: var(--run-bg); color: var(--run-ink); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; font-family: var(--f-mono); font-size: .8125rem; line-height: 1.65;
}
.code .c-kw { color: var(--run-pass); }
.code .c-str { color: #E8C580; }
.code .c-tag { color: #8FB8E8; }
.code .c-comment { color: var(--run-muted); }

/* métricas */
.stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; }
.stats strong { display: block; font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stats span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .875rem; }
.bars { margin-top: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 3vw, 28px); }
.bars-title { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.bar { display: grid; grid-template-columns: 13em minmax(0, 1fr) 2.5em; gap: 14px; align-items: center; padding: 6px 0; font-size: .875rem; }
.bar-name { color: var(--ink-soft); }
.bar-track { height: 10px; background: var(--paper-alt); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: calc(var(--v) / 33 * 100%); background: var(--pass); border-radius: 99px; }
.bar-val { text-align: right; font-family: var(--f-mono); font-weight: 500; }

/* passo a passo de API */
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps > li {
  counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px 32px;
  padding: 24px 0; border-top: 1px solid var(--rule);
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.step-text { position: relative; padding-left: 44px; }
.step-text::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pass-soft); color: var(--pass); font-weight: 700; font-size: .8125rem;
}
.step-text h4 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; line-height: 28px; }
.step-text p { margin-top: 4px; color: var(--ink-soft); font-size: .9375rem; }
.steps .code { margin-top: 0; align-self: start; }

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > li { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .art-meta > div { grid-template-columns: 1fr; gap: 2px; }
  .bar { grid-template-columns: minmax(0, 1fr) 2.5em; gap: 4px 12px; }
  .bar-name { grid-column: 1 / -1; }
}

/* ---------- como eu testo: v2 ---------- */

.how-jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(48px, 6vw, 72px); }
.how-jump a {
  display: block; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--ink); font-weight: 650; transition: border-color .2s ease;
}
.how-jump a:hover { border-color: var(--pass); }
.how-jump span { display: block; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; color: var(--pass); margin-bottom: 4px; }
.how-jump small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: .8125rem; }
.how-block { scroll-margin-top: 84px; }

.art-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.art-chip-muted { background: var(--paper-alt); color: var(--ink-soft); }
.art-label { margin-top: 18px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.art-label + p { margin-top: 6px; color: var(--ink-soft); font-size: .9625rem; }
.art-label a { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); text-decoration: none; margin-left: 6px; }
.art-label a:hover { color: var(--pass); }
.art-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin-top: 4px; padding: 4px 0 18px; border-bottom: 1px solid var(--rule); }
.art-steps { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 6px; color: var(--ink-soft); font-size: .9625rem; }
.art-steps li::marker { color: var(--pass); font-weight: 700; }
.ct-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; font-size: .875rem; color: var(--ink-soft); }
.ct-list code { color: var(--muted); margin-right: 6px; }
.ct-list .is-current { color: var(--ink); font-weight: 600; }
.ct-list .is-current code { color: var(--pass); }
.art-table-wide { min-width: 640px; }
.art-table .num, .art-table th.num { text-align: right; font-family: var(--f-mono); }
.table-tall { max-height: 420px; overflow-y: auto; border-bottom: 1px solid var(--rule); }
.table-tall thead th { position: sticky; top: 0; background: var(--surface); }
.art-table code { font-family: var(--f-mono); font-size: .8rem; }

.layer-card { margin-top: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 3vw, 28px); }
.layer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.layer-head .bars-title { margin: 0; }
.dash-cta { font-weight: 600; font-size: .9375rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.dash-cta:hover { color: var(--pass); border-color: var(--pass); }
.layer-bar { display: flex; gap: 3px; height: 18px; border-radius: 99px; overflow: hidden; }
.layer-bar span { flex: var(--v); background: var(--c); }
.layer-legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: var(--ink-soft); }
.layer-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.layer-legend b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); margin-left: 4px; }

/* passo a passo de API */
.api-box { margin-top: 28px; display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.api-list { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 8px; position: sticky; top: 84px; }
.api-step {
  display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left;
  font: inherit; font-size: .875rem; color: var(--ink-soft); background: none; border: 0; border-radius: 8px; padding: 9px 10px; cursor: pointer;
}
.api-step:hover { background: var(--paper-alt); color: var(--ink); }
.api-step[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.api-step[aria-selected="true"] .api-n { color: var(--run-pass); }
.api-n { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.api-t { line-height: 1.3; }
.api-m { font-family: var(--f-mono); font-size: .6875rem; font-weight: 500; padding: 2px 6px; border-radius: 4px; background: var(--pass-soft); color: var(--pass); }
.api-m.m-get { background: var(--paper-alt); color: var(--ink-soft); }
.api-m.m-delete { background: var(--fail-soft); color: var(--fail); }
.api-step[aria-selected="true"] .api-m { background: rgba(255,255,255,.14); color: inherit; }
.api-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 3vw, 32px); }
.api-panel:focus-visible { outline: 2px solid var(--pass); outline-offset: 2px; }
.api-count { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.api-panel h4 { margin-top: 4px; font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em; }
.api-endpoint { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--paper-alt); }
.api-endpoint code { font-family: var(--f-mono); font-size: .875rem; color: var(--ink); overflow-wrap: anywhere; }
.api-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.api-cols p:not(.api-label) { margin-top: 6px; color: var(--ink-soft); font-size: .9375rem; }
.api-label { margin-top: 20px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.api-label a { margin-left: 6px; text-transform: none; letter-spacing: 0; color: var(--ink); text-decoration: none; }
.api-label a:hover { color: var(--pass); }
.api-asserts { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.api-asserts li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: .9375rem; }
.api-asserts li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 5px;
  border-left: 2px solid var(--pass); border-bottom: 2px solid var(--pass); transform: rotate(-45deg);
}
.api-panel .code { margin-top: 8px; }
.api-nav { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; }
.api-nav button {
  font: inherit; font-size: .875rem; font-weight: 600; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
}
.api-nav .api-next { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.api-nav button:hover:not(:disabled) { border-color: var(--pass); }
.api-nav .api-next:hover:not(:disabled) { background: var(--pass); border-color: var(--pass); }
.api-nav button:disabled { opacity: .35; cursor: default; }
#como-testo li code, #como-testo .api-cols code { background: var(--paper-alt); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 980px) {
  .api-box { grid-template-columns: 1fr; }
  .api-list { position: static; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}
@media (max-width: 760px) {
  .how-jump { grid-template-columns: 1fr; }
  .art-split, .api-cols, .ct-list { grid-template-columns: 1fr; }
  .api-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .api-step { flex: 0 0 auto; grid-template-columns: auto auto; scroll-snap-align: start; }
  .api-step .api-t { display: none; }
}
.art-table-wide td:first-child, .art-table-wide th:first-child { width: auto; font-family: inherit; color: var(--ink); }
.art-table-wide th:first-child { color: var(--muted); }
.art-table code { white-space: nowrap; }
.art-steps { list-style: decimal; }

/* fatos dos projetos e metadados dos repositórios */
.case-facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case-facts li { padding: 6px 12px; border: 1px solid var(--rule); border-radius: 99px; font-size: .8125rem; color: var(--ink-soft); background: var(--paper); }
.case-facts strong { font-family: var(--f-mono); font-weight: 500; color: var(--ink); margin-right: 2px; }
.case-featured .case-facts li { background: var(--pass-soft); border-color: transparent; }
.case-cols code { font-family: var(--f-mono); font-size: .85em; background: var(--paper-alt); padding: 1px 5px; border-radius: 4px; }
.repo-meta { font-family: var(--f-mono); font-size: .75rem; color: var(--pass); margin-top: -4px; }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: clamp(48px, 6vw, 72px) 0 20px; }
.sub-head .sub-title { margin: 0; }
.api-box > *, .tabs, .tab-panel { min-width: 0; }
@media (max-width: 980px) { .api-box { grid-template-columns: minmax(0, 1fr); } }
.nav-links .nav-dash { color: var(--pass); font-weight: 600; }
.btn-dash { display: inline-flex; align-items: center; gap: 8px; color: var(--pass); border-color: var(--pass); }
.btn-dash:hover { background: var(--pass-soft); }
.btn-dash .live-dot { background: var(--pass); }
@media (max-width: 760px) { .nav-links li:nth-last-child(2) { display: block; } }
@media (max-width: 480px) { .nav-links li:nth-last-child(2) { display: none; } }

/* ---------- IA nos testes ---------- */
.hero-facts .hero-ai a {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px;
  background: var(--pass-soft); color: var(--pass); font-weight: 600; text-decoration: none;
}
.hero-facts .hero-ai a::before { content: "✦"; font-size: .8em; }
.hero-facts .hero-ai a:hover { background: var(--pass); color: var(--paper); }
.js .run.is-running .run-cases li:nth-child(6) { animation-delay: 1.6s; }
.js .run.is-running .run-summary { animation-delay: 2s; }
.how-jump { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ai-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr .85fr; gap: 16px; }
.ai-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; }
.ai-card-product { background: var(--run-bg); border-color: var(--run-bg); color: var(--run-ink); }
.ai-card-product h4 { color: var(--run-ink); }
.ai-card-product p:not(.ai-kicker) { color: var(--run-muted); }
.ai-card-product .ai-kicker { color: var(--run-pass); }
.ai-card-product .dash-cta { margin-top: auto; padding-top: 18px; color: var(--run-ink); border-bottom: 0; align-self: flex-start; }
.ai-card-product .dash-cta:hover { color: var(--run-pass); }
.ai-kicker { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pass); }
.ai-card h4 { margin-top: 6px; font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.015em; }
.ai-card > p:not(.ai-kicker) { margin-top: 8px; color: var(--ink-soft); font-size: .9375rem; }
.ai-proof { list-style: none; padding: 14px 0 0; margin: 16px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.ai-proof li { position: relative; padding-left: 20px; font-size: .875rem; color: var(--ink-soft); }
.ai-proof li::before { content: "↳"; position: absolute; left: 0; color: var(--pass); }
.ai-proof a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
.ai-proof a:hover { color: var(--pass); border-color: var(--pass); }
.ai-proof code { font-family: var(--f-mono); font-size: .85em; background: var(--paper-alt); padding: 1px 5px; border-radius: 4px; }
.ai-rules { margin-top: 16px; padding: clamp(20px, 3vw, 28px); border: 1px dashed var(--rule); border-radius: 14px; }
.ai-rules .art-label { margin-top: 0; }
.ai-rules ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.ai-rules li { counter-increment: r; color: var(--ink-soft); font-size: .9rem; }
.ai-rules li::before { content: "0" counter(r); display: block; font-family: var(--f-mono); font-size: .75rem; color: var(--pass); margin-bottom: 4px; }
.ai-rules strong { color: var(--ink); display: block; margin-bottom: 2px; }
@media (max-width: 980px) {
  .ai-grid { grid-template-columns: 1fr 1fr; }
  .ai-card-product { grid-column: 1 / -1; }
  .how-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ai-grid, .ai-rules ol, .how-jump { grid-template-columns: 1fr; }
}
.ai-card.ai-card-product > p:not(.ai-kicker) { color: var(--run-muted); }
.ai-card-product { border-color: var(--rule); }

/* ---------- experiência: linha do tempo ---------- */
.section-head .how-label { margin-bottom: 10px; }
.exp-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.tl-item { position: relative; padding: 0 0 36px 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--muted);
}
.tl-item.is-current::before { background: var(--pass); border-color: var(--pass); box-shadow: 0 0 0 4px var(--pass-soft); }
.tl-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .8125rem; }
.tl-company { color: var(--pass); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.tl-company .job-now { margin: 0; }
.tl-date { color: var(--muted); font-family: var(--f-mono); font-size: .75rem; }
.tl-item h3 { margin-top: 6px; font-size: 1.3125rem; font-weight: 650; letter-spacing: -0.015em; }
.tl-item p { margin-top: 8px; color: var(--ink-soft); font-size: .9625rem; max-width: 46em; }
.tools-card {
  position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
}
.tools-title { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tools-sub { margin-top: 6px; font-weight: 600; }
.tools-group { margin-top: 18px; font-size: .875rem; font-weight: 600; }
.tools-chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tools-chips li { padding: 4px 10px; border: 1px solid var(--rule); border-radius: 7px; font-size: .8125rem; color: var(--ink-soft); }
.tools-ai li { border-color: transparent; background: var(--pass-soft); color: var(--pass); font-weight: 600; }
@media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr; } .tools-card { position: static; } }

/* ---------- projetos compactos ---------- */
.pc-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.pc {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: clamp(20px, 2.6vw, 26px);
}
.pc-featured { border: 2px solid var(--pass); box-shadow: 0 10px 30px -18px var(--pass); }
.pc .case-badge { align-self: flex-start; margin-bottom: 8px; }
.pc h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.pc-sub { margin-top: 2px; color: var(--muted); font-size: .875rem; }
.pc-desc { margin-top: 12px; color: var(--ink-soft); font-size: .9375rem; }
.pc-facts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-facts li { padding: 3px 10px; border-radius: 99px; background: var(--paper-alt); font-size: .75rem; color: var(--ink-soft); }
.pc-featured .pc-facts li { background: var(--pass-soft); color: var(--pass); font-weight: 600; }
.pc-links { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.pc-links a {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px;
  font-weight: 600; font-size: .875rem; text-decoration: none; border: 1px solid var(--rule); color: var(--ink);
}
.pc-links a:hover { border-color: var(--ink); }
.pc-links a.pc-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pc-links a.pc-primary:hover { background: var(--pass); border-color: var(--pass); color: var(--paper); }
.pc-links a.demo-link { background: var(--pass); border-color: var(--pass); color: var(--paper); }
.pc-links a.demo-link:hover { background: var(--ink); border-color: var(--ink); }
.pc-note { margin-top: 10px; color: var(--muted); font-size: .75rem; }

/* ---------- automação: lista enxuta ---------- */
.rl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rl-group { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 8px 8px; }
.rl-title { padding: 0 12px 8px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rl-list { list-style: none; padding: 0; margin: 0; }
.rl-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 9px 12px; border-radius: 8px;
  text-decoration: none; color: var(--ink);
}
.rl-list a:hover { background: var(--paper-alt); }
.rl-name { font-weight: 600; font-size: .9375rem; }
.rl-tags { grid-column: 1; font-size: .75rem; color: var(--muted); font-family: var(--f-mono); }
.rl-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); }
.rl-list a:hover .rl-arrow, .rl-list a:hover .rl-name { color: var(--pass); }
@media (max-width: 980px) { .pc-grid { grid-template-columns: 1fr 1fr; } .pc-featured { grid-column: 1 / -1; } .rl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pc-grid, .rl-grid { grid-template-columns: 1fr; } }
.section-head .how-label { text-align: left; justify-self: start; max-width: none; color: var(--pass); margin: 0 0 10px; }
.embed-card { margin-top: 24px; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--surface); }
.embed-card iframe { display: block; width: 100%; height: 720px; border: 0; }
.embed-foot { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
@media (max-width: 760px) { .embed-card iframe { height: 620px; } }

/* rodar localmente */
.run-local { margin-top: 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.run-local summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.run-local summary::-webkit-details-marker { display: none; }
.run-local summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.125rem; color: var(--muted); }
.run-local[open] summary::after { content: "–"; }
.run-local summary:hover { color: var(--pass); }
.run-local summary:focus-visible { outline: 2px solid var(--pass); outline-offset: 2px; border-radius: 14px; }
.rl-body { padding: 0 20px 20px; border-top: 1px solid var(--rule); }
.run-steps { list-style: none; counter-reset: rs; margin: 0; padding: 0; }
.run-steps > li { counter-increment: rs; position: relative; padding: 18px 0 0 40px; }
.run-steps > li::before {
  content: counter(rs); position: absolute; left: 0; top: 18px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pass-soft); color: var(--pass); font-weight: 700; font-size: .8125rem;
}
.run-steps p { color: var(--ink-soft); font-size: .9375rem; }
.run-steps p + p { margin-top: 2px; }
.run-steps p strong { color: var(--ink); }
.run-steps .code { margin-top: 10px; }
.run-note { margin-top: 16px; color: var(--muted); font-size: .8125rem; }
.run-note code { font-family: var(--f-mono); background: var(--paper-alt); padding: 1px 5px; border-radius: 4px; }
.feat-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.feat-group p { font-size: .9375rem; }
.feat-group p span { color: var(--muted); font-size: .8125rem; margin-left: 4px; }
.feat-group p a { float: right; font-size: .75rem; color: var(--ink); text-decoration: none; }
.feat-group p a:hover { color: var(--pass); }
.feat-group ul { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 4px; color: var(--ink-soft); font-size: .875rem; }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } .feat-group p a { float: none; display: inline-block; margin-left: 6px; } }

/* ---------- contato compacto ---------- */
.cta { border-top: 1px solid var(--rule); padding: clamp(48px, 7vw, 80px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; }
.cta p:not(.how-label) { margin-top: 8px; color: var(--muted); max-width: 36em; }
.cta .how-label { margin-bottom: 8px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer { background: transparent; color: var(--muted); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }
#como-testo pre code { background: none; padding: 0; border-radius: 0; color: inherit; }

/* ---------- tela principal (v2) ---------- */
.hero-v2 { position: relative; min-height: calc(100svh - 64px); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-v2 canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-v2::after {
  content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; border-radius: 50%;
  left: var(--mx, 70%); top: var(--my, 35%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none; transition: left .6s ease, top .6s ease;
}
.hero-v2-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(24px, 4vh, 56px) 20px; }
.hero-v2-text { min-width: 0; }
.hero-v2 .role { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--rule); border-radius: 99px; background: var(--surface); font-weight: 600; font-size: .875rem; color: var(--pass); }
.hero-v2 .role i { width: 8px; height: 8px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 0 var(--glow); animation: hv-ping 2.2s ease-out infinite; }
@keyframes hv-ping { 0% { box-shadow: 0 0 0 0 var(--pass); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-v2 .role .avail { color: var(--muted); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--rule); }
.hero-v2 .id { margin-top: 18px; display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.hero-v2 .photo { position: relative; flex: 0 0 auto; width: clamp(96px, 12vw, 132px); aspect-ratio: 1; max-width: 100%; }
.hero-v2 .photo img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 50%; object-fit: cover; }
.hero-v2 .photo::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from var(--hv-a, 0deg), var(--pass) 0 22%, transparent 22% 50%, var(--pass) 50% 58%, transparent 58%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: hv-spin 9s linear infinite;
}
@property --hv-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes hv-spin { to { --hv-a: 360deg; } }
.hero-v2 h1 { margin: 0; font-family: var(--f-display); font-weight: 750; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: .95; letter-spacing: -0.045em; text-wrap: balance; }
.hero-v2 h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.hero-v2 h1 .w > span { display: inline-block; }
.hero-v2 .lede { margin: 20px 0 0; max-width: 34em; font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--ink-soft); }
.hero-v2 .lede mark { background: linear-gradient(transparent 62%, var(--pass-soft) 62%); color: var(--ink); padding: 0 2px; background-size: 0 100%; background-repeat: no-repeat; transition: background-size .9s ease 1.4s; }
.hero-v2.ready .lede mark { background-size: 100% 100%; }
.hero-v2 .facts { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-v2 .facts li { padding: 5px 12px; border: 1px solid var(--rule); border-radius: 99px; font-size: .8125rem; color: var(--ink-soft); background: var(--surface); }
.hero-v2 .facts .ai { border-color: transparent; background: var(--pass-soft); color: var(--pass); font-weight: 600; }
.hero-v2 .facts .ai a { text-decoration: none; }
.hero-v2 .actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-v2 .btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--rule); background: var(--surface); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.hero-v2 .btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.hero-v2 .btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero-v2 .btn-primary:hover { background: var(--pass); border-color: var(--pass); color: var(--paper); }
.hero-v2 .btn:focus-visible, .hero-v2 .ql a:focus-visible, .hero-v2 .nav a:focus-visible, .hero-v2 .replay:focus-visible { outline: 2px solid var(--pass); outline-offset: 3px; }
.hero-v2 .run { min-width: 0; position: relative; background: var(--run-bg); color: var(--run-ink); border-radius: 16px; overflow: hidden; font-family: var(--f-mono); font-size: .8125rem; line-height: 1.7; box-shadow: 0 40px 80px -40px rgba(10,16,21,.6), 0 0 0 1px rgba(255,255,255,.05) inset; transform: perspective(1200px) rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg)); transition: transform .4s ease; }
.hero-v2 .run-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); color: var(--run-muted); font-size: .8125rem; }
.hero-v2 .dots { display: flex; gap: 6px; }
.hero-v2 .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.hero-v2 .replay { margin-left: auto; white-space: nowrap; font: inherit; font-size: .75rem; color: var(--run-muted); background: none; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.hero-v2 .replay:hover { color: var(--run-pass); border-color: var(--run-pass); }
.hero-v2 .run-body { padding: 18px 22px 20px; min-height: 340px; }
.hero-v2 .cmd { color: var(--run-ink); }
.hero-v2 .cmd .p { color: var(--run-pass); margin-right: 10px; }
.hero-v2 .caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--run-pass); animation: hv-blink 1s steps(1) infinite; }
@keyframes hv-blink { 50% { opacity: 0; } }
.hero-v2 .prog { margin-top: 10px; color: var(--run-pass); letter-spacing: .25em; min-height: 1.75em; }
.hero-v2 .desc { margin-top: 6px; color: #fff; font-weight: 500; }
.hero-v2 .cases { list-style: none; margin: 2px 0 0; padding: 0; }
.hero-v2 .cases li { position: relative; padding-left: 26px; opacity: 0; transform: translateX(-6px); transition: opacity .35s ease, transform .35s ease; }
.hero-v2 .cases li.on { opacity: 1; transform: none; }
.hero-v2 .cases li::before { content: "✓"; position: absolute; left: 6px; color: var(--run-pass); }
.hero-v2 .cases li .t { color: var(--run-muted); font-size: .75rem; margin-left: 6px; }
.hero-v2 .cases li.ai-case { color: #fff; }
.hero-v2 .cases li.ai-case::after { content: "IA"; margin-left: 8px; padding: 0 6px; border-radius: 4px; font-size: .6875rem; background: rgba(82,200,147,.18); color: var(--run-pass); }
.hero-v2 .summary { margin-top: 14px; opacity: 0; transition: opacity .4s ease; }
.hero-v2 .summary.on { opacity: 1; }
.hero-v2 .summary .sbar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 10px; }
.hero-v2 .summary .sbar span { display: block; height: 100%; width: 0; background: var(--run-pass); transition: width 1s ease; }
.hero-v2 .summary.on .sbar span { width: 100%; }
.hero-v2 .summary strong { color: var(--run-pass); font-weight: 500; }
.hero-v2 .summary small { display: block; color: var(--run-muted); }
.hero-v2 .ql { list-style: none; margin: 0; padding: 0 0 clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hero-v2 .ql a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 4px 12px; height: 100%;
  padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  text-decoration: none; overflow: hidden; transition: border-color .25s ease, transform .25s ease;
}
.hero-v2 .ql a::before { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--pass); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.hero-v2 .ql a:hover { border-color: var(--pass); transform: translateY(-3px); }
.hero-v2 .ql a:hover::before { transform: scaleX(1); }
.hero-v2 .ql .k { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.hero-v2 .ql .n { font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-v2 .ql .l { grid-column: 1; font-weight: 600; font-size: .9375rem; }
.hero-v2 .ql .s { grid-column: 1; font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.hero-v2 .ql .arr { grid-column: 2; grid-row: 2 / span 3; align-self: center; color: var(--muted); transition: transform .25s ease, color .25s ease; }
.hero-v2 .ql a:hover .arr { transform: translate(3px, -3px); color: var(--pass); }
.hero-v2 .scroll { display: flex; justify-content: center; padding-bottom: 18px; color: var(--muted); font-size: .75rem; gap: 8px; align-items: center; }
.hero-v2 .scroll span { width: 18px; height: 28px; border: 1.5px solid var(--muted); border-radius: 10px; position: relative; }
.hero-v2 .scroll span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; border-radius: 2px; background: var(--muted); transform: translateX(-50%); animation: hv-wheel 1.8s ease-in-out infinite; }
@keyframes hv-wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 8px); } }
.js .hero-v2 .rise { opacity: 0; transform: translateY(14px); }
.js .hero-v2.ready .rise { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .hero-v2 h1 .w > span { transform: translateY(105%); }
.js .hero-v2.ready h1 .w > span { transform: none; transition: transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
@media (max-width: 920px) {
.hero-v2-main { grid-template-columns: 1fr; }
.hero-v2 .run { transform: none; max-width: 560px; }
.hero-v2 .ql { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
@media (max-width: 480px) {
.hero-v2 .role .avail { display: none; }
.hero-v2 .run-body { min-height: 0; padding: 16px; }
.hero-v2 .run { font-size: .78rem; }
.hero-v2 .ql a { padding: 14px; }

}
@media (prefers-reduced-motion: reduce) {
.hero-v2 *, .hero-v2 *::before, .hero-v2 *::after { animation: none !important; transition: none !important; }
.js .hero-v2 .rise, .js .hero-v2 h1 .w > span { opacity: 1; transform: none; }
.hero-v2 .cases li, .hero-v2 .summary { opacity: 1; transform: none; }
.hero-v2 .run { transform: none; }

}


/* botão de tema */
.theme-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--rule); background: none; color: var(--ink-soft); cursor: pointer; font-size: 1rem; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.theme-btn:focus-visible { outline: 2px solid var(--pass); outline-offset: 2px; }
@media (max-width: 760px) { .nav-links li:has(.theme-btn) { display: block; } }
.hero-v2 .role { margin: 0; }
.hero-v2 .lede, .hero-v2 .facts, .hero-v2 .prog, .hero-v2 .desc, .hero-v2 .cmd { margin-left: 0; margin-right: 0; }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-btn svg path { fill: currentColor; stroke: none; }
@media (max-width: 380px) {
  .brand { font-size: .9375rem; gap: 8px; }
  .nav-links { gap: 2px; }
  .nav-links .nav-cta { margin-left: 2px; padding-inline: 10px; }
  .hero-v2 .id { flex-direction: column; align-items: flex-start; }
  .hero-v2 h1 { font-size: 2.5rem; }
  .hero-v2 .run-head span:not(.dots) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}

/* ---------- layout amplo + tela inicial fixa ---------- */
:root { --wrap: 1440px; --gutter: clamp(20px, 5vw, 72px); }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); gap: 32px; }
.sub-title { margin: clamp(64px, 8vw, 104px) 0 28px; }
.exp-grid { gap: clamp(32px, 6vw, 96px); }
.pc-grid, .rl-grid { gap: clamp(20px, 2.4vw, 32px); }
.tl-item { padding-bottom: 12px; }
.how-block { margin-top: clamp(64px, 8vw, 112px); }
.cta { padding: clamp(72px, 10vw, 128px) 0; }
.footer { padding: 36px 0; }
.section-head p, .how-lead, .tl-item p, .job-what > p { max-width: 52em; }

/* telas: a inicial é fixa (sem rolagem) e o menu abre cada seção */
.spa[data-view="home"], .spa[data-view="home"] body { overflow: hidden; height: 100%; }
.spa[data-view="home"] .hero-v2 { height: calc(100svh - 64px); min-height: 0; overflow: hidden; }
.spa[data-view="home"] .footer { display: none; }
.spa [hidden] { display: none !important; }
.spa main > .section, .spa main > .cta { min-height: calc(100svh - 64px); border-top: 0; }
.spa .nav-links a[aria-current="page"] { color: var(--ink); background: var(--paper-alt); border-radius: 8px; }
.topbar { z-index: 50; }
@media (max-width: 920px), (max-height: 700px) { .spa[data-view="home"] .hero-v2 { overflow-y: auto; } }
.spa, .spa body { scroll-behavior: auto !important; }
.spa main > .section, .spa main > .cta { animation: none; transition: none; }

/* ---- modo tela única (desktop): cada tela cabe na janela, sem rolagem ---- */
.spa.app, .spa.app body { overflow: hidden; height: 100%; }
.spa.app main > .section, .spa.app main > .cta { height: calc(100svh - 64px); min-height: 0; overflow: hidden; padding: 20px 0; display: flex; align-items: center; }
.spa.app main > section > .wrap { width: 100%; }
.spa.app .footer { display: none; }
.spa.app .section-head { margin-bottom: 20px; gap: 20px; }
.spa.app .section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.spa.app .how-block { display: none; margin-top: 0; }
.spa.app .how-block.is-sub { display: block; }
.spa.app .how-jump { margin-bottom: 20px; }
.spa.app .how-jump a { padding: 10px 14px; }
.spa.app .how-jump small { display: none; }
.spa.app .how-jump a[aria-current] { border-color: var(--pass); background: var(--pass-soft); }
/* experiência */
.spa.app .exp-grid { gap: 32px; }
.spa.app .tl-item { padding-bottom: 0; }
.spa.app .tl-item p { font-size: .9rem; margin-top: 4px; }
/* projetos */
.spa.app .sub-title { margin: 22px 0 10px; font-size: 1.1rem; }
.spa.app .sub-head { margin: 0; }
.spa.app .rl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.spa.app .rl-tags, .spa.app .rl-arrow { display: none; }
.spa.app .pc { padding: 18px; }
.spa.app .pc-desc { font-size: .9rem; }
.spa.app #como-testo .section-head { display: none; }
.spa.app .how-lead, .spa.app .how-note, .spa.app .embed-foot p { display: none; }
.spa.app .how-block .how-label { margin: 0; }
.spa.app .how-title { font-size: 1.35rem; margin-top: 2px; }
.spa.app .embed-card iframe { height: calc(100svh - 64px - 40px - 70px - 80px - 50px); min-height: 300px; }
.spa.app .embed-foot { margin-top: 8px; }
.spa.app .ai-grid, .spa.app .api-box { margin-top: 14px; }
.spa.app .ai-card { padding: 16px 18px; }
.spa.app .run-local { margin-top: 10px; }
.spa.app .run-local summary { padding: 10px 14px; }
.spa.app .run-local[open] .rl-body { max-height: 42svh; overflow: auto; }
.spa.app .tl-item { padding-bottom: 12px; }
.spa.app .how-jump { padding-bottom: 14px; margin-bottom: 14px; }

/* só a tela ativa existe: a inicial some quando outra seção está aberta */
.spa:not([data-view="home"]) .hero-v2 { display: none; }
/* telas estreitas: barra de links fixa embaixo, sempre ao alcance do dedo */
@media (max-width: 920px) {
  .spa .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .spa .topbar nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); border-top: 1px solid var(--rule); padding: 8px 8px max(8px, env(safe-area-inset-bottom, 0px)); }
  .spa .nav-links { display: flex; justify-content: space-around; gap: 4px; width: 100%; }
  .spa .nav-links li { display: block !important; }
  .spa .nav-links a { padding: 8px 8px; font-size: .8125rem; border: 0; }
  .spa .nav-links .nav-dash { display: none; }
  .spa .nav-links li:has(.nav-dash) { display: none !important; }
  .spa main { padding-bottom: 64px; }
  .spa[data-view="home"] .hero-v2 { height: calc(100svh - 64px - 56px); }
}

/* ---- telas internas mais ricas ---- */
.hero-v2 .scroll-link { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.hero-v2 .scroll-link:hover { color: var(--ink); }
.hero-v2 .scroll-link span { flex: none; }
.head-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; align-self: end; justify-self: end; }
.head-stats li { display: grid; gap: 2px; min-width: 120px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.head-stats b { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--pass); line-height: 1.1; }
.head-stats span { font-size: .78rem; color: var(--muted); }
.section-head .head-stats { text-align: left; }
.spa main > .section, .spa main > .cta { overflow: hidden; }
.spa main > .section::before, .spa main > .cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(55% 45% at 88% 4%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 4% 100%, var(--glow), transparent 70%),
    radial-gradient(var(--rule) 1px, transparent 1.3px) 0 0 / 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.35));
  mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.35));
}
.spa main > section > .wrap { position: relative; z-index: 1; }
@keyframes vin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.vin { animation: vin .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) { .vin { animation: none; } }
.tl-item.is-current .tl-company { color: var(--pass); }
.pc:hover, .rl-group:hover, .ct-card:hover { border-color: var(--pass); }
.pc, .rl-group, .ct-card { transition: border-color .2s ease, transform .2s ease; }
.pc:hover, .rl-group:hover { transform: translateY(-2px); }

/* contato */
.cta .cta-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.03em; line-height: 1.05; margin-top: 6px; }
.ct-lead { margin-top: 16px; color: var(--ink-soft); font-size: 1.0625rem; max-width: 34em; }
.ct-cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; max-width: 520px; }
.ct-card { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.ct-card:hover { transform: translateX(4px); }
.ct-k { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ct-v { font-weight: 600; overflow-wrap: anywhere; }
.ct-a { color: var(--pass); font-size: 1.1rem; }
.ct-primary { background: var(--pass-soft); border-color: var(--pass); }
.ct-status { border-radius: 14px; overflow: hidden; background: var(--run-bg); color: var(--run-ink); border: 1px solid var(--rule); box-shadow: 0 24px 60px -30px rgba(0,0,0,.6); }
.ct-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--f-mono); font-size: .78rem; color: var(--run-muted); }
.ct-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ct-bar span { margin-left: 8px; }
.ct-body { padding: 20px 22px 24px; font-family: var(--f-mono); font-size: .9rem; }
.ct-body ul { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.ct-body li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
.ct-body li b { font-weight: 500; color: var(--run-muted); }
.ct-p { color: var(--run-pass); }
.ct-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--run-pass); margin-right: 8px; box-shadow: 0 0 0 0 var(--run-pass); animation: ctpulse 2s infinite; }
@keyframes ctpulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ct-caret { display: inline-block; width: 8px; height: 1em; vertical-align: -2px; background: var(--run-ink); animation: ctblink 1s steps(1) infinite; }
@keyframes ctblink { 50% { opacity: 0; } }
@media (max-width: 920px) { .cta .cta-inner { grid-template-columns: 1fr; } .head-stats { justify-content: flex-start; justify-self: start; } .ct-card { grid-template-columns: 70px minmax(0,1fr) auto; } }

/* Anterior / Próximo: mesmo padrão do botão da tela inicial */
.pager { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; padding: 28px var(--gutter) 18px; font-size: .75rem; }
.pager a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 999px; transition: color .2s; }
.pager a:hover { color: var(--ink); }
.pager .pg-prev { position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
.pager .pg-next span { flex: none; width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.pager .pg-next span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; border-radius: 2px; background: currentColor; transform: translateX(-50%); animation: hv-wheel 1.8s ease-in-out infinite; }
.spa.app main > section > .pager { position: absolute; left: 0; right: 0; bottom: 0; }
.spa.app main > .section, .spa.app main > .cta { align-items: flex-start; padding-top: 24px; }
.spa.app #contato { align-items: center; }
@media (max-width: 640px) { .pager { flex-direction: column-reverse; gap: 10px; } .pager .pg-prev { position: static; } }

.hero-v2 .btn-cv { border-color: var(--pass); color: var(--ink); background: var(--pass-soft); }
.hero-v2 .btn-cv:hover { border-color: var(--ink); }
