.lspq-app {
  --ink: #1e1d1b;
  --paper: #f6f3ed;
  --paper-deep: #ece6dc;
  --accent: #b76b45;
  --line: rgba(30, 29, 27, 0.16);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: clip;
  width: 100%;
  isolation: isolate;
}

.lspq-app *,
.lspq-app *::before,
.lspq-app *::after {
  box-sizing: border-box;
}

.lspq-app button {
  font: inherit;
  max-width: 100%;
}

.lspq-app img {
  height: auto;
  max-width: 100%;
}

.lspq-screen {
  background: var(--paper);
  min-height: min(800px, calc(100vh - 40px));
  overflow-x: clip;
  overflow-y: visible;
  padding: clamp(32px, 7vw, 92px);
  position: relative;
  width: 100%;
}

.lspq-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.lspq-button,
.lspq-text-button,
.lspq-back-button,
.lspq-answer {
  cursor: pointer;
}

.lspq-button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.14em;
  min-height: 54px;
  padding: 16px 28px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lspq-button:hover {
  transform: translateY(-2px);
}

.lspq-button:focus-visible,
.lspq-answer:focus-visible,
.lspq-back-button:focus-visible,
.lspq-text-button:focus-visible {
  outline: 3px solid rgba(183, 107, 69, 0.45);
  outline-offset: 3px;
}

.lspq-button-primary {
  background: var(--ink);
  color: #fff;
}

.lspq-landing {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(30px, 6vw, 100px);
}

.lspq-landing-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.lspq-hero-title,
.lspq-display-title,
.lspq-result-archetype,
.lspq-sofa-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.94;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.lspq-hero-title {
  font-size: clamp(52px, 7vw, 104px);
  letter-spacing: -0.055em;
  max-width: 820px;
}

.lspq-lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2vw, 31px);
  margin: 34px 0 12px;
}

.lspq-copy {
  font-size: 15px;
  max-width: 580px;
  opacity: 0.75;
  margin: 0 0 30px;
}

.lspq-microcopy {
  font-size: 12px;
  margin: 13px 0 0;
  opacity: 0.6;
}

.lspq-sofa-collage {
  height: min(620px, 68vw);
  min-height: 420px;
  position: relative;
}

.lspq-mini-sofa {
  background: linear-gradient(135deg, var(--tone-a), var(--tone-b));
  border-radius: 18px 18px 8px 8px;
  box-shadow: 0 18px 45px rgba(31, 27, 23, 0.17);
  height: 20%;
  position: absolute;
  transform: rotate(var(--rotation));
  width: 42%;
}

.lspq-mini-sofa::before {
  background: rgba(255,255,255,0.18);
  border-radius: 8px 8px 3px 3px;
  bottom: 12%;
  content: "";
  height: 42%;
  left: 8%;
  position: absolute;
  width: 84%;
}

.lspq-mini-sofa-1 { left: 4%; top: 8%; --rotation: -5deg; }
.lspq-mini-sofa-2 { right: 2%; top: 3%; --rotation: 6deg; }
.lspq-mini-sofa-3 { left: 27%; top: 30%; --rotation: 2deg; }
.lspq-mini-sofa-4 { left: 0; top: 56%; --rotation: 5deg; }
.lspq-mini-sofa-5 { right: 0; top: 54%; --rotation: -4deg; }
.lspq-mini-sofa-6 { left: 29%; bottom: 0; --rotation: -1deg; }

.lspq-intro,
.lspq-analyzing {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.lspq-display-title {
  font-size: clamp(50px, 8vw, 112px);
  letter-spacing: -0.05em;
  max-width: 1000px;
}

.lspq-intro-copy {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 27px);
  margin: 38px 0 34px;
}

.lspq-intro-copy p {
  margin: 4px 0;
}

.lspq-intro-emphasis {
  font-style: italic;
  padding-top: 16px;
}

.lspq-question-screen {
  margin: 0 auto;
  max-width: 1440px;
  text-align: left !important;
}

