/* SellAuto Landing Page — mobile-first */

:root {
  --bg-dark: #0b1220;
  --bg-dark-2: #111827;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-soft: rgba(22, 163, 74, 0.12);
  --accent: #22c55e;
  --accent-hover: #15803d;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-on-dark: #e2e8f0;
  --text-on-dark-muted: #94a3b8;
  --border: #e2e8f0;
  --border-dark: rgba(148, 163, 184, 0.18);
  --danger: #dc2626;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
  --container: 1120px;
  --transition: 0.2s ease;
  --nav-z: 200;
  --header-z: 210;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  /* Prevent horizontal scroll from off-canvas nav / overflow */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(100% - 1.5rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 1.5rem, 720px);
}

/* ---------- Buttons (base) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
  text-align: center;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  width: 100%;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--border-dark);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(226, 232, 240, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: #052e16;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ---------- Header + mobile drawer (default) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  width: 100%;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  /* Only logo + hamburger participate in flex on mobile */
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  position: relative;
  z-index: calc(var(--header-z) + 2);
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #4ade80);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid #fff;
  border-radius: 3px;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.95;
}

.logo-text {
  font-size: 1.1rem;
}

/* Hamburger always visible on mobile base */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: calc(var(--header-z) + 2);
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Full-screen overlay drawer — NEVER in document flow on mobile */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.25rem;
  background: rgba(11, 18, 32, 0.98);
  z-index: var(--nav-z);
  /* Fully off-screen when closed — no half-page split */
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  opacity: 1;
  transition: transform 0.28s ease, visibility 0.28s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

.site-nav a:not(.btn) {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--border-dark);
  transition: color var(--transition);
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: #86efac;
}

