/* Família Viel — loja de ingressos · tema noite na vinícola */


:root {
  --bg: #0f0809;
  --bg-2: #160b0e;
  --card: #1b0f12;
  --card-2: #241418;
  --line: rgba(255, 236, 236, .09);
  --line-2: rgba(255, 236, 236, .16);
  --text: #f7eeee;
  --muted: #b09c9e;
  --dim: #7d6b6d;
  --wine: #931f21;
  --wine-hi: #c8363a;
  --rose: #ff8f8a;
  --gold: #e6c89c;
  --ok: #8fd19e;
  --error: #ff8a80;
  --display: "Bricolage", "Geist", system-ui, sans-serif;
  --ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 28px;
  --r: 16px;
  --r-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.preview-bar { background: var(--gold); color: #2a1a0c; text-align: center; font-size: .8125rem; font-weight: 500; padding: 8px var(--gutter); }

/* ------------------------------------------------------------ capa */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-glow {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 18% 22%, rgba(200, 54, 58, .55), transparent 70%),
    radial-gradient(45% 55% at 85% 12%, rgba(147, 31, 33, .5), transparent 70%),
    radial-gradient(50% 60% at 70% 85%, rgba(230, 200, 156, .14), transparent 70%),
    linear-gradient(180deg, #2a0c12 0%, #160a0d 60%, var(--bg) 100%);
}
.hero.has-img .hero-glow { background: linear-gradient(180deg, rgba(15,8,9,.25) 0%, rgba(15,8,9,.45) 40%, rgba(15,8,9,.92) 85%, var(--bg) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 3px 3px; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }

.top { max-width: 1240px; width: 100%; margin: 0 auto; padding: 22px var(--gutter); }
.logo { width: 76px; height: auto; }

.hero-body { max-width: 1240px; width: 100%; margin: auto auto 0; padding: 48px var(--gutter) 64px; }
@media (min-width: 1000px) { .hero-body { padding-right: calc(var(--gutter) + 460px); padding-bottom: 88px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .875rem; font-weight: 500; }
.chip:empty { display: none; }
.chip-date { background: var(--text); color: #1a0d10; border-color: transparent; font-weight: 600; }
.hero h1 { font: 800 clamp(3rem, 9vw, 7rem)/.92 var(--display); letter-spacing: -.035em; max-width: 12ch; text-wrap: balance; }
.hero-sub { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(247,238,238,.82); max-width: 44ch; }
.hero-place { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; color: var(--muted); font-size: .9375rem; }
.hero-place svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--gold); }
.hero-place #ev-venue { color: var(--text); font-weight: 500; }
.addr:not(:empty)::before { content: " — "; }

/* ------------------------------------------------------------ estrutura */
.layout { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 64px; display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; }
  .buy { grid-column: 2; grid-row: 1; margin-top: -420px; position: sticky; top: 24px; z-index: 2; }
  .info { grid-column: 1; grid-row: 1; padding-top: 8px; }
}
@media (max-width: 999px) { .buy { margin-top: -32px; position: relative; z-index: 2; } }

/* ------------------------------------------------------------ cartão de compra */
.card {
  background: linear-gradient(180deg, rgba(36,20,24,.92), rgba(27,15,18,.96));
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 22px; }
.progress i { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); transition: background-color .3s var(--ease); }
.progress[data-at="1"] i:nth-child(-n+1),
.progress[data-at="2"] i:nth-child(-n+2),
.progress[data-at="3"] i { background: linear-gradient(90deg, var(--wine-hi), var(--rose)); }

.pane { animation: pane-in .35s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } }
.eyebrow { font-size: .8125rem; font-weight: 600; color: var(--rose); }
.label { font-size: .8125rem; font-weight: 500; color: var(--muted); margin: 22px 0 10px; }
.pane-title { font: 700 1.6rem/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.pane-lead { color: var(--muted); font-size: .9375rem; margin-bottom: 20px; }
.center { text-align: center; }

.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.price strong { font: 800 2.3rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: .875rem; margin-left: 4px; }
.lot-meta { color: var(--dim); font-size: .8125rem; margin-top: 6px; }
.lot-meta b { color: var(--rose); font-weight: 600; }

.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); flex: none; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background-color .15s, transform .1s; }
.stepper button:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.stepper button:active:not(:disabled) { transform: scale(.92); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
#qty { min-width: 34px; text-align: center; font: 700 1.2rem var(--display); font-variant-numeric: tabular-nums; }

.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method-box { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px; border-radius: var(--r); background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.method-box svg { width: 22px; height: 22px; color: var(--muted); margin-bottom: 8px; transition: color .2s; }
.m-title { font-weight: 600; }
.m-desc { font-size: .8125rem; color: var(--muted); }
.method:hover .method-box { border-color: var(--line-2); }
.method input:checked + .method-box { border-color: var(--rose); background: rgba(200,54,58,.12); box-shadow: 0 0 0 3px rgba(255,143,138,.12); }
.method input:checked + .method-box svg { color: var(--rose); }
.method input:focus-visible + .method-box { outline: 2px solid var(--gold); outline-offset: 2px; }

.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.total { display: flex; flex-direction: column; }
.total span { font-size: .8125rem; color: var(--muted); }
.total strong { font: 700 1.5rem/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--wine-hi), var(--wine)); color: #fff; font: 600 1rem var(--ui); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(200,54,58,.7), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .15s var(--ease), box-shadow .2s, filter .2s; white-space: nowrap;
}
.cta:hover { filter: brightness(1.08); color: #fff; box-shadow: 0 14px 36px -10px rgba(200,54,58,.85), inset 0 1px 0 rgba(255,255,255,.2); }
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .7; cursor: progress; }
.cta.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta.wide { display: flex; width: 100%; }
.ghost { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.ghost:hover { background: rgba(255,255,255,.1); }

.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font-size: .875rem; padding: 0; margin-bottom: 14px; cursor: pointer; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--text); }

