:root {
  --bg: #FBF2F1; --stage: #F8ECEA; --text: #4A3236; --muted: #7A5A5E; --accent: #E7B8BB; --accent-ink: #4A3236;
  --seal: #A9666D; --seal-ring: #DDA9AD; --seal-ink: #FFFBFA; --paper: #FFFBFA; --paper-ink: #4A3236; --line: #EBD3D3; --error: #A3283C;
  --font-display: Gloock, Georgia, serif; --font-text: Literata, Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: clip; }
html { background: var(--bg); transition: background-color .4s ease; }
body { background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-text); -webkit-font-smoothing: antialiased; transition: background-color .4s ease, color .4s ease; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
h1, h2, p { margin: 0; }

.app { min-height: 100dvh; display: grid; justify-items: center; align-content: start; padding: clamp(24px, 7vh, 72px) 20px 48px; }
.app.open-fill { padding: 0; display: block; justify-items: stretch; }
.step, .preview, .share, .notice { width: min(100%, 460px); }
.progress { color: var(--muted); font-size: .9375rem; margin-bottom: 12px; }
.question { font: 400 clamp(1.75rem, 7vw, 2.25rem)/1.18 var(--font-display); margin-bottom: 12px; }
.help { color: var(--muted); margin-bottom: 8px; }
.step .options, .step > .input, .step .row, .step .textarea, .step .theme-grid { margin-top: 24px; }

.input { width: 100%; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font: inherit; }
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus-visible { outline: 2px solid var(--seal); outline-offset: 1px; }
.textarea { display: block; line-height: 1.75; resize: vertical; }
.row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.options { display: grid; gap: 10px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.option > span { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); border-radius: 12px; transition: background-color .2s, border-color .2s; }
.option input:checked + span { background: var(--accent); border-color: var(--seal); color: var(--accent-ink); }
.option input:focus-visible + span { outline: 2px solid var(--seal); outline-offset: 3px; }
.option-text { display: grid; }
.option-text small { font-size: .875rem; opacity: .85; }
.theme-grid .options { grid-template-columns: 1fr 1fr; }
.option-theme > span { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
.swatch { display: flex; align-items: center; gap: 6px; width: 100%; height: 54px; padding: 0 12px; border: 1px solid; border-radius: 9px; }
.swatch span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid transparent; }
.swatch span:first-child { width: 34px; height: 26px; border-radius: 4px; }
.count { color: var(--muted); font-size: .9375rem; text-align: right; margin-top: 6px; }
.error { color: var(--error); min-height: 1.6em; margin-top: 12px; }

.actions { display: flex; gap: 12px; margin-top: 12px; }
.actions .btn { flex: 1; }
.btn { display: inline-block; text-align: center; text-decoration: none; cursor: pointer; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: 13px 26px; font: 500 1rem/1.3 var(--font-text); transition: filter .2s; }
.btn:hover { filter: brightness(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.link { color: var(--text); text-underline-offset: 3px; }

.preview { display: grid; justify-items: center; text-align: center; }
.preview .actions { width: 100%; margin-top: 20px; }
.phone { height: max(440px, calc(100dvh - 250px)); aspect-ratio: 390 / 740; max-width: 100%; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; margin-top: 16px; position: relative; box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--seal) 45%, transparent); }
.share .input { margin-top: 20px; }
.qr { width: 190px; margin: 20px 0; }
.qr svg { display: block; width: 100%; height: auto; border-radius: 8px; }

.notice { text-align: center; padding-top: 12vh; }
.small-seal { width: 92px; height: 92px; margin: 0 auto 28px; border-radius: 47% 53% 50% 50%; background: var(--seal); box-shadow: inset 0 0 0 7px var(--seal-ring), inset 0 0 0 9px var(--seal); }
.clock { display: flex; justify-content: center; gap: 28px; margin-top: 24px; }
.time strong { display: block; font: 400 2.5rem/1 var(--font-display); color: var(--seal); }
.time span { font-size: .9375rem; color: var(--muted); }

.wordmark { font: 400 1.375rem/1 var(--font-display); color: var(--seal); position: absolute; top: 28px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.field-label { display: block; color: var(--muted); font-size: .9375rem; margin: 16px 0 6px; }
.secret-fields { margin-top: 12px; }
.list-fields { display: grid; gap: 10px; margin-top: 24px; }
.list-row { display: flex; gap: 8px; align-items: center; }
.icon-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 1.25rem; cursor: pointer; }
.btn-small { justify-self: start; padding: 9px 18px; font-size: .9375rem; }
.gate .input { margin-top: 20px; text-align: center; }
.gate .btn { min-width: 200px; }
.gate-hint { font: 400 1.4rem/1.3 var(--font-display); color: var(--seal); margin-top: 18px; }
.link-button { background: none; border: 0; padding: 4px; font: inherit; cursor: pointer; text-decoration: underline; }

@media (min-width: 900px) {
  .preview { width: min(100%, 960px); grid-template-columns: auto minmax(0, 1fr); column-gap: 56px; align-content: center; justify-items: start; text-align: left; }
  .preview > * { grid-column: 2; }
  .preview > .phone { grid-column: 1; grid-row: 1 / span 5; height: min(820px, calc(100dvh - 96px)); margin-top: 0; }
  .preview .actions { margin-top: 12px; }
  .app:has(.preview) { align-content: center; padding-top: 32px; padding-bottom: 32px; }
}
@media (max-width: 480px) {
  .app:has(.preview) { padding: 16px 12px 24px; }
  .preview .question { font-size: 1.5rem; margin-bottom: 4px; }
  .preview > .help { display: none; }
  .phone { width: 100%; height: auto; min-height: 0; border-radius: 22px; margin-top: 8px; }
  .app:has(.preview) { padding-bottom: 0; }
  .preview .actions { position: sticky; bottom: 0; z-index: 10; width: calc(100% + 24px); margin: 12px -12px 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .preview .error:empty { display: none; }
}
.test-banner { position: fixed; left: 10px; bottom: 10px; z-index: 50; margin: 0; padding: 4px 10px; border-radius: 999px; background: #3a3446; color: #fff; font: 500 .75rem/1.4 system-ui, sans-serif; pointer-events: none; opacity: .85; }
.word-grid .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.word-grid .option > span { padding: 12px 14px; overflow-wrap: anywhere; }
.step .word-grid .options { margin-top: 12px; }
.own-word { margin-top: 20px; display: grid; gap: 8px; }
.own-word .row { display: flex; gap: 10px; margin-top: 0; }
.own-word .row .input { flex: 1 1 auto; min-width: 0; }
.own-word .row .btn { flex: 0 0 auto; }
.toggle-list { display: grid; gap: 16px; margin-top: 24px; }
.option-toggle > span { font-weight: 500; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; }
.plan-price { font: 400 1.25rem/1 var(--font-display); white-space: nowrap; }
.option-plan > span, .option-plan .option-text { width: 100%; }
.option-plan small { display: block; margin-top: 6px; line-height: 1.45; }

/* Gifts */
.gifts { width: min(100%, 760px); }
.gift-none { display: flex; gap: 12px; align-items: center; margin-top: 24px; padding: 16px 18px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.gift-none input { accent-color: var(--seal); width: 18px; height: 18px; flex: none; }
.gift-none span { display: grid; gap: 2px; }
.gift-none small { color: var(--muted); font-size: .875rem; }
.gift-none.is-on { border-color: var(--seal); box-shadow: 0 0 0 1px var(--seal); }
.gift-group { margin-top: 28px; }
.gift-group h2 { font: 400 1.25rem/1.3 var(--font-display); margin-bottom: 12px; }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gift-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 4px; text-align: left; padding: 12px 12px 14px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); border-radius: 16px; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.gift-card:hover { border-color: color-mix(in srgb, var(--seal) 55%, var(--line)); }
.gift-card:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
.gift-card.is-on { border-color: var(--seal); box-shadow: 0 0 0 1px var(--seal); }
.gift-card-art { display: grid; place-items: center; aspect-ratio: 6 / 5; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--paper)); margin-bottom: 6px; overflow: hidden; }
.gift-art { width: 78%; height: auto; }
.gift-photo { width: 100%; height: 100%; object-fit: cover; }
.gift-card-name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.gift-card-blurb { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.gift-card-price { font: 400 1.125rem/1.2 var(--font-display); margin-top: 6px; }
.gift-card-cta { font-size: .8125rem; color: var(--seal); font-weight: 600; }
.gift-badge { position: absolute; top: 18px; left: 18px; z-index: 1; padding: 2px 8px; border-radius: 999px; background: var(--seal); color: var(--seal-ink); font-size: .6875rem; font-weight: 600; letter-spacing: .02em; }
.gift-chosen { display: grid; gap: 4px; margin-top: 24px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, var(--bg)); font-size: .9375rem; }
.gift-chosen .gift-remove { justify-self: start; margin-top: 6px; }
.gifts .actions { margin-top: 24px; }
.gifts .error:empty { display: none; }

/* Customise sheet */
body.has-sheet { overflow: hidden; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--text) 38%, transparent); animation: fade .18s ease-out; }
.sheet { width: min(100%, 520px); max-height: min(88dvh, 760px); display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); color: var(--text); border-radius: 20px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); overflow: hidden; animation: rise .22s ease-out; }
.sheet-head { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font: 400 1.375rem/1.2 var(--font-display); }
.sheet-head .help { margin: 2px 0 0; font-size: .875rem; }
.gift-gallery { margin: 0 0 18px; }
.gift-gallery-frame { position: relative; }
.gift-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 252 248 / .92); color: #3B2A2C; font-size: 30px; line-height: 1; display: grid; place-items: center; padding: 0 0 4px; cursor: pointer; box-shadow: 0 4px 14px -6px rgb(0 0 0 / .45); transition: opacity .2s; }
.gift-gallery-arrow.prev { left: 10px; } .gift-gallery-arrow.next { right: 10px; }
.gift-gallery-arrow:disabled { opacity: 0; pointer-events: none; }
.gift-gallery-count { position: absolute; top: 10px; right: 10px; background: rgb(42 30 31 / .7); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 99px; }
.gift-gallery-badge { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; background: rgb(255 252 248 / .95); border-radius: 14px; padding: 6px 12px 6px 6px; box-shadow: 0 4px 14px -6px rgb(0 0 0 / .4); font-weight: 600; font-size: 14px; }
.gift-gallery-badge img { width: 40px; height: 40px; }
.gift-gallery-badge small { display: block; font-weight: 400; font-size: 11px; opacity: .7; }
.chip-pic span { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; }
.chip-pic img { width: 44px; height: 44px; }
.gift-gallery-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; scrollbar-width: none; background: var(--paper); }
.gift-gallery-strip::-webkit-scrollbar { display: none; }
.gift-gallery-strip img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; }
.gift-gallery-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.gift-gallery-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.gift-gallery-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line, #E6D9CE); transition: background .2s, transform .2s; }
.gift-gallery-dots button.is-on::before { background: var(--accent); transform: scale(1.25); }
.sheet-art { display: grid; place-items: center; width: 72px; aspect-ratio: 1; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, var(--paper)); overflow: hidden; }
.sheet-close { align-self: start; }
.sheet-body { overflow-y: auto; padding: 4px 18px 18px; overscroll-behavior: contain; }
.includes { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; padding: 0; }
.includes li { padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.part { padding-top: 16px; }
.part + .part { border-top: 1px solid var(--line); margin-top: 16px; }
.part h3 { font: 600 1rem/1.3 inherit; margin-bottom: 4px; }
.choice { border: 0; padding: 0; margin: 10px 0 0; min-width: 0; }
.choice legend { font-size: .875rem; color: var(--muted); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--paper-ink); font-size: .9375rem; line-height: 1.3; }
.chip small { color: var(--muted); font-size: .75rem; }
.chip input:checked + span { border-color: var(--seal); background: color-mix(in srgb, var(--seal) 14%, var(--paper)); box-shadow: 0 0 0 1px var(--seal); }
.chip input:focus-visible + span { outline: 2px solid var(--seal); outline-offset: 2px; }
.chip-detail { margin: 6px 0 0; font-size: .8125rem; }
.part-text { display: grid; gap: 6px; margin-top: 14px; }
.part-text .error { margin: 0; font-size: .875rem; }
.sheet-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.sheet-foot .btn { width: 100%; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

/* Delivery and review */
.delivery .fields { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field .error { margin: 0; font-size: .875rem; }
.field-label { font-size: .9375rem; font-weight: 500; }
.field-divider { height: 1px; background: var(--line); margin: 6px 0; }
.field-note { margin-top: -6px; font-size: .875rem; }
select.input { appearance: auto; }
.receipt { margin-top: 20px; padding: 16px 18px; border-radius: 16px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); display: grid; gap: 10px; }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; }
.receipt-row span:last-child { white-space: nowrap; }
.receipt-lines { margin: -4px 0 0; padding-left: 18px; color: var(--muted); font-size: .875rem; display: grid; gap: 2px; }
.receipt-total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 600; font-size: 1.0625rem; }
.receipt-address { display: grid; gap: 2px; margin: 16px 0 12px; font-size: .9375rem; overflow-wrap: anywhere; }
.order-done { padding: 18px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 14%, var(--bg)); margin-bottom: 28px; display: grid; gap: 8px; justify-items: start; }
.order-id { font-size: .875rem; color: var(--muted); letter-spacing: .04em; }
.order-done .question { margin-bottom: 0; }

