/* pm-shared:start
 * PetMadeArt design system: tokens, base and shared components.
 * This block is mirrored byte-for-byte in static/public/site.css (create.petmadeart.com)
 * and wordpress/theme/petmadeart-v1/style.css (www.petmadeart.com) so both sites read
 * as one brand. tests/unit/test_design_system_contract.py fails if the copies drift.
 */
:root {
  /* Colour: gallery-neutral surfaces let the artwork lead; terracotta is the single action colour. */
  --pm-paper: #faf7f2;
  --pm-surface: #ffffff;
  --pm-sand: #f2ebe1;
  --pm-sand-deep: #e8ddcf;
  --pm-ink: #211b17;
  --pm-ink-soft: #5c524a;
  --pm-line: #e2d8cb;
  --pm-line-strong: #c9b9a6;
  --pm-accent: #974634;
  --pm-accent-strong: #7a3526;
  --pm-accent-tint: #f6e8e2;
  --pm-sage: #3f5446;
  --pm-sage-tint: #e8eee8;
  --pm-error: #a12f28;
  --pm-error-tint: #fcecea;
  --pm-success: #2e6a48;
  --pm-success-tint: #e6f1ea;
  --pm-on-dark: #fbf8f3;

  /* Type: system serif for display, system sans for reading; no third-party font requests. */
  --pm-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --pm-font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pm-text-xs: 13px;
  --pm-text-sm: 14px;
  --pm-text-base: 16px;
  --pm-text-md: 18px;
  --pm-text-lg: 21px;
  --pm-text-xl: clamp(24px, 5.2vw, 30px);
  --pm-text-2xl: clamp(30px, 7vw, 42px);
  --pm-text-3xl: clamp(36px, 8.6vw, 60px);

  /* Space (4px base), shape, elevation and motion. */
  --pm-s-1: 4px;
  --pm-s-2: 8px;
  --pm-s-3: 12px;
  --pm-s-4: 16px;
  --pm-s-5: 20px;
  --pm-s-6: 24px;
  --pm-s-8: 32px;
  --pm-s-10: 40px;
  --pm-s-12: 48px;
  --pm-s-16: 64px;
  --pm-s-24: 96px;
  --pm-radius-sm: 8px;
  --pm-radius-md: 12px;
  --pm-radius-lg: 18px;
  --pm-radius-art: 2px;
  --pm-shadow-card: 0 1px 2px rgba(33, 27, 23, .04), 0 10px 28px -10px rgba(33, 27, 23, .12);
  --pm-shadow-art: 0 2px 4px rgba(33, 27, 23, .08), 0 22px 44px -16px rgba(33, 27, 23, .34);
  --pm-ease: cubic-bezier(.2, .7, .2, 1);
  --pm-duration: 180ms;
  --pm-max: 1160px;
  --pm-gutter: 16px;

  color-scheme: light;
  font-family: var(--pm-font-body);
  font-size: var(--pm-text-base);
  line-height: 1.55;
  color: var(--pm-ink);
  background: var(--pm-paper);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pm-paper); color: var(--pm-ink); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pm-accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ul, ol, dl, figure { margin-top: 0; }
h1, h2, h3 { color: var(--pm-ink); font-family: var(--pm-font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--pm-text-3xl); margin-bottom: var(--pm-s-4); }
h2 { font-size: var(--pm-text-2xl); margin-bottom: var(--pm-s-4); }
h3 { font-size: var(--pm-text-lg); margin-bottom: var(--pm-s-2); }
p { max-width: 66ch; }

.pm-shell { width: min(100% - 2 * var(--pm-gutter), var(--pm-max)); margin-inline: auto; }
.pm-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pm-skip-link { position: fixed; z-index: 50; left: var(--pm-s-4); top: var(--pm-s-3); padding: var(--pm-s-2) var(--pm-s-4); border-radius: var(--pm-radius-sm); background: var(--pm-ink); color: var(--pm-on-dark); font-weight: 600; transform: translateY(-200%); }
.pm-skip-link:focus { transform: none; }
.pm-eyebrow { margin-bottom: var(--pm-s-2); color: var(--pm-accent); font-size: var(--pm-text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pm-lede { color: var(--pm-ink-soft); font-size: var(--pm-text-md); line-height: 1.5; }
.pm-muted { color: var(--pm-ink-soft); }
.pm-small { font-size: var(--pm-text-sm); }

/* Header and footer */
.pm-header { position: relative; z-index: 10; border-bottom: 1px solid var(--pm-line); background: rgba(250, 247, 242, .97); }
.pm-header__inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--pm-s-4); }
.pm-wordmark { display: inline-flex; min-height: 44px; align-items: center; color: var(--pm-ink); font: 600 23px/1 var(--pm-font-display); letter-spacing: -.01em; text-decoration: none; }
.pm-wordmark em { color: var(--pm-accent); font-style: italic; }
.pm-header__nav { display: flex; align-items: center; gap: var(--pm-s-6); }
.pm-header__link { min-height: 44px; display: none; align-items: center; color: var(--pm-ink-soft); font-size: var(--pm-text-sm); font-weight: 600; text-decoration: none; }
.pm-header__link:hover { color: var(--pm-ink); text-decoration: underline; }
.pm-header__note { color: var(--pm-ink-soft); font-size: var(--pm-text-xs); font-weight: 600; }
.pm-footer { margin-top: var(--pm-s-16); padding-block: var(--pm-s-10); border-top: 1px solid var(--pm-line); background: var(--pm-sand); color: var(--pm-ink-soft); font-size: var(--pm-text-sm); }
.pm-footer__inner { display: grid; gap: var(--pm-s-4); }
.pm-footer__brand strong { color: var(--pm-ink); font: 600 19px/1.2 var(--pm-font-display); }
.pm-footer__brand span { display: block; margin-top: var(--pm-s-1); }
.pm-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--pm-s-5); margin: 0; padding: 0; list-style: none; }
.pm-footer__links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--pm-ink); text-decoration-color: var(--pm-line-strong); text-underline-offset: 3px; }
.pm-footer__links a:hover { text-decoration-color: currentColor; }
.pm-footer__copy { max-width: none; margin: 0; padding-top: var(--pm-s-4); border-top: 1px solid var(--pm-line); font-size: var(--pm-text-xs); }

