/* Paintpam Global — Scene Detail */

.pp-scene-hero {
  padding: var(--pp-space-5) 0 0;
}

.pp-scene-hero__breadcrumb {
  font-size: var(--pp-size-small);
  color: var(--pp-text-dim);
  margin-bottom: var(--pp-space-3);
}

.pp-scene-hero__breadcrumb a { color: var(--pp-text-muted); }
.pp-scene-hero__breadcrumb a:hover { color: var(--pp-accent); }

.pp-scene-hero__title {
  font-family: var(--pp-font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--pp-space-2);
}

.pp-scene-hero__sub {
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--pp-text-muted);
  max-width: 640px;
  margin-bottom: var(--pp-space-4);
}

.pp-scene-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--pp-space-4);
}

.pp-scene-media {
  aspect-ratio: 16 / 9;
  border-radius: var(--pp-radius-lg);
  overflow: hidden;
  margin-bottom: var(--pp-space-6);
  border: 1px solid var(--pp-border-soft);
  position: relative;
}

.pp-scene-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-space-5);
  margin-top: var(--pp-space-5);
}

@media (min-width: 1000px) {
  .pp-scene-layout {
    grid-template-columns: 1.6fr 1fr;
    gap: var(--pp-space-7);
  }
}

.pp-scene-body section { margin-bottom: var(--pp-space-6); }
.pp-scene-body h2 {
  font-size: 1.625rem;
  margin-bottom: var(--pp-space-2);
  font-weight: 500;
}
.pp-scene-body p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--pp-text-muted);
  margin-bottom: var(--pp-space-2);
}

.pp-compat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pp-space-2);
  margin-top: var(--pp-space-3);
}

@media (min-width: 700px) {
  .pp-compat { grid-template-columns: repeat(4, 1fr); }
}

.pp-compat__cell {
  padding: var(--pp-space-3);
  background: var(--pp-surface);
  border: 1px solid var(--pp-border-soft);
  border-radius: var(--pp-radius);
}

.pp-compat__cell h4 {
  font-size: var(--pp-size-micro);
  text-transform: uppercase;
  letter-spacing: var(--pp-tracking-wide);
  color: var(--pp-text-dim);
  margin-bottom: 8px;
}

.pp-compat__cell p {
  font-size: var(--pp-size-small);
  color: var(--pp-text);
  margin: 0;
  font-weight: 500;
}

.pp-specs {
  width: 100%;
  border-collapse: collapse;
}

.pp-specs tr { border-bottom: 1px solid var(--pp-border-soft); }
.pp-specs tr:last-child { border-bottom: none; }

.pp-specs th, .pp-specs td {
  padding: var(--pp-space-2) 0;
  text-align: left;
  font-size: var(--pp-size-small);
}

.pp-specs th {
  width: 40%;
  font-weight: 500;
  color: var(--pp-text-dim);
  text-transform: uppercase;
  letter-spacing: var(--pp-tracking-wide);
  font-size: var(--pp-size-micro);
}

.pp-specs td { color: var(--pp-text); }

/* Sticky sidebar form */
.pp-scene-form {
  position: sticky;
  top: calc(var(--pp-space-7) + 16px);
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  padding: var(--pp-space-4);
  align-self: start;
}

.pp-scene-form__head {
  padding-bottom: var(--pp-space-3);
  margin-bottom: var(--pp-space-3);
  border-bottom: 1px solid var(--pp-border-soft);
}

.pp-scene-form__head h3 {
  font-family: var(--pp-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pp-scene-form__head p {
  font-size: var(--pp-size-small);
  color: var(--pp-text-muted);
  margin: 0;
}

.pp-scene-form__delivery {
  margin-top: var(--pp-space-3);
  padding-top: var(--pp-space-3);
  border-top: 1px solid var(--pp-border-soft);
  font-size: var(--pp-size-micro);
  color: var(--pp-text-dim);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--pp-tracking-wide);
}

/* Use case row */
.pp-usage {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border-soft);
  border-radius: var(--pp-radius);
  padding: var(--pp-space-4);
}

.pp-usage ul li {
  display: flex;
  align-items: baseline;
  gap: var(--pp-space-2);
  padding: var(--pp-space-1) 0;
  font-size: var(--pp-size-small);
  color: var(--pp-text-muted);
}

