/* =========================================================
   RUST · Marketplace / rede de profissionais sob demanda
   Peça da PRÓPRIA RUST → identidade RUST (brand-kit real):
     preto #0A0A0A + laranja oficial #F54D00 chapado, alto contraste,
     industrial/tech. Textura metálica só existiria no logo real — aqui
     o "R" é tratado como bloco sólido, cor chapada (regra da constitution).
   Tipografia: Space Grotesk (display) + Inter (corpo) + JetBrains Mono
     (números do mecanismo) — mesmo par já usado na casa.
   Fundação (reset / .wrap / .btn / --radius / --container) inlinada do
   library/base/tokens.css, convenção da casa (não há @import).
   ========================================================= */

:root {
  /* marca RUST (brand-kit.md — não alterar sem decisão) */
  --orange: #F54D00;
  --orange-dim: #CA4405;
  --ink: #0A0A0A;
  --ink-2: #141414;
  --ink-3: #1e1e1e;
  --line: #2a2a2a;
  --paper: #FAFAFA;
  --paper-2: #f0efec;
  --text-dark: #111111;   /* texto sobre claro */
  --muted-dark: #5a5a5a;
  --text-light: #FFFFFF;  /* texto sobre escuro */
  --muted-light: #a3a3a3;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* fundação estrutural */
  --radius: 14px;
  --radius-pill: 999px;
  --container: 1200px;
}

