/**
 * Landing pública: hero, grelha de recursos, CTA, rodapé
 * Requer: body.ipframe--public.home-landing
 */

body.home-landing {
  --hl-primary: #0b63e5;
  --hl-primary-dark: #0547b3;
  --hl-ink: #0f172a;
  --hl-muted: #64748b;
  --hl-surface: #ffffff;
  --hl-surface-alt: #f1f5f9;
  --hl-border: rgba(15, 23, 42, 0.08);
  --hl-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --hl-shadow-lg: 0 20px 50px rgba(11, 99, 229, 0.12);
  --hl-radius: 1rem;
  --hl-radius-lg: 1.25rem;
  --hl-max: 72rem;
  --hl-font: "Manrope", system-ui, -apple-system, sans-serif;

  font-family: var(--hl-font);
  color: var(--hl-ink);
  background: var(--hl-surface-alt) !important;
  background-image: none !important;
}

body.home-landing .shell-public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ——— Topbar ——— */
.home-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hl-border);
}

.home-topbar__inner {
  max-width: var(--hl-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.home-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--hl-ink);
  text-decoration: none;
}

.home-brand span {
  color: var(--hl-primary);
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 799px) {
  .home-topbar__ctas {
    order: 1;
  }

  .home-nav {
    order: 2;
    flex: 1 0 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--hl-border);
  }

  .home-nav__link {
    font-size: 0.85rem;
  }
}

@media (min-width: 800px) {
  .home-topbar__ctas {
    order: 0;
  }
}

.home-nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hl-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-nav__link:hover {
  color: var(--hl-primary);
}

.home-topbar__ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ——— Botões ——— */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-btn--lg {
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
}

.home-btn--primary {
  background: var(--hl-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 99, 229, 0.35);
}

.home-btn--primary:hover {
  background: var(--hl-primary-dark);
  box-shadow: 0 6px 20px rgba(11, 99, 229, 0.45);
}

.home-btn--ghost {
  background: transparent;
  color: var(--hl-ink);
  border-color: transparent;
}

.home-btn--ghost:hover {
  background: rgba(11, 99, 229, 0.08);
  color: var(--hl-primary);
}

.home-btn--outline {
  background: #fff;
  color: var(--hl-primary);
  border-color: rgba(11, 99, 229, 0.35);
}

.home-btn--outline:hover {
  border-color: var(--hl-primary);
  background: rgba(11, 99, 229, 0.06);
}

.home-btn--on-dark {
  background: #fff;
  color: var(--hl-primary);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.home-btn--on-dark:hover {
  filter: brightness(1.02);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

/* ——— Main ——— */
.home-main {
  flex: 1;
  width: 100%;
}

/* ——— Secção Hero (faixa completa) ——— */
.home-hero-section {
  --hero-pad-x: 1.25rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(90vh, 56rem);
  min-height: min(92dvh, 56rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.25rem, 5.5vw, 3.5rem) 0 clamp(2.75rem, 5vw, 4rem);
  scroll-margin-top: 4.5rem;
  background: linear-gradient(168deg, #e8f0fe 0%, #f8fafc 42%, #eef2f7 100%);
  border-bottom: 1px solid var(--hl-border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.home-hero-section::before,
.home-hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Orbe superior direito */
.home-hero-section::before {
  top: -18%;
  right: -8%;
  width: min(60vw, 32rem);
  height: min(60vw, 32rem);
  background: radial-gradient(circle, rgba(11, 99, 229, 0.22) 0%, rgba(11, 99, 229, 0) 70%);
}

/* Orbe inferior esquerdo */
.home-hero-section::after {
  bottom: -35%;
  left: -12%;
  width: min(75vw, 40rem);
  height: min(75vw, 40rem);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0) 68%);
}

.home-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--hl-max);
  margin: 0 auto;
  padding: 0 var(--hero-pad-x);
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
}

.home-hero__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hl-primary);
}

.home-hero__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--hl-ink);
}

.home-hero__title-accent {
  color: var(--hl-primary);
}

.home-hero__lead {
  margin: 1rem 0 0;
  max-width: 50ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--hl-muted);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.home-hero__bullets {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.home-hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.45;
}

.home-hero__bullet-ic {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #22c55e;
}

/* Mock cartão (hero visual) */
.home-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero__visual {
    justify-content: flex-end;
  }
}

.home-hero__mock {
  width: 100%;
  max-width: 22rem;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: var(--hl-radius-lg);
  background: var(--hl-surface);
  box-shadow: var(--hl-shadow-lg);
  border: 1px solid var(--hl-border);
}

.home-hero__mock-header {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.home-hero__mock-header span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #e2e8f0;
}