.pp-usage ul li::before {
  content: "→";
  color: var(--pp-accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* ============================================================
 * User guide sections — Getting started · Make it yours · Need
 * Added Sprint 4.5 (2026-05-27)
 * ============================================================ */
.pp-guide {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border-soft);
  border-radius: var(--pp-radius);
  padding: var(--pp-space-5) var(--pp-space-4);
}

.pp-guide__lede {
  color: var(--pp-text-muted);
  font-size: var(--pp-size-small);
  margin-top: 0;
  margin-bottom: var(--pp-space-3);
}

.pp-guide__steps {
  list-style: decimal;
  padding-left: var(--pp-space-4);
  margin: 0 0 var(--pp-space-3);
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-2);
}

.pp-guide__steps li {
  font-size: var(--pp-size-small);
  color: var(--pp-text);
  line-height: 1.6;
  padding-left: var(--pp-space-1);
}

.pp-guide__steps li::marker {
  color: var(--pp-accent);
  font-weight: 600;
}

.pp-guide__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-2);
}

.pp-guide__bullets li {
  position: relative;
  padding-left: var(--pp-space-4);
  font-size: var(--pp-size-small);
  color: var(--pp-text);
  line-height: 1.6;
}

.pp-guide__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pp-accent);
}

.pp-guide__bullets li strong {
  color: var(--pp-text);
  font-weight: 600;
}

.pp-guide__note {
  margin-top: var(--pp-space-3);
  padding-top: var(--pp-space-3);
  border-top: 1px solid var(--pp-border-soft);
  color: var(--pp-text-muted);
  font-size: var(--pp-size-micro);
  line-height: 1.6;
}

.pp-guide code,
.pp-guide kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(245, 158, 11, 0.08);
  color: var(--pp-accent-soft, #FCD34D);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 1px 6px;
  border-radius: var(--pp-radius-sm);
  white-space: nowrap;
}

.pp-guide kbd {
  background: rgba(255, 255, 255, 0.04);
  color: var(--pp-text);
  border-color: var(--pp-border);
}

.pp-guide a {
  color: var(--pp-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.pp-guide a:hover { color: var(--pp-accent-soft, #FCD34D); }

/* Visual variants — subtle left-border accents for scannability */
.pp-guide--start    { border-left: 3px solid var(--pp-accent); }
.pp-guide--customize { border-left: 3px solid #8B5CF6; }   /* violet */
.pp-guide--need     { border-left: 3px solid #10B981; }    /* emerald */

/* ============================================================
 * Phase 0a — Beta Get aside + modal (Sprint 4.8, 2026-05-28)
 * Replaces pp-scene-buy during EXIMBAY pre-launch period.
 * ============================================================ */

/* Aside — replaces .pp-scene-buy during Phase 0a */
.pp-scene-get {
  position: sticky;
  top: calc(var(--pp-space-7) + 16px);
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  padding: var(--pp-space-5) var(--pp-space-4);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-3);
}

.pp-scene-get__head {
  display: flex;
  align-items: baseline;
  gap: var(--pp-space-2);
  padding-bottom: var(--pp-space-3);
  border-bottom: 1px solid var(--pp-border-soft);
}
.pp-scene-get__price {
  font-family: var(--pp-font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--pp-text);
}
.pp-scene-get__unit {
  font-size: var(--pp-size-micro);
  color: var(--pp-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--pp-tracking-wide);
}

.pp-scene-get__beta { display: flex; flex-direction: column; gap: var(--pp-space-2); }
.pp-scene-get__beta-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.12);
  color: var(--pp-accent-soft, #FCD34D);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: var(--pp-size-micro);
  font-weight: 600;
  letter-spacing: var(--pp-tracking-wide);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--pp-radius-sm);
}
.pp-scene-get__beta-lede {
  margin: 0;
  color: var(--pp-text);
  font-size: var(--pp-size-small);
  line-height: 1.5;
}

.pp-scene-get__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-2);
}
.pp-scene-get__bullets li {
  position: relative;
  padding-left: var(--pp-space-4);
  font-size: var(--pp-size-small);
  color: var(--pp-text-muted);
  line-height: 1.5;
}
.pp-scene-get__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pp-accent);
  font-weight: 700;
}

.pp-scene-get__cta {
  width: 100%;
  justify-content: center;
}

.pp-scene-get__note {
  margin: 0;
  padding-top: var(--pp-space-3);
  border-top: 1px solid var(--pp-border-soft);
  font-size: var(--pp-size-micro);
  color: var(--pp-text-dim);
  line-height: 1.5;
  font-style: italic;
}

