/* ============================================================
   Pátio — site de marketing (SSR). CSS próprio e autocontido,
   desacoplado do Tailwind do app: HTML leve = Lighthouse alto.
   Dark premium · mobile-first · contraste AA · alvos tocáveis >=44px.
   ============================================================ */

:root {
  --ink: #0A0E12;
  --ink-2: #12171D;
  --ink-3: #1A2128;
  --line: #232c35;
  --haze: #E8ECEF;
  --dim: #8B96A0;
  --signal: #FF6A1A;
  --amber: #FFB020;
  --steel: #5B7A8C;
  --maxw: 1120px;
  --r: 16px;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display: "Archivo Expanded", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.patio-mkt {
  background: var(--ink);
  color: var(--haze);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; }

/* ---------- Tipografia ---------- */
.h1, .hero-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.lead { color: var(--dim); font-size: clamp(1rem, 2.2vw, 1.18rem); }
.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--amber); }
.btn-ghost { background: transparent; color: var(--haze); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--steel); background: var(--ink-2); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 0.9rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-center { justify-content: center; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--signal); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 0.95rem;
  display: grid; place-items: center;
}
.logo-word { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo-sm .logo-mark { width: 26px; height: 26px; font-size: 0.8rem; }
.logo-sm .logo-word { font-size: 0.95rem; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.hdr.scrolled { background: rgba(10,14,18,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.hdr-nav { display: flex; align-items: center; gap: 6px; }
.navlink { padding: 8px 12px; color: var(--dim); font-weight: 500; font-size: 0.92rem; border-radius: 999px; transition: color .2s; }
.navlink:hover { color: var(--haze); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 12%, rgba(255,106,26,.13), transparent 70%),
    radial-gradient(50% 40% at 10% 0%, rgba(91,122,140,.10), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 56px); align-items: center; }
.hero-title { margin-bottom: 20px; }
.hero-sub { color: var(--dim); font-size: clamp(1.02rem, 2.4vw, 1.22rem); max-width: 36ch; }
.proof-line { margin-top: 26px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--steel); }

/* ---------- Mock de navegador / vitrine ---------- */
.browser { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--ink-3); }
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4550; }
.browser-url { margin-left: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--dim); background: var(--ink); padding: 5px 12px; border-radius: 999px; }
.browser-body { padding: 18px; }
.vmock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.vmock-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--signal); opacity: .85; }
.vmock-name { width: 120px; height: 12px; border-radius: 6px; background: var(--ink-3); }
.vmock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vcard { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.vcard-img { aspect-ratio: 16/10; border-radius: 8px; background: linear-gradient(135deg, var(--ink-3), var(--ink-2)); display: grid; place-items: center; color: #38424d; margin-bottom: 10px; }
.vcard-img svg { width: 28px; height: 28px; }
.vcard-line { display: block; height: 9px; border-radius: 5px; background: var(--ink-3); margin-bottom: 7px; }
.vcard-line.w70 { width: 70%; }
.vcard-line.w40 { width: 40%; }
.vcard-tag { display: inline-block; width: 54px; height: 16px; border-radius: 5px; background: rgba(255,106,26,.2); }

/* ---------- Seções ---------- */
.section { padding: clamp(54px, 8vw, 96px) 0; }
.section-alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head .h2 { margin-top: 4px; }

.split { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.split-copy .lead { margin-top: 16px; }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--haze); }
.ticks svg { width: 20px; height: 20px; color: var(--signal); flex: none; margin-top: 2px; }

/* Cards de pátios (multi-tenant) */
.patios { display: grid; gap: 14px; }
.patio-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; }
.patio-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--ink-3); color: var(--signal); display: grid; place-items: center; flex: none; }
.patio-ico svg { width: 22px; height: 22px; }
.patio-name { font-weight: 600; }
.patio-meta { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--steel); }

/* Passos */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: s; }
.step { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: relative; }
.section-alt .step { background: var(--ink); }
.step-n { font-family: var(--mono); font-size: 0.85rem; color: var(--signal); letter-spacing: .1em; }
.step-title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 12px 0 8px; }
.step-body { color: var(--dim); font-size: 0.98rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature { background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.feature-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--ink-3); color: var(--signal); display: grid; place-items: center; margin-bottom: 16px; }
.feature-ico svg { width: 24px; height: 24px; }
.feature-title { font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin-bottom: 8px; }
.feature-body { color: var(--dim); font-size: 0.97rem; }

