/* SimchaSnap Free Event QR Photo Sign Maker — extends app.css, landing.css & ideas.css */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/CormorantGaramond-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/CormorantGaramond-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/CormorantGaramond-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

.qrm-hero {
  padding: clamp(18px, 3.6vw, 36px) 0 clamp(22px, 3.6vw, 34px);
}
.qrm-hero .eyebrow { color: #414141; margin: 0 0 12px; }
.qrm-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .96;
  max-width: 18ch;
}
.qrm-hero .seo-deck {
  max-width: 34em;
  margin-top: 16px;
  padding-top: 14px;
}

/* Main interactive workspace */
.qrm-workspace {
  padding: 24px 0 44px;
  border-top: 2px solid #0a0a0a;
}
.qrm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Preview column — shown first on mobile so users see the real sign immediately */
.qrm-preview-col {
  order: -1;
  min-width: 0;
}
.qrm-stage {
  border: 2px solid #0a0a0a;
  border-radius: 22px;
  background: #f3f3f1;
  padding: 18px 16px 20px;
}
.qrm-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.qrm-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 .72rem/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #d4d4d0;
  border-radius: 999px;
  padding: 5px 11px;
}
.qrm-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a0a0a;
  display: inline-block;
}
.qrm-size-meta {
  font: 600 .72rem/1.2 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #515151;
}

.qrm-paper-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 4px 10px;
}
.qrm-paper {
  width: 100%;
  max-width: 280px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .08);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 3px;
  overflow: hidden;
  transition: max-width .2s ease;
}
.qrm-paper[data-size="8x10"] {
  max-width: 296px;
}
.qrm-paper svg {
  display: block;
  width: 100%;
  height: auto;
}

