:root {
    --night: #0e0804;
    --panel: #1a110a;
    --sand: #f3e6cf;
    --gold: #eab65c;
    --serif: "Archivo", "Arial Narrow", Arial, sans-serif;
    --cream: #efe3cc;
    --ink: #1b130b;
    --brasa: #d2452b;
    --sans: "Hanken Grotesk", system-ui, sans-serif
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--night);
    color: var(--sand);
    scrollbar-width: none;
    -ms-overflow-style: none
}

html {
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none
}

body {
    font-family: var(--sans);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased
}

html.is-loading {
    overflow: hidden
}

#smooth-wrapper {
    position: fixed;
    inset: 0;
    overflow: hidden
}

#smooth-content {
    width: 100%;
    overflow-x: clip
}

html.native-scroll #smooth-wrapper {
    position: static;
    inset: auto;
    overflow: visible
}

img {
    display: block;
    max-width: 100%
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px
}

.sans {
    font-family: var(--sans)
}

::selection {
    background: var(--gold);
    color: var(--ink)
}

.ln {
    display: block;
    overflow: hidden;
    padding-block: .08em;
    margin-block: -.08em
}

.ln>span {
    display: block;
    will-change: transform
}

.display .ln>span {
    width: max-content
}

.display {
    font-family: var(--serif);
    font-stretch: 66%;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .005em;
    line-height: .86;
    margin: 0
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--night);
    pointer-events: none
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
    isolation: isolate;
    background: var(--night)
}

.hero__media {
    position: absolute;
    left: 0;
    right: 0;
    top: -12%;
    height: 124%;
    will-change: transform
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05)
}

.hero__shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 75% at 50% 48%, rgba(14, 8, 4, .38), rgba(14, 8, 4, .8) 100%), linear-gradient(180deg, rgba(14, 8, 4, .55), rgba(14, 8, 4, 0) 32%, rgba(14, 8, 4, .75) 100%)
}

.hero__grain {
    position: absolute;
    inset: -20%;
    opacity: .1;
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: grain .9s steps(1) infinite;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>")
}

@keyframes grain {
    0% {
        transform: translate(0, 0)
    }

    20% {
        transform: translate(-3%, 2%)
    }

    40% {
        transform: translate(2%, -3%)
    }

    60% {
        transform: translate(-2%, -1%)
    }

    80% {
        transform: translate(3%, 3%)
    }
}

.hero__dip {
    position: absolute;
    inset: 0;
    background: var(--night);
    opacity: 0;
    pointer-events: none
}

.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: max(24px, env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom))
}

.hero__logos {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center
}

.logo--pulse {
    display: block;
    width: max-content;
    font: 900 clamp(80px, min(42vw, 32svh), 310px)/.8 var(--serif);
    font-stretch: 62%;
    letter-spacing: .02em;
    color: var(--gold);
    text-shadow: 0 8px 50px rgba(0, 0, 0, .55)
}

.pulseline {
    width: min(66vw, 360px);
    height: 30px;
    margin: clamp(8px, 2svh, 18px) 0 clamp(10px, 2.4svh, 20px);
    overflow: visible
}

.pulseline path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke
}

.invite,
.when {
    margin: 0;
    color: var(--sand);
    text-shadow: 0 1px 14px rgba(0, 0, 0, .55)
}

.invite {
    margin-top: clamp(20px, 4.5svh, 44px);
    font-size: clamp(11px, 3.1vw, 15px);
    letter-spacing: .28em;
    line-height: 1.9
}

.when {
    margin-top: .9em;
    color: var(--gold);
    font-weight: 500;
    font-size: clamp(12px, 3.4vw, 16px);
    letter-spacing: .24em
}

.invite .ln>span,
.when .ln>span {
    padding-left: .28em
}

.scrollcue {
    margin-top: clamp(20px, 5svh, 46px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44px;
    padding: 6px 0;
    color: var(--gold);
    text-decoration: none
}

.scrollcue__line {
    position: relative;
    display: block;
    width: 1px;
    height: clamp(34px, 7svh, 62px);
    overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(234, 182, 92, .6))
}

.scrollcue__line i {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 42%;
    background: linear-gradient(180deg, transparent, #fff3d4)
}

.scrollcue svg {
    width: 18px;
    height: 11px;
    margin-top: -1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* SOBRE */
.about {
    position: relative;
    z-index: 2;
    background: var(--cream);
    color: var(--ink);
    padding: clamp(90px, 13vw, 170px) 24px clamp(90px, 12vw, 150px);
    overflow: hidden
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .09;
    mix-blend-mode: multiply;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>")
}

.about__inner {
    position: relative
}

.about__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: clamp(48px, 8vw, 96px)
}

@media(min-width:900px) {
    .about__inner {
        grid-template-columns: 1.05fr .95fr;
        align-items: center
    }
}

.about .display {
    font-size: clamp(72px, 19vw, 200px);
    margin-left: -.03em
}

.about__lead {
    max-width: 26em;
    margin: clamp(26px, 3vw, 40px) 0 0;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.55;
    color: rgba(27, 19, 11, .85)
}

.facts {
    margin: clamp(32px, 4vw, 52px) 0 0
}

.facts>div {
    position: relative;
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 18px 0
}

.facts>div::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(27, 19, 11, .4);
    transform-origin: left;
    transform: scaleX(var(--p, 1))
}

.facts dt {
    font-size: 14px;
    color: rgba(27, 19, 11, .62)
}

.facts dd {
    margin: 0;
    font-size: clamp(19px, 2.3vw, 24px);
    font-weight: 600;
    line-height: 1.25
}

.about__photos {
    position: relative;
    padding-top: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.ph {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1;
    background: #241709
}

.ph--a {
    grid-row: span 2;
    aspect-ratio: auto;
    rotate: -1.6deg
}

.ph:nth-of-type(2) {
    rotate: 2deg;
    translate: 0 -6px
}

.ph:nth-of-type(3) {
    rotate: -1deg;
    translate: 6px 6px
}

.badge {
    position: absolute;
    z-index: 3;
    right: -8px;
    top: -18px;
    width: clamp(104px, 22vw, 148px);
    height: auto
}

.badge text {
    font: 700 15px var(--sans);
    letter-spacing: .06em;
    fill: var(--cream)
}

.badge .big {
    font: 900 50px var(--serif);
    font-stretch: 62%;
    letter-spacing: 0
}

.ph img {
    position: absolute;
    left: 0;
    top: -10%;
    width: 100%;
    height: 120%;
    object-fit: cover
}

/* VENDAS */
.sale {
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: var(--night);
    text-align: left;
    padding: clamp(110px, 16vw, 210px) 24px min(78vw, 700px)
}

.sale>:not(.sale__bg):not(.sale__stage) {
    max-width: 1080px;
    margin-left: max(0px, calc((100% - 1080px)/2));
    margin-right: auto
}

.sale>.cta,
.sale>.wa {
    display: flex;
    width: fit-content
}

.sale>.cta {
    justify-content: center
}

.sale__stage {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-inline: auto;
    width: min(100%, 900px);
    aspect-ratio: 3/4;
    z-index: -2;
    pointer-events: none
}

.sale__bld {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%
}

.sale__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2;
    pointer-events: none
}

