:root {
  --bg-deep: #102D2A;
  --bg-mid: #194B43;
  --surface-soft: rgba(10, 31, 29, 0.52);
  --border-subtle: rgba(189, 232, 215, 0.22);
  --text-main: #FFF9EC;
  --text-muted: #CDE5DA;
  --accent-gold: #F2B64D;
  --accent-coral: #F05B62;
  --accent-green: #1FA855;
  --accent-green-hover: #178A45;
  --accent-coral-hover: #DE4950;
  --accent-mint: #BDE8D7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 54%, var(--bg-deep) 100%);
  color: var(--text-main);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 18px 32px;
}

/* A primeira tela ocupa a altura do celular: lojas e rodapé só aparecem depois de rolar. */
.fold {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100vh - 14px);
  min-height: calc(100svh - 14px);
}

.fold-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: auto 0;
  padding-bottom: 24px;
}

.ad-label {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.brand-line strong {
  color: var(--text-main);
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

h1 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.h1-line {
  display: block;
}

.h1-line:first-child {
  color: var(--accent-gold);
}

.proof {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.proof strong {
  color: var(--text-main);
  font-size: 1.12rem;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  margin-top: 6px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--accent-green);
  color: #FFFFFF;
  font-size: 1.08rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.btn-primary:hover {
  background: var(--accent-green-hover);
}

.btn-primary:focus-visible,
.dl-link:focus-visible,
.btn-inapp:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.microcopy {
  margin: -4px 0 0;
  text-align: center;
  font-weight: 600;
  color: var(--text-main);
}

.dl-line {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dl-link {
  color: var(--accent-mint);
  font-weight: 600;
}

.is-hidden {
  display: none !important;
}

.inapp-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--accent-gold);
  background: var(--surface-soft);
}

.inapp-title {
  color: var(--accent-gold);
}

.btn-inapp {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-mint);
  color: var(--bg-deep);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-inapp-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.inapp-copy-ok {
  color: var(--accent-mint);
  font-weight: 600;
}

.inapp-steps {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.stores-line {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer p {
  margin: 0;
}

/* Piloto WhatsApp */
.list-sub {
  margin: 0;
  color: var(--text-muted);
}

.list-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
}

.group-name {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.proof-small {
  font-size: 0.9rem;
}

.btn-compact {
  min-height: 52px;
  margin-top: 2px;
  font-size: 1rem;
}

.affiliate {
  margin: -6px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer p + p {
  margin-top: 8px;
}

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 6px 10px;
  background: #F2B64D;
  color: #102D2A;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.group-line {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Página sem nicho: dois cartões precisam caber na primeira tela até 360x640 */
.mode-list .fold,
.mode-list .fold-body {
  gap: 10px;
}

.mode-list .fold-body {
  padding-bottom: 12px;
}

.mode-list h1 {
  font-size: clamp(1.45rem, 6.4vw, 2.1rem);
}

.mode-list .list-items {
  gap: 8px;
}

.mode-list .group-card {
  gap: 4px;
  padding: 10px 12px;
}

.mode-list .group-name {
  font-size: 1rem;
}

.mode-list .group-line,
.mode-list .proof-small {
  font-size: 0.86rem;
  line-height: 1.3;
}

.mode-list .btn-compact {
  min-height: 46px;
  padding: 10px 16px;
  margin-top: 4px;
}

.mode-list .microcopy,
.mode-list .affiliate {
  font-size: 0.82rem;
}

.mode-list .brand-line {
  margin-top: 0;
}

.mode-list .page-shell {
  padding-top: 8px;
}

.mode-list .fold,
.mode-list .fold-body {
  gap: 8px;
}

.mode-list .fold-body {
  padding-bottom: 6px;
}

/* Página de nicho: título em 2 linhas (cada linha cabe inteira até 360 px de largura).
   A quebra continua permitida: se a fonte do aparelho for mais larga, quebra em vez de vazar. */
.mode-single h1 {
  /* 02/12: 5.5vw para os títulos do roteiro final caberem em 2 linhas a 360 px (6vw quebrava em 3-4). */
  font-size: min(5.5vw, 2.2rem);
}

/* 02/12 (Iury): só logo, título e botão, com o bloco centralizado na tela. */
.page-shell,
.mode-list .page-shell {
  padding-top: 16px;
  padding-bottom: 16px;
}

.fold,
.mode-list .fold {
  min-height: calc(100vh - 32px);
  min-height: calc(100svh - 32px);
  justify-content: center;
}

.fold-body,
.mode-list .fold-body {
  margin: 0;
  padding-bottom: 0;
  gap: 22px;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.brand .brand-logo {
  width: 72px;
  height: 72px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#single,
#list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#single.is-hidden,
#list.is-hidden {
  display: none;
}

.list-items {
  gap: 14px;
}

.mode-list .group-card {
  gap: 10px;
  padding: 16px;
}

.mode-list .group-name {
  font-size: 1.1rem;
}

.inapp-panel {
  text-align: left;
}

/* Variante B: 4 itens desenhados do vídeo v2 entre o logo e o título (2x2, bolha colorida atrás). */
.illus {
  display: grid;
  grid-template-columns: repeat(2, var(--it));
  justify-content: center;
  gap: 8px 14px;
  --it: min(34vw, 17svh, 150px);
}

.illus .it {
  position: relative;
  width: var(--it);
  height: var(--it);
}

.illus .it::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: var(--bub);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.illus .it svg {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
}

.illus .it:nth-child(1) svg { transform: rotate(-4deg); }
.illus .it:nth-child(4) svg { transform: rotate(4deg); }

/* Variante C: fotos reais em cartões brancos arredondados, no lugar dos desenhos. */
.illus-c .it {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.illus-c .it::before {
  content: none;
}

.illus-c a.it {
  display: block;
  cursor: pointer;
}

.illus-c .it img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.has-illus .fold-body {
  gap: 14px;
}

.has-illus #single {
  gap: 16px;
}

.has-illus .brand {
  flex-direction: row;
  justify-content: center;
}

.has-illus .brand .brand-logo {
  width: 52px;
  height: 52px;
}