@media (max-width: 640px) {
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .sheet-backdrop { padding: 0; place-items: end stretch; }
  .sheet { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .sheet-head { grid-template-columns: 56px 1fr auto; padding: 14px 14px 12px; }
  .sheet-art { width: 56px; }
  .sheet-body { padding: 0 14px 16px; }
  .sheet-foot { padding-left: 14px; padding-right: 14px; }
  .gift-card { padding: 10px 10px 12px; }
  .gift-badge { top: 14px; left: 14px; }
}
@media (max-width: 480px) {
  .app:has(.gifts) { padding-bottom: 0; }
  .gifts .actions { position: sticky; bottom: 0; z-index: 10; width: calc(100% + 40px); margin: 24px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
}
.crash { min-height: 100dvh; display: grid; align-content: center; justify-items: start; gap: 14px; max-width: 520px; margin: 0 auto; padding: 32px 22px; background: var(--bg, #FBF6F3); color: var(--text, #2E2630); }
.crash h1 { font: 400 1.8rem/1.2 var(--font-display, Georgia, serif); }
.crash-detail { font: .75rem/1.4 ui-monospace, monospace; color: var(--muted, #6E6470); overflow-wrap: anywhere; }
.duo-grid { display: grid; gap: 12px; margin-top: 20px; }
.duo-card { position: relative; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); cursor: pointer; }
.duo-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.duo-card.is-on { border-color: var(--seal); box-shadow: 0 0 0 2px var(--seal); }
.duo-card:has(input:focus-visible) { outline: 2px solid var(--seal); outline-offset: 3px; }
.duo-art { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.duo-art .sr-critter { width: 100%; }
.duo-name { font-weight: 600; font-size: 1.0625rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.photos { margin-top: 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; }
.photo-tile { position: relative; margin: 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--line); display: block; }
.photo-tile.is-uploading img { opacity: .5; filter: blur(1px); }
.photo-remove { position: absolute; top: 6px; right: 6px; background: rgb(0 0 0 / .55); color: #fff; border: 0; }
.photo-caption { font-size: .875rem; padding: 8px 10px; line-height: 1.35; resize: none; font-family: inherit; }
.photo-spinner { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .6); border-top-color: var(--seal); animation: photo-spin .8s linear infinite; }
.photo-spinner { top: calc(50% - 20px); }
.photo-tile:not(:has(.photo-caption)) .photo-spinner { top: 50%; }
@keyframes photo-spin { to { rotate: 360deg; } }
.photo-add { display: grid; place-items: center; align-content: center; gap: 4px; aspect-ratio: 1; border-radius: 12px; border: 2px dashed color-mix(in srgb, var(--seal) 55%, var(--line)); background: color-mix(in srgb, var(--seal) 6%, var(--paper)); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; padding: 10px; text-align: center; }
.photo-add span { font-size: 2rem; line-height: 1; color: var(--seal); }
.photo-add:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.photo-privacy { margin-top: 14px; font-size: .875rem; }

/* Wheel: hamper / own prizes / no wheel */
.toggle-three .option > span { flex-direction: column; align-items: flex-start; gap: 4px; }
.toggle-three .option small { font-weight: 400; font-size: .875rem; line-height: 1.45; color: color-mix(in srgb, var(--paper-ink) 72%, transparent); }
.toggle-hamper > span::before { content: "Popular"; order: -1; font: 600 .6875rem/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--seal); }
.gift-wheel-note { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--seal) 8%, var(--paper)); border: 1px solid color-mix(in srgb, var(--seal) 30%, var(--line)); line-height: 1.5; }

/* Photo captions with a suggest-another button */
.photo-caption-row { display: flex; gap: 6px; align-items: stretch; min-width: 0; }
.photo-caption-row .photo-caption { flex: 1 1 auto; min-width: 0; }
.photo-caption-new { flex: 0 0 auto; color: var(--seal); }

/* Preview-first editor: the surprise fills the phone screen, edited page by page */
.app-studio { display: block; min-height: 0; padding: 0; }
.studio { position: fixed; top: 0; left: 0; right: 0; height: 100dvh; width: min(100%, 520px); margin: 0 auto; display: flex; flex-direction: column; background: var(--bg); padding-top: env(safe-area-inset-top); z-index: 5; }
.studio-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px 4px; }
.studio .gf-bar { min-height: 52px; padding-block: 6px; }
.studio .gf-bar .icon-btn { width: 40px; height: 40px; display: grid; place-items: center; color: #4A3236; border-color: #EBD3D3; background: #FFFBFA; }
.studio-top .icon-btn { font-size: 1.5rem; line-height: 1; display: grid; place-items: center; }
.studio-plans { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.studio-plan { position: relative; display: grid; justify-items: center; padding: 4px 6px; border-radius: 999px; cursor: pointer; font-size: .75rem; line-height: 1.2; color: var(--paper-ink); min-width: 0; text-align: center; }
.studio-plan span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.studio-plan b { font-weight: 600; }
.studio-plan input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.studio-plan.is-on { background: var(--accent); color: var(--accent-ink); }
.studio-plan:has(input:focus-visible) { outline: 2px solid var(--seal); outline-offset: 2px; }
.studio-pages { display: flex; gap: 4px; padding: 6px 14px 0; }
.studio-seg { flex: 1 1 0; min-width: 0; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.studio-seg::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 2px; background: var(--line); }
.studio-seg.is-past::after { background: color-mix(in srgb, var(--seal) 55%, var(--line)); }
.studio-seg.is-on::after { background: var(--seal); top: 5px; height: 6px; }
.studio-seg.is-locked::after { background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 7px); }
.studio-seg.is-locked.is-on::after { background: repeating-linear-gradient(90deg, var(--seal) 0 4px, transparent 4px 7px); }
.studio-where { text-align: center; font-size: .875rem; color: var(--muted); padding: 2px 0 6px; }
.studio-where b { color: var(--text); font-weight: 500; }
.studio-notice { margin: 0 12px 8px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, var(--bg)); font-size: .875rem; line-height: 1.4; }
.studio-notice .pill { margin: 6px 6px 0 0; padding: 5px 12px; }
.studio-stage { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 0 12px; }
.studio-phone { position: relative; height: 100%; max-width: 100%; aspect-ratio: 390 / 740; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--stage); box-shadow: 0 14px 30px -22px color-mix(in srgb, var(--seal) 45%, transparent); }
.studio.has-sheet .studio-stage { flex: 0 0 36%; }
.studio.has-sheet .studio-where, .studio.has-sheet .studio-notice { display: none; }
.studio-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: var(--stage); color: var(--text); }
.studio-placeholder h2 { font: 400 1.5rem/1.25 var(--font-display); }
.studio-placeholder p { color: var(--muted); max-width: 26ch; }
.studio-lock { font-size: 2rem; line-height: 1; }
.studio-foot { display: grid; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.studio-nav { display: flex; gap: 8px; align-items: center; }
.studio-nav .icon-btn { font-size: 1.5rem; line-height: 1; display: grid; place-items: center; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.studio-edit { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; }
.studio-continue { width: 100%; }
.studio-sheet { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-top: 8px; background: var(--bg); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -14px 30px -22px rgb(0 0 0 / .4); animation: rise .2s ease-out; }
.studio-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 16px; border-bottom: 1px solid var(--line); }
.studio-sheet-head h2 { font: 400 1.25rem/1.25 var(--font-display); min-width: 0; overflow-wrap: anywhere; }
.studio-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); }
.studio-upsell { margin: 14px 0 4px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; }
.studio-upsell p { margin: 0 0 10px; }
.studio-field { padding-top: 12px; }
.studio-field + .studio-field { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.studio-field-label { font: 600 1rem/1.35 var(--font-text); margin-bottom: 4px; }
.studio-field .help { font-size: .9375rem; }
.studio-field > .input, .studio-field > .row, .studio-field > .options, .studio-field > .theme-grid, .studio-field > .audience-grid, .studio-field > div > .textarea { margin-top: 10px; }
.studio-field .error { margin-top: 6px; min-height: 0; }
.studio .photo-caption, .studio .input { font-size: max(16px, 1em); }
.studio-to-details, .studio-alt { display: block; margin-top: 18px; }
.studio-alt { text-align: center; }
.name-field + .name-field { margin-top: 4px; }
.name-step > .name-field:first-of-type .input { margin-top: 20px; }
.name-step .error { margin-top: 6px; min-height: 0; }
.name-step .actions { margin-top: 24px; }
.name-alt { margin-top: 20px; text-align: center; }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.check-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); border-radius: 12px; line-height: 1.4; }
.check-item .btn { flex: none; }
.check-item.is-must { border-color: var(--seal); box-shadow: inset 4px 0 0 var(--seal); font-weight: 500; }
.check-item.is-sample span { color: var(--muted); }
.upload-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 60; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .9375rem; white-space: nowrap; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .5); }
@media (min-width: 560px) { .studio { border-inline: 1px solid var(--line); } }
.studio-confirm { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--seal) 8%, var(--paper)); border: 1px solid color-mix(in srgb, var(--seal) 30%, var(--line)); font-size: .9375rem; }
.studio-confirm .btn { flex: none; }

/* ---------- Home page ---------- */
.hp { --wax: #8E1F2E; --display: var(--font-display); --script: 'Great Vibes', 'Brush Script MT', cursive; --hand: 'Caveat', 'Segoe Print', cursive; --body: var(--font-text); }

/* Layout: the app's own blush palette. Paper pieces (envelope, label, ticket, polaroids) sit on it like the scrapbook pages. Steps draw themselves along one line as you scroll, gifts run as panels that widen one at a time. */
.hp, .hp * { box-sizing: border-box; }

.hp { position: relative; min-height: 100dvh; overflow-x: clip; color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
.hp::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at 15% 0%, #FFFFFF 0%, transparent 55%), radial-gradient(ellipse at 90% 100%, #F4D6D6 0%, transparent 55%); pointer-events: none; z-index: 0; }
.hp-wrap { position: relative; z-index: 2; width: min(1440px, 100%); margin: 0 auto; padding-left: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px)); }
.hp h1, .hp h2, .hp h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
.hp :where(p) { margin: 0; }
.hp a { color: inherit; }
.hp :focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

