/* Landing pages por produto — estruturas distintas (complementar a styles2.css) */

:root {
  --lp-radius: var(--border-radius);
  --lp-accent: var(--brand-accent);
  --lp-ink-on-dark: #e8eef8;
}

body.lp {
  background: var(--background);
}

body.lp-demo {
  /* Ajuste a intensidade aqui (0 = sem overlay / 1 = totalmente opaco) */
  --lp-demo-overlay-alpha: 0.75;
  --lp-demo-overlay-rgb: 255, 255, 255;
  --lp-demo-overlay: rgba(var(--lp-demo-overlay-rgb), var(--lp-demo-overlay-alpha));
  background:
    linear-gradient(180deg, var(--lp-demo-overlay), var(--lp-demo-overlay)),
    url("../assets/img/bg-interesse.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  body.lp-demo {
    background:
      linear-gradient(180deg, var(--lp-demo-overlay), var(--lp-demo-overlay)),
      image-set(
        url("../assets/img/bg-interesse.webp") type("image/webp"),
        url("../assets/img/bg-interesse.png") type("image/png")
      );
  }
}

html[data-theme="dark"] body.lp-demo {
  --lp-demo-overlay-rgb: 11, 18, 32;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.lp-demo {
    --lp-demo-overlay-rgb: 11, 18, 32;
  }
}

.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  border-bottom: 1px solid var(--border-color);
}

.lp-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}

.lp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
}

.lp-back:hover {
  color: var(--brand-secondary);
}

.lp-brand-mini {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.lp-brand-mini--form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lp-brand-mini--form i {
  flex-shrink: 0;
  font-size: 15px;
  color: var(--brand-primary);
}

.lp-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
}

.lp-muted {
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Cadastro demonstração (cadastro-demonstracao.html): mobile / safe-area --- */
body.lp-demo main {
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.lp-demo-section {
  padding: clamp(22px, 5vw, 54px) 0 clamp(24px, 6vw, 48px);
  max-width: 100%;
}

.lp-demo-title {
  font-size: clamp(22px, 5.2vw, 40px);
  margin: 0 0 clamp(8px, 2vw, 12px);
  letter-spacing: -0.02em;
  hyphens: auto;
  overflow-wrap: break-word;
}

.lp-demo-subtitle {
  font-size: clamp(17px, 3.6vw, 28px);
  font-weight: 700;
  margin: 0 0 clamp(10px, 2.8vw, 14px);
  line-height: 1.25;
  hyphens: auto;
  overflow-wrap: break-word;
}

.lp-demo-rule {
  border: 0;
  border-top: 2px solid var(--brand-primary);
  opacity: 0.55;
  max-width: min(320px, 92%);
  margin: 0 auto clamp(16px, 4vw, 22px);
}

.lp-demo-intro {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(18px, 4vw, 26px);
  text-align: center;
  text-wrap: balance;
}

body.lp-demo .lp-form {
  margin-inline: auto;
  width: 100%;
  max-width: 860px;
}

body.lp-demo .lp-demo-cta {
  justify-content: flex-start;
  margin-top: clamp(14px, 3vw, 18px);
}

body.lp-demo #demoStatus {
  margin-top: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1024px) {
  body.lp-demo {
    background-attachment: scroll;
  }
}

@media (max-width: 840px) {
  body.lp-demo .lp-form {
    min-width: 0;
  }

  body.lp-demo .lp-demo-cta {
    flex-direction: column;
    align-items: stretch;
  }

  body.lp-demo .lp-demo-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
}

@media (max-width: 480px) {
  body.lp-demo .lp-topbar-inner {
    min-height: 48px;
    gap: clamp(8px, 2vw, 12px);
  }

  body.lp-demo .lp-back {
    flex-shrink: 0;
    min-height: 44px;
    padding: 6px 2px;
  }

  body.lp-demo .lp-brand-mini {
    font-size: 11px;
    letter-spacing: 0.04em;
    min-width: 0;
    flex: 1 1 auto;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* iOS: evitar zoom ao focar campos com fonte < 16px */
@media (max-width: 767px) {
  body.lp-demo .lp-field input,
  body.lp-demo .lp-field select,
  body.lp-demo .lp-field textarea {
    font-size: max(16px, 1rem);
  }

  body.lp-demo #demoStatus {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
}

main .lp-icon-ball {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 1.625rem;
  background: linear-gradient(145deg, var(--brand-primary), var(--lp-accent));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 26px rgba(5, 17, 55, 0.18);
  -webkit-font-smoothing: antialiased;
}

main .lp-icon-ball > i {
  line-height: 1;
  font-size: 1em;
  opacity: 0.96;
}

.lp-section-title {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 12px;
}

/* --- Igreja: split + lista lateral tipo “programa” --- */
.lp-igreja {
  --lp-accent: #5b73c8;
}

.lp-hero-igreja {
  padding: clamp(14px, 2.8vw, 29px) 0 20px;
}

.lp-hero-igreja-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px) minmax(260px, 320px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.lp-hero-igreja-inner--media-only {
  grid-template-columns: minmax(0, 1180px);
  justify-content: center;
  align-items: center;
}

/* Alias mais genérico para reutilizar em outras landings */
.lp-hero-media-only {
  grid-template-columns: minmax(0, 1180px);
  justify-content: center;
  align-items: center;
}

.lp-hero-media {
  border-radius: var(--lp-radius);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.lp-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.lp-hero-igreja h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12;
  margin-bottom: 16px;
}

.lp-hero-igreja .lp-icon-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand-primary), var(--lp-accent));
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 20px rgba(5, 17, 55, 0.15);
  -webkit-font-smoothing: antialiased;
}

