/* ============================================================
   Bíblia IA — Landing Page
   Tokens grounded in the B.AI app: royal-blue primary, navy ink,
   red B.AI accent, green success, soft blue-tinted surfaces.
   ============================================================ */

:root {
  /* Brand */
  --ink:        #0B1B3F;   /* near-navy headings */
  --ink-soft:   #3A4763;   /* body text */
  --muted:      #6B7689;   /* secondary text */
  --primary:    #1E4FD6;   /* royal blue (CTA) */
  --primary-700:#173FAE;
  --primary-900:#11286E;   /* deep navy (app nav) */
  --accent:     #E11D2A;   /* B.AI red */
  --success:    #25A55F;
  --gold:       #F5B638;

  /* Surfaces */
  --bg:         #FFFFFF;
  --soft:       #F4F7FC;   /* faint blue card bg */
  --soft-2:     #EAF1FD;   /* blue tint section */
  --line:       #E6EAF2;
  --black:      #080808;   /* reviews section */
  --black-card: #1A1A1A;

  /* Type */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Geometry */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(11,27,63,.05);
  --shadow:    0 18px 50px -18px rgba(11,27,63,.22);
  --shadow-lg: 0 40px 90px -30px rgba(11,27,63,.34);

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.16; letter-spacing: -0.02em; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  background: var(--soft-2);
  padding: 8px 14px; border-radius: 999px;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.eyebrow { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background .25s ease, color .25s ease, transform .15s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 26px -10px rgba(30,79,214,.6); }
.btn-primary:hover { background: var(--ink); box-shadow: 0 16px 30px -10px rgba(11,27,63,.5); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #fff; color: #000; box-shadow: inset 0 0 0 1.5px var(--line), 0 10px 24px -12px rgba(11,27,63,.35); }

.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }

.btn-store {
  background: var(--ink); color: #fff; padding: 12px 20px; gap: 12px; text-align: left;
}
.btn-store:hover { background: var(--primary); }
.btn-store svg { width: 24px; height: 24px; flex: 0 0 auto; }
.btn-store .s-top { display: block; font-size: 11px; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.btn-store .s-big { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(11,27,63,.06);
  padding-block: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -.02em; text-decoration: none; }
.brand .dot {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent);
  display: grid; place-items: center; color: var(--gold); font-size: 12px; font-weight: 800;
  box-shadow: 0 4px 12px -3px rgba(225,29,42,.55);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 9px 16px; border-radius: 999px; transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.lang-switch {
  display: flex; gap: 2px; padding: 3px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.65);
}
.lang-switch button {
  border: 0; background: none; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 12.5px; letter-spacing: .04em;
  color: var(--muted); padding: 6px 11px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.lang-switch button:not(.active):hover { color: var(--ink); }
.lang-switch button.active { background: var(--ink); color: #fff; }
.nav:not(.scrolled) .lang-switch { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.nav:not(.scrolled) .lang-switch button { color: rgba(255,255,255,.85); }
.nav:not(.scrolled) .lang-switch button:not(.active):hover { color: #fff; }
.nav:not(.scrolled) .lang-switch button.active { background: #fff; color: var(--ink); }
.nav .btn { padding: 11px 22px; font-size: 15px; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 2; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .25s ease, background .3s ease; }
/* burger vira "X" quando o menu está aberto */
.nav.nav-open .nav-burger span:first-child { transform: translateY(6px) rotate(45deg); }
.nav.nav-open .nav-burger span:last-child  { transform: translateY(-6px) rotate(-45deg); }

/* Light nav text while over the dark hero photo (before scroll) */
.nav:not(.scrolled) .brand { color: #fff; }
.nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,.88); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; background: rgba(255,255,255,.14); }
.nav:not(.scrolled) .nav-burger span { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/hero-bg.jpg") center 38% / cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,16,34,.55) 0%, rgba(8,16,34,.32) 38%, rgba(8,16,34,.62) 100%),
    radial-gradient(120% 90% at 50% 30%, rgba(8,16,34,.15), rgba(8,16,34,.5));
}
.hero-photo .hero-inner { z-index: 2; }
.hero-photo .tag { color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.hero-photo .tag::before { background: var(--accent); }
.hero-photo h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }

/* hero outlined (ghost) button on photo */
.btn-hero-ghost {
  background: rgba(255,255,255,.10); color: #fff; border: 1.6px solid rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
}
.btn-hero-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-inner { position: relative; z-index: 1; max-width: 920px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.04; margin: 26px 0 38px;
  text-wrap: balance;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section frame ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px,6vw,72px); text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); margin: 18px 0 0; text-wrap: balance; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: 100%; max-width: 300px;
  aspect-ratio: 1080 / 2340;
  background: #0c0c12; border-radius: 42px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
}
.phone::before {
  /* speaker pill */
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 8px; background: #0c0c12; border-radius: 999px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; cursor: zoom-in; }

/* ---------- Features grid ---------- */
.features-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}
.feature-card {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 24px 34px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #fff; }
.feature-card .phone {
  width: 100%; max-width: 210px; margin: 0 auto 28px;
  padding: 6px; border-radius: 30px;
}
/* match the thin-bezel look of the Pastores mockup at this smaller size */
.feature-card .phone::before { top: 11px; height: 5px; }
.feature-card .phone-screen { border-radius: 24px; }
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 26ch; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.reverse .split-media { order: -1; }
.split-text { max-width: 520px; }
.split-text h2 { font-size: clamp(28px, 3.8vw, 46px); margin: 20px 0 22px; text-wrap: balance; }
.split-media { display: flex; justify-content: center; }
.split-media .phone { max-width: 300px; }

/* media decorative halo */
.media-halo { position: relative; }
.media-halo::before {
  content: ""; position: absolute; inset: -8% -6%;
  background: radial-gradient(closest-side, var(--soft-2), transparent 72%);
  z-index: -1; border-radius: 50%;
}

/* version chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-weight: 700; font-size: 14px; color: var(--primary-900);
  background: #fff; border: 1.5px solid var(--line);
  padding: 9px 16px; border-radius: 999px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* Anotações: título central + celular central + cards flutuantes dos modos */
.notes-stage { position: relative; display: flex; justify-content: center; padding: 14px 0 0; max-width: 900px; margin: 0 auto; }
.notes-stage .media-halo { width: 300px; max-width: 100%; overflow: hidden; }
.notes-stage .phone { max-width: 300px; margin-bottom: -215px; }
.notes-fade {
  position: absolute; left: -16px; right: -16px; bottom: -34px; height: 260px;
  width: calc(100% + 32px);
  filter: blur(14px);
  z-index: 3; pointer-events: none; display: block;
}
.float-card {
  position: absolute; z-index: 4;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 17px 20px; border-radius: 18px;
  max-width: 300px;
  box-shadow: 0 16px 36px -14px rgba(11,27,63,.32);
  opacity: 0;
  transform: rotate(var(--rot, 0deg)) translateX(var(--slide, 0px));
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.float-card.fc-in { opacity: 1; transform: rotate(var(--rot, 0deg)); }
.fc-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.9); display: grid; place-items: center; }
.fc-icon svg { width: 22px; height: 22px; }
.fc-text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.fc-text strong { color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.fc-text span { color: var(--ink-soft); font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.fc-red   { background: #FDEAEB; top: 8%;  left: 5%;  --rot: -2.5deg; --slide: -40px; }
.fc-red svg   { color: var(--accent); }
.fc-green { background: #E7F4EC; top: 25%; right: 5%; --rot: 2.5deg; --slide: 40px; }
.fc-green svg { color: var(--success); }
.fc-amber { background: #FCF2DC; top: 52%; left: 7%;  --rot: 2deg; --slide: -40px; }
.fc-amber svg { color: #C8901A; }
.fc-blue  { background: var(--soft-2); top: 67%; right: 7%; --rot: -2deg; --slide: 40px; }
.fc-blue svg  { color: var(--primary); }
@media (prefers-reduced-motion: no-preference) {
  .float-card.fc-in { animation: fc-float 5.5s ease-in-out .9s infinite alternate; }
  .fc-green.fc-in { animation-delay: 1.35s; }
  .fc-amber.fc-in { animation-delay: 1.8s; }
  .fc-blue.fc-in  { animation-delay: 2.25s; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { opacity: 1; transform: rotate(var(--rot, 0deg)); transition: none; }
}
@keyframes fc-float {
  from { transform: rotate(var(--rot, 0deg)) translateY(0); }
  to   { transform: rotate(var(--rot, 0deg)) translateY(-8px); }
}
@media (max-width: 820px) {
  .notes-stage { flex-direction: column; align-items: center; gap: 16px; }
  .float-card { position: static; --rot: 0deg; animation: none !important; width: min(100%, 380px); max-width: 380px; }
}

/* ---------- Logo marquee ---------- */
.partners { padding: 48px 0; border-block: 1px solid var(--line); background: var(--bg); }
.partners .eyebrow { text-align: center; display: block; margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 46px; width: auto; opacity: .42; filter: grayscale(1); transition: opacity .2s ease; }
.marquee-track .pitem { display: flex; align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Social proof ---------- */
.social { background: linear-gradient(180deg, var(--soft-2), #F4F8FF); overflow: hidden; }
.social-inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; z-index: 2; }
.social h2 { font-size: clamp(32px, 5vw, 60px); margin-bottom: 14px; }
.social .lead { margin-bottom: 44px; }
.stats { display: flex; justify-content: center; gap: clamp(40px, 9vw, 110px); margin-bottom: 40px; flex-wrap: wrap; }
.stat .num { font-size: clamp(46px, 8vw, 84px); font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -.03em; }
.stat .num .star { color: var(--gold); }
.stat .lbl { color: var(--muted); font-weight: 600; margin-top: 8px; }
.social-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* scattered avatars */
.scatter { position: absolute; inset: -20px 0 0; z-index: 1; pointer-events: none; }
.scatter .av {
  position: absolute; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 8px 22px -8px rgba(11,27,63,.3); overflow: hidden;
}

/* placeholder avatar look */
.avatar {
  border-radius: 50%; display: grid; place-items: center; color: #fff; flex: 0 0 auto;
  background: var(--grad, linear-gradient(135deg, #9db4e8, #6f8fd6));
}
.avatar svg { width: 56%; height: 56%; opacity: .85; }

/* ---------- Reviews (black) ---------- */
.reviews { background: var(--black); color: #fff; }
.reviews h2 { color: #fff; font-size: clamp(30px, 4.6vw, 54px); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; }
.review-card {
  background: var(--black-card); border: 1px solid #262626; border-radius: var(--r-lg);
  padding: 26px 24px 28px;
}
.review-card .rc-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.review-card .avatar { width: 50px; height: 50px; }
.review-card .rc-name { font-weight: 800; color: #fff; font-size: 16px; }
.review-card .rc-user { color: #8A8A8A; font-size: 13px; }
.review-card .rc-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.review-card p { color: #C9C9CF; font-size: 15px; line-height: 1.55; }
/* bottom row centered 2 cards */
.reviews-grid .span-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 22px; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; font-family: var(--font);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; text-align: left; font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: var(--ink);
  transition: color .2s ease;
}
.faq-q:hover { color: var(--primary); }
.faq-icon { flex: 0 0 auto; width: 32px; height: 32px; position: relative; transition: transform .3s ease; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--primary); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq-icon::before { width: 16px; height: 2.5px; }
.faq-icon::after { width: 2.5px; height: 16px; transition: transform .3s ease; }
.faq-item.open .faq-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 4px 26px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 620px; }

/* ---------- CTA final ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(100% 120% at 50% 0%, var(--soft-2), transparent 60%),
    var(--bg);
}
.cta-card {
  max-width: 880px; margin: 0 auto; text-align: center;
}
.cta h2 { font-size: clamp(32px, 5vw, 60px); margin-bottom: 36px; text-wrap: balance; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #B9C2D8; padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) auto; gap: 40px; align-items: start; }
.footer-top.footer-simple { grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 8vw, 90px); align-items: start; }
.footer-top.footer-simple .footer-brand-col { max-width: 420px; grid-column: auto; }
@media (max-width: 640px) {
  .footer-top.footer-simple { grid-template-columns: 1fr; gap: 36px; }
  .footer-top.footer-simple .footer-brand-col { grid-column: auto; max-width: 100%; }
}
.footer .brand { color: #fff; }
.footer-blurb { margin-top: 18px; max-width: 280px; font-size: 14.5px; line-height: 1.6; color: #97A2BD; }
.footer h3, .footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #97A2BD; text-decoration: none; font-size: 14.5px; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .2s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; text-align: center;
  font-size: 13.5px; color: #7E8AA6;
}
.footer-bottom .sep { opacity: .4; }

/* ---------- QR Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(8,16,34,.62); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; z-index: 1; background: #fff; border-radius: var(--r-lg);
  padding: 40px 40px 34px; width: min(380px, 100%); text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.97); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.modal.open .modal-card { transform: none; }
.modal-card h3 { font-size: 24px; margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: var(--soft); color: var(--ink-soft);
  cursor: pointer; display: grid; place-items: center; transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-close svg { width: 18px; height: 18px; }
.qr-code {
  display: block; width: 200px; height: 200px; margin: 0 auto 20px;
  border: 0; background: none;
}
.qr-code img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-text { color: var(--muted); font-size: 15px; font-weight: 600; border: 0; background: none; }
.qr-stores { display: flex; gap: 10px; margin-top: 20px; }
.qr-store-btn { flex: 1; padding: 13px 18px; font-size: 15px; }
.qr-store-btn svg { width: 18px; height: 18px; }

/* Lightbox (zoom das telas do app) */
.lightbox {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center; padding: 28px;
  background: rgba(8,16,34,.84); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-overlay { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox-img {
  position: relative; z-index: 1;
  max-width: min(92vw, 460px); max-height: 88vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--r); box-shadow: var(--shadow-lg);
  transform: scale(.95); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff;
  cursor: pointer; display: grid; place-items: center; transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-close svg { width: 20px; height: 20px; }

/* Wide modal (Sobre) */
.modal-card-wide {
  width: min(620px, 100%); text-align: left; padding: 40px 40px 36px;
  max-height: min(86vh, 760px); overflow-y: auto;
}
.modal-card-wide h3 { margin-bottom: 8px; }
.about-body { display: flex; flex-direction: column; gap: 24px; margin-top: 22px; }
.about-block h4 { font-size: 17px; color: var(--primary); margin-bottom: 7px; letter-spacing: -.01em; }
.about-block p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.about-list { margin: 8px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.about-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.about-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Contact modal */
.contact-text { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.contact-email {
  display: block; font-size: 18px; font-weight: 800; color: var(--ink);
  text-decoration: none; margin-bottom: 24px; word-break: break-all;
  transition: color .2s ease;
}
.contact-email:hover { color: var(--primary); }
.contact-btn { width: 100%; }
.contact-btn svg { width: 19px; height: 19px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: block; }

  /* Menu mobile: os links viram um painel dropdown ancorado sob a navbar */
  .nav-links {
    position: absolute; top: 100%; right: var(--pad); left: auto;
    min-width: 210px;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin-top: 10px; padding: 10px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav.nav-open .nav-links {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
  }
  .nav-links a { padding: 12px 16px; border-radius: var(--r-sm); }
  /* texto sempre escuro no painel branco (mesmo sobre o hero, antes do scroll) */
  .nav.nav-open .nav-links a { color: var(--ink-soft); }
  .nav.nav-open .nav-links a:hover { color: var(--ink); background: var(--soft); }

  .lang-switch button { padding: 5px 9px; font-size: 12px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-media { order: 0; }
  .split-text { max-width: 100%; text-align: center; margin-inline: auto; }
  .split-text .chips { justify-content: center; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid .span-row { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card .phone { max-width: 210px; }
  .nav .btn { padding: 10px 16px; font-size: 14px; }
  .hero-btns .btn, .cta-btns .btn, .hero-btns, .cta-btns { width: 100%; }
  .reviews-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .stats { gap: 36px; }
  .notes-stage .media-halo { width: 250px; }
  .notes-stage .phone { margin-bottom: -180px; }
}

/* ---------- Versão web só em desktop ---------- */
/* Em dispositivos touch (telefone, tablet, iPad), os links de "versão web"
   (.web-only) somem — o usuário é levado a baixar o app. A classe is-touch é
   marcada no <html> por um script no <head> do index.html. */
.is-touch .web-only { display: none !important; }
