/* PocketQuirk v1.3 commercial preview layer */

:root {
  --v13-warm-white: #fffdf8;
  --v13-butter: #f6dfa0;
  --v13-lilac: #ded1eb;
  --v13-plum: #35243f;
  --v13-plum-soft: #5a4566;
  --v13-line: rgba(53, 36, 63, 0.14);
  --v13-soft-shadow: 0 30px 90px rgba(53, 36, 63, 0.12);
}

main {
  overflow: clip;
}

.v13-section {
  padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}

.v13-section + .v13-section {
  border-top: 1px solid var(--v13-line);
}

.v13-section-compact {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.v13-hero {
  position: relative;
  min-height: calc(100svh - var(--header-height) - 2.4rem);
  display: grid;
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(246, 223, 160, 0.52), transparent 30rem),
    radial-gradient(circle at 10% 86%, rgba(222, 209, 235, 0.6), transparent 30rem),
    var(--pq-cream);
}

.v13-hero::after {
  position: absolute;
  right: -8rem;
  bottom: -9rem;
  width: 26rem;
  aspect-ratio: 1;
  border: 1px solid rgba(73, 51, 91, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.v13-hero-grid,
.v13-product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(29rem, 1.14fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.v13-copy {
  position: relative;
  z-index: 2;
}

.v13-copy h1 {
  max-width: 9.6ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.7rem, 8.2vw, 7.5rem);
}

.v13-copy .lede {
  max-width: 38rem;
}

.v13-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--pq-purple);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.v13-kicker::before {
  width: 1.8rem;
  height: 2px;
  background: var(--pq-yellow);
  content: "";
}

.v13-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.v13-hero-media,
.v13-product-hero-media {
  position: relative;
  min-width: 0;
}

.v13-media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--v13-line);
  border-radius: clamp(2rem, 5vw, 4.2rem);
  background: var(--v13-warm-white);
  box-shadow: var(--v13-soft-shadow);
}

.v13-media-frame::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  content: "";
  pointer-events: none;
}

.v13-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v13-hero-media .v13-media-frame {
  aspect-ratio: 1 / 1;
  transform: rotate(1.2deg);
}

.v13-product-hero-media .v13-media-frame {
  aspect-ratio: 1 / 1;
}

.studio-label,
.v13-state-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.8rem;
  border: 1px solid var(--v13-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--v13-plum);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.25;
}

.studio-label::before,
.v13-state-tag::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--pq-yellow);
  content: "";
}

.v13-hero-media .studio-label,
.v13-product-hero-media .studio-label {
  position: absolute;
  z-index: 4;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: calc(100% - 2.5rem);
}

.v13-orbit-badge {
  position: absolute;
  z-index: 4;
  top: -1rem;
  left: -1rem;
  display: grid;
  width: 7.2rem;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(-8deg);
  border-radius: 50%;
  background: var(--pq-yellow);
  color: var(--pq-purple-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.v13-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.7rem;
}

.v13-status-list .v13-state-tag:nth-child(2)::before {
  background: var(--pq-lavender);
}

.v13-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.58fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.v13-heading h2 {
  max-width: 14ch;
  margin-bottom: 0;
}

.v13-heading p {
  margin-bottom: 0;
  color: var(--pq-muted);
}

.v13-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}

.v13-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--v13-line);
  border-radius: 2.25rem;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 22px 60px rgba(53, 36, 63, 0.08);
}

.v13-product-card:nth-child(2) {
  transform: translateY(2rem);
}

.v13-card-media {
  position: relative;
  aspect-ratio: 1 / 0.9;
  overflow: hidden;
  background: var(--v13-warm-white);
}

.v13-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.72, 0.26, 1);
}

.v13-product-card:hover .v13-card-media img {
  transform: scale(1.035);
}

.v13-card-media .studio-label {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  justify-content: center;
  text-align: center;
}

.v13-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.v13-card-body h3,
.v13-card-body p {
  margin-bottom: 0;
}

.v13-card-body p {
  color: var(--pq-muted);
}

.v13-card-body .button {
  align-self: flex-start;
  margin-top: auto;
}