.sale__sky {
    position: absolute;
    left: 0;
    top: -110px;
    width: 100%;
    height: calc(100% + 110px + min(100vw, 900px)*.667);
    object-fit: cover;
    object-position: 50% 0
}

.sale__bld {
    transform-origin: 50% 100%
}

.sale::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, var(--night) 0%, rgba(14, 8, 4, .15) 28%, rgba(14, 8, 4, .4) 55%, rgba(14, 8, 4, 0) 78%)
}

.sale::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16%;
    z-index: -1;
    background: linear-gradient(180deg, rgba(14, 8, 4, 0), var(--night))
}

@media(min-width:900px) {
    .sale__stage {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent)
    }
}

.sale__title {
    font-size: clamp(72px, 24vw, 270px);
    text-shadow: 0 4px 40px rgba(0, 0, 0, .4)
}

.sale__lote {
    margin: clamp(28px, 4vw, 48px) 0 0;
    font-size: 16px;
    color: rgba(243, 230, 207, .85)
}

.prices {
    list-style: none;
    padding: 0;
    margin: 26px auto clamp(34px, 5vw, 54px);
    display: flex;
    flex-wrap: wrap;
    gap: 14px
}

.price {
    position: relative;
    flex: 1 1 150px;
    max-width: 260px;
    padding: 22px 26px 20px;
    background: var(--cream);
    color: var(--ink);
    border: 0;
    border-radius: 0;
    -webkit-mask: radial-gradient(circle 10px at 0 52%, #0000 97%, #000) left/51% 100% no-repeat, radial-gradient(circle 10px at 100% 52%, #0000 97%, #000) right/51% 100% no-repeat;
    mask: radial-gradient(circle 10px at 0 52%, #0000 97%, #000) left/51% 100% no-repeat, radial-gradient(circle 10px at 100% 52%, #0000 97%, #000) right/51% 100% no-repeat
}

.price:nth-child(1) {
    rotate: -2.5deg
}

.price:nth-child(2) {
    rotate: 2deg;
    translate: 0 10px
}

.price span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    opacity: .75
}

.price b {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px dashed rgba(27, 19, 11, .25);
    font: 900 clamp(52px, 13vw, 76px)/1 var(--serif);
    font-stretch: 66%;
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor
}

.cta {
    display: inline-block;
    padding: 18px 38px;
    background: var(--gold);
    color: #1a1204;
    border-radius: 3px;
    font: 600 16px var(--sans);
    letter-spacing: .02em;
    text-decoration: none;
    transition: background .25s, transform .25s
}

.cta::after {
    content: "  →"
}

.cta:hover {
    background: #f6cf84;
    transform: translateY(-2px)
}

.wa {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 26px;
    color: var(--sand);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500
}

.wa svg {
    width: 26px;
    height: 26px
}

.foot {
    position: relative;
    z-index: 2;
    background: var(--night);
    text-align: center;
    padding: 28px 24px calc(40px + env(safe-area-inset-bottom));
    font-family: var(--serif);
    font-size: 18px;
    color: rgba(243, 230, 207, .65)
}

/* INGRESSO */
.next {
    position: relative;
    z-index: 2;
    background: var(--night);
    padding: clamp(24px, 5vw, 60px) 20px clamp(56px, 9vw, 110px)
}

.next [hidden] {
    display: none !important
}

.wrap {
    max-width: 1080px;
    margin: 0 auto
}

.grid {
    display: grid;
    gap: 28px
}

@media(min-width:900px) {
    .grid {
        grid-template-columns: 1fr 1fr;
        align-items: start
    }
}

.card {
    border: 1px solid rgba(234, 182, 92, .3);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    padding: clamp(18px, 3vw, 30px);
}

.card h3 {
    font: 500 30px/1.1 "Cormorant Garamond", Georgia, serif;
    margin: 0 0 6px;
}

.sub {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: .2em;
    color: #eab65c;
}

.map {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    border: 0;
    border-radius: 12px;
    margin: 0 0 14px;
    background: #111;
}

.btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font: 600 14px "Jost", system-ui, sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #1a1204;
    background: linear-gradient(180deg, #fff6d6, #f2bf58);
}

.btn--o {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(240, 200, 130, .75);
    margin-top: 10px;
}

.f,
.fl {
    display: block;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #eab65c;
}

.f {
    margin-bottom: 14px;
}

.f input,
.code {
    width: 100%;
    margin-top: 6px;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font: 16px "Jost", system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.f input:disabled,
.f input[readonly],
.code {
    opacity: 1;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 6px 0 16px;
}

.seg label {
    position: relative;
    cursor: pointer;
}

.seg input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.seg span {
    display: block;
    text-align: center;
    padding: 12px 6px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    font-size: 14px;
}

.seg input:checked+span {
    border-color: #eab65c;
    background: rgba(234, 182, 92, .16);
}

.seg input:focus-visible+span {
    outline: 2px solid #eab65c;
}

.qtys {
    display: grid;
    gap: 10px;
    margin: 6px 0 16px;
}

.qrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
}

.qrow.on {
    border-color: #eab65c;
    background: rgba(234, 182, 92, .16);
}

.qrow strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.qrow small {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
}

.step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}

.step button:disabled {
    opacity: .3;
    cursor: default;
}

.step output {
    min-width: 30px;
    text-align: center;
    font-size: 19px;
    font-weight: 600;
}

.qtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 2px 2px 0;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.qtotal b {
    font-size: 22px;
    color: #eab65c;
    letter-spacing: 0;
}

.names {
    margin-top: 10px;
}

.names .f {
    margin-bottom: 12px;
}

