/* Oficina Pró — página de venda. Tokens de cor claro/escuro; a cor de marca é o azul do app. */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --brand-h: 221; --brand-s: 83%; --brand-l: 53%;
  --brand: hsl(var(--brand-h) var(--brand-s) var(--brand-l));
  --brand-600: hsl(var(--brand-h) var(--brand-s) 45%);
  --brand-100: hsl(var(--brand-h) 90% 95%);
  --accent: #f59e0b;
  --accent-text: #b45309;
  --whats: #16a34a;
  --whats-600: #15803d;

  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --surface: #ffffff;
  --border: #e3e7ef;
  --text: #121624;
  --text-muted: #555b6e;
  --shadow: 0 10px 30px -12px rgb(18 22 36 / 0.18);
  --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: #0a0e1a; --bg-soft: #0f1424; --surface: #141a2c; --border: #252d45;
    --text: #eef1f8; --text-muted: #a0a8bf; --brand-100: hsl(var(--brand-h) 50% 18%);
    --accent-text: #fbbf24; --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e1a; --bg-soft: #0f1424; --surface: #141a2c; --border: #252d45;
  --text: #eef1f8; --text-muted: #a0a8bf; --brand-100: hsl(var(--brand-h) 50% 18%);
  --accent-text: #fbbf24; --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
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: var(--brand); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.5em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; color: var(--text-muted); text-wrap: pretty; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 780px; }
.center { text-align: center; }
.sub { max-width: 640px; margin: 0 auto 8px; }
.small { font-size: 0.88rem; }
.muted { color: var(--text-muted); }
.section { padding: 72px 0; }
.soft { background: var(--bg-soft); }
.visually-hidden { position: absolute; left: -9999px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.visually-hidden:focus { left: 16px; top: 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; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text); margin: 0; }
.site-header nav { display: none; gap: 26px; }
@media (min-width: 860px) { .site-header nav { display: flex; } .site-header { padding: 14px 28px; } }
.site-header nav a { text-decoration: none; color: var(--text-muted); font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 400px) { .header-actions .btn-sm { padding: 9px 14px; font-size: 0.86rem; } .logo { font-size: 1.05rem; gap: 8px; } }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; text-align: center;
  transition: transform 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .theme-toggle:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-lg { padding: 18px 28px; font-size: 1.08rem; width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand); }
