/* ============================================================
   NG MARKETING — spielwiese.css
   Dunkles, mutigeres Theme für das interaktive Labor
============================================================ */

body.spielwiese-body { background: var(--eerie); color: var(--cloud); }

/* Header stays on a dark background for this entire page, so it needs the
   light-text treatment even before ".scrolled" kicks in. */
body.spielwiese-body .site-header:not(.scrolled) .logo,
body.spielwiese-body .site-header:not(.scrolled) .nav-link,
body.spielwiese-body .site-header:not(.scrolled) .nav-toggle span {
  color: var(--cloud);
}
body.spielwiese-body .site-header:not(.scrolled) .nav-toggle span {
  background: var(--cloud);
}
body.spielwiese-body .site-header:not(.scrolled) .lang-switch a {
  color: rgba(242, 242, 242, 0.6);
}
body.spielwiese-body .site-header:not(.scrolled) .lang-switch a.active {
  background: var(--cloud);
  color: var(--eerie);
}
body.spielwiese-body .site-header:not(.scrolled) .lang-toggle {
  color: var(--cloud);
  border-color: rgba(242, 242, 242, 0.25);
}
body.spielwiese-body .site-header.scrolled {
  background: rgba(26, 28, 30, 0.85);
  border-bottom-color: rgba(242, 242, 242, 0.1);
}
body.spielwiese-body .site-header.scrolled .logo,
body.spielwiese-body .site-header.scrolled .nav-link {
  color: var(--cloud);
}
body.spielwiese-body .site-header.scrolled .nav-link.active {
  color: var(--cloud);
}
body.spielwiese-body .site-header.scrolled .lang-toggle {
  color: var(--cloud);
  border-color: rgba(242, 242, 242, 0.25);
}
body.spielwiese-body .main-nav.open {
  background: var(--eerie);
}
body.spielwiese-body .main-nav.open .nav-link {
  color: rgba(242, 242, 242, 0.8);
}
.pg-hero { padding-block: 150px 30px; text-align: center; position: relative; overflow: hidden; }
.pg-hero .container { max-width: 700px; position: relative; z-index: 1; }
.pg-hero h1 { color: var(--cloud); }
.pg-hero p.lead { margin-top: 16px; color: rgba(242,242,242,.6); }

.pg-module {
  padding-block: 56px;
  border-top: 1px solid rgba(242, 242, 242, 0.1);
}
.pg-module:first-of-type { border-top: none; }
.pg-module-head { margin-bottom: 28px; }
.pg-module-head .why-number { color: var(--lemon); font-weight: 600; display: block; margin-bottom: 8px; }
.pg-module-head h2 { color: var(--cloud); margin-bottom: 6px; }
.pg-module-head p { max-width: 560px; font-size: 0.95rem; color: rgba(242, 242, 242, 0.6); }
.pg-hint { margin-top: 6px; font-size: 0.82rem; color: var(--violet-soft); }

.pg-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.pg-toggle {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(242, 242, 242, 0.15);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(242, 242, 242, 0.65);
  transition: all 0.2s;
}
.pg-toggle:hover { border-color: rgba(242,242,242,.4); color: var(--cloud); }
.pg-toggle.active { background: var(--lemon); border-color: var(--lemon); color: var(--eerie); }