.lspq-question-screen .lspq-progress-row,
.lspq-question-screen .lspq-question-title,
.lspq-question-screen .lspq-answer-grid,
.lspq-question-screen .lspq-answer,
.lspq-question-screen .lspq-answer-label {
  text-align: left !important;
}

.lspq-progress-row {
  align-items: center;
  display: flex;
  gap: 20px;
  margin-bottom: clamp(38px, 6vw, 72px);
}

.lspq-progress-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  min-width: 52px;
}

.lspq-progress-track {
  background: rgba(30, 29, 27, 0.12);
  height: 2px;
  overflow: hidden;
  width: min(360px, 55vw);
}

.lspq-progress-bar {
  background: var(--ink);
  display: block;
  height: 100%;
  transition: width 280ms ease;
}

.lspq-question-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 clamp(34px, 5vw, 62px);
  max-width: 1000px;
}

.lspq-answer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lspq-answer {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  gap: 18px;
  min-height: 86px;
  min-width: 0;
  padding: 18px 22px;
  text-align: left;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lspq-answer:hover,
.lspq-answer.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.lspq-answer:disabled:not(.is-selected) {
  opacity: 0.45;
}

.lspq-answer-index {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 10px;
  height: 30px;
  justify-content: center;
}

.lspq-answer-label {
  display: block;
  flex: 1 1 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lspq-answer-score {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.lspq-selection-helper {
  font-size: 12px;
  margin: 20px 0 0;
  opacity: 0.65;
}

.lspq-question-navigation {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}

.lspq-navigation-spacer {
  min-width: 1px;
}

.lspq-next-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  transform: none;
}

.lspq-back-button,
.lspq-text-button {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 12px;
  margin-top: 0;
  opacity: 0.65;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lspq-orb {
  animation: lspq-pulse 1.5s ease-in-out infinite;
  background: conic-gradient(from 110deg, #c98362, #efe1cb, #7c8c84, #c98362);
  border-radius: 50%;
  filter: blur(1px);
  height: clamp(90px, 14vw, 160px);
  margin-bottom: 48px;
  width: clamp(90px, 14vw, 160px);
}

.lspq-analysis-status {
  font-size: 14px;
  margin-top: 35px;
  opacity: 0.7;
  transition: opacity 130ms ease;
}

.lspq-analysis-status.is-changing { opacity: 0; }

@keyframes lspq-pulse {
  0%, 100% { transform: scale(0.94) rotate(0deg); }
  50% { transform: scale(1.04) rotate(12deg); }
}

.lspq-result {
  padding: 0;
}

.lspq-result-header {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 760px;
  padding: clamp(58px, 9vw, 120px) clamp(25px, 7vw, 90px);
  text-align: center;
}

.lspq-result-archetype {
  font-size: clamp(62px, 10vw, 144px);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.lspq-result-description {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.8vw, 24px);
  margin: 42px auto 0;
  max-width: 730px;
}

.lspq-result-description p {
  margin: 8px 0;
}

.lspq-and-if {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 55px;
  text-transform: uppercase;
}

.lspq-product-reveal {
  background: var(--result-a);
  color: #fff;
  display: grid;
  grid-template-areas: "visual info";
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  isolation: isolate;
  min-height: 720px;
}

.lspq-product-placeholder {
  align-items: center;
  background: #f7f7f5;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  grid-area: visual;
  justify-content: center;
  min-height: 620px;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
  position: relative;
  width: 100%;
  z-index: 1;
}

.lspq-product-image {
  display: block !important;
  height: auto !important;
  max-height: 680px;
  max-width: 100% !important;
  object-fit: contain;
  object-position: center;
  opacity: 1 !important;
  padding: clamp(24px, 5vw, 72px);
  position: relative;
  visibility: visible !important;
  width: 100%;
  z-index: 2;
}

.lspq-product-image.has-load-error {
  opacity: 0 !important;
}

.lspq-placeholder-note {
  bottom: 22px;
  font-size: 10px;
  left: 24px;
  letter-spacing: 0.15em;
  opacity: 0.65;
  position: absolute;
  text-transform: uppercase;
}

.lspq-sofa-shape {
  height: min(300px, 36vw);
  position: relative;
  width: min(550px, 72%);
}

.lspq-sofa-shape span {
  background: rgba(255,255,255,0.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 25px 60px rgba(0,0,0,0.12);
  position: absolute;
}

.lspq-sofa-back {
  border-radius: 34px 34px 12px 12px;
  height: 53%;
  left: 9%;
  top: 5%;
  width: 82%;
}

.lspq-sofa-seat {
  border-radius: 14px 14px 24px 24px;
  bottom: 16%;
  height: 37%;
  left: 6%;
  width: 88%;
}

.lspq-sofa-arm {
  border-radius: 16px;
  bottom: 20%;
  height: 45%;
  width: 14%;
}

.lspq-sofa-arm-left { left: 0; }
.lspq-sofa-arm-right { right: 0; }
.lspq-sofa-leg {
  background: rgba(25,20,18,0.5) !important;
  bottom: 6%;
  height: 12%;
  width: 4%;
}
.lspq-sofa-leg-left { left: 15%; }
.lspq-sofa-leg-right { right: 15%; }

.lspq-product-info {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  grid-area: info;
  justify-content: center;
  min-width: 0;
  padding: clamp(48px, 7vw, 95px);
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

.lspq-sofa-name {
  font-size: clamp(62px, 8vw, 118px);
  letter-spacing: -0.055em;
}

.lspq-sofa-archetype {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 10px 0 45px;
  text-transform: uppercase;
}

.lspq-product-statement {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 41px);
  line-height: 1.12;
  margin: 0 0 22px;
}

.lspq-placeholder-copy {
  font-size: 13px;
  max-width: 480px;
  opacity: 0.72;
}

.lspq-button-light {
  background: #fff;
  color: var(--result-a);
  margin-top: 24px;
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

a.lspq-button-light,
a.lspq-button-light:link,
a.lspq-button-light:visited {
  cursor: pointer !important;
  display: inline-flex !important;
  pointer-events: auto !important;
  text-decoration: none !important;
}

.lspq-prototype-notice {
  border-left: 2px solid rgba(255,255,255,0.65);
  font-size: 12px;
  margin-top: 18px;
  max-width: 420px;
  padding-left: 12px;
}

.lspq-mix {
  margin: 0 auto;
  max-width: 940px;
  padding: clamp(70px, 10vw, 130px) clamp(25px, 6vw, 70px);
}

.lspq-mix-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.lspq-mix-subtitle {
  font-size: 16px;
  margin: 0;
  opacity: 0.75;
}

.lspq-bars {
  display: grid;
  gap: 22px;
  margin-top: 52px;
}

.lspq-bar-meta {
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.lspq-mix-track {
  background: rgba(30, 29, 27, 0.1);
  height: 7px;
}

.lspq-mix-fill {
  display: block;
  height: 100%;
}

.lspq-result-actions {
  align-items: center;
  background: var(--paper-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 25px;
}

.lspq-button-share {
  background: var(--ink);
  color: #fff;
  margin-bottom: 14px;
}

.lspq-button-share::before {
  border: 1.5px solid currentColor;
  border-radius: 7px;
  content: "";
  display: inline-block;
  height: 18px;
  margin-right: 10px;
  width: 18px;
}

.lspq-button-share:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.lspq-share-status {
  font-size: 12px;
  margin: 14px 0 0;
  max-width: 520px;
  min-height: 18px;
  opacity: 0.72;
  text-align: center;
}

.lspq-button-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.lspq-noscript {
  background: #fff5e8;
  border: 1px solid #e0b36d;
  padding: 16px;
}

@media (max-width: 850px) {
  .lspq-screen {
    min-height: calc(100svh - 16px);
    padding: 28px clamp(16px, 5vw, 24px) 40px;
  }

  .lspq-landing {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: flex-start;
  }

  .lspq-sofa-collage {
    height: clamp(180px, 52vw, 230px);
    min-height: 180px;
    order: -1;
    width: 100%;
  }

  .lspq-kicker {
    margin-bottom: 14px;
  }

  .lspq-hero-title {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: -0.045em;
    line-height: 0.95;
  }

  .lspq-lead {
    font-size: clamp(19px, 5.5vw, 25px);
    margin-top: 24px;
  }

  .lspq-copy {
    font-size: 14px;
    line-height: 1.55;
  }

  .lspq-display-title {
    font-size: clamp(40px, 13vw, 66px);
    line-height: 0.96;
  }

  .lspq-intro-copy {
    font-size: clamp(17px, 5vw, 22px);
    margin: 28px 0;
  }

  .lspq-progress-row {
    gap: 12px;
    margin-bottom: 30px;
  }

  .lspq-progress-track {
    flex: 1;
    width: auto;
  }

  .lspq-answer-grid {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .lspq-answer {
    gap: 12px;
    min-height: 62px;
    padding: 11px 13px;
  }

  .lspq-answer-score {
    white-space: normal;
  }

  .lspq-question-navigation {
    background: linear-gradient(to bottom, rgba(246,243,237,0), var(--paper) 24%);
    bottom: 0;
    padding-top: 22px;
    position: sticky;
    z-index: 3;
  }

  .lspq-question-title {
    font-size: clamp(30px, 8.8vw, 44px);
    line-height: 1.04;
    margin-bottom: 26px;
    overflow-wrap: anywhere;
  }

  .lspq-answer-label {
    font-size: clamp(15px, 4.2vw, 18px);
  }

  .lspq-back-button {
    margin-top: 18px;
  }

  .lspq-product-reveal {
    display: flex;
    flex-direction: column;
    grid-template-areas: none;
    min-height: 0;
  }

  .lspq-product-placeholder {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .lspq-product-image {
    height: 100%;
    max-height: none;
    object-fit: contain;
    padding: clamp(16px, 5vw, 28px);
    width: 100%;
  }

  .lspq-product-info {
    padding: 44px 20px 54px;
  }

  .lspq-result-header {
    min-height: 0;
    padding: 70px 18px;
  }

  .lspq-result-archetype {
    font-size: clamp(42px, 13vw, 64px);
    line-height: 0.94;
    overflow-wrap: anywhere;
  }

  .lspq-result-description {
    font-size: clamp(16px, 4.5vw, 20px);
    margin-top: 30px;
  }

  .lspq-and-if {
    line-height: 1.5;
    margin-top: 38px;
  }

  .lspq-sofa-name {
    font-size: clamp(48px, 15vw, 74px);
    line-height: 0.96;
  }

  .lspq-sofa-archetype {
    margin-bottom: 30px;
  }

  .lspq-product-statement {
    font-size: clamp(25px, 7.5vw, 34px);
  }

  .lspq-product-info .lspq-button {
    width: 100%;
  }

  .lspq-mix {
    padding: 58px 20px;
  }

  .lspq-mix-title {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .lspq-mix-subtitle {
    font-size: 15px;
    line-height: 1.55;
  }

  .lspq-bars {
    margin-top: 38px;
  }

  .lspq-result-actions {
    padding: 52px 20px;
  }

  .lspq-result-actions .lspq-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .lspq-screen {
    padding-left: 14px;
    padding-right: 14px;
  }

  .lspq-sofa-collage {
    height: 165px;
    min-height: 165px;
  }

  .lspq-hero-title {
    font-size: 38px;
  }

  .lspq-display-title {
    font-size: 40px;
  }

  .lspq-question-title {
    font-size: 29px;
  }

  .lspq-answer {
    padding: 10px 11px;
  }

  .lspq-answer-index {
    flex-basis: 27px;
    height: 27px;
  }

  .lspq-answer-label {
    font-size: 14px;
  }

  .lspq-result-archetype {
    font-size: 39px;
  }

  .lspq-product-info,
  .lspq-mix {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lspq-app *,
  .lspq-app *::before,
  .lspq-app *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
