/* =========================================================
   RESBRINFO — Layout "humano" (v1)
   Papel claro, serifa calorosa, anotações à mão.
   Fontes: Fraunces (títulos) · Figtree (texto) · Caveat (notas)
   ========================================================= */
:root {
  --paper: #f7f2ea;
  --paper-2: #efe7da;
  --card: #fffdf9;
  --ink: #1f1c18;
  --ink-2: #4a443c;
  --muted: #7a7166;
  --line: #e2d8c8;
  --accent: #e2570d;
  --accent-ink: #b8430a;
  --accent-soft: #fbe3d3;
  --green: #2f6b4f;
  --ok: #25d366;
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 12px 30px -12px rgba(60, 40, 20, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.hand { font-family: var(--hand); font-weight: 600; color: var(--accent-ink); line-height: 1.1; }
.section { padding: clamp(70px, 10vw, 130px) 0; }
.eyebrow { font-family: var(--hand); font-size: 26px; color: var(--accent-ink); margin: 0 0 6px; transform: rotate(-1.5deg); display: inline-block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; font-variation-settings: "SOFT" 100, "opsz" 96; margin: 0; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; max-width: 760px; }
.intro { color: var(--ink-2); font-size: clamp(18px, 1.6vw, 21px); max-width: 640px; margin: 18px 0 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Sublinhado desenhado à mão */
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.42em; overflow: visible; }
.scribble path { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.2s var(--ease) 0.3s; }
.seen .scribble path, .scribble.seen path { stroke-dashoffset: 0; }

/* Entrada suave */
.up { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.up.seen { opacity: 1; transform: none; }
.up.d1 { transition-delay: 0.1s; } .up.d2 { transition-delay: 0.2s; } .up.d3 { transition-delay: 0.3s; }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 26px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s; }
.btn--main { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 -1px var(--accent); }
.btn--main:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -1px var(--accent); }
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--wa { background: var(--ok); color: #fff; }
.link-arrow { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(247, 242, 234, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.top__logo img { height: 40px; width: auto; }
.top nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--accent-ink); }
.burger { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: 12px; width: 46px; height: 42px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform 0.3s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 88px); line-height: 1.02; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent-ink); }
.hero p.intro { font-size: clamp(19px, 1.8vw, 23px); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 34px; }
.hero__note { display: flex; align-items: center; gap: 12px; margin-top: 34px; color: var(--muted); font-size: 15px; }
.hero__note .dot { width: 10px; height: 10px; border-radius: 50%; background: #3cb371; box-shadow: 0 0 0 4px rgba(60, 179, 113, 0.18); flex: none; }

.polaroid { position: relative; background: #fff; padding: 14px 14px 64px; box-shadow: var(--shadow); transform: rotate(2.5deg); max-width: 400px; margin-left: auto; transition: transform 0.5s var(--ease); }
.polaroid:hover { transform: rotate(0.5deg) translateY(-4px); }
.polaroid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--paper-2); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-family: var(--hand); font-size: 30px; color: var(--ink-2); }
.polaroid .tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-4deg); background: rgba(240, 215, 160, 0.75); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.hero__doodle { position: absolute; left: -110px; bottom: 90px; width: 120px; transform: rotate(-6deg); }
.hero__doodle span { display: block; font-family: var(--hand); font-size: 24px; color: var(--accent-ink); line-height: 1; margin-bottom: 4px; }
.hero__doodle svg { width: 90px; height: 50px; margin-left: 20px; }
.hero__doodle path { fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Faixa de clientes ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; padding: 18px 0; }
.marquee__label { font-family: var(--hand); font-size: 24px; color: var(--muted); text-align: center; margin-bottom: 6px; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; color: var(--ink-2); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: "✳"; color: var(--accent); font-size: 0.7em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 60px; margin-top: 50px; }
.service { display: grid; grid-template-columns: 54px 1fr; gap: 6px 14px; padding: 28px 0; border-top: 1.5px solid var(--line); position: relative; }
.service__n { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent-ink); padding-top: 4px; }
.service h3 { font-size: 27px; line-height: 1.2; }
.service p { grid-column: 2; margin: 4px 0 10px; color: var(--ink-2); font-size: 17px; }
.service button { grid-column: 2; justify-self: start; background: none; border: 0; padding: 0; font-weight: 700; font-size: 15px; color: var(--accent-ink); border-bottom: 1.5px solid transparent; }
.service button:hover { border-color: var(--accent-ink); }

/* ---------- Projetos ---------- */
.projects { background: var(--card); border-block: 1px solid var(--line); }
.projects__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; margin-top: 50px; }
.shot { text-decoration: none; display: block; }

