body { background: #2a2420; }
.ptools { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button[aria-checked='true'] { background: var(--saffron); color: var(--accent-ink); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; }
.ptip { text-align: center; font-size: 13px; margin: 14px 16px 0; }

.sheets { display: grid; justify-content: center; gap: 28px; padding: 28px 16px 60px; }
.page { width: 210mm; height: 297mm; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.5); display: grid; overflow: hidden; position: relative; }
@media screen and (max-width: 860px) { .sheets { zoom: .42; } }

/* ---------- card visual ---------- */
.qc {
  --acc: var(--saffron); --acc2: var(--saffron);
  position: relative; overflow: hidden; color: #fff6ec; font-family: var(--font);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(244, 165, 28, .16), transparent 60%),
    linear-gradient(170deg, #1d1410, #0d0907);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.qc::after { content: ''; position: absolute; inset: 4mm; border: .35mm solid rgba(255, 220, 190, .25); border-radius: 4mm; pointer-events: none; }
.qc .brand { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; margin-top: 9mm; padding: 0 8mm; color: var(--cream); }
.qc .brand .amp { color: var(--saffron); }
.qc .tag { font: 500 2.4mm/1 var(--font-mono); letter-spacing: .25em; text-transform: uppercase; color: var(--saffron); margin-top: 2.4mm; }
.qc .qrbox { position: relative; background: #fff; border-radius: 4mm; padding: 3mm; margin: 6mm auto 0; box-shadow: 0 0 0 1.2mm var(--saffron), 0 4mm 10mm rgba(0,0,0,.5); }
.qc .qrbox img { width: 100%; height: 100%; }
.qc .badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22%; aspect-ratio: 1; border-radius: 26%; display: grid; place-items: center;
  background: var(--saffron) url('/logo-mark.svg') center / 100% no-repeat; border: 1mm solid #fff; font-size: 0; }
.qc .scan { display: flex; align-items: center; justify-content: center; gap: 2mm; font-weight: 700; margin-top: 5mm; font-size: 3.6mm; }
.qc .steps { display: flex; justify-content: center; gap: 2.5mm; margin-top: 2.5mm; font-size: 2.5mm; color: rgba(255,240,225,.75); }
.qc .steps span { padding: .8mm 2.2mm; border-radius: 9mm; border: .25mm solid rgba(255,220,190,.3); }
.qc .table { margin-top: auto; margin-bottom: 8mm; font-family: var(--display); font-weight: 700; }
.qc .table small { display: block; font-family: var(--font); font-size: 2.4mm; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,240,225,.6); font-weight: 600; margin-bottom: .5mm; }
.qc .wifi { position: absolute; bottom: 4.6mm; left: 0; right: 0; font-size: 2.2mm; color: rgba(255,240,225,.5); }

/* ---------- standee: 4 × A6 per A4 ---------- */
.style-standee .page { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.style-standee .qc { width: 105mm; height: 148.5mm; outline: .2mm dashed #bbb; outline-offset: -.1mm; }
.style-standee .brand { font-size: 8mm; }
.style-standee .qrbox { width: 56mm; height: 56mm; }
.style-standee .table { font-size: 9mm; }

/* ---------- tent: fold along the middle, top half upside-down ---------- */
.style-tent .page { grid-template-rows: 1fr 1fr; }
.style-tent .tent { display: grid; grid-template-rows: 1fr 1fr; height: 148.5mm; border-bottom: .2mm dashed #bbb; }
.style-tent .tent .qc:first-child { transform: rotate(180deg); }
.style-tent .tent::before { content: ''; }
.style-tent .tent { position: relative; }
.style-tent .tent::after { content: 'fold'; position: absolute; left: 2mm; top: 50%; transform: translateY(-50%); font-size: 2mm; color: #999; }
.style-tent .qc { width: 210mm; height: 74.25mm; flex-direction: row; text-align: left; justify-content: space-between; padding: 0 14mm; gap: 8mm; }
.style-tent .qc .col { display: flex; flex-direction: column; }
.style-tent .brand { margin: 0; padding: 0; font-size: 9mm; }
.style-tent .qrbox { width: 52mm; height: 52mm; margin: 0; flex: none; }
.style-tent .scan { justify-content: flex-start; }
.style-tent .steps { justify-content: flex-start; }
.style-tent .table { margin: 3mm 0 0; font-size: 8mm; }
.style-tent .wifi { left: 14mm; text-align: left; }
.style-tent .qc::after { inset: 3mm; }

/* ---------- card grid: 3 × 3 ---------- */
.style-card .page { grid-template-columns: repeat(3, 70mm); grid-template-rows: repeat(3, 99mm); }
.style-card .qc { width: 70mm; height: 99mm; outline: .2mm dashed #bbb; }
.style-card .qc::after { inset: 2.5mm; }
.style-card .brand { font-size: 5mm; margin-top: 6mm; }
.style-card .tag { font-size: 1.8mm; }
.style-card .qrbox { width: 40mm; height: 40mm; margin-top: 4mm; padding: 2mm; }
.style-card .scan { font-size: 2.8mm; margin-top: 3.5mm; }
.style-card .steps { display: none; }
.style-card .table { font-size: 6mm; margin-bottom: 6mm; }
.style-card .wifi { display: none; }

/* ---------- 3D screen preview ---------- */
@media screen {
  .view3d .sheets { perspective: 1600px; }
  .view3d .page { transform: rotateX(18deg) rotateZ(-2deg); transform-origin: 50% 0; transition: transform .6s var(--ease); }
  .view3d .page:hover { transform: none; }
}

@page { size: A4; margin: 0; }
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .sheets { display: block; padding: 0; zoom: 1 !important; }
  .page { box-shadow: none; page-break-after: always; break-after: page; transform: none !important; }
  .page:last-child { page-break-after: auto; break-after: auto; }
}
