:root {
    --ivory: #f8f5ee;
    --paper: #fffdf9;
    --ink: #23261e;
    --forest: #323825;
    --forest-deep: #252a1d;
    --olive: #626b2b;
    --olive-light: #b2bd8f;
    --wine: #a41065;
    --orange: #ea7134;
    --gold: #b98b36;
    --muted: #696b62;
    --line: #ddd6c8;
    --serif: "Italiana", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --shadow: 0 28px 80px rgba(48, 45, 35, .13);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.skip-link {
    position: fixed;
    z-index: 999;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    color: #fff;
    background: var(--wine);
    border-radius: 4px;
    transform: translateY(-160%);
    transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
    margin: 0 0 15px;
    color: var(--wine);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .3em;
    line-height: 1.4;
    text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }

/* Hero: bloco único centralizado sobre o verde escuro. */
.hero { position: relative; min-height: 760px; height: 100svh; overflow: hidden; color: #fff; background: var(--forest); isolation: isolate; }
.hero::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(178,189,143,.15), transparent 36%), linear-gradient(115deg, rgba(0,0,0,.18), transparent 42%); content: ""; }
.hero::after { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; height: 7px; background: linear-gradient(90deg, var(--wine) 0 43%, var(--orange) 43% 56%, var(--olive-light) 56%); content: ""; }
.nav { position: relative; z-index: 5; display: grid; height: 94px; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.16); }
.nav__brand { display: flex; align-items: center; justify-self: start; gap: 12px; font-family: var(--serif); font-size: 1rem; text-decoration: none; }
.nav__brand img { width: 25px; height: 35px; object-fit: contain; filter: invert(1); }
.nav__date { color: rgba(255,255,255,.66); font-size: .63rem; font-weight: 600; letter-spacing: .27em; }
.nav__action { justify-self: end; padding-bottom: 4px; color: #fff; border-bottom: 1px solid #c09a50; font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; transition: border-color .2s; }
.nav__action:hover { border-color: #e2c88c; }
.hero__chapel { position: absolute; z-index: -1; right: -80px; bottom: -120px; width: min(620px, 47vw); opacity: .11; }
.hero__chapel img { width: 100%; filter: invert(1); }
.hero__halo { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(690px, 60vw); aspect-ratio: 1; border: 1px solid rgba(192,154,80,.23); border-radius: 50%; transform: translate(-50%, -45%); }
.hero__halo::before, .hero__halo::after { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.hero__halo::before { inset: 18px; }
.hero__halo::after { inset: 48px; }
.hero__content { position: relative; z-index: 2; display: flex; min-height: calc(100% - 94px); align-items: center; justify-content: center; flex-direction: column; padding-block: 52px 74px; text-align: center; }
.hero__monogram { width: clamp(78px, 8vw, 112px); max-height: 152px; margin-bottom: 17px; object-fit: contain; filter: invert(1); }
.hero .eyebrow { margin-bottom: 20px; color: #d9bc7e; }
.hero h1 { margin-bottom: 25px; font-family: var(--serif); font-size: clamp(4.4rem, 10vw, 8.5rem); font-weight: 400; letter-spacing: -.05em; line-height: .88; }
.hero h1 span { color: #c09a50; font-size: .68em; }
.hero__divider { display: flex; width: min(560px, 80vw); align-items: center; gap: 18px; margin-bottom: 26px; }
.hero__divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,188,126,.68)); }
.hero__divider i:last-child { background: linear-gradient(90deg, rgba(217,188,126,.68), transparent); }
.hero__divider b { color: rgba(255,255,255,.75); font-size: .62rem; font-weight: 600; letter-spacing: .28em; }
.hero__message { margin-bottom: 28px; color: rgba(255,255,255,.78); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.45; }
.hero__button { display: inline-flex; min-height: 48px; align-items: center; gap: 12px; padding: 12px 22px; color: var(--forest-deep); background: var(--ivory); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; transition: background .2s, transform .2s; }
.hero__button:hover { background: #fff; transform: translateY(-2px); }
.hero__button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* PIX section */
.gift { position: relative; overflow: hidden; padding: 118px 0 130px; background: #eeeadf; }
.gift::before { position: absolute; top: 70px; left: -190px; width: 420px; height: 420px; border: 1px solid rgba(185,139,54,.18); border-radius: 50%; content: ""; }
.gift__mark { position: absolute; right: -35px; bottom: -170px; color: rgba(255,255,255,.3); font-family: var(--serif); font-size: 32rem; letter-spacing: -.2em; line-height: 1; pointer-events: none; }
.gift__mark span { color: rgba(164,16,101,.055); }
.gift__layout { position: relative; z-index: 1; display: grid; gap: clamp(38px, 4.5vw, 58px); }

/* Título e texto centralizados; os passos ocupam a largura toda logo abaixo. */
.gift__intro { width: min(720px, 100%); margin-inline: auto; text-align: center; }
.gift__intro h2 { margin: 0 0 21px; color: var(--ink); font-family: var(--serif); font-size: clamp(3rem, 6.7vw, 5.2rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.gift__lead { width: min(580px, 100%); margin: 0 auto 32px; color: var(--muted); font-size: 1rem; }
.identity-note { display: inline-flex; align-items: center; gap: 15px; padding: 14px 20px 14px 13px; border: 1px solid rgba(98,107,43,.24); text-align: left; }
.identity-note img { width: 33px; height: 46px; object-fit: contain; }
.identity-note p { margin: 0; line-height: 1.3; }
.identity-note strong, .identity-note span { display: block; }
.identity-note strong { font-family: var(--serif); font-size: 1.13rem; font-weight: 400; }
.identity-note span { color: var(--olive); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-block: 1px solid rgba(98,107,43,.2); list-style: none; }
.steps li { display: flex; min-height: 108px; align-items: center; justify-content: center; gap: 18px; padding: 22px 24px; }
.steps li + li { border-left: 1px solid rgba(98,107,43,.2); }
.steps span { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; color: var(--wine); border: 1px solid rgba(164,16,101,.3); border-radius: 50%; font-family: var(--serif); font-size: .88rem; }
.steps p { margin: 0; color: var(--muted); font-size: .84rem; font-weight: 500; line-height: 1.5; }

/* Cartão PIX: painel do QR à esquerda, dados e ações à direita. */
.pix-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(185,139,54,.25);
    box-shadow: var(--shadow);
}
.pix-card__qr { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: clamp(28px, 3.6vw, 52px); background: #f4f1e9; border-right: 1px solid rgba(185,139,54,.2); }
.pix-card__details { display: flex; justify-content: center; flex-direction: column; min-width: 0; padding: clamp(28px, 3.6vw, 52px); }
.pix-card__heading { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.pix-card__heading small, .pix-card__heading strong { display: block; line-height: 1.05; }
.pix-card__heading small { color: var(--muted); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.pix-card__heading strong { color: var(--olive); font-size: 1.1rem; }
.pix-symbol { display: grid; flex: 0 0 37px; width: 37px; height: 37px; place-items: center; color: var(--olive); background: rgba(178,189,143,.32); border-radius: 50%; }
.pix-symbol svg { width: 23px; fill: currentColor; stroke: none; }
.qr-frame { position: relative; width: min(272px, 100%); padding: 16px; background: #fff; box-shadow: 0 12px 34px rgba(48,45,35,.09); }
.qr-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.qr-corner { position: absolute; width: 28px; height: 28px; border-color: var(--gold); border-style: solid; }
.qr-corner--one { top: 0; left: 0; border-width: 2px 0 0 2px; }
.qr-corner--two { top: 0; right: 0; border-width: 2px 2px 0 0; }
.qr-corner--three { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.qr-corner--four { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.scan-instruction { margin: 20px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; text-align: center; }
.details-kicker { margin: 0 0 13px; color: var(--olive); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.beneficiary { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin: 0 0 22px; padding: 15px 0; border-block: 1px solid #eae5dc; }
.beneficiary div { min-width: 0; padding-inline: 15px; }
.beneficiary div:first-child { padding-left: 0; }
.beneficiary div + div { border-left: 1px solid #eae5dc; }
.beneficiary dt { margin-bottom: 3px; color: var(--muted); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.beneficiary dd { margin: 0; overflow-wrap: anywhere; font-size: .8rem; font-weight: 600; }
.pix-label { display: block; margin: 0 0 7px; font-size: .73rem; font-weight: 600; }
.pix-code { display: block; width: 100%; max-width: 100%; padding: 15px; color: #41443d; background: #f5f2eb; border: 1px solid #ddd6ca; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; word-break: break-all; }
.copy-button { position: relative; display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding: 13px 20px; color: #fff; background: var(--olive); border: 0; box-shadow: 0 9px 22px rgba(98,107,43,.2); cursor: pointer; font-weight: 600; transition: background .2s, transform .2s, box-shadow .2s; }
.copy-button:hover:not(:disabled) { background: #4d5522; box-shadow: 0 12px 26px rgba(98,107,43,.28); transform: translateY(-2px); }
.copy-button:active:not(:disabled) { transform: translateY(0); }
.copy-button:disabled { color: #72766e; background: #dcded7; box-shadow: none; cursor: wait; }
.copy-button.is-copied { background: #357050; }
.copy-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy-status { min-height: 19px; margin: 7px 0 0; color: var(--olive); font-size: .72rem; text-align: center; }
.security-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 11px; padding: 13px; color: #5e6158; background: #f1f2ec; border-left: 3px solid var(--olive-light); }
.security-note svg { flex: 0 0 21px; width: 21px; margin-top: 2px; fill: none; stroke: var(--olive); stroke-width: 1.7; }
.security-note p { margin: 0; font-size: .66rem; line-height: 1.5; }
.security-note strong { display: block; color: var(--ink); font-size: .7rem; }
.security-note b { font-weight: 600; }

/* Footer */
.footer { position: relative; overflow: hidden; padding: 72px 0 50px; color: rgba(255,255,255,.72); background: var(--ink); text-align: center; }
.footer::before { position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--wine) 0 45%, var(--orange) 45% 58%, var(--olive-light) 58%); content: ""; }
.footer__content img { width: 120px; margin: 0 auto 22px; opacity: .55; filter: invert(1); }
.footer__names { margin-bottom: 6px; color: #fff; font-family: var(--serif); font-size: clamp(2.7rem, 6vw, 4.3rem); line-height: 1; }
.footer__names span { color: #d7b56e; }
.footer__date { margin-bottom: 26px; color: var(--olive-light); font-size: .68rem; font-weight: 600; letter-spacing: .3em; }
.footer__small { margin: 0; color: rgba(255,255,255,.47); font-size: .67rem; letter-spacing: .05em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .hero { height: auto; min-height: 760px; }
    .hero__chapel { right: -110px; width: 560px; }
    .gift { padding: 96px 0 105px; }
    .steps { grid-template-columns: 1fr; width: min(620px, 100%); margin-inline: auto; }
    .steps li { min-height: auto; justify-content: flex-start; padding: 18px 0; }
    .steps li + li { border-top: 1px solid rgba(98,107,43,.2); border-left: 0; }
    .pix-card { grid-template-columns: 1fr; width: min(620px, 100%); margin-inline: auto; }
    .pix-card__qr { border-right: 0; border-bottom: 1px solid rgba(185,139,54,.2); }
}

@media (max-width: 680px) {
    .shell { width: min(100% - 30px, 1160px); }
    .nav { height: 76px; grid-template-columns: 1fr auto; }
    .nav__brand span, .nav__date { display: none; }
    .nav__action { font-size: .61rem; }
    .hero { min-height: 700px; }
    .hero__content { min-height: calc(700px - 76px); padding-block: 46px 60px; }
    .hero__monogram { width: 75px; height: 104px; }
    .hero h1 { font-size: clamp(3.7rem, 18vw, 5.8rem); line-height: .94; }
    .hero h1 span { display: block; margin-block: -.18em; }
    .hero__divider { width: 92%; gap: 10px; }
    .hero__message { font-size: 1.1rem; }
    .hero__chapel { right: -80px; bottom: -55px; width: 390px; opacity: .08; }
    .hero__halo { width: 560px; }
    .gift { padding: 78px 0 86px; }
    .gift__intro h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
    .gift__lead { font-size: .92rem; }
    .pix-card__qr, .pix-card__details { padding: 30px 20px; }
    .qr-frame { width: min(255px, 82vw); padding: 13px; }
    .beneficiary { grid-template-columns: 1fr; gap: 11px; }
    .beneficiary div { padding-inline: 0; }
    .beneficiary div + div { padding-top: 11px; border-top: 1px solid #eae5dc; border-left: 0; }
    .copy-button { min-height: 56px; }
    .footer { padding: 62px 0 44px; }
    .footer__small { max-width: 270px; margin-inline: auto; }
}

@media (max-width: 350px) {
    .shell { width: calc(100% - 22px); }
    .hero h1 { font-size: 3.35rem; }
    .pix-card__qr, .pix-card__details { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .hero { min-height: 700px; }
    .nav__action, .hero__button, .copy-button { display: none; }
    .gift, .pix-card { break-inside: avoid; }
}
