/* ===== Som na Rosa — estilos do site (loja, pedido, personalização) ===== */
:root {
  --vinho: #6e0f2b;
  --vinho-2: #8f1538;
  --rosa: #e8557a;
  --rosa-claro: #ffe3ea;
  --creme: #fff8f4;
  --ouro: #d4a24c;
  --texto: #2b1a1f;
  --texto-suave: #6d5a60;
  --borda: #f0dde2;
  --ok: #2e8b57;
  --erro: #c62839;
  --raio: 18px;
  --sombra: 0 10px 30px rgba(110, 15, 43, .12);
  --f-titulo: 'Playfair Display', Georgia, serif;
  --f-corpo: 'Poppins', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-corpo);
  color: var(--texto);
  background: var(--creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--vinho-2); }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.15; margin: 0 0 .5em; color: var(--vinho); }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.secao { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.secao--rosa { background: linear-gradient(180deg, #fff 0%, var(--rosa-claro) 100%); }
.secao--escura { background: var(--vinho); color: #fff; }
.secao--escura h2 { color: #fff; }
.centro { text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rosa); font-weight: 600; margin-bottom: .6rem; }
.sub { color: var(--texto-suave); max-width: 60ch; margin-inline: auto; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--f-corpo); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn--primario { background: linear-gradient(135deg, var(--rosa), var(--vinho-2)); color: #fff; box-shadow: 0 8px 22px rgba(232, 85, 122, .35); }
.btn--primario:hover { box-shadow: 0 12px 28px rgba(232, 85, 122, .45); }
.btn--contorno { border-color: var(--vinho-2); color: var(--vinho-2); background: transparent; }
.btn--branco { background: #fff; color: var(--vinho); }
.btn--whats { background: #25d366; color: #fff; }
.btn--bloco { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 244, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borda); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--f-titulo); font-weight: 700; font-size: 1.3rem; color: var(--vinho); text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 1.6rem; align-items: center; }
.nav__links a { text-decoration: none; color: var(--texto); font-weight: 500; font-size: .95rem; }
.nav__links .btn { padding: .6rem 1.2rem; color: #fff; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--vinho); cursor: pointer; }
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--creme); border-bottom: 1px solid var(--borda); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .nav__links.aberto { max-height: 420px; }
  .nav__links a { padding: 1rem; width: 100%; text-align: center; }
  .nav__links .btn { width: calc(100% - 2rem); margin: .5rem 1rem 1rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem); background: radial-gradient(ellipse at 80% 20%, var(--rosa-claro), transparent 60%), var(--creme); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero p.sub { margin-inline: 0; font-size: 1.1rem; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__selos { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.8rem; font-size: .9rem; color: var(--texto-suave); }
.hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero__rosa { width: min(240px, 60vw); filter: drop-shadow(0 20px 30px rgba(110, 15, 43, .3)); animation: flutuar 5s ease-in-out infinite; }
.hero__celular {
  position: absolute; right: 2%; bottom: 4%; width: 150px; aspect-ratio: 9/18; border-radius: 26px;
  background: linear-gradient(160deg, #3a0a14, #1a0509); border: 5px solid #222; box-shadow: var(--sombra);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  font-size: .72rem; text-align: center; padding: .8rem; transform: rotate(6deg);
}
.hero__celular strong { font-family: 'Great Vibes', cursive; font-size: 1.6rem; color: #ffb3c4; font-weight: 400; }
.onda-nfc { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 2px solid var(--rosa); opacity: 0; animation: onda 2.4s ease-out infinite; }
.onda-nfc:nth-child(2) { animation-delay: .8s; }
.onda-nfc:nth-child(3) { animation-delay: 1.6s; }
@keyframes onda { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes flutuar { 50% { transform: translateY(-12px) rotate(-2deg); } }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.sub { margin-inline: auto; }
  .hero__acoes, .hero__selos { justify-content: center; }
  .hero__visual { min-height: 320px; order: -1; }
  .hero__celular { width: 120px; right: 6%; }
}

/* Passos */
.passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; counter-reset: passo; }
.passo { background: #fff; border-radius: var(--raio); padding: 1.8rem 1.5rem; box-shadow: var(--sombra); position: relative; }
.passo::before { counter-increment: passo; content: counter(passo); position: absolute; top: -16px; left: 1.5rem; width: 36px; height: 36px; border-radius: 50%; background: var(--rosa); color: #fff; display: grid; place-items: center; font-weight: 700; }
.passo__ico { font-size: 2rem; margin-bottom: .4rem; }
.passo p { color: var(--texto-suave); margin: 0; font-size: .95rem; }

/* Planos */
.planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; align-items: stretch; }
.plano { background: #fff; border-radius: var(--raio); padding: 2rem 1.6rem; border: 2px solid var(--borda); display: flex; flex-direction: column; position: relative; transition: transform .2s; }
.plano:hover { transform: translateY(-4px); }
.plano--destaque { border-color: var(--rosa); box-shadow: 0 16px 40px rgba(232, 85, 122, .25); }
.plano__selo { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--rosa); color: #fff; font-size: .75rem; font-weight: 600; padding: .25rem .9rem; border-radius: 999px; white-space: nowrap; }
.plano__foto { width: calc(100% + 3.2rem); max-width: none; margin: -2rem -1.6rem 1.2rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--raio) - 2px) calc(var(--raio) - 2px) 0 0; }
.opcao-plano__img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.plano__preco { font-family: var(--f-titulo); font-size: 2.2rem; color: var(--vinho); margin: .4rem 0 .8rem; }
.plano ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plano li { padding: .4rem 0 .4rem 1.7rem; position: relative; font-size: .95rem; border-bottom: 1px dashed var(--borda); }
.plano li::before { content: '♥'; position: absolute; left: 0; color: var(--rosa); }
.plano p { color: var(--texto-suave); font-size: .95rem; }

/* Diferenciais / demo */
.dif { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.dif div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--raio); padding: 1.4rem; }
.dif h3 { color: #fff; font-family: var(--f-corpo); font-size: 1.05rem; }
.dif p { color: #f6d9e0; font-size: .92rem; margin: 0; }
.demo-box { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 820px) { .demo-box { grid-template-columns: 1fr; text-align: center; } }

/* FAQ */
.faq { max-width: 760px; margin: 2rem auto 0; }
.faq details { background: #fff; border-radius: 14px; margin-bottom: .8rem; padding: 1.1rem 1.3rem; border: 1px solid var(--borda); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--rosa); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: .8rem 0 0; color: var(--texto-suave); }

/* Rodapé */
.rodape { background: #1e0a10; color: #d9c3c9; padding: 3rem 0 2rem; font-size: .9rem; }
.rodape a { color: #fff; }
.rodape__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.rodape .logo { color: #fff; }
.rodape__fim { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: .8rem; }

/* WhatsApp flutuante */
.whats-flutuante { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); z-index: 60; }
.whats-flutuante svg { width: 30px; height: 30px; fill: #fff; }

/* ===== Formulários ===== */
.pagina-form { padding: 2rem 0 4rem; }
.card { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); padding: clamp(1.3rem, 4vw, 2.2rem); margin-bottom: 1.4rem; }
.card h2 { font-size: 1.4rem; display: flex; align-items: center; gap: .5rem; }
.card__desc { color: var(--texto-suave); font-size: .92rem; margin-top: -.3rem; }
.form-largura { max-width: 760px; margin-inline: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.campo { margin-bottom: 1rem; display: flex; flex-direction: column; }
.campo label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.campo small { color: var(--texto-suave); font-size: .8rem; margin-top: .3rem; }
.campo input, .campo textarea, .campo select {
  font: 400 1rem var(--f-corpo); padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--borda);
  background: #fffdfc; color: var(--texto); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.campo textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--rosa); box-shadow: 0 0 0 4px rgba(232, 85, 122, .15); }
.campo.invalido input, .campo.invalido textarea { border-color: var(--erro); }
.obrig { color: var(--rosa); }
.contador { align-self: flex-end; }
.musica-status { font-size: .85rem; margin-top: .35rem; font-weight: 500; }
.musica-status.ok { color: var(--ok); }
.musica-status.erro { color: var(--erro); }

/* Seleção de plano no pedido */
.opcoes-plano { display: grid; gap: .8rem; }
.opcao-plano { display: flex; gap: .9rem; align-items: center; border: 2px solid var(--borda); border-radius: 14px; padding: 1rem; cursor: pointer; transition: border-color .15s, background .15s; }
.opcao-plano input { accent-color: var(--rosa); width: 20px; height: 20px; flex: none; }
.opcao-plano:has(input:checked) { border-color: var(--rosa); background: #fff5f8; }
.opcao-plano__info { flex: 1; }
.opcao-plano__info strong { display: block; }
.opcao-plano__info span { font-size: .85rem; color: var(--texto-suave); }
.opcao-plano__preco { font-weight: 700; color: var(--vinho); white-space: nowrap; }

/* Opcional vitalício */
.vitalicio { display: flex; align-items: center; gap: .8rem; border: 2px dashed var(--ouro); background: #fffaf0; border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1rem; cursor: pointer; }
.vitalicio input { accent-color: var(--rosa); width: 20px; height: 20px; flex: none; }
.vitalicio span { flex: 1; font-size: .92rem; }
.vitalicio small { display: block; color: var(--texto-suave); font-size: .8rem; }
.vitalicio em { font-style: normal; font-weight: 700; color: var(--vinho); white-space: nowrap; }
.vitalicio:has(input:checked) { border-style: solid; border-color: var(--rosa); background: #fff5f8; }

/* Frete e resumo */
.frete-box { display: grid; gap: .6rem; margin-bottom: 1rem; }
.frete-op { display: flex; align-items: center; gap: .8rem; border: 2px solid var(--borda); border-radius: 12px; padding: .8rem 1rem; cursor: pointer; }
.frete-op input { accent-color: var(--rosa); width: 18px; height: 18px; }
.frete-op:has(input:checked) { border-color: var(--rosa); background: #fff5f8; }
.frete-op span { flex: 1; font-size: .9rem; }
.frete-op small { display: block; color: var(--texto-suave); }
.frete-op b { color: var(--vinho); white-space: nowrap; }
.resumo { border-top: 1px dashed var(--borda); padding-top: .8rem; display: grid; gap: .3rem; }
.resumo div { display: flex; justify-content: space-between; font-size: .95rem; }
.resumo__total { font-size: 1.15rem !important; border-top: 1px solid var(--borda); padding-top: .5rem; margin-top: .3rem; }
.resumo__total b { color: var(--vinho); }

/* Sucesso do pedido */
.sucesso { text-align: center; }
.sucesso__ico { font-size: 3.5rem; }
.sucesso__codigo { font-family: monospace; background: var(--rosa-claro); padding: .3rem .7rem; border-radius: 8px; font-size: .95rem; word-break: break-all; }
.passos-sucesso { text-align: left; display: grid; gap: 1rem; margin: 1.6rem 0; }
.passos-sucesso > div { border: 1.5px solid var(--borda); border-radius: 14px; padding: 1.1rem; }
.passos-sucesso h3 { font-family: var(--f-corpo); font-size: 1rem; margin-bottom: .4rem; }
.copiar { display: flex; gap: .5rem; margin-top: .6rem; }
.copiar input { flex: 1; min-width: 0; font-size: .85rem; padding: .7rem; border-radius: 10px; border: 1px solid var(--borda); background: #faf6f7; }
.copiar button { padding: .7rem 1rem; }

/* Personalização: temas, fontes, fotos */
.temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .7rem; }
.tema-op { cursor: pointer; border-radius: 14px; border: 2.5px solid transparent; padding: 4px; transition: border-color .15s, transform .15s; }
.tema-op input { position: absolute; opacity: 0; pointer-events: none; }
.tema-op:has(input:checked) { border-color: var(--rosa); transform: translateY(-2px); }
.tema-op__amostra { height: 64px; border-radius: 10px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 6px; }
.tema-op__amostra i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }
.tema-op span { display: block; text-align: center; font-size: .8rem; font-weight: 500; margin-top: .3rem; }
.cor-custom { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
.cor-custom input[type=color] { width: 52px; height: 40px; border: 0; padding: 0; background: none; cursor: pointer; }
.fontes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.fonte-op { cursor: pointer; border: 2px solid var(--borda); border-radius: 12px; padding: .8rem .4rem; text-align: center; }
.fonte-op input { position: absolute; opacity: 0; }
.fonte-op:has(input:checked) { border-color: var(--rosa); background: #fff5f8; }
.fonte-op b { display: block; font-size: 1.4rem; font-weight: 500; color: var(--vinho); }
.fonte-op span { font-size: .78rem; color: var(--texto-suave); }

.foto-slot { position: relative; border: 2px dashed var(--borda); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; background: #fffafb; color: var(--texto-suave); font-size: .85rem; padding: .5rem; }
.foto-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-slot input { display: none; }
.foto-slot__ico { font-size: 1.8rem; display: block; }
.foto-slot__rm { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1rem; cursor: pointer; }
.foto-slot__prog { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--rosa); z-index: 2; transition: width .2s; }
.fotos-principais { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 420px; }
.galeria-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .7rem; }

.capitulo-form { border: 1.5px solid var(--borda); border-radius: 16px; padding: 1.2rem; margin-bottom: 1rem; }
.capitulo-form h3 { font-family: var(--f-corpo); font-size: 1rem; color: var(--rosa); }

.preview-mini { border-radius: 16px; padding: 1.6rem 1rem; text-align: center; background: linear-gradient(160deg, var(--c-bg), var(--c-bg2)); color: var(--c-texto); transition: background .3s; margin-bottom: 1rem; }
.preview-mini small { opacity: .8; }
.preview-mini strong { display: block; font-family: var(--f-titulo); font-size: 2rem; color: var(--c-primaria); font-weight: 500; margin: .2rem 0; }
.preview-mini span { display: inline-block; margin-top: .5rem; background: var(--c-primaria); color: var(--c-contraste); padding: .35rem 1rem; border-radius: 999px; font-size: .8rem; }

.barra-acoes { position: sticky; bottom: 0; background: rgba(255, 248, 244, .95); backdrop-filter: blur(8px); padding: .9rem 0; border-top: 1px solid var(--borda); z-index: 40; }
.barra-acoes .container { display: flex; gap: .7rem; max-width: 760px; }
.barra-acoes .btn { flex: 1; padding: .85rem 1rem; }

.aviso { border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-size: .93rem; }
.aviso--info { background: #fff3d6; color: #6b4d00; }
.aviso--erro { background: #fde3e6; color: var(--erro); }
.aviso--ok { background: #e1f4e8; color: #1d5e3a; }

.carregando { display: grid; place-items: center; min-height: 50vh; color: var(--texto-suave); }
.spinner { width: 42px; height: 42px; border: 4px solid var(--rosa-claro); border-top-color: var(--rosa); border-radius: 50%; animation: girar 1s linear infinite; margin: 0 auto 1rem; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #2b1a1f; color: #fff; padding: .85rem 1.3rem; border-radius: 12px; font-size: .92rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: 90vw; text-align: center; }
.toast--on { opacity: 1; transform: translate(-50%, 0); }
.toast--erro { background: var(--erro); }
.toast--ok { background: var(--ok); }

/* Página legal */
.legal { max-width: 760px; margin: 0 auto; padding: 3rem 0; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }

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