/* Buttons: one primary action per view; secondary is quiet. */
.pm-btn { min-height: 48px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; gap: var(--pm-s-2); border: 1px solid transparent; border-radius: var(--pm-radius-md); font: 650 var(--pm-text-base)/1.2 var(--pm-font-body); text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--pm-duration) var(--pm-ease), border-color var(--pm-duration) var(--pm-ease), box-shadow var(--pm-duration) var(--pm-ease); -webkit-tap-highlight-color: transparent; }
.pm-btn--primary { min-height: 54px; color: #fff; background: var(--pm-accent); box-shadow: 0 8px 18px -8px rgba(122, 53, 38, .55); }
.pm-btn--primary:hover { background: var(--pm-accent-strong); }
.pm-btn--primary:active { box-shadow: none; }
.pm-btn--secondary { color: var(--pm-ink); border-color: var(--pm-line-strong); background: var(--pm-surface); }
.pm-btn--secondary:hover { border-color: var(--pm-ink); }
.pm-btn--small { min-height: 44px; padding: 10px 16px; font-size: var(--pm-text-sm); }
.pm-btn--block { width: 100%; }
.pm-btn[aria-busy="true"], .pm-btn:disabled { opacity: .72; cursor: progress; }
.pm-btn__arrow { width: 16px; height: 16px; flex: 0 0 16px; }
.pm-text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--pm-accent-strong); font-weight: 650; }

/* Artwork: always shown like a hung print, with a thin mat and a soft wall shadow. */
.pm-art { position: relative; margin: 0; padding: clamp(6px, 1.6vw, 10px); border-radius: var(--pm-radius-art); background: var(--pm-surface); box-shadow: var(--pm-shadow-art); }
.pm-art img { width: 100%; height: auto; border-radius: 1px; background: var(--pm-sand); }
.pm-art--cover img { aspect-ratio: 4 / 5; object-fit: cover; }
.pm-caption { margin-top: var(--pm-s-3); color: var(--pm-ink-soft); font-size: var(--pm-text-xs); }
.pm-demo-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--pm-ink-soft); font-size: var(--pm-text-xs); }
.pm-demo-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pm-line-strong); }

/* Cards, facts, checklists, notices */
.pm-card { padding: var(--pm-s-6); border: 1px solid var(--pm-line); border-radius: var(--pm-radius-lg); background: var(--pm-surface); box-shadow: var(--pm-shadow-card); }
.pm-facts { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--pm-s-2) var(--pm-s-4); list-style: none; color: var(--pm-ink-soft); font-size: var(--pm-text-sm); font-weight: 600; }
.pm-checklist { margin: 0; padding: 0; display: grid; gap: var(--pm-s-3); list-style: none; }
.pm-checklist li, .pm-facts li { position: relative; padding-left: 24px; }
.pm-checklist li::before, .pm-facts li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 6px; height: 11px; border: solid var(--pm-sage); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pm-notice { margin-bottom: var(--pm-s-6); padding: var(--pm-s-4) var(--pm-s-5); border: 1px solid var(--pm-line); border-left-width: 4px; border-radius: var(--pm-radius-md); background: var(--pm-surface); }
.pm-notice h2 { margin-bottom: var(--pm-s-2); font: 700 var(--pm-text-md)/1.3 var(--pm-font-body); letter-spacing: 0; }
.pm-notice p:last-child, .pm-notice ul:last-child { margin-bottom: 0; }
.pm-notice--error { border-color: var(--pm-error); background: var(--pm-error-tint); }
.pm-notice--error a { color: var(--pm-error); font-weight: 650; }
.pm-notice--info { border-color: var(--pm-sage); background: var(--pm-sage-tint); }
.pm-notice--success { border-color: var(--pm-success); background: var(--pm-success-tint); }
.pm-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; background: var(--pm-accent-tint); color: var(--pm-accent-strong); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pm-badge--sage { background: var(--pm-sage-tint); color: var(--pm-sage); }

