/* Peach paper layout inspired by the supplied booklet reference. */
:root {
  --ink: #383635;
  --muted: #6f6864;
  --teal: #b46e59;
  --teal-dark: #92513f;
  --paper: #fffefd;
  --mint: #fff8f4;
  --line: #e9d9d1;
}

body, .site-column { background: #f9ded2; color: var(--ink); }
.site-column { padding-bottom: 1px; }
.site-header.shell, .site-footer.shell { background: transparent; }
.site-header { border-bottom-color: #dba994; }
.brand-logo { filter: grayscale(1) brightness(.42); }
.header-nav > a, .header-note { color: #3d3734; text-shadow: none; }
.header-nav > a:hover, .header-note:hover { color: #8a4633; }
.header-nav .nav-cta { border-color: #f5e0d6; background: #fffefd; color: #3d3734; box-shadow: none; }
.header-nav .nav-cta:hover { background: #fff2ea; color: #3d3734; }

.primary-button { border-color: #d89478; background: #f2ae93; color: #3d3734; filter: none; }
.primary-button:hover { border-color: #ce8568; background: #eda184; color: #3d3734; filter: none; }
.primary-button::after { border-left-color: #a6644b8c; }
.primary-button:focus-visible { outline-color: #81452f; }

/* Large numbered circles take their cue from the reference spread. */
.steps-band { width: min(calc(100% - 64px), 1100px); margin: 20px auto 0; padding: 26px 36px 25px; border-radius: 0; background: transparent; isolation: isolate; }
.steps-ticket-shape { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.steps-band > :not(.steps-ticket-shape) { position: relative; z-index: 1; }
.steps-intro { text-align: center; }
.steps-intro span { color: #a36b57; font: 700 11px var(--site-font); letter-spacing: .18em; }
.steps-intro h1 { margin: 6px 0 12px; color: #383635; font: 700 clamp(22px,3.2vw,31px)/1.45 var(--display-font); letter-spacing: .03em; }
.steps { width: 100%; min-height: 110px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.steps div { gap: 12px; color: #3f3a38; font-size: 14px; white-space: normal; text-align: center; }
.steps b { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: #f8c9b6; color: #4a413d; font: 400 32px/1 var(--site-font); }
.steps i { color: #d19d89; font-size: 22px; }
.steps-trial { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; margin-top: 0; }
.steps-trial a { color: #8d5542; font: 700 13px var(--site-font); text-decoration: underline; text-underline-offset: 4px; }
.steps-trial a:hover { color: #613d31; }
.steps-trial a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.steps-trial img { display: block; width: 36px; height: auto; flex: none; filter: drop-shadow(0 2px 2px #7044361a); }

/* One broad white sheet holds the editor; small surfaces stay quiet. */
.maker.shell { width: min(calc(100% - 64px), 1100px); margin-top: 18px; padding: 42px 40px 64px; border-radius: 10px; background: #fffefd; }
.section-heading { margin-bottom: 28px; text-align: center; }
.section-heading h2 { color: #383635; }
.section-heading h2 { text-wrap: balance; }
.section-heading p { color: #766e69; }
.section-kicker, .steps b, .preview-dot { color: #a56650; }
.preview-dot { background: #c77f65; }
.maker-grid { gap: 28px; }
.maker-grid > .form-panel { order: 1; }
.maker-grid > .preview-column { order: 2; }
.form-panel { padding: 31px; border: 1px solid #eddcd3; border-radius: 34px; background: #fffaf7; box-shadow: none; filter: none; -webkit-mask-image: none; mask-image: none; }
.form-panel label, .redeem-panel label, .pin-choice legend, .style-choice legend { color: #4a4240; }
.form-panel input, .form-panel textarea, .form-panel select, .redeem-panel input { border-color: #e6d7cf; background: #fffefd; color: #413c39; }
.form-panel input:focus, .form-panel textarea:focus, .form-panel select:focus, .redeem-panel input:focus { border-color: #cd917a; box-shadow: 0 0 0 3px #f8c9b680; }
.required { color: #a86049; background: #f9e4da; }
.form-panel .style-option:has(input:checked) { border-color: #cf947d; background: #fff0e9; box-shadow: 0 0 0 2px #eeb9a4; }
.form-panel .pin-option:has(input:checked) { border-color: #cf947d; background: #fff0e9; }
.form-panel .pin-option input { accent-color: #b66f56; }
.customize-arrow { border-color: #ddb7a5; color: #9b5b44; }
.form-panel .text-layout-field input[type="range"] { accent-color: #b66f56; }
.customize-row { grid-template-columns: minmax(0,.6fr) minmax(0,1fr); }
.ticket-text-options { display: grid; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed #e8d3c5; }
.ticket-text-options > .option-label { color: #4a4240; font-size: 13px; }
.form-panel .ticket-text-options label { margin: 0; }
.form-panel .ticket-text-options .ticket-brand-toggle { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 30px; cursor: pointer; }
.form-panel .ticket-text-options .ticket-brand-toggle input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; accent-color: #b66f56; }
.ticket-text-options .ticket-brand-toggle span { min-width: 0; }
.ticket-text-options #custom-subtitle-wrap { padding-top: 3px; }
.ticket-text-options #custom-subtitle-wrap input { width: 100%; }
.preview-column { padding: 22px 16px 17px; border-radius: 20px; background: #fbede6; }
.preview-label { color: #694a40; }
.preview-caption { color: #695d57; }

/* The redeem view uses the same large paper sheet. Ticket colors remain selectable. */
.redeem-main.shell { max-width: 700px; margin-top: 26px; padding: 46px 40px 64px; border-radius: 10px; background: #fffefd; }
.redeem-heading h1 { color: #383635; }
.redeem-heading h1 em { color: #b36b54; }
.redeem-heading p { color: #766e69; }
.redeem-panel, .finished-panel, .result-box { border-color: #ecdcd3; border-radius: 34px; background: #fffaf7; box-shadow: none; }
.result-section.shell { width: min(calc(100% - 64px), 1100px); margin-top: 24px; padding: 24px 40px 64px; border-radius: 10px; background: #fffefd; }
.result-icon, .finish-icon, .panel-icon { background: #f9dfd3; color: #a05c45; }
.url-row button, .slide-handle { background: #a96850; color: white; }
.slide-track { background: #f9e5dc; }
.slide-track::before { background: #edb59d; }
#slide-label { color: #8e513e; }
.site-footer { border-top-color: #dba994; color: #554742; }
.site-footer .brand { color: #554742; }

@media (max-width: 780px) {
  .customize-row { grid-template-columns: minmax(0,1fr); }
  .steps-band, .maker.shell, .result-section.shell { width: min(calc(100% - 30px), 560px); }
  .steps-band { margin-top: 12px; padding: 20px 20px 17px; }
  .steps { min-height: 88px; }
  .steps b { width: 54px; height: 54px; font-size: 24px; }
  .steps div { font-size: 12px; }
  .steps-trial { min-height: 38px; }
  .steps-trial a { font-size: 12px; }
  .steps-trial img { width: 30px; }
  .maker.shell { margin-top: 12px; padding: 30px 19px 50px; border-radius: 10px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: clamp(23px, 5.6vw, 30px); line-height: 1.35; letter-spacing: 0; }
  .style-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-panel { padding: 23px 19px; border-radius: 27px; }
  .preview-column { border-radius: 16px; }
  .maker-grid > .preview-column { order: 0; position: sticky; top: 8px; z-index: 4; padding: 12px 13px 9px; border: 1px solid #efd2c4; box-shadow: 0 8px 22px #9f6a552b; }
  .maker-grid > .form-panel { order: 1; }
  .preview-column .ticket-card { min-height: 205px; margin-top: 5px; margin-bottom: 7px; }
  .preview-column .preview-caption { display: none; }
  .result-section.shell { padding: 20px 19px 48px; border-radius: 10px; }
  .redeem-main.shell { width: min(calc(100% - 30px), 560px); margin-top: 15px; padding: 32px 20px 48px; border-radius: 10px; }
}
@media (max-width: 420px) {
  .steps-band { padding-inline: 12px; }
  .steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; }
  .steps b { width: 50px; height: 50px; font-size: 22px; }
  .steps div { font-size: 11px; white-space: nowrap; }
  .steps i { display: none; }
  .maker.shell { padding-inline: 12px; }
  .form-panel { padding: 21px 16px; }
}
@media (max-width: 780px) and (max-height: 650px) {
  .maker-grid > .preview-column { position: static; }
}


