:root {
  --bg: #F4F2EE;
  --paper: #FBFAF7;
  --ink: #111;
  --ink-2: #4A4843;
  --line: #D8D4CC;
  --accent: #FF4D00;
  --accent-ink: #C23A00;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lock, html.lock body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; line-height: 1.02; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 24px; border: 1.5px solid var(--accent); border-radius: 4px;
  background: var(--accent); color: #fff; font: 500 16px/1 Inter, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn [aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover [aria-hidden] { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }

/* Logo: "L. Planello" com selo IA */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-name { font-size: 22px; font-weight: 700; letter-spacing: -.05em; white-space: nowrap; line-height: 1; }
.badge { display: inline-block; margin-left: 4px; padding: 3px 5px 2px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .02em; line-height: 1; vertical-align: 9px; animation: badge 1.2s .6s var(--ease) both; }
@keyframes badge { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: none; } }
.logo small { font-size: 12px; color: var(--ink-2); margin-top: 5px; letter-spacing: 0; }
.logo-sm { font-size: 18px; color: var(--ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav { display: none; gap: 28px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.lang { margin-left: auto; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; padding: 8px 4px; }
.lang:hover { color: var(--accent-ink); }
.top .btn { margin-left: 0; }
@media (min-width: 900px) { .nav { display: flex; } .lang { margin-left: 8px; } }
@media (max-width: 520px) { .logo small, .lg-only { display: none; } }

/* Hero */
.hero { padding-top: clamp(48px, 9vh, 112px); padding-bottom: 56px; }
.eyebrow { font-size: 14px; color: var(--ink-2); margin: 0 0 24px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--accent); }
.hero h1 { font-size: clamp(42px, 8.6vw, 124px); letter-spacing: -.055em; line-height: .95; }
.words .w { display: inline-block; }
.js .words .w { opacity: 0; transform: translateY(.35em); animation: wordUp .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes wordUp { to { opacity: 1; transform: none; } }
.accent { color: var(--accent); }
.hero-foot { display: grid; gap: 28px; margin-top: clamp(32px, 6vh, 64px); align-items: end; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36em; margin: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 1.3fr 1fr; } .ctas { justify-content: flex-end; } }

/* Faixa com exemplos */
.marquee { display: flex; overflow: hidden; border-block: 1px solid var(--ink); padding: 18px 0; user-select: none; }
.mq-track { list-style: none; margin: 0; padding: 0; display: flex; flex: none; gap: 0; animation: mq 64s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track li { white-space: nowrap; font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -.02em; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.mq-track li::after { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; margin-left: 28px; }
@keyframes mq { to { transform: translateX(-100%); } }

/* Seções */
.sec { display: grid; gap: 24px; padding-top: clamp(64px, 12vh, 140px); }
.tag { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); padding-top: 14px; margin: 0; border-top: 1px solid var(--ink); }
.sec-body { border-top: 1px solid var(--ink); padding-top: 14px; }
.sec h2 { font-size: clamp(36px, 6vw, 76px); max-width: 14em; }
.intro { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 20px 0 0; }
@media (min-width: 900px) {
  .sec, .sec-dark .wrap { display: grid; grid-template-columns: 1fr 3fr; gap: 0 32px; }
  .sec-dark { display: block; }
}
@media (max-width: 899px) { .sec-body { border-top: 0; padding-top: 0; } }

.pains { list-style: none; padding: 0; margin: 40px 0 0; }
.pains li { font-size: clamp(19px, 2vw, 24px); letter-spacing: -.015em; padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.pains li::before { content: "×"; color: var(--accent); font-weight: 500; }
.quote { margin: 48px 0 0; padding-left: 20px; border-left: 3px solid var(--accent); font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.025em; line-height: 1.2; max-width: 22em; }
.cols2 { display: grid; gap: 20px; margin-top: 36px; font-size: 19px; color: var(--ink-2); }
.cols2 p { margin: 0; }
@media (min-width: 720px) { .cols2 { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* Fluxos de automação */
.chains { display: grid; gap: 28px; margin-top: 40px; }
.chain-name { font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 0 0 10px; }
.chain-row { display: grid; grid-template-columns: 1fr; }
.node { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; font-size: 16px; line-height: 1.4; letter-spacing: -.01em; transition: border-color .3s, transform .3s var(--ease); }
.node:hover { border-color: var(--ink); transform: translateY(-2px); }
.node span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.node-ai { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.node-ai span { color: var(--accent); }
.ln { position: relative; height: 28px; width: 2px; margin-left: 28px; background: var(--line); overflow: hidden; }
.ln::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform .7s .3s var(--ease); }
.ln::after { content: ""; position: absolute; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); top: -6px; opacity: 0; }
.chain.in .ln::before { transform: none; }
.chain.in .ln::after { opacity: 1; animation: dotY 2.4s 1s linear infinite; }
.chain.in .ln + .node + .ln::before { transition-delay: .7s; }
.chain.in .ln + .node + .ln::after { animation-delay: 2.2s; }
@keyframes dotY { to { top: 100%; } }
@keyframes dotX { to { left: 100%; } }
@media (min-width: 720px) {
  .chain-row { grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: center; }
  .ln { height: 2px; width: auto; margin: 0; }
  .ln::before { transform: scaleX(0); transform-origin: left; }
  .ln::after { top: -2px; left: -6px; }
  .chain.in .ln::after { animation-name: dotX; }
}

/* Serviços */
.grid4 { display: grid; gap: 1px; margin-top: 40px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 720px) { .grid4 { grid-template-columns: 1fr 1fr; } .card-wide { grid-column: span 2; } }
.card { background: var(--bg); padding: 28px 24px 32px 0; position: relative; }
@media (min-width: 720px) { .card { padding: 32px 32px 36px; } .card:first-child { padding-left: 0; } .card:nth-child(2) { padding-left: 0; } .card:last-child { padding-left: 0; } }
.card::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card:hover::before { transform: scaleX(1); }
.card .num, .method .num { display: block; font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 36px; font-variant-numeric: tabular-nums; transition: transform .3s var(--ease); }
.card:hover .num { transform: translateX(4px); }
.card h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 12px; }
.card-wide h3 { font-size: clamp(28px, 3.4vw, 44px); }
.card p { margin: 0; color: var(--ink-2); max-width: 40em; }
.tools { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }

.sec-dark { background: var(--ink); color: var(--bg); margin-top: clamp(64px, 12vh, 140px); padding: clamp(64px, 12vh, 120px) 0; }
.sec-dark .tag { color: #A9A49A; border-top-color: #3A3833; }
.sec-dark .sec-body { border-top-color: #3A3833; }
.method { list-style: none; padding: 0; margin: 48px 0; display: grid; }
@media (min-width: 900px) { .method { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.method li { border-top: 2px solid #3A3833; padding: 20px 0 32px; position: relative; }
.method li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s .2s var(--ease); }
.method li.in::before { transform: none; }
.method h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.method p { margin: 0 0 10px; color: #C9C4BA; }
.method .out { color: var(--bg); font-weight: 500; margin-top: 18px; }
.method .num { margin-bottom: 24px; }

.gains { display: grid; margin: 40px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .gains { grid-template-columns: 1fr 1fr; } .gains div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 28px; } .gains div:nth-child(even) { padding-left: 28px; } }
.gains div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.gains dt { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 6px; }
.gains dd { margin: 0; color: var(--ink-2); }

.about { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.about img { width: 96px; height: 96px; object-fit: cover; filter: grayscale(1) contrast(1.05); border-radius: 4px; }
.about h2 { font-size: clamp(28px, 3.4vw, 44px); }
.about p { color: var(--ink-2); font-size: 18px; max-width: 34em; margin: 12px 0 0; }
.social a { color: var(--ink); text-underline-offset: 4px; font-size: 15px; }
.social a:hover { color: var(--accent-ink); }
@media (min-width: 720px) { .about { grid-template-columns: 120px 1fr; gap: 28px; } .about img { width: 120px; height: 120px; } }

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; letter-spacing: -.015em; position: relative; transition: color .2s; }
.faq summary:hover { color: var(--accent-ink); }
.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; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent); }
.faq details[open] p { animation: stepIn .4s var(--ease); }
.faq p { margin: 0 0 24px; color: var(--ink-2); max-width: 40em; }

.final { padding-top: clamp(96px, 16vh, 180px); padding-bottom: clamp(80px, 12vh, 140px); }
.final h2 { font-size: clamp(44px, 8.4vw, 116px); letter-spacing: -.05em; line-height: .95; max-width: 11em; }
.final p { font-size: 19px; color: var(--ink-2); margin: 24px 0 32px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--ink); padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: var(--ink-2); }

/* Revelação ao rolar */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* Formulário em tela cheia */
.flow { position: fixed; inset: 0; z-index: 50; background: var(--paper); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; animation: flowIn .45s var(--ease); }
.flow[hidden] { display: none; }
@keyframes flowIn { from { opacity: 0; transform: translateY(24px); } }
.flow-top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gut); }
.x { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink); transition: border-color .2s, transform .3s var(--ease); }
.x:hover { border-color: var(--ink); transform: rotate(90deg); }
.bar { height: 3px; background: var(--line); }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.flow-body, .flow-state { width: 100%; max-width: 760px; margin: auto; padding: 32px var(--gut) 48px; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } }
.step legend { font-size: clamp(28px, 5vw, 48px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; padding: 0; margin-bottom: 32px; }
.step legend .num { display: block; font-size: 14px; color: var(--accent); letter-spacing: 0; margin-bottom: 14px; }
.big { width: 100%; border: 0; border-bottom: 2px solid var(--line); background: transparent; padding: 10px 0; font: 400 clamp(22px, 3.4vw, 32px)/1.3 Inter, sans-serif; color: var(--ink); border-radius: 0; letter-spacing: -.02em; }
.big::placeholder { color: #B5B0A6; }
.big:focus { outline: 0; border-bottom-color: var(--ink); }
.big[aria-invalid="true"] { border-bottom-color: #C21E00; }
.big-sm { font-size: 20px; }
.small-label { display: block; margin-top: 32px; font-size: 14px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 17px; transition: background .2s, border-color .2s, color .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.review { margin: 0; display: grid; border-top: 1px solid var(--line); }
.review div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review dt { color: var(--ink-2); font-size: 14px; }
.review dd { margin: 0; overflow-wrap: anywhere; }
.err { min-height: 1.6em; color: #C21E00; font-size: 15px; margin: 16px 0 0; }
.flow-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.flow-nav [data-back][hidden] { display: inline-flex; visibility: hidden; }
.state-big { font-size: clamp(32px, 5vw, 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 16px; }
.flow-state p:not(.state-big) { color: var(--ink-2); font-size: 18px; margin: 0 0 28px; max-width: 32em; }
.flow-state[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .words .w { opacity: 1; transform: none; }
  .ln::before { transform: none !important; }
  .ln::after { display: none; }
  /* A faixa de exemplos corre sempre, a pedido; é lenta e não mexe no layout */
  .mq-track { animation: mq 64s linear infinite !important; }
  .marquee:hover .mq-track { animation-play-state: paused !important; }
}
