:root {
  --bg: #17130f;
  --bg-alt: #1e1811;
  --card: #221b13;
  --border: #33291c;
  --ink: #f5ede0;
  --muted: #b6a890;
  --accent: #f0813b;
  --accent-ink: #17130f;
  --accent-soft: #3a2415;
  --whatsapp: #1a7d46;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Figtree', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding-inline: 22px;
}

.section { padding-block: 72px; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(1.6rem, 5.5vw, 2.1rem); }
.muted { color: var(--muted); }

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Reveal on scroll. Content stays visible without JS; only html.js hides it
   ahead of the IntersectionObserver reveal, so a no-JS / no-motion visitor
   never depends on a transition firing. */
html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.is-visible {
  animation: rise .7s var(--ease) forwards;
}
html.no-motion .reveal {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero {
  padding-block: 64px 56px;
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero h1 {
  font-size: clamp(2.1rem, 8vw, 2.9rem);
  max-width: 14ch;
}
.hero .lead {
  font-size: 1.05rem;
  max-width: 46ch;
  color: var(--muted);
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
}
.checklist .tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.checklist strong { color: var(--ink); }

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  background: var(--card);
  transition: border-color .2s var(--ease), transform .15s var(--ease);
}
.pill:active { transform: scale(.97); }

/* Phone diagrams + signature NFC-read pulse */
.phone-diagram-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.phone-diagram {
  margin: 0;
  text-align: center;
  color: var(--muted);
}
.phone-diagram svg { color: var(--border); }
.phone-diagram figcaption {
  margin-top: 12px;
  font-size: .88rem;
}
.phone-diagram strong { color: var(--ink); }

.nfc-spot { transform-origin: center; transform-box: fill-box; }
.nfc-ring {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
}
.is-visible .nfc-ring {
  animation: ping 2.4s var(--ease) infinite;
}
.is-visible .nfc-ring.ring-2 { animation-delay: .8s; }
.is-visible .nfc-spot {
  animation: tap 2.4s var(--ease) infinite;
}
html.no-motion .nfc-ring,
html.no-motion .nfc-spot {
  animation: none !important;
  opacity: 1;
}
html.no-motion .nfc-ring { opacity: .35; }

@keyframes ping {
  0% { opacity: .55; transform: scale(.55); }
  70% { opacity: 0; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.35); }
}
@keyframes tap {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(.88); }
  30% { transform: scale(1); }
}

/* Steps */
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  position: relative;
}
.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-block: 14px;
  position: relative;
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 46px;
  bottom: -10px;
  width: 1px;
  background: var(--border);
}
.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.steps p { color: var(--muted); font-size: .95rem; }
.num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .92rem;
  position: relative;
  z-index: 1;
}
code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .85em;
}

/* Warning */
.warning {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--ink);
}
.warning svg { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.warning p { font-size: .94rem; }

/* Video */
.video-grid {
  margin-top: 28px;
}
.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.video-embed {
  aspect-ratio: 9/16;
  max-height: 520px;
  margin-inline: auto;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-caption {
  padding: 16px 18px;
  font-size: .88rem;
  color: var(--muted);
}

/* FAQ */
.faq {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::after { content: '\2212'; }
.faq p {
  margin-top: 10px;
  color: var(--muted);
  font-size: .94rem;
}

#duvidas { padding-bottom: calc(72px + 96px + env(safe-area-inset-bottom, 0px)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: .96rem;
  border: none;
  transition: transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-whatsapp {
  margin-top: 28px;
  width: 100%;
  background: var(--whatsapp);
  color: #fff;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  text-decoration: none;
  z-index: 50;
  transition: transform .15s var(--ease);
}
.whatsapp-fab:active { transform: scale(.94); }

img { max-width: 100%; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .nfc-ring, .nfc-spot { animation: none !important; }
  .nfc-ring { opacity: .35; }
}
