/* =========================================================
   AMIGA, ACHEI! — styles.css (mobile-first)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #fff5f7;
  --bg-deep: #fde7ec;
  --surface: #ffffff;
  --ink: #123a2f;          /* verde-escuro da marca */
  --ink-soft: #46625a;
  --pink: #e62e6b;         /* rosa "Achei!" */
  --pink-ink: #b51b50;     /* rosa com contraste para texto pequeno */
  --yellow: #f6b93b;
  --wa: #0f5e44;           /* verde dos botões das Landing Marks */
  --wa-hover: #0b4a35;
  --band: #123a2f;
  --band-ink: #fff5f7;
  --band-soft: #cfe0d9;
  --line: rgba(18, 58, 47, .12);
  --shadow: 0 1px 2px rgba(18, 58, 47, .06), 0 10px 28px -12px rgba(181, 27, 80, .28);
  --shadow-hover: 0 2px 4px rgba(18, 58, 47, .08), 0 22px 40px -16px rgba(181, 27, 80, .38);
  --radius-card: 24px;
  --radius-pill: 999px;
  --font-display: "Fredoka", "Baloo 2", ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11241e;
    --bg-deep: #0c1c17;
    --surface: #18322a;
    --ink: #fff1f4;
    --ink-soft: #c6d6d0;
    --pink: #ff5c8e;
    --pink-ink: #ff86aa;
    --wa: #1d8a63;
    --wa-hover: #22a174;
    --band: #0a1813;
    --band-ink: #fff1f4;
    --band-soft: #b9cdc5;
    --line: rgba(255, 255, 255, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 22px 40px -16px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --bg: #11241e; --bg-deep: #0c1c17; --surface: #18322a; --ink: #fff1f4; --ink-soft: #c6d6d0;
  --pink: #ff5c8e; --pink-ink: #ff86aa; --wa: #1d8a63; --wa-hover: #22a174;
  --band: #0a1813; --band-ink: #fff1f4; --band-soft: #b9cdc5; --line: rgba(255, 255, 255, .12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

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

/* ---------- Header ---------- */
.site-header { padding: 14px 0 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 56px; height: 56px; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }

.ig-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: color .2s, border-color .2s;
}
.ig-link svg { width: 18px; height: 18px; flex: none; }
.ig-link:hover { color: var(--pink-ink); border-color: var(--pink); }

/* ---------- Hero (compacto) ---------- */
.hero { padding: 28px 0 8px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 8.2vw, 3.75rem);
  font-weight: 700;
  max-width: 15ch;
  margin: 0 auto;
}
.hero .underline {
  display: block; width: min(260px, 62%); height: 14px; margin: 10px auto 0;
  color: var(--yellow);
}
.hero .sub {
  margin: 16px auto 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  color: var(--ink-soft);
}
.hero .note {
  margin: 12px auto 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--pink-ink);
}

.hero-pick { margin-top: 22px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.hero-pills {
  list-style: none; padding: 0; margin: 12px auto 0;
  display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 420px;
}
.hero-pill {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--wa); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 10px 22px -12px rgba(15, 94, 68, .6);
  transition: background-color .2s ease, transform .2s ease;
}
.hero-pill .wa { display: inline-flex; }
.hero-pill svg { width: 21px; height: 21px; }
.hero-pill:hover, .hero-pill:focus-visible { background: var(--wa-hover); }
.hero-pill:active { transform: scale(.98); }
.hero-more {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px;
  color: var(--pink-ink); font-weight: 600; font-size: .95rem;
  text-decoration: underline; text-underline-offset: 3px;
}
@media (min-width: 560px) { .hero-pills { grid-template-columns: 1fr 1fr; max-width: 560px; } }

/* ---------- Escolha dos grupos ---------- */
.groups { padding: 36px 0 56px; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 28px; }
.section-head h2 { font-size: clamp(1.7rem, 6.4vw, 2.5rem); font-weight: 700; }
.section-head p { margin-top: 10px; color: var(--ink-soft); font-size: 1.02rem; }