/* Price */
.pm-price { display: grid; gap: var(--pm-s-1); }
.pm-price__amount { font: 600 clamp(40px, 11vw, 54px)/1 var(--pm-font-display); letter-spacing: -.03em; }
.pm-price__note { color: var(--pm-ink); font-size: var(--pm-text-sm); font-weight: 650; }

/* Numbered steps */
.pm-steps { margin: 0; padding: 0; display: grid; gap: var(--pm-s-3); list-style: none; counter-reset: pm-step; }
.pm-steps > li { position: relative; padding: var(--pm-s-5) var(--pm-s-5) var(--pm-s-5) 68px; border: 1px solid var(--pm-line); border-radius: var(--pm-radius-lg); background: var(--pm-surface); }
.pm-steps > li::before { counter-increment: pm-step; content: counter(pm-step); position: absolute; left: var(--pm-s-5); top: var(--pm-s-5); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--pm-on-dark); background: var(--pm-sage); font-weight: 700; font-size: var(--pm-text-sm); }
.pm-steps h3 { margin-bottom: var(--pm-s-1); font: 700 var(--pm-text-base)/1.35 var(--pm-font-body); letter-spacing: 0; }
.pm-steps p { margin: 0; color: var(--pm-ink-soft); font-size: var(--pm-text-sm); }

/* FAQ disclosure */
.pm-faq { border-top: 1px solid var(--pm-line); }
.pm-faq details { border-bottom: 1px solid var(--pm-line); }
.pm-faq summary { min-height: 56px; padding-block: var(--pm-s-4); padding-right: 40px; position: relative; display: flex; align-items: center; font-weight: 650; list-style: none; cursor: pointer; }
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--pm-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--pm-duration) var(--pm-ease); }
.pm-faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.pm-faq details > :not(summary) { margin: 0 0 var(--pm-s-5); color: var(--pm-ink-soft); }

/* Style swatch cards (marketing gallery and the in-app chooser share this anatomy) */
.pm-style-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--pm-line); border-radius: var(--pm-radius-lg); background: var(--pm-surface); box-shadow: var(--pm-shadow-card); }
.pm-style-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--pm-sand); }
.pm-style-card__body { padding: var(--pm-s-3) var(--pm-s-4) var(--pm-s-4); display: grid; gap: var(--pm-s-1); }
.pm-style-card__name { margin: 0; font: 600 19px/1.15 var(--pm-font-display); }
.pm-style-card__desc { margin: 0; color: var(--pm-ink-soft); font-size: var(--pm-text-xs); line-height: 1.45; }

@media (min-width: 768px) {
  :root { --pm-gutter: 32px; }
  .pm-header__inner { min-height: 72px; }
  .pm-header__link { display: inline-flex; }
  .pm-footer__inner { grid-template-columns: auto 1fr; align-items: center; gap: var(--pm-s-5) var(--pm-s-8); }
  .pm-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--pm-s-5); }
  .pm-footer__copy { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* pm-shared:end */

/* Creation site layouts (create.petmadeart.com). Shared tokens and components are above. */
[hidden] { display: none !important; }
main:focus { outline: none; }
.pm-header__link--always { display: inline-flex; }

/* Landing */
.lp-hero { padding-block: var(--pm-s-8) var(--pm-s-12); display: grid; gap: var(--pm-s-10); align-items: center; }
.lp-hero h1 { max-width: 15ch; }
.lp-hero__price { margin: 0 0 var(--pm-s-5); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--pm-s-1) var(--pm-s-3); font-size: var(--pm-text-sm); font-weight: 650; }
.lp-hero__price strong { font: 600 28px/1 var(--pm-font-display); letter-spacing: -.02em; }
.lp-hero__cta { width: 100%; }
.lp-hero__facts { margin-top: var(--pm-s-4); }
.lp-hero__art { position: relative; width: 100%; max-width: 480px; margin-inline: auto; padding: var(--pm-s-2) var(--pm-s-2) var(--pm-s-10) 18%; }
.lp-hero__second { position: absolute; left: var(--pm-s-2); bottom: var(--pm-s-8); width: 36%; transform: rotate(-3deg); }
.lp-hero__tag { position: absolute; right: var(--pm-s-2); bottom: 0; margin: 0; }
.app-band { padding-block: var(--pm-s-12); background: var(--pm-sand); }
.app-section { padding-block: var(--pm-s-12) 0; }
.lp-style-grid { margin: var(--pm-s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pm-s-3); list-style: none; }
.lp-style-grid .pm-demo-tag { margin: 0; }
.lp-steps { margin-top: var(--pm-s-6); }
.lp-offer { display: grid; gap: var(--pm-s-6); }
.lp-offer h2 { font-size: var(--pm-text-xl); }
.lp-faq { max-width: 820px; }