.names .f small {
    color: #eab65c;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}

.pix {
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 18px;
    margin-bottom: 6px;
    text-align: center;
}

.qr {
    width: min(240px, 72%);
    aspect-ratio: 1;
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-size: 13px;
    display: grid;
    place-items: center;
}

.qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.code {
    height: 70px;
    resize: none;
    font: 12px/1.3 monospace;
    margin: 6px 0 12px;
    word-break: break-all;
}

.banks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.banks a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(234, 182, 92, .5);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.pix .f {
    text-align: left;
    margin-top: 18px;
}

.note {
    margin: 14px 0;
    padding: 2px 0 2px 12px;
    border-left: 2px solid #eab65c;
    font-size: 13px;
    line-height: 1.5;
    opacity: .9;
}

.msg {
    min-height: 1.3em;
    margin: 8px 0;
    font-size: 13px;
    color: #eab65c;
    text-align: center;
}

.err {
    min-height: 1.3em;
    margin: 8px 0;
    font-size: 13px;
    color: #ff9b8a;
}

/* ajustes do formulário (mantém as classes usadas pelo checkout) */
.card {
    border: 0;
    border-top: 1px solid rgba(234, 182, 92, .5);
    border-radius: 0;
    background: transparent;
    padding: 26px 0 0
}

#ingresso.card {
    background: var(--panel);
    border: 1px solid rgba(234, 182, 92, .25);
    border-radius: 4px;
    padding: clamp(22px, 3vw, 36px)
}

.card h3 {
    font: 400 clamp(26px, 3vw, 34px)/1.1 var(--serif);
    margin: 0 0 8px
}

.sub {
    font-size: 15px;
    letter-spacing: 0;
    color: var(--gold);
    margin: 0 0 18px
}

.map {
    border-radius: 2px;
    filter: grayscale(.55) sepia(.3) brightness(.92)
}

.btn {
    border-radius: 3px;
    background: var(--gold);
    font: 600 16px var(--sans);
    letter-spacing: .02em;
    text-transform: none;
    transition: background .25s
}

.btn:hover {
    background: #f6cf84
}

.btn--o {
    background: transparent;
    border: 1px solid rgba(234, 182, 92, .7);
    color: var(--sand)
}

.btn--o:hover {
    background: rgba(234, 182, 92, .12)
}

.f,
.fl {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(243, 230, 207, .75)
}

.fl {
    margin-bottom: 6px
}

.f input,
.code {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(243, 230, 207, .4);
    border-radius: 0;
    padding: 12px 0;
    font-family: var(--sans)
}

.f input:focus-visible {
    outline: none;
    border-bottom-color: var(--gold);
    box-shadow: 0 1px 0 var(--gold)
}

.code {
    font: 12px/1.3 monospace;
    border: 1px solid rgba(243, 230, 207, .3);
    padding: 10px;
    border-radius: 3px
}

.qrow {
    border: 0;
    border-bottom: 1px solid rgba(243, 230, 207, .25);
    border-radius: 0;
    padding: 12px 0
}

.qrow.on {
    background: none;
    border-bottom-color: var(--gold)
}

.seg span {
    border-radius: 3px
}

.qtotal,
.names .f small {
    letter-spacing: 0;
    text-transform: none
}

.qtotal b {
    font-family: var(--serif);
    font-weight: 400
}

.note {
    border-left-color: var(--gold)
}

/* ===================================================================
   CHECKOUT · pagamento + cartão interativo
   =================================================================== */