.site-nav .nav-cta {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

/* Dim backdrop behind drawer (sibling pseudo via body class on main/header not needed — nav is full cover) */

/* ---------- Hero (mobile base: single column) ---------- */
.hero {
  position: relative;
  background: radial-gradient(
      800px 400px at 20% -10%,
      rgba(22, 163, 74, 0.28),
      transparent 55%
    ),
    radial-gradient(
      600px 300px at 90% 20%,
      rgba(34, 197, 94, 0.12),
      transparent 50%
    ),
    var(--bg-dark);
  color: var(--text-on-dark);
  padding: 2.25rem 0 2.75rem;
  overflow: hidden;
  width: 100%;
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(148, 163, 184, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  min-width: 0;
}

/* Mobile: copy → chat → form (ordem do DOM) */
.hero-copy {
  min-width: 0;
}

.hero-chat {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-chat-intro {
  text-align: center;
  max-width: 36rem;
  width: 100%;
}

.hero-chat-title {
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  color: var(--text-on-dark);
}

.hero-chat-lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

/* Mobile: mantém só o mock (como antes). Intro vira “seção” no desktop. */
@media (max-width: 959.98px) {
  .hero-chat-intro {
    display: none;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 0.85rem;
}

.eyebrow.dark {
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: none;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-bullets li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Form card */
.hero-form-wrap {
  min-width: 0;
  width: 100%;
}

.form-card {
  background: var(--bg-white);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 100%;
}

.form-card-header h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.form-card-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field label,
.fieldset-channels legend {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  /* iOS zoom prevention on focus */
  font-size: 16px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #cbd5e1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.field input.is-invalid,
.field select.is-invalid,
.fieldset-channels.is-invalid .checkbox-grid {
  border-color: var(--danger);
}

.field-error {
  font-size: 0.75rem;
  color: var(--danger);
}

.fieldset-channels {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #334155;
  padding: 0.35rem 0.25rem;
  border-radius: 6px;
  cursor: pointer;
}

.check input {
  accent-color: var(--primary);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.form-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -0.15rem;
}

.form-success {
  text-align: center;
  padding: 1.5rem 0.25rem 0.75rem;
}

.form-success[hidden],
.lead-form[hidden] {
  display: none !important;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-hover);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.form-success h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.form-success-actions .btn { text-decoration: none; }


/* Trust */
.trust {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.trust-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.trust-chips li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Pains — 1 col mobile */
.pains {
  background: var(--bg-light);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.pain-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.pain-card h3 {
  font-size: 1.02rem;
  margin: 0.55rem 0 0.4rem;
  letter-spacing: -0.01em;
}

.pain-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pain-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.pain-bad {
  background: #fef2f2;
  color: #b91c1c;
}

.pain-good {
  background: #ecfdf5;
  color: #047857;
}

.pain-solution {
  border-color: rgba(22, 163, 74, 0.35);
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 60%);
}

/* Features — 1 col mobile */
.features {
  background: var(--bg-white);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--bg-light);
  transition: border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.feature-card:hover {
  border-color: #86efac;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* How — 1 col mobile */
.how {
  background: var(--bg-light);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.step {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Compare — 1 col mobile */
.compare {
  background: var(--bg-white);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 900px;
  margin: 0 auto;
}

.compare-col {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  border: 1px solid var(--border);
}

.compare-col h3 {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.compare-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.compare-col li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: #334155;
}

.compare-before {
  background: #f8fafc;
}

.compare-before li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #b91c1c;
  font-weight: 700;
}

.compare-after {
  background: linear-gradient(160deg, #f0fdf4, #ecfdf5);
  border-color: #86efac;
}

.compare-after li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #047857;
  font-weight: 700;
}

.mid-cta {
  text-align: center;
  margin-top: 1.75rem;
}

.mid-cta .btn {
  width: 100%;
  max-width: 360px;
}

/* Pricing — 1 col mobile */
.pricing {
  background: var(--bg-light);
  padding-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.pricing-grid-single {
  max-width: 420px;
  margin-inline: auto;
}

.price-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.price-tag {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.price-tag span {
  color: var(--primary);
  font-size: 1.75rem;
}

.price-tag small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.25rem;
}

.price-trial {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #166534;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.85rem;
}

.price-trial strong {
  color: #14532d;
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  flex: 1;
}

.price-card li {
  font-size: 0.9rem;
  padding-left: 1.35rem;
  position: relative;
  color: #334155;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.price-featured {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(22, 163, 74, 0.18);
  order: -1; /* highlight first on mobile */
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-footnote {
  max-width: 420px;
  margin: 0.85rem auto 0;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}

/* FAQ */
.faq {
  background: var(--bg-white);
}

.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--border);
}

.accordion-item h3 {
  margin: 0;
  font-size: 0.98rem;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  padding: 1rem 1.1rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.accordion-trigger:hover {
  background: rgba(22, 163, 74, 0.04);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1px;
}

.accordion-icon::before {
  width: 12px;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 12px;
  transition: opacity var(--transition);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  opacity: 0;
}

.accordion-panel {
  padding: 0 1.1rem 1.1rem;
}

.accordion-panel p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Final CTA — contraste suave com o FAQ (verde bem claro, sem bloco forte) */
.final-cta {
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  color: var(--text);
  padding: 2.75rem 0;
  text-align: center;
  border-top: 1px solid #bbf7d0;
}

.final-cta-inner {
  max-width: 640px;
}

.final-cta h2 {
  font-size: clamp(1.35rem, 5vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.final-cta p {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  font-size: 1rem;
}

.final-cta .btn {
  width: 100%;
  max-width: 360px;
}

/* Footer — 1 col mobile */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 2.5rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  max-width: 36ch;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-note {
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.1rem;
  font-size: 0.85rem;
}

/* =========================================================
   Breakpoints — progressive enhancement (min-width)
   ========================================================= */

/* Small phones+ : slightly roomier form */
@media (min-width: 420px) {
  .form-card {
    padding: 1.35rem;
  }

  .checkbox-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Tablet portrait */
@media (min-width: 640px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: min(100% - 2rem, var(--container));
  }

  .hero {
    padding: 2.75rem 0 3.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn-lg {
    width: auto;
  }

  .hero-bullets {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .pain-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 3.75rem 0;
  }

  .mid-cta .btn,
  .final-cta .btn {
    width: auto;
  }
}

/* Tablet landscape / small desktop: keep hamburger until room for nav */
@media (min-width: 768px) {
  .pricing-grid:not(.pricing-grid-single) {
    grid-template-columns: 1fr 1fr;
  }

  .price-featured {
    order: 0;
  }

  .btn-lg {
    width: auto;
  }
}

/* Desktop: horizontal nav in header — no drawer */
@media (min-width: 960px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    /* Reset drawer → inline header nav */
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
    background: transparent;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
    transition: none;
    z-index: auto;
  }

  .site-nav.is-open {
    transform: none;
  }

  .site-nav a:not(.btn) {
    display: inline;
    color: var(--text-on-dark-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0;
    border-bottom: 0;
  }

  .site-nav a:not(.btn):hover {
    color: #fff;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    width: auto;
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
  }

  body.nav-open {
    overflow: auto;
    touch-action: auto;
  }

  /*
   * Desktop: copy | form no topo; conversa em faixa própria em largura total.
   * Sempre responsivo via grid areas — sem layout fixo de um único breakpoint “mágico”.
   */
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      "copy form"
      "chat chat";
    gap: 2.5rem 2.75rem;
    align-items: start;
  }

  .hero-copy {
    grid-area: copy;
  }

  .hero-form-wrap {
    grid-area: form;
    align-self: start;
  }

  .hero-chat {
    grid-area: chat;
    padding: 2rem 1.5rem 0.25rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border-dark);
    gap: 1.35rem;
  }

  .hero-chat-intro {
    max-width: 40rem;
  }

  .hero-chat-title {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
  }

  .hero-chat-lead {
    font-size: 1.05rem;
  }

  .hero-chat .chat-mock {
    max-width: 400px;
  }

  .hero h1 {
    max-width: 16ch;
    font-size: clamp(2.1rem, 3.2vw, 3.15rem);
  }

  .hero-lead {
    font-size: 1.1rem;
    max-width: 38ch;
  }

  .form-card {
    padding: 1.5rem;
  }

  .pain-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .pricing-grid:not(.pricing-grid-single) {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-featured {
    transform: scale(1.02);
    z-index: 1;
  }

  .pricing-grid-single .price-featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-head {
    margin-bottom: 2.75rem;
  }

  .feature-card:hover {
    transform: translateY(-2px);
  }
}

@media (min-width: 1120px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }
}

/* =========================================================
   Motion & interactions (mobile-first)
   ========================================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll reveal — only when JS marked body as interactive */
body.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--reveal-delay, 0) * 70ms);
  will-change: opacity, transform;
}

body.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Chat bubbles hidden only after JS boots (avoids empty box without script) */
body.js-ready .chat-bubble:not(.is-shown) {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

body.js-ready .chat-bubble {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.js-ready .chat-bubble.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-reveal-delay="0"] { --reveal-delay: 0; }
[data-reveal-delay="1"] { --reveal-delay: 1; }
[data-reveal-delay="2"] { --reveal-delay: 2; }
[data-reveal-delay="3"] { --reveal-delay: 3; }
[data-reveal-delay="4"] { --reveal-delay: 4; }
[data-reveal-delay="5"] { --reveal-delay: 5; }

/* Hero entrance */
.anim-hero-in {
  animation: heroIn 0.7s ease both;
}

.anim-hero-delay {
  animation-delay: 0.15s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Micro-interactions: buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  transform: translateX(120%);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.4);
}

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

/* Micro-interactions: cards */
.pain-card,
.feature-card,
.price-card,
.step,
.compare-col {
  transition: border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.pain-card:hover,
.pain-card:focus-within,
.feature-card:hover,
.feature-card:focus-within,
.step:hover,
.compare-col:hover {
  transform: translateY(-3px);
  border-color: #86efac;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.feature-card:hover .feature-icon,
.feature-card:focus-within .feature-icon {
  transform: scale(1.08);
  background: rgba(22, 163, 74, 0.2);
}

.feature-icon {
  transition: transform var(--transition), background var(--transition);
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: #86efac;
}

.price-featured:hover {
  transform: translateY(-4px);
}

@media (min-width: 960px) {
  .price-featured:hover {
    transform: scale(1.02) translateY(-4px);
  }
}

.trust-chips li {
  transition: border-color var(--transition), background var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.trust-chips li:hover {
  border-color: #86efac;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Form wizard */
.form-progress {
  margin-bottom: 0.5rem;
}

.form-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.form-progress-bar {
  height: 100%;
  width: 33.333%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #4ade80);
  transition: width 0.35s ease;
}

.form-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.form-step[hidden] {
  display: none !important;
}

.form-step.is-active {
  animation: stepIn 0.35s ease both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-nav {
  margin-top: 0.35rem;
}

.form-nav-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.form-nav-split .btn {
  width: 100%;
}

/* Success bounce + soft burst */
.form-success .success-icon {
  animation: successPop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-burst {
  position: absolute;
  left: 50%;
  top: 2.5rem;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  pointer-events: none;
}

.form-success {
  position: relative;
}

.success-burst::before,
.success-burst::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: confetti 0.7s ease-out both;
}

.success-burst::after {
  background: var(--accent);
  animation-delay: 0.05s;
}

@keyframes confetti {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120%) scale(1.4);
    box-shadow:
      -28px 12px 0 #4ade80,
      28px 8px 0 #22c55e,
      -12px 28px 0 #f59e0b,
      18px 24px 0 #16a34a;
  }
}

/* WhatsApp mock chat — sempre centrado na própria seção/slot */
.chat-mock {
  margin: 0 auto;
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  background: #0e1621;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.chat-mock-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: #1f2c34;
  color: #e9edef;
}

.chat-mock-header strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.chat-mock-status {
  display: block;
  font-size: 0.72rem;
  color: #8696a0;
}

.chat-mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.chat-mock-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem;
  min-height: 220px;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 211, 102, 0.06), transparent 40%),
    #0b141a;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-in {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
  border-top-left-radius: 4px;
}

.chat-out {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-top-right-radius: 4px;
}

.chat-link {
  background: #064e3b;
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-weight: 600;
}

.chat-ok {
  background: #14532d;
  border: 1px solid rgba(34, 197, 94, 0.45);
  font-weight: 600;
}

.chat-mock.is-reduced .chat-bubble,
.chat-mock.is-done .chat-bubble {
  opacity: 1;
  transform: none;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.js-ready [data-reveal],
  body.js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .anim-hero-in {
    animation: none;
  }

  .form-step.is-active {
    animation: none;
  }

  .form-success .success-icon {
    animation: none;
  }

  .success-burst::before,
  .success-burst::after {
    animation: none;
    opacity: 0;
  }

  .btn-primary::after {
    display: none;
  }

  .pain-card:hover,
  .feature-card:hover,
  .step:hover,
  .compare-col:hover,
  .price-card:hover {
    transform: none;
  }

  body.js-ready .chat-bubble,
  body.js-ready .chat-bubble:not(.is-shown) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
