/* Sistema Galpão — página de venda
   Cor da marca: verde (troque só --brand-h/--brand-s/--brand-l). */

:root {
  --brand-h: 142; --brand-s: 70%; --brand-l: 30%;
  --brand: hsl(var(--brand-h) var(--brand-s) var(--brand-l));
  --brand-600: hsl(var(--brand-h) var(--brand-s) 24%);
  --brand-100: hsl(var(--brand-h) 60% 93%);
  --brand-text: hsl(var(--brand-h) var(--brand-s) 28%);
  --accent: #84cc16;

  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --surface: #ffffff;
  --border: #e2e8e4;
  --text: #121614;
  --text-muted: #56605a;
  --hero-bg: linear-gradient(160deg, #f1f8f3 0%, #ffffff 60%);
  --shadow: 0 10px 30px -12px rgb(18 22 20 / 0.18);
  --shadow-lg: 0 30px 60px -25px rgb(18 22 20 / 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --font-heading: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c100e; --bg-soft: #121815; --surface: #161d19; --border: #26302a;
    --text: #edf3ef; --text-muted: #9fada5;
    --brand-100: hsl(var(--brand-h) 40% 16%);
    --brand-text: hsl(var(--brand-h) 60% 62%);
    --hero-bg: radial-gradient(1200px 600px at 80% -10%, #173322 0%, #0c100e 60%);
    --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 30px 60px -25px rgb(0 0 0 / 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c100e; --bg-soft: #121815; --surface: #161d19; --border: #26302a;
  --text: #edf3ef; --text-muted: #9fada5;
  --brand-100: hsl(var(--brand-h) 40% 16%);
  --brand-text: hsl(var(--brand-h) 60% 62%);
  --hero-bg: radial-gradient(1200px 600px at 80% -10%, #173322 0%, #0c100e 60%);
  --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 30px 60px -25px rgb(0 0 0 / 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { flex-shrink: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sub { max-width: 640px; margin: 0 auto 2rem; font-size: 1.08rem; }
.kicker { color: var(--brand-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.6rem; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; text-decoration: none; margin: 0; color: var(--text); }
.logo b { color: var(--brand-text); font-weight: 800; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.nav { display: none; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.nav a.nav-cta { color: #fff; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun { display: none; }
  :root:not([data-theme="light"]) .ico-moon { display: block; }
}
@media (min-width: 880px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .header-actions { order: 3; }
}
@media (max-width: 879px) {
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 0; right: 0; top: 68px; padding: 12px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 8px; font-size: 1.05rem; }
  .nav.open a.nav-cta { margin-top: 8px; padding: 14px; }
}

/* ---- botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 0.95rem; font-family: var(--font-body);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px hsl(var(--brand-h) 70% 30% / 0.7); }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: #10301c; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.5); }
.btn-outline-light:hover { border-color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { color: var(--brand-text); }

/* ---- hero ---- */
.hero { background: var(--hero-bg); padding: 48px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .hero { padding: 80px 0 90px; } .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--brand-100); color: var(--brand-text); font-weight: 700; font-size: 0.85rem; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 4px rgb(132 204 22 / 0.25); }
.hl { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .hero-actions .btn { flex: 0 0 auto; } }
.center-actions { justify-content: center; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 0.9rem; color: var(--text-muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--brand-text); }

.hero-art { position: relative; padding-bottom: 30px; padding-right: 50px; }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.browser-bar span { width: 10px; height: 10px; border-radius: 99px; background: #e5e7eb; }
.browser-bar span:nth-child(1) { background: #f87171; }
.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }
.browser-bar em { margin-left: 10px; font-style: normal; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 30%; min-width: 120px;
  border-radius: 26px; padding: 7px; background: #0b0f0d; box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 20px; }

/* ---- seções ---- */
.section { padding: 64px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.pains { background: var(--bg-soft); }
.pain-grid { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 768px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.pain p { margin: 0; }
.pain strong { color: var(--text); }
.pain-x, .pain-ok { width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; flex-shrink: 0; }
.pain-x { background: #fee2e2; color: #b91c1c; }
.pain-ok { background: var(--brand-100); color: var(--brand-text); }
.pain.ok { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }

.group-title { font-size: 1.15rem; margin: 48px 0 0; display: flex; align-items: center; gap: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.feature-grid { display: grid; gap: 16px; margin: 20px 0 0; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.feature-card p { margin: 0; font-size: 0.94rem; }
.feature-card .icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--brand-100); color: var(--brand-text); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

.showcase { background: var(--bg-soft); }
.show-row { display: grid; gap: 36px; align-items: center; }
.show-row + .show-row { margin-top: 72px; }
@media (min-width: 900px) {
  .show-row { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .show-row.reverse .show-img { order: 2; }
}
.show-img { justify-self: center; }
.phone-sm { width: min(300px, 78vw); border-radius: 30px; padding: 8px; background: #0b0f0d; box-shadow: var(--shadow-lg); }
.phone-sm img { border-radius: 23px; }
.card-img { width: min(360px, 88vw); border-radius: 26px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { color: var(--brand-text); margin-top: 3px; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps p { margin: 0; }
.step-n { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); margin-bottom: 14px; }

/* ---- preço ---- */
.pricing { background: var(--hero-bg); }
.price-card {
  max-width: 520px; margin: 0 auto; text-align: center; background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--brand) 55%, var(--border)); border-radius: 26px; padding: 34px 22px; box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .price-card { padding: 42px 40px; } }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.price-old { margin: 8px 0 0; font-size: 1.05rem; }
.price-old s { color: #dc2626; }
.price { font-family: var(--font-heading); font-weight: 800; font-size: clamp(3.6rem, 12vw, 5rem); color: var(--text); line-height: 1; margin: 6px 0 8px; letter-spacing: -0.04em; }
.price .cur { font-size: 0.38em; vertical-align: 0.95em; margin-right: 4px; color: var(--text-muted); letter-spacing: 0; }
.price-note { font-weight: 700; color: var(--brand-text); }
.price-card .checks { text-align: left; margin: 22px 0 26px; }
.price-demo { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--brand-text); text-decoration: none; }
.price-fine { font-size: 0.8rem; margin: 18px 0 0; }

/* ---- FAQ ---- */
.faq-list { margin-top: 28px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); }
.faq-item summary { padding: 17px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand-text); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: var(--radius-sm); }
.faq-item p { padding: 0 20px 18px; margin: 0; }

/* ---- CTA + rodapé ---- */
.cta-band {
  background: linear-gradient(135deg, #0f3b22, var(--brand) 55%, #4d7c0f);
  color: #fff; border-radius: 26px; padding: 48px 22px; text-align: center; margin: 32px auto 72px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / 0.85); max-width: 560px; margin: 0 auto; }
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 calc(110px + env(safe-area-inset-bottom)); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0 0 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--text-muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--brand-text); }
.copy { margin-top: 22px; font-size: 0.82rem; }

/* ---- robô ---- */
.chat-bubble {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  height: 58px; min-width: 58px; border-radius: 999px; border: none; padding: 0 18px;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-lg); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 0.92rem var(--font-body);
}
.chat-bubble:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.chat-hint { display: none; }
@media (min-width: 640px) { .chat-hint { display: inline; } }
.chat-panel {
  position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 55;
  width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100dvh - 120px));
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, #0f3b22, var(--brand)); color: #fff; }
.chat-panel-header small { display: block; opacity: 0.8; font-size: 0.78rem; }
.chat-panel-header .icon-btn { width: 36px; height: 36px; background: rgb(255 255 255 / 0.15); border-color: transparent; color: #fff; }
.chat-panel-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.chat-msg { padding: 10px 14px; border-radius: 16px; max-width: 86%; font-size: 0.93rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg[data-typing] { color: var(--text-muted); font-style: italic; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; background: var(--surface); }
.chat-suggest button { border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border)); background: transparent; color: var(--brand-text); border-radius: 999px; padding: 6px 12px; font: 600 0.8rem var(--font-body); cursor: pointer; }
.chat-panel-form { display: flex; gap: 8px; padding: 12px; background: var(--surface); }
.chat-panel-form input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 999px; padding: 11px 15px; background: var(--bg); color: var(--text); font: 16px var(--font-body); }
.chat-panel-form input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.chat-panel-form button { border: none; background: var(--brand); color: #fff; border-radius: 999px; width: 44px; cursor: pointer; display: grid; place-items: center; }
.chat-foot { margin: 0; padding: 0 12px 10px; text-align: center; font-size: 0.72rem; background: var(--surface); }
.chat-foot a { color: var(--brand-text); font-weight: 600; }

/* ---- cookies ---- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 620px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px; display: none;
}
.cookie-banner.open { display: block; }
.cookie-banner p { margin: 0 0 6px; font-size: 0.9rem; }
.cookie-banner a { color: var(--brand-text); }
.cookie-banner-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
@media (max-width: 420px) { .cookie-banner-actions { grid-template-columns: 1fr; } }
.cookie-banner-panel { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; display: none; }
.cookie-banner-panel.open { display: block; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; }
.cookie-option input { width: 20px; height: 20px; accent-color: var(--brand); }

/* ---- páginas simples (privacidade, 404) ---- */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.page p, .page li { color: var(--text-muted); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.chat-suggest[hidden] { display: none; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } .hero-actions { flex-wrap: nowrap; } .btn-lg { padding: 15px 22px; } }
@media (max-width: 639px) { .chat-bubble { height: 52px; min-width: 52px; padding: 0 14px; } }
