/* Paleta e tipografia espelham meindz_design_system/lib/src/app_theme.dart */
:root {
  --primary: #8069C9;
  --primary-light: #9B8DD4;
  --secondary: #E17676;
  --tertiary: #60CFEE;
  --success: #249689;
  --warning: #F9CF58;
  --bg: #F0F0FC;
  --bg-alt: #E6E3FA;
  --surface: #FFFFFF;
  --text: #14181B;
  --text-2: #57636C;
  --border: rgba(128, 105, 201, 0.15);
  --shadow: 0 4px 20px rgba(148, 122, 231, 0.2);
  --shadow-lg: 0 16px 48px rgba(148, 122, 231, 0.28);
  --grad: linear-gradient(90deg, #8069C9 0%, #B36ACB 55%, #E57AA0 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #845CFF;
    --primary-light: #A58BFF;
    --secondary: #FF5E5C;
    --tertiary: #06CEFE;
    --bg: #19161F;
    --bg-alt: #1F1B28;
    --surface: #24202E;
    --text: #FFFFFF;
    --text-2: #95A1AC;
    --border: rgba(132, 92, 255, 0.22);
    --shadow: 0 4px 20px rgba(17, 14, 23, 0.6);
    --shadow-lg: 0 16px 48px rgba(17, 14, 23, 0.8);
    --grad: linear-gradient(90deg, #A58BFF 0%, #C77BE0 55%, #FF7EA8 100%);
  }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--font);
  padding: 14px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.btn-light { background: #fff; color: #8069C9; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-play { background: #14181B; color: #fff; padding: 10px 20px; text-align: left; }
.btn-play span { display: flex; flex-direction: column; font-size: 18px; line-height: 1.1; }
.btn-play small { font-size: 11px; font-weight: 500; opacity: .8; }
@media (prefers-color-scheme: dark) { .btn-play { background: #fff; color: #14181B; } }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
p { color: var(--text-2); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; margin: 20px 0 32px; max-width: 520px; }

/* ── Hero ── */
.hero { padding: 48px 0 64px; position: relative; overflow-x: clip; }
.hero::before {
  content: ''; position: absolute; inset: -200px -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 18%, transparent), transparent 65%);
  z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; margin-top: 16px; }
.hero-art { position: relative; animation: fadeUp .8s cubic-bezier(.16,1,.3,1) both .1s; }
.hero-art img, .feature-art img {
  width: 100%; aspect-ratio: 560 / 400; object-fit: cover; object-position: right center;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 600;
  padding: 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.float-card strong { color: var(--success); }
.fc-1 { left: -18px; bottom: 18%; }
.fc-2 { right: -10px; top: 8%; animation-delay: -2.5s; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-success { background: var(--success); }
@media (max-width: 900px) {
  .hero { padding-top: 24px; }
  .hero-inner { grid-template-columns: 1fr; }
  .fc-1 { left: 8px; } .fc-2 { right: 8px; }
}

/* ── Stats ── */
.stats { padding: 0 0 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 28px 20px; text-align: center;
}
.stats-grid strong { display: block; font-size: 34px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stats-grid span { font-size: 14px; color: var(--text-2); }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

/* ── Sections ── */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.step-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, transparent);
}
.step-icon svg { width: 26px; height: 26px; fill: var(--c); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.feature-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.feature-inner.reverse .feature-art { order: 2; }
.feature-copy > p { font-size: 17px; }
@media (max-width: 860px) {
  .feature-inner { grid-template-columns: 1fr; gap: 28px; }
  .feature-inner.reverse .feature-art { order: 0; }
}

.checks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}

.trails { background: var(--bg-alt); }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.area { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.area:hover { transform: translateY(-4px); }
.area img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 75% center; width: 100%; }
.area div { padding: 18px 20px 22px; }
.area h3 { font-size: 18px; margin-bottom: 4px; }
.area p { font-size: 14px; }
@media (max-width: 960px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .areas { grid-template-columns: 1fr; } }

/* ── Ranking ── */
.ranking { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.board { list-style: none; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 12px; }
.board li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius); }
.board li + li { margin-top: 4px; }
.board img { width: 40px; height: 40px; border-radius: 50%; }
.board .pos { width: 24px; font-weight: 700; color: var(--text-2); text-align: center; }
.board li:nth-child(1) .pos { color: #E0A800; }
.board .name { flex: 1; font-weight: 600; }
.board .xp { font-weight: 600; color: var(--text-2); font-size: 14px; }
.board .me { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.board .me .name, .board .me .xp, .board .me .pos { color: var(--primary); }
@media (max-width: 860px) { .ranking { grid-template-columns: 1fr; gap: 28px; } }

/* ── Plans ── */
.plans-section { background: var(--bg-alt); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 24px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.plan .checks { margin: 20px 0 28px; flex: 1; align-content: start; }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price { font-size: 40px; font-weight: 800; color: var(--text); line-height: 1.1; margin-top: 4px; }
.price small { font-size: 16px; font-weight: 500; color: var(--text-2); }
.price-alt { font-size: 14px; margin-top: 4px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq { max-width: 760px; }
.faq details {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 4px 22px; margin-bottom: 12px;
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 28px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--primary); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 18px; }

/* ── Final CTA ── */
.final-cta { padding: 24px 0 88px; }
.final-inner {
  background: linear-gradient(135deg, #8069C9 0%, #9B6AD0 50%, #D877A6 100%);
  border-radius: 28px; padding: 64px 28px; text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  box-shadow: var(--shadow-lg);
}
.final-inner img { filter: drop-shadow(0 8px 20px rgba(0,0,0,.2)); }
.final-inner h2 { max-width: 620px; margin: 0; color: #fff; }
.final-inner .btn-light { padding: 16px 28px; font-size: 17px; }
.final-inner img { width: 72px; height: auto; background: #fff; border-radius: 20px; padding: 10px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner img { height: 28px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--primary); }
.footer p { font-size: 14px; }

/* ── Motion ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-copy { animation: fadeUp .8s cubic-bezier(.16,1,.3,1) both; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Legal pages ── */
.doc-hero { background: var(--grad); padding: 56px 0 44px; text-align: center; }
.doc-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 42px); }
.doc-hero p { color: rgba(255,255,255,.85); margin-top: 8px; }
.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 20px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; display: grid; gap: 4px; }
.doc strong { color: var(--text); }
.doc .box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin: 16px 0; box-shadow: var(--shadow);
}