/* Creation journey frame */
.app-flow { max-width: 720px; padding-block: var(--pm-s-5) var(--pm-s-12); }
.app-flow--wide { max-width: 1040px; }
.app-steps ol { margin: 0 0 var(--pm-s-6); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; counter-reset: none; }
.app-steps li { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--pm-ink-soft); font-size: 12px; font-weight: 650; text-align: center; }
.app-steps li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; border-radius: 2px; background: var(--pm-line); }
.app-steps li.is-done:not(:last-child)::after { background: var(--pm-sage); }
.app-steps__dot { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--pm-line-strong); border-radius: 50%; background: var(--pm-paper); font-size: 12px; }
.app-steps .is-current { color: var(--pm-ink); }
.app-steps .is-current .app-steps__dot { border-color: var(--pm-accent); background: var(--pm-accent); color: #fff; }
.app-steps .is-done .app-steps__dot { border-color: var(--pm-sage); background: var(--pm-sage); color: transparent; position: relative; }
.app-steps .is-done .app-steps__dot::before { content: ""; position: absolute; left: 9px; top: 5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.app-panel { padding: var(--pm-s-6) var(--pm-s-5); border: 1px solid var(--pm-line); border-radius: var(--pm-radius-lg); background: var(--pm-surface); box-shadow: var(--pm-shadow-card); }
.app-panel > h1, .app-status h1 { font-size: var(--pm-text-2xl); }
.app-panel--center { text-align: center; }
.app-panel--center .pm-lede, .app-panel--center p { margin-inline: auto; }
.app-actions { margin-top: var(--pm-s-6); display: grid; gap: var(--pm-s-3); }
.app-tips { margin-top: var(--pm-s-8); padding-top: var(--pm-s-6); border-top: 1px solid var(--pm-line); }
.app-tips h2 { font-size: var(--pm-text-lg); }
.app-privacy { margin: var(--pm-s-5) 0 0; padding: var(--pm-s-3) var(--pm-s-4); border-radius: var(--pm-radius-md); background: var(--pm-sage-tint); color: var(--pm-ink); font-size: var(--pm-text-sm); }
.app-advice { padding-left: 20px; color: var(--pm-ink); }
.app-advice li + li { margin-top: var(--pm-s-2); }

/* Upload */
.app-upload { margin-top: var(--pm-s-6); display: grid; gap: var(--pm-s-3); }
.app-offer { margin: var(--pm-s-4) 0 0; padding-left: 1.2rem; display: grid; gap: var(--pm-s-2); }
.consent-panel--inline { margin: var(--pm-s-4) 0 0; }
.privacy-settings { max-width: 72rem; margin: 1rem auto; font-size: .875rem; }
.privacy-settings > summary { width: fit-content; cursor: pointer; text-decoration: underline; padding: .5rem; }
.privacy-settings > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.app-dropzone { position: relative; border: 2px dashed var(--pm-line-strong); border-radius: var(--pm-radius-lg); background: var(--pm-paper); transition: border-color var(--pm-duration) var(--pm-ease), background-color var(--pm-duration) var(--pm-ease); }
.app-dropzone:hover { border-color: var(--pm-accent); background: var(--pm-accent-tint); }
.app-dropzone:focus-within { border-color: var(--pm-accent); outline: 3px solid var(--pm-accent); outline-offset: 3px; }
.app-dropzone.has-error { border-color: var(--pm-error); background: var(--pm-error-tint); }
.app-dropzone__label { min-height: 172px; padding: var(--pm-s-6) var(--pm-s-4); display: grid; place-content: center; justify-items: center; gap: var(--pm-s-1); text-align: center; cursor: pointer; }
.app-dropzone__icon { width: 44px; height: 44px; margin-bottom: var(--pm-s-2); padding: 8px; border-radius: 50%; background: var(--pm-surface); color: var(--pm-accent); box-shadow: var(--pm-shadow-card); }
.app-dropzone__title { font-size: var(--pm-text-md); font-weight: 700; }
.app-dropzone__hint { color: var(--pm-ink-soft); font-size: var(--pm-text-sm); }
.app-dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.app-dropzone__preview { margin: 0 var(--pm-s-4) var(--pm-s-4); padding: var(--pm-s-3); display: flex; align-items: center; gap: var(--pm-s-3); border-radius: var(--pm-radius-md); background: var(--pm-surface); text-align: left; overflow-wrap: anywhere; }
.app-dropzone__preview img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: var(--pm-radius-sm); object-fit: cover; }
.app-field-help { margin: 0; color: var(--pm-ink-soft); font-size: var(--pm-text-sm); }
.app-field-error { margin: 0; color: var(--pm-error); font-weight: 650; }
.app-upload .pm-btn { margin-top: var(--pm-s-2); }

/* Waiting indicators: honest, indeterminate, motion-reduced */
.app-working { width: 48px; height: 48px; margin: 0 auto var(--pm-s-5); }
.app-working span { display: block; width: 100%; height: 100%; border: 3px solid var(--pm-line); border-top-color: var(--pm-accent); border-radius: 50%; animation: pm-spin 1.1s linear infinite; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
.app-status { display: grid; gap: var(--pm-s-6); }
.app-status__canvas { position: relative; width: min(220px, 60%); aspect-ratio: 3 / 4; margin-inline: auto; overflow: hidden; border: 8px solid var(--pm-surface); background: linear-gradient(160deg, var(--pm-sand) 0%, var(--pm-sand-deep) 100%); box-shadow: var(--pm-shadow-art); }
.app-status__shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-100%); animation: pm-shine 2.4s var(--pm-ease) infinite; }
@keyframes pm-shine { to { transform: translateX(100%); } }
.app-status__copy { text-align: center; }
.app-status__copy .pm-lede, .app-status__copy p { margin-inline: auto; }
.app-status__again { margin: var(--pm-s-4) 0 0; text-align: center; }
.app-stage-list { max-width: 320px; margin: var(--pm-s-6) auto 0; padding: 0; display: grid; gap: var(--pm-s-3); list-style: none; text-align: left; }
.app-stage-list li { position: relative; padding-left: 32px; color: var(--pm-ink-soft); }
.app-stage-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border: 2px solid var(--pm-line-strong); border-radius: 50%; }
.app-stage-list .is-current { color: var(--pm-ink); font-weight: 650; }
.app-stage-list .is-current::before { border-color: var(--pm-accent); border-top-color: transparent; animation: pm-spin 1.1s linear infinite; }
.app-stage-list .is-done::before { border-color: var(--pm-sage); background: var(--pm-sage); }
.app-stage-list .is-done::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.app-result-mark { position: relative; width: 56px; height: 56px; margin: 0 auto var(--pm-s-4); border-radius: 50%; }
.app-result-mark--success { background: var(--pm-success); }
.app-result-mark--success::after { content: ""; position: absolute; left: 21px; top: 14px; width: 11px; height: 21px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.app-result-mark--stopped { background: var(--pm-sand-deep); }
.app-result-mark--stopped::after { content: ""; position: absolute; left: 17px; top: 26px; width: 22px; height: 4px; border-radius: 2px; background: var(--pm-ink-soft); }
.app-reference { margin: var(--pm-s-8) 0 0; padding-top: var(--pm-s-4); border-top: 1px solid var(--pm-line); font-size: var(--pm-text-xs); color: var(--pm-ink-soft); }
.app-reference dt { font-weight: 700; }
.app-reference dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.app-test-mode { margin: 0 auto var(--pm-s-4); max-width: 640px; padding: var(--pm-s-3) var(--pm-s-4); border: 1px dashed var(--pm-line-strong); border-radius: var(--pm-radius-md); background: var(--pm-surface); color: var(--pm-ink-soft); font-size: var(--pm-text-sm); text-align: center; }
.app-error-page .app-actions { margin-top: var(--pm-s-6); }

/* Style chooser */
.app-style__intro { max-width: 680px; }
.app-style__intro h1 { font-size: var(--pm-text-2xl); }
.app-source { margin: var(--pm-s-4) 0 var(--pm-s-6); padding: var(--pm-s-2); padding-right: var(--pm-s-4); display: inline-flex; align-items: center; gap: var(--pm-s-3); border: 1px solid var(--pm-line); border-radius: var(--pm-radius-md); background: var(--pm-surface); color: var(--pm-ink-soft); font-size: var(--pm-text-sm); }
.app-source img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: var(--pm-radius-sm); object-fit: cover; }
.app-style__fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.app-style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pm-s-3); }
.style-card { position: relative; transition: border-color var(--pm-duration) var(--pm-ease), box-shadow var(--pm-duration) var(--pm-ease); }
.style-card label { height: 100%; display: flex; flex-direction: column; cursor: pointer; }
.style-card .pm-style-card__body { flex: 1; align-content: start; }
.style-card .pm-badge { justify-self: start; margin-top: var(--pm-s-1); }
.app-style-card__head { display: flex; align-items: flex-start; gap: var(--pm-s-2); }
.app-style-card__head input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: var(--pm-accent); }
.style-card:hover { border-color: var(--pm-line-strong); }
.style-card:has(input:checked) { border-color: var(--pm-accent); box-shadow: 0 0 0 2px var(--pm-accent), var(--pm-shadow-card); }
.style-card:has(input:checked)::after { content: ""; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--pm-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 2px 6px rgba(33, 27, 23, .25); pointer-events: none; }
.style-card:has(input:focus-visible) { outline: 3px solid var(--pm-accent); outline-offset: 3px; }
.style-card.is-locked label { cursor: not-allowed; }
.style-card.is-locked img { filter: grayscale(.85); opacity: .6; }
.app-style-card__flag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--pm-sage); color: #fff; font-size: 12px; font-weight: 700; }
.app-style-card__state { color: var(--pm-ink-soft); font-size: 12px; font-weight: 650; }
.app-style-card__link { min-height: 44px; padding: 10px var(--pm-s-3); display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--pm-line); background: var(--pm-sage-tint); color: var(--pm-sage); font-size: var(--pm-text-xs); font-weight: 700; text-align: center; }
.app-style__demo { margin: var(--pm-s-4) 0 0; }
.app-sticky-bar { position: sticky; bottom: 0; z-index: 5; margin: var(--pm-s-6) calc(-1 * var(--pm-gutter)) 0; padding: var(--pm-s-3) var(--pm-gutter) calc(var(--pm-s-3) + env(safe-area-inset-bottom)); display: grid; gap: var(--pm-s-2); border-top: 1px solid var(--pm-line); background: rgba(250, 247, 242, .97); box-shadow: 0 -10px 24px -18px rgba(33, 27, 23, .35); }
.app-allowance { display: flex; align-items: center; gap: var(--pm-s-3); color: var(--pm-ink-soft); font-size: var(--pm-text-xs); line-height: 1.35; }
.app-allowance__dots { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.app-allowance__dots span { width: 10px; height: 10px; border: 2px solid var(--pm-sage); border-radius: 50%; }
.app-allowance__dots .is-used { background: var(--pm-sage); }

/* Preview review */
.app-review { display: grid; gap: var(--pm-s-5); }
.app-review__intro h1 { margin-bottom: 0; font-size: var(--pm-text-2xl); }
.app-review__art { width: 100%; max-width: 560px; justify-self: center; }
.app-review__caption { margin: 0; text-align: center; }
.app-review__actions { display: grid; gap: var(--pm-s-3); align-content: start; }
.app-review__actions h2 { margin-bottom: 0; font-size: var(--pm-text-xl); }
.app-review__actions p { margin-bottom: var(--pm-s-1); }
.app-review__facts { margin-top: var(--pm-s-2); font-size: var(--pm-text-sm); }
.app-alternatives { padding-top: var(--pm-s-6); border-top: 1px solid var(--pm-line); }
.app-alternatives h2 { font-size: var(--pm-text-xl); }
.app-alternatives__grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pm-s-3); list-style: none; }
.app-alternative { display: block; overflow: hidden; border: 1px solid var(--pm-line); border-radius: var(--pm-radius-md); background: var(--pm-surface); text-decoration: none; }
.app-alternative.is-current { border-color: var(--pm-accent); box-shadow: 0 0 0 2px var(--pm-accent); }
.app-alternative img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--pm-sand); }
.app-alternative > span { min-height: 44px; padding: var(--pm-s-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; text-align: center; }

/* Purchase */
.buy-intro { max-width: 720px; margin: 0 auto var(--pm-s-6); text-align: center; }
.buy-intro h1 { font-size: var(--pm-text-2xl); }
.buy-intro .pm-lede { margin-inline: auto; margin-bottom: 0; }
.buy-layout { display: grid; gap: var(--pm-s-6); align-items: start; }
.buy-visual { margin: 0; min-width: 0; }
.buy-visual__scene { overflow: hidden; border: 1px solid var(--pm-line); border-radius: var(--pm-radius-lg); background: var(--pm-sand); }
.buy-visual__scene img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.buy-visual .pm-caption { text-align: center; }
.buy-offer h2 { margin-bottom: 0; font-size: var(--pm-text-xl); }
.buy-offer__price { margin: var(--pm-s-4) 0 var(--pm-s-5); }
.buy-offer__story { margin-bottom: var(--pm-s-5); font-size: var(--pm-text-sm); }
.buy-offer__button { min-height: 58px; font-size: 17px; }
.buy-offer__decision { margin-bottom: var(--pm-s-5); }
.buy-offer__delivery { margin: var(--pm-s-3) 0 var(--pm-s-2); color: var(--pm-ink-soft); font-size: var(--pm-text-sm); text-align: center; }
.buy-offer__trust { margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; color: var(--pm-ink-soft); font-size: var(--pm-text-xs); list-style: none; text-align: center; }
.buy-offer__trust li::before { content: "\2713"; margin-right: 4px; color: var(--pm-accent); font-weight: 800; }
.buy-offer__trust a, .buy-offer__policies a { color: var(--pm-ink); }
.buy-offer__policies { margin: var(--pm-s-2) 0 0; font-size: var(--pm-text-xs); text-align: center; }
.buy-offer__secure { margin: var(--pm-s-3) 0 var(--pm-s-5); display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--pm-ink-soft); font-size: var(--pm-text-xs); text-align: center; }
.buy-offer__secure svg { flex: 0 0 14px; }
.buy-offer__list { padding-top: var(--pm-s-5); border-top: 1px solid var(--pm-line); grid-template-columns: 1fr 1fr; font-size: var(--pm-text-sm); }
.buy-offer__list:last-child { margin-bottom: 0; }
.buy-terms { margin-bottom: var(--pm-s-5); padding: var(--pm-s-4); border-radius: var(--pm-radius-md); background: var(--pm-paper); font-size: var(--pm-text-sm); }
.buy-terms h3 { margin-bottom: var(--pm-s-2); font-family: var(--pm-font-body); font-size: var(--pm-text-sm); font-weight: 700; }
.buy-terms ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--pm-s-2); }
.buy-terms strong { color: var(--pm-ink); }
.buy-offer__legal { margin-bottom: var(--pm-s-2); color: var(--pm-ink-soft); font-size: var(--pm-text-xs); text-align: center; }
.buy-offer__legal a { color: var(--pm-ink); }
.buy-offer__change { margin-bottom: var(--pm-s-4); text-align: center; }
.buy-support { margin-top: var(--pm-s-8); display: grid; gap: var(--pm-s-8); }
.buy-approved { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: var(--pm-s-5); align-items: center; }
.buy-approved h2 { font-size: var(--pm-text-xl); }
.buy-approved p:last-child { margin-bottom: 0; }
.buy-approved img { width: 104px; aspect-ratio: 3 / 4; object-fit: contain; border: 4px solid var(--pm-surface); box-shadow: var(--pm-shadow-art); background: var(--pm-sand); }
.buy-next h2 { font-size: var(--pm-text-xl); }
.buy-details summary { font-size: var(--pm-text-md); }
.buy-spec { margin: var(--pm-s-4) 0; }
.buy-spec div { padding-block: var(--pm-s-2); display: flex; justify-content: space-between; gap: var(--pm-s-4); border-bottom: 1px solid var(--pm-line); }
.buy-spec dt { color: var(--pm-ink); font-weight: 650; }
.buy-spec dd { margin: 0; text-align: right; }
.purchase-page .pm-footer, .creation-page .pm-footer { margin-top: var(--pm-s-8); }

