/* Funil */
.funnel { background: var(--cream); min-height: 100dvh; }
.funnel::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(500px 360px at 100% 0%, rgba(255,160,90,.35), transparent 70%),
              radial-gradient(460px 380px at 0% 100%, rgba(255,120,150,.28), transparent 70%);
}

.f-top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: 10px 14px 0; background: rgba(255,247,240,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.f-back { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 1.1rem; transition: opacity .2s; }
.f-back[hidden] { display: block; visibility: hidden; }
.f-count { font-size: .78rem; font-weight: 700; color: var(--ink-3); text-align: right; white-space: nowrap; }
.f-bar { grid-column: 1 / -1; height: 5px; background: var(--cream-2); border-radius: 9px; overflow: hidden; margin: 10px 0 0; }
.f-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 9px; transition: width .5s cubic-bezier(.3,.9,.3,1); }

.f-main { max-width: 560px; margin: 0 auto; padding: 28px 18px 60px; }
.f-step { display: none; }
.f-step.on { display: block; animation: stepIn .45s cubic-bezier(.2,.8,.2,1); }
.f-step.back.on { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } }
.f-step h1 { font-size: clamp(2rem, 7.4vw, 2.7rem); margin: 10px 0 10px; }
.f-sub { color: var(--ink-2); margin: 0 0 24px; }
.f-label { font-weight: 700; margin: 24px 0 10px; }