/* campos */
.fld { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); margin-top: 14px; }
.fld input {
  display: block; width: 100%; height: 50px; margin-top: 6px; padding: 0 16px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); font: 400 1rem var(--ui);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.fld input::placeholder { color: var(--dim); }
.fld input:hover { border-color: var(--line-2); }
.fld input:focus { outline: none; border-color: var(--rose); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(255,143,138,.12); }
.fld input[aria-invalid="true"] { border-color: var(--error); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 400px) { .two { grid-template-columns: 1fr; } }
.err { display: block; color: var(--error); font-size: .8125rem; margin-top: 6px; font-weight: 500; }
.err:empty { display: none; }
.names { margin-top: 6px; }
.names .label { margin-bottom: 0; }
.name-fld { margin-top: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: .8125rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--wine-hi); flex: none; }
.alert { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255,138,128,.1); border: 1px solid rgba(255,138,128,.3); color: var(--error); font-size: .875rem; }

/* Pix */
.qr-tile { background: #fff; border-radius: 22px; padding: 14px; width: fit-content; margin: 0 auto; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
#pix-img { width: 220px; height: 220px; image-rendering: pixelated; }
.pix-amount { text-align: center; font: 800 2rem/1 var(--display); letter-spacing: -.03em; margin: 20px 0 16px; font-variant-numeric: tabular-nums; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); font: 400 .8125rem var(--ui); }
.timer { margin-top: 20px; }
.timer-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.timer-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--wine-hi), var(--rose)); transform-origin: left; transition: transform 1s linear; }
.timer p { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .875rem; color: var(--muted); }
.timer b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(255,143,138,.6); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(255,143,138,0); } 100% { box-shadow: 0 0 0 0 rgba(255,143,138,0); } }
.timer.ok .pulse { background: var(--ok); animation: none; }
.timer.ok p { color: var(--ok); }

.sim { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; border-radius: var(--r); border: 1px dashed rgba(230,200,156,.4); background: rgba(230,200,156,.06); font-size: .8125rem; color: var(--gold); }

