/* SweetCoins — site de apresentação
   Identidade copiada do app (src/index.css): cereja, blush, creme e cacau; Fredoka + Nunito;
   contorno grosso e sombra "retrô" dura. */

:root {
  --cherry: #b50f2b;
  --cherry-dark: #8e0b21;
  --blush: #f5b0bf;
  --blush-light: #fcdde4;
  --cream: #fff1df;
  --cocoa: #40201c;
  --white: #fff;

  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-sans: "Nunito", ui-rounded, system-ui, sans-serif;

  --shadow: 4px 4px 0 0 var(--cocoa);
  --shadow-sm: 2px 2px 0 0 var(--cocoa);
  --shadow-lg: 6px 6px 0 0 var(--cocoa);
  --border: 2px solid var(--cocoa);
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--cocoa);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 40px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cherry); color: var(--cream); padding: 10px 16px; border-radius: 999px;
  border: var(--border); font-family: var(--font-display); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 8px; }

/* ---------- Botões (iguais aos do app: pílula, contorno e sombra que "afunda") ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: var(--border); border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none; text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 var(--cocoa); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 0 var(--cocoa); }
.btn--primary { background: var(--cherry); color: var(--cream); }
.btn--primary:hover { background: var(--cherry-dark); }
.btn--secondary { background: var(--cream); color: var(--cocoa); }
.btn--secondary:hover { background: var(--white); }
.btn--light { background: var(--cream); color: var(--cherry); }
.btn--light:hover { background: var(--white); }
.btn--sm { height: 40px; padding: 0 16px; font-size: .95rem; box-shadow: var(--shadow-sm); }
.btn--sm:hover { box-shadow: 3px 3px 0 0 var(--cocoa); }
.btn--lg { min-height: 56px; padding: 12px 26px; font-size: 1.1rem; }
.btn--full { width: 100%; min-height: 52px; font-size: 1.05rem; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Cabeçalho ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--cocoa); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.topbar__nav { display: none; gap: 28px; }
.topbar__nav a { font-family: var(--font-display); font-weight: 500; text-decoration: none; font-size: 1.02rem; }
.topbar__nav a:hover { color: var(--cherry); }
.topbar__actions { display: flex; align-items: center; gap: 14px; }
.link-entrar { display: none; font-family: var(--font-display); font-weight: 600; color: var(--cherry); text-decoration: none; }
.link-entrar:hover { text-decoration: underline; text-underline-offset: 3px; }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__mark { width: 40px; height: 32px; }
.logo__text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1;
  color: var(--cherry); text-shadow: 2px 2px 0 var(--blush); letter-spacing: -0.02em;
}

/* ---------- Faixa quadriculada (embalagem vintage) ---------- */
.checker { height: 44px; background: url("assets/checker-cream.svg") repeat-x left top / 400px 44px; }
.checker--light { background-image: url("assets/checker-cherry.svg"); }

