/* =========================================================
   Leonardo Silva — Portfólio
   ---------------------------------------------------------
   Paleta da marca: papel (claro), tinta (escuro) e laranja.
   Regras de contraste usadas neste arquivo:
   - Laranja (--accent) com texto: sempre texto em --ink por cima (6:1).
   - Laranja como cor de texto: só sobre fundo escuro, ou --accent-deep
     em títulos grandes sobre fundo claro.
   - Rótulos pequenos em fundo claro: texto em tinta + marcador laranja.
   ========================================================= */
:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --ink: #121212;
  --ink-2: #2a2926;
  --muted: #5f5b53;
  --line: #d8d1c2;
  --accent: #ff5a1f;
  --accent-deep: #d9430f;
  --accent-soft: #ffe2d4;
  --dark: #121212;
  --dark-2: #1c1c1b;
  --dark-line: #34332f;
  --dark-muted: #a9a49a;
  --card: #fbf9f4;

  /* Borda de campos e cartões clicáveis: tom neutro derivado da paleta, com contraste ≥ 3:1 */
  --control-line: color-mix(in srgb, var(--muted) 78%, var(--paper));

  /* Cores de foco e sombra trocam em áreas escuras (ver .on-dark) */
  --focus: var(--ink);
  --shadow-c: var(--ink);

  /* Fontes do próprio sistema: o site não depende de nenhum serviço externo */
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Áreas escuras: foco e sombras em laranja/papel para continuarem visíveis */
.section-dark, .site-footer, .li-band, .case-accent, .hero-card, .marquee {
  --focus: var(--accent);
  --shadow-c: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
h3, h4 { line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 700; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--ink); }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--pad); }
.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: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; outline-color: var(--accent); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 16px/1.15 var(--font); letter-spacing: -0.01em; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s var(--ease);
}
.btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow-c); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: none; box-shadow: none; }

/* Ação principal: laranja da marca com texto em tinta (contraste 6:1) */
.btn-primary { --bg: var(--accent); --fg: var(--ink); --bd: var(--accent); }
.btn-primary:hover { --bd: var(--ink); }
.section-dark .btn-primary:hover, .site-footer .btn-primary:hover, .li-band .btn-primary:hover { --bd: var(--accent); }

