/* ============================================================
   TokClub Fidelidade — site institucional (variante "Stripe")
   Claro e arejado · navy #0a2540 + blurple #635bff · Figtree
   ============================================================ */

:root {
  --ink: #0a2540;
  --muted: #42566b;
  --faint: #6b7c93;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --primary: #635bff;
  --primary-hover: #5048e5;
  --primary-soft: #efedff;
  --on-dark-muted: #a3b8c8;

  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
section { scroll-margin-top: 88px; }

::selection { background: var(--primary-soft); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px -6px rgb(99 91 255 / 0.6);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding-inline: 6px;
}
.btn-ghost::after {
  content: '\2192';
  transition: transform 0.2s var(--ease-out);
}
.btn-ghost:hover::after { transform: translateX(4px); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark { border-radius: 9px; }
.brand-name {
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-name small {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}

.site-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.site-nav a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 28px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgb(10 37 64 / 0.3);
}
.nav-mobile a {
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a.btn { border: none; margin-top: 14px; justify-content: center; color: #fff; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef2fb 0%, var(--bg) 78%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 380px at 88% -12%, rgb(0 212 255 / 0.22), transparent 65%),
    radial-gradient(680px 420px at 60% -16%, rgb(99 91 255 / 0.18), transparent 65%),
    radial-gradient(520px 320px at 108% 22%, rgb(255 187 90 / 0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 56px;
  padding-top: 168px;
  padding-bottom: 108px;
}
.hero-tag {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
}
.hero-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  color: var(--primary);
}
.hero-sub {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: 1.1rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

/* Moldura de browser */
.browser-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow:
    0 30px 70px -28px rgb(10 37 64 / 0.35),
    0 8px 24px -14px rgb(10 37 64 / 0.2);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar em {
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--faint);
}
.browser-shot img { width: 100%; height: auto; }

/* Hero: a tela sangra para a borda direita do viewport */
.hero-shot {
  margin-right: calc((min(var(--container), 100vw - 56px) - 100vw) / 2);
}

/* ---------------- Problema ---------------- */
.pain { padding: 112px 0 104px; }
.pain-lead { max-width: 640px; }
.pain h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.pain-lead p {
  margin: 20px 0 0;
  font-size: 1.1rem;
  max-width: 56ch;
}

.pain-list {
  list-style: none;
  counter-reset: pain;
  margin: 68px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pain-list li {
  counter-increment: pain;
  position: relative;
  padding: 28px 0 28px 80px;
  border-bottom: 1px solid var(--line);
}
.pain-list li::before {
  content: counter(pain, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 31px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}
.pain-list strong {
  display: block;
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--ink);
}
.pain-list span {
  display: block;
  margin-top: 6px;
  max-width: 62ch;
  font-size: 1rem;
}

/* ---------------- Showcase ---------------- */
.showcase { padding: 96px 0 40px; background: var(--bg-soft); }
.showcase-head {
  max-width: 640px;
  margin-bottom: 24px;
}
.showcase-head h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
}
.showcase-head p { margin: 16px 0 0; font-size: 1.08rem; }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
  padding: 84px 28px;
}
.feature-row-alt { direction: rtl; }
.feature-row-alt > * { direction: ltr; }

.feature-index {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}
.feature-index::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--primary);
}
.feature-text h3 {
  margin: 14px 0 0;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.feature-text p { margin: 16px 0 0; max-width: 52ch; }
.feature-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.feature-points li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}
.feature-points li:last-child { border-bottom: 1px solid var(--line); }
.feature-points li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------------- Recursos ---------------- */
.resources {
  margin-top: 60px;
  padding: 104px 0;
  background: #fff;
}
.resources-head { max-width: 620px; margin-bottom: 60px; }
.resources-head h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 56px;
}
.res-item {
  padding: 24px 0 28px;
  border-top: 2px solid var(--ink);
}
.res-item h4 {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.res-item p {
  margin: 10px 0 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ---------------- Como funciona ---------------- */
.how { padding: 100px 0; background: var(--bg-soft); }
.how-title {
  margin: 0 0 56px;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}
.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  margin: 0;
  padding: 0;
}
.how-steps li {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
.how-steps h4 {
  margin: 20px 0 0;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.how-steps p { margin: 10px 0 0; font-size: 0.97rem; }

/* ---------------- Contato ---------------- */
.contact {
  padding: 108px 0 116px;
  background:
    radial-gradient(900px 420px at 92% -10%, rgb(99 91 255 / 0.35), transparent 65%),
    var(--ink);
  color: #fff;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 72px;
  align-items: start;
}
.contact-copy h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}
.contact-copy p {
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--on-dark-muted);
  max-width: 44ch;
}
.contact-copy .btn { margin-top: 32px; }

.contact-form {
  background: #fff;
  border-radius: 14px;
  padding: 36px 34px 30px;
  box-shadow: 0 40px 90px -32px rgb(0 0 0 / 0.55);
}
.contact-form h3 {
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.contact-form label {
  display: block;
  margin-bottom: 15px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8fa0b3; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(99 91 255 / 0.18);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form .btn-block { margin-top: 8px; }
.form-hint {
  margin: 14px 0 0;
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--faint);
}
.form-hint.ok { color: #0d9e6e; }

/* ---------------- Footer ---------------- */
.site-footer {
  padding: 52px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-left: auto;
}
.footer-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--primary); }
.footer-copy {
  flex-basis: 100%;
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--faint);
}

/* ---------------- Reveal ---------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .site-nav a, .footer-nav a, .btn-ghost::after { transition: none; }
}

/* ---------------- Responsivo ---------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 140px;
    padding-bottom: 88px;
  }
  .hero-sub { max-width: 56ch; }
  .hero-shot { margin-right: 0; }
  .feature-row,
  .feature-row-alt {
    grid-template-columns: 1fr;
    gap: 36px;
    direction: ltr;
    padding-block: 60px;
  }
  .feature-row-alt .feature-text { order: -1; }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
  .resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .nav-mobile[hidden] { display: none; }

  .hero-inner { padding-top: 122px; padding-bottom: 72px; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.7rem); }
  .pain { padding: 84px 0 76px; }
  .pain-list li { padding-left: 52px; }
  .showcase { padding-top: 72px; }
  .resources { padding: 76px 0; }
  .resources-grid { grid-template-columns: 1fr; gap: 0; }
  .how { padding: 76px 0; }
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .contact { padding: 76px 0 84px; }
  .contact-form { padding: 28px 22px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { margin-left: 0; }
}
