/* ============================================================
   Planos Corretora — Landing Pages
   Complementa styles.css (tokens, header, footer, botões, FAQ)
   ============================================================ */

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-block: 0.7rem;
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--blue-600); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------- Hero da landing ---------- */
.lp-hero {
  background: linear-gradient(105deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.lp-hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.lp-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}
.lp-hero h1 span { color: var(--cyan-500); }
.lp-hero__lead {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
}
.lp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.lp-hero__proof {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}
.lp-hero__proof .icon { color: var(--cyan-500); width: 1.5em; height: 1.5em; }
.lp-hero__media img {
  width: min(440px, 100%);
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- Blocos de conteúdo ---------- */
.lp-section__intro {
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.lp-context { background: var(--surface); }
.lp-context__grid {
  display: grid;
  gap: 1.25rem;
}
.lp-context-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan-500);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
}
.lp-context-card h3 { font-size: 1rem; color: var(--navy-900); margin-bottom: 0.35rem; }
.lp-context-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Benefícios */
.lp-benefits__grid {
  display: grid;
  gap: 1.25rem;
}
.lp-benefit {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: transform var(--motion-fast) var(--ease-premium), box-shadow var(--motion-fast) var(--ease-premium);
}
.lp-benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.lp-benefit .icon { width: 2em; height: 2em; color: var(--blue-600); flex: none; margin-top: 0.15rem; }
.lp-benefit h3 { font-size: 1rem; color: var(--navy-900); }
.lp-benefit p { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.3rem; }

/* Coberturas */
.lp-coverage { background: var(--surface); }
.lp-coverage__list {
  display: grid;
  gap: 0.9rem;
  max-width: 720px;
  margin-inline: auto;
}
.lp-coverage__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
}
.lp-coverage__list .icon { color: var(--success); width: 1.4em; height: 1.4em; flex: none; margin-top: 0.15rem; }
.lp-disclaimer {
  max-width: 720px;
  margin: 1.5rem auto 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--cyan-100);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.lp-disclaimer .icon { color: var(--blue-600); flex: none; margin-top: 0.15rem; }

/* Como funciona */
.lp-steps {
  background: linear-gradient(100deg, var(--navy-950) 0%, var(--navy-900) 70%, var(--navy-700) 100%);
  color: var(--white);
}
.lp-steps .section__title { color: var(--white); }
.lp-steps__list {
  display: grid;
  gap: 1.75rem;
  counter-reset: lp-step;
  max-width: 900px;
  margin-inline: auto;
}
.lp-steps__list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.lp-steps__num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--cyan-500);
  border: 1.5px solid rgba(37, 196, 231, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.lp-steps__list h3 { font-size: 1.05rem; }
.lp-steps__list p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); margin-top: 0.25rem; max-width: 56ch; }

/* Por que a Planos */
.lp-why__grid { display: grid; gap: 1.25rem; }
.lp-why__grid .lp-benefit { background: var(--surface); border-color: transparent; }

/* Soluções relacionadas */
.lp-related { background: var(--surface); }
.lp-related__grid { display: grid; gap: 1rem; }
.lp-related__grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-900);
  min-height: 56px;
  transition: transform var(--motion-fast) var(--ease-premium),
              box-shadow var(--motion-fast) var(--ease-premium),
              border-color 320ms ease;
}
.lp-related__grid a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(37, 196, 231, 0.45);
  color: var(--blue-600);
}
.lp-related__grid .icon { color: var(--blue-600); flex: none; }

/* FAQ claro (variação da FAQ escura da home) */
.lp-faq .faq {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  max-width: 800px;
  margin-inline: auto;
}
.lp-faq .faq h2 { color: var(--navy-900); }
.lp-faq .faq__item { border-color: var(--border); }
.lp-faq .faq__question { color: var(--navy-900); }
.lp-faq .faq__question:hover { color: var(--blue-600); }
.lp-faq .faq__panel p { color: var(--text-muted); }

/* ---------- Formulário ---------- */
.lp-form { background: var(--surface); }
.lp-form__inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.lp-form__aside .eyebrow { color: var(--blue-600); }
.lp-form__aside h2 { color: var(--navy-900); }
.lp-form__aside > p { margin-top: 1rem; color: var(--text-muted); max-width: 46ch; }

.lp-form__media {
  position: relative;
  margin-top: 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.lp-form__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.lp-form__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(6, 43, 92, 0) 45%, rgba(3, 29, 64, 0.55) 100%);
}
.lp-form__media-badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy-900);
}
.lp-form__media-badge .icon { width: 1.1em; height: 1.1em; color: var(--blue-600); }

