/* =========================================================
   Megauto — página inicial
   Cores tiradas da logo: laranja #FF6C01 e grafite #2C2B31
   ========================================================= */

:root {
  --accent: #FF6C01;        /* laranja da logo (fundos e destaques) */
  --accent-text: #C24E00;   /* laranja escuro para texto sobre branco */
  --ink: #2C2B31;           /* grafite da logo */
  --dark: #1E1D22;          /* fundos escuros */
  --muted: #55545C;         /* texto secundário */
  --line: #E6E5E9;          /* bordas */
  --soft: #F4F4F6;          /* fundo das seções alternadas */
  --white: #FFFFFF;

  --font-display: 'Saira', sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;

  --radius: 12px;
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); }
a:hover { color: #8F3900; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 820px; }
.center { text-align: center; }
.accent { color: var(--accent); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #FF7E1F; color: var(--ink); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-ghost { border-color: #5C5B63; color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }

.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-block { display: flex; width: 100%; min-height: 48px; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand img { height: 44px; width: auto; }

.menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}

.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent-text); }

.header-actions { display: flex; gap: 10px; }

/* Menu mobile (só CSS, sem JavaScript) */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--accent); }

/* ---------- Hero ---------- */

.hero {
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding-top: 80px;
  padding-bottom: 96px;
}

.hero-text { max-width: 820px; text-align: center; }
.hero-text .lead { margin-left: auto; margin-right: auto; max-width: 640px; }
.hero-actions { justify-content: center; }
.hero-visual { width: 100%; max-width: 1080px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid #4A4950;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #D9D8DE;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.05;
}

.lead {
  margin: 0 0 34px;
  max-width: 540px;
  font-size: 19px;
  color: #C9C8CF;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-note { margin: 18px 0 0; font-size: 14px; color: #A9A8B0; }

/* Telas do sistema */
.hero-visual {
  position: relative;
  padding: 0 0 64px 72px;
}

.shot {
  margin: 0;
  background: #2C2B31;
  border: 1px solid #3A3940;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.shot img { width: 100%; height: auto; }

.shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #34333A;
  border-bottom: 1px solid #3A3940;
}

.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #5C5B63; }
.shot-bar span:first-child { background: var(--accent); }

.shot-float {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22%;
  max-width: 240px;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
}

/* ---------- Faixa "Feito para" ---------- */

.audience { background: var(--soft); border-bottom: 1px solid var(--line); }

.audience-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 40px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-weight: 600;
  color: #4A4950;
}

.audience-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6B6A72;
}

/* ---------- Seções ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--soft); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent-text);
}

.section h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
}

.section-lead { margin: 0; font-size: 18px; color: var(--muted); }

/* ---------- O sistema por dentro ---------- */

.showcase { background: var(--soft); }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 32px;
}

.showcase .shot { background: var(--white); border-color: var(--line); box-shadow: 0 16px 40px rgba(44, 43, 49, .12); }
.showcase .shot-bar { background: #F1F0F3; border-color: var(--line); }
.showcase .shot-bar span { background: #D3D2D8; }
.showcase .shot-bar span:first-child { background: var(--accent); }

.showcase figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Funcionalidades ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}

.feature:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(44, 43, 49, .08); }

.feature svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 { margin: 16px 0 8px; font-size: 21px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Como funciona ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.steps li { padding: 32px; background: var(--white); border-radius: var(--radius); }

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
}

.steps h3 { margin: 16px 0 8px; font-size: 22px; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Planos ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.plan h3 { margin-bottom: 6px; font-size: 24px; font-weight: 700; }
.plan-desc { margin: 0 0 24px; color: var(--muted); }

.price { margin: 0 0 24px; }
.price strong { font-family: var(--font-display); font-weight: 800; font-size: 40px; }
.price span { color: #6B6A72; }

.plan ul {
  margin: 0 0 32px;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #3E3D44;
}

.plan .btn { margin-top: auto; }

.plan-featured { background: var(--dark); color: var(--white); border-color: var(--dark); }
.plan-featured .plan-desc { color: #C9C8CF; }
.plan-featured .price span { color: #A9A8B0; }
.plan-featured ul { color: #E4E3E8; }

.badge {
  position: absolute;
  top: -14px;
  left: 32px;
  padding: 4px 14px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Dúvidas ---------- */

.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }

.faq details { background: var(--white); border-radius: 10px; padding: 0 24px; }

.faq summary {
  position: relative;
  padding: 20px 32px 20px 0;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 500;
  color: var(--accent-text);
}

.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Chamada final ---------- */

.cta { background: var(--accent); }

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.cta-inner > div { flex: 1 1 420px; min-width: 0; }
.cta h2 { margin-bottom: 8px; font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; color: var(--dark); }
.cta p { margin: 0; font-size: 18px; color: var(--ink); }

/* ---------- Rodapé ---------- */

.site-footer { background: var(--dark); color: #C9C8CF; padding: 64px 0 104px; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand { flex: 1 1 260px; min-width: 0; }
.footer-brand p { margin: 16px 0 0; max-width: 300px; }

.footer-logo { display: inline-block; padding: 10px 14px; background: var(--white); border-radius: 8px; }
.footer-logo img { height: 36px; width: auto; }

.footer-col { flex: 0 1 200px; display: flex; flex-direction: column; gap: 10px; }
.footer-title { font-weight: 700; color: var(--white); }
.footer-col a { color: #C9C8CF; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #3A3940;
  font-size: 14px;
  color: #A9A8B0;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .menu-button { display: flex; }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav { flex-direction: column; gap: 4px; }
  .nav a { padding: 10px 0; }
  .header-actions .btn { flex: 1; }

  .menu-toggle:checked ~ .menu { display: flex; }
  .menu-toggle:checked + .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .menu-button span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked + .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media (max-width: 600px) {
  .brand img { height: 36px; }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding: 0 0 32px 20px; }
  .shot-float { width: 40%; }
}

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

/* ---------- WhatsApp ---------- */

.btn-whatsapp { background: #1E8E4E; color: var(--white); }
.btn-whatsapp:hover { background: #17733F; color: var(--white); }
.btn-whatsapp svg { width: 22px; height: 22px; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.footer-wa { display: inline-flex; align-items: center; gap: 8px; }
.footer-wa svg { width: 18px; height: 18px; flex-shrink: 0; color: #25D366; }

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px 0 16px;
  background: #1E8E4E;
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transition: transform .2s, background .2s;
}

.whatsapp-float:hover { background: #17733F; color: var(--white); transform: translateY(-2px); }
.whatsapp-float svg { width: 28px; height: 28px; }

@media (max-width: 600px) {
  .cta-actions, .cta-actions .btn { width: 100%; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
  .whatsapp-float-text { display: none; }
  .site-footer { padding-bottom: 96px; }
}
