/* Self-serve tool surfaces (2026-08-14). House tokens only — the tool borrows
   the industry's CONVENTIONS (side-by-side before/after, pill pickers, staged
   progress: the VSAI/Collov pattern) but wears ProperPics' own design system.
   No JS anywhere in these styles; the pickers are pure CSS radio pills. */

.ss-wrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
.ss-head { display: flex; align-items: baseline; justify-content: space-between;
           flex-wrap: wrap; gap: 8px; }
.ss-balance { color: var(--ink-faint-2); }
.ss-balance strong { color: var(--accent); font-size: 1.15em; }

/* The three-step form card */
.ss-card { background: var(--bg-card); border-radius: var(--radius-lg);
           box-shadow: var(--shadow-card);
           padding: 20px 22px; margin: 18px 0; }
.ss-step { display: block; font-weight: 600; margin: 18px 0 8px; }
.ss-step:first-child { margin-top: 0; }
.ss-step .ss-n { display: inline-grid; place-items: center; width: 22px;
                 height: 22px; margin-right: 8px; border-radius: 50%;
                 background: var(--accent); color: var(--on-accent); font-size: var(--text-xs); }

/* Upload: a drop-zone-shaped label around the native input (no JS) */
.ss-drop { display: block; border: 2px dashed var(--accent-bright);
           border-radius: var(--radius-md); background: var(--accent-soft);
           padding: 22px; text-align: center; cursor: pointer; }
.ss-drop input[type=file] { display: block; margin: 0 auto; }
.ss-drop small { display: block; margin-top: var(--sp-2); color: var(--ink-faint); }

/* Pill pickers: radios styled as chips */
.ss-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-pills input[type=radio] { position: absolute; opacity: 0; }
.ss-pills label { padding: 7px 14px; border-radius: 999px; cursor: pointer;
                  background: var(--bg-inset); color: var(--ink);
                  border: 1px solid transparent; }
.ss-pills input[type=radio]:checked + label {
  background: var(--accent); color: var(--on-accent); }
.ss-pills input[type=radio]:focus-visible + label { box-shadow: var(--focus-ring); }

.ss-submit { margin-top: 20px; }

/* Packs as small cards with the per-photo rate visible */
.ss-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px; }
.ss-pack { background: var(--bg-card); border-radius: var(--radius-md);
           box-shadow: var(--shadow-card); padding: 14px;
           text-align: center; }
.ss-pack .ss-price { font-size: 1.4em; font-weight: 700; color: var(--accent); }
.ss-pack .ss-rate { color: var(--ink-faint-2); font-size: var(--text-sm); margin: 2px 0 var(--sp-2); }

/* Renders as a thumbnail grid */
.ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
           gap: 14px; }
.ss-tile { display: block; background: var(--bg-card); border-radius: var(--radius-md);
           box-shadow: var(--shadow-card); overflow: hidden;
           text-decoration: none; color: var(--ink); }
.ss-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ss-tile .ss-ph { display: grid; place-items: center; width: 100%;
                  aspect-ratio: 4 / 3; background: var(--bg-inset);
                  color: var(--ink-faint); }
.ss-tile figcaption { padding: 8px 10px; font-size: .9em; }
.ss-status { display: inline-block; padding: 2px 9px; border-radius: 999px;
             font-size: .78em; font-weight: 600; }
.ss-status.done { background: var(--pass-bg); color: var(--pass); }
.ss-status.pending { background: var(--accent-soft); color: var(--accent-strong); }
.ss-status.failed { background: var(--regen-bg); color: var(--regen); }

/* Result page: the side-by-side (the industry's before/after convention) */
.ss-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .ss-compare { grid-template-columns: 1fr; } }
.ss-compare figure { margin: 0; }
.ss-compare img { width: 100%; border-radius: var(--radius-md); display: block; }
.ss-compare figcaption { text-align: center; padding: var(--sp-2) 0 0;
                         color: var(--ink-faint-2); font-weight: 600; }

/* The wait state: a pure-CSS spinner under a staged-progress line */
.ss-working { text-align: center; padding: 40px 0; }
.ss-spinner { width: 42px; height: 42px; margin: 0 auto 14px;
              border-radius: 50%; border: 4px solid var(--accent-soft);
              border-top-color: var(--accent); animation: ss-spin 1s linear infinite; }
@keyframes ss-spin { to { transform: rotate(360deg); } }

/* The enquiry honeypot, hidden. landing.css defines this for the marketing
   pages; the teaser form lives on a selfserve.css page, and a VISIBLE honeypot
   is a trap for real people — they fill it and their signup is silently
   dropped. Found by screenshot, 2026-08-14. */
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
