/* ─────────────────────────────────────────────────────────────
   TROCA FIGURINHAS — Landing CSS
   "Playful Field" — gradient verde/escuro + estrelinhas + sans heavy
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --primary:       #16A34A;
  --primary-dark:  #0D7A37;
  --accent:        #FACC15;

  /* Gradient do hero */
  --bg-from:       #16A34A;
  --bg-to:         #0F172A;

  /* Tons sobre fundo escuro */
  --surface:       #FFFFFF;
  --ink-on-dark:        #FFFFFF;
  --ink-on-dark-soft:   rgba(255, 255, 255, 0.82);
  --ink-on-dark-faint:  rgba(255, 255, 255, 0.55);

  /* Tons pra páginas legais (fundo claro) */
  --bg-light:      #F7F9F4;
  --ink:           #0F1419;
  --ink-soft:      #4A5260;
  --ink-faint:     #8B919C;
  --rule:          #D4DDD0;

  --card-bg:       rgba(255, 255, 255, 0.10);
  --card-border:   rgba(255, 255, 255, 0.22);

  /* Lúdico */
  --star:          #FACC15;
  --dot-pink:      #FFB3D9;
  --dot-cyan:      #B3E5FF;
  --dot-green:     #C8F0D1;

  /* Tipografia */
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --container: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-from: #0D5C2A;
    --bg-to:   #0A0F1A;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Landing — fundo gradient + decoração */
body.landing {
  background: linear-gradient(160deg, var(--bg-from) 0%, var(--bg-to) 100%);
  color: var(--ink-on-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ─── Decoração de fundo ─────────────────────────────────── */

.bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-decor__star {
  position: absolute;
  fill: var(--star);
  opacity: 0.95;
  animation: float 6s ease-in-out infinite;
}
.bg-decor__star:nth-child(2) { animation-delay: -1s; animation-duration: 7s; }
.bg-decor__star:nth-child(3) { animation-delay: -2s; animation-duration: 5s; }
.bg-decor__star:nth-child(4) { animation-delay: -3s; animation-duration: 8s; }
.bg-decor__star:nth-child(5) { animation-delay: -1.5s; }
.bg-decor__star:nth-child(6) { animation-delay: -3.5s; animation-duration: 6.5s; }

.bg-decor__dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}
.bg-decor__dot--pink  { background: var(--dot-pink);  animation-delay: -0.5s; }
.bg-decor__dot--cyan  { background: var(--dot-cyan);  animation-delay: -2.5s; }
.bg-decor__dot--green { background: var(--dot-green); animation-delay: -4s; }

.bg-decor__cloud {
  position: absolute;
  fill: rgba(255, 255, 255, 0.85);
  width: 380px;
  height: auto;
}
.bg-decor__cloud--1 { bottom: 35%; left: -80px; opacity: 0.6; }
.bg-decor__cloud--2 { bottom: 28%; right: -100px; opacity: 0.4; width: 320px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-decor__star, .bg-decor__dot { animation: none; }
}

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-on-dark);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand:hover { opacity: 0.9; text-decoration: none; }

.brand__emoji {
  font-size: 1.375rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}
.site-nav a {
  color: var(--ink-on-dark-soft);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink-on-dark); }

/* ─── Hero ───────────────────────────────────────────────── */

main { position: relative; z-index: 1; }

.hero {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 1.5rem 1rem;
  text-align: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink-on-dark);
  margin: 0 auto 1.25rem;
  max-width: 16ch;
  text-wrap: balance;
}

.hero__title mark {
  background: none;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--ink-on-dark-soft);
  margin: 0 auto 2.5rem;
  max-width: 40ch;
  line-height: 1.45;
}
.hero__sub strong { color: var(--ink-on-dark); font-weight: 700; }

/* ─── CTA pills (App Store / Google Play) ────────────────── */

.cta-group {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 0.75rem 1.125rem;
  background: var(--surface);
  color: var(--primary);
  border-radius: 999px;
  text-decoration: none;
  box-shadow:
    0 10px 32px rgba(13, 122, 55, 0.30),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-pill:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow:
    0 14px 36px rgba(13, 122, 55, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.cta-pill:active { transform: translateY(0); }

.cta-pill__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--primary);
}

.cta-pill__text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.cta-pill__kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-pill__store {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Esconde pill da plataforma "errada" em mobile */
body[data-platform="ios"]     .cta-pill--android { display: none; }
body[data-platform="android"] .cta-pill--ios     { display: none; }

/* ─── Screenshot hero ────────────────────────────────────── */

.hero__shot {
  position: relative;
  max-width: 18rem;
  margin: 3.5rem auto 0;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
  aspect-ratio: 979 / 2000;
  isolation: isolate;
}
.hero__shot:hover { transform: rotate(0deg) translateY(-4px); }

.hero__shot-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.4));
}

.hero__shot-screen {
  position: absolute;
  top: 2.5%; left: 3.5%;
  width: 93%; height: 95%;
  z-index: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 9% / 4.5%;
  overflow: hidden;
  background: #1E293B;
}

/* ─── Features (glass cards sobre gradient) ──────────────── */

.features {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  color: var(--ink-on-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature__emoji {
  display: inline-block;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.feature__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}

.feature p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-on-dark-soft);
  margin: 0;
}

/* ─── Closing ────────────────────────────────────────────── */

.closing {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  text-align: center;
}

.closing__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink-on-dark);
  margin: 0 auto 2rem;
  line-height: 1.05;
  max-width: 20ch;
}

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.8125rem;
  color: var(--ink-on-dark-faint);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}
.site-footer a { color: var(--ink-on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink-on-dark); }
.site-footer .dot { user-select: none; opacity: 0.5; }

/* ─── Mobile ─────────────────────────────────────────────── */

@media (max-width: 720px) {
  .site-header { padding: 1.25rem 1.25rem; }
  .hero { padding: 2rem 1.25rem 0.5rem; }
  .hero__shot { max-width: 16rem; margin-top: 2.5rem; }
  .features {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem;
    gap: 0.75rem;
  }
  .feature { padding: 1.5rem 1.25rem; }
  .closing { padding: 2.5rem 1.25rem; }
  .bg-decor__cloud { width: 250px; }
}

/* ─── Páginas legais (.legal-page) ──────────────────────── */

body.legal-page {
  background: linear-gradient(160deg, var(--bg-from) 0%, var(--bg-to) 100%);
  color: var(--ink-on-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-decor--legal {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.legal__hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem 2.5rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-on-dark-soft);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { color: var(--ink-on-dark); }

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-on-dark);
  margin: 0 0 0.5rem;
}

.legal__sub {
  font-size: 0.9375rem;
  color: var(--ink-on-dark-soft);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.legal__content {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--ink);
  max-width: 56rem;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.legal__content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.legal__content h2:first-of-type { margin-top: 0; }

.legal__content h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--ink);
}

.legal__content p,
.legal__content li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.legal__content ul { padding-left: 1.25rem; }
.legal__content li { margin-bottom: 0.5rem; }

.legal__content .meta {
  color: var(--ink-faint);
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  display: block;
}

.legal__content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.legal__content a:hover { text-decoration: underline; }

.legal__content strong { color: var(--ink); }

.legal__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9375rem;
}
.legal__content th,
.legal__content td {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}
.legal__content th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 720px) {
  .legal__hero { padding: 1.5rem 1.25rem 2rem; }
  .legal__content { padding: 1.5rem 1.25rem; border-radius: 1rem; }
  .legal__content table { font-size: 0.875rem; }
  .legal__content th,
  .legal__content td { padding: 0.5rem; }
}
