/* LC Infotech — landing page
   Tema escuro por padrão; claro via preferência do sistema ou botão. */

:root {
  --bg: #0A1424;
  --bg-alt: #0D1A2E;
  --surface: #12223A;
  --line: #1F3452;
  --text: #E6EDF5;
  --muted: #93A3B8;
  --teal: #34C2B3;
  --teal-ink: #062A27;
  --amber: #F2A94B;
  --glow: rgba(52, 194, 179, .18);
  --radius-lg: 18px;
  --radius: 12px;
  --maxw: 1180px;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F7FA;
    --bg-alt: #EAF0F5;
    --surface: #FFFFFF;
    --line: #D5DEE8;
    --text: #0F1B2E;
    --muted: #536079;
    --teal: #127A71;
    --teal-ink: #FFFFFF;
    --amber: #B56B12;
    --glow: rgba(18, 122, 113, .12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F7FA;
  --bg-alt: #EAF0F5;
  --surface: #FFFFFF;
  --line: #D5DEE8;
  --text: #0F1B2E;
  --muted: #536079;
  --teal: #127A71;
  --teal-ink: #FFFFFF;
  --amber: #B56B12;
  --glow: rgba(18, 122, 113, .12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
section[id] { scroll-margin-top: 68px; outline: none; } /* âncora não fica atrás do header fixo */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--teal); color: var(--teal-ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--teal); color: var(--teal-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn-primary:hover { box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--teal) 80%, transparent); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--teal) 86%, var(--text)); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; }
.logo rect { fill: var(--teal); }
.logo path { fill: none; stroke: var(--teal-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s ease; }
.nav a:hover { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: none; color: var(--muted); cursor: pointer; transition: background-color .25s ease, color .25s ease;
  font: 600 12.5px/1 var(--font); padding: 6px 9px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--text); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.icon-btn:hover { border-color: var(--teal); }
.icon-btn:active { transform: scale(.92); }
#theme-toggle:hover svg { transform: rotate(25deg); }
.icon-btn svg { transition: transform .3s ease; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#theme-toggle .i-moon { display: none; }
:root[data-theme="light"] #theme-toggle .i-sun { display: none; }
:root[data-theme="light"] #theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #theme-toggle .i-sun { display: none; }
  :root:not([data-theme="dark"]) #theme-toggle .i-moon { display: block; }
}
.burger { display: none; }

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .header-tools { margin-left: auto; }
  .burger { display: grid; }
}
@media (max-width: 560px) { .hide-mobile { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 48px;
  background:
    radial-gradient(900px 480px at 85% 10%, var(--glow), transparent 70%),
    var(--bg);
}
.hero::before { /* grade técnica de fundo */
  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: 44px 44px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.03em; }
.lead { margin: 24px 0 32px; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 52ch; }

/* Vitrine: notebook com sistema real + celular com WhatsApp */
.showcase { position: relative; margin: 0; padding: 0 0 0 0; }
.laptop { position: relative; margin-right: 14%; }
.laptop-screen {
  background: #1B2533; padding: 10px 10px 12px; border-radius: 14px 14px 0 0;
  box-shadow: 0 40px 80px -40px rgba(10, 20, 36, .55);
}
.laptop-screen img { width: 100%; height: auto; aspect-ratio: 948 / 440; object-fit: cover; object-position: left top; border-radius: 4px; }
.laptop-base { height: 14px; margin: 0 -6%; background: linear-gradient(#C9D2DC, #9AA6B4); border-radius: 0 0 14px 14px; }
:root[data-theme="dark"] .laptop-base { background: linear-gradient(#3A4A60, #26344A); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .laptop-base { background: linear-gradient(#3A4A60, #26344A); } }
.toast {
  position: absolute; left: -18px; top: 58%;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  padding: 10px 16px 10px 12px; border-radius: 14px; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 18px 40px -18px rgba(10, 20, 36, .5);
  transition: opacity .4s ease, transform .4s ease;
}
.toast svg { width: 26px; height: 26px; flex: none; }
.toast circle { fill: var(--teal); }
.toast path { fill: none; stroke: var(--teal-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.phone {
  position: absolute; right: 0; bottom: -40px; width: 38%; min-width: 210px; max-width: 250px;
  background: #ECE5DD; border: 8px solid #1B2533; border-radius: 30px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(10, 20, 36, .6);
  color: #111B21; font-size: 13px; line-height: 1.4;
}
.phone-top { display: flex; align-items: center; gap: 8px; background: #075E54; color: #fff; padding: 10px 12px; }
.phone-avatar { width: 28px; height: 28px; border-radius: 50%; background: #F2A94B; color: #3A2205; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.phone-name { display: grid; line-height: 1.2; }
.phone-name small { opacity: .8; font-size: 11px; }
.chat { list-style: none; margin: 0; padding: 12px 10px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 230px; }
.chat li { max-width: 86%; padding: 7px 10px; border-radius: 10px; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); transition: opacity .35s ease, transform .35s ease; }
.chat .in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.chat .out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 2px; }
.chat li.wait, .toast.wait { opacity: 0; transform: translateY(8px); }

.showcase figcaption { margin-top: 28px; font-size: 14.5px; color: var(--muted); max-width: calc(100% - 270px); }

.stats {
  position: relative; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stats > div { padding: 22px 20px 0 0; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 14.5px; }
.stats dd { margin: 4px 0 0; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .laptop { margin-right: 0; }
  .toast { left: 8px; top: 8px; font-size: 13px; }
  .phone { position: relative; bottom: auto; margin: -40px 0 0 auto; width: 72%; max-width: 260px; }
  .showcase figcaption { margin-top: 18px; max-width: none; }
}

/* ---------- Clientes ---------- */
.clients { padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.clients-h { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.client-list li { font-weight: 600; font-size: 16px; color: color-mix(in srgb, var(--text) 78%, var(--muted)); }

/* ---------- Seções ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 750; letter-spacing: -.025em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Problemas: antes → depois */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: grid; gap: 14px; align-content: start;
}
.pain-ill { width: 100%; height: 110px; padding: 6px 0; background: var(--bg-alt); border-radius: 12px; }
.pain-ill * { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-paper { fill: var(--surface); stroke: var(--line); }
.il-ln { fill: none; stroke: var(--line); }
.il-ink { fill: none; stroke: var(--text); }
.il-dot { fill: var(--line); }
.il-teal { fill: none; stroke: var(--teal); stroke-width: 3 !important; }
.il-teal-soft { fill: var(--glow); stroke: var(--teal); }
.il-amber { fill: color-mix(in srgb, var(--amber) 28%, var(--surface)); stroke: var(--amber); }
.pain-ill * { transform-box: view-box; }
.il-hand { transform-origin: 80px 16px; animation: spin 4s linear infinite; }
.il-blink { animation: blink 2.2s ease-in-out infinite; }
.il-wiggle { transform-origin: 71px 24px; animation: wiggle 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-8deg); } 86% { transform: rotate(6deg); } }
.pain p { display: grid; gap: 4px; padding-left: 14px; border-left: 3px solid; font-size: 16px; }
.pain b { font-size: 14px; }
.pain-before { border-color: var(--amber); color: var(--muted); }
.pain-before b { color: var(--amber); }
.pain-after { border-color: var(--teal); }
.pain-after b { color: var(--teal); }
@media (max-width: 760px) { .pains { grid-template-columns: 1fr; } .pain { padding: 22px; } }

/* Tarefas automáticas */
.recipes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.recipe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; }
.recipe .app { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.recipe:hover .app { transform: translateY(-3px); }
.recipe:hover .app + .app { transition-delay: .05s; }
.flow { animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: 11px 0; } }
.recipe-apps { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.app { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.app svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-pix { background: #32BCAD; }
.app-pix svg { fill: currentColor; stroke: none; }
.app-wpp { background: #25D366; }
.app-wpp svg { fill: currentColor; stroke: none; }
.app-sys { background: var(--teal); color: var(--teal-ink); }
.app-site { background: #3B82F6; }
.app-cal { background: #8B5CF6; }
.app-bill { background: #475569; }
.app-mail { background: var(--amber); }
.flow { flex: 0 1 56px; height: 2px; background: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 11px); position: relative; }
.flow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--muted); border-right: 0; }
.recipe-when { font-weight: 700; font-size: 18px; }
.recipe-then { color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) { .recipes { grid-template-columns: 1fr; } }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 32px 32px 8px 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.service-ico { width: 34px; height: 34px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.service h3 { font-size: 22px; font-weight: 700; }
.service > p { margin: 10px 0 18px; color: var(--muted); }
.service ul { margin: 0; padding: 0; list-style: none; }
.service li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0 8px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
}

/* Etapas (sequência real → numeração) */
.steps { --progress: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps::before, .steps::after {
  content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: var(--line);
}
.steps::after { background: var(--teal); transform-origin: left; transform: scaleX(var(--progress)); }
.steps li { position: relative; z-index: 1; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--line); font: 700 15px var(--font); color: var(--muted);
  transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.steps li.on .step-n { border-color: var(--teal); background: var(--teal); color: var(--teal-ink); }
.steps h3 { margin: 22px 0 8px; font-size: 20px; font-weight: 700; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 32px; padding-left: 64px; }
  .steps::before, .steps::after { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--progress)); }
  .step-n { position: absolute; left: -64px; top: 0; }
  .steps h3 { margin-top: 8px; }
}

/* Infra */
.infra-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.infra-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.infra-list dt { font-weight: 700; font-size: 17px; }
.infra-list dt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); margin-right: 10px; vertical-align: middle; }
.infra-list dd { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  position: sticky; top: 96px;
}
.plan h3 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.plan ul { list-style: none; margin: 0 0 18px; padding: 0; }
.plan li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan b { color: var(--teal); font-weight: 600; font-size: 14.5px; }
.plan b::before { content: "✓ "; }
.plan i { font-style: normal; color: var(--amber); font-size: 14.5px; font-weight: 600; }
.plan p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) {
  .infra-grid { grid-template-columns: 1fr; gap: 40px; }
  .plan { position: static; }
}
@media (max-width: 560px) { .infra-list { grid-template-columns: 1fr; } }

/* Projetos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer;
  font: 500 14.5px/1 var(--font); padding: 10px 16px; border-radius: 999px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.filters button:active { transform: scale(.95); }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.project::after { /* luz que segue o cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--glow), transparent 60%);
}
.project:hover::after { opacity: 1; }
.project { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; }
.project:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(10, 20, 36, .5); }
/* Print dentro de uma janela de navegador estilo Mac, centralizada sobre fundo suave */
.project-shot {
  padding: 26px 26px 0; display: flex; justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--teal) 18%, transparent), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.mac {
  width: 100%; border-radius: 10px 10px 0 0; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent), 0 22px 40px -22px rgba(10, 20, 36, .55);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.mac-bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  background: color-mix(in srgb, var(--surface) 82%, var(--line)); border-bottom: 1px solid var(--line);
}
.mac-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; flex: none; }
.mac-bar i:nth-child(2) { background: #FEBC2E; }
.mac-bar i:nth-child(3) { background: #28C840; }
.mac-url {
  display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 64%;
  margin: 0 auto; transform: translateX(-21px); /* compensa as bolinhas: barra fica no centro da janela */
  padding: 3px 12px; border-radius: 6px; background: var(--bg);
  font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mac-url svg { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.project .mac img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.project:hover .mac { transform: translateY(-6px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center + .filters { justify-content: center; }
.project-body { padding: 20px 22px 24px; }
.project-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.project-meta span:first-child { color: var(--teal); font-weight: 600; }
.project-meta span + span::before { content: "/"; margin-right: 8px; opacity: .5; }
.project h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.project-body > p:last-child { color: var(--muted); font-size: 15px; }
.project.featured h3 { font-size: 21px; }
.project[hidden] { display: none; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

.more-row { display: flex; justify-content: center; margin-top: 32px; }
.more-row .btn[hidden] { display: none; }
.project h3:focus { outline: none; }

/* Botões flutuantes: WhatsApp fixo, topo aparece após rolar */
.floaters { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.float-btn {
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .2s ease, opacity .2s ease, visibility .2s;
}
.float-btn:hover { transform: translateY(-2px); }
.float-wpp { width: 58px; height: 58px; background: #25D366; color: #fff; }
.float-wpp svg { width: 30px; height: 30px; fill: currentColor; }
.to-top {
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  opacity: 0; visibility: hidden; transform: translateY(8px);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .floaters { right: 14px; bottom: 14px; } }

/* Dúvidas */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--teal); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); }
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--teal); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details[open] p { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 8px; } }

/* Contato */
.contact {
  padding: 112px 0; text-align: center;
  background: radial-gradient(700px 360px at 50% 100%, var(--glow), transparent 70%), var(--bg);
}
.contact-inner { max-width: 760px; }
.contact h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.contact p { margin: 18px 0 32px; color: var(--muted); font-size: 18.5px; }
.contact .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14.5px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer strong { color: var(--text); }

/* Entrada única ao carregar o hero */
.hero-copy > *, .showcase { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.showcase { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Entrada ao rolar. Escondido já no primeiro desenho (classe .js vem do <head>);
   o JS só adiciona .in. Sem JS tudo aparece normal. Mesma lista em main.js (revealSel). */
.js :is(.section-head, .pain, .recipe, .service, .steps li, .infra-list > div, .plan, .faq details, .contact-inner, .stats > div) { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js :is(.section-head, .pain, .recipe, .service, .steps li, .infra-list > div, .plan, .faq details, .contact-inner, .stats > div).in { opacity: 1; transform: none; }

/* Transições de página (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.vt-theme::view-transition-old(root) { animation: none; }
.vt-theme::view-transition-new(root) { animation: themeReveal .6s cubic-bezier(.4, 0, .2, 1); }
@keyframes themeReveal {
  from { clip-path: circle(0 at var(--vt-x, 100%) var(--vt-y, 0)); }
  to { clip-path: circle(150vmax at var(--vt-x, 100%) var(--vt-y, 0)); }
}
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* Movimento reduzido: mantém os esmaecimentos e trocas de cor, tira deslocamentos e animações contínuas */
@media (prefers-reduced-motion: reduce) {
  .il-hand, .il-blink, .il-wiggle, .flow, .hero-copy > *, .showcase { animation: none !important; }
  .js :is(.section-head, .pain, .recipe, .service, .steps li, .infra-list > div, .plan, .faq details, .contact-inner, .stats > div), .chat li.wait, .toast.wait, .nav { transform: none !important; }
  .js :is(.section-head, .pain, .recipe, .service, .steps li, .infra-list > div, .plan, .faq details, .contact-inner, .stats > div) { transition-property: opacity; }
  .btn:hover, .btn:active, .project:hover, .project:hover .mac, .recipe:hover .app,
  .icon-btn:active, #theme-toggle:hover svg, .filters button:active { transform: none; }
  .faq details[open] p { animation: none; }
}