.lp-form__whatsapp {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(155deg, var(--cyan-100) 0%, var(--white) 65%);
  border: 1px solid rgba(37, 196, 231, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.lp-form__whatsapp-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(37, 196, 231, 0.4);
  border-radius: 50%;
  color: var(--blue-600);
  box-shadow: var(--shadow-soft);
}
.lp-form__whatsapp-icon .icon { width: 1.35em; height: 1.35em; }
.lp-form__whatsapp-icon .fa-whatsapp { font-size: 1.35em; line-height: 1; }
.lp-form__whatsapp h3 { font-size: 1rem; color: var(--navy-900); }
.lp-form__whatsapp p { font-size: 0.85rem; color: var(--text-muted); margin-block: 0.3rem 0.9rem; }
.lp-form__whatsapp .btn { width: 100%; }

.lead-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-hover);
}
.lead-form fieldset { border: 0; padding: 0; display: grid; gap: 1.35rem; }
.lead-form legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-900);
  padding-bottom: 1.1rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.lead-form legend::before {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan-500);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/><path d='m9 12 2 2 4-4'/></svg>") center / 60% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/><path d='m9 12 2 2 4-4'/></svg>") center / 60% no-repeat;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--navy-900);
}
.form-field input,
.form-field select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  min-height: 50px;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}
.form-field input::placeholder { color: #9aa8b5; }
.form-field input:hover,
.form-field select:hover { border-color: #c3d0d8; }
.form-field input:focus,
.form-field select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(7, 154, 203, 0.14);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526273' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1em;
  padding-right: 2.6rem;
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] { border-color: #c0392b; background: #fdf3f2; }
.form-field__error {
  font-size: 0.8rem;
  color: #c0392b;
}
.form-field--row { display: grid; grid-template-columns: 1fr 110px; gap: 1.1rem; }

.form-consent {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  cursor: pointer;
}
.form-consent span { flex: 1; min-width: 0; }
.form-consent .form-field__error {
  flex-basis: 100%;
  margin-left: calc(22px + 0.75rem);
}
.form-consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  min-width: 0;
  padding: 0;
  margin: 0.1rem 0 0;
  flex: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.form-consent input::before {
  content: "";
  width: 11px;
  height: 11px;
  transform: scale(0);
  transition: transform 160ms var(--ease-premium);
  box-shadow: inset 1em 1em var(--white);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
}
.form-consent input:checked {
  border-color: var(--blue-600);
  background: var(--blue-600);
}
.form-consent input:checked::before { transform: scale(1); }
.form-consent input:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.form-consent strong { color: var(--navy-900); }

.lead-form .btn {
  width: 100%;
  margin-top: 0.25rem;
  gap: 0.75rem;
}
.lead-form .btn::after {
  content: "";
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
  transition: transform 220ms var(--ease-premium);
}
.lead-form .btn:hover::after { transform: translateX(4px); }

.form-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.1rem;
  text-align: center;
}
.form-privacy-note::before {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  background: var(--text-muted);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='11' width='16' height='9' rx='2'/><path d='M8 11V7a4 4 0 0 1 8 0v4'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='11' width='16' height='9' rx='2'/><path d='M8 11V7a4 4 0 0 1 8 0v4'/></svg>") center / contain no-repeat;
}

.form-feedback {
  border: 1px solid var(--success);
  background: #eef8f4;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.4rem;
  text-align: center;
}
.form-feedback:focus { outline: none; }
.form-feedback__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--success);
  font-size: 1.15rem;
}
.form-feedback__text { font-size: 0.9rem; color: var(--text); margin-block: 0.5rem 1.1rem; max-width: 42ch; margin-inline: auto; }

/* ---------- CTA final da landing ---------- */
.lp-final {
  background: linear-gradient(100deg, var(--navy-950), var(--navy-700));
  color: var(--white);
  text-align: center;
}
.lp-final p { margin-top: 1rem; color: rgba(255, 255, 255, 0.82); max-width: 52ch; margin-inline: auto; }
.lp-final .btn { margin-top: 2rem; }
.lp-final__note { font-size: 0.82rem; margin-top: 1rem; color: rgba(255, 255, 255, 0.65); }

/* Selo de revisão institucional (E-E-A-T) */
.lp-reviewed {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .lp-context__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-why__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .lp-hero__inner { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; }
  .lp-benefits__grid { grid-template-columns: repeat(3, 1fr); }
  .lp-why__grid { grid-template-columns: repeat(3, 1fr); }
  .lp-related__grid { grid-template-columns: repeat(3, 1fr); }
  .lp-form__inner { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
  .lp-form__aside { position: sticky; top: 96px; align-self: start; }
}

/* ---------- Página de artigo / notícia ---------- */
.article-page {
  background: var(--white);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}
.article-page__inner {
  max-width: 46rem;
}
.article-page__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.article-page__header h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  color: var(--navy-900);
  line-height: 1.2;
}
.article-page__lead {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42ch;
}
.article-page__media {
  margin: 1.75rem 0 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-page__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-page__body {
  display: grid;
  gap: 1.15rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.article-page__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}
.article-page__back {
  margin-top: 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
}
.article-page__back a { color: var(--blue-600); }
.article-page__back a:hover { text-decoration: underline; }

/* ---------- Touch ---------- */
@media (hover: none) {
  .lp-benefit:hover,
  .lp-related__grid a:hover { transform: none; box-shadow: none; }
}