@property --a { syntax: "<color>"; inherits: true; initial-value: #2b1b0e }
@property --b { syntax: "<color>"; inherits: true; initial-value: #120a04 }

/* passos de quantidade */
.step button { transition: border-color .2s, color .2s, background .2s }
.step button:not(:disabled):hover { border-color: var(--gold); color: var(--gold) }
.step button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px }
.step output.bump { animation: bump .28s cubic-bezier(.2, 1.5, .4, 1) }
@keyframes bump { 0% { transform: scale(.7) } 100% { transform: scale(1) } }

/* campos com erro */
.f input[aria-invalid="true"] { border-bottom-color: #ff9b8a; box-shadow: 0 1px 0 #ff9b8a }
.f input::placeholder { color: rgba(243, 230, 207, .32) }
.cf__err { display: block; margin-top: 6px; font-style: normal; font-size: 13px; line-height: 1.35; color: #ff9b8a }
.cf__err:empty { display: none }

/* forma de pagamento */
.seg--pay { gap: 10px }
.seg--pay span.pay {
    display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
    text-align: left; padding: 13px 14px; transition: border-color .2s, background .2s
}
.seg--pay .pay svg {
    grid-row: 1 / 3; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round; color: rgba(243, 230, 207, .55); transition: color .2s
}
.seg--pay .pay b { font-size: 15px; font-weight: 600; line-height: 1.2 }
.seg--pay .pay small { font-size: 12.5px; line-height: 1.3; color: rgba(243, 230, 207, .6) }
.seg--pay input:checked + span.pay svg { color: var(--gold) }
@media (max-width: 440px) {
    .seg--pay span.pay { grid-template-columns: 1fr }
    .seg--pay .pay svg { grid-row: auto; margin-bottom: 8px }
}

/* bloco do cartão */
.cardbox { display: grid; gap: 26px; margin: 2px 0 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15) }
.cardbox:not([hidden]) { animation: cbIn .5s cubic-bezier(.2, .8, .2, 1) }
@keyframes cbIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

.cc {
    --a: #2b1b0e; --b: #120a04; --ink: #f3e6cf;
    position: relative; width: min(100%, 340px); aspect-ratio: 1.586; margin: 0 auto; perspective: 1100px;
    color: var(--ink); transition: --a .7s, --b .7s; -webkit-user-select: none; user-select: none
}
.cc[data-brand="visa"] { --a: #1e2c52; --b: #0a1126 }
.cc[data-brand="mastercard"] { --a: #52210f; --b: #170804 }
.cc[data-brand="elo"] { --a: #2a2a2a; --b: #0b0b0b }
.cc[data-brand="amex"] { --a: #17433f; --b: #061918 }
.cc[data-brand="hipercard"] { --a: #5c1b1b; --b: #1c0707 }
.cc[data-brand="diners"] { --a: #323944; --b: #0f1216 }

.cc__tilt {
    position: absolute; inset: 0; transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out
}
.cc__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1) }
.cc[data-side="back"] .cc__in { transform: rotateY(180deg) }

.cc__face {
    position: absolute; inset: 0; overflow: hidden; border-radius: 14px; padding: 7% 8%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    background: linear-gradient(135deg, var(--a), var(--b));
    box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(234, 182, 92, .3)
}
.cc__face::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at var(--mx, 25%) var(--my, 0%), rgba(255, 236, 200, .17), transparent 58%)
}
.cc__front { display: flex; flex-direction: column; justify-content: space-between }

.cc__top { display: flex; align-items: center; justify-content: space-between }
.cc__chipset { display: flex; align-items: center; gap: 10px }
.cc__chip {
    position: relative; width: 44px; height: 34px; border-radius: 6px; overflow: hidden;
    background: linear-gradient(135deg, #f3d791, #b88934)
}
.cc__chip::before {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, transparent 31%, rgba(80, 50, 10, .45) 31% 33%, transparent 33% 66%, rgba(80, 50, 10, .45) 66% 68%, transparent 68%),
        linear-gradient(0deg, transparent 44%, rgba(80, 50, 10, .45) 44% 56%, transparent 56%)
}
.cc__nfc { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .6 }
.cc__brand { min-height: 28px; display: flex; align-items: center; font-size: 16px }

.cc__num {
    display: flex; flex-wrap: nowrap; gap: .5em; width: fit-content; margin: -.25em -.4em; padding: .25em .4em; border-radius: 6px;
    font: 600 clamp(17px, 5.6vw, 22px)/1 var(--serif); font-stretch: 112%; letter-spacing: .05em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 -1px 0 rgba(255, 235, 190, .14)
}
.cc__grp { display: inline-flex }
.cc__num i { display: inline-block; min-width: .64em; text-align: center; font-style: normal; opacity: .34 }
.cc__num i.d { opacity: 1 }
.cc__num i.new { animation: ccPop .34s cubic-bezier(.2, 1.4, .4, 1) }
@keyframes ccPop { from { opacity: 0; transform: translateY(.5em) scale(.6) } to { opacity: 1; transform: none } }

.cc__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px }
.cc__who { min-width: 0; flex: 1 }
.cc__row [data-f] { margin: -.3em -.45em; padding: .3em .45em; border-radius: 5px }
.cc__row small { display: block; margin-bottom: 4px; font: 500 9.5px/1 var(--sans); opacity: .6 }
.cc__row b {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase;
    font: 600 clamp(11px, 3.5vw, 13.5px)/1.15 var(--sans); letter-spacing: .08em; transition: opacity .2s
}
.cc__row b.empty, .cc__cvv.empty { opacity: .38 }

/* anel dourado no que está sendo preenchido */
.cc [data-f] { transition: box-shadow .25s, background .25s }
.cc[data-focus="num"] [data-f="num"], .cc[data-focus="name"] [data-f="name"],
.cc[data-focus="exp"] [data-f="exp"], .cc[data-focus="cvv"] [data-f="cvv"] {
    background: rgba(234, 182, 92, .12); box-shadow: 0 0 0 1px rgba(234, 182, 92, .85)
}

/* verso */
.cc__back { padding: 0; transform: rotateY(180deg) }
.cc__stripe { height: 17%; margin-top: 9%; background: #050302 }
.cc__sig { display: flex; align-items: center; gap: 8px; margin: 7% 8% 0 }
.cc__sig::before {
    content: ""; flex: 1; height: 32px; border-radius: 3px;
    background: repeating-linear-gradient(135deg, #e9dfc8 0 6px, #d6c9ab 6px 12px)
}
.cc__cvv {
    min-width: 17%; padding: 8px 10px; border-radius: 3px; background: #f3e6cf; color: #1b130b; text-align: center;
    font: 700 14px/1 var(--sans); letter-spacing: .14em
}
.cc__fine { margin: 6% 8% 0; font-size: 10px; line-height: 1.4; opacity: .55 }

/* confirmação */
.cc__ok {
    position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 8px;
    background: rgba(14, 8, 4, .78); opacity: 0; pointer-events: none; transition: opacity .35s
}
.cc__ok svg { width: 54px; height: 54px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
.cc__ok circle { stroke-dasharray: 126; stroke-dashoffset: 126 }
.cc__ok path { stroke-dasharray: 34; stroke-dashoffset: 34 }
.cc__ok span { font: 600 14px var(--sans); color: var(--ink) }
.cc[data-state="ok"] .cc__ok { opacity: 1 }
.cc[data-state="ok"] .cc__ok circle { animation: draw .6s .1s ease-out forwards }
.cc[data-state="ok"] .cc__ok path { animation: draw .4s .55s ease-out forwards }
@keyframes draw { to { stroke-dashoffset: 0 } }
.cc[data-state="busy"] .cc__tilt { animation: breath 1.3s ease-in-out infinite }
@keyframes breath { 50% { transform: translateY(-5px) scale(1.012) } }

/* marcas de bandeira (tipografia própria, sem logotipos) */
.bm { display: inline-block; line-height: 1 }
.bm--visa { font: italic 900 1.55em var(--serif); letter-spacing: .02em }
.bm--elo { font: 800 1.55em var(--serif); letter-spacing: -.02em }
.bm--amex { padding: .32em .5em; border: 1.5px solid currentColor; border-radius: 3px; font: 800 .95em var(--serif); letter-spacing: .12em }
.bm--hiper, .bm--diners { font: 700 1.05em var(--sans) }
svg.bm { width: 2.6em; height: 1.55em }

/* campos */
.cf { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px }
.cf .f { margin-bottom: 14px }
.cf__full { grid-column: 1 / -1 }
.cf__wrap { position: relative; display: block }
.cf__wrap input { padding-right: 70px }
.cf__badge { position: absolute; right: 0; bottom: 9px; display: flex; align-items: center; font-size: 12px; color: var(--sand); pointer-events: none }
.f input[data-cc="num"], .f input[data-cc="exp"], .f input[data-cc="cvv"] { letter-spacing: .06em; font-variant-numeric: tabular-nums }
.cf__safe { grid-column: 1 / -1; display: flex; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.45; color: rgba(243, 230, 207, .65) }
.cf__safe svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }

/* confirmação do pedido no cartão */
.chipline {
    display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 7px 12px;
    border: 1px solid rgba(234, 182, 92, .45); border-radius: 3px; font-size: 13.5px
}
.chipline svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }

@media (prefers-reduced-motion: reduce) {
    .cc, .cc__tilt, .cc__in, .cc__face, .cc [data-f] { transition: none !important }
    .cc__num i.new, .cardbox:not([hidden]), .step output.bump, .cc[data-state="busy"] .cc__tilt { animation: none !important }
    .cc[data-state="ok"] .cc__ok circle, .cc[data-state="ok"] .cc__ok path { animation-duration: .01s; animation-delay: 0s }
}

@media(prefers-reduced-motion:reduce) {
    .hero__grain {
        animation: none
    }

    .cta {
        transition: none
    }
}

/* RESPONSIVO */
@media(min-width:900px) {
    .about .display {
        font-size: clamp(72px, 8.2vw, 130px)
    }

    .about__inner {
        gap: clamp(56px, 6vw, 96px)
    }
}

@media(min-width:1100px) {
    .invite {
        font-size: 18px
    }

    .when {
        font-size: 19px
    }

    .scrollcue {
        margin-top: 48px
    }
}

@media(max-width:360px) {
    .invite {
        letter-spacing: .2em
    }

    .when {
        letter-spacing: .18em
    }

    .facts>div {
        grid-template-columns: 1fr;
        gap: 4px
    }

    .price {
        padding: 18px 20px
    }

    .cta {
        padding: 16px 28px
    }
}

@media(max-height:520px) and (orientation:landscape) {
    .hero__content {
        padding-block: 20px
    }

    .invite {
        margin-top: 12px
    }

    .scrollcue {
        margin-top: 8px
    }

    .scrollcue__line {
        height: 26px
    }
}

@media(min-width:600px) and (max-width:899px) {
    .about__photos {
        max-width: 640px
    }

    .prices {
        gap: 18px
    }
}

@media(min-width:1500px) {

    .about__inner,
    .wrap {
        max-width: 1240px
    }

    .sale>:not(.sale__bg):not(.sale__stage) {
        max-width: 1240px;
        margin-left: max(0px, calc((100% - 1240px)/2))
    }
}

.next {
    padding-inline: max(20px, env(safe-area-inset-left), env(safe-area-inset-right))
}

.swal2-container {
    font-family: "Hanken Grotesk", system-ui, sans-serif;
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(3px);
}

.swal-pulse {
    background: #0b0904;
    color: #fff;
    border: 1px solid rgba(234, 182, 92, .45);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .7), 0 0 40px rgba(234, 182, 92, .12);
    padding: 28px 22px 24px;
}

.swal-pulse .swal2-title {
    font-family: "Archivo", Georgia, serif;
    font-weight: 500;
    font-size: 28px;
    color: #f6d28a;
    padding: 0;
}

.swal-pulse .swal2-html-container {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 1.5;
    margin: 12px 4px 0;
}

.swal-pulse .swal2-actions {
    width: 100%;
    margin: 26px 0 0;
    gap: 12px;
    flex-wrap: nowrap;
}

.swal-pulse .swal2-styled {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    font: 600 13px "Hanken Grotesk", system-ui, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}

.swal-pulse .swal2-styled:focus-visible {
    outline: 2px solid #f6d28a;
    outline-offset: 3px;
}

.swal-pulse .swal2-styled:active {
    transform: translateY(1px) scale(.985);
}

.swal-pulse .swal2-confirm {
    border: 0;
    color: #1a1204;
    background: linear-gradient(180deg, #fff6d6, #f2bf58);
    box-shadow: 0 8px 22px rgba(242, 191, 88, .28);
}

.swal-pulse .swal2-confirm:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(242, 191, 88, .4);
}

.swal-pulse .swal2-cancel {
    color: #f6e3b4;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(240, 200, 130, .55);
}

.swal-pulse .swal2-cancel:hover {
    transform: translateY(-1px);
    color: #fff;
    background: rgba(234, 182, 92, .12);
    border-color: #f2bf58;
}

@media (max-width: 420px) {
    .swal-pulse {
        padding: 24px 16px 20px;
    }

    .swal-pulse .swal2-styled {
        font-size: 12px;
        letter-spacing: .1em;
        padding: 14px 8px;
    }
}

.swal-pulse .swal2-icon {
    border-color: #eab65c;
    color: #eab65c;
}

.swal-pulse .swal2-icon.swal2-error {
    border-color: #ff9b8a;
    color: #ff9b8a;
}

.swal-pulse .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ff9b8a;
}

.swal-pulse .swal2-loader {
    border-color: #eab65c rgba(234, 182, 92, .18) #eab65c rgba(234, 182, 92, .18);
    width: 3.2em;
    height: 3.2em;
}

/* ===== DJs ===== */
.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

.djs {
    position: relative;
    z-index: 2;
    isolation: isolate;
    overflow: hidden;
    background: var(--night);
    text-align: center;
    padding: clamp(80px, 11vw, 140px) 24px clamp(80px, 10vw, 130px)
}

.djs::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse 60% 48% at 50% 36%, rgba(234, 182, 92, .2), transparent 70%)
}