.btn-whats { background: var(--whats); color: #fff; box-shadow: 0 10px 24px -10px rgb(22 163 74 / 0.6); }
.btn-whats:hover { background: var(--whats-600); }
.btn-whats svg { fill: currentColor; stroke: none; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); color: var(--text);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

/* hero */
.hero-wrap {
  background:
    radial-gradient(900px 500px at 85% -10%, hsl(var(--brand-h) 90% 60% / 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgb(245 158 11 / 0.10), transparent 60%);
}
.hero { display: grid; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
@media (min-width: 980px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 48px; padding-bottom: 88px; } }
.eyebrow { font-weight: 600; color: var(--brand); font-size: 0.92rem; margin-bottom: 12px; }
.hl { color: var(--brand); }
.lead { font-size: 1.1rem; max-width: 600px; }
.price-chip { width: fit-content; max-width: 100%;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 18px;
  padding: 10px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.price-chip strong { color: var(--accent-text); font-size: 1.15rem; }
.price-chip s { color: var(--text-muted); }
.price-chip .muted { font-size: 0.88rem; }
.tag {
  display: inline-block; background: var(--accent); color: #1c1300; font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; margin: 0;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }
.hero-proof { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.92rem; color: var(--text-muted); }
.hero-proof li::before { content: "✓"; color: var(--whats); font-weight: 700; margin-right: 6px; }

/* celulares */
.phone {
  margin: 0; border-radius: 30px; padding: 8px; background: #0b0f1c;
  box-shadow: 0 30px 60px -20px rgb(10 14 26 / 0.45), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.phone img { border-radius: 23px; width: 100%; }
/* os dois celulares ocupam a mesma célula do grid: o da frente vai para a direita, o de trás para a esquerda */
.hero-art { display: grid; place-items: center; padding: 10px 0 20px; }
.hero-art .phone { grid-area: 1 / 1; width: min(250px, 56vw); z-index: 2; transform: translateX(24%) rotate(3deg); }
.hero-art .phone-back { z-index: 1; transform: translateX(-36%) rotate(-6deg) scale(0.88); }

/* cronômetro */
.countdown { margin-top: 6px; }
.countdown[hidden] { display: none; }
.cd-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.cd-boxes { display: flex; gap: 8px; }
.cd-boxes span {
  display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 8px 6px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.cd-boxes b { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1.2; }
.center-cd { text-align: center; margin: 18px 0 6px; }
.center-cd .cd-boxes { justify-content: center; }

/* dores */
.pain-grid { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pain { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.pain-q { font-family: var(--font-heading); font-weight: 600; color: var(--text); font-size: 1.02rem; }
.pain-a { margin: 0; }
.pain-a::before { content: "→ "; color: var(--brand); font-weight: 700; }

/* recursos */
.feature-grid { display: grid; gap: 16px; margin-top: 36px; 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 150ms ease-out, border-color 150ms ease-out; }
.feature-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.feature-card p { margin: 0; font-size: 0.95rem; }
.feature-card .icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--brand-100); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

/* galeria */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(230px, 64vw); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 32px max(16px, calc((100vw - 1140px) / 2 + 24px)) 20px;
  scrollbar-width: thin;
}
.gallery:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--text-muted); text-align: center; }
.gallery figcaption b { display: block; color: var(--text); font-family: var(--font-heading); }

/* passos */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps .n {
  display: inline-flex; width: 36px; height: 36px; border-radius: 999px; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700; font-family: var(--font-heading); margin-bottom: 12px;
}
.steps p { margin: 0; }

/* preço */
.price-card {
  max-width: 520px; margin: 0 auto; text-align: center; background: var(--surface);
  border: 2px solid var(--brand); border-radius: 24px; padding: 32px 22px; box-shadow: var(--shadow); position: relative;
}
@media (min-width: 640px) { .price-card { padding: 40px 40px; } }
.price-card h2 { margin: 14px 0 6px; }
.price-card .old { margin: 0; font-size: 1.05rem; }
.price-card .new { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.6rem, 9vw, 3.6rem); color: var(--text); line-height: 1.1; }
.price-card .new small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.price-card .once { font-weight: 600; color: var(--accent-text); margin: 8px 0 0; }
.checks { list-style: none; padding: 0; margin: 22px 0 24px; text-align: left; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; color: var(--text); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 999px;
  background: color-mix(in srgb, var(--whats) 16%, transparent); color: var(--whats); font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.price-card .small { margin: 14px 0 0; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; color: var(--text);
  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); font-size: 1.4rem; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 16px; margin: 0; white-space: pre-line; }
.faq-empty { text-align: center; }

/* contato */
.contact { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.lead-form {
  display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0;
}
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.lead-form .opt { font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }
.lead-form input {
  width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: inherit; font-weight: 400;
}
.lead-form input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-status { min-height: 1.4em; margin: 0; font-size: 0.92rem; }
.lead-status.ok { color: var(--whats); font-weight: 600; }
.lead-status.err { color: #dc2626; }

/* rodapé */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 110px; font-size: 0.92rem; }
.foot { display: grid; gap: 6px; }
.foot p { margin: 0 0 6px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--brand); }

/* flutuantes: WhatsApp em cima, assistente embaixo, sem cobrir um ao outro */
.float-whats, .chat-bubble {
  position: fixed; right: 16px; z-index: 50; width: 56px; height: 56px; border-radius: 999px; border: none;
  display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow); cursor: pointer;
}
.float-whats { bottom: 84px; background: var(--whats); }
.float-whats svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.chat-bubble { bottom: 16px; background: var(--brand); }
@media (max-width: 600px) {
  .float-whats, .chat-bubble { width: 50px; height: 50px; right: 12px; }
  .float-whats { bottom: 72px; }
  .chat-bubble { bottom: 12px; }
  .float-whats svg { width: 25px; height: 25px; }
  .chat-bubble svg { width: 23px; height: 23px; }
}
.chat-bubble svg { width: 26px; height: 26px; }
.chat-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 55;
  width: min(370px, calc(100vw - 32px)); height: min(520px, calc(100dvh - 32px));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-open .float-whats, .chat-open .chat-bubble { display: none; }
.chat-panel-header { padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.chat-close { background: none; border: 0; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; width: 36px; height: 36px; border-radius: 999px; }
.chat-close:hover { background: var(--bg-soft); }
.chat-panel-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { padding: 10px 14px; border-radius: 14px; max-width: 86%; font-size: 0.93rem; white-space: pre-line; overflow-wrap: anywhere; }
.chat-msg.user { align-self: flex-end; background: var(--brand); color: #fff; }
.chat-msg.assistant { align-self: flex-start; background: var(--bg-soft); color: var(--text); }
.chat-msg a { color: inherit; font-weight: 600; }
.chat-panel-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-panel-form input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.chat-panel-form button { border: none; background: var(--brand); color: #fff; border-radius: 999px; width: 42px; cursor: pointer; }

/* cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 640px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display: none;
}
.cookie-banner.open { display: block; }
.cookie-banner p { margin: 0; font-size: 0.92rem; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cookie-banner-panel { margin-top: 14px; 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; color: var(--text); font-size: 0.94rem; }
.cookie-option input { width: 20px; height: 20px; accent-color: var(--brand); }
.cookie-banner-panel .btn { margin-top: 8px; }

/* páginas de texto (privacidade, cookies, 404) */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.doc h2 { font-size: 1.25rem; margin-top: 1.6em; }
.doc li { color: var(--text-muted); margin-bottom: 6px; }
