@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
  color-scheme: light;
  --primary: #003b8e;
  --primary-dark: #002559;
  --accent: #d4af37;
  --red: #b6243c;
  --bg: #fafaf7;
  --bg-soft: #f4f1e8;
  --fg: #1a1a1a;
  --muted: #555;
  --border: #e5e7eb;
  --hero-orange: #f4b860;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "DM Serif Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  background: transparent;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}
.logo img { border-radius: 8px; }
.langs { display: flex; gap: 6px; }
.langs a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.langs a.active {
  background: var(--primary);
  color: #fff;
}

.hero {
  position: relative;
  text-align: center;
  padding: 120px 24px 80px;
  margin-top: -68px;
  overflow: clip;
  overflow-clip-margin: 160px;
  isolation: isolate;
  background:
    /* Pattern de pontos azul-primary ultra-sutis */
    radial-gradient(circle at 1px 1px, rgba(0, 59, 142, 0.08) 1px, transparent 0) 0 0 / 28px 28px,
    /* Halo dourado radial no topo */
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
    /* Gradient base */
    linear-gradient(180deg, #fdfaf2 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 59, 142, 0.06) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.hero-content {
  max-width: 720px;
  margin: 0 auto;
}
.hero-content .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0 0 20px;
  padding: 7px 14px;
  background: rgba(0, 59, 142, 0.08);
  border-radius: 999px;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 20px;
  color: var(--primary-dark);
  letter-spacing: -1.5px;
  font-weight: 400;
}
.hero-content .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 560px;
  line-height: 1.55;
}
.hero .cta-row { justify-content: center; margin-bottom: 56px; }

/* Mockup iPhone */
.phone {
  position: relative;
  width: 320px;
  margin: 0 auto;
  padding: 10px 10px 12px;
  background: #0a0a0a;
  border-radius: 48px;
  box-shadow:
    0 50px 100px -30px rgba(0, 20, 60, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.45s cubic-bezier(.2,.7,.3,1), box-shadow 0.45s ease;
  transform-origin: center 55%;
}
.phone:hover {
  transform: scale(1.025) rotate(-1deg);
  box-shadow:
    0 70px 130px -28px rgba(0, 20, 60, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 4px 10px rgba(0, 0, 0, 0.18);
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 2;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 38px;
  background: #fff;
}
@media (min-width: 640px) {
  .phone { width: 360px; }
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-store:hover { transform: translateY(-1px); text-decoration: none; }
.btn-store small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.8;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.1;
}
.btn-store span { font-size: 1rem; font-weight: 600; line-height: 1.15; }
.btn-store.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}

.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
}
.card-icon {
  font-size: 2.3rem;
  margin-bottom: 14px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}
.card-primary .card-icon { background: rgba(0,59,142,0.1); }
.card-gold    .card-icon { background: rgba(212,175,55,0.15); }
.card-accent  .card-icon { background: rgba(182,36,60,0.1); }
.card h3 {
  font-family: var(--font-serif);
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--primary-dark);
  font-weight: 400;
  letter-spacing: -0.3px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.showcase {
  background: var(--bg-soft);
  padding: 72px 24px;
}
.showcase-text, .showcase-shots {
  max-width: 1120px;
  margin: 0 auto;
}
.showcase-text { text-align: center; margin-bottom: 48px; }
.showcase-text h2 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  margin: 0 0 18px;
  letter-spacing: -0.5px;
  font-weight: 400;
  line-height: 1.1;
}
.showcase-text p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 28px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 420px;
  text-align: left;
}
.checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: var(--fg);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.showcase-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.showcase-shots img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.25);
  border: 1px solid var(--border);
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px;
}
.faq h2 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  margin: 0 0 32px;
  text-align: center;
  letter-spacing: -0.5px;
  font-weight: 400;
  line-height: 1.1;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta-final {
  padding: 72px 24px;
  text-align: center;
}
.cta-final h2 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  margin: 0 0 12px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
.cta-final p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 28px;
}
.cta-final .cta-row { justify-content: center; }

.footer {
  background: var(--bg-soft);
  color: var(--muted);
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .brand {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 500;
}
.footer nav { display: flex; gap: 24px; }
.footer nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 760px) {
  .hero {
    min-height: 62vh;
    padding: 72px 20px 88px;
  }
  .features, .showcase, .cta-final { padding: 48px 20px; }
}

/* ============================================================
   Animações
   ============================================================ */