.djs__inner {
    max-width: 720px;
    margin: 0 auto
}

.djs__photo {
    position: relative;
    width: min(100%, 520px);
    margin: 0 auto;
    isolation: isolate
}

.djs__photo::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 6%;
    top: 4%;
    bottom: 0;
    width: 30%;
    transform: skewX(-35deg);
    background: linear-gradient(180deg, #f2c76a, #a8741a 70%, rgba(168, 116, 26, .08))
}

.djs__photo::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 12%;
    top: -6%;
    bottom: 12%;
    width: 2px;
    transform: skewX(-35deg);
    background: linear-gradient(180deg, #f2c76a, rgba(168, 116, 26, .05));
    opacity: .7
}

.djs__photo img {
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 74%, transparent 100%)
}

.djs__photo {
    --tagfs: clamp(36px, 10.5vw, 66px);
    padding-top: calc(var(--tagfs)*2.15 + 26px)
}

.djs__photo::before {
    top: calc(var(--tagfs)*2.15 + 26px + 4%)
}

.djs__tag {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    top: calc(var(--tagfs)*.22);
    margin: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: calc(var(--tagfs)*.06)
}

.djs__tag-row {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.4vw, 20px)
}

.djs__tag-row::before,
.djs__tag-row::after {
    content: "";
    flex: 1 1 0;
    min-width: 0
}

.djs__tag-hl {
    flex: 1 1 0;
    min-width: 0;
    height: 1.5px;
    background: var(--gold);
    opacity: .9
}

.djs__tag-hl--l {
    transform-origin: 100% 50%
}

.djs__tag-hl--r {
    transform-origin: 0 50%
}

.djs__tag-mask {
    display: block;
    overflow: hidden;
    padding: .2em .08em;
    margin: -.2em 0
}

.djs__tag-line {
    display: block;
    font: 800 var(--tagfs)/.95 "Tektur", "Orbitron", "Archivo", Arial, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold)
}

.djs__tag-line--o {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--gold)
}

.djs__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: min(86%, 440px);
    height: auto;
    margin: clamp(-44px, -6vw, -20px) auto 0
}

.djs__bio {
    max-width: 30em;
    margin: clamp(20px, 3vw, 30px) auto 0;
    font-size: clamp(16px, 1.9vw, 19px);
    line-height: 1.55;
    color: rgba(243, 230, 207, .85)
}

.djs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(26px, 4vw, 38px);
    padding: 18px 38px;
    border: 0;
    border-radius: 3px;
    background: var(--gold);
    color: #1a1204;
    font: 600 16px var(--sans);
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .25s, transform .25s
}

.djs__btn:hover {
    background: #f6cf84;
    transform: translateY(-2px)
}

/* ===== Catálogo (tela cheia) ===== */
.djx {
    position: fixed;
    inset: 0;
    z-index: 90;
    font-family: 'Montserrat', var(--sans)
}

.djx[hidden] {
    display: none
}

.djx__wipe,
.djx__panel {
    position: absolute;
    inset: 0;
    will-change: clip-path
}

