:root {
  --bg: #0f1115; /* Preto grafite premium */
  --card: #141821; /* Card escuro */
  --muted: #a7b0c0; /* Cinza elegante */
  --text: #e9edf5; /* Texto claro */
  --accent: #c6a15b; /* Dourado suave premium */
  --surface: #0b0d11;
  --border: rgba(255, 255, 255, .08);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 18px;
  --radius-sm: 14px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg), var(--surface));
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 17, .6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.nav .actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  box-shadow: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .2);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #e7c98a);
  color: #1b1b1b;
  border-color: transparent;
}

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

.hero {
  position: relative;
  padding: 80px 0 50px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: center;
}

.kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.hero-card {
  text-align: center;
  background: linear-gradient(180deg, var(--card), #1b1e25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-card b {
  color: #fff;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(198, 161, 91, .14);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(198, 161, 91, .35);
  font-size: .85rem;
}

section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4.2vw, 38px);
  line-height: 1.1;
  margin: 12px 0 16px;
}

p.section-sub {
  color: var(--muted);
  margin: 0 0 24px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, var(--card), #1b1e25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow);
  outline: 2px solid rgba(198, 161, 91, .5);
}

.plan h2 {
  text-align: center;
}

.plan h3 {
  margin: 0 0 8px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0 12px;
}

.price small {
  color: var(--muted);
  font-weight: 500;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
  margin: 0 auto;
  text-align: center;
  width: fit-content;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
  color: #d9deea;
}

.plan ul li {
  display: flex;
  gap: 10px;
  margin: 8px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  text-align: center;
  background: linear-gradient(180deg, var(--card), #1b1e25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.step .num {
  display: inline-grid;
  line-height: 1;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(198, 161, 91, .16);
  border: 1px solid rgba(198, 161, 91, .4);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.cta {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  align-items: center;
}

.cta-card {
  background: linear-gradient(180deg, var(--card), #1b1e25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

footer {
  padding: 30px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.foot-note {
  font-size: .95rem;
}

.muted {
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sep {
  height: 1px;
  background: var(--border);
  margin: 10px 0 18px;
}

#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, var(--accent), #e7c98a);
  color: #0b0d11;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 99, 99, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1000;
  display: grid;
  place-items: center;
}

#scrollTopBtn img.scroll-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: invert(1);
}

#scrollTopBtn:hover {
  transform: translateY(-2px) scale(1.05);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

/* Logo Responsiva (default desktop) */
.brand img.logo-desktop {
  display: inline-block !important;
  height: 44px;
  width: auto;
}

.brand img.logo-mobile {
  display: none !important;
}

/* FAQ Accordion (versão otimizada) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: linear-gradient(180deg, var(--card), #1b1e25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  padding: 16px 18px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-weight: 700;
  color: var(--accent);
  transition: transform .25s ease;
}

.faq-item.active .faq-question::after {
  content: "–";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: var(--muted);
  transition: max-height .3s ease;
}

.faq-answer p {
  margin: 0 0 16px;
}

/* Safe-area iOS */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* -------- Responsive -------- */

@media (max-width: 980px) {
  .hero-grid,
  .plans,
  .steps,
  .cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 784px) {
  .actions {
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .actions::-webkit-scrollbar {
    display: none;
  }

  /* Hero mobile */
  .hero {
    padding: 56px 0 28px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .subtitle {
    font-size: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-media {
    order: 2;
  }

  .hero-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Planos mobile: botão alinhado no rodapé */
  .plans {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .plan {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .plan h3 {
    margin-top: 6px;
  }

  .plan ul {
    flex-grow: 1;
    margin-bottom: 14px;
  }

  .price {
    font-size: 24px;
  }

  .pill {
    font-size: .85rem;
  }

  /* Cards compactos (steps, commitment, cta) */
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-card {
    padding: 16px;
  }

  /* Imagens com acabamento */
  .hero-media img,
  .cta-card img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  }

  /* Contato: força empilhamento quando a seção usa .grid-2 */
  #contato .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* Logo Responsiva mobile */
  .brand img.logo-desktop {
    display: none !important;
  }

  .brand img.logo-mobile {
    display: inline-block !important;
    height: 38px;
    width: auto;
  }

  /* Esconder elementos no mobile */
  .hide-mobile {
    display: none;
  }
}
