:root {
  --cream: #fffdf5; --ink: #26241c; --terracotta: #af5436; --terracotta-dark: #8a3f27; --teal: #213b3f;
  --sage: #bccda3; --sage-soft: #eef2e4; --gold: #e9c867; --muted: #5f5b4e; --line: #e4dfce; --paper: #fbf7ea; --danger: #a8261b;
  --display: Anton, Impact, "Arial Narrow Bold", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--terracotta-dark); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.topbar { max-width: 640px; margin: 0 auto; padding: 18px 16px 6px; display: flex; justify-content: space-between; align-items: baseline; }
.brand { font-family: var(--display); font-size: 26px; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.tagline { font-size: 13px; color: var(--muted); }

.progress { max-width: 640px; margin: 0 auto; padding: 4px 16px 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; }
.back { border: 0; background: none; padding: 10px 0; min-height: 44px; font-weight: 700; color: var(--ink); }
.progress-label { margin: 0; text-align: right; font-size: 13px; color: var(--muted); font-weight: 600; }
.progress-track { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--terracotta); border-radius: 99px; transition: width .25s ease; }

main { max-width: 640px; margin: 0 auto; padding: 18px 16px 40px; }
#screen:focus { outline: none; }
.eyebrow { margin: 6px 0 4px; color: var(--terracotta); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 9vw, 52px); line-height: 1.02; letter-spacing: .01em; margin: 0 0 10px; text-transform: uppercase; }
h2 { font-size: 18px; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 22px; font-size: 18px; }
.fine { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.muted { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.loading { color: var(--muted); }

#notice:empty { display: none; }
#notice { margin: 0 0 16px; padding: 12px 16px; background: var(--sage-soft); border-left: 4px solid var(--teal); border-radius: 8px; }
#notice.error { background: #fbeee7; border-color: var(--danger); color: var(--danger); }
.error-text { color: var(--danger); }

.choices { display: grid; gap: 12px; margin: 18px 0 0; }
.choice { position: relative; display: grid; gap: 2px; text-align: left; width: 100%; padding: 18px 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); min-height: 64px; transition: border-color .15s, transform .15s; }
.choice:hover { border-color: var(--terracotta); }
.choice:active { transform: scale(.99); }
.choice[aria-pressed="true"] { border-color: var(--terracotta); box-shadow: inset 0 0 0 1px var(--terracotta); }
.choice-name { font-weight: 800; font-size: 20px; }
.choice-copy { color: var(--muted); font-size: 15px; }
.choice.featured { background: var(--teal); color: var(--cream); border-color: var(--teal); padding: 24px 18px; }
.choice.featured .choice-name { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .02em; text-transform: uppercase; }
.choice.featured .choice-copy { color: var(--sage); }
.choice.featured:hover, .choice.featured[aria-pressed="true"] { border-color: var(--gold); box-shadow: none; }
.badge { position: absolute; top: -10px; right: 14px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.price { font-weight: 800; font-size: 18px; }
.price.big { font-size: 34px; margin: 0; }
.was { color: var(--muted); font-weight: 500; font-size: .75em; margin-left: 8px; }
.save { justify-self: start; background: var(--sage); color: var(--teal); font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 99px; margin-top: 4px; }
.price-choice { grid-template-columns: 1fr auto; align-items: center; }
.price-choice .choice-name { grid-column: 1; }
.price-choice .price { grid-column: 2; grid-row: 1; text-align: right; }
.price-choice .save, .price-choice .choice-copy { grid-column: 1 / -1; }
.quantities { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.qty { justify-items: center; text-align: center; padding: 14px 8px; }
.qty-number { font-family: var(--display); font-size: 40px; line-height: 1; }
.amounts { grid-template-columns: repeat(3, 1fr); }
.amount { justify-items: center; }
.segmented { display: flex; gap: 4px; background: var(--line); padding: 4px; border-radius: 12px; margin: 6px 0 4px; }
.segmented button { flex: 1; border: 0; border-radius: 9px; background: transparent; padding: 11px 8px; min-height: 44px; font-weight: 700; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 16px 0; }
.upsell { display: grid; gap: 6px; }
form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin: 0 0 16px; }
label { display: block; font-weight: 700; margin: 0 0 6px; font-size: 15px; }
.hint, .optional-note { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.optional-note { background: var(--sage-soft); padding: 10px 14px; border-radius: 10px; }
input, textarea { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c9c2ad; border-radius: 12px; background: var(--paper); font-size: 17px; }
input[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 90px; resize: vertical; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); margin: 0 0 12px; font-weight: 400; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--terracotta); }
.radio-card input { width: 22px; min-height: 22px; margin: 2px 0 0; accent-color: var(--terracotta); flex: 0 0 auto; }
.radio-card strong { display: block; font-size: 17px; }
.radio-card .choice-copy { display: block; }

.primary, .secondary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border-radius: 14px; padding: 14px 18px; font-weight: 800; font-size: 18px; margin: 18px 0 0; text-decoration: none; text-align: center; }
.primary { border: 0; background: var(--terracotta); color: var(--cream); }
.primary:hover:not(:disabled) { background: var(--terracotta-dark); }
.secondary { border: 2px solid var(--ink); background: transparent; color: var(--ink); margin-top: 12px; }
.quiet { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--terracotta-dark); text-decoration: underline; min-height: 44px; font-weight: 600; }
.custom { margin-top: 22px; }

.summary .items { list-style: none; margin: 0; padding: 0; }
.summary li, .summary .total { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 800; font-size: 20px; }
.card-form { min-height: 96px; margin: 16px 0 0; }
#payment-status:empty { display: none; }
#payment-status { margin: 12px 0 0; }

.download { font-size: 20px; min-height: 60px; }
.qr-box { text-align: center; background: var(--paper); border: 2px dashed var(--sage); border-radius: 18px; padding: 20px; margin: 18px 0; }
.qr-box .brand { margin: 0; }
.print-for { font-weight: 800; font-size: 20px; margin: 4px 0 0; overflow-wrap: anywhere; }
.print-items { color: var(--muted); margin: 2px 0 8px; }
#gift-qr, .qr-slot { display: block; width: 220px; height: 220px; max-width: 100%; margin: 8px auto; border-radius: 8px; }
.qr-slot { display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 14px; padding: 12px; }
.receipt { font-size: 17px; }

.footer { max-width: 640px; margin: 0 auto; padding: 12px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer p { margin: 8px 0; }

@media (min-width: 720px) {
  .topbar, .progress, main, .footer { max-width: 720px; }
  .types { grid-template-columns: 1fr 1fr; }
  .types .featured { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  body * { visibility: hidden; }
  #gift-print, #gift-print * { visibility: visible; }
  #gift-print { position: absolute; left: 0; top: 0; width: 100%; max-width: 5in; border: 1px solid #999; }
}

.household { display: grid; gap: 14px; }
.stepper { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stepper-label { font-weight: 700; }
.stepper-controls { display: flex; align-items: center; gap: 10px; }
.stepper-controls button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 24px; font-weight: 700; line-height: 1; }
.stepper-controls button:disabled { opacity: .3; }
.count { min-width: 28px; text-align: center; font-size: 22px; font-weight: 800; }
.choice:disabled { opacity: .55; cursor: default; }

form.custom { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: 10px; }
form.custom > * { min-width: 0; margin: 0; }
