/* ==========================================================================
   Rastrecel — design system
   Tokens extraídos da landing page atual (lp.rastrecel.com.br) para manter
   a identidade visual: claro, verde #22C55E, tipografia Geist.
   ========================================================================== */

:root {
  --green: #22C55E;
  --green-dark: #16A34A;
  --green-soft: #F0FDF4;
  --ink: #0A0A0A;
  --muted: #737373;
  --line: #E5E5E5;
  --surface: #FAFAFA;
  --white: #FFFFFF;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, .14);

  --wrap: 1120px;
  --header-h: 68px;

  --font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.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;
}

/* ── Blocos de texto ───────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px;
}

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* ── Botões ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: .97rem; font-weight: 600; letter-spacing: -.01em;
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-sm { padding: 9px 17px; font-size: .9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { width: 132px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink);
  text-decoration: none; position: relative; padding: 4px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--green); transition: right .22s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; display: block; }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { padding: 84px 0 76px; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--green); white-space: nowrap; }
.hero-sub { font-size: 1.16rem; max-width: 46ch; margin-bottom: 30px; }

.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-badges span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.hero-badges svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* ── Faixa de números ──────────────────────────────────────────────────── */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stats div { background: var(--white); padding: 26px 22px; text-align: center; }
.stats strong {
  display: block; font-size: 2rem; font-weight: 700; color: var(--ink);
  letter-spacing: -.03em; line-height: 1.1;
}
.stats span { font-size: .87rem; color: var(--muted); }

/* ── Serviços (lista editorial) ────────────────────────────────────────── */

.service-list { border-top: 1px solid var(--line); }
.service-list a {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: center;
  padding: 30px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background-color .2s ease, padding .2s ease;
}
.service-list a:hover { background: var(--surface); padding-inline: 16px; }
.service-list .idx {
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; color: var(--green);
}
.service-list h3 { margin: 0 0 4px; }
.service-list p { font-size: .98rem; margin: 0; max-width: 62ch; }
.service-list .go {
  color: var(--green); font-size: .9rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.service-list .go svg { width: 15px; height: 15px; transition: transform .2s ease; }
.service-list a:hover .go svg { transform: translateX(4px); }

/* ── Grid de recursos ──────────────────────────────────────────────────── */

/* Linhas desenhadas por célula (box-shadow), e não pelo fundo do container:
   assim a última fileira incompleta não deixa um bloco cinza sobrando. */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 1px;
}
.feature-grid article {
  background: var(--white); padding: 26px 24px;
  box-shadow: 0 0 0 1px var(--line);
}
.feature-grid svg { width: 22px; height: 22px; color: var(--green); margin-bottom: 14px; }
.feature-grid h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature-grid p { font-size: .95rem; margin: 0; }

/* ── Passos ────────────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -2px; left: 0; padding-top: 26px;
  font-size: .82rem; font-weight: 700; color: var(--green);
}
.step::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 42px; height: 2px; background: var(--green);
}
.step h3 { margin: 26px 0 6px; font-size: 1.05rem; }
.step p { font-size: .95rem; margin: 0; }

/* ── Planos ────────────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }

.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; position: relative; height: 100%;
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--green); box-shadow: var(--shadow-lg); }

.plan-tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--green); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .plan-for { font-size: .95rem; margin-bottom: 24px; }

.plan-price { padding: 20px 0; border-block: 1px solid var(--line); margin-bottom: 22px; }
.plan-price .amount {
  font-size: 2.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.04em; line-height: 1;
}
.plan-price .per { font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan-price .install { display: block; font-size: .88rem; margin-top: 10px; }

.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; line-height: 1.5; }
.plan li svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; margin-top: 4px; }
.plan .btn { margin-top: auto; width: 100%; }

.plans-note { margin-top: 26px; font-size: .9rem; text-align: center; }

/* ── Depoimentos ───────────────────────────────────────────────────────── */

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: var(--radius); padding: 30px 32px;
}
.quote blockquote { margin: 0 0 20px; font-size: 1.05rem; color: var(--ink); line-height: 1.6; }
.quote figcaption { font-size: .9rem; }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 11px; height: 11px; flex-shrink: 0;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translateY(-3px); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 4px 24px; font-size: 1rem; max-width: 72ch; }

/* ── CTA final ─────────────────────────────────────────────────────────── */

.cta-band { background: var(--ink); color: #d4d4d4; padding: 76px 0; }
.cta-band h2 { color: var(--white); }
.cta-band h2 .accent { color: var(--green); }
.cta-band p { font-size: 1.1rem; max-width: 52ch; margin-bottom: 30px; }
.cta-band .btn-ghost { background: transparent; color: var(--white); border-color: #404040; }
.cta-band .btn-ghost:hover { border-color: var(--white); }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px;
}
.site-footer h4 {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--green-dark); }
.site-footer address { font-style: normal; font-size: .95rem; line-height: 1.7; }
.footer-brand img { width: 148px; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }

.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink);
}
.socials a:hover { border-color: var(--green); color: var(--green); }
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .87rem;
}

.footer-legal {
  margin: 18px 0 0; font-size: .78rem; line-height: 1.7; color: #a3a3a3;
}

/* ── Botão flutuante WhatsApp ──────────────────────────────────────────── */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: grid; place-items: center; width: 56px; height: 56px;
  background: #25D366; color: #fff; border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ── Páginas internas ──────────────────────────────────────────────────── */

.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .wrap { max-width: 860px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lead { margin-top: 18px; }
.page-hero .btn-row { margin-top: 30px; }

.crumbs { font-size: .85rem; margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--line); }
.crumbs li:last-child::after { content: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-dark); }
.crumbs [aria-current] { color: var(--ink); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 12px; margin: 20px 0; }
.prose ul li { display: flex; gap: 12px; align-items: flex-start; }
.prose ul li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 6px; }
.prose ol { padding-left: 20px; display: grid; gap: 12px; margin: 20px 0; }
.prose a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }

.callout {
  background: var(--green-soft); border: 1px solid #BBF7D0; border-radius: var(--radius);
  padding: 24px 26px; margin: 32px 0;
}
.callout p { font-size: .98rem; }
.callout strong { color: var(--ink); }

/* ── Animação de entrada ───────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Responsivo ────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 52px; }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .nav-toggle { display: block; }

  /* No mobile some o botao de WhatsApp do cabecalho (ja existe o flutuante)
     e mantem o "Acesso do cliente", que e o atalho de quem ja e cliente. */
  .header-actions .btn-primary { display: none; }
  .header-actions .btn-ghost { padding: 9px 12px; font-size: .8rem; white-space: nowrap; }
  .header-actions { gap: 8px; }
  .site-header .wrap { gap: 10px; }
  .brand img { width: 104px; }

  .quotes { grid-template-columns: 1fr; }
  .service-list a { grid-template-columns: 1fr; gap: 8px; padding: 24px 4px; }
  .service-list .go { margin-top: 4px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 10px 16px; }
}