@keyframes fade-up {
  from { opacity: 0; translate: 0 16px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes float-phone {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

/* Entrada do hero (no load) */
.hero-content .eyebrow { animation: fade-up 0.55s 0.00s ease-out both; }
.hero-content h1       { animation: fade-up 0.65s 0.10s ease-out both; }
.hero-content .lead    { animation: fade-up 0.65s 0.20s ease-out both; }
.hero-content .cta-row { animation: fade-up 0.65s 0.30s ease-out both; }
.hero-content .phone   {
  animation:
    fade-up 0.8s 0.45s ease-out both,
    float-phone 6s 1.5s ease-in-out infinite;
}

/* Reveal on scroll (classe .reveal adicionada por JS) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(.2,.6,.3,1), transform 0.6s cubic-bezier(.2,.6,.3,1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeita quem desligou animações */
@media (prefers-reduced-motion: reduce) {
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content .lead,
  .hero-content .cta-row,
  .hero-content .phone {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
  }
  .phone:hover {
    transform: none !important;
  }
  .reveal, .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Widget Pix — "Me pague um café"
   ============================================================ */
.coffee-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px 10px 14px;
  background: #fff;
  color: var(--primary-dark);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.1px;
  cursor: pointer;
  box-shadow:
    0 10px 24px -8px rgba(15, 25, 60, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.coffee-fab:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow:
    0 14px 30px -8px rgba(15, 25, 60, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}
.coffee-fab:active {
  transform: translateY(0);
  box-shadow:
    0 6px 14px -6px rgba(15, 25, 60, 0.18),
    0 1px 3px rgba(0, 0, 0, 0.05);
}
.coffee-fab .fab-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.coffee-fab .fab-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Mobile: só ícone */
@media (max-width: 480px) {
  .coffee-fab {
    padding: 0;
    width: 48px;
    height: 48px;
    justify-content: center;
    gap: 0;
  }
  .coffee-fab .fab-label { display: none; }
}

.coffee-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 60, 0.55);
  backdrop-filter: blur(4px);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.coffee-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.coffee-modal {
  position: fixed;
  z-index: 80;
  left: 20px;
  bottom: 20px;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 20, 60, 0.4);
  padding: 24px;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.coffee-modal.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 480px) {
  .coffee-modal {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }
}
.coffee-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.coffee-close:hover { background: var(--bg-soft); color: var(--fg); }

.coffee-modal h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin: 0 0 6px;
  font-weight: 400;
  letter-spacing: -0.3px;
  padding-right: 32px;
}
.coffee-modal .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.coffee-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.coffee-chip {
  padding: 12px 8px;
  background: var(--bg-soft);
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.coffee-chip:hover { background: #eee9d6; }
.coffee-chip.active {
  border-color: var(--primary);
  background: rgba(0, 59, 142, 0.08);
  color: var(--primary-dark);
}

.coffee-custom {
  display: none;
  margin-bottom: 14px;
}
.coffee-custom.visible { display: block; }
.coffee-custom-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
}
.coffee-custom-wrap:focus-within { border-color: var(--primary); background: #fff; }
.coffee-custom-wrap span { color: var(--muted); font-weight: 600; }
.coffee-custom-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  color: var(--fg);
}

.coffee-qr {
  display: none;
  text-align: center;
  padding: 16px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.coffee-qr.visible { display: block; }
.coffee-qr .qr-box {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0 auto 12px;
}
.coffee-qr .qr-box img,
.coffee-qr .qr-box svg {
  display: block;
  width: 200px;
  height: 200px;
}
.coffee-qr p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.coffee-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.coffee-copy:hover { background: var(--primary-dark); }
.coffee-copy.copied { background: #1d8c4a; }

.coffee-hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
}

/* ============================================================
   Modal de Contato
   ============================================================ */
.contact-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 60, 0.55);
  backdrop-filter: blur(4px);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.contact-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 50%;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 20, 60, 0.4);
  padding: 32px 24px 24px;
  text-align: center;
  translate: -50% -50%;
  opacity: 0;
  scale: 0.96;
  pointer-events: none;
  transition: opacity 0.22s ease, scale 0.22s ease;
}
.contact-modal.open {
  opacity: 1;
  scale: 1;
  pointer-events: auto;
}
.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.contact-close:hover { background: var(--bg-soft); color: var(--fg); }

.contact-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 4px auto 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1.5px;
  box-shadow: 0 8px 20px -6px rgba(0, 59, 142, 0.35);
  overflow: hidden;
}
.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-name {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}
.contact-role {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 22px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1.5px solid transparent;
  border-radius: 14px;
  color: var(--primary-dark);
  font-family: var(--font-sans);
  text-decoration: none;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-action:hover {
  border-color: var(--primary);
  background: #fff;
  text-decoration: none;
}
.contact-action svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-action-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.contact-action-main {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-action-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

