:root {
  color-scheme: light;
  --forest: #10251d;
  --forest-soft: #1d382d;
  --cream: #f7f3e9;
  --paper: #fffcf5;
  --gold: #d3a84f;
  --gold-light: #f1d89c;
  --muted: #77786e;
  --line: #e8e2d5;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--forest); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { height: 76px; padding: 0 7.5%; display: flex; align-items: center; justify-content: space-between; background: var(--forest); color: #fffaf0; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.brand-mark { color: var(--gold-light); font-family: var(--sans); font-size: 22px; }
.brand-light { color: #d3d4c8; font-weight: 500; }
.header-link { font-size: 13px; letter-spacing: .04em; }
.header-link span { color: var(--gold-light); margin-left: 7px; }

.hero { position: relative; min-height: 635px; padding: 76px 12% 65px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--forest); color: #fffaf0; }
.hero::before, .hero::after { position: absolute; content: ""; width: 430px; height: 430px; border: 1px solid rgba(241,216,156,.08); border-radius: 50%; pointer-events: none; }
.hero::before { top: -280px; left: -180px; }
.hero::after { bottom: -340px; right: -120px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 15px; }
.eyebrow { margin: 0 0 18px; color: var(--gold-light); text-transform: uppercase; letter-spacing: .17em; font-size: 11px; font-weight: 700; }
.eyebrow span { margin-right: 7px; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; }
h1 { font-size: clamp(50px, 5.2vw, 75px); line-height: 1.05; }
h1 em, h2 em { color: var(--gold-light); font-weight: 500; }
.hero-description { max-width: 370px; margin: 22px 0 25px; color: #d0d5cc; font-size: 15px; line-height: 1.8; }
.primary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 23px; padding: 0 22px; border: 0; border-radius: 3px; background: var(--gold-light); color: var(--forest); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.primary-button:hover { background: #f6e5bb; transform: translateY(-1px); }
.hero-note { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; color: #bdc5bb; font-size: 11px; }
.note-stars { color: var(--gold-light); letter-spacing: .16em; font-size: 12px; }

.hero-art { min-height: 430px; position: relative; display: flex; align-items: center; justify-content: center; }
.ornament { position: relative; width: min(390px, 85vw); aspect-ratio: 1232 / 1277; }
.ornament-photo-layer { position: absolute; z-index: 0; top: 39%; left: 25.5%; width: 49%; height: 51%; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 50%; background: rgba(238,232,218,.9); color: #766d5c; font-size: 11px; text-align: center; }
.ornament-product { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ornament-photo-layer img, .mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-icon { font-family: var(--serif); font-size: 45px; line-height: 1; }
.sparkle { position: absolute; color: var(--gold-light); }
.sparkle-one { top: 16%; right: 13%; font-size: 24px; }
.sparkle-two { left: 10%; bottom: 19%; font-size: 27px; }
.hero-flake { position: absolute; z-index: 2; color: #f8f2dc; text-shadow: 0 0 10px rgba(255,255,255,.8); pointer-events: none; animation: snow-drift 5s ease-in-out infinite; }
.flake-one { top: 14%; left: 16%; font-size: 18px; }
.flake-two { top: 30%; right: 8%; font-size: 15px; animation-delay: -1.4s; }
.flake-three { right: 16%; bottom: 17%; font-size: 19px; animation-delay: -2.7s; }
.flake-four { top: 49%; left: 5%; font-size: 14px; animation-delay: -3.2s; }
.flake-five { top: 8%; right: 29%; font-size: 12px; animation-delay: -.8s; }
@keyframes snow-drift { 0%, 100% { transform: translate(0, 0) rotate(0); opacity: .7; } 50% { transform: translate(5px, 10px) rotate(18deg); opacity: 1; } }
.art-caption { position: absolute; bottom: 0; left: 50%; display: flex; align-items: center; gap: 15px; color: #f2d794; font-family: var(--serif); font-size: 14px; font-style: italic; transform: translateX(-50%); white-space: nowrap; }
.hero-bottom { position: absolute; right: 12%; bottom: 25px; left: 12%; display: flex; align-items: center; gap: 16px; color: #c1c8be; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.hero-bottom > span:last-child span { color: var(--gold-light); font-size: 13px; }
.bottom-line { width: 45px; height: 1px; background: var(--gold); }

.details { padding: 83px 15% 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 12%; background: var(--cream); }
.details .eyebrow, .order-heading .eyebrow { color: #94733b; }
h2 { font-size: clamp(36px, 3.7vw, 50px); line-height: 1.16; }
.details h2 em, .order-heading h2 em { color: #a27a36; }
.detail-list { display: grid; gap: 19px; }
.detail-item { display: flex; gap: 16px; align-items: flex-start; }
.detail-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid #dfd1af; border-radius: 50%; color: #94733b; font-size: 18px; }
.detail-item h3 { margin: 1px 0 5px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.detail-item p { max-width: 310px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.order-section { padding: 85px 15% 100px; background: var(--paper); }
.order-heading { max-width: 540px; margin: 0 auto 43px; text-align: center; }
.order-heading p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.order-form { max-width: 795px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 0 42px; align-items: start; }
.form-section { margin-bottom: 32px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.section-title > span { color: #a27a36; font-family: var(--serif); font-size: 13px; }
.section-title h3 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.field { min-width: 0; margin-bottom: 17px; }
.field > label:not(.upload-box) { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.field input:not([type="file"]):not([type="radio"]), .field select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #ded9ce; border-radius: 3px; outline: 0; background: #fffefa; color: var(--forest); font-size: 12px; }
.field input:focus, .field select:focus { border-color: #b18c4a; box-shadow: 0 0 0 2px rgba(177,140,74,.12); }
.field input::placeholder { color: #a5a49d; }
.upload-box { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed #c9b989; border-radius: 3px; background: #fbf8ef; cursor: pointer; }
.upload-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; background: #eee5ce; color: #80642f; font-size: 19px; }
.upload-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.upload-copy strong { font-size: 12px; font-weight: 600; }
.upload-copy small, .field-hint { color: var(--muted); font-size: 10px; }
.upload-action { color: #80642f; font-size: 11px; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.field-hint { display: block; margin: 7px 0 0; line-height: 1.5; }
.preview-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; padding: 11px 13px; border-radius: 3px; background: #f5f0e4; }
.preview-row p { margin: 0; font-size: 11px; line-height: 1.6; }
.preview-row p span { color: var(--muted); font-size: 10px; }
.mini-ornament { width: 48px; height: 48px; flex: 0 0 48px; padding: 4px; border: 1px solid #c8b876; border-radius: 50%; background: linear-gradient(145deg, #e9dcb7, #ffffff); }
.mini-photo { width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: #e8dfcb; color: #8d7951; font-size: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.quantity-control { height: 43px; display: flex; align-items: center; border: 1px solid #ded9ce; border-radius: 3px; background: #fffefa; }
.quantity-control input { height: 100% !important; border: 0 !important; box-shadow: none !important; text-align: center; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity-button { width: 40px; height: 100%; flex: 0 0 40px; border: 0; background: transparent; color: #80642f; cursor: pointer; font-size: 16px; }
.cep-row { display: flex; gap: 8px; }
.cep-row input { flex: 1; min-width: 0; }
.secondary-button { padding: 0 12px; border: 1px solid #c9b989; border-radius: 3px; background: #f8f3e7; color: #725a2c; font-size: 11px; font-weight: 700; cursor: pointer; }
.secondary-button:hover { background: #f0e7d0; }
.shipping-options { display: grid; gap: 7px; margin-top: 12px; }
.shipping-options[hidden] { display: none; }
.shipping-option { min-height: 55px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #ded9ce; border-radius: 3px; background: #fffefa; cursor: pointer; }
.shipping-option:has(input:checked) { border-color: #b18c4a; background: #faf6ea; }
.shipping-option input { width: 14px; height: 14px; margin: 0; accent-color: #80642f; }
.shipping-method { flex: 1; display: grid; gap: 3px; }
.shipping-method strong { font-size: 11px; }
.shipping-method small { color: var(--muted); font-size: 10px; }
.shipping-price { color: var(--forest); font-size: 11px; white-space: nowrap; }
.shipping-price.is-free { color: #315d42; }

.summary { position: sticky; top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: #faf7ee; }
.summary-title { display: flex; justify-content: space-between; margin-bottom: 18px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.summary-title span:last-child { color: #a27a36; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: #6d7067; font-size: 11px; }
.summary-line strong, .summary-line > span:last-child { color: var(--forest); font-weight: 600; white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; padding: 16px 0 18px; font-family: var(--serif); font-size: 16px; }
.summary-total strong { font-size: 19px; }
.submit-button { width: 100%; justify-content: space-between; }
.demo-note { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.demo-note.is-ready { color: #315d42; font-weight: 600; }
.demo-note.is-error, .field-hint.is-error { color: #a63b31; font-weight: 600; }
.payment-panel { margin-top: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 4px; background: #fffefa; }
.payment-panel h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 18px; }
.pix-qr { display: block; width: min(220px, 100%); aspect-ratio: 1; margin: 0 auto 12px; object-fit: contain; }
.pix-status { margin: 10px 0; color: var(--forest); font-size: 12px; line-height: 1.5; }
.pix-status.is-paid { color: #315d42; font-weight: 700; }
.payment-panel label { display: block; margin: 12px 0 6px; font-size: 11px; font-weight: 600; }
.payment-panel textarea { width: 100%; padding: 9px; border: 1px solid #ded9ce; border-radius: 3px; background: #faf7ee; color: var(--forest); font: 10px/1.5 var(--sans); overflow-wrap: anywhere; resize: vertical; }
.payment-action { width: 100%; min-height: 40px; margin-top: 9px; }
.confirmation-dialog { width: min(440px, calc(100% - 32px)); margin: auto; padding: 0; border: 1px solid #e8e2d5; border-radius: 8px; background: var(--paper); color: var(--forest); box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.confirmation-dialog::backdrop { background: rgba(8, 20, 15, .68); backdrop-filter: blur(3px); }
.confirmation-content { padding: 34px 30px 30px; text-align: center; }
.confirmation-icon { width: 54px; height: 54px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 50%; background: #e6efe5; color: #315d42; font-size: 28px; font-weight: 700; }
.confirmation-content h2 { font-size: 29px; }
.confirmation-content > p { margin: 12px 0 0; color: #66695f; font-size: 14px; line-height: 1.65; }
.confirmation-content .confirmation-email { color: var(--forest); font-weight: 700; overflow-wrap: anywhere; }
.confirmation-content .primary-button { width: 100%; margin-top: 24px; }
.site-footer { min-height: 87px; padding: 20px 7.5%; display: flex; align-items: center; justify-content: space-between; background: var(--forest); color: #f9f4e9; }
.footer-brand { font-size: 17px; }
.site-footer p { margin: 0; color: #c0c6bc; font-size: 11px; }
.site-footer p span { color: var(--gold-light); }

@media (min-width: 1200px) {
  .hero { padding-right: 16%; padding-left: 16%; }
  .details, .order-section { padding-right: 19%; padding-left: 19%; }
}
@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 6%; }
  .brand { font-size: 17px; }
  .header-link { font-size: 11px; }
  .hero { min-height: auto; padding: 59px 8% 77px; grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  h1 { font-size: clamp(48px, 12.5vw, 68px); }
  .hero-description { margin-right: auto; margin-left: auto; }
  .hero-note { align-items: center; }
  .hero-art { min-height: 350px; margin-top: 10px; }
  .ornament { width: min(280px, 72vw); }
  .hero-bottom { right: 8%; left: 8%; justify-content: center; }
  .details { padding: 61px 8%; grid-template-columns: 1fr; gap: 30px; }
  .order-section { padding: 64px 7% 75px; }
  .order-form { grid-template-columns: 1fr; gap: 0; }
  .summary { position: static; margin-top: 1px; }
}
@media (max-width: 420px) {
  .header-link { max-width: 130px; text-align: right; line-height: 1.5; }
  .hero { padding-top: 48px; }
  .hero-art { min-height: 315px; }
  .form-grid { gap: 0 8px; }
  .form-grid .field { min-width: 0; }
  .secondary-button { padding: 0 9px; }
  .site-footer { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
}
