/* BelahPromo — Web + App (mobile-first)
   Tokens da marca: 06-web-app/design-tokens.css */
:root {
  --bp-magenta: #E50068;
  --bp-charcoal: #29292D;
  --bp-white: #FFFFFF;
  --bp-soft-pink: #FCE7F0;
  --bp-off-white: #F9F9FA;
  --bp-warm-beige: #E9DED4;
  --bp-muted: #77727A;
  --bp-font-display: "Playfair Display", Georgia, serif;
  --bp-font-body: Inter, Arial, sans-serif;
  --bp-radius-card: 20px;
  --bp-radius-button: 999px;

  --line: #EEE7EA;
  --gutter: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--bp-font-body);
  color: var(--bp-charcoal);
  background: var(--bp-off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--bp-magenta); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); position: relative; isolation: isolate; }
.wrap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 380px; height: 380px; right: -150px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 0, 104, .15), rgba(252, 231, 240, 0) 70%);
}

/* ---------- topo ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 68px; padding-top: env(safe-area-inset-top, 0px); }
.brand img { width: 152px; height: auto; }
.icon-btn {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; display: grid; place-items: center;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: #DCCFD5; }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: 20px 0 8px; }
h1 {
  font-family: var(--bp-font-display); font-weight: 500;
  font-size: clamp(40px, 11.5vw, 84px); line-height: 1.02; letter-spacing: -.02em;
}
h1 em { font-style: italic; color: var(--bp-magenta); }
.lead { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--bp-muted); max-width: 440px; }

.profile {
  margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
}
.profile-icon {
  flex: none; width: 56px; height: 56px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.profile-icon img { width: 40px; height: auto; }
.profile-who { flex: 1; min-width: 0; }
.profile-who strong { display: block; font-size: 15px; font-weight: 600; }
.profile-who small { display: block; font-size: 12px; color: var(--bp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- grupos ---------- */
.sec-head { padding: 32px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head h2 { font-family: var(--bp-font-display); font-weight: 500; font-size: 26px; letter-spacing: -.01em; }
.sec-head span { font-size: 13px; color: var(--bp-muted); white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 6px;
  display: flex; flex-direction: column; min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(41, 41, 45, .08); border-color: #E6DADF; }
a.card:active { transform: scale(.98); }
.card-img { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--bp-warm-beige); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .card-img img { transform: scale(1.04); }
.num {
  position: absolute; top: 8px; left: 8px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 600; display: grid; place-items: center;
}
.card h3 { padding: 12px 8px 10px; font-size: 15px; font-weight: 600; line-height: 1.25; flex: 1; }

.join {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px;
  border-radius: var(--bp-radius-button); background: var(--bp-soft-pink); color: var(--bp-magenta);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.join .wa { width: 16px; height: 16px; flex: none; }
.join .go { display: none; }
a.card:hover .join { background: var(--bp-magenta); color: #fff; }
.card.is-soon .join { background: var(--bp-off-white); color: var(--bp-muted); }
.card.is-soon .card-img img { filter: saturate(.85); }

.how {
  background: var(--bp-charcoal); color: #fff; border-radius: 24px; padding: 18px 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.how h3 { font-family: var(--bp-font-display); font-weight: 500; font-size: 20px; line-height: 1.15; }
.how ol { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.how li { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.4; color: #D9D6DA; }
.how li b {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bp-magenta);
  color: #fff; font-size: 11px; display: grid; place-items: center;
}

/* ---------- rodapé ---------- */
.foot { padding: 28px 0 calc(40px + var(--safe-bottom)); font-size: 12px; line-height: 1.6; color: var(--bp-muted); }
.foot-row { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 20px);
  background: var(--bp-charcoal); color: #fff; font-size: 14px; font-weight: 500;
  padding: 12px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 24px; text-align: center; }

/* ---------- telas muito pequenas ---------- */
@media (max-width: 359px) {
  .grid { gap: 8px; }
  .join { font-size: 11.5px; padding: 0 6px; }
  .join .wa { display: none; }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .profile { max-width: 520px; }
  .how { grid-column: span 2; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  .wrap::before { width: 640px; height: 640px; right: -120px; top: -200px; }
  .top { height: 92px; }
  .brand img { width: 200px; }
  .hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; padding: 40px 0 16px; }
  .lead { font-size: 18px; }
  .profile { margin: 0; padding: 18px; border-radius: 28px; max-width: none; }
  .profile-icon { width: 72px; height: 72px; border-radius: 22px; }
  .profile-icon img { width: 52px; }
  .sec-head { padding: 64px 0 20px; }
  .sec-head h2 { font-size: 36px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .how { grid-column: auto; }
  .card { border-radius: 28px; padding: 8px; }
  .card-img { border-radius: 22px; }
  .card h3 { font-size: 17px; padding: 14px 10px 12px; }
  .join { justify-content: flex-start; min-height: 46px; padding: 0 6px 0 14px; font-size: 14px; }
  .join .join-t { flex: 1; }
  .join .go { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bp-magenta); color: #fff; transition: background .2s; }
  .join .go svg { width: 14px; height: 14px; }
  a.card:hover .join .go { background: #fff; color: var(--bp-magenta); }
  .how { border-radius: 28px; padding: 26px 24px; }
  .how h3 { font-size: 28px; }
  .how li { font-size: 14px; }
  .foot { padding: 48px 0 56px; }
}

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