/* ---------- reset (idêntico à fundação) ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { flex: none; vertical-align: middle; }

/* ---------- botões (fundação .btn + variações RUST) ---------- */
.btn {
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -12px rgba(245,77,0,.9); }
.btn-orange:hover { background: #ff5a0d; box-shadow: 0 14px 30px -12px rgba(245,77,0,1); }
.btn-ghost { background: transparent; color: var(--text-dark); border: 1.5px solid #d8d6d0; }
.btn-ghost:hover { border-color: var(--ink); }
.section-dark .btn-ghost, .cta-final .btn-ghost { color: #fff; border-color: #3a3a3a; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.kicker-orange { color: var(--orange); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
/* logo real "R" (textura metálica — brand-kit.md); altura fixa, largura auto */
.logo-r { height: 37px; width: auto; }
.logo-r-footer { height: 40px; }
.logo-word { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; line-height: 1; color: var(--ink); }
.logo-word small { font-size: 0.56rem; font-weight: 600; letter-spacing: .32em; color: var(--muted-dark); margin-top: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,250,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e7e5df;
}
.nav { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: #333; }
.nav-links a:hover { color: var(--orange); }
.nav-cta { padding: 11px 22px; font-size: 0.92rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; margin-left: auto; }

/* ---------- hero ---------- */
.hero { padding: 68px 0 72px; background:
  radial-gradient(1100px 420px at 80% -10%, rgba(245,77,0,.08), transparent 60%),
  var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: .06em; color: var(--orange-dim); background: #fff; border: 1px solid #f0d9cc; padding: 7px 14px; border-radius: var(--radius-pill); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(245,77,0,.18); }
.hero-copy h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin: 20px 0 18px; }
.hero-copy h1 mark { background: none; color: var(--orange); }
.lead { font-size: 1.12rem; color: #3f3f3f; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.92rem; color: #333; }
.hero-points .ico { color: var(--orange); }

/* ---------- form card ---------- */
.form-card { background: var(--ink); color: var(--text-light); border-radius: 20px; padding: 28px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); border: 1px solid #222; }
.form-head h2 { font-size: 1.4rem; }
.form-head p { color: var(--muted-light); font-size: 0.95rem; margin-top: 6px; }
#lead-form { margin-top: 20px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: #cfcfcf; }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 0.96rem;
  background: var(--ink-3); color: #fff;
  border: 1.5px solid var(--line); border-radius: 11px;
  padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: #6f6f6f; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,77,0,.22); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.invalid input, .field.invalid textarea { border-color: #ff5a4d; box-shadow: 0 0 0 3px rgba(255,90,77,.2); }
.form-note { font-size: 0.78rem; color: var(--muted-light); line-height: 1.5; margin-top: 2px; }
/* honeypot anti-bot: fora da tela, nunca visivel/focavel por humano */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* estado de sucesso (substitui o form apos envio) */
.form-success { text-align: center; padding: 20px 10px; display: grid; gap: 12px; justify-items: center; }
.form-success-ico { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: rgba(245,77,0,.14); color: var(--orange); }
.form-success h2 { font-size: 1.5rem; color: #fff; }
.form-success p { color: var(--muted-light); font-size: 0.98rem; max-width: 34ch; }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section-dark { background: var(--ink); color: var(--text-light); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head-left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 12px 0 14px; }
.section-head p { color: var(--muted-dark); font-size: 1.06rem; }
.section-dark .section-head p { color: var(--muted-light); }

/* ---------- flow / mecanismo (elemento assinatura) ---------- */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; }
.flow-step { flex: 1 1 200px; max-width: 250px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.flow-rust { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 24px 50px -30px rgba(245,77,0,.8); background: linear-gradient(180deg, #1a1210, var(--ink-2)); }
.flow-num { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; color: var(--orange); letter-spacing: .1em; }
.flow-step h3 { font-size: 1.12rem; margin: 10px 0 8px; color: #fff; }
.flow-step p { color: var(--muted-light); font-size: 0.92rem; }
.flow-arrow { display: flex; align-items: center; color: var(--orange); flex: 0 0 auto; }
.flow-arrow svg { stroke: var(--orange); }

/* ---------- áreas ---------- */
.area-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.area-card { background: #fff; border: 1px solid #ebe9e3; border-radius: var(--radius); padding: 28px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.area-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(0,0,0,.3); border-color: #f0d9cc; }
.area-ico { color: var(--orange); margin-bottom: 14px; width: 26px; height: 26px; }
.area-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.area-card p { color: var(--muted-dark); font-size: 0.95rem; }

/* ---------- para agências ---------- */
.section-agency { background: var(--paper-2); }
.agency-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 54px; align-items: center; }
.agency-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 12px 0 16px; }
.agency-copy > p { color: #444; font-size: 1.06rem; max-width: 46ch; }
.agency-list { display: grid; gap: 11px; margin: 22px 0 28px; }
.agency-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #2a2a2a; }
.agency-list .ico { color: var(--orange); }

.agency-figure { display: grid; justify-items: center; gap: 14px; }
.pipe { display: flex; flex-direction: column; align-items: center; gap: 0; background: var(--ink); border-radius: 18px; padding: 30px 26px; width: 100%; max-width: 320px; }
.pipe-node { font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 11px 22px; font-size: 0.98rem; width: 100%; text-align: center; }
.pipe-rust { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245,77,0,.2); }
.pipe-end { border-color: #3a7d3a; color: #9be89b; }
.pipe-line { width: 2px; height: 20px; background: linear-gradient(var(--orange), #3a3a3a); }
.pipe-caption { font-size: 0.86rem; color: var(--muted-dark); font-family: var(--font-mono); }

/* ---------- FAQ (padrão patterns.md §3) ---------- */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq-item { border: 1px solid #e7e5df; border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--text-dark); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-mark { position: relative; flex: none; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--orange); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.faq-mark::before { top: 8px; left: 0; width: 18px; height: 2.5px; }
.faq-mark::after { left: 8px; top: 0; width: 2.5px; height: 18px; }
.faq-item.open .faq-mark::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .26s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 20px 20px; color: var(--muted-dark); }

/* ---------- CTA final ---------- */
.cta-final { background: var(--ink); color: #fff; text-align: center; }
.cta-inner { max-width: 640px; }
.cta-final h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.cta-final p { color: var(--muted-light); font-size: 1.1rem; margin: 14px 0 28px; }

/* ---------- footer ---------- */
.site-footer { background: #050505; color: #ccc; padding-top: 48px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer-brand span { font-size: 0.9rem; color: var(--muted-light); max-width: 34ch; }
.footer-contact { display: grid; gap: 6px; align-content: start; }
.footer-wa { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer-wa .ico { color: #25d366; }
.footer-contact span { font-size: 0.85rem; color: var(--muted-light); }
.footer-bottom { border-top: 1px solid #1a1a1a; padding: 18px 0; font-size: 0.82rem; color: #777; }

/* =========================================================
   RESPONSIVO — breakpoints da fundação (900 / 760 / 560 / 480)
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .lead { max-width: none; }
  .agency-grid { grid-template-columns: 1fr; gap: 36px; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid #e7e5df; padding: 8px 24px 16px; }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid #ededed; }
  .nav-links a { display: block; padding: 13px 0; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav { position: relative; }
}
@media (max-width: 760px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-step { max-width: none; }
  .flow-arrow { transform: rotate(90deg); justify-content: center; padding: 2px 0; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 52px; }
  .form-card { padding: 22px; }
}
@media (max-width: 480px) {
  .area-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { flex-direction: column; }
}