.browser { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.shot:hover .browser { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 2px 4px rgba(60, 40, 20, 0.06), 0 24px 40px -14px rgba(60, 40, 20, 0.28); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9cdbb; }
.browser__bar i:first-child { background: #ec8b6a; }
.browser__bar small { margin-left: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.shot__cap h3 { font-size: 22px; }
.shot__cap span { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* ---------- Por que comigo ---------- */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.notes { display: grid; gap: 18px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.note:nth-child(2) { transform: rotate(-0.6deg); margin-left: 24px; }
.note:nth-child(3) { transform: rotate(0.5deg); }
.note h3 { font-size: 23px; margin-bottom: 6px; }
.note p { margin: 0; color: var(--ink-2); font-size: 17px; }
.signature { font-family: var(--hand); font-size: 40px; color: var(--ink); margin-top: 26px; transform: rotate(-3deg); display: inline-block; }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 50px; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 30px; right: 30px; border-top: 2px dashed var(--line); }
.pstep { position: relative; }
.pstep b { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); font-family: var(--serif); font-size: 22px; position: relative; margin-bottom: 18px; }
.pstep:nth-child(1) b { background: var(--accent-soft); }
.pstep h3 { font-size: 23px; margin-bottom: 6px; }
.pstep p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-top: 40px; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-family: var(--serif); font-size: 22px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-family: var(--sans); font-size: 28px; color: var(--accent-ink); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-2); }

/* ---------- Conversa (formulário na página) ---------- */
.talk { background: var(--ink); color: var(--paper); }
.talk .eyebrow { color: #f5a86f; }
.talk .h2 { color: var(--paper); }
.talk .intro { color: #cfc6b8; }
.talk__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(30px, 6vw, 70px); align-items: start; }
.talk__side { position: sticky; top: 110px; }
.talk__me { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.talk__me img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid #f5a86f; }
.talk__me small { display: block; color: #cfc6b8; font-size: 14px; }
.talk__me strong { font-size: 17px; }

.wiz { background: var(--card); color: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.wiz__top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.wiz__step { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.wiz__step b { color: var(--accent-ink); }
.wiz__bar { flex: 1; height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.wiz__bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width 0.6s var(--ease); }
.wiz__close { display: none; }
.step { display: none; }
.step.active { display: block; animation: stepIn 0.5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step__q { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin-bottom: 6px; }
.step__hint { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.step__label { font-weight: 700; font-size: 15px; margin: 22px 0 10px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 15px 18px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.opt label:hover { border-color: var(--ink-2); }
.opt label strong { font-size: 16px; }
.opt label span { font-size: 14px; color: var(--muted); }
.opt label .k { display: none; }
.opt input:checked + label { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea { font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.err input, .field.err textarea { border-color: #d64545; }
.err-msg { color: #c03a3a; font-size: 15px; font-weight: 600; margin-top: 14px; min-height: 1.3em; }
.wiz__nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.wiz__nav .hint { display: none; }
.wiz__nav .right { margin-left: auto; }
.wiz__nav .btn--primary { background: var(--accent); color: #fff; }
.wiz__nav .btn--primary:hover { background: var(--accent-ink); }
.wiz__nav .btn--ghost { background: none; border: 0; color: var(--muted); padding-left: 0; }
.wiz__nav .btn--ghost:hover { color: var(--ink); }
.done { text-align: center; padding: 20px 0; }
.done__icon { font-family: var(--hand); font-size: 46px; color: var(--accent-ink); transform: rotate(-4deg); margin-bottom: 8px; }
.done .lead { color: var(--ink-2); max-width: 480px; margin: 10px auto 26px; }
.done__ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Rodapé ---------- */
.foot { padding: 50px 0 36px; font-size: 15px; color: var(--ink-2); }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.foot h4 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent-ink); }
.foot__base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.6); transition: transform 0.3s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero .wrap, .why, .talk__grid { grid-template-columns: 1fr; }
  .polaroid { margin: 20px auto 0; max-width: 340px; }
  .hero__doodle { display: none; }
  .services { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .talk__side { position: static; }
  .note:nth-child(2) { margin-left: 0; }
}
@media (max-width: 760px) {
  .top nav { display: none; }
  .burger { display: block; }
  .top .btn { display: none; }
  .top.open nav { display: flex; flex-direction: column; position: fixed; top: 74px; left: 0; right: 0; bottom: 0; background: var(--paper); padding: 24px 16px; gap: 0; font-family: var(--serif); font-size: 30px; }
  .top.open nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .top.open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
  .top.open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .shots { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .scribble { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .up { opacity: 1; transform: none; }
  .scribble path { stroke-dashoffset: 0; }
}