.djx__wipe {
    background: linear-gradient(135deg, #f7d33b, #b98424)
}

.djx__panel {
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(ellipse at 25% 55%, rgba(184, 145, 0, .24), transparent 48%), linear-gradient(115deg, #100e05 0%, #16120a 40%, #080808 75%, #030303 100%)
}

.djx__lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none
}

.djx__line {
    position: absolute;
    transform: skewX(-35deg);
    background: linear-gradient(180deg, #f7d33b, #a67b00, rgba(166, 123, 0, .05))
}

.djx__line--1 {
    width: 2px;
    height: 150%;
    top: -25%;
    left: 17%;
    opacity: .65
}

.djx__line--2 {
    width: 100px;
    height: 160%;
    top: -30%;
    left: -13%;
    opacity: .95
}

.djx__line--3 {
    width: 3px;
    height: 150%;
    top: -25%;
    right: 16%;
    opacity: .35
}

.djx__line--4 {
    width: 65px;
    height: 100%;
    right: -12%;
    top: 10%;
    opacity: .65
}

.djx__light {
    position: absolute;
    z-index: -1;
    width: 550px;
    height: 550px;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(219, 172, 21, .1), transparent 70%);
    filter: blur(35px);
    pointer-events: none
}

.djx__track {
    position: absolute;
    inset: 0;
    display: flex;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain
}

.djx__track::-webkit-scrollbar {
    display: none
}

.djx__slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden
}

.djx__photo {
    position: absolute;
    left: 50%;
    bottom: 0;
    height: min(84%, 980px);
    width: auto;
    max-width: none;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: 50% 100%
}

.djx__name span {
    display: inline-block
}

.djx__slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(3, 3, 3, .94) 0%, rgba(3, 3, 3, .55) 45%, transparent 100%)
}

.djx__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px max(8vh, calc(46px + env(safe-area-inset-bottom)));
    text-align: center
}

.djx__name {
    margin: 0;
    color: #eee2cb;
    font-weight: 900;
    font-size: clamp(44px, 7.6vw, 116px);
    line-height: .92;
    letter-spacing: -.025em;
    text-transform: uppercase;
    white-space: nowrap
}

.djx__deco {
    width: clamp(56px, 8vw, 96px);
    height: 2px;
    margin: clamp(14px, 2.4vh, 24px) auto;
    transform-origin: center;
    background: #ffe477
}

.djx__tag {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-weight: 600;
    font-size: clamp(11px, 2.8vw, 13px);
    letter-spacing: .28em;
    text-transform: uppercase
}

.djx__close {
    position: absolute;
    z-index: 5;
    top: max(22px, env(safe-area-inset-top));
    left: max(24px, env(safe-area-inset-left));
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 2px;
    border: 0;
    background: none;
    color: #fff;
    font: 700 12px 'Montserrat', var(--sans);
    letter-spacing: .24em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .3s
}

.djx__close svg {
    width: 30px;
    height: 12px;
    fill: none;
    stroke: #ffe477;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1)
}

.djx__close span {
    position: relative
}

.djx__close span::after {
    content: "";
    position: absolute;
    left: 0;
    right: .24em;
    bottom: -6px;
    height: 1px;
    background: #ffe477;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1)
}

.djx__close:hover,
.djx__close:focus-visible {
    color: #ffe477
}

.djx__close:hover svg,
.djx__close:focus-visible svg {
    transform: translateX(-8px)
}

.djx__close:hover span::after,
.djx__close:focus-visible span::after {
    transform: scaleX(1);
    transform-origin: left
}

.djx__close:active svg {
    transform: translateX(-12px)
}

.djx__dots {
    position: absolute;
    z-index: 5;
    right: max(24px, env(safe-area-inset-right));
    top: max(22px, env(safe-area-inset-top));
    display: flex;
    gap: 20px;
    counter-reset: n;
    pointer-events: none
}

.djx__dots button {
    pointer-events: auto;
    counter-increment: n;
    position: relative;
    padding: 8px 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: 700 12px 'Montserrat', var(--sans);
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .4);
    transition: color .3s
}

.djx__dots button::before {
    content: counter(n, decimal-leading-zero)
}

.djx__dots button::after {
    content: "";
    position: absolute;
    left: 0;
    right: .2em;
    bottom: 2px;
    height: 1px;
    background: #ffe477;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1)
}

.djx__dots button:hover {
    color: #fff
}

.djx__dots button[aria-current="true"] {
    color: #fff
}

.djx__dots button[aria-current="true"]::after {
    transform: scaleX(1)
}

@media(min-width:900px) {
    .djx__content {
        text-align: left;
        padding-left: clamp(32px, 7vw, 120px);
        padding-right: clamp(32px, 7vw, 120px)
    }

    .djx__deco {
        margin-left: 0;
        margin-right: 0;
        transform-origin: left
    }

    .djx__photo {
        left: auto;
        right: clamp(40px, 10vw, 220px);
        transform: none;
        height: min(90%, 980px)
    }
}

@media(max-width:600px) {
    .djx__content {
        padding: 0 12px max(9vh, calc(46px + env(safe-area-inset-bottom)))
    }

    .djx__name {
        font-size: clamp(36px, 10.5vw, 68px)
    }

    .djx__line--2 {
        width: 65px
    }

    .djx__photo {
        height: min(70%, 700px)
    }
}

@media(max-height:650px) {
    .djx__content {
        padding-bottom: max(4vh, 46px)
    }

    .djx__name {
        font-size: clamp(36px, 6vw, 66px)
    }
}

.djx__name span:has(.djx__logo) {
    display: block
}

.djx__logo {
    display: block;
    width: clamp(250px, 38vw, 560px);
    height: auto;
    margin: 0 auto
}

.djx__logo--stack {
    width: clamp(190px, 27vw, 400px)
}

@media(min-width:900px) {
    .djx__logo {
        margin: 0
    }
}

@media(max-width:600px) {
    .djx__logo {
        width: min(82vw, 380px)
    }

    .djx__logo--stack {
        width: min(58vw, 250px)
    }
}

.djx a:focus-visible,
.djx button:focus-visible {
    outline: 2px solid #ffe477;
    outline-offset: 4px
}

.djx {
    touch-action: none;
    overscroll-behavior: contain
}

/* ===== Dica de navegação (só aparece se a pessoa demorar para trocar) ===== */
.djx__hint {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 6px));
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 24px);
    padding: 7px 16px 7px 12px;
    border: 1px solid rgba(255, 228, 119, .4);
    border-radius: 999px;
    background: rgba(8, 8, 8, .66);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, .88);
    font: 700 10px/1.2 'Montserrat', var(--sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .5s
}

.djx__hint.is-on {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s
}

.djx__hint svg {
    display: block;
    fill: none;
    stroke: #ffe477;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible
}

