/* ==========================================================================
   OFERTAS NO ZAP — hub.css (v3)
   Landing de coluna única + janela de seleção de grupos (modal).
   Tipografia: Bricolage Grotesque (títulos) + Plus Jakarta Sans (texto)
   ========================================================================== */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1b1612;
  --muted: #6b6259;
  --line: #e9e3da;

  --wa: #25d366;
  --wa-hover: #1fbd5c;
  --wa-ink: #052e16;
  --wa-deep: #0f7a41;

  --orange: #c93a06;
  --orange-soft: #fde9df;

  --f-head: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --col: 640px;
  --prose: 680px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- topo ---------- */
.hero {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 28px 20px 8px;
  text-align: center;
}
.hero-logo { display: block; width: 150px; height: auto; margin: 0 auto 4px; }
.hero h1 {
  font-size: clamp(2.1rem, 7.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.04;
  max-width: 15ch;
  margin: 0 auto 14px;
}
.hero-lead {
  max-width: 44ch;
  margin: 0 auto 26px;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* ---------- botão principal ---------- */
.cta-main {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 22px 16px 18px;
  background: var(--wa);
  color: var(--wa-ink);
  border: 0;
  border-radius: 22px;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 28px -10px rgba(18, 140, 75, .55);
  transition: background .15s, transform .15s;
}
.cta-main:hover { background: var(--wa-hover); transform: translateY(-1px); }
.cta-main:active { transform: translateY(0); }
.cta-main .ico {
  flex: none;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  font-size: 1.9rem;
}
.cta-main .txt { display: grid; gap: 1px; line-height: 1.25; }
.cta-main .t1 { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.cta-main .t2 { font-size: .875rem; font-weight: 500; opacity: .85; }

/* ---------- atalhos ---------- */
.shortcuts {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 18px auto 0;
}
.tile {
  flex: 1 1 0; min-width: 0;
  display: grid; justify-items: center; gap: 8px;
  padding: 18px 10px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: var(--tint);
  color: var(--tone);
  text-decoration: none;
  font-weight: 700; font-size: .9rem;
  transition: transform .15s, border-color .15s;
}
.tile i { font-size: 1.6rem; }
.tile:hover { transform: translateY(-1px); border-color: var(--tone); }
.tile.telegram  { --tint: #e6f3fb; --tone: #17709f; }
.tile.instagram { --tint: #fde9df; --tone: #b83505; }
.tile.facebook  { --tint: #e7ecf8; --tone: #2c4796; }
button.tile { font-family: inherit; }

.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 18px auto 0;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600; font-size: .9rem;
  color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.share-btn:hover { background: var(--surface); color: var(--ink); border-color: #d6cec2; }

/* ---------- manifesto ---------- */
.manifesto {
  max-width: var(--col);
  margin: 0 auto;
  padding: 56px 20px 8px;
  text-align: center;
}
.manifesto h2 { font-size: clamp(1.6rem, 5vw, 2.15rem); font-weight: 800; line-height: 1.12; }
.manifesto h2 em { font-style: normal; color: var(--orange); }
.manifesto p { max-width: 46ch; margin: 14px auto 0; color: var(--muted); }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem; font-weight: 700;
}
.badge i { color: var(--wa-deep); }

.socials { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.2rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.socials a:hover { background: var(--surface); color: var(--ink); }

/* ---------- texto, FAQ ---------- */
.prose, .faq, .closing {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 0 20px;
}
.prose { padding-top: 72px; }
.prose h2, .faq h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.prose p + p { margin-top: 14px; }
.prose p { color: #3d352d; }
.prose strong { color: var(--ink); }

.faq { padding-top: 56px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 2px 20px; color: #3d352d; max-width: 62ch; }

.closing { padding-top: 56px; text-align: center; }
.cta-inline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  background: var(--wa);
  color: var(--wa-ink);
  border: 0;
  border-radius: 18px;
  font-family: var(--f-head); font-weight: 800; font-size: 1.1rem;
  text-decoration: none;
  transition: background .15s;
}
.cta-inline:hover { background: var(--wa-hover); }
.cta-inline i { font-size: 1.4rem; }
.closing .alt { display: block; margin-top: 14px; font-size: .9rem; }
.closing .alt a { color: var(--muted); }

/* ---------- rodapé ---------- */
.site-footer {
  margin-top: 80px;
  padding: 36px 20px calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
}
.site-footer .f-logo { width: 96px; height: auto; margin: 0 auto 10px; display: block; opacity: .95; }
.site-footer p { max-width: 52ch; margin: 0 auto; }
.f-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0; }
.f-links a { text-decoration: none; font-weight: 600; }
.f-links a:hover { color: var(--ink); text-decoration: underline; }
.f-small { font-size: .8rem; }
.f-small a { text-decoration: none; margin-left: 10px; }
.f-small a:hover { text-decoration: underline; }

/* ---------- barra fixa no celular ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 244, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .25s;
}
.sticky-bar.show { transform: none; }
.sticky-bar .cta-inline { width: 100%; justify-content: center; padding: 13px 20px; }
@media (max-width: 720px) { .sticky-bar { display: block; } }

/* ==========================================================================
   JANELA DE SELEÇÃO DE GRUPO
   ========================================================================== */
.picker {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(27, 22, 18, .38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.picker.open { display: flex; animation: pk-fade .18s ease-out; }
.picker-card {
  position: relative;
  width: 100%; max-width: 448px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 20px 20px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 30px 80px -20px rgba(27, 22, 18, .45);
  animation: pk-pop .22s cubic-bezier(.2, .8, .3, 1);
}
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.picker-title {
  margin: 0;
  padding-top: 2px;
  font-family: var(--f-body);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--orange);
}
.picker-close {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1rem;
  transition: background .15s;
}
.picker-close:hover { background: var(--bg); }

.picker-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pick {
  display: grid;
  grid-template-columns: 48px 1fr 46px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 14px 12px 12px;
  background: var(--tint);
  border: 1px solid var(--edge);
  border-radius: 20px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.pick:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px var(--edge); }
.pick-ico {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--chip);
  border: 1px solid var(--edge);
  border-radius: 15px;
  color: var(--tone);
  font-size: 1.3rem;
}
.pick-txt { min-width: 0; display: grid; gap: 1px; line-height: 1.25; }
.pick-name {
  font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -.015em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.pick-desc { font-size: .85rem; color: #5d5a66; font-weight: 500; }
.pick-go { font-size: 2.6rem; line-height: 1; color: var(--go, var(--wa-deep)); justify-self: end; }

.t-orange { --tint: #ffe7dd; --edge: #f6b39a; --chip: #ffcdb9; --tone: #c2300b; }
.t-pink   { --tint: #f9dfe8; --edge: #e6a0b9; --chip: #f1bdd0; --tone: #a3153f; }
.t-blue   { --tint: #dcedf7; --edge: #8ec4e2; --chip: #b9dcf0; --tone: #0b5a85; }
.t-slate  { --tint: #e9e9ed; --edge: #b3b5c2; --chip: #d2d4de; --tone: #434a5f; }
.t-green  { --tint: #def3e5; --edge: #92d0a8; --chip: #bce5c9; --tone: #136b38; }
.t-violet { --tint: #ebe3f8; --edge: #bba4e6; --chip: #d4c5f1; --tone: #5b2fa6; }
.t-amber  { --tint: #fbefcf; --edge: #e8c76a; --chip: #f4dd9a; --tone: #8a5a00; }
.is-telegram .pick-go { --go: #17709f; }

.picker-state { padding: 28px 8px 14px; text-align: center; color: var(--muted); }
.picker-state strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--f-head); font-size: 1.15rem; }
.picker-skel { height: 76px; border-radius: 20px; background: linear-gradient(90deg, #f1ece4 25%, #f8f5ef 50%, #f1ece4 75%); background-size: 200% 100%; animation: pk-shimmer 1.2s infinite linear; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 400;
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- modais de texto (privacidade / termos) ---------- */
.legal {
  position: fixed; inset: 0; z-index: 220;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(27, 22, 18, .45);
}
.legal.open { display: flex; }
.legal-card {
  width: 100%; max-width: 560px; max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 24px; overflow: hidden;
}
.legal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.legal-head h2 { font-size: 1.15rem; }
.legal-body { padding: 18px 20px; overflow-y: auto; font-size: .92rem; color: #3d352d; }
.legal-body h3 { font-size: 1rem; margin: 16px 0 4px; }
.legal-body p { margin-bottom: 8px; }

@keyframes pk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pk-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pk-shimmer { to { background-position: -200% 0; } }

@media (max-width: 420px) {
  .cta-main { gap: 12px; padding: 14px 16px 14px 14px; }
  .cta-main .ico { width: 46px; height: 46px; font-size: 1.7rem; }
  .cta-main .t1 { font-size: 1.08rem; }
}
@media (max-width: 380px) {
  .pick { grid-template-columns: 44px 1fr 38px; gap: 10px; }
  .pick-ico { width: 44px; height: 44px; }
  .pick-go { font-size: 2.2rem; }
  .pick-name { font-size: 1.1rem; }
}

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