.lp-hero-igreja .lp-icon-ball > i {
  line-height: 1;
  font-size: 1em;
  opacity: 0.96;
}

.lp-program-box {
  background: var(--background-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--lp-radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.lp-program-box h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.lp-program-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.lp-program-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--background);
  border-left: 4px solid var(--lp-accent);
  font-weight: 600;
}

.lp-pillars {
  padding: 25px 0;
}

.lp-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.lp-pillar {
  padding: 22px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--border-color);
  background: #fff;
}

.lp-pillar strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-primary);
}

/* --- Agro: faixa métricas + texto em zigue-zaga --- */
.lp-agro {
  --lp-accent: #2f8f6f;
}

.lp-hero-agro {
  padding: clamp(17px, 3.15vw, 34px) 0 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 80% at 50% -20%, rgba(47, 143, 111, 0.15), transparent),
    linear-gradient(180deg, var(--background-soft), var(--background));
}

.lp-hero-agro .lp-icon-ball {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  margin: 0 auto 18px;
  font-size: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f3d2e, var(--lp-accent));
  color: #dcfce7;
}

.lp-hero-agro h1 {
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 12px;
}

.lp-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 17px auto 0;
}

.lp-stat {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.75);
}

.lp-stat b {
  display: block;
  font-size: 22px;
  color: var(--lp-accent);
  margin-bottom: 4px;
}

.lp-agro-zig {
  padding: 25px 0;
}

.lp-z {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4vw, 40px);
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

.lp-z:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.lp-z.lp-z-reverse {
  direction: rtl;
}

.lp-z-inner {
  direction: ltr;
}

.lp-z-photo {
  min-height: 180px;
  border-radius: var(--lp-radius);
  background:
    repeating-linear-gradient(135deg,
      transparent,
      transparent 10px,
      rgba(47, 143, 111, 0.06) 10px,
      rgba(47, 143, 111, 0.06) 20px),
    var(--brand-tint);
}

.lp-z-photo--img {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--background-soft);
  min-height: 220px;
}

.lp-z-photo--img img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.lp-z-photo--img.lp-z-photo--panorama {
  min-height: 0;
}

.lp-z-photo--img.lp-z-photo--panorama img {
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.lp-agro-modules {
  padding: 29px 0 34px;
  background:
    linear-gradient(180deg, var(--background) 0%, var(--background-soft) 42%, var(--background-soft) 100%);
  border-top: 1px solid var(--border-color);
}

.lp-agro-modules-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.lp-agro-module {
  padding: 22px 22px 24px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.lp-agro-module__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.lp-agro-mod-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #0f3d2e, var(--lp-accent));
}

.lp-agro-module__head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  color: var(--brand-primary);
}

.lp-agro-module__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.lp-agro-module__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.lp-agro-module__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-accent), var(--brand-secondary));
}