/* --- 1. Cursor Studio ------------------------------------------------- */
.pg-cursor-area {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(242, 242, 242, 0.1);
  background: var(--eerie-soft);
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: none;
}
.pg-cursor-area::before {
  content: attr(data-explore-label);
  color: rgba(242, 242, 242, 0.35);
  font-size: 0.9rem;
  pointer-events: none;
}
.pg-cursor-mobile-note {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(242, 242, 242, 0.1);
  background: var(--eerie-soft);
  color: rgba(242, 242, 242, 0.55);
  font-size: 0.9rem;
  text-align: center;
  padding: 0 24px;
}
@media (any-pointer: fine) and (min-width: 640px) {
  .pg-cursor-area { display: flex; }
  .pg-cursor-mobile-note { display: none; }
}
.pg-cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.15s;
  opacity: 0;
}
.pg-cursor-dot.visible { opacity: 1; }
.pg-cursor-dot[data-style="default"] { width: 10px; height: 10px; background: var(--lemon); }
.pg-cursor-dot[data-style="circle"] { width: 70px; height: 70px; border: 2px solid var(--lemon); background: transparent; }
.pg-cursor-dot[data-style="magnet"] { width: 46px; height: 46px; background: rgba(132, 106, 255, 0.8); mix-blend-mode: difference; }
.pg-cursor-dot[data-style="spotlight"] { width: 220px; height: 220px; background: radial-gradient(circle, rgba(247,197,23,.35) 0%, transparent 70%); }
.pg-cursor-dot[data-style="trail"] { width: 6px; height: 6px; background: var(--lemon); box-shadow: 0 0 12px 4px rgba(247, 197, 23, 0.7); }
.pg-cursor-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* --- 2. Button Lab -------------------------------------------------- */
.pg-button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pg-button-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(242, 242, 242, 0.1);
  background: var(--eerie-soft);
  text-align: center;
}
.pg-button-cell p { font-size: 0.8rem; color: rgba(242, 242, 242, 0.55); }

.pg-btn-fill {
  position: relative;
  overflow: hidden;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--lemon);
  color: var(--lemon);
  font-weight: 500;
  font-size: 0.9rem;
}
.pg-btn-fill span { position: relative; z-index: 1; transition: color 0.3s; }
.pg-btn-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lemon);
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-out);
}
.pg-btn-fill:hover::before { transform: translateX(0); }
.pg-btn-fill:hover span { color: var(--eerie); }

.pg-btn-magnetic {
  padding: 13px 26px;
  border-radius: var(--radius-full);
  background: var(--lemon);
  color: var(--eerie);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s var(--ease-out);
}

.pg-btn-border {
  position: relative;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  color: var(--cloud);
  font-weight: 500;
  font-size: 0.9rem;
}
.pg-btn-border::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-full); border: 1px solid rgba(242,242,242,.25); }
.pg-btn-border::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 2px solid var(--lemon);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s var(--ease-out), opacity 0.2s;
}
.pg-btn-border:hover::after { opacity: 1; clip-path: inset(0 0 0 0); }

.pg-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  background: rgba(242, 242, 242, 0.1);
  color: var(--cloud);
  font-weight: 500;
  font-size: 0.9rem;
}
.pg-btn-icon svg { transition: transform 0.3s var(--ease-out); }
.pg-btn-icon:hover svg { transform: translate(3px, -3px); }

.pg-btn-glow {
  padding: 13px 26px;
  border-radius: var(--radius-full);
  background: var(--violet);
  color: var(--cloud);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 0 0 rgba(132, 106, 255, 0);
  transition: box-shadow 0.3s;
}
.pg-btn-glow:hover { box-shadow: 0 0 28px rgba(132, 106, 255, 0.7); }