@media (max-width: 380px) {
  .pm-wordmark { font-size: 20px; }
  .buy-offer__list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  /* Keep the price and order button within reach on phones. */
  .purchase-page .app-flow { padding-top: var(--pm-s-3); }
  .purchase-page .app-steps ol { margin-bottom: var(--pm-s-2); }
  .buy-intro { margin-bottom: var(--pm-s-2); }
  .buy-intro .pm-eyebrow { margin-bottom: 2px; }
  .buy-intro h1 { margin-bottom: 0; font-size: 23px; line-height: 1.12; }
  .buy-intro .pm-lede { display: none; }
  .buy-layout { gap: var(--pm-s-2); }
  .buy-visual__scene { max-width: 190px; margin-inline: auto; }
  .buy-visual .pm-caption { margin: 4px auto 0; max-width: 34ch; font-size: 12px; line-height: 1.25; }
  .buy-offer { padding: var(--pm-s-4); }
  .buy-offer > .pm-eyebrow { margin-bottom: 2px; }
  .buy-offer h2 { font-size: 21px; line-height: 1.15; }
  .buy-offer__price { margin: var(--pm-s-2) 0; }
  .buy-offer__decision { margin-bottom: var(--pm-s-4); }
}

@media (min-width: 768px) {
  .lp-hero { grid-template-columns: 1.05fr .95fr; gap: var(--pm-s-12); padding-block: var(--pm-s-16); }
  .lp-hero__cta { width: auto; min-width: 260px; }
  .lp-style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pm-s-5); }
  .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-offer { grid-template-columns: 1.2fr 1fr; align-items: center; padding: var(--pm-s-10); }
  .app-band { padding-block: var(--pm-s-16); }
  .app-section { padding-top: var(--pm-s-16); }
  .app-flow { padding-top: var(--pm-s-8); }
  .app-steps ol { max-width: 560px; margin-inline: auto; margin-bottom: var(--pm-s-8); font-size: 13px; }
  .app-steps li { font-size: 13px; }
  .app-panel { padding: var(--pm-s-10) var(--pm-s-12); }
  .app-actions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .app-style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pm-s-4); }
  .app-sticky-bar { position: static; margin-inline: 0; padding: var(--pm-s-4) var(--pm-s-5); grid-template-columns: 1fr auto; align-items: center; gap: var(--pm-s-6); border: 1px solid var(--pm-line); border-radius: var(--pm-radius-lg); background: var(--pm-surface); box-shadow: var(--pm-shadow-card); }
  .app-sticky-bar .pm-btn { width: auto; min-width: 260px; }
  .app-review { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); column-gap: var(--pm-s-12); row-gap: var(--pm-s-4); align-items: start; }
  .app-review__intro { grid-column: 1 / -1; }
  .app-review__art { grid-column: 1; grid-row: 2; }
  .app-review__caption { grid-column: 1; grid-row: 3; }
  .app-review__actions { grid-column: 2; grid-row: 2 / span 2; position: sticky; top: var(--pm-s-6); padding: var(--pm-s-8); border: 1px solid var(--pm-line); border-radius: var(--pm-radius-lg); background: var(--pm-surface); box-shadow: var(--pm-shadow-card); }
  .app-alternatives { grid-column: 1 / -1; }
  .app-alternatives__grid { grid-template-columns: repeat(3, 160px); }
  .buy-layout { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: var(--pm-s-10); }
  .buy-offer { padding: var(--pm-s-8); }
  .buy-support { grid-template-columns: 1fr 1fr; align-items: start; }
  .buy-details { grid-column: 1 / -1; }
}