.lp-agro-module__list a {
  margin-left: 0.35em;
  color: var(--brand-secondary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-agro-module__list a:hover {
  color: var(--brand-primary);
}

/* --- Finance (landing alinhada ao padrão Agro: hero + CTA) --- */
.lp-finance {
  --lp-accent: #d4af37;
}

/* --- Socialys Eventos: banner no hero (padrão Agro + arte institucional) --- */
.lp-events {
  --lp-accent: #0f766e;
}

.lp-eventos-banner.lp-hero-igreja {
  padding-top: clamp(12px, 2.4vw, 22px);
  padding-bottom: clamp(14px, 3vw, 26px);
}

body.lp-events .lp-eventos-hero-frame {
  margin: 0;
  background: transparent;
}

body.lp-events .lp-eventos-hero-frame img {
  vertical-align: middle;
}

html[data-theme="dark"] body.lp-events .lp-eventos-hero-frame {
  border-color: color-mix(in srgb, var(--border-color) 82%, transparent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* --- Service: checklist em tabela + passos curtos --- */
.lp-service {
  --lp-accent: #ea580c;
}

.lp-service-hero {
  padding: clamp(17px, 2.8vw, 29px) 0;
}

.lp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0 25px;
}

.lp-chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in srgb, var(--lp-accent) 12%, var(--background));
  border: 1px solid color-mix(in srgb, var(--lp-accent) 28%, var(--border-color));
  color: #9a3412;
}

.lp-check-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 34px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.lp-check-table th,
.lp-check-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.lp-check-table th {
  background: var(--background-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.lp-check-table tr:last-child td {
  border-bottom: 0;
}

/* --- Missões: citação + faixas alternadas --- */
.lp-missions {
  --lp-accent: #0ea5e9;
}

.lp-missions-quote {
  padding: clamp(20px, 3.85vw, 38px) 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.12), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(5, 17, 55, 0.08), transparent 40%),
    var(--background-soft);
}

.lp-missions-quote blockquote {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.45;
  font-style: italic;
  color: var(--brand-primary);
  text-align: center;
}

.lp-missions-quote cite {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
}

.lp-band {
  padding: 25px 0;
}

.lp-band:nth-child(even) {
  background: var(--background-soft);
}

.lp-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.lp-band-inner h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 12px;
}

.lp-globe {
  height: 200px;
  border-radius: var(--lp-radius);
  background:
    radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.25), transparent 50%),
    linear-gradient(160deg, #0c4a6e, #082f49);
}

.lp-footer-lite {
  padding: 22px 0;
  margin-top: 13px;
  border-top: 1px solid var(--border-color);
  background: var(--background-soft);
  text-align: center;
}

.lp-footer-lite p {
  margin: 0;
  font-size: 0.9rem;
}

.lp-footer-lite p + p {
  margin-top: 6px;
}

.lp-footer-lite:empty {
  display: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.text-center {
  text-align: center;
}

.lp-form {
  max-width: 860px;
}

.lp-logo {
  opacity: 0.92;
}

.lp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lp-field {
  display: grid;
  gap: 8px;
}

.lp-field span {
  font-weight: 800;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lp-field input,
.lp-field select,
.lp-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--background);
  padding: 12px 14px;
  font: inherit;
  color: var(--text-primary);
  outline: none;
}

.lp-field input::placeholder,
.lp-field textarea::placeholder {
  color: var(--text-muted);
}

.lp-field select option {
  color: var(--text-primary);
  background: var(--background);
}

.lp-field textarea {
  resize: vertical;
  min-height: 120px;
}

.lp-field input:focus,
.lp-field select:focus,
.lp-field textarea:focus {
  border-color: color-mix(in srgb, var(--brand-accent) 50%, var(--border-color));
  box-shadow: 0 0 0 4px rgba(115, 191, 213, 0.18);
}

.lp-field--full {
  grid-column: 1 / -1;
}

@media (max-width: 840px) {
  .lp-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .lp-hero-igreja-inner {
    grid-template-columns: 1fr;
  }

  .lp-z {
    grid-template-columns: 1fr;
  }

  .lp-z.lp-z-reverse {
    direction: ltr;
  }

  .lp-band-inner {
    grid-template-columns: 1fr;
  }
}
