:root {
  --ink: #2B1B45;
  --ink-soft: #5B4E6E;
  --muted: #9C8DAE;
  --gold: #C9982E;
  --gold-light: #F2D467;
  --purple-deep: #170B30;
  --purple-rich: #4A1F63;
  --purple-mid: #3A2265;
  --lavender: #F3EBFB;
  --paper: #FBF8F4;
  --line: #E4D9CF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Karla', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.rda-serif { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 64px;
  background: rgba(251,248,244,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #E9DECE;
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand span { font-size: 21px; font-weight: 600; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav-links-entrar { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-outline {
  border: 1.5px solid var(--purple-mid); color: var(--purple-mid);
  font-weight: 600; font-size: 14.5px; border-radius: 4px; padding: 9px 20px;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--purple-mid); border-radius: 2px; }

/* ---- Buttons ---- */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #2B1706; font-weight: 600; border-radius: 4px;
  padding: 16px 34px; font-size: 16px; border: none; cursor: pointer;
  transition: background 0.2s ease;
}
.btn-gold:hover { background: #B98A22; }
.btn-sm { padding: 11px 24px; font-size: 14.5px; }
.pulse-btn { position: relative; }
.pulse-btn::after {
  content: ""; position: absolute; inset: -6px; border-radius: 6px;
  border: 1.5px solid rgba(201,152,46,0.55);
  animation: pulse-ring 2.6s ease-out infinite;
}
@keyframes pulse-ring { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }

/* ---- Motion ---- */
.hero-stars {
  position: absolute; inset: 0; pointer-events: none; background-repeat: repeat;
}
.hero-stars-a {
  background-image:
    radial-gradient(2px 2px at 5% 15%, #fff, transparent 65%),
    radial-gradient(1.4px 1.4px at 12% 55%, rgba(255,255,255,.9), transparent 65%),
    radial-gradient(2.2px 2.2px at 20% 30%, #fff, transparent 65%),
    radial-gradient(1.4px 1.4px at 28% 70%, rgba(255,255,255,.75), transparent 65%),
    radial-gradient(1.8px 1.8px at 35% 10%, #fff, transparent 65%),
    radial-gradient(1.4px 1.4px at 42% 48%, rgba(255,255,255,.9), transparent 65%),
    radial-gradient(2.2px 2.2px at 50% 85%, #fff, transparent 65%),
    radial-gradient(1.4px 1.4px at 58% 22%, rgba(255,255,255,.75), transparent 65%),
    radial-gradient(1.8px 1.8px at 65% 62%, #fff, transparent 65%),
    radial-gradient(1.4px 1.4px at 72% 38%, rgba(255,255,255,.9), transparent 65%),
    radial-gradient(2.2px 2.2px at 80% 78%, #fff, transparent 65%),
    radial-gradient(1.4px 1.4px at 87% 18%, rgba(255,255,255,.75), transparent 65%),
    radial-gradient(1.8px 1.8px at 94% 55%, #fff, transparent 65%),
    radial-gradient(1.4px 1.4px at 98% 90%, rgba(255,255,255,.9), transparent 65%);
  background-size: 260px 260px;
  opacity: .75;
  animation: twinkle-a 4s ease-in-out infinite alternate, star-drift-a 90s linear infinite;
}
.hero-stars-b {
  background-image:
    radial-gradient(1.2px 1.2px at 9% 40%, rgba(255,221,51,1), transparent 65%),
    radial-gradient(1.6px 1.6px at 24% 78%, #fff, transparent 65%),
    radial-gradient(1.2px 1.2px at 39% 20%, rgba(255,255,255,.8), transparent 65%),
    radial-gradient(1.6px 1.6px at 54% 58%, rgba(255,221,51,1), transparent 65%),
    radial-gradient(1.2px 1.2px at 69% 88%, #fff, transparent 65%),
    radial-gradient(1.6px 1.6px at 84% 34%, rgba(255,255,255,.8), transparent 65%),
    radial-gradient(1.2px 1.2px at 96% 64%, #fff, transparent 65%),
    radial-gradient(1.6px 1.6px at 16% 8%, rgba(255,221,51,.95), transparent 65%),
    radial-gradient(1.2px 1.2px at 61% 6%, #fff, transparent 65%);
  background-size: 320px 320px;
  opacity: .6;
  animation: twinkle-b 5.5s ease-in-out infinite alternate-reverse, star-drift-b 130s linear infinite;
}
@keyframes twinkle-a { 0% { opacity: .5; } 50% { opacity: 1; } 100% { opacity: .55; } }
@keyframes twinkle-b { 0% { opacity: .35; } 50% { opacity: .8; } 100% { opacity: .4; } }
@keyframes star-drift-a { from { background-position: 0 0; } to { background-position: -260px -130px; } }
@keyframes star-drift-b { from { background-position: 0 0; } to { background-position: 320px -160px; } }
.hero-nebula {
  position: absolute; inset: -20%; pointer-events: none;
  mix-blend-mode: screen; filter: blur(50px);
  animation: nebula-drift 22s ease-in-out infinite;
}
.hero-nebula-a {
  background:
    radial-gradient(38% 46% at 22% 30%, rgba(122,90,220,.55) 0%, rgba(122,90,220,0) 70%),
    radial-gradient(32% 40% at 78% 68%, rgba(90,150,230,.4) 0%, rgba(90,150,230,0) 70%);
}
.hero-nebula-b {
  background: radial-gradient(30% 38% at 62% 18%, rgba(214,120,190,.4) 0%, rgba(214,120,190,0) 70%);
  animation-duration: 28s;
  animation-direction: reverse;
}
@keyframes nebula-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(3%,-4%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-nebula { animation: none !important; }
}
.hero-glow {
  position: absolute; width: 480px; height: 480px; top: -140px; right: -60px;
  border-radius: 50%; filter: blur(60px); opacity: 0.55;
  background: radial-gradient(circle, var(--gold-light) 0%, rgba(242,212,103,0) 70%);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: 0.45; } 50% { transform: scale(1.18); opacity: 0.65; } }
.particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, #F1DFA0 0%, rgba(241,223,160,0) 72%);
  pointer-events: none; animation: drift 14s ease-in-out infinite;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); opacity: 0.25; }
  50%  { transform: translate(14px,-38px) scale(1.3); opacity: 0.65; }
  100% { transform: translate(-6px,-4px) scale(1); opacity: 0.25; }
}
.float { animation: float-y 5.5s ease-in-out infinite; }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.rise { animation: rise-up 0.9s cubic-bezier(0.16,1,0.3,1) both; }
.rise-1 { animation-delay: 0.05s; } .rise-2 { animation-delay: 0.2s; }
.rise-3 { animation-delay: 0.35s; } .rise-4 { animation-delay: 0.5s; }
@keyframes rise-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .rise, .hero-glow, .particle, .float, .pulse-btn::after, .hero-stars-a, .hero-stars-b { animation: none !important; opacity: .4; transform: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 64px 108px;
  background:
    radial-gradient(120% 130% at 18% -10%, rgba(107,63,160,0.55) 0%, rgba(107,63,160,0) 60%),
    radial-gradient(80% 90% at 85% 90%, rgba(74,90,190,0.22) 0%, rgba(74,90,190,0) 65%),
    linear-gradient(165deg, var(--purple-deep) 0%, var(--purple-rich) 55%, var(--purple-deep) 100%);
  display: flex; align-items: center; gap: 72px; flex-wrap: wrap;
}
.hero-copy { flex: 1 1 480px; min-width: 320px; display: flex; flex-direction: column; gap: 26px; position: relative; }
.hero-copy h1 { margin: 0; font-size: 44px; line-height: 1.28; color: #F5EFFF; font-weight: 500; font-style: italic; max-width: 620px; }
.hero-copy p { margin: 0; font-size: 17.5px; line-height: 1.65; color: #D6C8ED; max-width: 480px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero-microcopy { font-size: 13px; color: #B7A6D6; }
.hero-phone { flex: 0 0 270px; display: flex; justify-content: center; position: relative; }
.phone-mock {
  position: relative; width: 270px; aspect-ratio: 720 / 1377;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.45));
}
.phone-screen-img, .phone-fallback {
  position: absolute; left: 8.3%; top: 3.7%; right: 8.1%; bottom: 3.8%;
  width: auto; height: auto; border-radius: 11% / 5.5%; overflow: hidden;
}
.phone-screen-img { object-fit: cover; z-index: 1; }
.phone-fallback {
  display: none; z-index: 1;
  background: linear-gradient(160deg,#5B3494,#2A1247);
  align-items: center; justify-content: center; text-align: center;
  color: #C9B6E8; font-size: 12px; line-height: 1.5; padding: 14px;
}
.phone-frame-img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none;
}

/* ---- Faixa de instalação ---- */
.download-band { padding: 18px 64px; background: var(--paper); border-bottom: 1px solid var(--line); }
.download-band-inner {
  max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px;
}
.download-band-inner svg { flex-shrink: 0; }
.download-band-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.download-band-copy b { font-size: 14.5px; }
.download-band-copy span { font-size: 13px; color: var(--ink-soft); }

/* ---- Identificação ---- */
.identify { padding: 96px 64px; display: flex; flex-direction: column; gap: 22px; max-width: 660px; margin: 0 auto; }
.identify h2 { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.35; }
.identify p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
.identify-lead {
  font-size: 21px; font-weight: 500; font-style: italic; color: var(--purple-mid);
  margin: 4px 0 !important;
}
.identify-list {
  display: flex; flex-direction: column; gap: 18px; margin-top: 8px;
  border-left: 2px solid var(--gold); padding-left: 24px; font-size: 15.5px;
}
.identify-close {
  margin-top: 6px !important; font-size: 19px; font-weight: 500; font-style: italic;
  color: var(--purple-rich); text-align: center;
}

/* ---- Features ---- */
.features { padding: 96px 64px; background: var(--lavender); display: flex; flex-direction: column; align-items: center; }
.features h2 { margin: 0 0 12px; font-size: 32px; text-align: center; font-weight: 500; max-width: 620px; }
.features-subtitle { margin: 0 0 48px; font-size: 15px; color: var(--ink-soft); text-align: center; max-width: 480px; }
.feature-list { width: 100%; max-width: 880px; }
.feature-row { border-top: 1px solid var(--line); padding: 28px 0; display: flex; gap: 28px; align-items: flex-start; }
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row svg { margin-top: 2px; flex-shrink: 0; }
.feature-row b { font-size: 16.5px; }
.feature-row p { font-size: 14.5px; color: var(--ink-soft); margin: 4px 0 0; max-width: 480px; }
.features-cta { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.features-cta-note { font-size: 13px; color: var(--ink-soft); }

/* ---- Grátis x Premium ---- */
.tiers { padding: 96px 64px; display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 760px; margin: 0 auto; text-align: center; }
.tiers h2 { margin: 0; font-size: 32px; font-weight: 500; }
.tiers > p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 560px; }
.tiers-cols {
  display: flex; width: 100%; max-width: 900px; flex-wrap: wrap; gap: 22px; text-align: left; margin-top: 10px;
}
.tier-col {
  flex: 1 1 300px; padding: 30px 28px; border: 1px solid var(--line); border-radius: 6px;
  display: flex; flex-direction: column; gap: 16px; background: var(--paper);
}
.tier-col-premium { background: var(--purple-rich); border-color: var(--purple-rich); color: #fff; }
.tier-label { font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 500; }
.tier-label-gold { color: var(--gold-light); }
.tier-subtitle { font-size: 13.5px; color: var(--ink-soft); margin-top: -12px; }
.tier-subtitle-premium { color: #C9B6E8; }
.tier-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tier-list li {
  font-size: 14.5px; line-height: 1.5; padding-left: 22px; position: relative; color: var(--ink-soft);
}
.tier-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 13px; font-weight: 700; }
.tier-col-premium .tier-list li { color: #EDE3F5; }
.tier-col-premium .tier-list li::before { color: var(--gold-light); }
.tier-list li .tier-note { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); opacity: .82; }
.tier-list-detailed { gap: 18px; }
.tier-list-detailed li { padding-left: 22px; }
.tier-list-detailed li b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.tier-list-detailed li p { margin: 3px 0 0; font-size: 13.5px; color: #EDE3F5; line-height: 1.5; }
.tier-limit { display: block; margin-top: 4px; font-size: 12px; color: #C9B6E8; }
.tier-limits-note { font-size: 12.5px; line-height: 1.6; color: #C9B6E8; margin: -4px 0 0; }
.tier-col > .tier-cta { margin-top: auto; }
.tier-cta {
  align-self: stretch; text-align: center; margin-top: 4px; padding: 12px 20px; font-size: 14.5px;
}
.tier-cta-wrap { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tier-cta-wrap .tier-cta { width: 100%; }
.tier-cta-note { font-size: 12px; color: #C9B6E8; }

/* ---- Pricing ---- */
.pricing { padding: 96px 64px 80px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.pricing h2 { margin: 0; font-size: 32px; text-align: center; font-weight: 500; }
.pricing-note { margin: -20px 0 0; font-size: 14.5px; color: var(--ink-soft); text-align: center; max-width: 480px; }
.pricing-highlight {
  background: var(--purple-rich); border-radius: 6px; padding: 24px 36px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center;
}
.pricing-highlight-list {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
}
.pricing-highlight-list li {
  color: #F0E8FA; font-size: 14.5px; font-weight: 600; padding-left: 20px; position: relative;
}
.pricing-highlight-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-light); }
.pricing-table {
  display: flex; width: 100%; max-width: 900px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.plan { flex: 1 1 240px; padding: 34px 30px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); background: var(--paper); }
.plan:last-child { border-right: none; }
.plan-label { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.plan-price { font-size: 28px; font-weight: 500; color: var(--purple-rich); }
.plan-price small { font-size: 13px; font-weight: 400; color: #9686AD; font-family: 'Karla', sans-serif; }
.plan-note { font-size: 12.5px; color: var(--muted); }
.plan-save { font-size: 15px; font-weight: 700; color: var(--gold); margin-top: 2px; }
.plan-save-onpurple { color: var(--gold-light); }
.plan-semestral { background: #F7F1FB; border-right-color: #DCCBE8; }
.plan-semestral .plan-label { color: var(--purple-rich); }
.plan-popular { background: var(--purple-rich); color: #FFF; }
.plan-popular .plan-price { color: #FFF; font-size: 32px; font-weight: 600; }
.plan-label-gold { color: var(--gold-light); }
.plan-note-light { color: #C9B6E8; }
.pricing-trust { font-size: 12.5px; color: var(--muted); }

/* ---- Install ---- */
.install { padding: 96px 64px; background: var(--lavender); display: flex; flex-direction: column; align-items: center; gap: 48px; }
.install h2 { margin: 0; font-size: 32px; text-align: center; font-weight: 500; }
.install-cols {
  display: flex; width: 100%; max-width: 900px; flex-wrap: wrap;
  border: 1px solid #DBC9EE; border-radius: 6px; overflow: hidden; background: #FFF;
}
.install-col { flex: 1 1 320px; padding: 34px; border-right: 1px solid #E9DEF7; }
.install-col:last-child { border-right: none; }
.install-col b { font-size: 16px; display: block; margin-bottom: 16px; }
.install-col ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ---- FAQ ---- */
.faq { padding: 112px 64px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.faq h2 { margin: 0; font-size: 32px; text-align: center; font-weight: 500; }
.faq-list { width: 100%; max-width: 680px; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  font-size: 15.5px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--muted); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

/* ---- CTA final ---- */
.cta-final {
  position: relative; overflow: hidden;
  padding: 100px 64px;
  background:
    radial-gradient(90% 100% at 80% 10%, rgba(74,90,190,0.2) 0%, rgba(74,90,190,0) 60%),
    linear-gradient(200deg, var(--purple-deep) 0%, var(--purple-rich) 50%, var(--purple-deep) 100%);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.cta-final h2 { margin: 0; font-size: 34px; color: #F5EFFF; font-weight: 500; font-style: italic; max-width: 600px; position: relative; }
.cta-final p { margin: 0; font-size: 16px; color: #D6C8ED; position: relative; }
.cta-final .btn-gold { margin-top: 10px; position: relative; }
.cta-final-note { font-size: 13px; color: #C9B6E8; position: relative; }

/* ---- Footer ---- */
.footer {
  padding: 36px 64px; background: var(--purple-deep);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand span { display: block; }
.footer-brand .rda-serif { font-size: 14.5px; font-weight: 500; color: #F7F2FF; }
.footer-tagline { font-size: 12px; color: #9E8CC2; }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: #B7A6D6; }

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .nav { padding: 16px 20px; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 260px; }
  .nav-links a { padding: 14px 20px; width: 100%; border-top: 1px solid var(--line); }
  .nav-links-entrar { display: block; font-weight: 600; color: var(--purple-mid); }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline { display: none; }
  .download-band { padding: 14px 20px; }
  .hero, .identify, .features, .pricing, .install, .faq, .cta-final { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-phone { flex-basis: 210px; }
  .phone-mock { width: 210px; }
  .plan, .install-col { border-right: none; border-bottom: 1px solid var(--line); }
  .plan:last-child, .install-col:last-child { border-bottom: none; }
}

/* ---- Modal de instalação (iOS / fallback) ---- */
.install-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.install-modal[hidden] { display: none; }
.install-modal-backdrop { position: absolute; inset: 0; background: rgba(23, 11, 48, 0.55); }
.install-modal-card {
  position: relative; z-index: 1; background: var(--paper); border-radius: 10px;
  padding: 32px 28px; max-width: 380px; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  box-shadow: 0 20px 60px rgba(23, 11, 48, 0.35);
}
.install-modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px;
}
.install-modal-card h3 { margin: 0; font-size: 21px; font-weight: 500; }
.install-modal-steps {
  margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px;
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.5;
}
