:root {
  --night: #0b2219;
  --night-2: #143d2c;
  --cream: #f7f1e6;
  --cream-dim: rgba(247, 241, 230, .72);
  --paper: #fffaf1;
  --ink: #1d1a16;
  --muted: #6d665c;
  --line: #e4dccd;
  --red: #c8323b;
  --red-d: #a1232b;
  --gold: #e3c06a;
  --gold-d: #b8892f;
  --ok: #1f7a4d;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 24px 48px -16px rgba(0, 0, 0, .45);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: #07170f; overflow-x: clip; }
body { margin: 0; min-height: 100vh; font-family: var(--body); color: var(--cream); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; background: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
main, .topbar, .foot, .test-banner { position: relative; z-index: 1; }

/* ---------- fundo animado ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #1f5640 0%, var(--night-2) 35%, var(--night) 75%, #07170f 100%); }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.bokeh span {
  position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 68%); opacity: .18; filter: blur(6px);
  animation: drift var(--t) ease-in-out var(--dl) infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .10; }
  50% { opacity: .26; }
  100% { transform: translate3d(30px, -50px, 0) scale(1.25); opacity: .14; }
}

/* varal de luzes */
.garland {
  position: relative; z-index: 2; height: 44px; display: flex; justify-content: space-between; padding: 0 6px; overflow: hidden; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='44'%3E%3Cpath d='M0 6 Q20 26 40 6 T80 6' fill='none' stroke='%23051a10' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0;
}
.bulb { position: relative; flex: none; width: 11px; height: 17px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; margin-top: 13px; animation: twinkle 2.4s ease-in-out var(--d) infinite; }
.bulb:nth-child(2n) { margin-top: 23px; }
.bulb::before { content: ''; position: absolute; left: 2.5px; top: -5px; width: 6px; height: 6px; border-radius: 2px; background: #2a3a30; }
.bulb-r { background: #ff5a5f; --glow: rgba(255, 90, 95, .85); }
.bulb-g { background: #63e08f; --glow: rgba(99, 224, 143, .8); }
.bulb-y { background: #ffd56b; --glow: rgba(255, 213, 107, .9); }
.bulb-b { background: #6ec3ff; --glow: rgba(110, 195, 255, .85); }
@keyframes twinkle {
  0%, 100% { box-shadow: 0 2px 14px 3px var(--glow); filter: brightness(1.15); }
  50% { box-shadow: 0 2px 4px 0 transparent; filter: brightness(.55) saturate(.7); }
}

/* ---------- chrome ---------- */
.test-banner { background: rgba(0, 0, 0, .35); color: #f5d98b; text-align: center; font-size: 13px; padding: 7px 16px; letter-spacing: .01em; backdrop-filter: blur(4px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1160px; margin: 0 auto; padding: 18px 20px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--cream); font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand-mark { color: var(--gold); display: inline-block; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-by { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--cream-dim); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; color: var(--gold); margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--cream-dim); max-width: 34em; }
.fineprint { font-size: 13px; opacity: .7; margin: 12px 0 0; text-align: center; }
.foot { text-align: center; padding: 48px 16px; color: var(--cream-dim); font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .2s ease, border-color .15s; min-height: 44px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-primary { background: linear-gradient(180deg, #d63d46, var(--red-d)); color: #fff; box-shadow: 0 8px 24px -8px rgba(200, 50, 59, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(200, 50, 59, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--cream); border-color: rgba(247, 241, 230, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(247, 241, 230, .5); }
.btn-whatsapp { background: #1f8f4e; color: #fff; }
.btn-whatsapp:hover { background: #18773f; }
.btn-lg { padding: 14px 28px; font-size: 16px; min-height: 54px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* painéis claros sobre o fundo escuro */
.editor-form, .paywall, .step { background: var(--paper); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.editor-form a, .paywall a { color: var(--red); }

/* ---------- home ---------- */
.hero { max-width: 1160px; margin: 0 auto; padding: 24px 20px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.price-note { font-size: 14px; color: var(--cream-dim); }
.price-note strong { color: var(--gold); font-size: 16px; }

.hero-visual { position: relative; height: 560px; }
.hero-ornaments { position: absolute; inset: 0 0 auto; height: 200px; z-index: 3; }
.ornament { position: absolute; top: -20px; width: 2px; background: rgba(247, 241, 230, .45); transform-origin: top center; animation: swing 4s ease-in-out infinite; }
.ornament i { position: absolute; left: 50%; bottom: -36px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .35), 0 8px 18px rgba(0, 0, 0, .35); }
.ornament i::before { content: ''; position: absolute; top: -7px; left: 14px; width: 12px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, #a8812e, #f3d98b, #a8812e); }
.ornament i::after { content: ''; position: absolute; top: 8px; left: 9px; width: 10px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: rotate(-30deg); }
.ornament-r i { background: radial-gradient(circle at 35% 30%, #ff7a80, #c8323b 55%, #7d141b); }
.ornament-y i { background: radial-gradient(circle at 35% 30%, #fff1b8, #e3c06a 55%, #9c7425); }
.ornament-g i { background: radial-gradient(circle at 35% 30%, #8fe3a8, #2f8a57 55%, #144a2c); }
.ornament-0 { left: 2%; height: 90px; animation-delay: -1s; }
.ornament-1 { left: 74%; height: 40px; animation-duration: 5s; }
.ornament-2 { right: 8%; height: 120px; animation-delay: -2.5s; animation-duration: 4.6s; }
@keyframes swing { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }

/* envelope aberto atrás, cartão inteiro na frente (nenhum texto escondido) */
.hero-envelope { position: absolute; right: 0; bottom: 30px; width: min(330px, 70%); aspect-ratio: 1.45; --r: 7deg; animation: float 7s ease-in-out -2s infinite; filter: drop-shadow(0 30px 36px rgba(0, 0, 0, .5)); z-index: 1; }
.hero-envelope > span { position: absolute; }
.he-back { inset: 0; border-radius: 10px; background: linear-gradient(180deg, #8f1c23, #b3262e); }
.he-back::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 55%; background: linear-gradient(0deg, #b3262e, #d63d46); clip-path: polygon(0 100%, 100% 100%, 50% 0); }
.he-front { inset: 0; border-radius: 10px; background: linear-gradient(160deg, #d63d46, #b3262e 60%); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); }
.he-front::after { content: '✦'; position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #6b4f14; background: radial-gradient(circle at 35% 35%, #f3d98b, #c9a24a 60%, #9c7a2c); }
.hero-card { position: absolute; left: 4%; top: 64px; width: min(300px, 68%); --r: -5deg; z-index: 4; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .55)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) + 2deg)); } }

.gallery-sec { max-width: 1160px; margin: 0 auto; padding: 32px 20px 24px; }
.gallery-sec h2 { font-size: clamp(26px, 3.4vw, 36px); text-align: center; margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: start; }
.gallery-item { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--cream); font-size: 14px; font-weight: 600; text-align: center; transition: transform .25s ease; }
.gallery-item .card { box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55); transition: box-shadow .25s ease; }
.gallery-item:hover { transform: translateY(-8px) rotate(-1deg); }
.gallery-item:hover .card { box-shadow: 0 26px 40px -12px rgba(0, 0, 0, .7), 0 0 0 2px var(--gold); }

.steps { max-width: 1160px; margin: 0 auto; padding: 32px 20px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 26px; }
.step h3 { font-size: 21px; }
.step p { margin: 0; color: #4a443b; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 14px; }

/* ---------- editor ---------- */
.editor { max-width: 1160px; margin: 0 auto; padding: 8px 20px 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.editor-form { padding: 30px; }
.editor-form h1 { font-size: 32px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend, .field > span { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.count { font-style: normal; font-weight: 400; color: var(--muted); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.theme-opt { min-width: 0; text-align: center; line-height: 1.25; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 4px 8px; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--ink); transition: border-color .15s, transform .15s; }
.theme-opt:hover { transform: translateY(-2px); }
.theme-opt .swatch { width: 100%; max-width: 54px; aspect-ratio: 4/5; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.theme-opt[aria-checked="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 50, 59, .15); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px; color: var(--ink); }
.chip[aria-checked="true"] { border-color: var(--red); background: #fbe9e7; color: var(--red-d); }
.field { display: block; margin-bottom: 18px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; color-scheme: light; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-d); box-shadow: 0 0 0 3px rgba(227, 192, 106, .3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.suggest { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); margin: -8px 0 18px; }
.form-error { background: #fdecea; color: #8f1c23; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }
.preview-wrap { position: sticky; top: 20px; }
.preview-label { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 600; margin: 0 0 14px; text-align: center; }
.preview { max-width: 420px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }

/* ---------- checkout ---------- */
.checkout { max-width: 1160px; margin: 0 auto; padding: 8px 20px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checkout h1 { font-size: 34px; }
.checkout-summary .link-btn, .checkout-summary a { color: var(--cream); }
.mini-card { max-width: 300px; margin: 8px 0 18px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); }
.paywall { padding: 30px; }
.paywall h2 { font-size: 24px; }
.perks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: 15px; }
.perks li { padding-left: 26px; position: relative; }
.perks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 14px 0; margin-bottom: 18px; }
.total strong { font-family: var(--display); font-size: 30px; color: var(--red-d); }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f3ece0; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.pay-tabs button { border: 0; background: transparent; border-radius: 9px; padding: 9px; font-weight: 600; cursor: pointer; color: var(--muted); }
.pay-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.test-hint { background: #fbf5e4; border: 1px dashed #d9c48a; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #5a4a1e; margin-bottom: 18px; line-height: 1.8; }
.test-hint .link-btn { font-family: ui-monospace, monospace; font-size: 13px; }
.pix-box { display: flex; gap: 16px; align-items: center; background: #f3ece0; border-radius: 12px; padding: 16px; margin-bottom: 18px; font-size: 14px; }
.pix-box p { margin: 0; }
.pix-qr { flex: none; width: 92px; height: 92px; border-radius: 8px; background:
  conic-gradient(from 90deg at 30% 30%, #111 25%, transparent 0) 0 0/18px 18px,
  repeating-linear-gradient(45deg, #111 0 4px, #fff 4px 9px); opacity: .85; }

/* ---------- done ---------- */
.done { max-width: 640px; margin: 0 auto; padding: 40px 20px 64px; text-align: center; }
.done h1 { font-size: clamp(30px, 5vw, 44px); }
.share-box { display: flex; gap: 8px; margin: 28px 0 14px; background: var(--paper); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); }
.share-box input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 15px; background: transparent; color: var(--ink); }
.share-box input:focus { outline: none; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.done-meta { margin-top: 28px; color: var(--cream-dim); font-size: 14px; }

/* ---------- cartão ----------
   Proporção mínima 4:5, mas o cartão cresce para caber o texto (nada é cortado). */
.card { container-type: inline-size; width: 100%; display: flex; border-radius: 6px; position: relative; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
/* altura mínima = 125% da largura (proporção 4:5); se o texto for maior, o cartão cresce */
.card::after { content: ''; flex: 0 0 0; padding-bottom: 125%; }
.card::before { border-radius: inherit; }
.card-frame { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 9cqi 8cqi; }
.card-headline, .card-to, .card-message, .card-from, .card-signature { max-width: 100%; }
.card-ornament { width: 32cqi; margin-bottom: 3cqi; flex: none; }
.card-headline { font-family: var(--display); font-weight: 700; font-size: 10cqi; line-height: 1.05; margin: 0 0 3.5cqi; }
.theme-classico .card-headline, .theme-dourado .card-headline { font-style: italic; }
.card-to { font-size: 4cqi; margin: 0 0 3cqi; letter-spacing: .02em; }
.card-message { font-size: 4.4cqi; line-height: 1.5; margin: 0 0 4.5cqi; overflow-wrap: anywhere; }
.msg-md .card-message { font-size: 4.1cqi; }
.msg-lg .card-message { font-size: 3.8cqi; line-height: 1.45; }
.msg-lg .card-headline { font-size: 8.5cqi; }
.msg-lg .card-ornament { width: 24cqi; margin-bottom: 2cqi; }
.msg-lg .card-frame { padding-top: 7cqi; padding-bottom: 7cqi; }
.card-placeholder { opacity: .45; font-style: italic; }
.sig-long .card-signature { font-size: 6.5cqi; }
.card-from { font-size: 3.6cqi; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .5cqi; }
.card-signature { font-family: var(--hand); font-size: 8.5cqi; line-height: 1.05; font-weight: 700; overflow-wrap: anywhere; }

.theme-classico { background: var(--paper); color: #2b241c; }
.theme-classico .card-frame { border: 2.2cqi solid transparent; border-image: repeating-linear-gradient(45deg, #b3262e 0 3cqi, #fffaf1 3cqi 6cqi) 22; }
.theme-classico .card-headline, .theme-classico .card-signature { color: #a11f27; }

.theme-neve { background: radial-gradient(120% 80% at 50% 0%, #2a4a85 0%, #13264a 60%, #0c1a35 100%); color: #e8f0ff; }
.theme-neve::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1.2cqi 1.2cqi at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(.9cqi .9cqi at 82% 12%, #fff9 50%, transparent 51%), radial-gradient(.8cqi .8cqi at 70% 78%, #fff7 50%, transparent 51%), radial-gradient(1.1cqi 1.1cqi at 20% 86%, #fff6 50%, transparent 51%), radial-gradient(.7cqi .7cqi at 90% 52%, #fff8 50%, transparent 51%), radial-gradient(.8cqi .8cqi at 8% 54%, #fff7 50%, transparent 51%); }
.theme-neve .card-frame { border: .5cqi solid rgba(232, 240, 255, .35); margin: 4cqi; border-radius: 3cqi; padding: 6cqi 5cqi; }
.theme-neve .card-signature { color: #fff; }

.theme-dourado { background: #141210; color: #efe6d2; }
.theme-dourado .card-frame { margin: 5cqi; border: .4cqi solid #d4af5a; outline: .4cqi solid rgba(212, 175, 90, .45); outline-offset: 1.6cqi; padding: 6cqi 5cqi; }
.theme-dourado .card-headline, .theme-dourado .card-signature { background: linear-gradient(100deg, #b8892f, #f3d98b 45%, #c79a3e 60%, #f0d27c); -webkit-background-clip: text; background-clip: text; color: transparent; }

.theme-pinheiro { background: linear-gradient(180deg, #164532 0%, #0f2f22 100%); color: #f2ead8; }
.theme-pinheiro .card-frame { margin: 4cqi; border: .4cqi dashed rgba(242, 234, 216, .4); border-radius: 2cqi; padding: 6cqi 5cqi; }
.theme-pinheiro .card-headline { color: #f2ead8; }
.theme-pinheiro .card-signature { color: #e3c06a; }

.theme-familia { background: #f3e2cf; color: #4a2f22; }
.theme-familia::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 30%, rgba(255, 210, 140, .55), transparent 70%); }
.theme-familia .card-frame { margin: 4cqi; border: .5cqi solid #a8452f; border-radius: 30cqi 30cqi 3cqi 3cqi; padding: 8cqi 6cqi 6cqi; }
.theme-familia .card-headline, .theme-familia .card-signature { color: #a8452f; }

/* ---------- visualização pública ---------- */
.view { min-height: calc(100vh - 44px); min-height: calc(100svh - 44px); display: flex; padding: 24px 16px 40px; }
.view-inner { margin: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.view-hint { margin: 0; font-size: 15px; opacity: .8; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.envelope { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1.45; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1200px; animation: float-env 5s ease-in-out infinite; }
@keyframes float-env { 50% { transform: translateY(-10px) rotate(-.8deg); } }
.envelope > span { position: absolute; }
.env-back { inset: 0; background: #c5303a; border-radius: 8px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6); }
.env-letter { left: 6%; right: 6%; top: 5%; bottom: 5%; overflow: hidden; border-radius: 6px; transition: transform .8s cubic-bezier(.2, .8, .2, 1) .35s; z-index: 1; }
.env-letter .card { min-height: 100%; }
.env-front { inset: 0; z-index: 2; border-radius: 8px; background:
  linear-gradient(to top right, #b3262e 50%, transparent 50.5%) left / 50.5% 100% no-repeat,
  linear-gradient(to top left, #b3262e 50%, transparent 50.5%) right / 50.5% 100% no-repeat,
  linear-gradient(to top, #a8222a 0 55%, #c5303a 55%);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 7%; color: #fff4ea; }
.env-to { max-width: 100%; overflow-wrap: anywhere; font-family: var(--hand); font-size: clamp(24px, 7vw, 32px); font-weight: 700; line-height: 1.1; padding: 0 12%; }
.env-from { font-size: 13px; opacity: .85; }
.env-flap { left: 0; right: 0; top: 0; height: 58%; z-index: 3; transform-origin: top; background: linear-gradient(to bottom, #d23a44, #b72c35); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 8px 8px 0 0; transition: transform .6s ease, z-index 0s .3s; }
.env-seal { z-index: 4; left: 50%; top: 58%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3d98b, #c9a24a 60%, #9c7a2c); color: #6b4f14; display: grid; place-items: center; font-size: 22px; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); transition: opacity .3s ease, transform .3s ease; }
.envelope.is-open { animation: none; }
.envelope.is-open .env-flap { transform: rotateX(180deg); z-index: 0; }
.envelope.is-open .env-seal { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.envelope.is-open .env-letter { transform: translateY(-58%); }

.opened { width: 100%; max-width: 440px; opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.opened.is-in { opacity: 1; transform: none; }
.view-cta { color: var(--cream); font-size: 14px; opacity: .85; text-underline-offset: 4px; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 16px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery-item { flex: 0 0 200px; scroll-snap-align: center; }
}
@media (max-width: 860px) {
  .hero, .editor, .checkout { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 8px; }
  .hero-visual { height: 480px; max-width: 420px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .preview-wrap { position: static; order: -1; }
  .preview { max-width: 300px; }
  .checkout-summary { text-align: center; }
  .mini-card { margin: 8px auto 18px; max-width: 220px; }
  .editor-form, .paywall { padding: 22px; }
}
@media (max-width: 420px) {
  .topbar { padding: 14px 16px; }
  .brand-by { display: none; }
  .hero-visual { height: 440px; }
  .editor { padding-left: 12px; padding-right: 12px; }
  .editor-form, .paywall { padding: 18px; border-radius: 18px; }
  .garland { height: 38px; }
  .bulb { width: 9px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