/* sucesso + ingressos */
.success { width: 72px; height: 72px; margin: 4px auto 16px; color: var(--ok); }
.success svg { width: 72px; height: 72px; stroke-width: 2.5; }
.success circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s var(--ease) forwards; }
.success path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tickets { display: grid; gap: 12px; margin-top: 18px; }
.tk { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.tk-qr { width: 104px; height: 104px; flex: none; background: #fff; border-radius: 14px; padding: 6px; display: grid; place-items: center; }
.tk-qr svg { width: 92px; height: 92px; }
.tk-qr svg path, .tk-qr svg rect { fill: #1a0d10; stroke: none; }
.tk-info { min-width: 0; }
.tk-name { font: 700 1.15rem/1.2 var(--display); letter-spacing: -.01em; }
.tk-meta { font-size: .8125rem; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tk-dl { display: inline-block; margin-top: 8px; font-size: .8125rem; font-weight: 500; }
.tk-flag { font-size: .75rem; font-weight: 600; color: #1a0d10; text-align: center; padding: 4px; }
.tk.off { opacity: .55; }
@media (max-width: 380px) { .tk-qr { width: 88px; height: 88px; } .tk-qr svg { width: 76px; height: 76px; } }

.secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: .75rem; color: var(--dim); }
.secure svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------ informações */
.info { display: grid; gap: 44px; }
.block h2 { font: 700 1.5rem var(--display); letter-spacing: -.02em; margin-bottom: 16px; }
.desc { color: rgba(247,238,238,.8); font-size: 1.0625rem; max-width: 62ch; }
.desc p + p { margin-top: 1em; }

.lots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lots li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 16px 18px; border-radius: var(--r); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.lots .l-name { font-weight: 600; }
.lots .l-price { font: 700 1.15rem var(--display); font-variant-numeric: tabular-nums; }
.lots .l-state { grid-column: 1 / -1; font-size: .8125rem; color: var(--muted); }
.lots li.on { border-color: rgba(255,143,138,.45); background: rgba(200,54,58,.1); }
.lots li.on .l-state { color: var(--rose); }
.lots li.gone .l-name, .lots li.gone .l-price { color: var(--dim); text-decoration: line-through; }

.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: how; }
.how li { position: relative; padding: 16px 18px 16px 60px; border-radius: var(--r); background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--muted); font-size: .9375rem; counter-increment: how; }
.how li::before { content: counter(how); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--text); font: 700 .875rem var(--display); }
.how b { color: var(--text); font-weight: 600; }

.foot { text-align: center; color: var(--dim); font-size: .8125rem; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* ------------------------------------------------------------ celular */
.mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(36,20,24,.85); border: 1px solid var(--line-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); transition: transform .3s var(--ease), opacity .3s; }
.mbar div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.mbar span { font-size: .75rem; color: var(--muted); }
.mbar strong { font: 700 1.2rem var(--display); font-variant-numeric: tabular-nums; }
.mbar .cta { min-height: 46px; padding: 0 22px; }
.mbar.away { transform: translateY(140%); opacity: 0; }
@media (min-width: 1000px) { .mbar { display: none !important; } }

body.is-loading .card { opacity: .5; }

/* páginas de texto (privacidade, erro) */
.page { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter); }
.page h1 { font: 800 clamp(2rem, 6vw, 3rem)/1.05 var(--display); letter-spacing: -.03em; margin-bottom: 18px; }
.page h2 { font: 700 1.3rem var(--display); margin: 28px 0 8px; }
.page p { color: rgba(247,238,238,.82); margin-bottom: 1em; }
.bar { padding: 22px var(--gutter); max-width: 720px; margin: 0 auto; }
.bar img { width: 76px; height: auto; }
.btn-sec { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .success circle, .success path { stroke-dashoffset: 0; } }

/* ajustes de celular */
html, body { overflow-x: clip; }
@media (max-width: 999px) {
  .hero { min-height: 0; }
  .hero-body { padding-top: 24px; padding-bottom: 72px; }
}
@media (max-width: 480px) {
  .card { padding: 20px 18px; border-radius: 24px; }
  .price strong { font-size: 1.9rem; }
  .price span { display: block; margin: 2px 0 0; }
  .stepper button { width: 38px; height: 38px; }
  .method-box { padding: 12px; }
  .m-desc { font-size: .75rem; }
}
.buy, .info { min-width: 0; } .copy input { width: 0; }

/* Pix: QR ainda sendo gerado */
.qr-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 248px; height: 248px; margin: 0 auto; border-radius: 22px; border: 1px dashed var(--line-2); color: var(--muted); font-size: .875rem; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--rose); animation: spin .8s linear infinite; }
.pix-alt { display: block; text-align: center; margin: -4px 0 16px; font-size: .875rem; font-weight: 500; }