/* --- 3. Card Interactions --------------------------------------------- */
.pg-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pg-card {
  height: 210px;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pg-card p { font-size: 0.82rem; }

.pg-card-tilt { background: var(--lemon); color: var(--eerie); will-change: transform; }
.pg-card-tilt span { font-weight: 700; }
.pg-card-tilt p { color: rgba(26, 28, 30, 0.78); }

.pg-flip-outer { perspective: 1000px; background: none; padding: 0; border: none; border-radius: var(--radius-lg); }
.pg-flip-outer:focus-visible { outline: 2px solid var(--lemon); outline-offset: 4px; }
.pg-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  transition: transform 0.6s var(--ease-out);
  transform-style: preserve-3d;
}
.pg-flip-outer.flipped .pg-flip-inner { transform: rotateY(180deg); }
.pg-flip-face {
  position: absolute;
  inset: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.pg-flip-face.front { background: var(--violet); align-items: flex-start; text-align: left; }
.pg-flip-label { font-size: 1.1rem; font-weight: 700; color: var(--cloud); }
.pg-flip-sublabel { font-size: 0.8rem; font-weight: 500; color: var(--cloud); opacity: 0.9; }
.pg-flip-face.front svg { margin-top: 8px; color: var(--cloud); }
.pg-flip-face.back {
  background: var(--eerie);
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pg-flip-face.back p { color: var(--cloud); font-size: 0.9rem; }

.pg-card-reveal { position: relative; background: var(--eerie-soft); overflow: hidden; padding: 0; cursor: pointer; }
.pg-card-reveal:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; }
.pg-card-reveal-icon { flex: 1; display: flex; align-items: center; justify-content: center; }
.pg-card-reveal-icon svg { position: static; width: 64px; height: 64px; color: rgba(242, 242, 242, 0.4); opacity: 1; }
.pg-card-reveal-hint {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(242, 242, 242, 0.7);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px dashed rgba(242, 242, 242, 0.35);
  transition: opacity 0.2s;
}
.pg-card-reveal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  background: var(--lemon);
  color: var(--eerie);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.pg-card-reveal-overlay span { font-weight: 700; color: var(--eerie); }
.pg-card-reveal-overlay p { color: rgba(26, 28, 30, 0.8); margin-top: 2px; }
.pg-card-reveal:hover .pg-card-reveal-overlay,
.pg-card-reveal:focus .pg-card-reveal-overlay,
.pg-card-reveal:focus-within .pg-card-reveal-overlay,
.pg-card-reveal.pg-revealed .pg-card-reveal-overlay { transform: translateY(0); }
.pg-card-reveal:hover .pg-card-reveal-hint,
.pg-card-reveal:focus .pg-card-reveal-hint,
.pg-card-reveal.pg-revealed .pg-card-reveal-hint { opacity: 0; }

/* --- 4. Bild-Scroll-Effekte --------------------------------------------- */
.pg-imgscroll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pg-imgscroll {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(242, 242, 242, 0.1);
  background: var(--eerie-soft);
  padding: 22px;
}
.pg-imgscroll-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--cloud); margin-bottom: 12px; }
.pg-imgscroll p { font-size: 0.8rem; color: rgba(242, 242, 242, 0.55); margin-top: 12px; }

.pg-compare-track--logo {
  position: relative;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--eerie);
  cursor: ew-resize;
  touch-action: none;
}
/* Both logos sit at the exact same fixed position/size — dragging the
   handle only clips the yellow "before" layer via clip-path, so the shape
   itself never shifts. It reads as one logo changing colour, not two
   separate images sliding past each other. */
.pg-compare-before,
.pg-compare-after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-compare-before {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.05s linear;
}
.pg-compare-logo { width: 56px; height: 56px; object-fit: contain; }
.pg-compare-caption {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.6);
}
.pg-compare-caption--before { left: 14px; }
.pg-compare-caption--after { right: 14px; }
.pg-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--lemon);
  pointer-events: none;
  transform: translateX(-50%);
}
.pg-compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lemon);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.pg-compare-grip-icon {
  width: 9px;
  height: 9px;
  color: var(--eerie);
}
.pg-compare-grip-icon:first-child { transform: rotate(90deg); }
.pg-compare-grip-icon:last-child { transform: rotate(-90deg); }
.pg-compare-range {
  width: 100%;
  margin-top: 14px;
  accent-color: var(--lemon);
  height: 22px;
  cursor: pointer;
}

.pg-imgscroll-mask,
.pg-imgscroll-textreveal {
  position: relative;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--eerie), var(--eerie-soft));
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-imgscroll-mask-logo {
  width: 60px;
  height: 60px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease-out);
}
.pg-imgscroll-mask-logo svg { position: static; width: 60px; height: 60px; color: var(--lemon); opacity: 1; }
.pg-imgscroll-mask.in-view .pg-imgscroll-mask-logo { clip-path: inset(0 0 0 0); }
/* Ambient shine sweep keeps the card feeling alive once revealed, instead
   of freezing into a static image. */