.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn-dark { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn-light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 18px; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; border-radius: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--accent); font-weight: 800; font-size: 16px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--paper-2); }
.nav a.is-current { background: var(--paper-2); box-shadow: inset 0 -2px 0 var(--accent); }
.nav .nav-cta { margin-left: 10px; padding: 11px 20px; background: var(--accent); color: var(--ink); font-weight: 700; }
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); }
.header-actions { display: none; align-items: center; gap: 10px; }
.menu-toggle { width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--ink); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 27px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--ink-2); letter-spacing: .02em; margin-bottom: 24px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); }
.hero-title { font-size: clamp(40px, 5.4vw, 78px); line-height: .98; letter-spacing: -0.045em; }
/* Laranja escuro da paleta em título grande: contraste ≥ 3:1 sobre o papel */
.hero-title em {
  font-style: normal; color: var(--accent-deep);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 96% / 0% .08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: underline 1.1s .9s var(--ease) forwards;
}
@keyframes underline { to { background-size: 100% .08em; } }
.hero-lead { margin-top: 26px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hero-how { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; color: var(--muted); }
.dot { flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* Foto + checklist: a foto dá rosto ao nome; o checklist sobrepõe a base da foto */
.hero-visual { position: relative; display: grid; justify-items: end; }
.hero-photo {
  margin: 0; width: min(100%, 380px); aspect-ratio: 4 / 5;
  background: var(--dark); border: 1.5px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero-visual .hero-card { position: relative; z-index: 1; justify-self: start; width: min(100%, 340px); margin-top: -150px; font-size: 13.5px; }
.hero-visual .term-bar { padding: 12px 16px; }
.hero-visual .term-list { padding: 18px 18px 20px; gap: 11px; }

.hero-card {
  background: var(--dark); color: var(--paper); border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .05);
  font-family: var(--mono); font-size: 14.5px; overflow: hidden;
  transform: rotate(1.5deg);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--dark-line); color: var(--dark-muted); font-size: 12px; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3936; }
.term-bar i:first-child { background: var(--accent); }
.term-bar span { margin-left: 8px; }
.term-list { padding: 22px 22px 26px; display: grid; gap: 14px; }
.term-list li { display: flex; align-items: center; gap: 12px; opacity: .35; transition: opacity .5s var(--ease); }
.term-list li.on { opacity: 1; }
.no-js .term-list li { opacity: 1; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--dark-muted); position: relative; transition: background-color .3s, border-color .3s; }
.term-list li.on .tick { background: var(--accent); border-color: var(--accent); }
.term-list li.on .tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.term-live { color: var(--accent); }
.caret { width: 20px; text-align: center; }
.cursor { display: inline-block; width: 8px; height: 17px; background: var(--accent); margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.marquee { margin-top: clamp(56px, 8vw, 96px); border-block: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding: 16px 0; font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--accent); margin: 0 28px; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 18px; }
.kicker span { display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 700; }
.section-head h2 { font-size: clamp(34px, 5vw, 62px); }
.section-lead { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 40em; }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.service { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(26px, 3vw, 36px); }
.service-num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.service h3 { font-size: clamp(28px, 3vw, 40px); margin: 32px 0 12px; }
.service > p { color: var(--ink-2); }
.service ul { margin: 22px 0 28px; padding-top: 18px; border-top: 1.5px solid var(--line); display: grid; gap: 10px; }
.service li { display: flex; gap: 10px; font-size: 16px; }
.service li::before { content: "→"; color: var(--accent-deep); font-weight: 700; }
.service .btn { margin-top: auto; align-self: flex-start; }
/* Card em destaque: laranja com texto em tinta */
.service-feature { background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.service-feature .service-num, .service-feature > p { color: var(--ink); }
.service-feature ul { border-color: rgba(18, 18, 18, .3); }
.service-feature li::before { color: var(--ink); }
.service-feature .btn-dark:hover { --shadow-c: var(--paper); }
.service-badge { position: absolute; top: clamp(22px, 3vw, 32px); right: clamp(22px, 3vw, 32px); font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); }

