/* ==========================================================================
   LP Site para Corretor — CSS Dedicado (tema light)
   Prefixo: lp-
   NÃO alterar design_tokens.css nem nenhum outro CSS do app.
   ========================================================================== */

/* ---------- Reset de escopo ---------- */
.lp-page {
  --lp-bg-page: #FAFBFC;
  --lp-bg-alt: #F1F3F5;
  --lp-bg-card: #FFFFFF;
  --lp-bg-card-hover: #F8F9FA;

  --lp-text-primary: #1A1D23;
  --lp-text-secondary: #5A6070;
  --lp-text-muted: #8B92A0;
  --lp-text-on-accent: #FFFFFF;

  --lp-accent: #FF5722;
  --lp-accent-hover: #E64A19;
  --lp-accent-light: rgba(255, 87, 34, 0.08);
  --lp-accent-border: rgba(255, 87, 34, 0.2);

  --lp-border: #E2E5EA;
  --lp-border-subtle: #ECEEF2;

  --lp-shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --lp-shadow-card-hover: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --lp-shadow-elevated: 0 8px 30px rgba(0,0,0,0.08);

  --lp-font-heading: 'Montserrat', sans-serif;
  --lp-font-body: 'Open Sans', sans-serif;

  font-family: var(--lp-font-body);
  color: var(--lp-text-primary);
  background: var(--lp-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */
.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--lp-bg-card);
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 var(--lp-border-subtle);
}

.lp-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-header__logo {
  font-family: var(--lp-font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--lp-text-primary);
  text-decoration: none;
}

/* ---------- Botões ---------- */
.lp-btn-accent {
  display: inline-block;
  background: var(--lp-accent);
  color: var(--lp-text-on-accent);
  font-family: var(--lp-font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.lp-btn-accent:hover {
  background: var(--lp-accent-hover);
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.25);
}

.lp-btn-accent:focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 2px;
}

.lp-btn-accent--sm {
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 10px;
}

.lp-btn-accent--full {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
}

.lp-btn-ghost {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 1px solid var(--lp-border);
  color: var(--lp-text-primary);
  font-family: var(--lp-font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lp-btn-ghost:hover {
  border-color: var(--lp-text-muted);
  background: var(--lp-bg-card-hover);
}

.lp-btn-ghost:focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 2px;
}

/* ---------- Seções ---------- */
.lp-section {
  padding: 72px 24px;
}

.lp-section--hero {
  padding-top: 112px; /* 64px header + 48px */
  padding-bottom: 80px;
  background: var(--lp-bg-page);
}

.lp-section--alt {
  background: var(--lp-bg-alt);
}

.lp-section--page {
  background: var(--lp-bg-page);
}

.lp-section__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.lp-section__inner--narrow {
  max-width: 720px;
  margin: 0 auto;
}

.lp-section__inner--pricing {
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- Tipografia ---------- */
.lp-heading-xl {
  font-family: var(--lp-font-heading);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  color: var(--lp-text-primary);
}

.lp-heading-lg {
  font-family: var(--lp-font-heading);
  font-weight: 600;
  font-size: 32px;
  color: var(--lp-text-primary);
}

.lp-heading-md {
  font-family: var(--lp-font-heading);
  font-weight: 600;
  font-size: 28px;
  color: var(--lp-text-primary);
}

.lp-heading-sm {
  font-family: var(--lp-font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--lp-text-primary);
}

.lp-heading-xs {
  font-family: var(--lp-font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--lp-text-primary);
}

.lp-heading-xxs {
  font-family: var(--lp-font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--lp-text-primary);
}

.lp-text {
  font-family: var(--lp-font-body);
  font-size: 16px;
  color: var(--lp-text-secondary);
  line-height: 1.6;
}

.lp-text--sm {
  font-size: 14px;
}

.lp-text--xs {
  font-size: 13px;
}

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

.lp-text--center {
  text-align: center;
}

/* ---------- Pill / Badge ---------- */
.lp-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 6px;
}

.lp-pill--neutral {
  background: var(--lp-bg-alt);
  color: var(--lp-text-muted);
}

.lp-pill--accent {
  background: var(--lp-accent-light);
  color: var(--lp-accent);
}

.lp-pill--hero {
  background: var(--lp-accent-light);
  border: 1px solid var(--lp-accent-border);
  color: var(--lp-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 20px;
}

.lp-badge-popular {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--lp-accent);
  color: var(--lp-text-on-accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 0 14px 0 8px;
}

.lp-badge-founder {
  display: inline-block;
  background: var(--lp-accent-light);
  border: 1px solid var(--lp-accent-border);
  color: var(--lp-accent);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  margin-top: 8px;
}

/* ---------- Cards ---------- */
.lp-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--lp-shadow-card);
  transition: box-shadow 0.2s;
}

