/* ============================================================
   EProntuário - Landing Page
   Azul e branco, claro e clean. Tokens centrais abaixo.
   ============================================================ */

/* Manrope auto-hospedada (subset latin, OFL) - sem CDN externo, CSP 'self' */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/manrope-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/manrope-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/manrope-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/manrope-latin-800.woff2") format("woff2");
}

:root {
  --blue-700: #0d4fb8;
  --blue-600: #1565e0;
  --blue-500: #2079f2;
  --blue-100: #dcebfd;
  --blue-50: #eef5fe;
  --navy-900: #0c1827;
  --navy-800: #15263c;
  --ink: #122036;
  --muted: #54657c;
  --line: #e3eaf3;
  --bg: #ffffff;
  --bg-alt: #f5f9fe;
  --ok: #1e8e5a;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 38, 73, 0.06), 0 2px 8px rgba(16, 38, 73, 0.06);
  --shadow-lg: 0 24px 60px -12px rgba(13, 42, 92, 0.25);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 14px 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 14px 0; text-wrap: pretty; }
section { scroll-margin-top: 84px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(16, 38, 73, 0.07); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.topnav { display: flex; gap: 26px; margin-left: 12px; }
.topnav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.topnav a:hover { color: var(--blue-600); text-decoration: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.link-entrar { font-weight: 700; font-size: 15px; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15.5px;
  border-radius: 10px; padding: 12px 22px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 16px -4px rgba(21, 101, 224, 0.45); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 10px 22px -6px rgba(21, 101, 224, 0.5); }
.btn-ghost { background: #fff; color: var(--blue-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-500); background: var(--blue-50); }
.btn-lg { padding: 15px 28px; font-size: 16.5px; border-radius: 12px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
/* Funil de assinatura/login desativado ate o gateway existir (go-live sem cobranca) */
.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn.is-disabled, .btn:disabled {
  box-shadow: none; transform: none; filter: grayscale(0.2);
}
.btn.is-disabled:hover, .btn:disabled:hover { transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 0 0; background: linear-gradient(180deg, var(--blue-50) 0%, #ffffff 78%); overflow: hidden; }
.hero-inner { text-align: center; max-width: 860px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; font-weight: 700; color: var(--blue-700);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); }
.hero h1 em { font-style: normal; color: var(--blue-600); }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 700px; margin: 0 auto 30px auto; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-nocard { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero-seals { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.seal {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.seal svg { flex: none; }
.hero-shot { margin: 56px auto -2px auto; max-width: 1020px; padding: 0 28px; }

/* Browser frame */
.frame { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5fb; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dfeb; }
.frame-bar .frame-url {
  margin-left: 10px; flex: 1; max-width: 360px;
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  font-size: 11.5px; color: var(--muted); padding: 3px 12px; text-align: center;
  overflow: hidden; white-space: nowrap;
}
.frame img { width: 100%; }
.frame.dark { border-color: #233348; }
.frame.dark .frame-bar { background: #16233a; border-bottom-color: #233348; }
.frame.dark .frame-bar i { background: #2c3e58; }
.frame.dark .frame-bar .frame-url { background: #0f1a2c; border-color: #2c3e58; color: #8ba0bd; }

/* ---------- Credibility band ---------- */
.cred { background: var(--navy-900); color: #c8d6ea; padding: 26px 0; }
.cred-inner { display: flex; align-items: center; justify-content: center; gap: 14px 38px; flex-wrap: wrap; text-align: center; }
.cred strong { color: #fff; font-size: 16.5px; font-weight: 800; }
.cred span { font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.cred span svg { flex: none; }

/* ---------- Features ---------- */
.features-head { text-align: center; max-width: 760px; margin: 0 auto 30px auto; padding-top: 90px; }
.eyebrow { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px; }
.features-head h2, .section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.features-head p { color: var(--muted); font-size: 18px; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature:nth-child(even) .feature-shot { order: 1; }
.feature-text h3 { font-size: clamp(24px, 2.6vw, 32px); }
.feature-text p { color: var(--muted); }
.feature-bullets { list-style: none; margin: 18px 0 0 0; padding: 0; display: grid; gap: 11px; }
.feature-bullets li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.feature-bullets li svg { flex: none; margin-top: 4px; }
.feature-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag { font-size: 12.5px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 999px; padding: 5px 12px; }
.feature-shot .frame { transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: zoom-in; }
.feature-shot .frame:hover { transform: translateY(-4px); box-shadow: 0 32px 70px -14px rgba(13, 42, 92, 0.32); }
.shot-caption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }

/* SOAP block */
.soap-block { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0 40px 0; margin-top: 40px; }
.soap-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; font-weight: 800; font-size: 21px; color: #fff;
  margin-bottom: 16px;
}
.soap-s { background: #2079f2; }
.soap-o { background: #0e9f8a; }
.soap-a { background: #e8930c; }
.soap-p { background: #7a5af8; }

/* ---------- Anywhere / themes ---------- */
.anywhere { padding: 96px 0; background: var(--navy-900); color: #fff; overflow: hidden; }
.anywhere .section-head { text-align: center; max-width: 720px; margin: 0 auto 50px auto; }
.anywhere .section-head p { color: #9db1cc; font-size: 18px; }
.anywhere .eyebrow { color: #6aa6ff; }
.anywhere-shots { display: flex; justify-content: center; align-items: flex-end; gap: 48px; }
.anywhere-shots .frame { max-width: 720px; }
.phone {
  flex: none; width: 250px; border-radius: 34px; border: 1px solid #2c3e58;
  background: #0f1a2c; padding: 10px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.phone-screen { border-radius: 26px; overflow: hidden; max-height: 520px; }
.phone-screen img { width: 100%; }

/* ---------- Security ---------- */
.security { padding: 100px 0; background: #fff; }
.security-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.sec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.sec-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.sec-card h4 { font-size: 15.5px; margin: 12px 0 6px 0; }
.sec-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.sec-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-100); display: flex; align-items: center; justify-content: center; }

/* ---------- Pricing ---------- */
.pricing { padding: 100px 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.pricing .section-head { text-align: center; max-width: 720px; margin: 0 auto 18px auto; }
.pricing .section-head p { color: var(--muted); font-size: 18px; }
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 40px 0; }
.billing-toggle .opt { font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; background: none; border: none; font-family: var(--font); padding: 4px 2px; }
.billing-toggle .opt.active { color: var(--ink); }
.switch { width: 52px; height: 28px; border-radius: 999px; background: var(--blue-600); border: none; position: relative; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.2s ease; }
.switch[aria-checked="true"]::after { transform: translateX(24px); }
.annual-badge { font-size: 12.5px; font-weight: 800; color: var(--ok); background: #e3f6ec; border-radius: 999px; padding: 4px 10px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; position: relative; overflow: visible; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.plan.featured { border: 2px solid var(--blue-600); box-shadow: 0 22px 50px -16px rgba(21, 101, 224, 0.35); }
.plan-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue-600); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; border-radius: 999px; padding: 5px 14px; white-space: nowrap; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan-for { font-size: 13.5px; color: var(--muted); min-height: 40px; margin-bottom: 10px; }
.plan-price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-cycle { font-size: 13px; color: var(--muted); margin-bottom: 20px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px 0; display: grid; gap: 10px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.plan ul li svg { flex: none; margin-top: 4px; }
.plan .btn { margin-top: auto; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; }
.faq .section-head { text-align: center; margin-bottom: 40px; }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 22px; font-weight: 700; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 600; color: var(--blue-600); transition: transform 0.2s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px 22px; color: var(--muted); font-size: 15.5px; }
.faq-more { text-align: center; margin-top: 26px; font-size: 15px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-final { background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%); color: #fff; padding: 90px 0; text-align: center; }
.cta-final h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta-final p { color: #d5e6ff; font-size: 18px; max-width: 620px; margin: 0 auto 30px auto; }
.cta-final .btn-primary { background: #fff; color: var(--blue-700); box-shadow: 0 10px 28px -8px rgba(7, 32, 74, 0.5); }
.cta-final .btn-primary:hover { background: var(--blue-50); }
.cta-final .hero-nocard { color: #bcd7ff; }

/* ---------- Footer ---------- */
footer { background: var(--navy-900); color: #93a7c4; padding: 64px 0 40px 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h5 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #93a7c4; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 300px; font-size: 13.5px; }
.footer-bottom { border-top: 1px solid #1d2c42; padding-top: 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #6c7f9c; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 20px 22px; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(8, 18, 33, 0.88);
  display: none; align-items: center; justify-content: center; padding: 36px; cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature, .security-grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .feature:nth-child(even) .feature-text { order: 1; }
  .feature:nth-child(even) .feature-shot { order: 2; }
  .anywhere-shots { flex-direction: column; align-items: center; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* no mobile o reveal é só vertical: translateX empurrava o conteúdo e criava
     scroll horizontal (documento ficava mais largo que a viewport) */
  html.js [data-anim="left"], html.js [data-anim="right"] { transform: translateY(36px); }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .hero { padding-top: 116px; }
  .sec-cards { grid-template-columns: 1fr; }
  /* topbar mais enxuta: esconde "Entrar" (desabilitado) e reduz folgas p/ caber o CTA */
  .topbar-inner { gap: 12px; }
  .topbar-actions { gap: 10px; }
  .link-entrar { display: none; }
  .brand { font-size: 17px; }
  .wrap { padding: 0 20px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .features-head h2, .section-head h2, .cta-final h2 { font-size: 26px; }
  .feature-text h3 { font-size: 22px; }
}

/* ============================================================
   EFEITOS AVANÇADOS (vanilla, CSP 'self', reduced-motion-safe)
   ============================================================ */

/* ---------- Barra de progresso de scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--blue-600), #7a5af8);
  box-shadow: 0 0 10px rgba(21, 101, 224, 0.55);
  transition: width 0.1s linear; pointer-events: none;
}

/* ---------- Hero: aurora + grid de pontos + glow ---------- */
.hero { position: relative; }
.hero-inner, .hero-shot { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: -25% -10% auto -10%; height: 135%; z-index: 0;
  pointer-events: none; filter: blur(28px);
  background:
    radial-gradient(40% 50% at 16% 20%, rgba(32, 121, 242, 0.42), transparent 68%),
    radial-gradient(38% 46% at 84% 10%, rgba(122, 90, 248, 0.36), transparent 68%),
    radial-gradient(44% 54% at 66% 56%, rgba(14, 159, 138, 0.26), transparent 70%),
    radial-gradient(36% 42% at 40% 80%, rgba(21, 101, 224, 0.22), transparent 70%);
  animation: auroraDrift 18s ease-in-out infinite;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.7;
  background-image: radial-gradient(rgba(21, 101, 224, 0.20) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
@keyframes auroraDrift {
  0%, 100% { transform: translate3d(-6%, -3%, 0) scale(1); }
  33%      { transform: translate3d(5%, 2%, 0) scale(1.1); }
  66%      { transform: translate3d(-3%, 4%, 0) scale(1.05); }
}
.hero-shot::before {
  content: ""; position: absolute; inset: -8% 4% 6% 4%; z-index: -1;
  background:
    radial-gradient(50% 50% at 38% 38%, rgba(21, 101, 224, 0.45), transparent 70%),
    radial-gradient(46% 46% at 70% 60%, rgba(122, 90, 248, 0.32), transparent 70%);
  filter: blur(54px); pointer-events: none;
}

/* Cards flutuantes ao redor do mockup */
.hero-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 13px; padding: 10px 14px;
  box-shadow: 0 20px 44px -18px rgba(13, 42, 92, 0.40);
  font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
  transition: opacity 0.6s ease;
}
.hero-float.swapping { opacity: 0; }
.hero-float .hf-ico {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.hf-ok { background: #e3f6ec; } .hf-blue { background: var(--blue-100); } .hf-purple { background: #efeaff; }
.hf-teal { background: #d8f3ee; } .hf-amber { background: #fdeccf; }
.hero-float .hf-sub { display: block; font-weight: 600; font-size: 11px; color: var(--muted); }
.hf-1 { top: 4%; left: 0; animation-delay: 0s; }
.hf-2 { top: 40%; right: 0; animation-delay: 1.4s; }
.hf-3 { bottom: 14%; left: 5%; animation-delay: 2.4s; }
@media (max-width: 860px) { .hero-float { display: none; } }
.hero-shot .frame { animation: floaty 7.5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Headline com gradiente animado */
.hero h1 em {
  background: linear-gradient(100deg, var(--blue-600), var(--blue-500) 42%, #7a5af8 82%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: hueShift 7s ease-in-out infinite;
}
@keyframes hueShift { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
/* Fallbacks: navegador antigo, alto contraste e forced-colors precisam de cor sólida visível */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em { color: var(--blue-600); -webkit-text-fill-color: var(--blue-600); background: none; }
}
@media (prefers-contrast: more) {
  .hero h1 em { color: var(--blue-700); -webkit-text-fill-color: var(--blue-700); background: none; }
}
@media (forced-colors: active) {
  .hero h1 em { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
}

/* ---------- Motor de reveal direcional + escalonado ---------- */
html.js [data-anim] {
  opacity: 0; will-change: opacity, transform;
  transition: opacity 0.7s ease, transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
html.js [data-anim="up"]    { transform: translateY(44px); }
html.js [data-anim="left"]  { transform: translateX(-54px); }
html.js [data-anim="right"] { transform: translateX(54px); }
html.js [data-anim="scale"] { transform: scale(0.88); }
html.js [data-anim].in      { opacity: 1; transform: none; will-change: auto; }

/* ---------- Tilt 3D + spotlight nos cards ---------- */
.tilt { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); transform-style: preserve-3d; }
.spotlight { position: relative; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(21, 101, 224, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease; z-index: 1;
}
.spotlight:hover::after { opacity: 1; }

/* Sheen que segue o cursor nos mockups */
.frame { position: relative; }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.20), transparent 55%);
  opacity: 0; transition: opacity 0.3s ease; mix-blend-mode: overlay;
}
.frame:hover::after { opacity: 1; }

/* ---------- Letras SOAP: pop com glow ---------- */
.soap-letter { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.soap-s { box-shadow: 0 10px 24px -8px rgba(32, 121, 242, 0.6); }
.soap-o { box-shadow: 0 10px 24px -8px rgba(14, 159, 138, 0.6); }
.soap-a { box-shadow: 0 10px 24px -8px rgba(232, 147, 12, 0.6); }
.soap-p { box-shadow: 0 10px 24px -8px rgba(122, 90, 248, 0.6); }
.soap-letter:hover { transform: translateY(-3px) scale(1.06) rotate(-3deg); }
html.js .feature-text[data-anim] .soap-letter {
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.5s ease 0.18s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s;
}
html.js .feature-text[data-anim].in .soap-letter { opacity: 1; transform: none; }

/* ---------- Seções escuras: blobs de luz ---------- */
.anywhere { position: relative; }
.anywhere::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 50% at 14% 18%, rgba(32, 121, 242, 0.20), transparent 70%),
    radial-gradient(34% 46% at 86% 82%, rgba(122, 90, 248, 0.18), transparent 70%);
}
.anywhere .wrap { position: relative; z-index: 1; }

/* ---------- Scrollspy no menu ---------- */
.topnav a { position: relative; }
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--blue-600); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.topnav a.active { color: var(--blue-600); }
.topnav a.active::after, .topnav a:hover::after { transform: scaleX(1); }

/* ---------- FAQ: abre/fecha suave via grid-template-rows (só-CSS, sem jank) ----------
   Progressive enhancement: só com JS (html.js) o item fica sempre [open] e o colapso
   passa a ser controlado pela classe .is-open + grid. Sem JS, o <details> nativo funciona. */
html.js .faq-body {
  display: grid; grid-template-rows: 0fr; padding: 0 22px;
  transition: grid-template-rows 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body > p { margin: 0; min-height: 0; overflow: hidden; padding-bottom: 20px; }
html.js .faq-body > p { opacity: 0; transition: opacity 0.28s ease; }
html.js .faq-item.is-open .faq-body > p { opacity: 1; }
/* seta + -> x: com JS segue .is-open (o item fica sempre [open]); sem JS segue [open] */
.faq-item summary::after { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
html.js .faq-item summary::after { transform: rotate(0); }
html.js .faq-item.is-open summary::after { transform: rotate(45deg); }

/* ---------- Botões: sheen no hover ---------- */
.btn { position: relative; overflow: hidden; }
.btn:not(.is-disabled):not(:disabled)::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg); transition: left 0.6s ease; pointer-events: none;
}
.btn:not(.is-disabled):not(:disabled):hover::after { left: 150%; }
.btn:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }

/* ---------- Profundidade em seções claras ---------- */
.pricing { position: relative; overflow: hidden; }
.pricing::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 35% at 85% 0%, rgba(21, 101, 224, 0.07), transparent 70%);
}
.pricing .wrap { position: relative; z-index: 1; }

/* ---------- CTA final: gradiente vivo ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500), #7a5af8);
  background-size: 220% 220%; animation: ctaShift 14s ease infinite;
}
@keyframes ctaShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ============================================================
   MAIS MOVIMENTO (camada de animação contínua)
   ============================================================ */
html, body { overflow-x: clip; } /* trava scroll horizontal dos reveals/aurora */

/* Indicador "Em produção" com pulso ao vivo */
.hero-eyebrow .dot { position: relative; }
.hero-eyebrow .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok);
  animation: ping 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 75%, 100% { transform: scale(3); opacity: 0; } }

/* Grid de pontos com deriva lenta + glow pulsante atrás do mockup */
.hero::after { animation: gridDrift 26s linear infinite; }
@keyframes gridDrift { to { background-position: 22px 22px; } }
.hero-shot::before { animation: glowPulse 5.5s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* Glint periódico varrendo o dashboard */
.hero-shot .frame::before {
  content: ""; position: absolute; top: 0; left: -65%; width: 45%; height: 100%; z-index: 3;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: glint 6.5s ease-in-out infinite; animation-delay: 1.5s;
}
@keyframes glint { 0% { left: -65%; } 22% { left: 150%; } 100% { left: 150%; } }

/* Cards flutuantes mais vivos (amplitude + leve rotação, fora de fase) */
.hf-1 { animation: floatA 5.5s ease-in-out infinite; }
.hf-2 { animation: floatB 6.6s ease-in-out infinite; }
.hf-3 { animation: floatA 7.2s ease-in-out infinite; animation-delay: 0.6s; }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-18px) rotate(1.2deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(1.2deg); } 50% { transform: translateY(-15px) rotate(-1.2deg); } }

/* Badge "Mais popular" pulsando + borda viva no plano em destaque */
.plan-pop { animation: badgePulse 2.6s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }

/* Seção "Acesso de qualquer lugar": mockups flutuam de leve como decalques
   (sombra sutil que combina com o navy; só float vertical, sem rotação) */
.anywhere-shots .frame { animation: decalA 8s ease-in-out infinite; }
.anywhere .phone { animation: decalB 9s ease-in-out infinite; animation-delay: 0.7s; }
@keyframes decalA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes decalB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Reduced motion: desliga tudo que se move ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js .feature-text[data-anim] .soap-letter { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero::before, .hero::after, .hero h1 em, .hero-shot, .hero-shot::before,
  .hero-shot .frame, .hero-shot .frame::before, .hero-eyebrow .dot::after,
  .hero-float, .hf-1, .hf-2, .hf-3, .plan-pop, .cta-final,
  .anywhere-shots .frame, .anywhere .phone { animation: none !important; }
  .scroll-progress { display: none !important; }
  .tilt, .soap-letter { transition: none !important; }
  html.js .faq-body, html.js .faq-body > p { transition: none !important; }
  .btn:not(.is-disabled):not(:disabled)::after,
  .spotlight::after, .frame::after { transition: none !important; }
}