.mark-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 22px;
}

.mark {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mark__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-deep); }
.mark__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }

.mark__foot {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px 18px;
  flex: 1;
}
.mark__text h3 { font-size: 1.3rem; font-weight: 600; }
.mark__text p { margin-top: 4px; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }

.mark__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--wa); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  transition: background-color .2s ease;
}
.mark__cta svg { width: 22px; height: 22px; flex: none; }
.mark__cta .arrow { transition: transform .2s ease; }

.mark:hover, .mark:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mark:hover .mark__media img { transform: scale(1.025); }
.mark:hover .mark__cta, .mark:focus-visible .mark__cta { background: var(--wa-hover); }
.mark:hover .arrow, .mark:focus-visible .arrow { transform: translateX(4px); }
.mark:active { transform: translateY(0) scale(.99); }
.mark:focus-visible { outline-offset: 4px; border-radius: var(--radius-card); }

/* ---------- CTA final ---------- */
.final {
  background: var(--band); color: var(--band-ink);
  padding: 56px 0 60px; text-align: center;
  border-radius: 32px 32px 0 0;
}
.final h2 { font-size: clamp(1.55rem, 6.2vw, 2.6rem); font-weight: 700; }
.final p { margin: 14px auto 0; max-width: 36ch; color: var(--band-soft); font-size: 1.05rem; }

.pill-grid {
  list-style: none; padding: 0; margin: 28px auto 0;
  display: grid; grid-template-columns: 1fr; gap: 12px;
  max-width: 420px;
}
.pill {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 20px;
  border-radius: var(--radius-pill);
  background: #fff5f7; color: #123a2f;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.pill .wa { width: 22px; height: 22px; color: #0f5e44; flex: none; }
.pill .label { flex: 1; text-align: left; }
.pill .arrow { transition: transform .2s ease; }
.pill:hover, .pill:focus-visible { background: #ffffff; }
.pill:hover .arrow, .pill:focus-visible .arrow { transform: translateX(4px); }
.pill:active { transform: scale(.985); }
.final :focus-visible { outline-color: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--band); color: var(--band-soft);
  padding: 8px 0 40px; text-align: center; font-size: .92rem;
}
.site-footer .inner { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 32px; }
.site-footer .f-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--band-ink); }
.site-footer .f-brand img { width: 48px; height: 48px; }
.site-footer .f-brand strong { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; display: block; text-align: left; }
.site-footer .f-brand em { font-style: normal; display: block; text-align: left; }
.f-links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.f-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
  color: var(--band-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35);
}
.f-links a:hover { text-decoration-color: currentColor; }
.f-links svg { width: 18px; height: 18px; }
.affiliate { margin: 18px auto 0; max-width: 52ch; font-size: .85rem; line-height: 1.5; }
.copy { margin-top: 14px; font-size: .8rem; opacity: .85; }
.site-footer :focus-visible { outline-color: var(--yellow); }

/* ---------- Reveal (uma vez, discreto) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.mark-grid > li:nth-child(2).reveal { transition-delay: .06s; }
.mark-grid > li:nth-child(3).reveal { transition-delay: .12s; }
.mark-grid > li:nth-child(4).reveal { transition-delay: .18s; }

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

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .mark__foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .mark__cta { flex: none; }
  .pill-grid { grid-template-columns: 1fr 1fr; max-width: 640px; }
}

@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .site-header { padding-top: 22px; }
  .brand img { width: 64px; height: 64px; }
  .hero { padding: 40px 0 8px; }
  .groups { padding: 48px 0 80px; }
  .section-head { margin-bottom: 36px; }
  .mark-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mark__foot { flex-direction: column; align-items: stretch; }
  .mark__cta { align-self: flex-start; }
  .final { padding: 72px 0 72px; border-radius: 40px 40px 0 0; }
}

@media (min-width: 1100px) {
  .mark__foot { flex-direction: row; align-items: center; }
  .mark__cta { align-self: auto; }
}