/* ---------- Hero ---------- */
.hero { background: var(--cream); position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: 48px; padding: 36px 0 72px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blush-light); border: var(--border); border-radius: 999px; box-shadow: var(--shadow-sm);
  padding: 6px 14px; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
}
.hero h1 { margin-top: 20px; font-size: clamp(2.3rem, 7vw, 3.9rem); font-weight: 700; color: var(--cocoa); }
.hl { color: var(--cherry); text-shadow: 3px 3px 0 var(--blush); white-space: nowrap; }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 2.4vw, 1.2rem); max-width: 34rem; color: color-mix(in srgb, var(--cocoa) 88%, transparent); }
.hero__cta { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.hero__note { margin-top: 18px; font-weight: 700; font-size: .95rem; color: color-mix(in srgb, var(--cocoa) 75%, transparent); }

.hero__visual { position: relative; display: grid; place-items: center; padding: 10px 0 20px; }
.hero__visual::before {
  content: ""; position: absolute; width: min(420px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: var(--blush); border: var(--border); box-shadow: var(--shadow-lg);
}

/* ---------- Celular (tela de exemplo no estilo do app) ---------- */
.phone {
  position: relative; width: 290px; padding: 12px;
  background: var(--cocoa); border-radius: 46px; box-shadow: 10px 10px 0 0 var(--cherry);
  transform: rotate(-3deg);
}
.phone__notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 86px; height: 20px; border-radius: 999px; background: var(--cocoa); z-index: 2; }
.screen { background: var(--blush); border-radius: 36px; overflow: hidden; padding: 44px 14px 0; font-size: 12px; }
.screen__top { display: flex; justify-content: space-between; align-items: center; }
.mini-logo { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 700; color: var(--cherry); font-size: 15px; }
.mini-logo svg { width: 24px; height: 19px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: var(--border); font-family: var(--font-display); font-weight: 700; }
.screen__house { margin-top: 14px; font-weight: 700; opacity: .7; font-size: 11px; }
.screen__hi { font-family: var(--font-display); font-weight: 700; color: var(--cherry); font-size: 22px; line-height: 1.15; }
.screen__sub { opacity: .8; font-size: 11.5px; }
.balance { margin-top: 12px; background: var(--cherry); color: var(--cream); border: var(--border); border-radius: 22px; box-shadow: 3px 3px 0 0 var(--cocoa); padding: 12px 14px; }
.balance p { font-family: var(--font-display); opacity: .85; }
.balance__row { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--font-display); font-size: 11.5px; }
.balance__value { display: inline-flex; align-items: center; gap: 6px; font-size: 30px; font-weight: 700; line-height: 1; }
.balance__value svg { width: 28px; height: 28px; }
.screen__title { margin: 14px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.task { display: flex; align-items: center; gap: 10px; background: var(--white); border: var(--border); border-radius: 18px; box-shadow: 2px 2px 0 0 var(--cocoa); padding: 8px 10px; margin-bottom: 8px; }
.task__ico { width: 30px; height: 30px; border-radius: 50%; background: var(--blush-light); border: var(--border); display: grid; place-items: center; flex: none; }
.task__ico svg { width: 15px; height: 15px; fill: none; stroke: var(--cherry); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.task__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.task__txt b { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; }
.task__txt small { opacity: .65; font-size: 10.5px; }
.task__coins { font-family: var(--font-display); font-weight: 700; color: var(--cherry); background: var(--cream); border: 1.5px solid var(--cocoa); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.task--done { background: var(--cream); }
.bottomnav { margin: 10px -14px 0; background: var(--white); border-top: var(--border); border-radius: 22px 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 4px 14px; }
.bottomnav span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--font-display); font-size: 9.5px; opacity: .7; }
.bottomnav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav .is-active { opacity: 1; color: var(--cherry); font-weight: 700; }

/* Moedas e coração flutuando ao redor do celular */
.float-coin, .float-heart { position: absolute; z-index: 3; }
.float-coin { width: 58px; height: 58px; animation: bob 5s ease-in-out infinite; }
.float-coin--1 { top: 4%; left: 6%; }
.float-coin--2 { bottom: 14%; right: 4%; width: 70px; height: 70px; animation-delay: -1.6s; }
.float-coin--3 { bottom: 4%; left: 14%; width: 42px; height: 42px; animation-delay: -3.2s; }
.float-heart { top: 8%; right: 10%; width: 46px; height: 46px; fill: var(--blush); stroke: var(--cocoa); stroke-width: 1.6; stroke-linejoin: round; animation: bob 6s ease-in-out infinite -2s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

/* ---------- Seções ---------- */
.section { padding: 84px 0; }
.section--cream { background: var(--cream); }
.section--blush { background: var(--blush); border-block: var(--border); }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto 44px; }
.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 600; color: var(--cherry); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.section h2 { margin-top: 8px; font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 700; }

.card { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Como funciona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.step { position: relative; padding: 30px 24px 26px; }
.step__num {
  position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cherry); color: var(--cream);
  border: var(--border); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.step__ico, .feature__ico {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none;
  background: var(--blush-light); border: var(--border);
}
.step__ico svg, .feature__ico svg { width: 28px; height: 28px; fill: none; stroke: var(--cherry); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.step h3, .feature h3 { margin-top: 16px; font-size: 1.35rem; font-weight: 600; }
.step p, .feature p { margin-top: 8px; color: color-mix(in srgb, var(--cocoa) 85%, transparent); }

/* Funcionalidades */
.features { display: grid; gap: 20px; }
.feature { padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.feature--wide { display: flex; gap: 18px; align-items: center; background: var(--cream); }
.feature--wide h3 { margin-top: 0; }

/* Para quem é */
.audience { display: grid; gap: 20px; }
.audience__card { padding: 28px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.audience__card h3 { font-size: 1.6rem; font-weight: 700; }
.audience__card p { color: color-mix(in srgb, var(--cocoa) 85%, transparent); }
.audience__ico { width: 40px; height: 40px; fill: none; stroke: var(--cherry); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.audience__card--duo { background: var(--cherry); color: var(--cream); }
.audience__card--duo p { color: color-mix(in srgb, var(--cream) 90%, transparent); }
.audience__card--duo .audience__ico { stroke: var(--cocoa); fill: var(--blush); }
.audience__card--duo .tag { border-color: color-mix(in srgb, var(--cream) 70%, transparent); color: var(--cream); background: transparent; }
.tag { margin-top: auto; border: 1.5px solid color-mix(in srgb, var(--cocoa) 45%, transparent); border-radius: 999px; padding: 3px 12px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; background: var(--cream); }

/* Planos */
.trial {
  display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 0 auto 40px;
  background: var(--cream); border: var(--border); border-radius: 999px; box-shadow: var(--shadow);
  padding: 12px 22px 12px 14px;
}
.trial svg { width: 44px; height: 44px; flex: none; animation: spin 6s linear infinite; }
.trial b { font-family: var(--font-display); font-weight: 700; color: var(--cherry); }
@keyframes spin { 0%, 70% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.plans { display: grid; gap: 28px; max-width: 820px; margin: 0 auto; }
.plan { position: relative; padding: 32px 26px 26px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.9rem; font-weight: 700; color: var(--cherry); }
.plan__for { font-weight: 700; opacity: .7; }
.plan__price { margin: 18px 0 20px; font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; }
.plan__price span { font-size: 1.4rem; vertical-align: top; position: relative; top: 6px; }
.plan__price small { font-size: 1.1rem; font-weight: 500; opacity: .7; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.plan li svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--cream); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; background: var(--cherry); border: 1.5px solid var(--cocoa); border-radius: 50%; padding: 3px; }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--cream); box-shadow: 8px 8px 0 0 var(--cherry), 8px 8px 0 2px var(--cocoa); }
.plan__badge {
  position: absolute; top: -16px; right: 22px; background: var(--blush); border: var(--border); border-radius: 999px;
  padding: 4px 14px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.plans__note { text-align: center; margin-top: 30px; font-weight: 700; }

/* Perguntas frequentes */
.faq { display: grid; gap: 14px; }
.faq details { border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow); background: var(--white); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 60px 18px 22px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; border-radius: 50%; border: var(--border); background: var(--blush-light);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1; color: var(--cherry); transition: rotate .25s ease;
}
.faq details[open] summary::after { rotate: 45deg; background: var(--blush); }
.faq summary:hover { color: var(--cherry); }
.faq details p { padding: 0 22px 20px; color: color-mix(in srgb, var(--cocoa) 88%, transparent); }

/* Chamada final */
.final { background: var(--cherry); color: var(--cream); border-top: var(--border); }
.final__inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 0 84px; gap: 16px; }
.final__mark { width: 96px; height: 76px; animation: bob 5s ease-in-out infinite; }
.final h2 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 700; text-shadow: 3px 3px 0 var(--cherry-dark); }
.final p { font-size: 1.15rem; max-width: 30rem; }
.final .btn { margin-top: 10px; }

/* Rodapé */
.footer { background: var(--cocoa); color: var(--cream); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer__inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.logo--footer .logo__text { color: var(--blush); text-shadow: 2px 2px 0 var(--cherry); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer__links a { text-decoration: none; font-weight: 700; padding: 6px 0; }
.footer__links a:hover { color: var(--blush); text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { opacity: .75; font-size: .92rem; }

/* ---------- Animação de entrada ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Telas maiores ---------- */
@media (min-width: 560px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .link-entrar { display: inline; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature--wide { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .audience { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: auto 1fr; text-align: left; justify-items: start; }
  .footer__links { justify-content: flex-end; justify-self: end; }
  .footer__copy { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .topbar__nav { display: flex; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; padding: 56px 0 64px; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 559px) {
  .section { padding: 64px 0; }
  .hero__grid { padding-bottom: 40px; gap: 36px; }
  .btn--lg { font-size: 1rem; padding: 12px 18px; }
  .phone { width: 252px; }
  .float-coin--1 { top: 0; left: 0; width: 48px; height: 48px; }
  .float-coin--2 { bottom: 26%; right: -2px; width: 52px; height: 52px; }
  .float-coin--3 { bottom: 0; left: 2%; width: 38px; height: 38px; }
  .float-heart { top: 2%; right: 2%; width: 38px; height: 38px; }
}
@media (max-width: 380px) {
  .logo__text { font-size: 1.35rem; }
  .btn--sm { padding: 0 12px; }
  .phone { width: 236px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