/* Nav */
.hp-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.hp-links { display: flex; gap: 28px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.hp-links a { text-decoration: none; color: var(--muted); }
.hp-links a:hover { color: var(--text); }
.hp-btn { display: inline-block; font: 600 .95rem/1 var(--body); letter-spacing: .03em; text-decoration: none; background: var(--seal); color: var(--seal-ink); padding: 15px 26px; border-radius: 999px; border: 1px solid var(--seal); cursor: pointer; transition: translate .2s, box-shadow .2s; box-shadow: 0 10px 22px -12px rgb(169 102 109 / .8); }
.hp-btn:hover { translate: 0 -2px; box-shadow: 0 16px 26px -12px rgb(169 102 109 / .9); }
.hp-btn-quiet { background: transparent; color: var(--text); border-color: var(--seal-ring); box-shadow: none; }
.hp-btn-quiet:hover { box-shadow: none; background: var(--stage); }

/* Hero */
.hp-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px 56px; align-items: center; padding-block: 28px 80px; min-height: 640px; }
.hp-hero h1 { font-size: clamp(3rem, 6.4vw, 5.4rem); letter-spacing: -.01em; }
.hp-hero h1 em { display: block; font: 400 clamp(2.6rem, 5.6vw, 4.8rem)/1.05 var(--script); color: var(--seal); margin-top: 8px; }
.hp-lead { margin-top: 24px; max-width: 30em; color: var(--muted); }
.hp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hp-collage { position: relative; height: 560px; width: 100%; max-width: 700px; justify-self: end; }
.hp-piece { position: absolute; transition: translate .25s ease-out; }
.hp-paper { background: var(--paper); color: var(--text); box-shadow: 0 16px 28px -14px rgb(74 50 54 / .45); border: 1px solid var(--line); }
.hp-env { left: 0; top: 17%; width: 300px; height: 208px; rotate: -4deg; cursor: pointer; border: 0; padding: 0; background: none; }
.hp-env .hp-body { position: absolute; inset: 0; background: linear-gradient(160deg, #C79B76, #A97B58); border-radius: 4px; box-shadow: 0 20px 30px -14px rgb(74 50 54 / .6); overflow: hidden; }
.hp-env .hp-.hp::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49.5%, rgb(0 0 0 / .1) 50%), linear-gradient(to bottom left, transparent 49.5%, rgb(0 0 0 / .1) 50%); }
.hp-env .hp-flap { position: absolute; left: 0; right: 0; top: 0; height: 56%; background: linear-gradient(#B98D68, #A47453); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; animation: flap 5s ease-in-out infinite; z-index: 3; }
.hp-env .hp-photo { position: absolute; left: 14%; right: 14%; top: 4%; height: 78%; background: var(--paper); padding: 8px 8px 26px; z-index: 2; animation: slide 5s ease-in-out infinite; box-shadow: 0 6px 12px rgb(0 0 0 / .25); }
.hp-env .hp-photo i { display: block; height: 100%; background: linear-gradient(180deg, #f0c9c6 0%, #c98f98 55%, #6e4452 100%); position: relative; overflow: hidden; }
.hp-env .hp-photo i::before, .hp-env .hp-photo i::after { content: ''; position: absolute; bottom: -10px; width: 34%; height: 62%; border-radius: 50% 50% 8% 8%; background: #4a2a36; }
.hp-env .hp-photo i::before { left: 22%; } .hp-env .hp-photo i::after { left: 46%; background: #6a3a48; }
.hp-env .hp-front { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(#B58660, #9C6F4D); clip-path: polygon(0 100%, 0 30%, 50% 0, 100% 30%, 100% 100%); z-index: 4; }
.hp-seal { position: absolute; left: 50%; bottom: 20%; translate: -50% 0; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d64a58, var(--wax) 70%); z-index: 5; box-shadow: 0 4px 8px rgb(0 0 0 / .4); display: grid; place-items: center; font: 400 1.5rem/1 var(--script); color: #f6d3d6; }
.hp-env .hp-hint { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font: 500 1.2rem/1 var(--hand); color: var(--seal); }
.hp-env.hp-open .hp-flap { animation: none; transform: rotateX(180deg); z-index: 0; transition: transform .6s; }
.hp-env.hp-open .hp-photo { animation: none; translate: 0 -34%; transition: translate .7s .2s; }
.hp-env.hp-open .hp-seal { opacity: 0; transition: opacity .3s; }
@keyframes flap { 0%, 15% { transform: rotateX(0); } 35%, 75% { transform: rotateX(180deg); z-index: 0; } 95%, 100% { transform: rotateX(0); } }
@keyframes slide { 0%, 20% { translate: 0 22%; } 45%, 70% { translate: 0 -34%; } 95%, 100% { translate: 0 22%; } }
.hp-label { left: 34%; top: 60%; width: 260px; padding: 22px 20px 20px; text-align: center; rotate: 2deg; outline: 5px solid var(--paper); outline-offset: -11px; border-radius: 2px; }
.hp-label small { display: block; font: 500 .7rem/1.4 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.hp-label b { display: block; font: 400 2rem/1.1 var(--display); margin: 8px 0 4px; }
.hp-label span { font: 400 1.35rem/1 var(--script); color: var(--seal); }
.hp-count { right: 0; top: 8%; width: 240px; text-align: center; padding: 20px 16px 18px; }
.hp-count h3 { font: 400 1.5rem/1 var(--display); letter-spacing: .04em; }
.hp-count em { display: block; font: 400 2.2rem/1.1 var(--script); color: var(--seal); margin: 2px 0 12px; }
.hp-clock { display: flex; justify-content: center; gap: 12px; font: 400 1.9rem/1 var(--display); font-variant-numeric: tabular-nums; }
.hp-clock div { display: grid; gap: 6px; }
.hp-clock small { font: 500 .58rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hp-ticket { left: 0; bottom: 0; width: 220px; padding: 16px 18px; rotate: -3deg; background: #F6E6CF; border-radius: 3px; }
.hp-ticket::before, .hp-ticket::after { content: ''; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); translate: 0 -50%; }
.hp-ticket::before { left: -9px; } .hp-ticket::after { right: -9px; }
.hp-ticket small { font: 500 .64rem/1 var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hp-ticket b { display: block; font: 400 1.6rem/1.1 var(--display); letter-spacing: .1em; margin: 6px 0 2px; }
.hp-ticket span { font: 500 1.25rem/1 var(--hand); color: var(--wax); }
.hp-rose { right: 0; bottom: 0; width: 140px; rotate: 8deg; filter: drop-shadow(0 14px 12px rgb(74 50 54 / .35)); animation: sway 6s ease-in-out infinite; }
@keyframes sway { 50% { rotate: 3deg; } }
.hp-tape { position: absolute; width: 74px; height: 22px; background: rgb(231 184 187 / .85); mix-blend-mode: multiply; rotate: -8deg; }
.hp-heartb { right: 38%; top: 10%; width: 38px; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 50% { scale: 1.18; } }

/* Sections */
.hp section:not(.scene) { position: relative; z-index: 2; }
.hp-sec { padding-block: 84px; }
.hp-sec-head { max-width: 640px; margin-bottom: 72px; }
.hp-sec-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hp-sec-head h2 em { font: 400 1.15em/1 var(--script); color: var(--seal); }
.hp-sec-head p { margin-top: 16px; color: var(--muted); }
/* Soft reveal on scroll. Only applies once the script has run, and everything stays readable if it never does. */
.hp.is-ready .hp-rv { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .7s ease; transition-delay: calc(var(--i, 0) * 110ms); }
.hp.is-ready .hp-rv.hp-in { opacity: 1; translate: 0 0; }

/* Occasion cards */
.hp-occ { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hp-card { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 290px; padding: 26px 22px 22px; border-radius: 4px; text-decoration: none; background: var(--paper); color: var(--text); border: 1px solid var(--line); box-shadow: 0 18px 28px -18px rgb(74 50 54 / .5); transition: translate .25s, rotate .25s, opacity .7s, box-shadow .25s; }
.hp-card:nth-child(1) { rotate: -1.6deg; } .hp-card:nth-child(2) { rotate: 1.2deg; background: #FBE6E6; } .hp-card:nth-child(3) { rotate: -.8deg; background: #F6EBD8; } .hp-card:nth-child(4) { rotate: 1.8deg; background: #F3E4E8; }
.hp-card:hover { rotate: 0deg; box-shadow: 0 26px 34px -18px rgb(74 50 54 / .55); }
.hp.is-ready .hp-card.hp-rv.hp-in:hover { translate: 0 -8px; }
.hp-card::before { content: ''; position: absolute; left: 50%; top: -11px; width: 80px; height: 24px; translate: -50% 0; background: rgb(231 184 187 / .9); mix-blend-mode: multiply; rotate: -3deg; }
.hp-card h3 { font-size: 2rem; color: var(--seal); }
.hp-card p { font-size: .94rem; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.hp-card .hp-pg { font: 500 .7rem/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hp-card .hp-go { font: 400 1.5rem/1 var(--script); color: var(--wax); transition: translate .25s; }
.hp-card .hp-go { display: inline-block; text-decoration: none; }
.hp-card:hover .hp-go { translate: 8px 0; }

/* Wedding invitations: a wide card under the four occasions, with a fan of the four designs. */
.hp-card.hp-card-wide { grid-column: 1 / -1; rotate: -.4deg; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 28px 40px; min-height: 0; padding: 34px 36px; background: #F7EBDD; }
.hp-wide-txt { display: grid; gap: 6px; justify-items: start; max-width: 46ch; }
.hp-wide-txt .hp-go { margin-top: 10px; }
.hp-fan { position: relative; display: block; height: 250px; text-decoration: none; }
.hp-fan .wd-mini { position: absolute; top: 18px; left: 50%; width: 132px; transition: rotate .3s, translate .3s; }
.hp-fan .wd-mini:nth-child(1) { translate: -250px 14px; rotate: -10deg; }
.hp-fan .wd-mini:nth-child(2) { translate: -130px 0; rotate: -3deg; z-index: 2; }
.hp-fan .wd-mini:nth-child(3) { translate: -10px 4px; rotate: 3deg; z-index: 3; }
.hp-fan .wd-mini:nth-child(4) { translate: 110px 18px; rotate: 10deg; z-index: 4; }
.hp-fan:hover .wd-mini:nth-child(1) { translate: -262px 8px; }
.hp-fan:hover .wd-mini:nth-child(4) { translate: 122px 12px; }

.wd-mini { display: flex; flex-direction: column; align-items: center; aspect-ratio: 5 / 7; overflow: hidden; border-radius: 3px; padding: 16px 10px; text-align: center; font-style: normal; box-shadow: 0 14px 24px -12px rgb(60 30 20 / .55), 0 1px 3px rgb(60 30 20 / .25); }
.wd-mini i, .wd-mini b, .wd-mini small { font-style: normal; display: block; }
.wd-rp { background: #EFE5D0; color: #C23A7C; gap: 4px; }
.wd-rp b { font: 700 2.1rem/1.2 'Tiro Devanagari Hindi', 'Kohinoor Devanagari', 'Noto Sans Devanagari', serif; }
.wd-rp i { font: 400 1.4rem/1 'Great Vibes', cursive; color: #C2703A; }
.wd-rp small { margin-top: auto; font-size: .72rem; color: #5A4632; letter-spacing: .06em; }
.wd-ch { background: #7A1530; padding: 12px; justify-content: center; }
.wd-ch > span { display: block; width: 100%; height: 100%; padding: 14px 8px; background: #F7F0DF; border: 3px solid #C9A46A; text-align: left; rotate: -3deg; }
.wd-ch i { font: 600 .66rem/1.3 system-ui, sans-serif; color: #D9416A; }
.wd-ch b { font: 400 1.25rem/1.05 var(--font-display, Georgia), serif; color: #8A9A5B; padding-left: 14px; }
.wd-mh { background: #C9A24A; padding: 8px; }
.wd-mh > span { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 100%; height: 100%; background: #F7EDE0; border-radius: 50% 50% 2px 2px / 28% 28% 2px 2px; box-shadow: inset 0 0 0 2px #E9A9B2; }
.wd-mh small { font: 400 .6rem/1.2 Georgia, serif; letter-spacing: .1em; text-transform: uppercase; color: #4A3426; }
.wd-mh b { font: 400 1.35rem/1.1 'Great Vibes', cursive; color: #7C1F2C; }
.wd-pc { background: #FCFBF7; padding: 14px 0 0; color: #2E2A26; }
.wd-pc b { font: 400 1.6rem/1 'Great Vibes', cursive; }
.wd-pc small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; border-block: 1px solid currentColor; padding: 2px 8px; margin-top: 6px; }
.wd-pc i { margin-top: auto; width: 100%; height: 46%; background: linear-gradient(#FCFBF7, transparent 30%), repeating-conic-gradient(#3E7CC0 0 25%, #F7F5F0 0 50%) 0 0 / 22px 22px; }

/* Invitation builder: the form on the left, a live phone or laptop preview on the right (src/pages/Invite.jsx). */
.iv { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; width: min(1320px, 100%); margin: 0 auto; padding: 32px max(20px, env(safe-area-inset-right, 0px)) 64px max(20px, env(safe-area-inset-left, 0px)); align-items: start; }
.iv-form { display: grid; gap: 6px; min-width: 0; }
.iv-design { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.iv-sec { display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.iv-sec h2, .iv-h2 { font: 400 1.35rem/1.2 var(--font-display); margin: 0; }
.iv-help { font-size: .9rem; margin: 0; }
.iv-opt { color: var(--muted); font-weight: 400; }
.iv-events { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.iv-events legend { padding: 0; margin: 0 0 4px; }
.iv-event { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.iv-event label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); min-width: 0; }
.iv-event .input { padding: 11px 13px; }
.iv-event-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.iv-event-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.iv-remove { color: var(--muted); font-size: .85rem; padding-bottom: 12px; }
.iv-print { display: flex; flex-wrap: wrap; gap: 8px; }
.iv-chip { position: relative; }
.iv-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.iv-chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .92rem; }
.iv-chip.is-on span { border-color: var(--seal); box-shadow: 0 0 0 1px var(--seal); background: color-mix(in srgb, var(--seal) 12%, var(--paper)); }
.iv-chip input:focus-visible + span { outline: 2px solid var(--seal); outline-offset: 2px; }
.iv-place .btn { justify-self: start; }
.iv-total { margin: 0; }
.iv-peek-btn { display: none; justify-self: start; margin-top: 6px; }
.iv-live { position: sticky; top: 20px; display: grid; gap: 12px; min-width: 0; }
.iv-live-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.iv-live-screen { height: calc(100dvh - 90px); min-height: 480px; }
.iv-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.iv-toggle button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 500 .85rem/1 var(--font-text); color: var(--text); cursor: pointer; letter-spacing: 0; text-transform: none; }
.iv-toggle button[aria-pressed="true"] { background: var(--seal); color: var(--seal-ink); }
.iv-screen { position: relative; width: 100%; height: 100%; overflow: hidden; }
.iv-screen-in { position: absolute; top: 0; transform-origin: 0 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px -22px rgb(40 20 20 / .55); background: #000; }
.iv-frame { display: block; width: 100%; height: 100%; border: 0; }
.iv-sheet-play { position: relative; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; justify-items: center; padding: 6px 12px 0; }
.iv-sheet-play .iv-screen { width: 100%; }
.iv-sheet-play .iv-toggle { background: rgb(255 255 255 / .1); border-color: rgb(244 217 201 / .35); }
.iv-sheet-play .iv-toggle button { color: #F4D9C9; }
.iv-sheet-play .iv-toggle button[aria-pressed="true"] { background: #F4D9C9; color: #4A1C22; }
.iv-sheet-play > .iv-frame-fill { grid-row: 1 / -1; width: 100%; height: 100%; }
.iv-open { position: fixed; inset: 0; }
.iv-open .iv-frame { position: absolute; inset: 0; }
@media (max-width: 960px) {
  .iv { grid-template-columns: 1fr; padding-top: 20px; }
  .iv-live { display: none; }
  .iv-peek-btn { display: inline-block; }
}
@media (max-width: 520px) { .iv-event-row { grid-template-columns: 1fr; } }
.wd-frame { display: grid; place-items: center; aspect-ratio: 390 / 520; padding: 22px; border-radius: 3px; background: color-mix(in srgb, var(--line) 45%, var(--paper)); }
.wd-frame .wd-mini { width: min(100%, 170px); rotate: -2deg; }
.wd-incl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.wd-incl div { min-width: 0; padding: 18px 20px; border-top: 2px solid var(--seal); background: var(--paper); }
.wd-incl h2 { font: 400 1.3rem/1.2 var(--font-display); margin: 0 0 6px; }
.wd-incl p { font-size: .92rem; line-height: 1.5; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .hp-card.hp-card-wide { grid-template-columns: 1fr; padding: 28px 22px; }
  .wd-incl { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hp-card.hp-card-wide { grid-template-columns: 1fr; padding: 22px 18px 18px; }
  .hp-fan { height: 200px; }
  .hp-fan .wd-mini { width: 104px; padding: 12px 8px; }
  .hp-fan .wd-mini:nth-child(1) { translate: -150px 14px; }
  .hp-fan .wd-mini:nth-child(2) { translate: -96px 0; }
  .hp-fan .wd-mini:nth-child(3) { translate: -40px 4px; }
  .hp-fan .wd-mini:nth-child(4) { translate: 16px 18px; }
  .hp-fan:hover .wd-mini:nth-child(1) { translate: -150px 14px; }
  .hp-fan:hover .wd-mini:nth-child(4) { translate: 16px 18px; }
  .hp-fan .wd-rp b { font-size: 1.6rem; }
  .hp-fan .wd-ch b, .hp-fan .wd-mh b { font-size: 1rem; }
}

/* Design previews: a live page of each design on its card, a full preview to tap through, and the design picker. */
.dz-thumb { position: relative; width: 100%; height: 100%; overflow: hidden; background: color-mix(in srgb, var(--line) 50%, var(--paper)); }
.dz-thumb:not(.dz-ready)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%) 0 0 / 250% 100%; animation: dz-shine 1.4s linear infinite; }
.dz-thumb.dz-failed::after { display: none; }
.dz-thumb .stage { position: absolute; inset: 0; pointer-events: none; }
.dz-thumb .stage .ambient, .dz-thumb .stage .particles { display: none; }
@keyframes dz-shine { to { background-position: -150% 0; } }
.hp-peek, .dz-peek { position: relative; display: block; width: 100%; aspect-ratio: 390 / 520; padding: 0; border: 6px solid #fff; border-radius: 3px; overflow: hidden; cursor: pointer; background: none; box-shadow: 0 10px 22px -14px rgb(74 50 54 / .55); }
.hp-peek .dz-thumb::before, .dz-peek .dz-thumb::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 2; background: linear-gradient(transparent, rgb(43 19 21 / .35)); pointer-events: none; }
.dz-play-chip { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; z-index: 3; padding: 7px 14px; border-radius: 999px; background: rgb(255 251 250 / .94); color: var(--text); font: 500 .78rem/1 var(--font-text); letter-spacing: .06em; white-space: nowrap; box-shadow: 0 6px 14px -6px rgb(0 0 0 / .4); transition: scale .2s; }
.hp-peek:hover .dz-play-chip, .dz-peek:hover .dz-play-chip { scale: 1.06; }
.hp-card .hp-peek { margin-bottom: 2px; }

.dz-sheet { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #2B1315; color: #F4D9C9; animation: dz-in .25s ease-out; }
@keyframes dz-in { from { opacity: 0; } }
.dz-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px calc(10px); padding-top: max(10px, env(safe-area-inset-top)); }
.dz-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(244 217 201 / .35); background: none; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dz-title { display: grid; line-height: 1.2; min-width: 0; }
.dz-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.dz-title b { font: 400 1.3rem/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-use { border: 0; border-radius: 999px; padding: 12px 20px; background: #F4D9C9; color: #4A1C22; font: 500 .95rem/1 var(--font-text); cursor: pointer; }
.dz-play { position: relative; min-height: 0; margin: 0 auto; width: 100%; max-width: 1400px; }
.dz-wait { position: absolute; inset: 0; display: grid; place-items: center; opacity: .8; }
.dz-note { text-align: center; font-size: .8rem; opacity: .7; padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); }

.dz-pick { width: min(100%, 1080px); }
.dz-home { display: inline-block; margin-bottom: 18px; font-size: .95rem; }
.dz-pick .help { max-width: 560px; }
.dz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; margin-top: 28px; }
.dz-card { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-width: 0; padding: 14px 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 28px -20px rgb(74 50 54 / .5); }
.dz-meta small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.dz-meta { min-width: 0; }
.dz-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-meta h2 { font: 400 1.6rem/1.2 var(--font-display); margin: 4px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-meta p { font-size: .92rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.dz-card .btn { width: 100%; }
.dz-chosen { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.dz-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.share-open { margin-top: 18px; }
.gift-wheel-note .pill { margin-left: 6px; }

/* All occasions: a list that opens below the cards */
.hp-allbar { display: flex; justify-content: center; margin-top: 34px; }
.hp-allbtn { font: 600 .9rem/1 var(--body); letter-spacing: .04em; color: var(--text); background: var(--paper); border: 1px solid var(--seal-ring); border-radius: 999px; padding: 14px 24px; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; transition: background .2s; }
.hp-allbtn:hover { background: var(--stage); }
.hp-allbtn i { font-style: normal; display: inline-block; transition: rotate .3s; color: var(--seal); }
.hp-allbtn[aria-expanded=true] i { rotate: 180deg; }
.hp-allwrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.6, 0, .2, 1); }
.hp-allwrap.hp-open { grid-template-rows: 1fr; }
.hp-allwrap > div { overflow: hidden; min-height: 0; }
.hp-all { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 8px 28px 12px; }
.hp-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.hp-group:nth-last-child(-n+2) { border-bottom: 0; }
.hp-group h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--seal); }
.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chips a { font-size: .86rem; line-height: 1; text-decoration: none; padding: 9px 13px; border: 1px solid var(--seal-ring); border-radius: 999px; background: var(--bg); transition: background .2s, border-color .2s; }
.hp-chips a:hover { background: var(--accent); border-color: var(--seal); }
.hp-price { text-decoration: none; }
.hp-foot a { text-decoration: none; }

/* Steps: a horizontal timeline. The line draws as you scroll, and each step appears when the line reaches it. */
.hp-tl { --row: 236px; --p: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 18px; padding-block: 8px; }
.hp-tl::before, .hp-tl::after { content: ''; position: absolute; left: 0; right: 0; top: calc(8px + var(--row) + 20px); height: 3px; border-radius: 2px; }
.hp-tl::before { background: var(--line); }
.hp-tl::after { background: var(--seal); transform-origin: left; scale: var(--p) 1; }
.hp-knot { position: absolute; left: 20%; top: calc(8px + var(--row) + 20px - 28px); width: 64px; height: 60px; translate: -50% 0; z-index: 1; }
.hp-knot path { stroke-dasharray: 130; stroke-dashoffset: calc(130 * (1 - var(--k, 1))); }
.hp-st { position: relative; display: grid; grid-template-rows: var(--row) 40px var(--row); justify-items: center; padding-inline: 8px; }
.hp-st::before { content: ''; grid-row: 2; align-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 5px var(--bg); z-index: 2; transition: background .4s, scale .4s; }
.hp-st.hp-in::before { background: var(--seal); scale: 1.15; }
.hp-st .hp-txt { text-align: center; max-width: 190px; display: grid; justify-items: center; gap: 9px; }
.hp-st:nth-child(odd) .hp-txt { grid-row: 1; align-self: end; padding-bottom: 6px; }
.hp-st:nth-child(odd) .hp-pic { grid-row: 3; align-self: start; }
.hp-st:nth-child(even) .hp-txt { grid-row: 3; align-self: start; padding-top: 6px; }
.hp-st:nth-child(even) .hp-pic { grid-row: 1; align-self: end; }
.hp.is-ready .hp-st .hp-txt, .hp.is-ready .hp-st .hp-pic { opacity: 0; transition: opacity .6s ease, translate .7s cubic-bezier(.2, .8, .2, 1); }
.hp.is-ready .hp-st:nth-child(odd) .hp-txt { translate: 0 -16px; } .hp.is-ready .hp-st:nth-child(odd) .hp-pic { translate: 0 22px; }
.hp.is-ready .hp-st:nth-child(even) .hp-txt { translate: 0 16px; } .hp.is-ready .hp-st:nth-child(even) .hp-pic { translate: 0 -22px; }
.hp.is-ready .hp-st.hp-in .hp-txt, .hp.is-ready .hp-st.hp-in .hp-pic { opacity: 1; translate: 0 0; }
.hp.is-ready .hp-st.hp-in .hp-pic { transition-delay: .18s; }
.hp-st h3 { font: 400 1.6rem/1 var(--display); }
.hp-st p { font-size: .86rem; line-height: 1.5; color: var(--muted); }
.hp-pic { width: 136px; height: 148px; position: relative; background: var(--paper); padding: 7px; border: 1px solid var(--line); box-shadow: 0 14px 22px -12px rgb(74 50 54 / .5); }
.hp-st:nth-child(1) .hp-pic { rotate: -2deg; } .hp-st:nth-child(2) .hp-pic { rotate: 2deg; } .hp-st:nth-child(3) .hp-pic { rotate: -1.5deg; } .hp-st:nth-child(4) .hp-pic { rotate: 2.5deg; } .hp-st:nth-child(5) .hp-pic { rotate: -2deg; }
.hp-pic > div { position: relative; width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; }
.hp-p1 { background: repeating-linear-gradient(#FFFBFA 0 21px, #EBD3D3 21px 22px); }
.hp-p1 b { position: absolute; left: 14px; top: 14px; right: 10px; font: 700 1.1rem/22px var(--hand); color: var(--wax); }
.hp-p2 { background: linear-gradient(#F8ECEA, #E7B8BB); }
.hp-p2 i { width: 44px; height: 88px; border: 4px solid #3b2427; border-radius: 12px; background: linear-gradient(#7A2A30, #5E1F2A); box-shadow: 0 8px 12px rgb(0 0 0 / .3); }
.hp-p3 { background: linear-gradient(160deg, #C79B76, #A97B58); }
.hp-p3 i { width: 66%; aspect-ratio: 1.4; background: #b58660; position: relative; box-shadow: 0 8px 12px rgb(0 0 0 / .35); }
.hp-p3 i::before { content: ''; position: absolute; inset: 0; background: #a47453; clip-path: polygon(0 0, 100% 0, 50% 62%); }
.hp-p3 i::after { content: ''; position: absolute; left: 50%; top: 56%; width: 22px; height: 22px; border-radius: 50%; translate: -50% -50%; background: radial-gradient(circle at 35% 30%, #d64a58, var(--wax) 70%); }
.hp-p4 { background: var(--stage); }
.hp-p4 i { width: 66px; height: 66px; background: conic-gradient(from 90deg at 50% 50%, #4A3236 25%, transparent 0 50%, #4A3236 0 75%, transparent 0) 0 0 / 22px 22px, #fff; border: 6px solid #fff; outline: 2px solid #4A3236; }
.hp-p4 small { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font: 500 .6rem/1 var(--body); letter-spacing: .12em; color: var(--muted); }
.hp-p5 { background: linear-gradient(#FBF2F1, #F4D6D6); }
.hp-p5 i { width: 60%; height: 52%; margin-top: 30%; background: linear-gradient(#f6c6cf, #e8a3ae); border-radius: 8px; position: relative; box-shadow: 0 8px 12px rgb(0 0 0 / .2); }
.hp-p5 i::after { content: ''; position: absolute; left: 44%; width: 8px; height: 40px; bottom: 100%; background: #e8879b; border-radius: 3px; box-shadow: 0 -10px 0 -2px #ffb347; animation: flick .6s ease-in-out infinite alternate; }
@keyframes flick { to { box-shadow: 0 -14px 0 -3px #ffcf6b; } }

/* Phones */
.hp-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 40px; justify-content: center; align-items: start; }
.hp-phone { margin: 0; aspect-ratio: 390 / 740; border-radius: 28px; border: 6px solid #3b2427; background: var(--stage); position: relative; overflow: hidden; box-shadow: 0 28px 40px -20px rgb(74 50 54 / .6); cursor: pointer; transition: scale .3s; }
.hp-phone:hover { scale: 1.03; }
.hp-phone:nth-child(2) { margin-top: 36px; }
.hp-phone .hp-scr { position: absolute; inset: 0; }
.hp-phone figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 400 1.4rem/1 var(--script); color: var(--seal); }
.hp-s1 { background: radial-gradient(circle at 50% 50%, #FFFFFF, #F4D6D6 80%); display: grid; place-items: center; }
.hp-s1 .hp-e { width: 66%; aspect-ratio: 1.45; background: linear-gradient(160deg, #C79B76, #A97B58); position: relative; box-shadow: 0 10px 16px rgb(74 50 54 / .4); transition: rotate .5s; }
.hp-s1 .hp-e::before { content: ''; position: absolute; inset: 0; background: #b98d68; clip-path: polygon(0 0, 100% 0, 50% 60%); filter: brightness(.9); }
.hp-s1 .hp-e::after { content: ''; position: absolute; left: 50%; top: 52%; width: 26px; height: 26px; border-radius: 50%; translate: -50% -50%; background: radial-gradient(circle at 35% 30%, #d64a58, var(--wax) 70%); }
.hp-phone:hover .hp-s1 .hp-e { rotate: -6deg; }
.hp-s2 { background: #F8ECEA; }
.hp-s2 .hp-tile { position: absolute; width: 38%; aspect-ratio: .86; background: #fff; padding: 5px 5px 14px; box-shadow: 0 6px 10px rgb(74 50 54 / .3); transition: rotate .4s, translate .4s; }
.hp-s2 .hp-tile i { display: block; height: 100%; background: linear-gradient(#f0c9c6, #a8707e); }
.hp-s2 .hp-tile:nth-child(1) { left: 8%; top: 12%; rotate: -6deg; } .hp-s2 .hp-tile:nth-child(2) { right: 8%; top: 22%; rotate: 5deg; } .hp-s2 .hp-tile:nth-child(3) { left: 14%; top: 50%; rotate: 3deg; }
.hp-phone:hover .hp-s2 .hp-tile { rotate: 0deg; }
.hp-phone:hover .hp-s2 .hp-tile:nth-child(1) { translate: -4px -6px; } .hp-phone:hover .hp-s2 .hp-tile:nth-child(2) { translate: 4px 0; } .hp-phone:hover .hp-s2 .hp-tile:nth-child(3) { translate: -2px 6px; }
.hp-s2 .hp-tape { left: 38%; top: 8%; }
.hp-s3 { background: linear-gradient(#FBF2F1, #F4D6D6); display: grid; place-items: center; }
.hp-s3 .hp-cake { width: 50%; position: relative; height: 40%; }
.hp-s3 .hp-cake::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(#f6c6cf, #e8a3ae); border-radius: 10px; box-shadow: 0 10px 14px rgb(74 50 54 / .25); }
.hp-s3 .hp-cake::after { content: ''; position: absolute; left: 44%; width: 8px; height: 30%; bottom: 58%; background: #e8879b; border-radius: 3px; box-shadow: 0 -10px 0 -2px #ffb347; animation: flick .6s ease-in-out infinite alternate; }
.hp-s3.hp-out .hp-cake::after { box-shadow: none; animation: none; }

/* Gifts: panels that widen one at a time, with big numerals and thin dividers */
.hp-panels { display: flex; min-height: 440px; background: var(--paper); border-block: 1px solid var(--line); }
.hp-panel { position: relative; flex: 1 1 0; min-width: 0; padding: 26px 26px 30px; border: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; overflow: hidden; transition: flex-grow .7s cubic-bezier(.6, 0, .2, 1), background-color .4s; text-align: left; font: inherit; color: inherit; background: none; }
.hp-panel:first-child { border-left: 0; }
.hp-panel.hp-on { flex-grow: 3.2; background: var(--stage); }
.hp-panel .hp-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; font: 500 .7rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hp-panel .hp-top i { font-style: normal; color: var(--seal); opacity: 0; transition: opacity .3s .2s; }
.hp-panel.hp-on .hp-top i { opacity: 1; }
.hp-num { font: 400 clamp(6rem, 15vw, 12rem)/.85 var(--display); color: var(--seal); letter-spacing: -.02em; transition: scale .7s cubic-bezier(.6, 0, .2, 1); transform-origin: left bottom; scale: .8; }
.hp-panel.hp-on .hp-num { scale: 1; }
.hp-panel .hp-bot { display: grid; gap: 16px; }
.hp-panel .hp-info { width: min(100%, 300px); transition: opacity .4s .15s, translate .5s .1s; }
.hp-panel:not(.hp-on) .hp-info { opacity: 0; translate: 0 10px; transition: opacity .15s; }
.hp-panel .hp-info h3 { font-size: 1.7rem; margin-bottom: 8px; }
.hp-panel .hp-info p { font-size: .94rem; line-height: 1.55; color: var(--muted); }
.hp-panel .hp-price { display: inline-block; margin-top: 14px; font: 600 1.25rem/1 var(--hand); color: var(--wax); border: 1px dashed var(--seal-ring); border-radius: 999px; padding: 7px 14px; }
.hp-dots { display: flex; gap: 8px; margin-top: 18px; }
.hp-dots span { width: 28px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hp-dots span.hp-on::after { content: ''; display: block; height: 100%; background: var(--seal); animation: fill 4.5s linear forwards; }
.hp-paused .hp-dots span.hp-on::after { animation: none; width: 100%; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* Closing */
.hp-close { text-align: center; padding-block: 96px 56px; }
.hp-close h2 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
.hp-close h2 em { display: block; font: 400 1.1em/1.1 var(--script); color: var(--seal); }
.hp-close .hp-cta { justify-content: center; }
.hp-foot { position: relative; z-index: 2; padding-block: 28px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .85rem; color: var(--muted); }

@media (max-width: 900px) {
  .hp-links { display: none; }
  .hp-hero { grid-template-columns: 1fr; min-height: 0; padding-block: 12px 40px; }
  .hp-collage { height: 560px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hp-occ { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-tl { grid-template-columns: 1fr; gap: 34px; padding-left: 0; }
  .hp-tl::before, .hp-tl::after { left: 50%; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; margin-left: -1.5px; }
  .hp-tl::after { transform-origin: top; scale: 1 var(--p); }
  .hp-knot { display: none; }
  .hp-st { grid-template-rows: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 26px; align-items: center; justify-items: stretch; padding: 0; }
  .hp-st::before { position: absolute; left: 50%; top: 50%; translate: -50% -50%; grid-row: auto; margin: 0; }
  .hp-st.hp-in::before { scale: 1.15; }
  .hp-st:nth-child(odd) .hp-txt, .hp-st:nth-child(even) .hp-txt { grid-row: 1; align-self: center; padding: 0; max-width: none; }
  .hp-st:nth-child(odd) .hp-pic, .hp-st:nth-child(even) .hp-pic { grid-row: 1; align-self: center; }
  .hp-st:nth-child(odd) .hp-txt { grid-column: 1; text-align: right; justify-items: end; }
  .hp-st:nth-child(odd) .hp-pic { grid-column: 2; justify-self: start; }
  .hp-st:nth-child(even) .hp-txt { grid-column: 2; text-align: left; justify-items: start; }
  .hp-st:nth-child(even) .hp-pic { grid-column: 1; justify-self: end; }
  .hp.is-ready .hp-st:nth-child(odd) .hp-txt, .hp.is-ready .hp-st:nth-child(even) .hp-pic { translate: -20px 0; }
  .hp.is-ready .hp-st:nth-child(even) .hp-txt, .hp.is-ready .hp-st:nth-child(odd) .hp-pic { translate: 20px 0; }
  .hp.is-ready .hp-st.hp-in:nth-child(n) .hp-txt, .hp.is-ready .hp-st.hp-in:nth-child(n) .hp-pic { translate: 0 0; }
  .hp-phones { gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-phone:nth-child(2) { margin-top: 18px; }
  .hp-panels { flex-direction: column; min-height: 0; }
  .hp-panel, .hp-panel.hp-on { flex: none; border-left: 0; border-top: 1px solid var(--line); min-height: 120px; padding: 20px 18px; display: grid; grid-template-columns: 90px 1fr; gap: 6px 14px; align-items: center; }
  .hp-panel:first-child { border-top: 0; }
  .hp-panel .hp-top { grid-column: 2; grid-row: 1; }
  .hp-num, .hp-panel.hp-on .hp-num { grid-column: 1; grid-row: 1 / span 2; font-size: 5.5rem; scale: 1; }
  .hp-panel .hp-bot { display: contents; }
  .hp-panel .hp-info, .hp-panel:not(.hp-on) .hp-info { grid-column: 2; grid-row: 2; opacity: 1; translate: 0; }
  .hp-panel .hp-info h3 { font-size: 1.4rem; }
  .hp-dots { display: none; }
}
@media (max-width: 700px) {
  .hp-all { grid-template-columns: 1fr; padding: 4px 18px 8px; }
  .hp-group:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hp-group:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .hp-sec-head { margin-bottom: 52px; }
  .hp-collage { height: 600px; }
  .hp-env { left: 0; width: 270px; height: 190px; }
  .hp-label { left: calc(50% - 125px); top: 53%; width: 250px; }
  .hp-count { right: 0; top: 2%; width: 200px; padding: 14px; }
  .hp-clock { font-size: 1.4rem; gap: 8px; }
  .hp-rose { width: 140px; }
  .hp-ticket { width: 210px; }
  .hp-heartb { display: none; }
  .hp-occ { grid-template-columns: 1fr; gap: 16px; }
  .hp-sec { padding-block: 60px; }
}
@media (max-width: 520px) {
  .hp-card { min-height: 0; padding: 18px 18px 14px; gap: 12px; }
  .hp-card h3 { font-size: 1.5rem; }
  .hp-card p { font-size: .88rem; line-height: 1.5; margin-top: 8px; }
  .hp-card .hp-pg { font-size: .62rem; letter-spacing: .2em; }
  .hp-card .hp-go { font-size: 1.3rem; }
  .hp-card { grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-content: start; }
  .hp-card .hp-peek { grid-row: 1 / span 2; aspect-ratio: 390 / 740; border-width: 4px; margin: 0; align-self: start; }
  .hp-card .dz-play-chip { bottom: 8px; padding: 5px 9px; font-size: .62rem; }
  .hp-card .hp-go { align-self: end; }
  .dz-bar { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .dz-x { width: 40px; height: 40px; }
  .dz-use { padding: 11px 14px; font-size: .88rem; }
  .dz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .dz-card { padding: 8px 8px 12px; gap: 10px; }
  .dz-meta h2 { font-size: 1.25rem; }
  .dz-meta p { font-size: .82rem; }
  .dz-card .btn { padding: 10px 12px; font-size: .9rem; }
  .hp-card::before { width: 56px; height: 18px; top: -9px; }
  .hp-st p { font-size: .8rem; }
  .hp-pic { width: 104px; height: 114px; padding: 5px; }
  .hp-p1 b { font-size: .9rem; line-height: 18px; left: 10px; top: 10px; }
  .hp-p2 i { width: 34px; height: 68px; border-width: 3px; border-radius: 9px; }
  .hp-p3 i::after { width: 17px; height: 17px; }
  .hp-p4 i { width: 52px; height: 52px; border-width: 5px; background-size: 17px 17px; }
  .hp-p4 small { font-size: .5rem; bottom: 6px; }
  .hp-p5 i::after { height: 30px; }
  .hp-st h3 { font-size: 1.4rem; }
  .hp-env { width: 235px; height: 166px; }
  .hp-seal { width: 36px; height: 36px; font-size: 1.2rem; }
  .hp-rose { width: 108px; }
  .hp-ticket { width: 180px; padding: 12px 14px; }
  .hp-ticket b { font-size: 1.25rem; }
  .hp-label { left: calc(50% - 110px); width: 220px; }
  .hp-label b { font-size: 1.6rem; }
  .hp-num, .hp-panel.hp-on .hp-num { font-size: 4.2rem; }
  .hp-panel, .hp-panel.hp-on { grid-template-columns: 64px 1fr; }
  .hp-phones { gap: 10px; }
  .hp-phone { border-width: 4px; border-radius: 20px; }
  .hp-phone figcaption { font-size: 1.1rem; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Page designs builder (src/pages/PageDesign.jsx): the wedding builder's layout, one section per page of the design. */
.pd .iv-sec.is-here h2 { color: var(--seal); }
.pd-sec-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pd-see { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.pd .iv-sec.is-here .pd-see { color: var(--seal); }
.pd-slots { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.pd-slots legend { padding: 0; margin: 0 0 4px; }
.pd-lines { margin: 0; padding: 0; list-style: none; counter-reset: line; display: grid; gap: 8px; }
.pd-lines li { display: grid; grid-template-columns: 1.7em minmax(0, 1fr); align-items: start; counter-increment: line; }
.pd-lines li::before { content: counter(line) "."; padding-top: 14px; color: var(--muted); font-size: .85rem; }
.pd-lines .input, .pd-long { width: 100%; resize: vertical; }
.pd-lines textarea.input { min-height: 0; height: auto; }
.pd-date { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; max-width: 360px; }
.pd-date.pd-date-y { grid-template-columns: minmax(0, .8fr) minmax(0, 1.8fr) minmax(0, 1.2fr); max-width: 440px; }
.pd-count { margin-top: 8px; color: var(--seal); }
.pd-num { max-width: 140px; }
.pd .input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.pd-thumb .iv-screen-in { border-radius: 0; box-shadow: none; }
/* Home page */
body:has(.site), html:has(.site) { background: #F5F1E8; }
.site { --h-bg: #F5F1E8; --h-card: #FBF9F4; --h-ink: #1B2A4A; --h-muted: #5B6475; --h-ox: #9A7740; --h-brass: #9A7740; --h-line: #E2DCCD;
  background: var(--h-bg); color: var(--h-ink); min-height: 100dvh; font: 400 1.0625rem/1.65 var(--font-text); }
.site :focus-visible { outline-color: var(--h-ox); }
.site h1, .site h2, .site h3 { margin: 0; font-weight: 400; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100% - 40px, 1120px); margin: 0 auto; padding: 20px 0; border-bottom: 1px solid var(--h-line); }
.site-logo-link { display: block; line-height: 0; }
.site-logo { height: 52px; width: auto; }
.site-head-cta { color: var(--h-ink); text-decoration: none; font-size: .9375rem; padding: 9px 18px; border: 1px solid var(--h-ink); border-radius: 999px; transition: background-color .2s, color .2s; white-space: nowrap; }
.site-head-cta:hover { background: var(--h-ink); color: var(--h-bg); }

.home { width: min(100% - 40px, 1120px); margin: 0 auto; }
.kicker { font: 500 .75rem/1.4 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--h-brass); margin-bottom: 14px; }

.hero { display: grid; gap: 40px; align-items: center; padding: 56px 0 72px; }
.hero h1 { font: 400 clamp(2.6rem, 9vw, 4.6rem)/1.04 var(--font-display); letter-spacing: -.01em; margin-bottom: 22px; }
.hero-lead { color: var(--h-muted); font-size: 1.1875rem; max-width: 34ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.link-quiet { color: var(--h-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--h-ink) 35%, transparent); text-underline-offset: 4px; font-size: .9375rem; }
.link-quiet:hover { text-decoration-color: var(--h-ink); }
.hero-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--h-line); color: var(--h-muted); font-size: .875rem; }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--h-ox); }

.site .btn { font-size: .9375rem; padding: 14px 28px; letter-spacing: .01em; }
.btn-ink { background: var(--h-ink); border-color: var(--h-ink); color: #F5F1E8; }
.btn-ink:hover { filter: none; background: #263A63; }
.btn-outline { background: transparent; border-color: var(--h-ink); color: var(--h-ink); }
.btn-outline:hover { filter: none; background: var(--h-ink); color: var(--h-bg); }
.btn-gold { background: #D9B46A; border-color: #D9B46A; color: #1B1408; }
.btn-outline-light { background: transparent; border-color: rgb(246 240 230 / .45); color: #F6F0E6; }
.btn-outline-light:hover { filter: none; background: rgb(246 240 230 / .1); }

.hero-art { display: grid; place-items: center; padding: 8px 0; }
.hero-envelope { position: relative; width: min(100%, 460px); aspect-ratio: 400 / 270; rotate: -3deg; filter: drop-shadow(0 30px 40px rgb(27 42 74 / .16)) drop-shadow(0 4px 8px rgb(27 42 74 / .06)); }
.hero-envelope-svg { display: block; width: 100%; height: 100%; }
.env-body { fill: #E9E2D3; stroke: #D8CFBB; stroke-width: 1.2; }
.env-pocket { fill: #F1EBDF; stroke: #D8CFBB; stroke-width: 1.2; stroke-linejoin: round; }
.env-flap { fill: #FBF6EE; stroke: #D8CFBB; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 3px 3px rgb(80 50 30 / .08)); }
.hero-envelope-seal { position: absolute; left: 50%; top: 57%; width: 24%; height: auto; translate: -50% -50%; rotate: 8deg; filter: drop-shadow(0 3px 4px rgb(27 42 74 / .35)); }
.seal-disc { fill: #1B2A4A; } .seal-ring { fill: none; stroke: #B8924A; stroke-width: 1.6; } .seal-star { fill: #D9B46A; }
.hero-envelope-to { position: absolute; right: 9%; bottom: 8%; font: 400 clamp(1.4rem, 5vw, 2rem)/1 'Great Vibes', cursive; color: var(--h-ox); }

.steps, .occasions { padding: 64px 0; border-top: 1px solid var(--h-line); }
.steps h2, .occasions h2, .gift-band h2 { font: 400 clamp(1.9rem, 5.5vw, 2.75rem)/1.12 var(--font-display); max-width: 22ch; }
.steps-list { list-style: none; display: grid; gap: 32px; margin: 40px 0 0; padding: 0; }
.steps-list li { display: grid; gap: 8px; align-content: start; }
.step-num { font: 400 1rem/1 var(--font-display); color: var(--h-ox); letter-spacing: .06em; }
.steps-list h3 { font: 400 1.5rem/1.25 var(--font-display); }
.steps-list p { color: var(--h-muted); font-size: 1rem; max-width: 36ch; }

.occasion-grid { display: grid; gap: 18px; margin-top: 40px; }
.occasion { display: grid; align-content: start; gap: 12px; padding: 30px 26px; border-radius: 4px; background: var(--h-card); border: 1px solid var(--h-line); }
.occasion h3 { font: 400 1.6rem/1.2 var(--font-display); }
.occasion p:not(.occasion-kicker) { color: var(--h-muted); font-size: 1rem; }
.occasion .btn { justify-self: start; margin-top: 10px; }
.occasion-kicker { font: 500 .75rem/1.4 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--h-brass); }
.occasion-birthday { border-top: 3px solid #B8924A; }
.occasion-sorry { background: #EEF0F4; border-color: #DCE0E8; }
.occasion-xmas { position: relative; overflow: hidden; color: #F6F0E6; border: 0; background: radial-gradient(circle at 85% 0%, rgb(217 180 106 / .28), transparent 50%), linear-gradient(165deg, #183B33, #0E2620); }
.occasion-xmas::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .9) .8px, transparent 1.3px); background-size: 28px 28px; opacity: .18; pointer-events: none; }
.occasion-xmas > * { position: relative; }
.occasion-xmas .occasion-kicker { color: #D9B46A; }
.occasion-xmas p:not(.occasion-kicker) { color: #C9D1DE; }
.occasion-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.occasion-actions .btn { margin-top: 0; }

.gift-band { display: grid; gap: 24px; align-items: center; margin: 8px 0 72px; padding: 40px 28px; background: var(--h-ink); color: #F5F1E8; border-radius: 4px; }
.gift-band .kicker { color: #D9B46A; }
.gift-band p:not(.kicker) { color: #C9D0DD; margin-top: 12px; max-width: 46ch; }
.gift-band .btn-ink { background: #F6F0E6; border-color: #F6F0E6; color: var(--h-ink); justify-self: start; }
.gift-band .btn-ink:hover { background: #fff; }

.site-foot { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 20px 56px; border-top: 1px solid var(--h-line); width: min(100% - 40px, 1120px); margin: 0 auto; color: var(--h-muted); font-size: .9375rem; }
.site-foot img { margin-bottom: 6px; }
.site-foot-line { font: 400 1.25rem/1.3 var(--font-display); color: var(--h-ink); }
.site-foot a { color: var(--h-ink); text-underline-offset: 3px; }
.site-foot-small { font-size: .8125rem; }
.site-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: .875rem; margin: 6px 0; }

@media (max-width: 520px) {
  .site-logo { height: 38px; }
  .site-head-cta { padding: 8px 14px; font-size: .875rem; }
  .hero { padding-top: 36px; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .occasion .btn, .occasion-actions, .occasion-actions .btn { width: 100%; }
  .gift-band .btn-ink { width: 100%; }
}
@media (max-width: 380px) { .site-head-cta { display: none; } }
@media (min-width: 760px) {
  .steps-list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .occasion-grid { grid-template-columns: 1fr 1fr; }
  .occasion-xmas { grid-column: 1 / -1; padding: 40px 36px; }
  .gift-band { grid-template-columns: 1fr auto; padding: 48px 44px; }
  .gift-band .btn-ink { justify-self: end; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 88px 0 104px; }
  .occasion-grid { grid-template-columns: 1fr 1fr 1fr; }
  .occasion-xmas { grid-column: auto; padding: 30px 26px; }
  .steps, .occasions { padding: 88px 0; }
}
.pay .pay-note { font-size: .875rem; }
.pay .error { margin-top: 4px; }

/* Home occasion cards: a live preview of each occasion's first design */
.occasion-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.occasion { grid-template-rows: auto auto auto 1fr auto; padding: 18px 18px 22px; }
.occasion .btn { justify-self: stretch; text-align: center; }
.occasion > p:not(.occasion-kicker) { align-self: start; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.occasion .link-quiet { justify-self: center; }
.occasion-peek { margin-bottom: 6px; }
.occasion-xmas .link-quiet { color: #F6F0E6; }
.occasion-anniversary { border-top: 3px solid #B8924A; }
.occasion-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: none; align-items: center; gap: 28px 40px; padding: 32px; }
.occasion-text { display: grid; gap: 10px; justify-items: start; }
.occasion-text .btn { justify-self: start; }
.occasion-fan { position: relative; display: block; height: 250px; }
.occasion-fan .wd-mini { position: absolute; top: 18px; left: 50%; width: 132px; transition: translate .3s; }
.occasion-fan .wd-mini:nth-child(1) { translate: -250px 14px; rotate: -10deg; }
.occasion-fan .wd-mini:nth-child(2) { translate: -130px 0; rotate: -3deg; z-index: 2; }
.occasion-fan .wd-mini:nth-child(3) { translate: -10px 4px; rotate: 3deg; z-index: 3; }
.occasion-fan .wd-mini:nth-child(4) { translate: 110px 18px; rotate: 10deg; z-index: 4; }
@media (min-width: 760px) { .occasion-xmas { grid-column: auto; padding: 18px 18px 22px; } }
@media (min-width: 960px) { .occasion-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .occasion-xmas { padding: 18px 18px 22px; } }
@media (max-width: 700px) {
  .occasion-wide { grid-template-columns: 1fr; padding: 22px 18px; }
  .occasion-fan { height: 200px; }
  .occasion-fan .wd-mini { width: 96px; }
  .occasion-fan .wd-mini:nth-child(1) { translate: -150px 14px; } .occasion-fan .wd-mini:nth-child(2) { translate: -82px 0; }
  .occasion-fan .wd-mini:nth-child(3) { translate: -14px 4px; } .occasion-fan .wd-mini:nth-child(4) { translate: 54px 18px; }
}
@media (max-width: 520px) { .occasion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .occasion:not(.occasion-wide) { padding: 10px 10px 14px; gap: 8px; } .occasion h3 { font-size: 1.25rem; } .occasion > p:not(.occasion-kicker) { font-size: .85rem; } .occasion .btn { padding: 10px 8px; font-size: .82rem; } .occasion .link-quiet { font-size: .78rem; text-align: center; } }

/* Home: the policy links Razorpay checks */
.hp-policies { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .875rem; }

/* Home: each occasion card's window rolls through the front page of every design it has */
.hp-win { position: relative; display: grid; gap: 8px; }
.hp-peek .hp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hp-peek .hp-slide.hp-on { opacity: 1; z-index: 1; }
.hp-wdots { display: flex; justify-content: center; gap: 2px; }
.hp-wdots i { width: 22px; height: 22px; display: grid; place-items: center; }
.hp-wdots i::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--seal-ring); transition: width .3s, background .3s; }
.hp-wdots i.hp-on::before { width: 18px; border-radius: 4px; background: var(--seal); }
.hp-acts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
@media (prefers-reduced-motion: reduce) { .hp-peek .hp-slide { transition: none; } }

/* Home: smaller buttons on phones */
@media (max-width: 520px) {
  .hp-nav { padding-block: 16px; }
  .hp-nav .hp-btn { padding: 9px 14px; font-size: .78rem; letter-spacing: .02em; }
  .hp-btn { padding: 12px 18px; font-size: .86rem; box-shadow: 0 8px 16px -10px rgb(169 102 109 / .8); }
  .hp-cta { gap: 10px; margin-top: 24px; }
  .hp-allbtn { padding: 11px 18px; font-size: .82rem; }
  .hp-card .hp-win { grid-row: 1 / span 2; align-self: start; gap: 4px; }
  .hp-card .hp-win .hp-peek { aspect-ratio: 390 / 520; border-width: 4px; margin: 0; }
  .hp-card .hp-win .dz-play-chip { max-width: calc(100% - 10px); overflow: hidden; text-overflow: ellipsis; }
  .hp-wdots i { width: 16px; height: 18px; }
  .hp-wdots i::before { width: 5px; height: 5px; }
  .hp-wdots i.hp-on::before { width: 12px; }
  .hp-acts { flex-direction: column; align-items: flex-start; gap: 8px; align-self: end; }
  .hp-card .hp-acts .hp-go { align-self: flex-start; }
}

/* Small rounded buttons for the quieter actions (change the design, see this page, remove a gift, open the link), in
   place of underlined text. */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--paper) 70%, transparent);
  color: var(--text); font: 500 .875rem/1.2 var(--font-text); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.pill:hover { border-color: var(--seal-ring); background: var(--paper); }
.pill:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }

/* Pages under the site bar (src/SiteBar.jsx; the bar itself is in chrome.css) */
.gf-bar + .app { min-height: calc(100dvh - 64px); padding-top: clamp(20px, 5vh, 48px); }
.gf-bar + .app .phone { height: max(440px, calc(100dvh - 300px)); }
.gf-bar + .iv { padding-top: 24px; }
.gf-bar + .iv .iv-live { top: 12px; }

/* The design preview (src/PreviewShell.jsx): the brand's blush, the design in a real-looking phone or laptop */
.pv.dz-sheet { grid-template-rows: auto minmax(0, 1fr) auto; background: radial-gradient(120% 70% at 50% 0%, #FFFBFA 0%, #FBF2F1 50%, #F4E3E1 100%); color: #4A3236; }
.pv-bar { display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid #EBD3D3; background: rgb(251 242 241 / .85); backdrop-filter: blur(8px); }
.pv .dz-x { width: auto; font-size: .875rem; }
.pv-title { display: grid; min-width: 0; line-height: 1.2; }
.pv-title small { font: 500 .68rem/1.3 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: #7A5A5E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-title b { font: 400 1.35rem/1.15 Gloock, var(--font-display); color: #4A3236; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-devices { margin-left: auto; display: inline-flex; padding: 3px; border: 1px solid #EBD3D3; border-radius: 999px; background: #FFFBFA; flex: none; }
.pv-devices button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 7px 12px; border-radius: 999px; font: 500 .85rem/1 var(--font-text); color: #7A5A5E; cursor: pointer; }
.pv-devices button[aria-pressed="true"] { background: #8E1F2E; color: #FFFBFA; }
.pv-devices button:focus-visible { outline: 2px solid #A9666D; outline-offset: 2px; }
.pv-stage { position: relative; min-height: 0; padding: 18px 16px; overflow: hidden; }
.pv-stage > .iv-screen, .pv-turned > .iv-screen { width: 100%; height: 100%; overflow: visible; }
.pv .iv-screen-framed .iv-screen-in { box-shadow: none; background: #000; }
.pv .dz-play { width: 100%; height: 100%; max-width: none; }
.pv .dz-wait { position: absolute; inset: 0; display: grid; place-items: center; color: #7A5A5E; }
.dev { position: absolute; pointer-events: none; }
.dev-phone { border-radius: 34px; background: #231719; box-shadow: inset 0 0 0 1.5px #4A3236, 0 30px 60px -28px rgb(74 50 54 / .65), 0 10px 22px -16px rgb(74 50 54 / .5); }
.dev-laptop { border-radius: 12px 12px 4px 4px; background: #231719; box-shadow: inset 0 0 0 1.5px #4A3236, 0 26px 50px -30px rgb(74 50 54 / .6); }
.dev-base { position: absolute; pointer-events: none; border-radius: 2px 2px 14px 14px; background: linear-gradient(#E9DEDB, #CDBFBB); box-shadow: 0 14px 24px -14px rgb(74 50 54 / .55); }
.dev-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; translate: -50% 0; border-radius: 0 0 6px 6px; background: #BCADA9; }
.pv-turned { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: 90deg; }
.pv-turn { position: absolute; left: 50%; bottom: 14px; translate: -50% 8px; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-radius: 999px; background: #4A3236; color: #FFFBFA;
  font: 500 .85rem/1.2 var(--font-text); white-space: nowrap; box-shadow: 0 12px 24px -12px rgb(0 0 0 / .5); opacity: 0; transition: opacity .4s, translate .4s; pointer-events: none; }
.pv-turn.is-on { opacity: 1; translate: -50% 0; }
.pv-turn svg { animation: pv-turn 1.8s ease-in-out infinite; }
@keyframes pv-turn { 0%, 20% { rotate: 0deg; } 55%, 80% { rotate: 90deg; } 100% { rotate: 0deg; } }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #EBD3D3; background: rgb(255 251 250 / .9); backdrop-filter: blur(8px); }
.pv-note { margin: 0; font-size: .85rem; line-height: 1.4; color: #7A5A5E; }
.pv .dz-use { flex: none; padding: 13px 26px; background: #8E1F2E; border-color: #8E1F2E; color: #FFFBFA; font: 500 .95rem/1.2 var(--font-text); }
.pv .dz-use:hover { filter: none; background: #7A1A27; }
@media (max-width: 560px) {
  .pv-bar { gap: 10px; padding-inline: 12px; }
  .pv-title b { font-size: 1.15rem; }
  .pv-devices button { padding: 8px 10px; }
  .pv-devices button span { display: none; }
  .pv-stage { padding: 12px; }
  .pv-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-inline: 12px; }
  .pv-note { text-align: center; font-size: .78rem; }
  .pv .dz-use { width: 100%; }
}
/* A phone on its side: as much room for the screen as we can give it */
@media (orientation: landscape) and (max-height: 500px) {
  .pv-bar { padding-block: max(6px, env(safe-area-inset-top)) 6px; }
  .pv-title small { display: none; }
  .pv-stage { padding: 8px 12px; }
  .pv-foot { flex-direction: row; padding-block: 6px max(6px, env(safe-area-inset-bottom)); }
  .pv-note { display: none; }
  .pv .dz-use { width: auto; margin-left: auto; padding: 9px 20px; }
}
@media (prefers-reduced-motion: reduce) { .pv-turn svg { animation: none; } }

/* Page designs: the page-by-page editor (src/pages/PageDesign.jsx, PagePhotos.jsx) */
.pe { width: min(1320px, 100%); margin: 0 auto; padding: 0 0 40px; }
.pe .input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.pe-rail { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pe-rail ol { display: flex; gap: 8px; margin: 0; padding: 10px max(16px, env(safe-area-inset-left, 0px)); list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.pe-rail ol::-webkit-scrollbar { display: none; }
.pe-rail li { scroll-snap-align: center; flex: none; }
.pe-chip { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--text); font: 500 .84rem/1 var(--font-text); cursor: pointer; white-space: nowrap; }
.pe-chip i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .76rem; background: var(--stage); color: var(--muted); }
.pe-chip small { font-size: .72rem; color: var(--muted); }
.pe-chip.is-here { border-color: var(--seal); box-shadow: 0 0 0 2px var(--seal-ring); }
.pe-chip.is-here i { background: var(--seal); color: var(--seal-ink); }
.pe-chip.is-done i { background: var(--seal-ring); color: var(--text); }
.pe-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 36px; padding: 24px max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); align-items: start; }
.pe-live { position: sticky; top: 72px; display: grid; gap: 10px; min-width: 0; }
.pe-live-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pe-live-screen { height: calc(100dvh - 190px); min-height: 460px; }
.pe-full { justify-self: center; }
.pe-panel { display: grid; gap: 6px; min-width: 0; padding-bottom: 24px; }
.pe-panel h1.question { margin-bottom: 4px; }
.pe-spec { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; padding: 0; list-style: none; }
.pe-spec li { padding: 7px 12px; border-radius: 10px; background: var(--stage); border: 1px dashed var(--seal-ring); font-size: .86rem; color: var(--text); }
.pe-sub { font-size: 1.15rem; margin: 18px 0 2px; color: var(--seal); }
.pe-group { display: grid; gap: 6px; }
.pe-nav { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 30%); }
.pe-nav .btn { flex: 0 1 auto; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pe-photos { display: grid; gap: 8px; margin: 6px 0 14px; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.pe-photos-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pe-photos-top h3 { margin: 0; font-size: 1.05rem; }
.pe-count { font-size: .85rem; color: var(--seal); font-weight: 600; }
.pe-tiles { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.pe-tile { position: relative; display: grid; gap: 6px; align-content: start; width: calc(124px * var(--r)); max-width: calc(50% - 7px); min-width: 124px; }
.pe-tile.pe-landscape { width: 172px; }
.pe-frame { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: var(--r); border-radius: 8px; overflow: hidden; background: var(--stage); }
.pe-empty { border: 2px dashed var(--seal-ring); color: var(--seal); cursor: pointer; font: inherit; align-content: center; gap: 2px; transition: background .2s, border-color .2s; }
.pe-empty:hover, .pe-empty:focus-visible { background: #F9E3E3; border-color: var(--seal); }
.pe-empty span { font-size: 1.8rem; line-height: 1; }
.pe-empty small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pe-placed { box-shadow: 0 6px 14px -8px rgb(74 50 54 / .6); border: 0; padding: 0; cursor: pointer; font: inherit; }
.pe-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pe-frame.is-busy img { opacity: .5; }
.pe-no { position: absolute; left: 6px; top: 6px; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: rgb(255 251 250 / .94); color: var(--text); font: 700 .74rem/1 var(--font-text); box-shadow: 0 2px 6px rgb(0 0 0 / .2); pointer-events: none; }
.pe-tile-acts { display: flex; gap: 4px; }
.pe-tile-acts .pill { padding: 4px 8px; font-size: .72rem; flex: 1; white-space: nowrap; }
.pe-warn { font-size: .72rem; color: var(--error); }
.pe-cap { padding: 8px 10px; font-size: .86rem; }

.pe-review { display: grid; gap: 10px; }
.pe-list { display: grid; gap: 0; margin: 4px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pe-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pe-list span { display: grid; gap: 2px; }
.pe-list small { color: var(--muted); font-size: .8rem; }
.pe-list em { font-style: normal; color: var(--seal); font-size: .86rem; }
.pe-up { display: grid; gap: 6px; margin-top: 10px; }
.pe-up-bar { height: 10px; border-radius: 999px; background: var(--stage); overflow: hidden; border: 1px solid var(--line); }
.pe-up-bar i { display: block; height: 100%; background: var(--seal); border-radius: inherit; transition: width .4s ease; }
.pe-up p { margin: 0; font-size: .88rem; color: var(--muted); }

@media (max-width: 899px) {
  .pe-body { grid-template-columns: 1fr; gap: 14px; padding-top: 12px; }
  .pe-live { position: relative; top: 0; }
  .pe-live-screen { height: min(46vh, 430px); min-height: 300px; }
  .pe-live-bar { font-size: .7rem; }
  .pe-nav { margin-inline: -4px; }
  .pe-nav .btn { padding-inline: 18px; }
}
.pe-frame .photo-spinner { top: 50%; }

/* Page designs: voice note recorder (VoiceNote.jsx) and Spotify song picker (SongPick.jsx) */
.vn-field { display: grid; gap: 8px; }
.vn-start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.vn-mic { display: inline-flex; align-items: center; gap: 10px; }
.vn-mic svg { width: 20px; height: 20px; fill: currentColor; }
.vn-rec, .vn-have { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.vn-rec { grid-template-columns: auto auto minmax(0, 1fr) auto auto; border-color: #E9A3A8; background: #FFF4F3; }
.vn-dot { width: 12px; height: 12px; border-radius: 50%; background: #D63B4A; animation: vn-blink 1s ease-in-out infinite; }
@keyframes vn-blink { 50% { opacity: .3; } }
.vn-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; }
.vn-time small { font-weight: 400; color: var(--muted); }
.vn-level { display: flex; align-items: center; gap: 2px; height: 30px; min-width: 0; overflow: hidden; }
.vn-level i { flex: 1; min-width: 2px; max-width: 5px; height: var(--h); border-radius: 2px; background: #D63B4A; transition: height .1s; }
.vn-stop { padding: 9px 18px; }
.vn-play-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--seal); color: var(--seal-ink); cursor: pointer; }
.vn-play-btn svg { width: 20px; height: 20px; fill: currentColor; }
.vn-track { height: 6px; border-radius: 999px; background: var(--stage); overflow: hidden; }
.vn-track i { display: block; height: 100%; background: var(--seal); }
.vn-acts { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (max-width: 520px) {
  .vn-rec { grid-template-columns: auto auto minmax(0, 1fr); }
  .vn-rec .vn-stop { grid-column: 1 / 3; }
}
.sp-field { display: grid; gap: 8px; }
.sp-chosen { display: grid; gap: 8px; }
.sp-chosen iframe { width: 100%; height: 80px; border: 0; border-radius: 12px; background: #282828; }
.sp-acts { display: flex; gap: 8px; }
.sp-find { display: grid; gap: 8px; }
.sp-list { margin: 0; padding: 4px; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); max-height: 320px; overflow-y: auto; }
.sp-list[aria-busy="true"] { opacity: .6; }
.sp-list button { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sp-list button:hover, .sp-list button:focus-visible { background: var(--stage); }
.sp-list img, .sp-noimg { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; background: var(--stage); }
.sp-list span { display: grid; min-width: 0; }
.sp-list b, .sp-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-list small { color: var(--muted); font-size: .8rem; }
.sp-credit { margin: 0; font-size: .76rem; color: var(--muted); }

/* Crop screen (src/pages/PhotoCrop.jsx): the photo behind a window shaped like its frame, dimmed around it. */
.crop-sheet { grid-template-rows: auto 1fr auto auto; width: min(100%, 560px); height: min(92dvh, 760px); max-height: none; }
.crop-head { padding: 16px 18px 10px; }
.crop-head h2 { font: 400 1.375rem/1.2 var(--font-display); }
.crop-head .help { margin: 4px 0 0; font-size: .875rem; }
.crop-stage { position: relative; min-height: 240px; overflow: hidden; background: #1d1a1b; cursor: grab; touch-action: none; user-select: none; outline-offset: -3px; }
.crop-stage:active { cursor: grabbing; }
/* The whole photo overflows the window (the stage clips it) under a dark veil; a bright copy shows through a cut-out
   the shape of the frame on the page (its corners and any mask, from FX.shape). */
.crop-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.crop-frame img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.crop-dim { position: absolute; inset: -100vmax; background: rgb(20 16 17 / .62); }
.crop-cut { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; }
.crop-cut.is-masked .crop-grid { box-shadow: none; }
.crop-cut .crop-grid { z-index: 1; }
.crop-grid { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px #fff; background:
  linear-gradient(90deg, transparent calc(33.33% - .5px), rgb(255 255 255 / .35) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgb(255 255 255 / .35) 0 calc(66.66% + .5px), transparent 0),
  linear-gradient(transparent calc(33.33% - .5px), rgb(255 255 255 / .35) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgb(255 255 255 / .35) 0 calc(66.66% + .5px), transparent 0); }
.crop-zoom { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; }
.crop-zoom .pill { width: 38px; height: 38px; padding: 0; font-size: 1.2rem; }
.crop-zoom input { width: 100%; accent-color: var(--accent); }
.crop-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; }

/* Come back to an unfinished draft (src/ResumeToast.jsx): a notice at the top whose bar runs out, then it goes. */
.resume-toast { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; z-index: 60; width: min(calc(100% - 32px), 460px); overflow: hidden; border-radius: 16px; background: var(--bg); color: var(--text); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .45); animation: resume-in .3s ease-out; }
.resume-body { display: grid; gap: 10px; padding: 14px 16px 16px; }
.resume-body p { margin: 0; display: grid; gap: 2px; }
.resume-body p b { font: 400 1.0625rem/1.25 var(--font-display); }
.resume-body p span { font-size: .875rem; color: var(--muted, inherit); opacity: .85; }
.resume-acts { display: flex; gap: 8px; justify-content: flex-end; }
.resume-acts .pill { padding: 7px 16px; }
.resume-acts .resume-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.resume-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform-origin: left; }
@keyframes resume-in { from { opacity: 0; translate: -50% -12px; } }
@media (prefers-reduced-motion: reduce) { .resume-toast { animation: none; } }

/* The pretend checkout on the test site and this computer (Pay.jsx). */
.pay-stub { display: grid; gap: 10px; padding: 14px 16px; border: 2px dashed var(--accent); border-radius: 14px; }
.pay-stub p { margin: 0; }

/* Password lock add-on (src/pages/LockOption.jsx) on the last step. */
.lock-opt { display: grid; gap: 12px; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper, var(--bg)); }
.lock-opt.is-on { border-color: var(--accent); }
.lock-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; }
.lock-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.lock-row b { display: block; font-weight: 500; }
.lock-row em { font-style: normal; color: var(--accent); margin-left: 4px; }
.lock-row small { display: block; font-size: .875rem; opacity: .8; }
.lock-fields { display: grid; gap: 10px; }
.lock-fields label { display: grid; gap: 4px; font-size: .9375rem; }
.lock-fields .help { margin: 0; font-size: .8125rem; }

/* Gift shop and one-screen checkout (src/pages/Checkout.jsx). The order and pairings on the left, the total and one
   button on the right; on phones the button bar sticks to the bottom so paying is always one tap away. */
.co { width: min(100%, 980px); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 8px; }
.co-main { display: grid; gap: 26px; min-width: 0; }
.co-side { position: sticky; top: 16px; }
.co-sum { padding: 18px; border-radius: 16px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); display: grid; gap: 6px; }
.co-sum .receipt-total { border: 0; padding: 0; font-size: 1.25rem; }
.co-sum .actions { margin-top: 6px; }
.co-sum .error:empty { display: none; }
.co-pay { font-weight: 600; padding-block: 15px; background: var(--seal); border-color: var(--seal); color: var(--seal-ink); }
.co-sub, .co-trust { color: var(--muted); font-size: .8125rem; line-height: 1.45; margin: 0; }
.co-trust { text-align: center; margin-top: 4px; }
.co h2 { font: 400 1.25rem/1.3 var(--font-display); margin-bottom: 10px; }
.co-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.co-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); }
.co-line-art { display: grid; place-items: center; width: 64px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--accent) 14%, var(--paper)); }
.co-line-art .gift-art { width: 86%; }
.co-line-site i { width: 30px; height: 44px; border-radius: 6px; border: 2px solid var(--seal); background: linear-gradient(var(--accent) 0 40%, transparent 40%); }
.co-line-txt { display: grid; gap: 2px; min-width: 0; }
.co-line-txt small { color: var(--muted); font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.co-line-acts { display: flex; gap: 12px; font-size: .8125rem; }
.co-line-acts .link-button { padding: 2px 0; color: var(--seal); }
.co-line-price { font: 400 1.0625rem/1.2 var(--font-display); white-space: nowrap; }
.co-pair-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.co-pair-all { margin-top: 10px; }
.co-pair { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 2px; text-align: left; padding: 8px 8px 12px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--seal) 45%, var(--line)); background: var(--paper); color: var(--paper-ink); font: inherit; cursor: pointer; transition: border-color .15s, translate .15s; }
.co-pair:hover { border-style: solid; border-color: var(--seal); translate: 0 -2px; }
.co-pair-art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--accent) 12%, var(--paper)); margin-bottom: 6px; }
.co-pair-art .gift-art { width: 70%; }
.co-pair-name { font-size: .875rem; font-weight: 600; line-height: 1.3; }
.co-pair-price { font-size: .875rem; color: var(--muted); }
.co-pair-add { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 999px; background: var(--seal); color: var(--seal-ink); font-size: .75rem; font-weight: 600; }
.co-more { margin-top: 10px; font-size: .875rem; cursor: pointer; }
.co-upsell { position: relative; display: grid; grid-template-columns: auto 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--seal) 35%, var(--line)); background: color-mix(in srgb, var(--seal) 7%, var(--paper)); color: var(--paper-ink); cursor: pointer; }
.co-upsell.is-on { border-color: var(--seal); box-shadow: 0 0 0 1px var(--seal); }
.co-upsell input { width: 20px; height: 20px; accent-color: var(--seal); margin: 0; }
.co-upsell > span:last-child { display: grid; gap: 2px; }
.co-upsell small, .shop-ecard small { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.co-upsell-art { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.co-upsell-art i { width: 22px; height: 36px; border-radius: 5px; border: 2px solid var(--seal); background: linear-gradient(var(--accent) 0 45%, transparent 45%); }
.co-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.co-fields .field-label { margin: 0; }
.co-f-name, .co-f-phone { grid-column: span 3; }
.co-f-address { grid-column: 1 / -1; }
.co-f-pincode, .co-f-city, .co-f-state { grid-column: span 2; }
.co-f-contact { grid-column: 1 / -1; }
.co-deliver .field-note { margin-top: 8px; }
.co-deliver > .field { margin-top: 10px; }
.co-done { display: grid; gap: 6px; }
.co-next { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--seal); }
.co-addon { width: 100%; display: grid; gap: 22px; margin: 4px 0 20px; }
.co-addon .co-pair-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co-bag { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--text); border: 1px solid var(--line); background: var(--paper); }
.co-bag svg { width: 22px; height: 22px; }
.co-bag b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--seal); color: var(--seal-ink); font-size: .6875rem; line-height: 18px; text-align: center; }
.shop { width: min(100%, 980px); }
.shop-occ { margin-top: 18px; }
.shop .gift-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 560px) { .shop .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .shop .gift-card-blurb { display: none; } }
.shop .gift-card-art { aspect-ratio: 1; }
.shop-ecard { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 36px; padding: 16px 18px; border-radius: 16px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); text-decoration: none; }
.shop-ecard > span:nth-child(2) { display: grid; gap: 2px; }
.shop-ecard em { font-style: normal; color: var(--seal); font-size: 1.25rem; }
@media (max-width: 820px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-side { position: sticky; top: auto; bottom: 0; z-index: 5; margin-inline: -20px; }
  .co-sum { border-radius: 16px 16px 0 0; border-bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 24px -16px rgb(74 50 54 / .45); }
  .co-trust { display: none; }
}
@media (max-width: 520px) {
  .co-pair-row, .co-addon .co-pair-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .co-pair-add { top: 10px; right: 10px; }
  .co-f-name, .co-f-phone { grid-column: 1 / -1; }
  .co-f-pincode, .co-f-city { grid-column: span 3; }
  .co-f-state { grid-column: 1 / -1; }
}

/* Home: the two doors (gifts, e-cards) and the gift row. */
.hp-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; max-width: 560px; }
.hp-door { position: relative; display: grid; gap: 4px; align-content: start; padding: 20px 20px 22px; border-radius: 14px; text-decoration: none; background: var(--paper); border: 1px solid var(--seal-ring); box-shadow: 0 16px 26px -18px rgb(74 50 54 / .55); transition: translate .2s, box-shadow .2s; }
.hp-door:hover { translate: 0 -3px; box-shadow: 0 22px 30px -18px rgb(74 50 54 / .6); }
.hp-door small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hp-door b { font: 400 1.6rem/1.15 var(--display); color: var(--seal); }
.hp-door span { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.hp-door em { position: absolute; right: 18px; top: 18px; font-style: normal; color: var(--seal); font-size: 1.25rem; transition: translate .2s; }
.hp-door:hover em { translate: 4px 0; }
.hp-shop-occ { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.hp-shop-occ a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--seal-ring); background: var(--paper); text-decoration: none; font-size: .9rem; }
.hp-shop-occ a:hover { background: var(--stage); }
.hp-shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hp-gift { position: relative; display: grid; gap: 4px; padding: 12px 12px 16px; border-radius: 14px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 24px -18px rgb(74 50 54 / .5); }
.hp-gift:hover { border-color: var(--seal-ring); }
.hp-gift .gift-card-art { margin-bottom: 8px; }
.hp-gift b { font-weight: 600; line-height: 1.3; }
.hp-gift > span:last-child { font: 400 1.125rem/1.2 var(--display); color: var(--seal); }
.hp-gift .gift-badge { top: 20px; left: 20px; }
@media (max-width: 900px) { .hp-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 480px) { .hp-doors { grid-template-columns: 1fr; } }

/* Turnstile bot check: only visible when Cloudflare asks for a tap */
.bot-check { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1000; }

/* == Cut-off banner (W4) == */
.cutoff-banner { margin: 0 0 14px; padding: 9px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 22%, var(--paper)); border: 1px solid var(--line); color: var(--paper-ink); font-size: .9rem; line-height: 1.35; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.cutoff-banner b { font-weight: 600; }
.cutoff-banner span { color: var(--muted); font-size: .8125rem; }
.hp-wrap > .cutoff-banner { margin-top: 12px; }
.late-warn { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 14px; margin: 12px 0; border-radius: 12px; background: #FBEDE9; border: 1px solid #E7C3B8; color: var(--paper-ink); font-size: .92rem; line-height: 1.4; }
.late-warn i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--seal); color: var(--seal-ink); font-weight: 700; }
.late-warn b { display: block; }
.co-track { margin: 10px 0 0; }

/* == Order page (W5) == */
.op-page { --o-bg: #F8F2EC; --o-paper: #FFFCF8; --o-line: #E6D9CE; --o-text: #3B2A2C; --o-muted: #6B5753; --o-deep: #2A1E1F; --o-deep-ink: #F5ECE4; --o-gold: #B8924A; --o-gold-soft: #D9B56A; --o-seal: #985860; --o-ring: #D6BDB5; --o-tint: #F3EADB;
  --o-hand: 'Caveat', 'Segoe Print', cursive; background: var(--o-bg); color: var(--o-text); }
body:has(.op-page) { background: #F8F2EC; }
.op-wrap { width: min(100%, 1040px); }
.op-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--o-muted); font-size: .92rem; margin: 0; }
.op-ttl { font: 400 clamp(2.2rem, 5vw, 3.2rem)/1.05 var(--font-display); margin: 8px 0 26px; }
.op-ttl em { display: block; font: 400 1.05em/1.1 'Great Vibes', 'Brush Script MT', cursive; color: var(--o-seal); font-style: normal; margin-top: 4px; }
.op-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.op-banner { padding: 14px 16px; border: 1px solid var(--o-line); border-radius: 12px; background: var(--o-paper); margin: 0 0 22px; }
.op-tags { list-style: none; margin: 10px 0 34px; padding: 18px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.op-tags::before { content: ''; position: absolute; left: 4%; right: 4%; top: 6px; border-top: 2px dashed var(--o-ring); }
.op-tag { position: relative; background: var(--o-paper); border: 1px solid var(--o-line); padding: 16px 12px 14px 24px; min-height: 96px; display: grid; align-content: start; gap: 2px; color: var(--o-muted); border-radius: 4px 12px 12px 4px; transition: translate .3s; }
.op-tag::before { content: ''; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--o-ring); }
.op-tag b { font: 400 1.08rem/1.15 var(--font-display); }
.op-tag small { font: 500 1.05rem/1.15 var(--o-hand); }
.op-tag.is-done { background: var(--o-tint); }
.op-tag.is-done b, .op-tag.is-now b { color: var(--o-text); }
.op-tag.is-now { background: var(--o-deep); color: var(--o-deep-ink); translate: 0 -8px; box-shadow: 0 16px 24px -16px rgb(42 30 31 / .7); }
.op-tag.is-now b { color: var(--o-deep-ink); }
.op-tag.is-now small { color: var(--o-gold-soft); }
.op-tag.is-now::before { background: var(--o-gold); }
.op-tag a { color: var(--o-gold-soft); font-size: .85rem; min-height: 24px; display: inline-flex; align-items: center; }
.op-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 60px; }
.op-col { display: grid; gap: 22px; }
.op-card { position: relative; background: var(--o-paper); border: 1px solid var(--o-line); border-radius: 6px; padding: 22px; box-shadow: 0 18px 30px -24px rgb(42 30 31 / .55); }
.op-card h2 { font: 400 1.5rem/1.1 var(--font-display); margin: 0 0 4px; }
.op-card h2 small { font: 500 1.15rem/1 var(--o-hand); color: var(--o-seal); margin-left: 8px; }
.op-tape { position: absolute; left: 26px; top: -11px; width: 64px; height: 20px; background: rgb(201 176 146 / .62); rotate: -2deg; }
.op-sub { color: var(--o-muted); font-size: .95rem; margin: 0 0 14px; }
.op-note { font: 500 1.05rem/1.25 var(--o-hand); color: var(--o-seal); margin: 8px 0 0; }
.op-sp { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 12px; }
.op-sp h3 { font: 400 1.35rem/1.15 var(--font-display); margin: 0; }
.op-sp p { color: var(--o-muted); font-size: .95rem; margin: 6px 0 12px; }
.op-env { width: 96px; aspect-ratio: 3 / 4; border-radius: 6px; background: var(--o-tint); border: 1px solid var(--o-line); display: grid; place-items: center; box-shadow: 0 14px 22px -16px rgb(42 30 31 / .7); }
.op-env span { width: 46px; height: 46px; border-radius: 47% 53% 50% 50%; display: grid; place-items: center; color: #F6D3D6; font: 400 1.5rem/1 'Great Vibes', cursive; background: radial-gradient(circle at 34% 30%, #d64a58, #8E1F2E 62%, #6e1622); }
.op-env.is-open span { background: var(--o-ring); color: var(--o-paper); }
.op-clock { display: flex; gap: 14px; margin: 8px 0 14px; justify-content: flex-start; }
.op-clock div { text-align: center; }
.op-clock b { display: block; font: 400 1.6rem/1 var(--font-display); color: var(--o-seal); }
.op-clock small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--o-muted); }
.op-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.op-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border-radius: 999px; background: var(--o-deep); color: var(--o-deep-ink); border: 0; font: 600 .92rem/1 var(--font-text); text-decoration: none; cursor: pointer; }
.op-quiet { min-height: 46px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--o-ring); background: var(--o-paper); color: var(--o-text); font: 600 .88rem/1 var(--font-text); cursor: pointer; }
.op-help { display: grid; gap: 10px; }
.op-help a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--o-line); background: var(--o-bg); text-decoration: none; color: var(--o-text); }
.op-help a span:first-child { display: grid; }
.op-help small { color: var(--o-muted); }
.op-lines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.op-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; }
.op-line b { font-weight: 600; font-size: .98rem; }
.op-line small { display: block; color: var(--o-muted); font-size: .85rem; line-height: 1.4; }
.op-pr { font-weight: 600; white-space: nowrap; }
.op-im { width: 64px; height: 64px; border: 4px solid #fff; box-shadow: 0 6px 12px -8px rgb(42 30 31 / .6); background: #EFE9E2; overflow: hidden; display: grid; place-items: center; }
.op-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.op-im i { font: 400 1.5rem/1 'Great Vibes', cursive; color: var(--o-seal); font-style: normal; }
.op-line.is-child { margin-left: 28px; padding: 10px 12px; border: 1px dashed var(--o-ring); border-radius: 12px; grid-template-columns: 40px minmax(0, 1fr) auto; }
.op-line.is-child .op-im { width: 40px; height: 52px; border-width: 3px; }
.op-addr { font-size: .98rem; line-height: 1.6; margin: 8px 0 0; }
.op-kv { margin: 8px 0 0; display: grid; gap: 6px; font-size: .95rem; }
.op-kv div { display: flex; justify-content: space-between; gap: 12px; }
.op-kv dt, .op-kv dd { margin: 0; }
.op-kv dd { white-space: nowrap; }
.op-total { border-top: 1px solid var(--o-line); padding-top: 8px; font-weight: 600; }
.op-missing { width: min(100%, 460px); text-align: left; }
@media (max-width: 900px) { .op-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .op-tags { grid-template-columns: 1fr; gap: 8px; padding-top: 0; }
  .op-tags::before { left: 4px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--o-ring); }
  .op-tag { min-height: 0; margin-left: 14px; grid-template-columns: 1fr auto; align-items: baseline; }
  .op-tag.is-now { translate: 6px 0; }
  .op-sp { grid-template-columns: 72px minmax(0, 1fr); } .op-env { width: 72px; }
}

/* Shop: who it is for, and kinds of gift */
.shop-who { margin-top: 8px; }
.shop-cats { display: flex; gap: 8px; overflow-x: auto; contain: inline-size; min-width: 0; margin: 14px -16px 4px; padding: 2px 16px 8px; scrollbar-width: none; position: sticky; top: 0; z-index: 3; background: var(--bg); }
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cats button { flex: 0 0 auto; border: 1px solid var(--line, #E6D9CE); background: var(--paper, #FFFCF8); color: inherit; font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 99px; cursor: pointer; }
.shop-cats button.is-on { background: #3B2A2C; border-color: #3B2A2C; color: #FFFCF8; }
.shop .gift-card-art { position: relative; }
.shop .gift-card-art .gift-badge { top: auto; bottom: 8px; left: 8px; }