.djx__hint-ico {
    display: inline-flex;
    flex: none
}

.djx__hint-ico--touch svg {
    width: 44px;
    height: 20px
}

.djx__hint-ico--mouse svg {
    width: 16px;
    height: 24px
}

.djx__hint[data-mode="touch"] [data-for="mouse"],
.djx__hint[data-mode="mouse"] [data-for="touch"] {
    display: none
}

.djx__hint-dot {
    fill: #ffe477;
    stroke: none
}

.djx__hint.is-on .djx__hint-dot {
    animation: djxSwipe 1.7s cubic-bezier(.65, 0, .35, 1) infinite
}

.djx__hint-wheel {
    stroke-width: 2
}

.djx__hint.is-on .djx__hint-wheel {
    animation: djxWheel 1.5s ease-in-out infinite
}

@keyframes djxSwipe {
    0% {
        transform: translateX(-11px);
        opacity: 0
    }

    15% {
        opacity: 1
    }

    75% {
        opacity: 1
    }

    100% {
        transform: translateX(11px);
        opacity: 0
    }
}

@keyframes djxWheel {
    0% {
        transform: translateY(-1px);
        opacity: 0
    }

    30% {
        opacity: 1
    }

    100% {
        transform: translateY(6px);
        opacity: 0
    }
}

@media(max-width:380px) {
    .djx__hint {
        letter-spacing: .14em;
        gap: 10px
    }
}

@media(prefers-reduced-motion:reduce) {
    .djx__hint {
        transition: opacity .2s linear, visibility 0s linear .2s;
        transform: translate(-50%, 0)
    }

    .djx__hint.is-on .djx__hint-dot,
    .djx__hint.is-on .djx__hint-wheel {
        animation: none
    }
}
/* ===== Pix (marca) e tipo do cartão ===== */
.pixlogo { display: inline-block; flex: none; color: currentColor }
/* cor herdada das regras .seg--pay .pay svg (areia no repouso, dourado quando marcado), igual ao ícone do cartão */
.seg--pay .pay svg.pixlogo { fill: none; stroke: none; width: 26px; height: 26px }
.btn .pixlogo { width: 1.3em; height: 1.3em; margin: -.2em .55em -.2em 0; vertical-align: -.3em; color: #1a1204 }

.cf__tipo { grid-column: 1 / -1; margin-bottom: 18px }
.seg--tipo { margin: 6px 0 0 }
.seg--tipo span { padding: 11px 6px; font-weight: 600; transition: border-color .2s, background .2s }
.cc__kind { font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .7 }

/* ===== Bandeiras aceitas ===== */
.brands { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -6px 0 0; padding: 0 }
.brands li { display: flex; min-width: 62px; height: 34px; padding: 0; font-size: 11px; color: var(--sand);
    border: 1px solid rgba(255, 255, 255, .15); border-radius: 3px; transition: opacity .25s, border-color .25s, background .25s }
.brands.has li { opacity: .35 }
.brands.has li.on { opacity: 1; border-color: var(--gold); background: rgba(234, 182, 92, .08) }
.brands .bm--visa { font-size: 1.5em }
.brands .bm--amex { padding: .28em .4em; font-size: .85em }
.brands .bm--hiper, .brands .bm--diners { font-size: 1em }
@media (max-width: 380px) { .brands li { min-width: 54px } .brands button { padding: 0 6px } }
.brands button { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0 10px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer }
.brands button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px }
.brands li:hover { border-color: rgba(234, 182, 92, .6) }

/* logos das bandeiras (selo claro, cores da marca) */
.brands svg.bm, .cc__brand svg.bm, .cf__badge svg.bm { display: block; width: 46px; height: 27.6px; border-radius: 4px }
.cf__badge svg.bm { width: 38px; height: 22.8px }
.brands li { min-width: 0; height: auto; padding: 3px; border-radius: 7px }
.brands button { padding: 0 }
@media (max-width: 380px) { .brands li { min-width: 0 } .brands button { padding: 0 } .brands svg.bm { width: 40px; height: 24px } }
.brands img.bm, .cc__brand img.bm, .cf__badge img.bm { display: block; width: 46px; height: auto; border-radius: 4px }
.cf__badge img.bm { width: 38px }

/* logo solto no cartão interativo (sem selo de fundo) */
.cc__brand svg.bm--card { display: block; width: 58px; height: auto; border-radius: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)) }


/* ===== Cartão perolado: cor muda conforme a bandeira ===== */
@property --a { syntax: "<color>"; inherits: true; initial-value: #a9824f }
@property --b { syntax: "<color>"; inherits: true; initial-value: #3b2814 }
@property --h { syntax: "<color>"; inherits: true; initial-value: rgba(255, 232, 190, .55) }

.cc {
    --a: #a9824f; --b: #3b2814; --h: rgba(255, 232, 190, .3); --ink: #fffaf1;
    transition: --a .7s ease, --b .7s ease, --h .7s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35)
}
.cc[data-brand="visa"] { --a: #5a78d6; --b: #1a2a6c; --h: rgba(190, 210, 255, .28) }
.cc[data-brand="mastercard"] { --a: #d4602f; --b: #7c1d1b; --h: rgba(255, 214, 170, .28) }
.cc[data-brand="elo"] { --a: #727d8b; --b: #262a31; --h: rgba(235, 240, 248, .28) }
.cc[data-brand="amex"] { --a: #3a9be0; --b: #0a3d78; --h: rgba(185, 225, 255, .28) }
.cc[data-brand="hipercard"] { --a: #dc3b43; --b: #5e1018; --h: rgba(255, 200, 205, .28) }
.cc[data-brand="diners"] { --a: #4a9ccb; --b: #14507a; --h: rgba(200, 235, 255, .28) }

.cc__face {
    background:
        radial-gradient(130% 100% at 12% 0%, var(--h), transparent 58%),
        linear-gradient(135deg, var(--a), var(--b));
    box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .35)
}
/* brilho de madrepérola: reflexos rosa, menta, dourado e lilás */
.cc__face::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: .6; mix-blend-mode: soft-light;
    background:
        linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%),
        conic-gradient(from 200deg at 78% 18%, rgba(255, 205, 230, .38), rgba(180, 236, 255, .34), rgba(255, 246, 190, .36), rgba(205, 190, 255, .34), rgba(255, 205, 230, .38))
}
.cc__face::after { background: radial-gradient(circle at var(--mx, 25%) var(--my, 0%), rgba(255, 255, 255, .3), transparent 58%); opacity: .18; transition: opacity .35s ease }
.cc[data-live="1"] .cc__face::after { opacity: 1 }
.cc { touch-action: pan-y; -webkit-tap-highlight-color: transparent; cursor: grab }
.cc[data-live="1"] { cursor: grabbing }

/* faixa de bandeiras: só informativa, sem seleção */
.brands li { cursor: default; pointer-events: none; -webkit-user-select: none; user-select: none }
.cc__brand img.bm--card { display: block; width: 58px; height: auto; border-radius: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)) }

/* selo sobre base branca: letras vazadas ficam brancas */
.cc__brand .bm--wb { display: block; width: 58px; line-height: 0; overflow: hidden; background: #fff; border-radius: 3.2px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)) }
.cc__brand .bm--wb img { display: block; width: 100%; height: auto }
.cc__brand .bm--wb img { border-radius: 0 }
.cc__brand img.bm--card { width: 62px }
.cc__brand .bm--wb { border-radius: 0; background: none }
/* ===== Cartão · um campo por vez ===== */
.cf__steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 8px; grid-column: 1 / -1 }
.cf__steps li[hidden] { display: none }
.cf__steps li { display: grid; gap: 7px; font-size: 12px; letter-spacing: .02em; color: rgba(243, 230, 207, .4); transition: color .3s }
.cf__steps i { display: block; height: 2px; background: rgba(243, 230, 207, .22); position: relative; overflow: hidden }
.cf__steps i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1) }
.cf__steps li.is-done { color: rgba(243, 230, 207, .7) }
.cf__steps li.is-done i::after, .cf__steps li.is-now i::after { transform: scaleX(1) }
.cf__steps li.is-now { color: var(--gold) }
.cf__steps li.is-now i::after { transform: scaleX(.5) }