.lp-card:hover {
  box-shadow: var(--lp-shadow-card-hover);
}

.lp-card--pricing {
  padding: 28px;
  position: relative;
}

.lp-card--growth {
  border: 2px solid var(--lp-accent);
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.1);
}

.lp-card--growth:hover {
  box-shadow: 0 6px 24px rgba(255, 87, 34, 0.15);
}

/* ---------- Grids ---------- */
.lp-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.lp-grid-pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

/* ---------- Ícone circular ---------- */
.lp-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.lp-icon-circle--accent {
  background: var(--lp-accent-light);
}

.lp-icon-circle--blue {
  background: rgba(59, 130, 246, 0.1);
}

.lp-icon-circle--green {
  background: rgba(34, 197, 94, 0.1);
}

.lp-icon-circle svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.lp-icon-circle--accent svg { color: var(--lp-accent); }
.lp-icon-circle--blue svg { color: #3B82F6; }
.lp-icon-circle--green svg { color: #22C55E; }

/* ---------- Step ---------- */
.lp-step {
  text-align: center;
  position: relative;
}

.lp-step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lp-accent);
  color: var(--lp-text-on-accent);
  font-family: var(--lp-font-heading);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.lp-steps__connector {
  display: none;
}

/* ---------- Feature row (inline icon + text) ---------- */
.lp-feature-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--lp-shadow-card);
}

.lp-feature-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-feature-card__header svg {
  width: 20px;
  height: 20px;
  color: var(--lp-accent);
  flex-shrink: 0;
}

.lp-feature-card__desc {
  font-family: var(--lp-font-body);
  font-size: 13px;
  color: var(--lp-text-secondary);
  margin-top: 4px;
  margin-left: 32px;
}

/* ---------- CRM Hub list ---------- */
.lp-hub-list {
  max-width: 720px;
  margin: 0 auto;
}

.lp-hub-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--lp-border);
}

.lp-hub-item:first-child {
  padding-top: 0;
}

.lp-hub-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.lp-hub-item svg {
  width: 24px;
  height: 24px;
  color: var(--lp-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Preview / Mockup ---------- */
.lp-preview-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.lp-preview__text {
  text-align: center;
}

.lp-preview__mockup {
  max-width: 560px;
  width: 100%;
}

.lp-mockup {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  box-shadow: var(--lp-shadow-elevated);
  overflow: hidden;
}

.lp-mockup__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-border);
}

.lp-mockup__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lp-border);
}

.lp-mockup__url-bar {
  flex: 1;
  background: var(--lp-bg-alt);
  border-radius: 6px;
  height: 24px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.lp-mockup__url-bar span {
  font-size: 11px;
  color: var(--lp-text-muted);
  font-family: var(--lp-font-body);
}

.lp-mockup__body {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Pricing specifics ---------- */
.lp-price {
  margin-top: 12px;
}

.lp-price__original {
  font-family: var(--lp-font-body);
  font-size: 16px;
  color: var(--lp-text-muted);
  text-decoration: line-through;
}

.lp-price__value {
  font-family: var(--lp-font-heading);
  font-weight: 700;
  font-size: 36px;
  color: var(--lp-text-primary);
}

.lp-price__period {
  font-family: var(--lp-font-body);
  font-size: 15px;
  color: var(--lp-text-muted);
  margin-left: 4px;
}

.lp-pricing-separator {
  border: none;
  border-top: 1px solid var(--lp-border-subtle);
  margin: 20px 0;
}

.lp-pricing-separator--accent {
  border-top-color: var(--lp-accent-border);
}

.lp-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--lp-font-body);
  font-size: 14px;
  color: var(--lp-text-secondary);
}

.lp-pricing-features li svg {
  width: 16px;
  height: 16px;
  color: #4CAF50;
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-pricing-features li.lp-pricing-features__muted {
  color: var(--lp-text-muted);
  font-size: 13px;
  font-style: italic;
  padding-left: 24px;
}

.lp-pricing-features li.lp-pricing-features__highlight {
  color: var(--lp-accent);
  font-weight: 600;
}

.lp-pricing-note-site {
  font-family: var(--lp-font-body);
  font-size: 12px;
  color: var(--lp-text-muted);
  font-style: italic;
  margin-top: 16px;
}

.lp-pricing-callout {
  background: var(--lp-accent-light);
  border: 1px solid var(--lp-accent-border);
  border-radius: 12px;
  padding: 16px 24px;
  max-width: 600px;
  margin: 24px auto 0;
  text-align: center;
}

.lp-pricing-callout p {
  font-family: var(--lp-font-body);
  font-size: 14px;
  color: var(--lp-text-primary);
  margin: 0;
}

/* ---------- FAQ Accordion ---------- */
.lp-faq-item {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.lp-faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--lp-font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--lp-text-primary);
}