.pg-imgscroll-mask::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(247, 197, 23, 0.3), transparent);
  transform: translateX(-160%);
  pointer-events: none;
}
.pg-imgscroll-mask.in-view::after {
  animation: pg-shine 2.8s ease-in-out 1.1s infinite;
}
@keyframes pg-shine {
  0% { transform: translateX(-160%); }
  60%, 100% { transform: translateX(260%); }
}

.pg-imgscroll-textreveal { flex-direction: column; gap: 8px; padding: 16px; }
.pg-imgscroll-textreveal-logo {
  display: inline-flex;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.pg-imgscroll-textreveal-logo svg { position: static; width: 30px; height: 30px; color: var(--lemon); opacity: 1; }
.pg-imgscroll-textreveal-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cloud);
  text-align: center;
}
.pg-imgscroll-textreveal-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.pg-imgscroll-textreveal.in-view .pg-imgscroll-textreveal-logo,
.pg-imgscroll-textreveal.in-view .pg-imgscroll-textreveal-text span {
  opacity: 1;
  transform: translateY(0);
}
/* Gentle continuous pulse on the logo once revealed, so the card keeps
   moving instead of sitting static. */
.pg-imgscroll-textreveal.in-view .pg-imgscroll-textreveal-logo {
  animation: pg-textreveal-pulse 2.4s ease-in-out 0.6s infinite;
}
@keyframes pg-textreveal-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

/* --- 5. Animation Switcher -------------------------------------------- */
.pg-anim-demo {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(242, 242, 242, 0.1);
  background: var(--eerie-soft);
  padding: 28px 24px 24px;
}
.pg-anim-headline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cloud);
  margin-bottom: 18px;
}
.pg-anim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pg-anim-cell {
  height: 90px;
  border-radius: var(--radius-md);
  background: var(--violet);
  color: var(--cloud);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  font-family: inherit;
  padding: 0;
  width: 100%;
}
.pg-anim-icon svg { position: static; width: 34px; height: 34px; color: var(--cloud); opacity: 1; }
.pg-anim-caption { margin-top: 16px; font-size: 0.85rem; color: rgba(242, 242, 242, 0.6); }

/* Headline, Card, Button and Icon are all real, clickable buttons — every
   demo element gives hover/press feedback, not just the one labelled
   "Button". */
.pg-anim-headline,
.pg-anim-card,
.pg-anim-button,
.pg-anim-icon {
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, filter 0.2s;
  text-align: center;
}
.pg-anim-headline:hover,
.pg-anim-card:hover,
.pg-anim-button:hover,
.pg-anim-icon:hover {
  filter: brightness(1.12);
  box-shadow: 0 10px 24px rgba(132, 106, 255, 0.35);
}
.pg-anim-demo.pg-anim-preset-bold .pg-anim-headline:hover,
.pg-anim-demo.pg-anim-preset-bold .pg-anim-card:hover,
.pg-anim-demo.pg-anim-preset-bold .pg-anim-button:hover,
.pg-anim-demo.pg-anim-preset-bold .pg-anim-icon:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(132, 106, 255, 0.5);
}
.pg-anim-headline:active {
  transform: scale(0.97);
}
.pg-anim-card:active,
.pg-anim-button:active,
.pg-anim-icon:active {
  transform: scale(0.93);
}
.pg-anim-headline.pg-anim-clicked,
.pg-anim-card.pg-anim-clicked,
.pg-anim-button.pg-anim-clicked,
.pg-anim-icon.pg-anim-clicked {
  animation: pg-anim-click-press 0.35s var(--ease-out);
}
@keyframes pg-anim-click-press {
  0% { transform: scale(1); }
  40% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.pg-anim-cell.pg-anim-play,
.pg-anim-headline.pg-anim-play {
  animation-name: pg-anim-transform;
  animation-duration: var(--pg-anim-duration, .5s);
  animation-timing-function: var(--pg-anim-ease, ease-out);
  animation-fill-mode: both;
}
@keyframes pg-anim-transform {
  from {
    opacity: 0;
    transform: translateY(var(--pg-anim-distance, 20px)) scale(var(--pg-anim-scale, 1)) rotate(var(--pg-anim-rotate, 0deg));
  }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
.pg-anim-demo.pg-anim-clip-mode .pg-anim-cell.pg-anim-play,
.pg-anim-demo.pg-anim-clip-mode .pg-anim-headline.pg-anim-play {
  animation-name: pg-anim-clip;
}
@keyframes pg-anim-clip {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* --- 6. Website Studio --------------------------------------------------- */
.pg-studio {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}
.pg-studio-controls { display: flex; flex-direction: column; }
.pg-studio-group { margin-bottom: 22px; }
.pg-studio-group-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.5);
  margin-bottom: 10px;
}
.pg-studio-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pg-color-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(242, 242, 242, 0.14);
  background: var(--eerie-soft);
  font-size: 0.78rem;
  color: rgba(242, 242, 242, 0.75);
}
.pg-color-field input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.pg-color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.pg-color-field input[type="color"]::-webkit-color-swatch { border: 2px solid rgba(242, 242, 242, 0.35); border-radius: 50%; }
.pg-color-field input[type="color"]::-moz-color-swatch { border: 2px solid rgba(242, 242, 242, 0.35); border-radius: 50%; }