.v13-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.v13-chip {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: var(--pq-lavender);
  color: var(--pq-purple-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.v13-story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.v13-story-card {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  border: 1px solid var(--v13-line);
  border-radius: 2.25rem;
  background: var(--v13-warm-white);
  box-shadow: 0 20px 56px rgba(53, 36, 63, 0.08);
}

.v13-story-card.is-wide {
  grid-column: span 7;
  min-height: 34rem;
}

.v13-story-card.is-tall {
  grid-column: span 5;
  min-height: 34rem;
}

.v13-story-card.is-third {
  grid-column: span 4;
}

.v13-story-card.is-context {
  grid-column: 1 / -1;
  min-height: 34rem;
}

.v13-story-card picture,
.v13-story-card img {
  width: 100%;
  height: 100%;
}

.v13-story-card img {
  object-fit: cover;
}

.v13-story-caption {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 1.2rem;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(13px);
}

.v13-story-caption strong,
.v13-story-caption span {
  display: block;
}

.v13-story-caption span {
  margin-top: 0.25rem;
  color: var(--pq-muted);
  font-size: 0.8rem;
}

.v13-product-hero {
  padding: clamp(3rem, 7vw, 7rem) 0 clamp(4rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(246, 223, 160, 0.45), transparent 31rem),
    radial-gradient(circle at 0% 90%, rgba(222, 209, 235, 0.52), transparent 28rem),
    var(--pq-cream);
}

.v13-product-hero h1 {
  max-width: 10ch;
  margin-bottom: 1.3rem;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
}

.v13-fact-callout {
  margin-top: 1.7rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--pq-yellow);
  border-radius: 0 1.1rem 1.1rem 0;
  background: rgba(255, 253, 248, 0.7);
  color: var(--v13-plum-soft);
  font-size: 0.9rem;
}

.v13-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.v13-fact-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--v13-line);
  border-radius: 1.7rem;
  background: rgba(255, 253, 248, 0.78);
}

.v13-fact-card strong,
.v13-fact-card span {
  display: block;
}

.v13-fact-card strong {
  margin-bottom: 0.4rem;
  color: var(--pq-purple-dark);
}

.v13-fact-card span {
  color: var(--pq-muted);
  font-size: 0.9rem;
}

.v13-orbit-wrap,
.v13-lab-wrap {
  display: grid;
  gap: 1.5rem;
}

.v13-orbit-intro,
.v13-lab-intro {
  max-width: 48rem;
}

.v13-orbit-intro h2,
.v13-lab-intro h2 {
  margin-bottom: 1rem;
}

.v13-orbit-intro p,
.v13-lab-intro p {
  color: var(--pq-muted);
}

.pq-v13-disclosure,
.v13-fixed-disclosure {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--v13-line);
  border-radius: 1rem;
  background: rgba(255, 253, 248, 0.72);
  color: var(--pq-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.pq-v13-device > picture img {
  width: 100%;
  height: auto;
}

.pq-v13-lab-panel h2 {
  margin-bottom: 0;
}

.pq-v13-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pq-v13-profile-tabs button {
  padding: 0.65rem 0.9rem;
}

.pq-v13-profile-tabs button[aria-selected="true"] {
  border-color: var(--pq-purple);
  background: var(--pq-yellow);
}

.pq-v13-lab-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pq-v13-lab-actions button {
  flex: 0 0 auto;
  padding: 0.62rem 1rem;
}

.v13-boundary-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--v13-line);
  border-radius: 2.7rem;
  background:
    radial-gradient(circle at 95% 0%, rgba(246, 223, 160, 0.3), transparent 24rem),
    rgba(255, 253, 248, 0.77);
}

.v13-check-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v13-check-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--v13-line);
  border-radius: 1.2rem;
  background: rgba(255, 253, 248, 0.72);
  color: var(--pq-muted);
}

.v13-check-list li::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 1.35rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--pq-yellow);
  color: var(--pq-purple-dark);
  content: "·";
  font-weight: 900;
}

.v13-raw-references {
  margin-top: 2rem;
  border: 1px solid var(--v13-line);
  border-radius: 1.5rem;
  background: rgba(255, 253, 248, 0.65);
}

