/* Checkout · Pequenos Escolhidos — mesma identidade da landing (noite teal + papel creme) */
:root {
  --night: #14332F; --night-2: #1B433D; --teal: #1F5F58;
  --paper: #FBF4E4; --paper-2: #F5EBD3; --cream: #F3E4C2;
  --gold: #EFB94A; --terra: #D1582F; --terra-dark: #B5461F;
  --ink: #1E2A28; --ink-soft: #55655F; --on-night: #F7EEDC; --on-night-soft: rgba(247,238,220,.74);
  --line: rgba(30,42,40,.12); --ok: #2E7D5B; --err: #C0392B;
  --font-display: "Fraunces", Georgia, serif; --font-body: "Nunito", system-ui, sans-serif; --font-cover: "Lilita One", "Nunito", sans-serif;
  --radius: 16px; --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--night); color: var(--on-night); border-bottom: 1px solid rgba(247,238,220,.14); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.brand-name em { font-style: italic; color: var(--gold); }
.secure { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--on-night-soft); white-space: nowrap; }
.secure svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- passos ---------- */
.stepper { max-width: 1120px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 32px) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stepper li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); }
.stepper li::before { content: attr(data-n); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: 12px; }
.stepper li.is-active { color: var(--ink); }
.stepper li.is-active::before { background: var(--terra); border-color: var(--terra); color: #fff; }
.stepper li.is-done::before { background: var(--ok); border-color: var(--ok); color: #fff; content: "✓"; }
.stepper { padding-left: 0; }
.stepper li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { max-width: 1120px; margin: 10px auto 0; padding: 0 clamp(16px, 4vw, 32px); }
.progress i { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress b { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--terra), var(--gold)); transition: width .5s var(--ease); }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 32px) 80px; display: grid; gap: 22px; }
@media (min-width: 960px) { .wrap { grid-template-columns: 1.25fr .85fr; gap: 40px; align-items: start; } .summary { position: sticky; top: 74px; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: 0 16px 40px -30px rgba(30,42,40,.35); }
.step[hidden] { display: none; }
.step { animation: stepIn .45s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step-title { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; }
.step-sub { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }
.eyebrow { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }

/* ---------- campos ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 800; }
.field label small { font-weight: 600; color: var(--ink-soft); }
.input { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,95,88,.14); }
.field.is-invalid .input { border-color: var(--err); }
.field .msg { font-size: 12.5px; color: var(--err); min-height: 0; }
.field .msg:empty { display: none; }
.row { display: grid; gap: 12px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: 2fr 1fr 1fr; } .row-cep { grid-template-columns: 1fr 2fr 1fr; } }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355655F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; transition: all .2s; }
.chip[aria-pressed="true"] { background: var(--terra); border-color: var(--terra); color: #fff; }

/* formato */
.formats { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 560px) { .formats { grid-template-columns: repeat(3, 1fr); } }
.format { position: relative; display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.format input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.format b { font-size: 14.5px; }
.format span { font-size: 12.5px; color: var(--ink-soft); }
.format strong { font-family: var(--font-display); font-size: 18px; color: var(--terra); }
.format:has(input:checked) { border-color: var(--teal); background: #F2FAF7; box-shadow: 0 0 0 3px rgba(31,95,88,.12); }
.format .tag { position: absolute; top: -9px; right: 10px; background: var(--gold); color: var(--night); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }

/* foto */
.dropzone { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 14px; border: 2px dashed rgba(31,95,88,.45); border-radius: 14px; background: #F7FBF9; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone.is-over { border-color: var(--terra); background: #FFF6F0; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .thumb { width: 96px; height: 120px; border-radius: 10px; background: linear-gradient(180deg, #E7EEF0, #D8E3E6); display: grid; place-items: center; overflow: hidden; }
.dropzone .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dropzone .thumb svg { width: 60%; height: 70%; fill: none; stroke: var(--teal); stroke-width: 2; opacity: .55; }
.dropzone b { display: block; font-size: 15px; }
.dropzone p { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.dropzone .btn-mini { margin-top: 8px; }
.tips { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-soft); }
.tips li::before { content: "✓ "; color: var(--ok); font-weight: 800; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 6px; font-size: 13.5px; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-terra { background: var(--terra); box-shadow: 0 10px 24px -12px rgba(209,88,47,.8); }
.btn-terra:hover { background: var(--terra-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-block { width: 100%; }
.btn-mini { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; background: #fff; color: var(--teal); border: 1.5px solid rgba(31,95,88,.35); }
.actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.actions .btn-terra { flex: 1 1 220px; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* entrega */
.ship { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); margin: 6px 0 16px; }
.ship-badge { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: #FFDD00; color: #0A3D91; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-align: center; line-height: 1.1; border: 2px solid #0A3D91; }
.ship-badge svg { width: 22px; height: 22px; stroke: #0A3D91; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ship b { display: block; font-size: 15px; }
.ship span { font-size: 13px; color: var(--ink-soft); }
.ship strong { margin-left: auto; font-family: var(--font-display); font-size: 20px; white-space: nowrap; }

/* pagamento */
.paytabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; background: var(--paper-2); border-radius: 14px; margin-bottom: 18px; }
.paytab { min-height: 52px; border: 0; border-radius: 10px; background: transparent; font-weight: 800; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-soft); transition: all .2s; }
.paytab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(30,42,40,.4); }
.paytab svg { width: 20px; height: 20px; }
.paytab small { font-weight: 700; font-size: 11px; color: var(--ok); }
.pix-box { text-align: center; display: grid; gap: 12px; justify-items: center; }
.pix-box img { width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.pix-payload { width: 100%; display: flex; gap: 8px; }
.pix-payload input { flex: 1; min-width: 0; font-size: 12px; }
.pix-status { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink-soft); font-size: 14px; }
.pix-status .spinner { width: 16px; height: 16px; border: 2.5px solid rgba(31,95,88,.25); border-top-color: var(--teal); border-radius: 50%; animation: spin .9s linear infinite; }
.pix-steps { margin: 4px 0 0; padding-left: 18px; text-align: left; font-size: 13.5px; color: var(--ink-soft); }
.card-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }
.field.rel { position: relative; }
.safe-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.safe-line svg { width: 16px; height: 16px; stroke: var(--ok); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.alert { padding: 12px 14px; border-radius: 12px; background: #FDECEA; color: #7A1E14; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.alert:empty { display: none; }

/* ---------- resumo ---------- */
.summary-card { background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: 20px; box-shadow: 0 30px 60px -36px rgba(20,51,47,.8); }
.summary-head { display: flex; gap: 14px; align-items: center; }
.summary-cover { position: relative; width: 92px; flex: none; border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: 0 12px 24px -10px rgba(0,0,0,.6); }
.summary-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.summary-cover text { font-family: var(--font-cover); font-size: 74px; letter-spacing: 2px; fill: #1E4B52; paint-order: stroke fill; stroke: rgba(255,255,255,.35); stroke-width: 1.5px; }
.summary-head b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; }
.summary-head span { font-size: 13px; color: var(--on-night-soft); }
.summary-bonus { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed rgba(247,238,220,.2); list-style: none; display: grid; gap: 6px; font-size: 13px; }
.summary-bonus li::before { content: "Bônus"; display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--night); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lines { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(247,238,220,.14); display: grid; gap: 8px; font-size: 14px; }
.lines div { display: flex; justify-content: space-between; gap: 10px; color: var(--on-night-soft); }
.lines .total { color: var(--on-night); font-weight: 800; font-size: 18px; padding-top: 8px; border-top: 1px solid rgba(247,238,220,.14); }
.lines .total strong { font-family: var(--font-display); font-size: 24px; color: var(--gold); }
.lines .inst { font-size: 12.5px; justify-content: flex-end; }
.seals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 16px; font-size: 12px; font-weight: 700; color: var(--on-night-soft); }
.seals div { display: flex; align-items: center; gap: 7px; }
.seals svg { width: 16px; height: 16px; flex: none; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.asaas-seal { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding: 10px; border-radius: 10px; background: rgba(247,238,220,.06); font-size: 12px; color: var(--on-night-soft); }
.asaas-seal svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 2; }
.asaas-seal b { color: var(--on-night); }
/* resumo compacto no celular */
.summary-mobile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--night); color: var(--on-night); font-size: 14px; }
.summary-mobile strong { font-family: var(--font-display); font-size: 20px; color: var(--gold); }
.summary-mobile button { background: transparent; border: 1px solid rgba(247,238,220,.3); color: var(--on-night); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 800; cursor: pointer; }
@media (min-width: 960px) { .summary-mobile { display: none; } .summary-card { display: block !important; } }
@media (max-width: 959px) { .summary { order: -1; } .summary-card { display: none; margin-top: 10px; } .summary-card.is-open { display: block; } }

/* ---------- rodapé ---------- */
.foot { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 40px; font-size: 12px; color: var(--ink-soft); text-align: center; }
.foot a { color: inherit; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--night); color: var(--on-night); padding: 12px 18px; border-radius: 12px; font-weight: 800; font-size: 14px; z-index: 100; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); max-width: 92vw; text-align: center; opacity: 0; transition: opacity .3s; pointer-events: none; }
#toast.show { opacity: 1; }

/* obrigado */
.thanks { max-width: 720px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 80px; }
.check { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
.check svg { width: 44px; height: 44px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.thanks h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 5vw, 40px); text-align: center; margin: 0 0 8px; line-height: 1.1; }
.thanks .lead { text-align: center; color: var(--ink-soft); margin: 0 0 24px; }
.next { display: grid; gap: 12px; }
.next li { list-style: none; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.next li i { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-style: normal; font-weight: 800; color: var(--terra); }
.next b { display: block; }
.next span { font-size: 14px; color: var(--ink-soft); }
