:root {
    --ivory: #f8f5ee;
    --paper: #fffdf9;
    --ink: #25291f;
    --forest: #323825;
    --forest-deep: #252a1d;
    --olive: #626b2b;
    --sage: #b2bd8f;
    --wine: #a41065;
    --orange: #ea7134;
    --gold: #c09a50;
    --muted: #696c63;
    --line: #ded7ca;
    --serif: "Italiana", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --shadow: 0 30px 85px rgba(38, 41, 31, .14);
}

*, *::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; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
    position: fixed;
    z-index: 999;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    color: #fff;
    background: var(--wine);
    transform: translateY(-160%);
    transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.eyebrow { margin: 0 0 16px; color: var(--wine); font-size: .68rem; font-weight: 600; letter-spacing: .32em; line-height: 1.4; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }

/* Hero editorial */
.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(--sage) 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; gap: 12px; justify-self: start; 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 var(--gold); font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.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: var(--gold); 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; }

/* Gift section */
.gift { position: relative; overflow: hidden; padding: 118px 0 130px; background: var(--ivory); }
.gift::before { position: absolute; top: 70px; left: -190px; width: 420px; height: 420px; border: 1px solid rgba(185,139,54,.15); border-radius: 50%; content: ""; }
.gift__accent { position: absolute; top: 0; right: 10%; width: 1px; height: 82px; background: var(--gold); }
.gift__header { width: min(720px, 100%); margin: 0 auto 58px; text-align: center; }
.gift__header h2 { margin: 0 0 21px; font-family: var(--serif); font-size: clamp(3rem, 6.7vw, 5.2rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.gift__header > p:not(.eyebrow) { width: min(580px, 100%); margin-inline: auto; color: var(--muted); font-size: 1rem; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 0 42px; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.steps li { display: flex; min-height: 105px; align-items: center; gap: 17px; padding: 20px 26px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps > li > span { color: var(--wine); font-family: var(--serif); font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.steps strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: .84rem; font-weight: 600; }

.pix-card { display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; background: var(--paper); border: 1px solid rgba(192,154,80,.28); box-shadow: var(--shadow); }
.pix-card__qr { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: clamp(30px,5vw,54px); background: #eeeadf; border-right: 1px solid var(--line); }
.pix-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; }
.pix-heading small, .pix-heading strong { display: block; line-height: 1.05; }
.pix-heading small { color: var(--muted); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.pix-heading strong { color: var(--olive); font-size: 1.1rem; }
.pix-symbol { display: grid; width: 38px; height: 38px; place-items: center; color: var(--olive); background: rgba(178,189,143,.28); border-radius: 50%; }
.pix-symbol svg { width: 23px; fill: currentColor; stroke: none; }
.qr-frame { position: relative; width: min(280px, 100%); padding: 17px; background: #fff; box-shadow: 0 12px 35px rgba(38,41,31,.08); }
.qr-frame::before, .qr-frame::after, .qr-frame > span::before, .qr-frame > span::after { position: absolute; width: 25px; height: 25px; border-color: var(--gold); border-style: solid; content: ""; }
.qr-frame::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.qr-frame::after { top: 0; right: 0; border-width: 2px 2px 0 0; }
.qr-frame > span::before { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.qr-frame > span::after { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.qr-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.scan-instruction { margin: 18px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.55; text-align: center; }
.pix-card__details { display: flex; justify-content: center; flex-direction: column; min-width: 0; padding: clamp(32px,5vw,58px); }
.details-kicker { margin-bottom: 15px; color: var(--wine); font-size: .65rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.beneficiary { display: grid; grid-template-columns: 1.4fr .7fr; margin: 0 0 25px; padding: 17px 0; border-block: 1px solid var(--line); }
.beneficiary div { min-width: 0; padding-inline: 15px; }
.beneficiary div:first-child { padding-left: 0; }
.beneficiary div + div { border-left: 1px solid var(--line); }
.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-bottom: 8px; font-size: .72rem; font-weight: 600; }
.pix-code { display: block; width: 100%; max-width: 100%; max-height: none; padding: 15px; overflow: visible; color: #41443d; background: #f4f1ea; border: 1px solid #ded7ca; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; font-weight: 600; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; word-break: break-all; scrollbar-width: none; }
.pix-code::-webkit-scrollbar { display: none; width: 0; height: 0; }
.copy-button { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: center; gap: 10px; margin-top: 13px; padding: 14px 20px; color: #fff; background: var(--forest); border: 0; box-shadow: 0 10px 25px rgba(50,56,37,.2); cursor: pointer; font-weight: 600; transition: background .2s, transform .2s; }
.copy-button:hover:not(:disabled) { background: var(--olive); transform: translateY(-2px); }
.copy-button:active:not(:disabled) { transform: none; }
.copy-button:disabled { color: #74776e; background: #dcddd8; 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: 10px; margin-top: 11px; padding: 13px; color: #5f6258; background: #f1f2ec; border-left: 3px solid var(--sage); }
.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: .71rem; }
.security-note b { font-weight: 600; }

/* Footer */
.footer { position: relative; overflow: hidden; padding: 75px 0 56px; color: rgba(255,255,255,.7); background: var(--forest-deep); text-align: center; }
.footer::before { position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--wine) 0 43%, var(--orange) 43% 56%, var(--sage) 56%); content: ""; }
.footer__content { position: relative; z-index: 1; }
.footer__content > img { width: 58px; height: 81px; margin: 0 auto 16px; object-fit: contain; filter: invert(1); }
.footer__names { margin-bottom: 7px; color: #fff; font-family: var(--serif); font-size: clamp(2.8rem,6vw,4.5rem); line-height: 1; }
.footer__names span { color: var(--gold); }
.footer__date { margin: 0; color: var(--sage); font-size: .65rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.footer__chapel { position: absolute; right: -35px; bottom: -110px; width: 210px; opacity: .08; }
.footer__chapel img { width: 100%; filter: invert(1); }

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

@media (max-width: 900px) {
    .hero { height: auto; min-height: 760px; }
    .hero__chapel { right: -110px; width: 560px; }
    .gift { padding: 96px 0 105px; }
    .pix-card { grid-template-columns: 1fr; width: min(620px,100%); margin-inline: auto; }
    .pix-card__qr { border-right: 0; border-bottom: 1px solid var(--line); }
    .qr-frame { width: 270px; }
}

@media (max-width: 680px) {
    .shell { width: min(100% - 30px,1160px); }
    .nav { height: 76px; grid-template-columns: 1fr 1fr; }
    .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__header { margin-bottom: 42px; }
    .gift__header h2 { font-size: clamp(2.8rem,13vw,4rem); }
    .gift__header > p:not(.eyebrow) { font-size: .92rem; }
    .steps { grid-template-columns: 1fr; }
    .steps li { min-height: auto; padding: 16px 8px; }
    .steps li + li { border-top: 1px solid var(--line); border-left: 0; }
    .pix-card__qr, .pix-card__details { padding: 30px 19px; }
    .qr-frame { width: min(255px,82vw); padding: 14px; }
    .beneficiary { grid-template-columns: 1fr; gap: 11px; }
    .beneficiary div { padding-inline: 0; }
    .beneficiary div + div { padding-top: 11px; border-top: 1px solid var(--line); border-left: 0; }
    .pix-code { font-size: .68rem; }
    .footer { padding: 62px 0 48px; }
}

@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; }
}
