/* Kapyari Labs Product Photo Maker: clean, phone-first, same family as Cinematic Studio. Few boxes, hairline separators. */
html { background: #000; color-scheme: dark; }
html::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.82), rgba(0,0,0,.92)), url("/assets/space-bg.webp?v=20260923") center / cover no-repeat, #000; filter: grayscale(1); }
body.pp { margin: 0; background: transparent !important; color: #f5f5f7; font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.pp { --acc: #e9c99b; --acc2: #c99a5b; --mut: #a1a1a6; --dim: #6e6e73; --line: rgba(255,255,255,.1); --card: #121214;
  --ease: cubic-bezier(.22,1,.36,1); --display: Outfit, Inter, system-ui, sans-serif; }
.pp *, .pp *::before, .pp *::after { box-sizing: border-box; }
.pp [hidden] { display: none !important; }
.pp-main svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-main h1, .pp-main h2, .pp-main h3 { margin: 0; font-family: var(--display); letter-spacing: -.03em; color: #f5f5f7; }
.pp-main em { font-style: normal; background: linear-gradient(100deg, #fff1db, var(--acc) 45%, var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-main button, .pp-main input { font: inherit; color: inherit; }
.pp-main a { color: var(--acc); text-decoration: none; font-weight: 600; }
.pp-main a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pp-main :is(a, button, input, label):focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.pp-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; overflow-x: clip; }

/* Buttons */
.pp .pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: #fff; color: #000; font: 700 16px/1 Inter, sans-serif; cursor: pointer; transition: transform .25s var(--ease), opacity .2s; }
.pp-btn:active { transform: scale(.97); }
.pp-btn svg { width: 19px; height: 19px; stroke-width: 2.3; }
.pp .pp-btn.ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pp-btn.wide { width: 100%; }
.pp-btn[disabled] { opacity: .35; cursor: not-allowed; }

/* Hero */
.pp-hero { text-align: center; padding: 30px 0 26px; }
.pp-kick { margin: 0 0 12px; color: var(--acc); font-size: 14px; font-weight: 700; }
.pp-hero h1 { font-size: clamp(36px, 9.5vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }
.pp-lead { max-width: 520px; margin: 16px auto 0; color: var(--mut); font-size: clamp(16px, 4.2vw, 19px); line-height: 1.5; font-weight: 500; }

/* Studio */
.pp-studio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.pp-studio > *, .pp-steps > * { min-width: 0; }
.pp-stage { display: grid; gap: 12px; }
.pp-frame { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.pp-backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 30%, rgba(255,255,255,.18), transparent 70%), radial-gradient(40% 8% at 50% 72%, rgba(0,0,0,.18), transparent 70%); }
.pp-backdrop.photo::after { display: none; }
.pp-backdrop, .pp-result { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bd, #222) center / cover no-repeat; transition: opacity .35s; }
.pp-result { z-index: 1; }
.pp-mine { position: absolute; z-index: 2; left: 14px; bottom: 14px; margin: 0; width: 28%; max-width: 150px; padding: 6px 6px 4px; border-radius: 14px; background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.pp-mine img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 9px; background: #1c1c1f; }
.pp-mine figcaption { padding: 4px 0 1px; font-size: 11px; font-weight: 600; color: #d4d4d8; text-align: center; }
.pp-tag { position: absolute; z-index: 2; right: 14px; top: 14px; margin: 0; padding: 7px 12px; border-radius: 999px; background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; font-weight: 600; }
.pp-making { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center;
  background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 14px; color: var(--mut); }
.pp-making b { color: #fff; font: 700 20px/1.2 var(--display); }
.pp-spin { width: 38px; height: 38px; margin-bottom: 6px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--acc); animation: ppSpin 1s linear infinite; }
@keyframes ppSpin { to { transform: rotate(360deg); } }
.pp-compare { justify-self: center; display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.07); }
.pp-compare button { min-height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--mut); font-weight: 600; font-size: 14px; cursor: pointer; }
.pp-compare button[aria-pressed=true] { background: #fff; color: #000; }
.pp-save { display: flex; gap: 8px; }
.pp-save #ppDownload { flex: 1; }

/* Steps: no boxes, hairlines between */
.pp-steps { display: grid; }
.pp-step { padding: 20px 0; border-top: 1px solid var(--line); }
.pp-step:first-child { border-top: 0; padding-top: 4px; }
.pp-step h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.pp-step h2 span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #000; font: 700 13px/1 Inter, sans-serif; }

.pp-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1.5px dashed rgba(255,255,255,.22); cursor: pointer; transition: border-color .2s, background .2s; }
.pp-drop:hover, .pp-drop.over { border-color: var(--acc); background: rgba(233,201,155,.05); }
.pp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pp-drop-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,.07) center / cover; color: var(--acc); }
.pp-drop-ic svg { width: 26px; height: 26px; }
.pp-drop.has .pp-drop-ic svg { display: none; }
.pp-drop-t { display: grid; gap: 3px; min-width: 0; }
.pp-drop-t b { font-size: 16px; font-weight: 600; }
.pp-drop-t small { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pp-input { width: 100%; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.2); border-radius: 0; background: none; font-size: 17px; transition: border-color .2s; }
.pp-input::placeholder { color: #5f5f66; }
.pp-input:focus { outline: none; border-bottom-color: var(--acc); }
.pp-hint { margin: 8px 0 0; color: var(--dim); font-size: 13px; }

.pp-rail { display: flex; gap: 12px; margin: 0 -20px; padding: 2px 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pp-rail::-webkit-scrollbar { display: none; }
.pp-card { flex: none; width: 132px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; scroll-snap-align: start; }
.pp-card i { display: block; aspect-ratio: 1; border-radius: 16px; background: var(--bd) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: box-shadow .2s, transform .3s var(--ease); }
.pp-card[aria-checked=true] i { box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff; }
.pp-card:hover i { transform: translateY(-2px); }
.pp-card b { display: block; margin-top: 9px; font-size: 14px; font-weight: 600; }
.pp-card small { display: block; margin-top: 2px; color: var(--dim); font-size: 12px; line-height: 1.35; }
.pp-card.sk { height: 180px; border-radius: 16px; background: linear-gradient(90deg, #141416, #1d1d20, #141416); background-size: 200% 100%; animation: ppSk 1.4s infinite; }
@keyframes ppSk { to { background-position: -200% 0; } }

.pp-go { padding-top: 8px; }
.pp-credit { margin: 12px 0 0; color: var(--mut); font-size: 13.5px; text-align: center; line-height: 1.5; }
.pp-status { margin: 6px 0 0; font-size: 14px; text-align: center; color: #d4d4d8; min-height: 1px; }
.pp-status.bad { color: #ff9b8f; }

@media (min-width: 900px) {
  .pp-hero { padding: 64px 0 40px; }
  .pp-studio { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 52px; }
  .pp-stage { position: sticky; top: 80px; }
  .pp-frame { border-radius: 26px; }
  .pp-rail { flex-wrap: wrap; margin: 0; padding: 2px 2px 8px; overflow: visible; }
  .pp-card { width: calc((100% - 36px) / 4); }
}

/* Lower sections: open text, no cards */
.pp-sec { padding: 90px 0 0; }
.pp-h2 { text-align: center; font-size: clamp(32px, 8vw, 54px); font-weight: 800; line-height: 1.05; }
.pp-how { display: grid; gap: 28px; max-width: 980px; margin: 40px auto 0; padding: 0; list-style: none; counter-reset: s; }
.pp-how li { display: grid; gap: 6px; padding-left: 52px; position: relative; counter-increment: s; }
.pp-how li::before { content: counter(s); position: absolute; left: 0; top: -4px; font: 800 38px/1 var(--display); color: var(--acc); }
.pp-how b { font: 700 19px/1.25 var(--display); }
.pp-how span { color: var(--mut); font-size: 15px; line-height: 1.55; }
@media (min-width: 760px) { .pp-how { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.pp-plan-list { max-width: 560px; margin: 34px auto 0; }
.pp-plan-list div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.pp-plan-list div:first-child { border-top: 1px solid var(--line); }
.pp-plan-list dt { font-weight: 600; }
.pp-plan-list dd { margin: 0; color: var(--mut); text-align: right; }
.pp-plan-links { display: flex; justify-content: center; gap: 26px; margin: 22px 0 0; }

.pp-qs { max-width: 760px; margin: 34px auto 0; }
.pp-qs details { border-bottom: 1px solid var(--line); }
.pp-qs details:first-child { border-top: 1px solid var(--line); }
.pp-qs summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.pp-qs summary::-webkit-details-marker { display: none; }
.pp-qs summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; color: var(--mut); transition: transform .25s var(--ease); }
.pp-qs details[open] summary::after { transform: rotate(45deg); }
.pp-qs p { margin: -6px 2px 20px; color: var(--mut); font-size: 15px; line-height: 1.6; }

.pp-seo { max-width: 760px; margin: 0 auto; padding-bottom: 110px; text-align: center; }
.pp-seo h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pp-seo p { color: var(--dim); font-size: 14px; line-height: 1.7; }
.pp-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 18px; }

.pp-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 999px;
  background: #fff; color: #000; font: 600 14px/1.3 Inter, sans-serif; text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.pp-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .pp *, .pp *::before, .pp *::after { animation: none !important; transition: none !important; } }

/* Live placement canvas (8 Oct rebuild) */
.pp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: default; }
.pp-frame.can-drag .pp-canvas { cursor: grab; }
.pp-frame.dragging .pp-canvas { cursor: grabbing; }
.pp-fit { display: grid; justify-items: center; gap: 6px; }
.pp-drag { margin: 0; color: var(--dim); font-size: 13px; }
.pp-size { display: flex; align-items: center; gap: 12px; width: min(420px, 100%); color: var(--dim); font-size: 12.5px; font-weight: 600; }
.pp-size input { flex: 1; accent-color: var(--acc); }