/* Manutenção */
.maint { position: relative; margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.maint::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px); }
.maint-call { padding: clamp(34px, 4vw, 52px) clamp(26px, 4vw, 48px) clamp(28px, 4vw, 48px); border-right: 1.5px dashed var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.maint-call h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 22px; }
.maint-joke { position: relative; font-size: clamp(21px, 2.1vw, 27px); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.maint-quote { position: absolute; left: -0.5em; top: -0.12em; color: var(--accent); font-size: 1.6em; line-height: 1; }
.maint-joke mark { background: linear-gradient(transparent 58%, var(--accent-soft) 58%); color: inherit; padding: 0 .08em; }
.maint-joke-sub { margin: 14px 0 28px; color: var(--ink-2); font-size: 17px; max-width: 34em; }
.maint-body { padding: clamp(34px, 4vw, 52px) clamp(26px, 4vw, 48px) clamp(28px, 4vw, 48px); color: var(--ink-2); display: grid; gap: 14px; align-content: start; }
.maint-body ul { margin-top: 10px; display: grid; border-top: 1.5px solid var(--line); }
.maint-body li { display: grid; grid-template-columns: 180px 1fr; gap: 4px 18px; padding: 14px 0; border-bottom: 1.5px solid var(--line); font-size: 16px; }
.maint-body li b { color: var(--ink); }
.maint-body li b::before { content: "→ "; color: var(--accent-deep); }

.li-band { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.li-band h3 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 12px; }
.li-band p { color: #d6d0c4; max-width: 40em; }
.kicker-dark { color: var(--dark-muted); }
.li-band .btn { flex: none; }

/* ---------- Trabalhos / Timeline ---------- */
.timeline { position: relative; display: grid; gap: clamp(40px, 6vw, 64px); }
.timeline::before { content: ""; position: absolute; left: 210px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 14px); }
.job { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 48px; position: relative; }
.job::before { content: ""; position: absolute; left: 204px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.job-edu::before { border-color: var(--ink); }
.job-meta { display: flex; flex-direction: column; gap: 4px; padding-right: 24px; font-family: var(--mono); font-size: 13px; }
.job-period { font-weight: 700; color: var(--ink); }
.job-place { color: var(--muted); }
.job-title { font-size: clamp(24px, 2.6vw, 34px); }
.job-title span { color: var(--muted); font-weight: 600; }
.job-summary { margin-top: 12px; color: var(--ink-2); max-width: 46em; }

/* Diplomas: miniatura clicável dentro do item de formação */
.diploma { display: block; width: min(100%, 360px); margin-top: 20px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.diploma img { width: 100%; height: auto; border-bottom: 1.5px solid var(--line); background: #fff; }
.diploma-cta { display: flex; align-items: center; gap: 8px; padding: 12px 16px; min-height: 44px; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.diploma-cta [aria-hidden] { color: var(--accent-deep); }
.diploma:hover { border-color: var(--ink); transform: translateY(-2px); }
.diploma:hover .diploma-cta { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.diploma:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-color: var(--ink); }

.cases { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; }
.case-accent { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.case-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 10px; }
.case-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.case h4 { font-size: 22px; margin-bottom: 14px; }
.case dl { margin: 0; display: grid; gap: 4px; }
.case dt { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.case dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.case-accent .case-tag { color: var(--accent); }
.case-accent dt { color: var(--accent); }
.case-accent dd { color: #dcd6ca; }

.freelance { margin-top: clamp(56px, 8vw, 88px); }
.freelance-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 22px; }
.freelance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.freelance-grid .case a { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.stack { margin-top: clamp(56px, 8vw, 88px); padding-top: 28px; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: 210px 1fr; gap: 16px 48px; }
.stack-label { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); padding-top: 8px; }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; background: var(--card); }

/* ---------- Como trabalho ---------- */
.section-dark { background: var(--dark); color: var(--paper); }
.section-dark .kicker, .section-dark .section-lead { color: var(--dark-muted); }
.ai-compare { border: 1.5px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; }
.ai-head { padding: clamp(26px, 4vw, 44px); background: var(--dark-2); border-bottom: 1.5px solid var(--dark-line); }
.ai-head h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.ai-head p { color: #d6d0c4; max-width: 50em; }
.ai-head em { color: var(--accent); font-style: normal; font-weight: 600; }
.compare-row { display: grid; grid-template-columns: 1fr 1.2fr 1.5fr; border-top: 1px solid var(--dark-line); }
.compare-row:first-child { border-top: 0; }
.compare-row > span { padding: 20px clamp(18px, 2.4vw, 28px); font-size: 16px; }
.compare-labels > span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dark-muted); padding-block: 16px; }
.compare-row > span:nth-child(1) { font-weight: 700; }
.compare-row > span:nth-child(2) { color: var(--dark-muted); text-decoration: line-through; text-decoration-color: rgba(255, 90, 31, .55); text-decoration-thickness: 1.5px; }
.compare-labels > span:nth-child(2) { text-decoration: none; }
.compare-row > span:nth-child(3) { background: rgba(255, 90, 31, .08); border-left: 2px solid var(--accent); }
.compare-labels > span:nth-child(3) { color: var(--accent); }

.steps-title { margin-top: clamp(56px, 7vw, 88px); margin-bottom: 28px; font-size: clamp(24px, 2.6vw, 32px); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.step { padding-top: 22px; border-top: 2px solid var(--dark-line); position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 1s var(--ease); }
.step.is-visible::before, .no-js .step::before { width: 100%; }
.step span { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.step h4 { font-size: 21px; margin: 10px 0 8px; }
.step p { color: var(--dark-muted); font-size: 15.5px; }
.steps-cta { margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--dark-line); display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.steps-cta p { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Orçamento ---------- */
.quote-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.quote-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.quote-notes { margin-top: 28px; display: grid; gap: 10px; }
.quote-notes li { display: flex; gap: 10px; color: var(--ink-2); }
.quote-notes li::before { content: "✦"; color: var(--accent-deep); }
.quote-card { background: var(--card); border: 1.5px solid var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 3.5vw, 40px); box-shadow: 10px 10px 0 var(--ink); }
.progress { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: inherit; transition: width .5s var(--ease); }
.progress-label { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 22px; }
.noscript-note { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 18px; }

.qstep { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.qstep.is-active { display: block; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } }
.qstep legend:focus { outline: none; }
.qstep legend { padding: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 22px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 18px; border: 1.5px solid var(--control-line); border-radius: 14px; background: #fff; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.choice b { font-size: 18px; }
.choice-hot b { padding-right: 84px; }
.choice small { color: var(--muted); font-size: 14px; }
.choice:hover > span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--ink), inset 6px 0 0 var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-hot > span::after { content: "destaque"; position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.choice:last-child:nth-child(odd) { grid-column: 1 / -1; }

.app-extra { margin-top: 22px; padding: 20px; border-radius: 14px; background: var(--paper); border: 1.5px dashed var(--accent-deep); animation: stepIn .4s var(--ease); }
.app-extra-title { font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.app-extra-title small { font-weight: 400; font-size: 14px; color: var(--muted); }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--control-line); background: #fff; font-size: 15px; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill input[type="checkbox"]:checked + span::before { content: "✓"; margin-right: 6px; color: var(--accent); font-weight: 700; }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-label { font-weight: 600; font-size: 15px; }
.field-label small { font-weight: 400; color: var(--muted); }
input[type="text"], select, textarea {
  width: 100%; font: 400 16px/1.5 var(--font); color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--control-line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
input[type="text"]:hover, select:hover, textarea:hover { border-color: var(--ink); }
input[type="text"]:focus-visible, select:focus-visible, textarea:focus-visible,
input[type="text"]:focus, select:focus, textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); box-shadow: 0 0 0 7px var(--accent-soft); }
textarea { resize: vertical; min-height: 140px; }
.is-invalid { border-color: #b3261e !important; }
.field-error { color: #b3261e; font-size: 14px; font-weight: 600; }
.field-error:not(:empty)::before { content: "! "; }
.field-error:empty { display: none; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.counter { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.review-hint { color: var(--muted); margin: -8px 0 12px; }
.review { font-family: var(--mono) !important; font-size: 14px !important; background: var(--paper) !important; min-height: 220px; }
.send-options { margin-top: 16px; display: grid; gap: 10px; }
.send-btn { width: 100%; justify-content: space-between; min-height: 58px; border-radius: 14px; }
.send-btn small { font-weight: 400; opacity: .85; font-size: 13px; }
.send-btn .send-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.send-help { font-size: 14px; color: var(--muted); }
.send-status { margin-top: 14px; font-size: 15px; }
.send-status:empty { display: none; }
.send-status.info { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); }
.send-status.warn { padding: 14px 16px; border-radius: 12px; background: #fdecea; color: #7a1a12; }

.qnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1.5px solid var(--line); }
.qnav #btn-next { margin-left: auto; min-width: 180px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 9vw, 110px) 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer-big { font-size: clamp(32px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 28px; max-width: 12em; text-wrap: balance; }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; text-decoration: none; font-size: 18px; font-weight: 500; border-bottom: 1.5px solid transparent; transition: border-color .2s, color .2s; }
.footer-links a:hover { color: var(--accent); border-color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--dark-line); font-family: var(--mono); font-size: 12px; color: var(--dark-muted); }

/* ---------- Aviso de configuração (só localhost/arquivo) ---------- */
.dev-note { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; max-width: 560px; margin-left: auto; padding: 14px 48px 14px 16px; border-radius: 12px; background: #fff8d6; color: #4a3b00; border: 1.5px solid #e2c84a; font-size: 14px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .3); }
.dev-note code { font-family: var(--mono); font-size: 13px; }
.dev-note button { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font-size: 20px; }
.dev-note button:hover { background: rgba(0, 0, 0, .06); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero-card.reveal.is-visible { transform: rotate(1.5deg); }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .nav a { padding: 10px 11px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 16ch; font-size: clamp(40px, 7vw, 72px); }
  .hero-card { max-width: 520px; transform: rotate(0); }
  .hero-visual { justify-items: start; width: min(100%, 560px); }
  .hero-photo { width: min(100%, 360px); }
  .hero-visual .hero-card { justify-self: end; margin-top: -120px; }
  .hero-card.reveal.is-visible { transform: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .service-feature { grid-column: 1 / -1; order: -1; box-shadow: 6px 6px 0 var(--ink); }
  .service-num { display: none; }
  .service h3 { margin-top: 0; }
  .service-feature h3 { padding-right: 130px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-head { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header-actions { display: flex; }
  .menu-toggle { z-index: 2; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 16px var(--pad) 24px; background: var(--paper); border-bottom: 1.5px solid var(--ink);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 20px; padding: 14px 12px; border-radius: 12px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; border-radius: 999px; }

  .timeline::before { left: 6px; }
  .job { grid-template-columns: 1fr; padding-left: 34px; }
  .job::before { left: 0; }
  .job-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; padding: 0; }
  .cases { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; }
  .stack-label { padding: 0; }

  .compare-labels { display: none !important; }
  .compare-row { grid-template-columns: 1fr; padding: 18px 0; }
  .compare-row > span { padding: 4px 20px; }
  .compare-row > span:nth-child(1) { font-size: 18px; padding-bottom: 8px; }
  .compare-row > span:nth-child(2) { text-decoration: none; }
  .compare-row > span:nth-child(2)::before { content: "Só vibe coding: "; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; display: block; text-decoration: none; }
  .compare-row > span:nth-child(3) { margin: 8px 20px 0; padding: 12px 14px; border-radius: 10px; border-left-width: 3px; }
  .compare-row > span:nth-child(3)::before { content: "Como eu trabalho"; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); display: block; margin-bottom: 4px; }
  .compare-row:nth-child(2) { border-top: 0; }

  .li-band { flex-direction: column; align-items: flex-start; }
  .maint { grid-template-columns: 1fr; }
  .maint-call { border-right: 0; border-bottom: 1.5px dashed var(--line); }
  .maint-body li { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .eyebrow { font-size: 12px; border-radius: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-how { align-items: flex-start; }
  .hero-how .dot { margin-top: 7px; }
  .hero-photo { width: 78%; }
  .hero-visual .hero-card { width: 88%; margin-top: -96px; }
  .services { grid-template-columns: 1fr; }
  .service .btn { align-self: stretch; }
  .service-feature h3 { padding-right: 0; margin-top: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps-cta .btn { width: 100%; }
  .maint-call .btn, .li-band .btn { width: 100%; }
  .maint-quote { position: static; display: block; height: .5em; margin-bottom: 4px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice:last-child:nth-child(odd) { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; }
  .quote-card { box-shadow: 6px 6px 0 var(--ink); }
  .qnav .btn { flex: 1; }
  .qnav #btn-next { min-width: 0; }
  .footer-inner { flex-direction: column; align-items: stretch; }
  .footer-inner .btn { width: 100%; }
}

@media (max-width: 380px) {
  .header-cta { padding-inline: 12px; font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-title em { background-size: 100% .08em; }
  .diploma:hover { transform: none; }
}

@media (forced-colors: active) {
  .btn, .choice > span, .pill span { border: 2px solid ButtonText; }
  .choice input:checked + span, .pill input:checked + span { outline: 3px solid Highlight; }
  .diploma { border: 2px solid LinkText; }
}
