:root {
  --ink: #1f2b26;
  --muted: #6f7772;
  --green: #1f5b44;
  --green-dark: #164332;
  --gold: #bd8840;
  --gold-light: #e7c787;
  --paper: #f6f4ee;
  --cream: #ebe6d9;
  --white: #fff;
  --line: #deddd7;
  --danger: #a93d3d;
  --shadow: 0 18px 55px rgba(31, 43, 38, .10);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
body.has-modal { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  height: 82px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center;
  justify-content: space-between; background: rgba(246, 244, 238, .94); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: 600 27px/1 "Playfair Display", serif; transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { letter-spacing: .2em; font-size: 14px; }
.brand-copy small { color: var(--gold); font-size: 9px; letter-spacing: .28em; margin-top: 5px; }
.secure-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.secure-label svg { width: 19px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

main { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.steps { max-width: 620px; margin: 30px auto 42px; display: flex; align-items: center; }
.step { display: flex; align-items: center; gap: 10px; min-width: 115px; color: #959994; }
.step > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #c9cbc6; border-radius: 50%; font-weight: 700; font-size: 13px; }
.step p { display: grid; margin: 0; line-height: 1.1; }
.step b { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.step small { font-size: 12px; margin-top: 4px; }
.step.is-active { color: var(--green); }
.step.is-active > span { color: white; background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px rgba(31,91,68,.08); }
.step.is-complete > span { color: white; background: var(--gold); border-color: var(--gold); }
.steps > i { display: block; height: 1px; background: var(--line); flex: 1; margin: 0 14px; }

.page-step { display: none; animation: enter .45s ease both; }
.page-step.is-visible { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.hero-grid { display: grid; grid-template-columns: .94fr 1.06fr; min-height: 510px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.product-photo { min-height: 510px; position: relative; overflow: hidden; background: #e8e1d2; }
.product-photo::before, .product-photo::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(189,136,64,.22); border-radius: 50%; }
.product-photo::before { left: -180px; top: -130px; }
.product-photo::after { right: -230px; bottom: -210px; }
.product-photo.has-image::before, .product-photo.has-image::after { display: none; }
.photo-badge { position: absolute; z-index: 2; top: 24px; left: 24px; padding: 9px 15px; background: var(--green); color: white; letter-spacing: .13em; font-size: 10px; font-weight: 700; }
.product-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 55%; }
.product-caption { position: absolute; z-index: 2; inset: auto 0 0; padding: 85px 35px 31px; display: grid; color: white; text-align: center; background: linear-gradient(to top, rgba(16,24,20,.9), rgba(16,24,20,.62) 52%, transparent); }
.product-caption small { color: var(--gold-light); font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.product-caption strong { margin-top: 8px; font: 600 25px/1.12 "Playfair Display", serif; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.placeholder-art { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 45px; }
.placeholder-art svg { width: 165px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; filter: drop-shadow(0 12px 20px rgba(130,88,29,.13)); }
.placeholder-art strong { font: 600 28px/1.15 "Playfair Display", serif; }
.placeholder-art span { color: #7f766a; font-size: 13px; margin-top: 10px; }
.intro { padding: clamp(42px, 6vw, 75px); align-self: center; }
.eyebrow { display: block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .2em; margin-bottom: 15px; }
h1, h2 { font-family: "Playfair Display", serif; margin: 0; }
.intro h1 { font-size: clamp(38px, 4.1vw, 57px); line-height: 1.02; letter-spacing: -.035em; }
.intro h1 em { color: var(--green); font-weight: 600; }
.intro-text { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 23px 0 28px; max-width: 550px; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.info-cards > div { padding: 15px 13px; display: flex; align-items: center; gap: 10px; }
.info-cards > div + div { border-left: 1px solid var(--line); }
.info-icon { color: var(--gold); font: 600 17px "Playfair Display", serif; }
.info-cards p { display: grid; margin: 0; }
.info-cards small { color: #858b86; font-size: 10px; letter-spacing: .12em; }
.info-cards strong { font-size: 13px; margin-top: 3px; }
.notice { margin-top: 18px; padding: 12px 15px; display: flex; align-items: flex-start; gap: 11px; background: #f5f1e8; border-left: 3px solid var(--gold); }
.notice > span { border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; width: 17px; height: 17px; display: grid; place-items: center; font: 700 11px serif; flex: 0 0 auto; }
.notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.notice strong { color: var(--ink); }

.price-banner { margin: 28px 0 0; min-height: 112px; padding: 22px 28px; display: grid; grid-template-columns: 1.15fr 1px 1fr 1px 1fr auto; align-items: center; gap: 28px; background: var(--green); color: white; box-shadow: 0 12px 35px rgba(31,91,68,.16); }
.price-banner > i { width: 1px; height: 45px; background: rgba(255,255,255,.2); }
.price-banner-title, .price-banner-item { display: flex; align-items: center; gap: 15px; }
.price-banner p { display: grid; margin: 0; }
.price-banner small { color: rgba(255,255,255,.65); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.price-banner strong { color: white; font: 600 23px "Playfair Display", serif; margin-top: 3px; }
.price-symbol { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(231,199,135,.7); color: transparent; font: 600 18px "Playfair Display", serif; transform: rotate(45deg); position: relative; }
.price-symbol::after { content: "R$"; position: absolute; color: var(--gold-light); transform: rotate(-45deg); }
.price-banner-item > span { color: var(--gold-light); font: 600 25px "Playfair Display", serif; }
.rules-button { padding: 14px 18px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: white; font-size: 12px; font-weight: 700; white-space: nowrap; transition: .2s; }
.rules-button:hover { background: white; color: var(--green); }
.rules-button span { margin-left: 8px; }

.numbers-card { margin: 20px 0 150px; padding: clamp(28px, 4vw, 48px); background: white; box-shadow: 0 12px 40px rgba(31,43,38,.06); }
.numbers-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 30px; }
.numbers-heading h2 { font-size: clamp(27px, 3vw, 38px); }
.numbers-heading p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.back-button { border: 1px solid #cfd5d1; color: var(--green); background: transparent; padding: 12px 17px; font-weight: 700; font-size: 14px; transition: .2s ease; }
.back-button:hover { background: #eef2ef; border-color: var(--green); }
.random-button { min-width: 245px; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 0; background: var(--gold); color: white; text-align: left; white-space: nowrap; box-shadow: 0 10px 24px rgba(189,136,64,.25); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.random-button:hover { background: #aa7531; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(189,136,64,.34); }
.random-button:active { transform: translateY(0); }
.random-button:disabled { opacity: .5; cursor: wait; transform: none; box-shadow: none; }
.random-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); }
.random-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.random-copy { display: grid; flex: 1; }
.random-copy small { color: rgba(255,255,255,.7); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.random-copy strong { font-size: 14px; margin-top: 2px; }
.random-arrow { font-size: 18px; transition: transform .2s; }
.random-button:hover .random-arrow { transform: translateX(3px); }
.number-grid { display: grid; grid-template-columns: repeat(10, minmax(44px, 1fr)); gap: 9px; }
.number { aspect-ratio: 1.16; border: 1px solid #d9dcd7; background: white; color: #46504b; font-size: 16px; font-weight: 600; transition: .15s ease; position: relative; }
.number:hover { border-color: var(--gold); color: var(--green); transform: translateY(-1px); }
.number.is-selected { background: var(--gold); color: white; border-color: var(--gold); box-shadow: 0 6px 15px rgba(189,136,64,.32); }
.number.is-selected::after { content: "✓"; position: absolute; top: 3px; right: 5px; color: white; font-size: 9px; font-weight: 700; }
.number:disabled { cursor: not-allowed; transform: none; box-shadow: none; }
.number.is-reserved { color: #8b754f; border-color: #e4d5b8; background: repeating-linear-gradient(135deg, #f8f3e8, #f8f3e8 5px, #f1e8d7 5px, #f1e8d7 10px); }
.number.is-reserved::after { content: "◷"; position: absolute; top: 2px; right: 4px; color: var(--gold); font-size: 9px; }
.number.is-sold { color: #9ca19d; border-color: #e3e5e2; background: #eef0ed; text-decoration: line-through; }
.number.is-sold::after { content: "×"; position: absolute; top: 2px; right: 5px; color: #929893; font-size: 10px; }
.number.is-loading { color: transparent; background: #f2f2ef; border-color: #ecece8; }
.availability-status { margin: -8px 0 22px; min-height: 48px; padding: 10px 13px; display: flex; align-items: center; gap: 11px; font-size: 12px; border: 1px solid var(--line); }
.availability-status > span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 700; }
.availability-status p { display: grid; margin: 0; }
.availability-status small { color: var(--muted); margin-top: 2px; }
.availability-status.is-loading { color: #796c56; background: #faf6ed; border-color: #eadfc9; }
.availability-status.is-loading > span { border: 2px solid #e2d5bc; border-top-color: var(--gold); animation: spin .8s linear infinite; }
.availability-status.is-ready { color: var(--green); background: #f1f6f3; border-color: #d5e3db; }
.availability-status.is-ready > span { color: white; background: var(--green); }
.availability-status.is-error { color: var(--danger); background: #fff1f1; border-color: #ebcccc; }
.availability-status.is-error > span { color: white; background: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }
.legend { display: flex; gap: 24px; color: var(--muted); font-size: 13px; margin-top: 22px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; display: block; border: 1px solid #d9dcd7; }
.legend .chosen { background: var(--gold); border-color: var(--gold); }
.legend .reserved { border-color: #e4d5b8; background: repeating-linear-gradient(135deg, #f8f3e8, #f8f3e8 3px, #eadfc9 3px, #eadfc9 6px); }
.legend .sold { background: #dfe2de; border-color: #d3d6d2; }

.selection-bar { position: fixed; left: 50%; bottom: 22px; z-index: 30; transform: translate(-50%, 130%); width: min(1060px, calc(100% - 32px)); padding: 16px 18px 16px 23px; background: var(--ink); color: white; display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 16px; align-items: center; box-shadow: 0 15px 50px rgba(21,31,27,.3); transition: transform .35s ease; }
.selection-bar.is-visible { transform: translate(-50%, 0); }
.bar-copy { display: flex; align-items: center; gap: 12px; }
.bar-copy > span { color: var(--gold-light); font: 600 34px "Playfair Display", serif; }
.bar-copy p { display: grid; margin: 0; line-height: 1.15; }
.bar-copy strong { font-size: 13px; white-space: nowrap; }
.bar-copy small { color: #aeb5b0; font-size: 11px; margin-top: 4px; }
.bar-numbers { display: flex; flex-wrap: wrap; gap: 6px; max-height: 62px; overflow: hidden; }
.bar-numbers span { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: white; border: 1px solid #d6a55f; box-shadow: 0 3px 8px rgba(0,0,0,.18); font-size: 10px; font-weight: 700; }
.clear-button { height: 39px; padding: 0 12px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #d8ddd9; font-size: 11px; font-weight: 700; transition: .2s; }
.clear-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.clear-button:hover { border-color: #d98888; background: rgba(169,61,61,.2); color: #ffd5d5; }
.bar-total { display: grid; min-width: 88px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.15); }
.bar-total small { color: #aeb5b0; font-size: 10px; letter-spacing: .15em; }
.bar-total strong { color: var(--gold-light); font: 600 19px "Playfair Display", serif; margin-top: 2px; }
.primary-button { min-width: 155px; border: 0; padding: 14px 20px; background: var(--gold); color: white; font-weight: 700; font-size: 14px; letter-spacing: .02em; transition: .2s ease; }
.primary-button:hover:not(:disabled) { background: #aa7531; transform: translateY(-1px); }
.primary-button span { margin-left: 10px; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; }

.form-page, .payment-page { max-width: 1060px; margin: 0 auto 80px; }
.back-button { margin-bottom: 20px; }
.form-layout { display: grid; grid-template-columns: 1.45fr .75fr; gap: 24px; align-items: start; }
.form-card, .summary-card, .payment-card { background: white; box-shadow: var(--shadow); }
.form-card { padding: clamp(28px, 5vw, 55px); }
.form-card h1, .payment-card h1 { font-size: clamp(33px, 4vw, 48px); line-height: 1.05; }
.form-card > p, .payment-card > p { color: var(--muted); line-height: 1.65; font-size: 16px; }
form { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.field input { width: 100%; border: 1px solid #d6d9d4; background: #fbfbf9; padding: 14px 15px; outline: none; color: var(--ink); transition: .2s; }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,91,68,.08); }
.field input.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12px; min-height: 14px; }
.consent { display: flex; flex-direction: row; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.5; }
.consent input { accent-color: var(--green); margin-top: 2px; }
.inline-link { border: 0; padding: 0; background: none; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form-card .primary-button { width: 100%; padding: 16px; }
.summary-card { padding: 27px; position: sticky; top: 112px; }
.summary-title { color: var(--gold); font-size: 11px; letter-spacing: .16em; font-weight: 700; }
.mini-product { display: flex; align-items: center; gap: 12px; padding: 14px 0 20px; border-bottom: 1px solid var(--line); }
.mini-product > img { width: 54px; height: 62px; flex: 0 0 auto; object-fit: cover; object-position: center; border: 1px solid var(--line); }
.mini-gift { width: 48px; height: 48px; background: var(--cream); color: var(--gold); display: grid; place-items: center; font-size: 25px; }
.mini-product p { display: grid; margin: 0; }
.mini-product small { color: var(--muted); font-size: 10px; }
.mini-product strong { font: 600 14px/1.25 "Playfair Display", serif; margin-top: 3px; }
.summary-row, .summary-total { display: flex; justify-content: space-between; margin: 20px 0 13px; font-size: 13px; }
.selected-list { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.selected-list span { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: white; font-size: 9px; }
.summary-total { align-items: flex-end; }
.summary-total strong { font: 600 21px "Playfair Display", serif; color: var(--green); }
.federal-note { background: #f4f1e9; color: var(--muted); font-size: 11px; padding: 11px; text-align: center; }
.federal-note span { color: var(--gold); }

.payment-card { text-align: center; padding: clamp(35px, 6vw, 65px); }
.success-icon { width: 48px; height: 48px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 21px; box-shadow: 0 0 0 7px rgba(31,91,68,.08); }
.pix-icon { width: 56px; height: 56px; margin: 0 auto 20px; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .05em; transform: rotate(45deg); box-shadow: 0 0 0 7px rgba(31,91,68,.06); }
.pix-icon span { transform: rotate(-45deg); }
.payment-card > p { max-width: 640px; margin: 15px auto 33px; }
.email-status { width: fit-content; max-width: 680px; margin: -15px auto 28px; padding: 10px 14px; font-size: 12px; line-height: 1.5; }
.email-status.is-success { color: #19533d; background: #eaf4ee; border: 1px solid #cfe3d7; }
.email-status.is-warning { color: #785b24; background: #fff5dc; border: 1px solid #ecd9ab; }
.payment-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; text-align: left; border-top: 1px solid var(--line); padding-top: 30px; }
.qr-panel { text-align: center; padding-right: 28px; border-right: 1px solid var(--line); }
.pix-qr-frame { width: fit-content; margin: 0 auto 13px; padding: 10px; background: white; border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(31,43,38,.09); }
.pix-qr { width: 230px; height: 230px; display: grid; place-items: center; background: white; }
.pix-qr img, .pix-qr canvas { display: block; width: 230px !important; height: 230px !important; }
.pix-qr > span { max-width: 190px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.pix-amount { margin: 0 auto 13px; display: grid; }
.pix-amount small { color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.pix-amount strong { color: var(--green); font: 700 27px "Playfair Display", serif; margin-top: 2px; }
.copy-button { width: min(250px, 100%); padding: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--green); color: white; font-weight: 700; font-size: 12px; cursor: pointer; transition: .2s; }
.copy-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.copy-button.is-copied { background: var(--gold); }
.copy-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qr-panel > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; max-width: 250px; margin: 11px auto; }
.payment-details h2 { font-size: 25px; margin-bottom: 8px; }
.payment-details dl { margin: 0; }
.payment-details dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.payment-details dt { color: var(--muted); }
.payment-details dd { margin: 0; font-weight: 700; word-break: break-word; }
.recipient-box { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding: 15px; background: #f2f4f1; border: 1px solid #dce2de; }
.recipient-mark { width: 41px; height: 41px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: 600 20px "Playfair Display", serif; }
.recipient-box p { display: grid; margin: 0; }
.recipient-box small { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.recipient-box strong { font-size: 13px; margin-top: 2px; }
.recipient-box p > span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.pending-box { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 15px; background: #fff8e8; border: 1px solid #ead7ab; }
.pending-box > span { color: var(--gold); font-size: 22px; }
.pending-box p { display: grid; margin: 0; }
.pending-box strong { font-size: 11px; }
.pending-box small { color: var(--muted); margin-top: 4px; }
.whatsapp-button { margin-top: 12px; padding: 15px 18px; display: flex; align-items: center; justify-content: center; gap: 9px; background: #1f9d61; color: white; text-decoration: none; font-size: 13px; font-weight: 700; transition: .2s; }
.whatsapp-button:hover { background: #18834f; transform: translateY(-1px); }
.whatsapp-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.toast { position: fixed; z-index: 60; left: 50%; top: 96px; transform: translate(-50%, -25px); padding: 12px 18px; background: var(--ink); color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
footer { padding: 32px max(24px, 5vw); display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #8e938f; font-size: 10px; }

.modal[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18,28,23,.72); backdrop-filter: blur(5px); }
.modal-panel { position: relative; z-index: 1; width: min(820px, 100%); max-height: min(88vh, 900px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--white); box-shadow: 0 28px 90px rgba(0,0,0,.3); outline: none; transform: translateY(15px) scale(.985); transition: transform .25s; }
.modal.is-open .modal-panel { transform: none; }
.modal-header { position: relative; padding: 25px 85px 20px 30px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }
.modal-header .eyebrow { margin-bottom: 7px; }
.modal-header h2 { font-size: clamp(25px, 3vw, 34px); }
.modal-close { position: absolute; top: 24px; right: 30px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); background: white; color: var(--ink); font: 300 26px/1 sans-serif; transition: .2s; }
.modal-close:hover { background: var(--green); color: white; border-color: var(--green); }
.modal-content { overflow-y: auto; padding: 8px 30px 30px; scrollbar-color: var(--gold) #eceae4; scrollbar-width: thin; }
.modal-content section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.modal-content h3 { margin: 0 0 12px; color: var(--green); font: 700 15px "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .07em; }
.modal-content p, .modal-content li { color: #5e6762; font-size: 15px; line-height: 1.75; }
.modal-content p { margin: 8px 0; }
.modal-content ul { margin: 8px 0 0; padding-left: 20px; }
.modal-content strong { color: var(--ink); }
.rule-date { width: fit-content; padding: 9px 15px; background: var(--paper); color: var(--ink) !important; letter-spacing: .12em; }
.rule-highlight { width: fit-content; padding: 12px 16px; background: #f4efe3; border-left: 3px solid var(--gold); }
.rules-summary { margin-top: 25px; padding: 22px; background: var(--green); color: white; }
.rules-summary > strong { color: var(--gold-light); font: 600 19px "Playfair Display", serif; }
.rules-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 18px 0 0; }
.rules-summary dl div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 11px; }
.rules-summary dt { color: rgba(255,255,255,.66); }
.rules-summary dd { margin: 0; font-weight: 700; text-align: right; }
.modal-footer { min-height: 72px; justify-content: flex-end; align-items: center; padding: 13px 30px; background: #f7f6f2; border-top: 1px solid var(--line); }
.modal-footer .primary-button { display: block; opacity: 1; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .product-photo { min-height: 390px; }
  .number-grid { grid-template-columns: repeat(8, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; grid-row: 1; }
  .price-banner { grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 18px; }
  .price-banner .rules-button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 650px) {
  .site-header { height: 68px; padding: 0 18px; }
  .secure-label { font-size: 0; }
  .brand-mark { width: 35px; height: 35px; font-size: 22px; }
  main { padding: 0 15px; }
  .steps { margin: 22px auto 27px; }
  .step { min-width: auto; flex: 0 0 auto; }
  .step p { display: none; }
  .steps > i { min-width: 24px; margin: 0 9px; }
  .hero-grid { box-shadow: 0 8px 35px rgba(31,43,38,.07); }
  .product-photo { min-height: 325px; }
  .product-image { object-position: center 56%; }
  .product-caption { padding: 70px 20px 23px; }
  .product-caption strong { font-size: 21px; }
  .placeholder-art svg { width: 120px; }
  .placeholder-art strong { font-size: 23px; }
  .intro { padding: 34px 23px 38px; }
  .intro h1 { font-size: 36px; }
  .info-cards { grid-template-columns: 1fr; }
  .info-cards > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .price-banner { margin-top: 18px; padding: 22px 20px; grid-template-columns: 1fr; gap: 17px; }
  .price-banner > i { width: 100%; height: 1px; }
  .price-banner-title, .price-banner-item { justify-content: flex-start; }
  .price-banner .rules-button { grid-column: auto; }
  .numbers-card { margin-top: 18px; padding: 27px 18px; }
  .numbers-heading { align-items: flex-start; flex-direction: column; }
  .random-button { width: 100%; min-width: 0; }
  .number-grid { grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .number { aspect-ratio: 1; }
  .legend { flex-wrap: wrap; gap: 12px 18px; }
  .selection-bar { bottom: 9px; width: calc(100% - 18px); grid-template-columns: auto auto 1fr auto; grid-template-rows: auto auto; padding: 11px 12px 10px; gap: 9px 8px; }
  .bar-numbers { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 9px 1px 1px; border-top: 1px solid rgba(255,255,255,.12); scrollbar-width: none; }
  .bar-numbers::-webkit-scrollbar { display: none; }
  .bar-numbers span { width: 32px; height: 32px; flex-basis: 32px; }
  .clear-button { height: 36px; padding: 0 9px; }
  .clear-button span { font-size: 10px; }
  .bar-copy > span { font-size: 28px; }
  .bar-copy p { display: none; }
  .bar-total { min-width: auto; justify-self: end; padding-left: 10px; }
  .bar-total strong { font-size: 16px; }
  .selection-bar .primary-button { min-width: 118px; padding: 13px; }
  form { grid-template-columns: 1fr; }
  .field-wide { grid-column: 1; }
  .form-card { padding: 30px 21px; }
  .payment-card { padding: 34px 20px; }
  .payment-layout { grid-template-columns: 1fr; }
  .qr-panel { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .payment-details dl > div { grid-template-columns: 95px 1fr; }
  footer { display: block; text-align: center; }
  .modal { padding: 10px; }
  .modal-panel { max-height: 94vh; }
  .modal-header, .modal-content { padding-left: 20px; padding-right: 20px; }
  .modal-footer { padding: 12px 20px; }
  .rules-summary dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
