/* QR hiring poster — interactive builder tool. Page-specific styles. */
:root { --accent: var(--blue); }

.qr-app { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100vh - var(--nav-h)); background: var(--paper-2); }

/* CONTROLS */
.controls { background: #fff; border-right: 1px solid var(--line); padding: 24px; overflow-y: auto; height: calc(100vh - var(--nav-h)); position: sticky; top: var(--nav-h); }
.controls .lead-in { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.controls .sub { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 22px; }
.grp { margin-bottom: 18px; }
.grp label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.grp input[type=text], .grp input[type=url], .grp select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; font-family: inherit; font-size: .9rem; background: #fff; color: var(--ink); }
.grp input:focus, .grp select:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.grp input[type=file] { width: 100%; border: 1px dashed var(--line); border-radius: 10px; padding: .5rem .6rem; font-size: .8rem; color: var(--muted); background: #fff; cursor: pointer; }
.grp input[type=file]::file-selector-button { border: 0; border-radius: 999px; background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: .78rem; padding: .35rem .8rem; margin-right: .6rem; cursor: pointer; font-family: inherit; }
.clear-btn { background: none; border: 0; padding: 0; margin-top: 6px; font-family: inherit; font-size: .74rem; font-weight: 600; color: var(--blue); cursor: pointer; text-decoration: underline; }
.clear-btn.hidden { display: none; }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.swatches { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sw { width: 28px; height: 28px; border-radius: 8px; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.sw.on { box-shadow: 0 0 0 2px var(--ink); }
.hint { font-size: .74rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.toggle { display: flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 600; cursor: pointer; margin-top: 4px; text-transform: none; letter-spacing: 0; }
.toggle input { width: 16px; height: 16px; accent-color: var(--blue); }
.actions { position: sticky; bottom: 0; background: #fff; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line); }
.print-btn { display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: .95rem; padding: .85rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer; background: var(--blue); color: #fff; font-family: inherit; transition: background .15s; }
.print-btn:hover { background: var(--blue-press); }
.actions .hint { text-align: center; margin-top: 10px; }

/* STAGE */
.stage { padding: 36px; display: flex; align-items: flex-start; justify-content: center; overflow: auto; }
.stage-inner { transform-origin: top center; }

/* POSTER */
.poster { width: 8.5in; height: 11in; background: #fff; box-shadow: 0 30px 80px -30px rgba(13, 13, 18, .4); padding: 2.4em; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; color: var(--ink); overflow: hidden; font-size: 16pt; }
.p-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.p-store { font-family: var(--mono); font-size: .8em; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.p-logo { display: flex; align-items: center; gap: .35rem; font-family: var(--display); font-weight: 800; font-size: .95em; }
.p-logo .m { width: 1.3em; height: 1.3em; border-radius: .4em; background: var(--accent); position: relative; }
.p-logo .m::after { content: ""; position: absolute; inset: .32em; border: .13em solid #fff; border-radius: 50%; border-right-color: transparent; transform: rotate(-45deg); }
.p-emlogo { margin-left: auto; display: flex; align-items: center; }
.p-emlogo img { display: block; max-height: 2.6em; max-width: 9em; object-fit: contain; }
.p-emlogo.hidden { display: none; }
.p-eyebrow { font-family: var(--mono); font-size: .82em; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 1.4em; }
.p-head { font-family: var(--display); font-weight: 800; font-size: 3.4em; line-height: .98; letter-spacing: -.02em; margin-top: .18em; }
.p-sub { font-size: 1em; color: #33353f; margin-top: .7em; font-weight: 500; max-width: 14em; }
.p-pay { margin-top: .8em; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.65em; border-radius: .45em; padding: .18em .65em; letter-spacing: -.01em; }
.p-pay.hidden { display: none; }
.p-chips { display: flex; gap: .7em; margin-top: .9em; flex-wrap: wrap; justify-content: center; }
.p-chip { font-size: .66em; font-weight: 600; color: var(--ink); background: var(--paper-2); border-radius: 999px; padding: .4em 1em; display: flex; align-items: center; gap: .4em; }
.p-qrcard { margin-top: auto; background: #fff; border: .18em solid var(--accent); border-radius: 1em; padding: .7em; }
.p-qrcard img, .p-qrcard canvas { display: block; width: 13em; height: 13em; }
.p-cta { font-family: var(--display); font-weight: 800; font-size: 1.4em; margin-top: .55em; color: var(--accent); }
.p-text { font-size: .8em; color: #33353f; margin-top: .25em; font-weight: 500; }
.p-foot { margin-top: auto; padding-top: .7em; font-family: var(--mono); font-size: .56em; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: .45em; }
.p-foot .p-logo { font-size: 1.2em; gap: .25em; color: var(--ink); }
.p-text.hidden, .p-store.hidden { display: none; }

@media (max-width: 780px) {
  .qr-app { grid-template-columns: 1fr; }
  .controls { height: auto; position: static; }
  .stage { padding: 18px; }
}

/* PRINT */
@media print {
  .cleo-top, .cleo-foot, .controls, .skip-link { display: none !important; }
  body, .qr-app, .stage { background: #fff !important; display: block !important; padding: 0 !important; margin: 0 !important; }
  .stage-inner { transform: none !important; }
  .poster { box-shadow: none !important; margin: 0 auto !important; }
  @page { margin: 0; }
}