.pg-studio-warning {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(247, 197, 23, 0.14);
  border: 1px solid rgba(247, 197, 23, 0.45);
  color: var(--lemon);
  font-size: 0.8rem;
  font-weight: 500;
}
.pg-studio-warning[hidden] { display: none; }

.pg-studio-reset {
  margin-top: 4px;
  align-self: flex-start;
  color: var(--cloud);
  border-color: rgba(242, 242, 242, 0.22);
}
.pg-studio-reset:hover { border-color: rgba(242, 242, 242, 0.45); }

.pg-studio-preview-col { position: sticky; top: 100px; }
.pg-studio-disclaimer {
  margin-top: 28px;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(242, 242, 242, 0.45);
  max-width: 640px;
}

.pg-builder-field { margin-bottom: 18px; }
.pg-builder-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(242, 242, 242, 0.8);
  margin-bottom: 6px;
}
.pg-builder-field input,
.pg-builder-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(242, 242, 242, 0.18);
  background: var(--eerie-soft);
  color: var(--cloud);
}
.pg-builder-field[hidden] { display: none; }
.pg-builder-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-builder-preview-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.45);
  margin-bottom: 10px;
}

/* Preview building blocks */
.pg-builder-preview {
  min-height: 300px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  background: var(--studio-bg);
  color: var(--studio-text);
  border: 1px solid rgba(242, 242, 242, 0.08);
  border-radius: var(--radius-lg);
  transition: opacity 0.2s;
}
.pg-builder-preview .badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--studio-accent);
  color: var(--studio-bg);
  font-size: 0.78rem;
  font-weight: 600;
}
.pg-builder-preview h3 { font-size: 1.7rem; max-width: 420px; color: var(--studio-text); }
.pg-builder-preview [data-studio-cta-out] {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--studio-button);
  color: var(--studio-button-text);
  transition: transform 0.2s;
}
.pg-builder-preview [data-studio-cta-out]:hover { transform: translateY(-2px); }

.pg-preview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 6px;
}
.pg-preview-nav-logo { width: 26px; height: 20px; color: var(--studio-accent); display: inline-flex; }
.pg-preview-nav-logo svg { position: static; width: 100%; height: 100%; opacity: 1; }
.pg-preview-nav-links { display: flex; gap: 6px; }
.pg-preview-nav-links i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.35;
}
.pg-preview-sub { font-size: 0.95rem; opacity: 0.8; max-width: 380px; }
.pg-preview-card {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--studio-card-bg);
}
.pg-preview-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--studio-accent);
  color: var(--studio-bg);
  flex-shrink: 0;
}
.pg-preview-card-icon svg { width: 16px; height: 16px; }
.pg-preview-card span:last-child { font-size: 0.85rem; font-weight: 500; }

