/* ============================================
   SPERIA — Landing Page
   Sistema visual baseado no logotipo oficial
============================================ */

:root {
  --navy: #071A35;
  --navy-soft: #0D2A50;
  --blue: #36A8EE;
  --blue-dark: #1E7FC0;
  --cyan: #08C8D8;
  --magenta: #EE2779;
  --ink: #13233A;
  --muted: #617087;
  --line: #DCE5EF;
  --ice: #F3F8FC;
  --white: #FFFFFF;
  --whatsapp: #25D366;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(7, 26, 53, 0.06);
  --shadow-md: 0 12px 32px rgba(7, 26, 53, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 26, 53, 0.16);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 76px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 15px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  min-height: 48px;
  line-height: 1;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--ice); }

.btn--sm { padding: 10px 20px; font-size: .9rem; min-height: 40px; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ===== Cabeçalho ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(7, 26, 53, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img { height: 51px; width: auto; }

.header__nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.header__nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: 6px 0;
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .2s ease;
}
.header__nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
  z-index: 99;
}
.mobile-nav.is-open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn { border: none; margin-top: 12px; text-align: center; }

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 64px) 0 80px;
  background:
    radial-gradient(700px 420px at 82% 10%, rgba(54, 168, 238, .10), transparent 60%),
    radial-gradient(500px 400px at 100% 60%, rgba(238, 39, 121, .06), transparent 60%),
    var(--white);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(54, 168, 238, .10);
  border: 1px solid rgba(54, 168, 238, .25);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--navy);
}
.hero__title .highlight { color: var(--blue); }

.hero__text {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 34px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.trust-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-soft);
}
.trust-list .icon { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__blob {
  position: absolute;
  width: 420px; height: 420px;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  background: conic-gradient(from 210deg, var(--cyan), var(--blue), var(--magenta), var(--cyan));
  filter: blur(70px);
  opacity: .18;
  border-radius: 50%;
  z-index: 0;
}

.diag-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  box-shadow: var(--shadow-lg);
}
.diag-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.diag-card__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  flex-shrink: 0;
}
.diag-card__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diag-card__list li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  color: var(--navy-soft);
  font-weight: 500;
}
.diag-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 6px;
  background: rgba(54, 168, 238, .12);
  border: 1.5px solid var(--blue);
}
.diag-card__seal {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--magenta);
  background: rgba(238, 39, 121, .08);
  border: 1px solid rgba(238, 39, 121, .22);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ===== Faixa de esclarecimento ===== */
.clarify-strip {
  background: var(--navy);
  padding: 18px 0;
}
.clarify-strip p {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  font-size: .92rem;
  text-align: center;
  line-height: 1.5;
}

/* ===== Seções genéricas ===== */
.section { padding: 96px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--form { background: var(--ice); }

.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--cyan); }

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 18px;
  max-width: 22ch;
}
.section__title--light { color: var(--white); }

.section__lead {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 52px;
}
.section__lead--light { color: rgba(255,255,255,.72); }

/* ===== Cartões de diferenciais ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(54,168,238,.14), rgba(8,200,216,.10));
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-dark);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}
.card p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== Como funciona (steps) ===== */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps__item {
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.steps__num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.steps__item h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 10px;
}
.steps__item p {
  font-size: .92rem;
  color: rgba(255,255,255,.68);
  line-height: 1.6;
  margin: 0;
}

/* ===== Investimento ===== */
.pricing {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
.pricing__items {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pricing__items li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-soft);
  padding: 18px 20px;
  background: var(--ice);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.pricing__items .icon { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 1px; }

.price-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  background: conic-gradient(from 120deg, var(--cyan), var(--magenta), var(--blue));
  opacity: .16;
  filter: blur(50px);
  top: -80px; right: -80px;
  border-radius: 50%;
}
.price-card__label {
  position: relative;
  display: block;
  color: rgba(255,255,255,.68);
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.price-card__value {
  position: relative;
  display: block;
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.price-card__fees {
  position: relative;
  display: block;
  color: var(--cyan);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 10px;
}
.price-card__eligibility {
  position: relative;
  display: block;
  color: rgba(255,255,255,.62);
  font-weight: 600;
  font-size: .8rem;
  margin-bottom: 26px;
}
.price-card .btn { position: relative; margin-bottom: 18px; }
.price-card__note {
  position: relative;
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  line-height: 1.5;
  margin: 0;
}

/* ===== Formulário ===== */
.form {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}
.form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__row label,
.form__fieldset legend {
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
}
.form__row input,
.form__row select {
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  min-height: 50px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__row input:hover, .form__row select:hover { border-color: #b9c8db; }
.form__row input:focus, .form__row select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(54,168,238,.14);
  outline: none;
}
.form__row select { 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='%23617087' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }

.form__row.has-error input,
.form__row.has-error select,
.form__fieldset.has-error {
  border-color: var(--magenta);
}
.form__fieldset { border: none; padding: 0; margin: 0; }
.form__error {
  color: var(--magenta);
  font-size: .82rem;
  font-weight: 600;
  min-height: 1em;
}

.radio-group { display: flex; gap: 20px; margin-top: 4px; }
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-soft);
  cursor: pointer;
  padding: 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 48px;
}
.radio input { width: 18px; height: 18px; accent-color: var(--blue); }
.radio:has(input:checked) { border-color: var(--blue); background: rgba(54,168,238,.06); }

.form__consent {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin: 4px 0 0;
}

.form__feedback {
  display: none;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  background: rgba(54,168,238,.10);
  border: 1px solid rgba(54,168,238,.25);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.form__feedback.is-visible { display: block; }

/* ===== FAQ ===== */
.accordion__item {
  border-bottom: 1px solid var(--line);
}
.accordion__item h3 { margin: 0; }
.accordion__trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  padding: 22px 44px 22px 0;
  cursor: pointer;
  position: relative;
  min-height: 48px;
}
.accordion__trigger::after {
  content: '';
  position: absolute;
  right: 4px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336A8EE' stroke-width='2.4' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat center / contain;
  transition: transform .2s ease;
}
.accordion__trigger[aria-expanded="true"]::after { transform: translateY(-50%) rotate(180deg); }
.accordion__panel {
  padding: 0 44px 22px 0;
}
.accordion__panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: .96rem;
}

/* ===== CTA final ===== */
.cta-final {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, #14385f 100%);
  padding: 96px 0;
  text-align: center;
}
.cta-final__title {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0 auto 36px;
}

/* ===== Rodapé ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo { height: 30px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer__brand p { font-size: .88rem; line-height: 1.6; max-width: 34ch; margin: 0; }
.footer__col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer__col p { font-size: .9rem; margin: 0 0 10px; }
.footer__col a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer__col a:hover { color: var(--cyan); text-decoration: underline; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 32px;
  font-size: .8rem;
}
.footer__bottom p { margin: 0; }

/* ===== Botão flutuante WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .38);
  z-index: 90;
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.07); box-shadow: 0 10px 28px rgba(37, 211, 102, .5); }

/* ===============================
   RESPONSIVO
================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; margin: 0 auto 8px; }
  .hero__blob { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .header__nav { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .header__actions .btn--sm { display: none; }
  .hero { padding: calc(var(--header-h) + 40px) 0 56px; }
  .section { padding: 64px 0; }
  .cta-final { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section__lead { margin-bottom: 36px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .trust-list { flex-direction: column; gap: 12px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .radio-group { flex-direction: column; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .price-card { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
