/* ==========================================================
   Loop Pay — site institucional
   ========================================================== */
:root {
  --brand: #0EA5E9;
  --brand-600: #0284C7;
  --brand-50: #F0F9FF;
  --navy: #0B1B33;
  --navy-2: #12284A;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #94A3B8;
  --line: #E5E9F0;
  --bg: #FFFFFF;
  --bg-2: #F6F7F9;
  --ok: #16A34A;
  --wa: #25D366;
  --radius: 14px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --wrap: 1200px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ─── Tipografia ─────────────────────────────── */
.h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-600); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--brand); }

/* ─── Botões ─────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 999px; transition: background .2s, color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -10px rgba(14,165,233,.7); }
.btn-primary:hover { background: var(--brand-600); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline .ti-brand-whatsapp { color: var(--wa); font-size: 18px; }
.btn-ghost-light { color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ─── Navegação ──────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo .logo-dark { display: none; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.logo-text b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-links a:not(.btn) { opacity: .85; transition: opacity .2s; }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-login { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.3); }
.nav-toggle { display: none; font-size: 26px; }
.nav.is-solid { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.nav.is-solid .logo-light { display: none; }
.nav.is-solid .logo-dark { display: block; }
.nav.is-solid .nav-login { border-color: var(--line); }

/* ─── Hero / slider ──────────────────────────── */
.hero { position: relative; height: min(92vh, 780px); min-height: 600px; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-media { position: absolute; inset: 0; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) var(--fy); transform: scale(1.08); transition: transform 9s ease-out; }
.slide.is-active .slide-media img { transform: scale(1); }
.slide-media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(8 20 40 / calc(var(--ov) + .25)) 0%, rgb(8 20 40 / var(--ov)) 38%, rgb(8 20 40 / calc(var(--ov) * .25)) 70%, rgb(8 20 40 / 0) 100%),
              linear-gradient(0deg, rgb(8 20 40 / .55) 0%, rgb(8 20 40 / 0) 30%); }