.v13-raw-references > summary {
  padding: 1rem 1.25rem;
  color: var(--pq-purple-dark);
  font-weight: 800;
  cursor: pointer;
}

.v13-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.v13-reference-grid figure {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--pq-white);
}

.v13-reference-grid picture {
  aspect-ratio: 1;
}

.v13-reference-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v13-reference-grid figcaption {
  padding: 0.7rem;
  color: var(--pq-muted);
  font-size: 0.75rem;
}

.v13-cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 2.8rem;
  background: var(--pq-purple-dark);
  color: var(--pq-white);
}

.v13-cta-panel::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 18rem;
  aspect-ratio: 1;
  border: 3rem solid rgba(246, 223, 160, 0.16);
  border-radius: 50%;
  content: "";
}

.v13-cta-panel h2,
.v13-cta-panel p {
  position: relative;
  z-index: 2;
  color: inherit;
}

.v13-cta-panel p {
  max-width: 48rem;
  margin-bottom: 0;
  color: rgba(255, 253, 249, 0.75);
}

.v13-cta-panel .button {
  position: relative;
  z-index: 2;
  background: var(--pq-yellow);
  color: var(--pq-purple-dark);
}

.v13-product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.v13-product-nav a {
  padding: 0.52rem 0.75rem;
  border: 1px solid var(--v13-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--pq-purple);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .v13-hero-grid,
  .v13-product-hero-grid,
  .v13-boundary-panel {
    grid-template-columns: 1fr;
  }

  .v13-hero {
    min-height: auto;
  }

  .v13-copy h1 {
    max-width: 12ch;
  }

  .v13-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v13-product-card:nth-child(2) {
    transform: none;
  }

  .v13-product-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 36rem);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .v13-heading,
  .v13-cta-panel {
    grid-template-columns: 1fr;
  }

  .v13-heading {
    align-items: start;
  }

  .v13-product-grid,
  .v13-fact-grid,
  .v13-reference-grid {
    grid-template-columns: 1fr;
  }

  .v13-product-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .v13-story-card.is-wide,
  .v13-story-card.is-tall,
  .v13-story-card.is-third,
  .v13-story-card.is-context {
    grid-column: 1 / -1;
    min-height: 27rem;
  }

  .v13-orbit-badge {
    top: -0.55rem;
    left: -0.35rem;
    width: 5.8rem;
    font-size: 0.61rem;
  }

  .pq-v13-lab-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pq-v13-lab-actions button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .v13-hero,
  .v13-product-hero {
    padding-top: 2.4rem;
    padding-bottom: 3rem;
  }

  .v13-hero-grid,
  .v13-product-hero-grid {
    gap: 1.6rem;
  }

  .v13-copy h1,
  .v13-product-hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .v13-actions .button {
    width: 100%;
    justify-content: center;
  }

  .v13-status-list {
    margin-top: 1rem;
  }

  .v13-product-hero .v13-product-nav {
    display: none;
  }

  .v13-product-hero .v13-fact-callout {
    margin-top: 1.1rem;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
  }

  .v13-hero-media .v13-media-frame,
  .v13-product-hero-media .v13-media-frame {
    aspect-ratio: 16 / 10;
  }

  .v13-hero-media .v13-media-frame img,
  .v13-product-hero-media .v13-media-frame img {
    object-position: center bottom;
  }

  .v13-hero-media .studio-label,
  .v13-product-hero-media .studio-label {
    right: 0.7rem;
    bottom: 0.7rem;
    max-width: calc(100% - 1.4rem);
    font-size: 0.62rem;
  }

  .v13-story-card.is-wide,
  .v13-story-card.is-tall,
  .v13-story-card.is-third,
  .v13-story-card.is-context {
    min-height: 22rem;
  }

  .v13-boundary-panel {
    padding: 1.35rem;
    border-radius: 2rem;
  }

  .v13-cta-panel {
    border-radius: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v13-product-card,
  .v13-product-card:hover .v13-card-media img,
  .v13-hero-media .v13-media-frame {
    transform: none;
    transition: none;
  }
}