.cf.is-wizard > .f[data-step] { display: none }
.cf.is-wizard > .f[data-step].is-active { display: block; grid-column: 1 / -1; margin-bottom: 8px; animation: cfStep .4s cubic-bezier(.2, .8, .2, 1) }
.cf.is-wizard > .f[data-step].is-active input { font-size: 18px }
@keyframes cfStep { from { opacity: 0; transform: translateX(var(--dir, 18px)) } to { opacity: 1; transform: none } }

.cf__nav { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; grid-column: 1 / -1 }
.cf__nav[hidden], .cf__back[hidden], .cf__next[hidden] { display: none }
.cf__back { flex: none; padding: 14px 6px; border: 0; background: none; color: rgba(243, 230, 207, .7); font: 600 14px var(--sans); cursor: pointer; transition: color .2s }
.cf__back:hover { color: var(--gold) }
.cf__next { flex: 1; width: auto }
.cf__back:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px }

@media (prefers-reduced-motion: reduce) {
    .cf.is-wizard > .f[data-step].is-active { animation: none }
    .cf__steps i::after { transition: none }
}

/* cartão concluído: só o cartão (+ editar e confirmar) */
.cardbox.is-done .brands, .cardbox.is-done .cf__tipo, .cardbox.is-done .cf__steps, .cardbox.is-done .cf > .f,
.cardbox.is-done .cf__nav, .cardbox.is-done .cf__safe { display: none }
.cf__review { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; text-align: center; animation: cfStep .4s cubic-bezier(.2, .8, .2, 1) }
.cf__review[hidden] { display: none }
.cf__review p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(243, 230, 207, .65) }
.cf__edit { padding: 10px 14px; border: 0; background: none; color: var(--gold); font: 600 14px var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer }
.cf__edit:hover { color: #f6cf84 }
.cf__edit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px }
.cardbox.is-done .cc { cursor: pointer }
.cf__next[hidden] { display: none }
.f input[data-cc="name"] { text-transform: uppercase }

/* sem mensagem, sem espaço: .msg e .err vazios não ocupam altura */
.msg:empty, .err:empty { display: none }
#cardNote { margin-bottom: 18px }

/* Débito: campo de celular (só aparece quando o tipo é Débito) */
#mobBox[hidden] { display: none }
#mobBox small { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0; text-transform: none; color: rgba(243, 230, 207, .55) }

/* Cartão (Stripe): cole no final do seu CSS */
.stripebox { margin: 14px 0 0; }
#payment-element { margin: 14px 0 6px; min-height: 40px; }
.stripebox .btn { margin-top: 10px; }
/* Campos do Stripe (Elements) */
.cf__el { padding: 12px 0 9px; border-bottom: 1px solid rgba(243, 230, 207, .35); transition: border-color .2s }
.cf__el.is-focus { border-bottom-color: var(--gold) }
.cf__el.is-invalid { border-bottom-color: #ff9b8a }
.cf__wrap .cf__el { padding-right: 70px }

/* Cartão: varredura de luz enquanto processa + celebração ao aprovar */
.cc__scan { position: absolute; inset: 0; z-index: 3; border-radius: inherit; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .3s }
.cc__scan::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: -50%; width: 38%; background: linear-gradient(100deg, transparent, rgba(246, 207, 132, .42), transparent); transform: skewX(-18deg) }
.cc[data-state="busy"] .cc__scan { opacity: 1 }
.cc[data-state="busy"] .cc__scan::before { animation: ccscan 1.15s cubic-bezier(.45, 0, .25, 1) infinite }
@keyframes ccscan { to { left: 125% } }
.cc[data-state="ok"] { animation: ccwin 1.2s cubic-bezier(.2, .9, .2, 1) both; filter: drop-shadow(0 20px 38px rgba(234, 182, 92, .5)) }
@keyframes ccwin { 0% { scale: 1; translate: 0 0 } 30% { scale: 1.07; translate: 0 -8px } 100% { scale: 1.025; translate: 0 -3px } }
.cc__num i.d { transition: color .3s }
.cc__fx { position: fixed; width: 0; height: 0; z-index: 2147483000; pointer-events: none }
.cc__p { position: absolute; left: 0; top: 0; width: var(--s); height: calc(var(--s) * 1.9); margin: -3px; border-radius: 2px; background: var(--c); opacity: 0; animation: ccp 1s cubic-bezier(.12, .8, .25, 1) var(--t) forwards }
@keyframes ccp { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.5) } 70% { opacity: 1 } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(var(--r)) scale(1) } }
.cc__ring { position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: ccring 1.1s ease-out var(--t) forwards }
@keyframes ccring { 0% { opacity: .95; transform: scale(.3) } 100% { opacity: 0; transform: scale(3.4) } }
@media (prefers-reduced-motion: reduce) { .cc[data-state="ok"], .cc[data-state="busy"] .cc__scan::before { animation: none } }

/* Etapas: os campos do Stripe fora da vez continuam montados (só escondidos), para o iframe não ser descartado */
.cf { position: relative }
.cf.is-wizard > .f.cf__stripe[data-step]:not(.is-active) { display: block; position: absolute; left: 0; right: 0; height: 0; margin: 0; overflow: hidden; opacity: 0; pointer-events: none }