/* Save My Portrait */
.app-save { margin-top: var(--pm-s-6); padding: var(--pm-s-5); border: 1px solid var(--pm-line); border-radius: var(--pm-radius-lg); background: var(--pm-paper); }
.app-save h2 { margin-bottom: var(--pm-s-2); font-size: var(--pm-text-lg); }
.app-save > p { color: var(--pm-ink-soft); }
.app-save__form { margin-top: var(--pm-s-4); display: grid; gap: var(--pm-s-2); }
.app-save__form .pm-btn { margin-top: var(--pm-s-2); }
.app-label { font-weight: 650; }
.app-input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--pm-line-strong); border-radius: var(--pm-radius-md); background: var(--pm-surface); color: var(--pm-ink); font: 400 16px/1.3 var(--pm-font-body); }
.app-input:focus-visible { border-color: var(--pm-accent); }
.app-input[aria-invalid="true"] { border-color: var(--pm-error); }
.app-email-capture { margin: var(--pm-s-6) 0; padding: var(--pm-s-5); display: grid; gap: var(--pm-s-2); border: 1px solid var(--pm-line); border-radius: var(--pm-radius-lg); background: var(--pm-paper); }
.app-email-capture h2 { margin-bottom: 0; font-size: var(--pm-text-xl); }
.app-sticky-bar--email { position: static; margin-inline: 0; }
.app-consent { margin-top: var(--pm-s-3); display: grid; grid-template-columns: 22px 1fr; gap: var(--pm-s-2); align-items: start; }
.app-consent input { width: 20px; height: 20px; accent-color: var(--pm-accent); }
.app-compare { grid-column: 1; grid-row: 2; min-width: 0; }
.app-compare__stage { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 8px solid var(--pm-surface); border-radius: var(--pm-radius-lg); background: var(--pm-sand); box-shadow: var(--pm-shadow-art); }
.app-compare__stage img { width: 100%; height: 100%; display: block; object-fit: cover; }
.app-compare__art { position: absolute; inset: 0; }
.app-compare__control { display: block; margin-top: var(--pm-s-4); font-weight: 650; }
.app-compare__range { width: 100%; min-height: 44px; accent-color: var(--pm-accent); }
.app-compare__labels { display: flex; justify-content: space-between; gap: var(--pm-s-4); color: var(--pm-ink-soft); font-size: var(--pm-text-sm); }
.app-compare__fallback { margin-top: var(--pm-s-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--pm-s-3); }
.app-compare__fallback figure { margin: 0; }
.app-compare__fallback img { width: 100%; height: auto; }
.app-inbox-facts { margin: var(--pm-s-5) auto 0; max-width: 34ch; text-align: left; }
.app-collection { margin-top: var(--pm-s-8); }
.app-collection__head { margin-bottom: var(--pm-s-4); }
.app-collection__head h2 { margin-bottom: var(--pm-s-1); font-size: var(--pm-text-xl); }
.app-collection__grid { margin: 0; padding: 0; display: grid; gap: var(--pm-s-5); list-style: none; }
.app-saved-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--pm-line); border-radius: var(--pm-radius-lg); background: var(--pm-surface); box-shadow: var(--pm-shadow-card); }
.app-saved-card .pm-art { margin: 0; border-radius: 0; }
.app-saved-card img { width: 100%; height: auto; display: block; }
.app-saved-card__body { padding: var(--pm-s-4); display: grid; gap: var(--pm-s-3); }
.app-saved-card__body h3 { margin: 0; }
.app-collection__more { margin-top: var(--pm-s-4); }
.app-collection__privacy { margin-top: var(--pm-s-6); }
@media (min-width: 600px) {
  .app-collection__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
/* Project 3: explicit digital choices, truthful expiry, and equal consent controls. */
.portrait-expiry,.digital-offer,.digital-downloads,.consent-panel{border:1px solid var(--line,#d9d1c7);border-radius:1rem;background:#fffaf4;padding:1rem;margin-block:1rem}
.portrait-expiry h2,.digital-offer h3,.digital-downloads h2{font-size:clamp(1.05rem,3.8vw,1.35rem);margin:.15rem 0 .45rem}
.digital-option{display:flex;gap:.75rem;align-items:flex-start;padding:.8rem;border:1px solid var(--line,#d9d1c7);border-radius:.75rem;margin:.6rem 0;background:#fff;min-height:48px}
.digital-option input{margin-top:.25rem;inline-size:1.2rem;block-size:1.2rem}
.digital-option span{display:grid;gap:.2rem}.digital-option small{color:var(--muted,#655f59)}
.digital-portraits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:.5rem 0 1rem}
.digital-portraits label{display:grid;gap:.35rem;text-align:center}.digital-portraits img{width:100%;height:auto;border-radius:.5rem}
.digital-supply-acknowledgement{display:grid;grid-template-columns:1.35rem 1fr;gap:.7rem;align-items:start;margin:1rem 0;padding:.9rem;border:1px solid var(--line,#d9d1c7);border-radius:.75rem;background:#fffaf5;font-size:.92rem;line-height:1.45}
.digital-supply-acknowledgement input{inline-size:1.25rem;block-size:1.25rem;margin:.1rem 0 0;accent-color:var(--pm-accent)}
.consent-panel{position:relative;max-width:72rem;margin:1rem auto}.consent-panel form{display:flex;align-items:center;justify-content:space-between;gap:1rem}.consent-panel form p{margin:0}.consent-panel form div{display:flex;gap:.5rem;flex:0 0 auto}
@media(max-width:640px){.consent-panel form{display:grid}.consent-panel form div{display:grid;grid-template-columns:1fr 1fr}.digital-portraits{grid-template-columns:repeat(2,minmax(0,1fr))}}