/* ============================================================
 * Modal — survey overlay
 * ============================================================ */
.pp-modal {
  position: fixed;
  inset: 0;
  z-index: var(--pp-z-modal, 1000);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--pp-space-5) var(--pp-space-3);
  overflow-y: auto;
}
.pp-modal.is-open { display: flex; }
.pp-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pp-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow-overlay, 0 12px 40px -8px rgba(0, 0, 0, 0.6));
  margin: var(--pp-space-5) auto;
  padding: var(--pp-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-3);
}
.pp-modal__head {
  position: relative;
  padding-right: var(--pp-space-5);
  padding-bottom: var(--pp-space-3);
  border-bottom: 1px solid var(--pp-border-soft);
}
.pp-modal__head h3 {
  margin: 0 0 6px;
  font-family: var(--pp-font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--pp-text);
}
.pp-modal__sub {
  margin: 0;
  font-size: var(--pp-size-small);
  color: var(--pp-text-muted);
}
.pp-modal__close {
  position: absolute;
  top: -4px;
  right: -8px;
  background: transparent;
  border: 0;
  color: var(--pp-text-muted);
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition-property: background-color, color;
  transition-duration: 180ms;
}
.pp-modal__close:hover { background: rgba(255,255,255,0.06); color: var(--pp-text); }
.pp-modal__close:focus-visible {
  outline: 2px solid var(--pp-accent);
  outline-offset: 2px;
}

.pp-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-3);
}

/* [hidden] attribute must override display:flex on form + success view */
.pp-modal__form[hidden],
.pp-modal__success[hidden] {
  display: none !important;
}

/* Form fields */
.pp-form__field { display: flex; flex-direction: column; gap: 6px; }
.pp-form__field label {
  font-size: var(--pp-size-small);
  font-weight: 500;
  color: var(--pp-text);
}
.pp-form__req { color: var(--pp-accent); margin-left: 2px; }
.pp-form__opt {
  color: var(--pp-text-dim);
  font-weight: 400;
  font-size: var(--pp-size-micro);
  margin-left: 4px;
}
.pp-form__field input,
.pp-form__field select,
.pp-form__field textarea {
  background: rgba(0,0,0,0.25);
  color: var(--pp-text);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-sm);
  padding: 10px 12px;
  font-size: var(--pp-size-small);
  font-family: inherit;
  transition-property: border-color, background-color, box-shadow;
  transition-duration: 180ms;
}
.pp-form__field input::placeholder,
.pp-form__field textarea::placeholder { color: var(--pp-text-dim); }
.pp-form__field input:focus-visible,
.pp-form__field select:focus-visible,
.pp-form__field textarea:focus-visible {
  outline: none;
  border-color: var(--pp-accent);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.pp-form__field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--pp-text-muted) 50%),
    linear-gradient(135deg, var(--pp-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.pp-form__status {
  font-size: var(--pp-size-small);
  color: var(--pp-text-muted);
  min-height: 1.5em;
}
.pp-form__status.is-error { color: #EF4444; }

.pp-modal__actions {
  display: flex;
  gap: var(--pp-space-2);
  justify-content: flex-end;
  padding-top: var(--pp-space-2);
  border-top: 1px solid var(--pp-border-soft);
}

.pp-modal__legal {
  margin: 0;
  font-size: var(--pp-size-micro);
  color: var(--pp-text-dim);
  text-align: center;
}

.pp-modal__success {
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-3);
  align-items: center;
  text-align: center;
  padding: var(--pp-space-5) 0;
}
.pp-modal__success h3 {
  margin: 0;
  font-family: var(--pp-font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--pp-accent-soft, #FCD34D);
}
.pp-modal__success p {
  margin: 0;
  color: var(--pp-text);
  font-size: var(--pp-size-small);
  line-height: 1.6;
  max-width: 380px;
}

.pp-modal__success-note {
  color: var(--pp-text-muted) !important;
  font-size: var(--pp-size-micro) !important;
}

/* Mobile */
@media (max-width: 600px) {
  .pp-modal__dialog { padding: var(--pp-space-4); margin: var(--pp-space-3) auto; }
  .pp-modal__head h3 { font-size: 1.2rem; }
  .pp-modal__actions { flex-direction: column-reverse; }
  .pp-modal__actions .pp-btn { width: 100%; }
}
