/* v4 add-ons: steps, advantage chips, auth modal, words library, quick start */

/* ---- Steps ---- */
.qs-maker-bar, .qs-steps-wrap {
  background: linear-gradient(90deg, #dff6ff 0%, #fff4c8 50%, #ffe0ee 100%);
  border-bottom: 3px solid #72caff;
  padding: 8px 12px 10px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.qs-steps { max-width: 1180px; margin: 0 auto; }
.qs-steps-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0066cc;
  margin-bottom: 6px;
}
.qs-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.qs-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #9bd8ff;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  color: #21598c;
  min-height: 40px;
}
.qs-step.is-done .qs-step-btn { background: #dcfdf0; border-color: #22e3a4; color: #05362b; }
.qs-step.is-current .qs-step-btn {
  background: #2cb7ff;
  border-color: #0066cc;
  color: #072c52;
  font-weight: 800;
  box-shadow: 0 4px 0 #0b74d1;
}
.qs-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: #ffe047; color: #072c52;
  font-size: 0.75rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.qs-step.is-current .qs-step-num { background: #fff; }
.qs-step-label { font-size: 0.78rem; font-weight: 700; text-align: left; line-height: 1.15; }

/* ---- Legacy badge styles (unused) ---- */
.print-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8fff6;
  border: 2px solid #22e3a4;
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  color: #05362b;
  max-width: 100%;
}
.print-ready-mark { font-size: 1rem; }
.print-ready-copy { display: flex; flex-direction: column; line-height: 1.15; }
.print-ready-copy strong { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.print-ready-note { font-size: 0.78rem; font-weight: 700; color: #0c7c59; }

.preview-caption { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---- Advantage chips ---- */
.advantage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.advantage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 2px solid #82d0ff;
  color: #072c52;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 0 3px 0 #b8e4ff;
}
.advantage-chip span[aria-hidden] { font-size: 0.95rem; }

/* ---- Auth modal (one-screen signup) ---- */
.auth-modal-backdrop {
  position: fixed; inset: 0; z-index: 240;
  background: rgba(8, 45, 82, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
}
.auth-modal {
  width: min(420px, 100%);
  background: #e8f8ff;
  border: 3px solid #2cb7ff;
  border-radius: 20px;
  padding: 18px 18px 16px;
  color: #072c52;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.auth-modal-kicker {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: #0066cc; margin-bottom: 4px;
}
.auth-modal h2 { font-family: var(--font-serif, "Fraunces", Georgia, serif); font-size: 1.45rem; margin: 0 0 8px; line-height: 1.15; }
.auth-modal-lead { margin: 0 0 14px; color: #1c5385; font-size: 0.95rem; }
.auth-modal .field { margin-bottom: 10px; }
.auth-modal input[type="email"], .auth-modal input[type="password"] {
  width: 100%; border: 2px solid #82d0ff; border-radius: 12px;
  padding: 11px 12px; font: inherit; background: #fff;
}
.auth-modal .btn.primary { width: 100%; justify-content: center; margin-top: 4px; }
.auth-modal-toggle {
  display: block; width: 100%; margin-top: 10px; background: none; border: 0;
  color: #0066cc; font-weight: 800; cursor: pointer; text-decoration: underline; font: inherit;
}
.auth-modal-err { color: #9b1c2a; font-weight: 700; font-size: 0.88rem; margin: 0 0 8px; }
.auth-modal-close {
  position: absolute; top: 10px; right: 12px;
  border: 0; background: #dff3ff; width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; color: #072c52;
}
.auth-modal { position: relative; }
@media (min-width: 640px) {
  .auth-modal-backdrop { align-items: center; }
}

/* ---- Words library ---- */
.words-lib {
  margin-top: 8px;
  background: #fff8e8;
  border: 2px solid #ffe047;
  border-radius: 14px;
  padding: 10px;
}
.words-lib-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.words-lib-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8a3a2a; }
.words-lib-tabs, .words-lib-themes { display: flex; flex-wrap: wrap; gap: 4px; }
.words-lib-themes { margin-bottom: 8px; }
.words-tab, .words-theme {
  border: 1.5px solid #e6c15a; background: #fff; border-radius: 999px;
  padding: 3px 9px; font: inherit; font-size: 0.75rem; font-weight: 800; cursor: pointer; color: #3a1210;
}
.words-tab.is-on, .words-theme.is-on { background: #ffe047; border-color: #c9922e; }
.words-lib-list { display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.words-chip {
  text-align: left; border: 1.5px solid #f0d48a; background: #fffdf6;
  border-radius: 10px; padding: 7px 9px; cursor: pointer; font: inherit; color: #3a1210;
}
.words-chip:hover, .words-chip.is-picked { background: #dcfdf0; border-color: #22e3a4; }
.words-chip-theme { display: block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8a3a2a; margin-bottom: 2px; }
.words-chip-text { font-size: 0.86rem; line-height: 1.3; }

/* ---- Quick Start page ---- */
.qs-page { max-width: 720px; margin: 0 auto; padding: 16px 14px 48px; }
.qs-hero {
  background: linear-gradient(145deg, #ffffff 0%, #dcf3ff 56%, #ffe8f2 100%);
  border: 3px solid #72caff; border-radius: 22px; padding: 18px 16px 16px; margin: 12px 0 16px;
  box-shadow: 0 10px 0 rgba(114, 202, 255, 0.35);
}
.qs-hero h1 { font-family: var(--font-serif, "Fraunces", Georgia, serif); font-size: 1.7rem; margin: 0 0 6px; color: #072c52; line-height: 1.1; }
.qs-hero p { margin: 0; color: #1c5385; }
.qs-panel { display: none; }
.qs-panel.is-on { display: block; }
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .qs-grid { grid-template-columns: 1fr 1fr 1fr; } }
.qs-tpl {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  border: 2px solid #9bd8ff; background: #fff; border-radius: 16px; padding: 8px;
  cursor: pointer; color: inherit; font: inherit;
}
.qs-tpl.is-on, .qs-tpl:hover { border-color: #0066cc; box-shadow: 0 0 0 3px #b8e4ff; }
.qs-tpl-art { height: 110px; border-radius: 10px; overflow: hidden; background: #e8f6ff; }
.qs-tpl-art svg, .qs-tpl-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qs-tpl-name { font-weight: 800; color: #072c52; font-size: 0.9rem; }
.qs-tpl-meta { font-size: 0.75rem; font-weight: 700; color: #21598c; }
.qs-preview-frame {
  width: 100%; max-width: 360px; margin: 0 auto 12px;
  border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(8,45,82,0.15);
  background: #fff;
}
.qs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qs-biz-fields { display: none; }
.qs-biz-fields.is-on { display: block; }

@media (max-width: 520px) {
  .qs-step-label { font-size: 0.7rem; }
  .qs-step-btn { padding: 6px 7px; gap: 5px; }
}

@media (max-width: 800px) {
  .topbar .print-ready-note { display: none; }
  .topbar .print-ready-badge { padding: 4px 8px; }
}

/* ---- Famous painter picker ---- */
.painter-picker { margin: 8px 0 12px; }
.painter-picker-head { margin-bottom: 8px; }
.painter-picker-title {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #072c52;
}
.painter-picker-note { margin: 2px 0 0; font-size: 0.78rem; color: #21598c; }
.painter-picker-note a { color: #0066cc; font-weight: 700; }
.painter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}
.painter-chip {
  display: flex; flex-direction: column; gap: 4px;
  border: 2px solid #9bd8ff; background: #fff; border-radius: 12px;
  padding: 4px; cursor: pointer; font: inherit; color: #072c52; text-align: left;
}
.painter-chip.is-on, .painter-chip:hover { border-color: #0066cc; box-shadow: 0 0 0 2px #b8e4ff; }
.painter-chip-art {
  display: block; height: 72px; border-radius: 8px; overflow: hidden; background: #e8f6ff;
}
.painter-chip-none {
  display: flex !important; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: #21598c; background: #fff8e8;
}
.painter-chip-name { font-size: 0.68rem; font-weight: 800; line-height: 1.2; }
.painter-chip-artist { font-size: 0.62rem; font-weight: 700; color: #21598c; }

.credits-list { display: grid; gap: 16px; margin-top: 18px; }
.credits-card {
  display: grid; grid-template-columns: 140px 1fr; gap: 14px;
  background: #fff; border: 2px solid #9bd8ff; border-radius: 16px; padding: 12px;
}
.credits-thumb { display: block; border-radius: 10px; overflow: hidden; background: #e8f6ff; height: 110px; }
.credits-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credits-card h2 { font-family: var(--font-serif, Fraunces, Georgia, serif); font-size: 1.15rem; margin: 0 0 2px; }
.credits-date { font-weight: 600; color: #21598c; font-size: 0.9rem; }
.credits-artist { font-weight: 800; margin: 0 0 8px; color: #072c52; }
.credits-card p { margin: 0 0 4px; font-size: 0.88rem; }
@media (max-width: 640px) {
  .credits-card { grid-template-columns: 1fr; }
  .credits-thumb { height: 160px; }
}

/* ---- Compact header + step bar on phones ---- */
@media (max-width: 640px) {
  .site-header-inner {
    padding: 6px 8px;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .brand-lockup {
    width: auto !important;
    justify-content: flex-start;
    padding: 3px 8px 3px 5px;
    border-radius: 12px;
    gap: 6px;
  }
  .brand-mark { width: 24px; height: 24px; font-size: 0.85rem; border-radius: 8px; }
  .brand-parent { font-size: 0.48rem; letter-spacing: 0.1em; }
  .brand-name { font-size: 1rem; }
  .site-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 5px !important;
    width: auto !important;
    justify-content: flex-end;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-goal-btn {
    width: auto !important;
    min-height: 34px !important;
    padding: 4px 9px !important;
    font-size: 0.72rem !important;
    border-radius: 11px;
    flex: 0 0 auto;
    box-shadow: 0 2px 0 rgba(8, 51, 88, 0.18);
  }
  .qs-maker-bar, .qs-steps-wrap {
    padding: 4px 8px 6px;
    position: relative;
    top: auto;
  }
  .qs-steps-kicker { margin-bottom: 3px; font-size: 0.62rem; }
  .qs-step-btn { min-height: 30px; padding: 3px 6px; gap: 4px; box-shadow: none; }
  .qs-step-num { width: 18px; height: 18px; font-size: 0.65rem; }
  .qs-step-label { font-size: 0.65rem; }
}


/* ---- Job receipt ---- */
.job-receipt-backdrop,
.photo-keep-backdrop {
  position: fixed; inset: 0; z-index: 240;
  background: rgba(7, 44, 82, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.job-receipt, .photo-keep-modal {
  width: min(520px, 100%);
  background: linear-gradient(180deg, #f3fbff 0%, #e7f7ff 100%);
  border: 3px solid #E63946;
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 40px rgba(7, 44, 82, 0.22);
  color: #072c52;
}
.job-receipt-kicker, .photo-keep-kicker {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #E63946; margin-bottom: 6px;
}
.job-receipt-number {
  font-family: "Baloo 2", "DM Sans", system-ui, sans-serif;
  font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.1rem);
  margin: 0 0 8px; letter-spacing: -0.02em; color: #072c52;
}
.job-receipt-actions, .photo-keep-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}

/* ---- Unmissable private-photo reminder ---- */
.photo-keep-banner, .photo-download-notice {
  position: sticky;
  top: 0;
  z-index: 160;
  background: linear-gradient(180deg, #e8f6ff 0%, #d8f0ff 100%);
  color: #072c52;
  border-bottom: 4px solid #E63946;
  padding: 14px 16px;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(7, 44, 82, 0.14);
}
.photo-keep-banner-inner {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 920px; margin: 0 auto;
}
.photo-keep-mark { font-size: 1.6rem; line-height: 1; }
.photo-keep-banner strong, .photo-download-notice strong {
  display: block;
  font-size: clamp(1.15rem, 4.4vw, 1.55rem);
  font-weight: 800;
  color: #E63946;
  line-height: 1.15;
  margin-bottom: 2px;
}
.photo-keep-banner [data-notice-status],
.photo-download-notice [data-notice-status] {
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  font-weight: 800;
  color: #072c52;
}
.photo-keep-banner.is-done, .photo-download-notice.is-done {
  background: #e7fff6;
  border-bottom-color: #09a673;
}
.photo-keep-banner.is-done strong, .photo-download-notice.is-done strong { color: #086b4a; }
.photo-keep-line {
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: #072c52;
}
.photo-keep-emph { color: #E63946; }
.photo-keep-actions .photo-keep-dl {
  background: #E63946;
  border-color: #c42d3a;
  color: #fff;
  font-weight: 800;
  min-height: 44px;
  font-size: 1.02rem;
}
.photo-keep-extra { margin-top: 10px; font-weight: 700; color: #1c5385; }
@media (max-width: 640px) {
  .photo-keep-banner, .photo-download-notice { padding: 12px 10px; }
}

/* ---- Destination panel styles (unused) ---- */
.print-where-panel {
  margin: 12px 0 14px;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #e8f8ff 0%, #f4fcff 100%);
  border: 2px solid #7ad8ff;
  border-radius: 16px;
  color: #04283c;
}
.print-where-panel.print-where-needed {
  border-color: #E63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.18);
}
.print-where-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.print-where-head strong { font-size: 0.98rem; color: #072c52; }
.print-where-stage {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0077cc;
}
.print-where-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  .print-where-choices { grid-template-columns: 1fr; }
}
.print-where-choice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #ffffff;
  border: 2px solid #b8edff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
.print-where-choice.is-on {
  border-color: #1aa4e6;
  background: #dff4ff;
  box-shadow: 0 0 0 2px rgba(26, 164, 230, 0.18);
}
.print-where-choice small {
  display: block;
  color: #21598c;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.3;
}
.print-where-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.print-where-badge.same { background: #22e3a4; color: #043329; }
.print-where-badge.next { background: #ffe047; color: #083358; }
.print-where-badge.online { background: #ffd3b6; color: #7a2e2e; }
.print-where-badge.shop { background: #c9d7f5; color: #142133; }
.print-where-title { font-weight: 800; margin: 0 0 6px; color: #072c52; }
.print-where-list { margin: 0 0 10px; padding-left: 1.15rem; color: #08405c; }
.print-where-list li { margin: 0 0 6px; line-height: 1.4; }
.print-where-list a { font-weight: 700; color: #0077cc; }
.print-where-tick {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 800;
  color: #072c52;
  background: #fff;
  border: 1.5px dashed #4ec6ff;
  border-radius: 10px;
  padding: 8px 10px;
}
.print-where-tick input { margin-top: 3px; width: 18px; height: 18px; accent-color: #0077cc; }
.print-where-digital { margin: 0; }

/* Custom Size page extras */
.custom-size-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.pay-soon-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}
.custom-photo-note {
  background: #fff6e8;
  border: 2px solid #ffd27a;
  border-radius: 12px;
  padding: 10px 12px;
  color: #5a3208;
  margin: 12px 0;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .custom-form-row { grid-template-columns: 1fr !important; }
  .print-where-stage { max-width: 48%; text-align: right; white-space: normal; line-height: 1.25; }
}
.print-where-panel, .print-where-choice, .print-where-print, .print-where-list, .print-where-choice small {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.print-where-head { align-items: flex-start; }