/* Placeholder honesto (dado real pendente — §0 do brief) */
.pending { border: 1.5px dashed var(--line); border-radius: var(--r); padding: clamp(32px, 6vw, 56px); text-align: center; background: var(--ink-2); }
.pending-play { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--steel); color: var(--steel); display: grid; place-items: center; margin: 0 auto 18px; }
.pending-play svg { width: 26px; height: 26px; }
.pending-title { font-weight: 600; font-size: 1.05rem; }
.pending-note { color: var(--dim); font-size: 0.9rem; max-width: 46ch; margin: 8px auto 0; }

/* Comparativo */
.compare { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: center; font-size: 0.95rem; }
.compare-row:last-child { border-bottom: 0; }
.compare-head { background: var(--ink-3); font-family: var(--mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.compare-eixo { font-weight: 600; color: var(--haze); }
.col-patio { color: var(--haze); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.col-patio svg { width: 17px; height: 17px; color: var(--signal); flex: none; }
.compare-trad { color: var(--dim); }
.compare-row:not(.compare-head) .col-patio { background: rgba(255,106,26,.06); border-radius: 8px; padding: 6px 10px; margin: -6px -4px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { width: 18px; height: 18px; flex: none; position: relative; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--signal); border-radius: 2px; transition: transform .2s ease; }
.faq-plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-a { padding: 0 20px 20px; color: var(--dim); font-size: 0.97rem; }

/* CTA final */
.final-cta { text-align: center; background:
    radial-gradient(60% 100% at 50% 0%, rgba(255,106,26,.12), transparent 70%), var(--ink-2);
  border-top: 1px solid var(--line); }
.final-in { max-width: 640px; margin: 0 auto; }
.final-in .lead { margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 72px) 0 28px; }
.footer-in { display: grid; grid-template-columns: 1fr; gap: 36px; }
.footer-tag { color: var(--dim); font-size: 0.95rem; margin-top: 14px; max-width: 34ch; }
.footer-org { color: var(--steel); font-size: 0.85rem; margin-top: 8px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--haze); font-size: 0.92rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--signal); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; color: var(--steel); }
.footer-legal-pend { opacity: .7; }

/* ---------- FAB WhatsApp ---------- */
/* Acima da bolha do City Chat (Chatwoot), que fica no canto inferior direito. */
.fab {
  position: fixed; right: 22px; bottom: 96px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; }

/* ---------- Blog ---------- */
.blog-hero { padding-bottom: 24px; }
.post-list { display: grid; gap: 16px; }
.post-card { display: block; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: border-color .2s ease, transform .2s ease; }
.post-card:hover { border-color: var(--steel); transform: translateY(-2px); }
.post-meta { font-family: var(--mono); font-size: 0.74rem; color: var(--steel); letter-spacing: .03em; }
.post-title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 10px 0; line-height: 1.2; }
.post-desc { color: var(--dim); font-size: 0.97rem; }
.post-more { display: inline-flex; align-items: center; gap: 7px; color: var(--signal); font-weight: 600; font-size: 0.9rem; margin-top: 16px; }
.post-more svg { width: 16px; height: 16px; }

/* Artigo */
.crumbs { font-family: var(--mono); font-size: 0.76rem; color: var(--steel); margin-bottom: 22px; }
.crumbs a:hover { color: var(--signal); }
.article-title { margin: 10px 0 28px; }
.prose { font-size: 1.06rem; line-height: 1.75; color: #cdd5db; }
.prose .lead { color: var(--haze); font-size: 1.18rem; }
.prose h2 { font-family: var(--display); font-weight: 700; color: var(--haze); font-size: 1.5rem; margin: 38px 0 14px; letter-spacing: -.01em; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--haze); }
.article-cta { margin-top: 48px; padding: 32px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.article-cta h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }
.article-cta .cta-row { justify-content: center; }

/* ---------- Responsivo ---------- */
@media (min-width: 720px) {
  .vmock-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1.2fr 2fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 940px) {
  .hero-in { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split .order-art { order: 2; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .navlink { display: none; }
  .navlink:last-of-type { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 4px; }
  .compare-head { display: none; }
  .compare-eixo { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
  .compare-trad::before { content: "Tradicional: "; color: var(--steel); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