/* Style presets: layout / shape / shadow / typography / motion — colour stays user-controlled */
.pg-style-elegant { border-radius: 22px; }
.pg-style-elegant .pg-preview-card,
.pg-style-elegant [data-studio-cta-out] { border-radius: var(--radius-full); }
.pg-style-elegant h3 { font-weight: 300; letter-spacing: -0.01em; }

.pg-style-bold { border-radius: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.pg-style-bold h3 { font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.pg-style-bold .pg-preview-card,
.pg-style-bold [data-studio-cta-out] { border-radius: 6px; }

.pg-style-minimal { border-radius: 0; box-shadow: none; border-color: rgba(242, 242, 242, 0.18); }
.pg-style-minimal .pg-preview-card,
.pg-style-minimal [data-studio-cta-out] { border-radius: 2px; }
.pg-style-minimal h3 { font-weight: 400; }
.pg-style-minimal .badge { border-radius: 2px; }

.pg-style-playful { border-radius: 32px; }
.pg-style-playful .pg-preview-card { border-radius: 20px; transform: rotate(-1deg); }
.pg-style-playful [data-studio-cta-out] { border-radius: var(--radius-full); }
.pg-style-playful h3 { font-weight: 700; }

.pg-style-premium { border-radius: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.pg-style-premium .pg-preview-card,
.pg-style-premium [data-studio-cta-out] { border-radius: 4px; }
.pg-style-premium h3 { font-weight: 300; letter-spacing: 0.01em; }
.pg-style-premium .badge { letter-spacing: 0.12em; text-transform: uppercase; }

.pg-builder-preview.pg-style-anim { animation: pg-studio-switch 0.5s var(--ease-out); }
@keyframes pg-studio-switch {
  from { opacity: 0.4; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Accessibility ----------------------------------------------------- */
.pg-toggle:focus-visible,
.pg-btn-fill:focus-visible,
.pg-btn-magnetic:focus-visible,
.pg-btn-border:focus-visible,
.pg-btn-icon:focus-visible,
.pg-btn-glow:focus-visible,
.pg-card-tilt:focus-visible,
.pg-anim-headline:focus-visible,
.pg-anim-card:focus-visible,
.pg-anim-button:focus-visible,
.pg-anim-icon:focus-visible,
.pg-compare-range:focus-visible,
.pg-builder-field input:focus-visible,
.pg-builder-field select:focus-visible,
.pg-color-field input:focus-visible,
.pg-studio-reset:focus-visible {
  outline: 2px solid var(--lemon);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .pg-anim-cell.pg-anim-play,
  .pg-anim-headline.pg-anim-play,
  .pg-builder-preview.pg-style-anim,
  .pg-flip-inner,
  .pg-imgscroll-mask-logo,
  .pg-imgscroll-mask::after,
  .pg-imgscroll-textreveal-logo,
  .pg-imgscroll-textreveal-text span,
  .pg-anim-headline.pg-anim-clicked,
  .pg-anim-card.pg-anim-clicked,
  .pg-anim-button.pg-anim-clicked,
  .pg-anim-icon.pg-anim-clicked {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  .pg-imgscroll-mask-logo { clip-path: inset(0 0 0 0) !important; }
  .pg-imgscroll-mask::after { opacity: 0 !important; }
  .pg-imgscroll-textreveal-logo,
  .pg-imgscroll-textreveal-text span { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 960px) {
  .pg-button-grid { grid-template-columns: 1fr 1fr; }
  .pg-card-grid { grid-template-columns: 1fr 1fr; }
  .pg-imgscroll-grid { grid-template-columns: 1fr 1fr; }
  .pg-anim-grid { grid-template-columns: 1fr 1fr; }
  .pg-studio { grid-template-columns: 1fr; }
  .pg-studio-preview-col { position: static; }
}
@media (max-width: 640px) {
  .pg-button-grid { grid-template-columns: 1fr; }
  .pg-card-grid { grid-template-columns: 1fr; }
  .pg-imgscroll-grid { grid-template-columns: 1fr; }
  .pg-anim-grid { grid-template-columns: 1fr; }
  .pg-studio-colors { grid-template-columns: 1fr; }
}