.slide-media--empty { background: radial-gradient(1200px 600px at 85% 30%, #1D4E89 0%, transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.slide-media--empty::after { display: none; }

.slide-body { position: relative; height: 100%; display: flex; align-items: center; padding-top: var(--nav-h); padding-bottom: 90px; }
.slide-copy { max-width: 620px; }
.slide-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7DD3FC; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.slide-eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.slide-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 22px; text-wrap: balance; }
.slide-title em { font-style: normal; color: #7DD3FC; }
.slide-sub { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.86); max-width: 520px; margin-bottom: 34px; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* animação do texto ao entrar */
.slide-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.slide.is-active .slide-copy > * { opacity: 1; transform: none; }
.slide.is-active .slide-copy > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .slide-copy > :nth-child(3) { transition-delay: .16s; }
.slide.is-active .slide-copy > :nth-child(4) { transition-delay: .24s; }

/* card de notificação */
.notif { position: absolute; right: 24px; bottom: 110px; width: 350px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.5); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .6s ease .9s, transform .6s ease .9s; }
.slide.is-active .notif { opacity: 1; transform: none; }
.notif-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #DCFCE7; color: var(--ok); display: grid; place-items: center; font-size: 20px; }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.notif-body strong { font-size: 14px; }
.notif-body span { font-size: 13px; color: var(--ink-2); }
.notif-time { align-self: flex-start; font-size: 11px; color: var(--ink-3); }

/* controles */
.hero-controls { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero-progress { display: flex; gap: 8px; flex: 1; max-width: 360px; }
.hero-bar { flex: 1; height: 22px; display: flex; align-items: center; }
.hero-bar span { display: block; width: 100%; height: 3px; background: rgba(255,255,255,.3); border-radius: 3px; overflow: hidden; position: relative; }
.hero-bar span::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-bar.is-done span::after { transform: scaleX(1); }
.hero-bar.is-active span::after { animation: heroFill var(--dur, 7s) linear forwards; }
.hero.is-paused .hero-bar.is-active span::after { animation-play-state: paused; }
@keyframes heroFill { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); display: grid; place-items: center; font-size: 20px; transition: background .2s, border-color .2s; }
.hero-arrow:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ─── Faixa ──────────────────────────────────── */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip-inner { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.strip p { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
.strip .ti { font-size: 22px; color: var(--brand); }

/* ─── Seções ─────────────────────────────────── */
.section { padding: 110px 0; }
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Dores */
.dores-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.dores-grid.no-image { grid-template-columns: 1fr; max-width: 820px; }
.dores-photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.dores-photo img { width: 100%; height: 100%; object-fit: cover; }
.dores-photo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(255,255,255,.94); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.pain-list { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.pain-list li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pain-n { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 15px; padding-top: 2px; }
.pain-list h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.pain-list p { color: var(--ink-2); }

/* Como funciona */
.how { background: var(--navy); color: #fff; }
.how .h2 { max-width: 520px; }
.how-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.steps { list-style: none; margin: 36px 0 40px; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--brand); }
.steps h3 { font-size: 19px; margin-bottom: 2px; }
.steps p { color: rgba(255,255,255,.72); }

.phone { width: 330px; margin: 0 auto; background: #ECE5DD; border-radius: 36px; border: 10px solid #000; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); color: var(--ink); transform: rotate(2deg); }
.phone-top { background: #075E54; color: #fff; display: flex; align-items: center; gap: 10px; padding: 26px 16px 12px; }
.phone-top strong { display: block; font-size: 15px; line-height: 1.2; }
.phone-top small { font-size: 12px; opacity: .8; }
.phone-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 700; }
.phone-chat { padding: 16px 12px 22px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; min-height: 360px; align-content: start; }
.bubble { background: #fff; border-radius: 10px 10px 10px 2px; padding: 8px 10px 6px; max-width: 86%; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.bubble code { display: block; margin-top: 6px; font-size: 11px; background: #F1F5F9; padding: 6px 8px; border-radius: 6px; word-break: break-all; }
.bubble .t { display: block; text-align: right; font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.bubble.out { justify-self: end; background: #DCF8C6; border-radius: 10px 10px 2px 10px; }
.bubble.sys { justify-self: center; background: #fff; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ok); display: flex; align-items: center; gap: 6px; padding: 6px 12px; margin-top: 6px; }

/* Recursos */
.recursos { background: var(--bg-2); }
.recursos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.recurso { background: #fff; padding: 36px 32px; }
.recurso-icon { font-size: 28px; color: var(--brand); display: block; margin-bottom: 20px; }
.recurso h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.recurso p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.recurso ul { list-style: none; display: grid; gap: 6px; }
.recurso li { font-size: 14px; font-weight: 500; display: flex; gap: 8px; }
.recurso li::before { content: '—'; color: var(--brand); }

/* Depoimentos */
.depo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.depo-card { border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.depo-card blockquote { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; }
.depo-card blockquote::before { content: '“'; display: block; font-size: 56px; line-height: .6; color: var(--brand); margin-bottom: 8px; }
.depo-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.depo-card figcaption strong { display: block; color: var(--ink); font-size: 15px; }
.depo-card figcaption img, .depo-initials { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.depo-initials { background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-weight: 700; }
.depo-stat { background: var(--brand); color: #fff; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; }
.depo-stat strong { font-family: var(--font-display); font-size: 72px; line-height: 1; letter-spacing: -0.04em; }
.depo-stat span { font-size: 17px; font-weight: 500; max-width: 240px; margin-top: 8px; }

/* Planos */
.planos { background: var(--bg-2); }
.billing { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.billing button { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.billing button.is-active { background: var(--navy); color: #fff; }
.billing small { font-size: 11px; font-weight: 700; background: #DCFCE7; color: var(--ok); padding: 2px 7px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px 32px; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--brand); box-shadow: 0 30px 60px -36px rgba(14,165,233,.55); }
.plan-badge { position: absolute; top: -13px; left: 32px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--font-display); font-size: 24px; }
.plan-desc { color: var(--ink-2); font-size: 15px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 26px 0; }
.plan-price .cur { font-weight: 600; color: var(--ink-2); }
.plan-price .val { font-family: var(--font-display); font-size: 54px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan-price .per { color: var(--ink-2); }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 32px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li::before { content: '✓'; color: var(--brand); font-weight: 800; flex: none; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-grid .lead { margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ti { font-size: 20px; color: var(--brand); transition: transform .25s; flex: none; }
.faq-list details[open] summary .ti { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-2); padding: 0 40px 24px 0; }

/* CTA */
.cta { position: relative; background: var(--navy); color: #fff; text-align: center; padding: 120px 0; overflow: hidden; isolation: isolate; }
.cta--image::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(11 27 51 / .78), rgb(11 27 51 / .86)), var(--cta-img) center / cover no-repeat; }
.cta-inner { max-width: 760px; }
.cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 18px; text-wrap: balance; }
.cta p { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 34px; }

/* Rodapé */
.footer { background: #07121F; color: rgba(255,255,255,.7); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 48px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 16px; }
.footer-brand .logo-text { color: #fff; display: block; margin-bottom: 12px; }
.footer-brand p { max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; padding-bottom: 22px; font-size: 13px; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }

/* Revelar ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ─── Responsivo ─────────────────────────────── */
@media (max-width: 1024px) {
  .recursos-grid { grid-template-columns: repeat(2, 1fr); }
  .notif { display: none; }
  .dores-grid, .how-grid, .faq-grid { gap: 48px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; color: var(--ink); padding: 8px 24px 24px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s; }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links .btn { margin-top: 16px; padding: 14px; }
  .nav-login { border-left: 0; padding-left: 0; }
  .nav.menu-open { background: #fff; color: var(--ink); }
  .nav.menu-open .logo-light { display: none; }
  .nav.menu-open .logo-dark { display: block; }

  .dores-grid, .how-grid, .faq-grid { grid-template-columns: 1fr; }
  .dores-photo { aspect-ratio: 4 / 3; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .strip-inner { flex-direction: column; gap: 12px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero { height: 100svh; min-height: 620px; max-height: 860px; }
  .slide-media::after { background: linear-gradient(0deg, rgb(8 20 40 / calc(var(--ov) + .35)) 0%, rgb(8 20 40 / var(--ov)) 45%, rgb(8 20 40 / calc(var(--ov) * .3)) 75%, rgb(8 20 40 / .35) 100%); }
  .slide-body { align-items: flex-end; padding-bottom: 110px; }
  .slide-actions .btn { flex: 1; }
  .hero-arrows { display: none; }
  .hero-progress { max-width: none; margin-right: 76px; }
  .recursos-grid { grid-template-columns: 1fr; }
  .recurso { padding: 28px 24px; }
  .phone { width: 300px; transform: none; }
  .depo-card blockquote { font-size: 19px; }
  .faq-list details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .slide-media img { transform: none !important; }
}