.home-hero__mock-header span:nth-child(1) {
  background: #fb7185;
}
.home-hero__mock-header span:nth-child(2) {
  background: #fbbf24;
}
.home-hero__mock-header span:nth-child(3) {
  background: #34d399;
}

.home-hero__mock-row--tall {
  padding: 1rem 1.1rem;
  border-radius: var(--hl-radius);
  background: linear-gradient(140deg, #0b63e5, #1d4ed8);
  color: #fff;
  margin-bottom: 0.85rem;
}

.home-hero__mock-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.home-hero__mock-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-hero__mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.home-hero__mock-pill {
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  background: #ecfdf5;
  color: #047857;
}

.home-hero__mock-pill--exp {
  background: #fef2f2;
  color: #b91c1c;
}

.home-hero__mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 4.5rem;
  padding-top: 0.25rem;
}

.home-hero__mock-bars span {
  flex: 1;
  min-height: 0.5rem;
  border-radius: 0.2rem 0.2rem 0 0;
  background: linear-gradient(180deg, rgba(11, 99, 229, 0.55), rgba(11, 99, 229, 0.9));
  height: var(--h);
  align-self: flex-end;
}

/* ——— Secções gerais ——— */
.home-wrap {
  max-width: var(--hl-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home-section {
  padding: 3.25rem 0;
}

.home-section--alt {
  background: var(--hl-surface);
  box-shadow: inset 0 1px 0 var(--hl-border);
}

.home-section__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--hl-ink);
}

.home-section__title--left {
  text-align: left;
}

.home-section__title--light {
  color: #fff;
}

.home-section__title-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6em;
  font-weight: 600;
  color: var(--hl-muted);
}

.home-section__title--light .home-section__title-sub {
  color: rgba(255, 255, 255, 0.85);
}

.home-section__intro {
  max-width: 45rem;
  margin: 0.9rem auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hl-muted);
}

.home-section__intro--left {
  margin-left: 0;
  text-align: left;
}

/* ——— Feature grid ——— */
.home-feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.home-feature-card {
  padding: 1.25rem 1.15rem;
  border-radius: var(--hl-radius);
  background: var(--hl-surface-alt);
  border: 1px solid var(--hl-border);
  box-shadow: var(--hl-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.home-feature-card__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(11, 99, 229, 0.1);
  color: var(--hl-primary);
  margin-bottom: 0.9rem;
}

.home-feature-card__icon .material-symbols-outlined {
  font-size: 1.4rem;
}

.home-feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--hl-ink);
}

.home-feature-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--hl-muted);
}

/* ——— Split + quote ——— */
.home-split {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding: 0 1.25rem;
}

@media (min-width: 900px) {
  .home-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    padding: 0 1.5rem;
  }
}

.home-checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #334155;
}

.home-checklist .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--hl-primary);
}

.home-quote-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--hl-radius-lg);
  background: linear-gradient(160deg, #0b63e5 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: var(--hl-shadow-lg);
}

.home-quote-card__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  font-style: italic;
  opacity: 0.95;
}

.home-quote-card__src {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* ——— Segurança ——— */
.home-section--security {
  background: #0f172a;
  color: #e2e8f0;
  margin-top: 0;
}

.home-security {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.25rem 2.5rem;
  align-items: flex-start;
}

@media (min-width: 700px) {
  .home-security {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: var(--hl-max);
    margin: 0 auto;
  }
}

.home-security__icon {
  font-size: 2.5rem;
  color: #38bdf8;
  flex-shrink: 0;
}

.home-security__text {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 60ch;
}

/* ——— CTA band ——— */
.home-cta-band {
  background: linear-gradient(110deg, #0b63e5 0%, #4f46e5 55%, #6366f1 100%);
  padding: 2.75rem 1.25rem;
}

.home-cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 40rem;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .home-cta-band__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    max-width: var(--hl-max);
    padding: 0 1.5rem;
  }
}

.home-cta-band__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ——— Footer ——— */
.home-footer {
  border-top: 1px solid var(--hl-border);
  background: var(--hl-surface);
  padding: 1.5rem 1.25rem 2rem;
}

.home-footer__inner {
  max-width: var(--hl-max);
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 600px) {
  .home-footer__inner {
    text-align: left;
  }
}

.home-footer__brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--hl-ink);
}

.home-footer__brand span {
  color: var(--hl-primary);
}

.home-footer__note {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--hl-muted);
}

/* foco acessível */
body.home-landing a:focus-visible,
body.home-landing .home-btn:focus-visible {
  outline: 2px solid var(--hl-primary);
  outline-offset: 2px;
}

body.home-landing .home-btn--on-dark:focus-visible {
  outline-color: #fff;
}