/* opções */
.opts { display: grid; gap: 10px; }
.opts.grid2 { grid-template-columns: 1fr 1fr; }
.opts.grid3 { grid-template-columns: 1fr 1fr; }
.opts.row { grid-template-columns: repeat(3, 1fr); }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; border-radius: 16px; text-align: left;
  background: var(--paper); border: 1.5px solid var(--line); box-shadow: 0 1px 2px rgba(80,20,10,.04);
  font-weight: 600; font-size: 1rem; transition: transform .12s, border-color .15s, box-shadow .15s, background .15s;
}
.opt:hover { border-color: #ffc29c; transform: translateY(-1px); }
.opt .e { font-size: 1.5rem; line-height: 1; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); flex: none; transition: background .15s; }
.opt small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8rem; margin-top: 2px; }
.opt::after { content: ""; margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; transition: all .15s; }
.opt[aria-checked="true"] { border-color: var(--rose); background: #fff5f6; box-shadow: 0 0 0 3px rgba(229,37,79,.12); }
.opt[aria-checked="true"] .e { background: var(--grad); }
.opt[aria-checked="true"]::after { border-color: var(--rose); background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.grid2 .opt, .grid3 .opt, .row .opt { flex-direction: column; text-align: center; gap: 8px; padding: 16px 10px; font-size: .94rem; }
.grid2 .opt::after, .grid3 .opt::after, .row .opt::after { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; margin: 0; background-size: 11px; }
.row .opt { padding: 14px 8px; }
.row .opt .e { width: 36px; height: 36px; font-size: 1.2rem; }

/* campos */
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-weight: 700; font-size: .94rem; margin-bottom: 8px; }
.field i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px;
  padding: 15px 16px; font: 500 1rem/1.45 var(--sans); color: var(--ink); resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.field input { min-height: 54px; }
.field input::placeholder, .field textarea::placeholder { color: #c2a9a2; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,31,.14); }
.field.err input, .field.err textarea { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(229,37,79,.12); }
.next { margin-top: 10px; }
.fine { font-size: .8rem; color: var(--ink-3); text-align: center; margin: 14px 0 0; }

.meter { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; font-size: .84rem; color: var(--ink-2); }
.meter-bar { height: 8px; background: var(--cream-2); border-radius: 9px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 4%; background: var(--grad); border-radius: 9px; transition: width .3s; }

.summary { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 22px; }
.summary span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; }

/* gerando */
.gen { text-align: center; padding-top: 30px; }
.gen h1 { margin: 26px 0 26px; }
.disc { width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; background: repeating-radial-gradient(circle, #2a1210 0 2px, #3a1a16 2px 4px); display: grid; place-items: center; animation: spin 2.4s linear infinite; box-shadow: var(--shadow-lg); }
.disc span { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.5rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-list { list-style: none; padding: 0; margin: 0 auto; max-width: 340px; text-align: left; display: grid; gap: 12px; }
.gen-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-weight: 600; transition: color .3s; }
.gen-list li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: all .3s; }
.gen-list li.doing { color: var(--ink); }
.gen-list li.doing::before { border-color: var(--orange); border-top-color: transparent; animation: spin .8s linear infinite; }
.gen-list li.done { color: var(--ink); }
.gen-prog { display: flex; align-items: center; gap: 12px; max-width: 340px; margin: 26px auto 0; }
.gen-bar { flex: 1; height: 10px; background: var(--cream-2); border-radius: 9px; overflow: hidden; }
.gen-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 9px; }
.gen-prog b { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: var(--rose); }
.gen-note { max-width: 340px; margin: 14px auto 0; color: var(--ink-3); font-size: .88rem; }
.gen-list li.done::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* resultado (player, preço e modal ficam no style.css, compartilhados com o checkout) */
.center-micro { justify-content: center; margin: 14px 0 28px; }
.restart { display: block; margin: 26px auto 0; background: none; border: 0; color: var(--ink-3); text-decoration: underline; font-size: .88rem; }


@media (min-width: 560px) {
  .opts.grid3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .f-top { padding: 14px 28px 0; }
  .f-main { padding-top: 48px; }
  .opts[data-group="para"], .opts[data-group="ocasion"] { grid-template-columns: 1fr 1fr; }
}

.f-top .brand { justify-self: center; gap: 7px; }
.f-top .brand .iso { height: 30px; }
.f-top .brand .word { height: 16px; }

/* order bump */
.bump { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; border: 2px solid var(--line); background: var(--paper); margin: 0 0 12px; }
.bump.gift { border-color: #bfe8d2; background: #f2fbf6; }
.bump.pick { cursor: pointer; border-color: #ffd3a8; background: #fffaf3; transition: box-shadow .15s, border-color .15s; }
.bump.pick.on { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,31,.14); }
.bump.pick input { position: absolute; opacity: 0; pointer-events: none; }
.bump.pick:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.bump-check { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #e0b38f; flex: none; margin-top: 2px; background: #fff center/14px no-repeat; transition: all .15s; }
.bump-check.on, .bump.pick.on .bump-check { border-color: var(--green); background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.bump.pick.on .bump-check { border-color: var(--orange); background-color: var(--orange); }
.bump-body { flex: 1; min-width: 0; }
.bump-body p { margin: 6px 0 0; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.bump-tag { display: inline-block; background: var(--rose); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }
.bump-title { font-size: 1rem; }
.bump-title s, .bump-price s { color: var(--ink-3); font-weight: 500; font-size: .86rem; }
.bump-title em { font-style: normal; color: var(--green); font-weight: 800; }
.bump-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.bump-price { background: #ffe3c2; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.bump-price em { font-style: normal; font-weight: 800; color: #b45200; }
.field-hint { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 6px; }
.bump-note { font-size: .86rem; color: var(--ink-2); background: #fff8ec; border: 1px solid #ffe2b8; border-radius: 14px; padding: 12px 14px; margin: 4px 0 12px; }
.bump-total { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #8a5200; background: #fff8ec; border: 1px solid #ffe2b8; border-radius: 14px; padding: 10px 14px; }
.bump-total[hidden], .bump[hidden] { display: none; }
.bump-total b { background: #ffb020; color: #fff; border-radius: 999px; padding: 4px 12px; }
.pb-list em.plus { color: var(--ink); }

/* pack opcional no checkout */
.pack { margin: 6px 0 16px; }
.pack-h { font: 600 1.1rem/1.3 var(--serif); color: var(--rose-2); margin: 0 0 10px; }
.pack-list { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; color: var(--ink-2); line-height: 1.6; }
.pack-tag { display: inline-block; margin-top: 8px; background: var(--rose-2); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.pack-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #e8f7ef; border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.pack-total s { color: var(--ink-3); font-weight: 500; font-size: .86rem; }
