/* Layout: página de compra mobile-first, uma coluna estreita de cartões; a cor forte fica só nos botões e no pacote escolhido */
:root {
  --bg: #F7F4F8;
  --surface: #FFFFFF;
  --ink: #1B1420;
  --muted: #6E6577;
  --line: #E7E0EA;
  --brand: #D6246E;
  --brand-ink: #FFFFFF;
  --brand-soft: #FCE7F0;
  --ok: #138A5B;
  --ok-soft: #E3F5EC;
  --warn: #9A5B00;
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img { max-width: 100%; }
a { color: var(--brand); }

.top { max-width: 560px; margin: 0 auto; padding-block: 16px 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font: 700 20px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--brand); }
.top-note { font-size: 12px; color: var(--muted); text-align: right; }

main { max-width: 560px; margin: 0 auto; padding-block: 8px 48px; display: flex; flex-direction: column; gap: 16px; }

.hero { padding-block: 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.hero-tight { padding-block: 12px 0; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
h1 { margin: 0; font: 700 clamp(28px, 7vw, 38px)/1.1 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
h2 { margin: 0 0 14px; font: 700 20px/1.2 var(--display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.lede { margin: 0; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 14px; }

.offer-price { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); padding: 16px 18px; margin-top: 6px; }
.offer-qty { font-weight: 700; }
.offer-price strong { font: 700 40px/1.1 var(--display); color: var(--brand); font-variant-numeric: tabular-nums; }
.offer-note { font-size: 13px; color: var(--muted); }

.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; }

.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pack { position: relative; font: inherit; color: inherit; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 14px 12px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; }
.pack:hover { border-color: var(--brand); }
.pack.is-selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand) inset; }
.pack-tag { position: absolute; top: -10px; left: 12px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.pack-qty { font: 700 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.pack-unit { font-size: 13px; color: var(--muted); }
.pack-price { margin-top: 8px; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.pack-per { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.checkout { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 700; }
.field-label em { font-weight: 500; font-style: normal; color: var(--muted); }
.field-hint { font-size: 12px; color: var(--muted); }
input, textarea { font: inherit; width: 100%; min-width: 0; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[aria-invalid="true"] { border-color: #C2342E; }
textarea { font-size: 13px; word-break: break-all; resize: none; }
.at-wrap { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.at-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.at { padding-left: 14px; font-weight: 700; color: var(--muted); }
.at-wrap input { border: 0; box-shadow: none; padding-left: 4px; }
.at-wrap input:focus { box-shadow: none; }

.preview { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 14px; margin-block: 10px 14px; }
.preview img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; }
.muted { color: var(--muted); }
.warn { color: var(--warn); font-weight: 600; }

.summary { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-weight: 600; }
.summary strong { font: 700 22px/1 var(--display); font-variant-numeric: tabular-nums; }

.btn { font: 700 17px/1 var(--body); border: 0; border-radius: 14px; padding: 17px 20px; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-block { width: 100%; }
.btn:focus-visible, .pack:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #9B1C1C; font-size: 14px; font-weight: 600; }
.fine { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.trust li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; color: var(--muted); }
.trust strong { display: block; color: var(--ink); font-size: 14px; }

.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.faq h2 { margin-bottom: 4px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 8px 0 0; color: var(--muted); }

.pix { text-align: center; display: flex; flex-direction: column; gap: 14px; }
.pix h2 { justify-content: center; margin: 0; }
.pix .field { text-align: left; }
.qr { align-self: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.waiting { margin: 0; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.done { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.done h2 { margin: 0; }
.check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 32px; font-weight: 700; }

.foot { max-width: 560px; margin: 0 auto; padding-block: 8px 32px; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 360px) {
  .steps { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }

/* Botão flutuante do WhatsApp (igual ao .zc-wa do zc.css) */
.zc-wa { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37, 211, 102, .45); z-index: 900 }