.lp-faq-item__trigger:focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: -2px;
}

.lp-faq-item__chevron {
  width: 20px;
  height: 20px;
  color: var(--lp-text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.lp-faq-item[data-open="true"] .lp-faq-item__chevron {
  transform: rotate(180deg);
}

.lp-faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.2s, opacity 0.2s;
}

.lp-faq-item[data-open="true"] .lp-faq-item__body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.lp-faq-item__body-inner {
  overflow: hidden;
}

.lp-faq-item__answer {
  padding: 0 24px 20px;
  font-family: var(--lp-font-body);
  font-size: 14px;
  color: var(--lp-text-secondary);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.lp-footer {
  background: #1A1D23;
  padding: 40px 24px;
}

.lp-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lp-footer__logo {
  font-family: var(--lp-font-heading);
  font-weight: 700;
  font-size: 20px;
  color: #FFFFFF;
}

.lp-footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lp-footer__links a {
  font-family: var(--lp-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.lp-footer__links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.lp-footer__links-separator {
  color: rgba(255, 255, 255, 0.3);
}

.lp-footer__copyright {
  font-family: var(--lp-font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- Utilitários ---------- */
.lp-max-w-600 { max-width: 600px; }
.lp-max-w-640 { max-width: 640px; }
.lp-max-w-720 { max-width: 720px; }
.lp-max-w-800 { max-width: 800px; }
.lp-max-w-900 { max-width: 900px; }
.lp-max-w-960 { max-width: 960px; }
.lp-mx-auto { margin-left: auto; margin-right: auto; }
.lp-mb-3 { margin-bottom: 12px; }
.lp-mb-4 { margin-bottom: 16px; }
.lp-mb-5 { margin-bottom: 20px; }
.lp-mb-6 { margin-bottom: 24px; }
.lp-mb-8 { margin-bottom: 32px; }
.lp-mb-10 { margin-bottom: 40px; }
.lp-mb-12 { margin-bottom: 48px; }
.lp-mt-3 { margin-top: 12px; }
.lp-mt-4 { margin-top: 16px; }
.lp-mt-6 { margin-top: 24px; }
.lp-mt-8 { margin-top: 32px; }
.lp-mt-12 { margin-top: 48px; }

/* ---------- Hero mockup ---------- */
.lp-hero-mockup {
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16/9;
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  box-shadow: var(--lp-shadow-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================================
   RESPONSIVE — Mobile first, desktop overrides
   ======================================================================== */

@media (min-width: 768px) {
  .lp-section--hero {
    padding-top: 144px; /* 64px header + 80px */
    padding-bottom: 96px;
  }

  .lp-heading-xl { font-size: 42px; }
  .lp-heading-lg { font-size: 32px; }

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

  .lp-steps__connector {
    display: block;
    position: absolute;
    top: 20px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 2px;
    border-top: 2px dashed var(--lp-border);
  }

  .lp-card--growth {
    transform: translateY(-8px);
  }

  .lp-preview-layout {
    flex-direction: row;
    gap: 48px;
  }

  .lp-preview__text {
    flex: 0 0 40%;
    text-align: left;
  }

  .lp-preview__mockup {
    flex: 0 0 60%;
  }

  .lp-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Pricing: Growth first on mobile via order, reset on desktop */
  .lp-pricing-starter { order: 1; }
  .lp-pricing-growth { order: 2; }
  .lp-pricing-equipe { order: 3; }
}

/* Mobile: reorder pricing cards */
@media (max-width: 767px) {
  .lp-heading-xl { font-size: 28px; }
  .lp-heading-lg { font-size: 24px; }
  .lp-heading-md { font-size: 24px; }

  .lp-section { padding: 48px 16px; }
  .lp-section--hero { padding-top: 96px; padding-bottom: 48px; }

  .lp-pricing-starter { order: 2; }
  .lp-pricing-growth { order: 1; }
  .lp-pricing-equipe { order: 3; }

  .lp-header__cta-full { display: none; }
  .lp-header__cta-short { display: inline-block; }
}

@media (min-width: 768px) {
  .lp-header__cta-full { display: inline-block; }
  .lp-header__cta-short { display: none; }
}
