/* ============================================================
   The consumer page of a sticker: the built-in layouts (passport, landing, minimal), the logo mark,
   the stamp and the QR. Loaded by the public page (p.html) and by the CRM for its page preview.
   A brand page or a promo layout brings its own stylesheet (js/pages/templates.js).
   ============================================================ */
/* Brand: SVG wordmark recoloured through a mask (navy in light, white in dark) */
.logo-mark { display: inline-block; width: 78px; height: 25px; background: currentColor; -webkit-mask: url(../assets/logo.svg) no-repeat center / contain; mask: url(../assets/logo.svg) no-repeat center / contain; }

/* Consumer product page preview (phone frame) */
.pp-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pp { width: 100%; max-width: 380px; background: #fff; color: #2B295C; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 12px 36px rgba(0,0,0,.25); font-family: var(--font-sans); }
.pp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
.pp-head .logo-mark { width: 64px; height: 20px; color: #2B295C; }

.pp-head .pp-lang { font-size: 13px; text-decoration: underline; }
.pp-sub { text-align: center; font-size: 11px; color: #8b8aa3; padding-bottom: 10px; }
.pp-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; }
.pp-banner svg { width: 28px; height: 28px; flex: none; }
.pp-banner b { display: block; font-size: 18px; line-height: 1.15; }
.pp-banner span { font-size: 12px; opacity: .9; }
.pp-banner.success { background: #5cb85c; } .pp-banner.warning { background: #e0a53a; } .pp-banner.danger { background: #d9534f; } .pp-banner.neutral { background: #8b8aa3; }
.pp-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #ecebf2; font-size: 12.5px; }
.pp-row span { color: #8b8aa3; } .pp-row b { text-align: right; font-weight: 600; }
.pp-title { padding: 12px 16px 4px; font: 600 15px/1.35 var(--font-sans); color: #2B295C; }
.pp-summary { padding: 0 16px 10px; font-size: 12.5px; color: #4a4968; }
.pp-gallery { padding: 4px 16px 12px; }
.pp-photo { height: 260px; border-radius: 10px; background: linear-gradient(160deg, #f1f0f7, #dedcee); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #9a99b0; font-size: 12px; }
.pp-photo svg { width: 36px; height: 36px; }

 
.pp-attrs { border-top: 1px solid #ecebf2; }
.pp-section { padding: 12px 16px; border-bottom: 1px solid #ecebf2; }
.pp-section h3 { font: 600 13px/1.3 var(--font-sans); margin-bottom: 6px; color: #2B295C; }
.pp-section p { font-size: 12.5px; line-height: 1.5; color: #4a4968; white-space: pre-line; }
.pp-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; font-size: 12px; }
.pp-foot a { color: #8b8aa3; }
.pp-note { text-align: center; }

.pp-photo { background: #fff; }
.pp-photo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }

/* Consumer page: product passport accordion (first section open) */
.pp-passport { border-top: 6px solid #f3f2f8; }
.pp-passport .pp-acc:first-child { border-top: 0; }

.pp-acc { border-top: 1px solid #ecebf2; }
.pp-acc summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; font: 600 13.5px/1.3 var(--font-sans); color: #2B295C; user-select: none; }
.pp-acc summary::-webkit-details-marker { display: none; }
.pp-acc summary > svg:first-child { width: 16px; height: 16px; color: #6b6a8a; flex: none; }
.pp-acc summary > span { flex: 1; }
.pp-acc summary > svg:last-child { width: 16px; height: 16px; color: #9a99b0; transition: transform .15s; }
.pp-acc[open] summary > svg:last-child { transform: rotate(180deg); }
.pp-acc[open] summary { background: #faf9fd; }
.pp-acc-body { padding-bottom: 6px; }
.pp-acc-body .pp-attrs { border-top: 0; }
.pp-acc-body .pp-row:last-child { border-bottom: 0; }
.pp-acc-body .pp-section { border-bottom: 0; padding-top: 8px; }
.pp-acc-body .pp-section + .pp-attrs { border-top: 1px solid #ecebf2; }
.pp-caption { padding: 8px 16px 2px; font-size: 11px; color: #8b8aa3; }
.pp-note-row { display: flex; gap: 8px; align-items: flex-start; }
.pp-note-row svg { width: 14px; height: 14px; color: #8b8aa3; flex: none; margin-top: 2px; }
.pp-note-row p { font-size: 12px; color: #8b8aa3; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chips span { font: 500 11.5px/1 var(--font-sans); padding: 6px 9px; border-radius: 999px; background: #eef2ff; color: #2B295C; }
.pp-steps { list-style: none; margin: 0; padding: 6px 16px 10px; }
.pp-steps li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.pp-steps li::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 2px; background: #ecebf2; }
.pp-steps li:last-child::before { display: none; }
.pp-steps li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c9c8d8; background: #fff; flex: none; margin-top: 3px; z-index: 1; }
.pp-steps li.done i { background: #5cb85c; border-color: #5cb85c; }
.pp-steps li b { display: block; font: 500 12.5px/1.3 var(--font-sans); color: #2B295C; }
.pp-steps li span { font-size: 11px; color: #8b8aa3; }
.pp-attrs a { color: #3b5bdb; }

/* Link to the standalone consumer page under the phone preview */
.pp-note a { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--accent-text); }
.pp-note a svg { width: 12px; height: 12px; }

/* Consumer page: originality check (QR + unique stained-glass square) */
.pp-verify { padding: 14px 16px 16px; border-bottom: 1px solid #ecebf2; }
.pp-verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pp-verify-grid figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pp-verify-grid svg, .pp-verify-grid .pp-qr { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.pp-verify-grid .pp-qr svg { width: 100%; height: 100%; }
.pp-verify-grid figcaption { font-size: 11px; color: #8b8aa3; text-align: center; }
.pp-verify h3 { display: flex; align-items: center; gap: 6px; margin-top: 14px; font: 600 13.5px/1.3 var(--font-sans); color: #2B295C; }
.pp-verify h3 svg { width: 16px; height: 16px; color: #5cb85c; }
.pp-verify p { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: #4a4968; }
.pp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; min-height: 42px; border-radius: 10px; border: 1.5px solid #d9534f; background: #fff; color: #d9534f; font: 600 13px/1 var(--font-sans); cursor: pointer; }
.pp-btn svg { width: 16px; height: 16px; }
.pp-btn:hover { background: #fdf1f0; }
.pp-reported { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #eaf6ea; color: #2f7d32; font-size: 12.5px; }
.pp-reported svg { width: 16px; height: 16px; }
.qr-fallback { font-size: 10px; word-break: break-all; padding: 8px; color: #8b8aa3; }
.kv .vitrage { display: block; border-radius: 4px; }
.kv dt:has(+ dd .vitrage), .kv dd:has(.vitrage) { align-self: center; }
.pp-acc-body .pp-verify { border-bottom: 0; padding-top: 6px; }

/* Consumer page: landing template */
.pp-landing { --pp-accent: #3b82f6; }
.pp-hero img { width: 100%; display: block; max-height: 260px; object-fit: cover; }
.pp-buttons { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 14px; }
.pp-btn.primary { background: var(--pp-accent, #3b82f6); border-color: var(--pp-accent, #3b82f6); color: #fff; margin-top: 0; text-decoration: none; }
.pp-btn.primary:hover { filter: brightness(1.08); background: var(--pp-accent, #3b82f6); }
.pp-btn.secondary { border-color: #d6d5e2; color: #2B295C; margin-top: 0; text-decoration: none; }
.pp-btn.secondary:hover { background: #f6f5fb; }
.pp-foot span { color: #8b8aa3; font-size: 11px; }

.pp-head .pp-head-spacer { width: 32px; }

.kv dt:has(+ dd .vitrage) { align-self: stretch; display: flex; align-items: center; }
