/* Estrutura e componentes comuns às duas marcas.
   Cada marca define as cores e fontes em /css/<marca>.css */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--bg-pattern, none);
  background-size: var(--bg-pattern-size, auto);
  background-position: var(--bg-pattern-pos, 0 0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 400ms ease;
}
a { color: var(--accent); text-underline-offset: 3px; }
p { margin: 0; }
main { position: relative; z-index: 1; }

.wrap {
  max-width: 34rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: max(28px, env(safe-area-inset-top, 0px));
  padding-bottom: max(64px, env(safe-area-inset-bottom, 0px));
}
.wrap-wide { max-width: 64rem; }
.view { display: grid; gap: 32px; }
.gap-22 { gap: 22px; }
.mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; }

/* Tipografia */
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: var(--display-tracking, -0.02em); text-wrap: balance; margin: 0; }
h1 { margin-top: 10px; font-weight: var(--h1-weight, 760); font-size: var(--h1-size, clamp(2.3rem, 8vw, 3.6rem)); line-height: 1.04; }
h2 { font-weight: 720; font-size: clamp(1.5rem, 5vw, 2.05rem); line-height: 1.12; }
h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.lede { margin: 14px 0 0; max-width: 31rem; color: var(--muted); text-wrap: pretty; }
.lede strong { color: var(--text); font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.error { color: var(--error); font-weight: 600; font-size: 15px; }
.loading { padding-top: 30vh; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Marca */
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.logo { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.free-badge {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.tag-free { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* Botões */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--btn-radius, 999px);
  font: 700 17px/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer; text-align: center;
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--btn-shadow);
  transition: background-color 160ms ease, transform 120ms ease, opacity 160ms ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--ghost-line); }
.btn-ghost:hover { background: var(--ghost-hover); }
.btn-block { width: 100%; }
.mini {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font: 700 14px/1 var(--font-body); text-decoration: none; white-space: nowrap;
}
.mini-wa { background: var(--wa); color: var(--wa-ink); }
.mini-wa:hover { filter: brightness(1.06); }
.mini-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--ghost-line); }
.mini-ghost:hover { background: var(--ghost-hover); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: 600 14px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
:is(.btn, .mini, .pill, .skin, .store-tab, .person, .chip button, input, .linklike, a):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Início ---------- */
.hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.hero-art { display: grid; justify-items: center; min-width: 0; }
.phone { width: min(100%, 330px); border-radius: 34px; padding: 14px; background: var(--bg-deep); box-shadow: 0 0 0 1.5px var(--hairline), 0 40px 60px -30px var(--shadow); }
.phone-screen { border-radius: 22px; padding: 22px 16px 26px; background: var(--bg); background-image: var(--bg-pattern, none); background-size: var(--bg-pattern-size, auto); display: grid; gap: 16px; overflow: hidden; }
.phone-screen .eyebrow { font-size: 11px; }
.phone-hi { font-family: var(--font-display); font-weight: 760; font-size: 28px; line-height: 1; }
.wa-bubble { justify-self: start; max-width: 90%; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: #DCF8C6; color: #1B2B1F; font-size: 13px; line-height: 1.35; box-shadow: 0 6px 14px -8px var(--shadow); }
.wa-bubble u { color: #1B5FA8; }

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { counter-increment: step; display: grid; gap: 10px; align-content: start; padding: 22px 22px 24px; }
.step::before { content: counter(step); }
.faq { display: grid; gap: 14px; }
@media (min-width: 760px) { .faq { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.faq div { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.faq p { color: var(--muted); font-size: 15.5px; }
.footer { padding-top: 20px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 14px; color: var(--muted); }

/* ---------- Criar ---------- */
.field { display: grid; gap: 8px; }
.field label, .pick legend { font-size: 14px; font-weight: 700; color: var(--text); }
.pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.pick legend { padding: 0; margin-bottom: 8px; }
.field input {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: var(--input-radius, 12px); border: 0;
  background: var(--input-bg); color: var(--input-ink); font: 500 18px var(--font-body);
}
.field input::placeholder { color: #8C9096; }
.add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.add-row .btn { min-height: 54px; padding: 0 20px; }
.hint { font-size: 14px; color: var(--muted); }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 7px 14px; animation: drop 260ms cubic-bezier(.2,.8,.3,1.2); }
.chip button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 700 18px/1 var(--font-body); cursor: pointer; }
.chip button:hover { background: rgba(0,0,0,.08); }
@keyframes drop { from { opacity: 0; translate: 0 -6px; } }
.counter { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter b { color: var(--text); }
details.opt { border-top: 1px solid var(--hairline); padding-top: 14px; }
details.opt summary { cursor: pointer; font-weight: 700; color: var(--text); font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.opt summary::-webkit-details-marker { display: none; }
details.opt summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
details.opt[open] summary::after { content: "–"; }
.fine { margin: 0; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 16px; border-radius: 999px; font: 700 15px/1 var(--font-body); font-variant-numeric: tabular-nums;
  background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--ghost-line);
}
.pill[aria-checked="true"] { background: var(--accent); color: var(--on-accent); box-shadow: var(--btn-shadow); }

/* ---------- Painel ---------- */
.save-admin, .group-send { display: grid; gap: 14px; padding: 20px; border-radius: 18px; }
.save-admin { background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.group-send { background: rgba(37,211,102,.08); box-shadow: inset 0 0 0 1.5px rgba(37,211,102,.5); }
.wa-preview { justify-self: start; max-width: 100%; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: #DCF8C6; color: #1B2B1F; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 6px 14px -8px var(--shadow); }
.sentbar { display: grid; gap: 10px; margin-bottom: -16px; }
.sentbar h3 { color: var(--text); }
.meter { height: 8px; border-radius: 99px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--wa); border-radius: 99px; transition: width 400ms ease; }
.rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 14px 14px 14px 16px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); }
.row-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.row-acts { display: flex; gap: 8px; }
.row-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.row[data-opened="true"] { box-shadow: inset 0 0 0 1.5px rgba(37,211,102,.55); }
.status { font-family: var(--font-body); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status.ok { color: var(--ok); }
@media (max-width: 420px) { .row { grid-template-columns: minmax(0,1fr); } .row-acts .mini { flex: 1; } }

.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 520px) { .themes { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.skin {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; text-align: left;
  display: grid; gap: 6px; padding: 8px 8px 10px; border-radius: 14px; background: var(--panel);
  box-shadow: inset 0 0 0 1.5px var(--hairline); color: var(--text); font: 600 13.5px/1.2 var(--font-body);
}
.skin[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--accent); }
.sw { position: relative; overflow: hidden; display: block; height: 64px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.sw-icon { position: absolute; right: 2px; bottom: 0; width: 70%; opacity: .9; }
.sw-icon svg { display: block; width: 100%; height: auto; }
.sw-natal { background: #123E32; } .sw-semfundo { background: #24282B; } .sw-chanukah { background: #173A7A; }
.sw-anonovo { background: #FBFAF6; } .sw-praia { background: linear-gradient(#0F4C5C 60%, #E8CF9A 60%); } .sw-chocolate { background: #3B2418; }

/* ---------- Grupo ---------- */
.people { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.person {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 64px; border: 0; cursor: pointer; padding: 10px 14px;
  border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--ghost-line); color: var(--text);
  display: grid; gap: 2px; justify-items: start; text-align: left; font: 700 18px/1.15 var(--font-body);
}
.person small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.person:hover:not([disabled]) { background: var(--ghost-hover); }
.person[disabled] { opacity: .45; cursor: not-allowed; }
.person.mine { box-shadow: inset 0 0 0 2.5px var(--accent); }
.confirm { display: grid; gap: 14px; padding: 20px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.confirm-q { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

/* ---------- Participante ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { padding: 6px 12px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 14px; color: var(--text); }
.fact b { color: var(--accent); font-weight: 700; }
.after-open { display: grid; gap: 24px; animation: rise-in 500ms ease both; }
@keyframes rise-in { from { opacity: 0; translate: 0 10px; } }
.gift-section { display: grid; gap: 16px; }
.stores { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.stores::-webkit-scrollbar { display: none; }
.store-tab {
  -webkit-appearance: none; appearance: none; flex: none; border: 0; cursor: pointer;
  min-height: 38px; padding: 0 14px; border-radius: 999px; font: 700 14px/1 var(--font-body);
  background: var(--panel); color: var(--muted); box-shadow: inset 0 0 0 1px var(--hairline);
}
.store-tab[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
.gifts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .gifts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gift { display: grid; gap: 8px; align-content: start; padding: 10px 10px 12px; border-radius: 14px; background: var(--card-bg); color: var(--card-ink); font-size: 14.5px; line-height: 1.3; min-width: 0; text-decoration: none; transition: transform 140ms ease; }
.gift:hover { transform: translateY(-2px); }
.gift-img { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; display: grid; place-items: center; font-size: 44px; line-height: 1; }
.gift-emoji { font-size: 44px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.gift-title { font-weight: 700; min-height: 2.6em; }
.gift-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 10px; border-radius: 999px; font: 700 12.5px/1.1 var(--font-body); background: var(--card-ink); color: var(--card-bg); text-align: center; }
.badge { position: absolute; left: 6px; top: 6px; padding: 3px 7px; border-radius: 5px; font: 800 10.5px/1.2 var(--font-body); }
.b-amazon { background: #232F3E; color: #FF9900; }
.b-mercadolivre { background: #FFE600; color: #2D3277; }
.b-magalu { background: #0086FF; color: #fff; }
.b-shopee { background: #EE4D2D; color: #fff; }
.g1 { background: #F2E3C4; } .g2 { background: #DDE8E1; } .g3 { background: #E4E0F0; } .g4 { background: #F6D9D2; }
.aff-note { font-size: 12.5px; color: var(--muted); }
.ad-label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 16px; }
.notes li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.notes li::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--accent); transform: translateY(-1px) rotate(45deg); }
.viral { display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); }

.prose { gap: 16px; }
.prose h3 { margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.prose p { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 30;
  padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 15px;
  box-shadow: 0 16px 30px -12px var(--shadow); max-width: calc(100% - 32px); text-align: center;
}

/* ---------- Cenas animadas dos fundos ---------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.scene-obj { position: absolute; right: max(8px, env(safe-area-inset-right, 0px)); bottom: env(safe-area-inset-bottom, 0px); width: min(44vw, 300px); opacity: var(--scene-opacity, .55); }
@media (max-width: 600px) { .scene-obj { opacity: calc(var(--scene-opacity, .55) * .6); width: 52vw; } }
.scene-obj svg { display: block; width: 100%; height: auto; }
.scene-obj.wide { left: 0; right: 0; top: 0; bottom: auto; width: 100%; height: 70vh; opacity: .8; }
@media (max-width: 600px) { .scene-obj.wide { opacity: .55; width: 100%; } }
.scene-obj.wide svg { width: 100%; height: 100%; }
.rocket { stroke-dasharray: 100; stroke-dashoffset: 100; animation: rocket 3.4s ease-out infinite; }
@keyframes rocket { 0% { stroke-dashoffset: 100; opacity: 1; } 26% { stroke-dashoffset: 0; opacity: 1; } 32% { opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.fw-dot { transform-box: fill-box; opacity: 0; animation: pop 3.4s cubic-bezier(.15,.75,.3,1) infinite; }
@keyframes pop { 0%, 26% { transform: translate(0, 0) scale(1); opacity: 0; } 28% { opacity: 1; } 72% { transform: translate(var(--dx), var(--dy)) scale(.9); opacity: .95; } 100% { transform: translate(var(--dx), calc(var(--dy) + 22px)) scale(.3); opacity: 0; } }
.fw-flash { transform-box: fill-box; transform-origin: center; opacity: 0; animation: flash 3.4s ease-out infinite; }
@keyframes flash { 0%, 26% { transform: scale(.2); opacity: 0; } 29% { transform: scale(1); opacity: .55; } 45% { opacity: 0; } 100% { opacity: 0; } }
.particle { position: absolute; top: -24px; animation: fall linear infinite; opacity: .75; }
.particle.up { top: auto; bottom: -16px; animation-name: float-up; }
@keyframes fall { to { transform: translateY(112vh) rotate(var(--rot, 0deg)); } }
@keyframes float-up { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-85vh); opacity: 0; } }
.p-snow { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.p-spark { width: 4px; height: 4px; border-radius: 50%; background: #FFE9A8; box-shadow: 0 0 6px #FFE9A8; }
.p-confetti { width: 6px; height: 10px; border-radius: 1px; }
.p-egg { width: 11px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #7A4A2A; box-shadow: inset -2px -2px 0 rgba(0,0,0,.2); }
.blink { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.1s ease-in-out infinite alternate; }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.88, 1.12) rotate(2deg); opacity: .85; } 100% { transform: scale(1.05, .92) rotate(-1deg); } }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wave { animation: wave 6s linear infinite; }
.wave.slow { animation-duration: 9s; }
@keyframes wave { to { transform: translateX(-130px); } }
.bob { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(4deg) translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .scene *, .sw-icon * { animation: none !important; }
  .particle { display: none; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