.qrm-enc-line {
  margin: 12px 0 0;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dededa;
  border-radius: 10px;
  font: 500 .75rem/1.35 var(--mono);
  color: #3a3a3a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qrm-enc-line strong { color: #0a0a0a; font-weight: 700; }

/* Download actions */
.qrm-dl-group {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.qrm-dl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.qrm-dl-group .btn {
  min-height: 46px;
  padding: 12px 16px;
  font-size: .92rem;
  width: 100%;
}
.qrm-dl-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: .8rem;
  color: #515151;
  line-height: 1.4;
}

/* Conversion strip under preview */
.qrm-cta-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.qrm-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 16px;
  text-decoration: none;
  border: 1.5px solid #0a0a0a;
  background: #fff;
  color: #0a0a0a;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.qrm-cta-card.dark {
  background: #0a0a0a;
  color: #fff;
}
.qrm-cta-card:hover { transform: translateY(-1px); }
.qrm-cta-card.dark:hover { background: #1c1c1c; }
.qrm-cta-card:not(.dark):hover { background: #f7f7f5; }
.qrm-cta-card strong {
  display: block;
  font-size: .95rem;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.qrm-cta-card span {
  display: block;
  margin-top: 3px;
  font-size: .82rem;
  line-height: 1.4;
  color: #4a4a4a;
}
.qrm-cta-card.dark span { color: #d4d4d4; }
.qrm-cta-arrow {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

/* Controls panel */
.qrm-controls {
  border: 1.5px solid #0a0a0a;
  border-radius: 22px;
  background: #fff;
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.qrm-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.qrm-section:first-child {
  padding-top: 0;
  border-top: 0;
}
.qrm-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.qrm-sec-num {
  font: 700 .72rem/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #515151;
}

/* Preset buttons */
.qrm-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.qrm-preset {
  appearance: none;
  border: 1.5px solid #d4d4d4;
  background: #fff;
  color: #0a0a0a;
  border-radius: 12px;
  padding: 11px 10px;
  min-height: 44px;
  font: 700 .86rem/1.2 var(--sans);
  cursor: pointer;
  text-align: center;
  transition: background .14s, color .14s, border-color .14s;
}
.qrm-preset:hover { border-color: #0a0a0a; }
.qrm-preset[aria-pressed="true"] {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}

/* Form fields */
.qrm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qrm-field label {
  font-weight: 700;
  font-size: .88rem;
  color: #0a0a0a;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.qrm-opt {
  font: 500 .74rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #666;
}
.qrm-field input[type="text"],
.qrm-field input[type="url"] {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid #cfcfcf;
  border-radius: 12px;
  background: #fff;
  font: 16px/1.35 var(--sans);
  color: #0a0a0a;
  min-height: 46px;
}
.qrm-field input:focus {
  outline: 0;
  border-color: #0a0a0a;
  box-shadow: 0 0 0 2px rgba(10, 10, 10, .1);
}

/* Quick-pick wording pills */
.qrm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.qrm-pill {
  appearance: none;
  border: 1px solid #c9c9c9;
  background: #fafafa;
  color: #222;
  border-radius: 999px;
  padding: 7px 11px;
  min-height: 34px;
  font: 600 .78rem/1.2 var(--sans);
  cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}
.qrm-pill:hover { border-color: #0a0a0a; color: #0a0a0a; }
.qrm-pill[aria-pressed="true"] {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}

/* URL field CTA helper */
.qrm-url-cta {
  margin-top: 4px;
  padding: 11px 13px;
  background: #f5f5f3;
  border: 1px solid #dededa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: #2c2c2c;
}
.qrm-url-cta a {
  font-weight: 800;
  color: #0a0a0a;
  text-decoration: none;
  border-bottom: 1.5px solid #0a0a0a;
  padding-bottom: 1px;
  white-space: nowrap;
}
.qrm-url-cta a:hover { opacity: .75; }

/* Template style picker */
.qrm-styles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.qrm-style-btn {
  appearance: none;
  border: 1.5px solid #d4d4d4;
  border-radius: 14px;
  background: #fff;
  padding: 11px 10px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #0a0a0a;
  text-align: center;
  transition: border-color .14s, background .14s, transform .14s;
}
.qrm-style-btn:hover { border-color: #0a0a0a; transform: translateY(-1px); }
.qrm-style-btn[aria-pressed="true"] {
  border-color: #0a0a0a;
  box-shadow: inset 0 0 0 1px #0a0a0a;
  background: #f7f7f5;
}
.qrm-style-btn svg.qrm-style-thumb {
  width: 56px;
  height: 76px;
  flex: 0 0 auto;
  display: block;
}
.qrm-style-name {
  font: 700 .83rem/1.2 var(--sans);
  color: #0a0a0a;
}

/* Size & ink controls */
.qrm-sizes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.qrm-size-btn {
  appearance: none;
  border: 1.5px solid #d4d4d4;
  background: #fff;
  color: #0a0a0a;
  border-radius: 12px;
  padding: 10px 10px;
  min-height: 52px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background .14s, color .14s, border-color .14s;
}
.qrm-size-btn strong { font-size: .92rem; line-height: 1.15; }
.qrm-size-btn small { font: 600 .7rem/1.1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #515151; }
.qrm-size-btn:hover { border-color: #0a0a0a; }
.qrm-size-btn[aria-pressed="true"] {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}
.qrm-size-btn[aria-pressed="true"] small { color: #d0d0d0; }

.qrm-inks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qrm-ink-btn {
  appearance: none;
  border: 1.5px solid #d4d4d4;
  background: #fff;
  color: #0a0a0a;
  border-radius: 999px;
  padding: 8px 13px;
  min-height: 40px;
  font: 700 .82rem/1 var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.qrm-ink-btn:hover { border-color: #0a0a0a; }
.qrm-ink-btn[aria-pressed="true"] {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #fff;
}
.qrm-swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .2);
  display: inline-block;
  flex: 0 0 13px;
}
.qrm-ink-btn[aria-pressed="true"] .qrm-swatch {
  border-color: rgba(255, 255, 255, .55);
}

/* Checkbox row */
.qrm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .88rem;
  color: #2c2c2c;
  min-height: 36px;
}
.qrm-check input {
  width: 18px;
  height: 18px;
  accent-color: #0a0a0a;
  cursor: pointer;
  flex: 0 0 18px;
}

/* Mobile bottom convenience download bar */
.qrm-mobile-dl {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Below-tool editorial tips */
.qrm-tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
.qrm-tip-card {
  border: 1.5px solid #0a0a0a;
  border-radius: 18px;
  padding: 22px 20px;
  background: #fff;
}
.qrm-tip-num {
  font: 900 1.4rem/1 var(--sans);
  letter-spacing: -.04em;
  color: #0a0a0a;
  margin-bottom: 10px;
}
.qrm-tip-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.24;
}
.qrm-tip-card p {
  margin: 0;
  color: #343434;
  font-size: .95rem;
  line-height: 1.58;
}

/* Print-only container */
#print-sheet { display: none; }

@media (min-width: 640px) {
  .qrm-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qrm-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qrm-tips-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 920px) {
  .qrm-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr);
    gap: 32px;
  }
  .qrm-preview-col {
    order: 0;
    position: sticky;
    top: 84px;
  }
  .qrm-controls { padding: 24px 24px 26px; }
  .qrm-stage { padding: 22px 22px 22px; }
  .qrm-paper { max-width: 340px; }
  .qrm-paper[data-size="8x10"] { max-width: 368px; }
  .qrm-mobile-dl { display: none; }
}

@media print {
  body > *:not(#print-sheet) { display: none !important; }
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  #print-sheet {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #fff;
  }
  #print-sheet svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qrm-paper,
  .qrm-cta-card,
  .qrm-style-btn { transition: none; }
}
