/* Quick try is a normal, scrollable page. All styling is isolated from the
   studio; no fixed panels, viewport-height locks, or photo-covering controls. */
body.quick-try-active {
  background-attachment: scroll;
}

body.quick-try-active .site-header {
  min-height: 76px;
  height: auto;
  padding-block: 14px;
}

body.quick-try-active .site-header .header-actions {
  width: auto;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

body.quick-try-active .site-header .header-demo,
#quick-try-open {
  min-width: 44px;
  min-height: 44px;
  font-size: 12px;
  color: #354b3a;
}

.quick-try {
  --quick-ink: #293d30;
  --quick-muted: #55634f;
  --quick-olive: #38533d;
  --quick-paper: #fffdf6;
  --quick-line: #c5cfbb;
  max-width: 1000px;
  margin: 0 auto;
  padding: 34px 0 max(26px, env(safe-area-inset-bottom));
  color: var(--quick-ink);
}

.quick-try [hidden] { display: none !important; }
.quick-try > *,
.quick-try .quick-try-stage > * { min-width: 0; }

.quick-try .quick-try-intro { margin: 0 0 24px; }
.quick-try .eyebrow {
  margin: 0 0 9px;
  color: var(--quick-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 1.4px;
}

.quick-try #quick-try-title {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 530;
  line-height: 1.08;
  letter-spacing: -1.7px;
  text-wrap: balance;
  scroll-margin-top: 18px;
}
.quick-try #quick-try-title span { color: #526c56; }

.quick-try .quick-try-copy {
  max-width: 60ch;
  margin: 12px 0 0;
  color: var(--quick-muted);
  font-size: 15px;
  line-height: 1.55;
}

.quick-try .quick-try-stage {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

.quick-try .quick-try-artwork {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin: 0;
}

.quick-try .quick-try-canvas-wrap {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5c5;
  border-radius: 20px;
  background: var(--quick-paper);
  box-shadow: 0 12px 36px #273a2510;
}

.quick-try #quick-try-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-width: 100%;
  object-fit: contain;
  border-radius: 13px;
  background: #f1ecdf;
}

.quick-try #quick-try-loading {
  margin: 12px 8px;
  color: var(--quick-muted);
  font-size: 13px;
  line-height: 1.5;
}

.quick-try #quick-try-retry {
  margin: 0 8px 8px;
  padding: 10px 14px;
  border: 1px solid var(--quick-olive);
  border-radius: 9px;
  background: #e8efdc;
  color: var(--quick-ink);
  font-size: 13px;
}

.quick-try #quick-try-caption {
  margin: 10px 2px 0;
  color: var(--quick-muted);
  font-size: 12px;
  line-height: 1.5;
}

.quick-try .quick-try-kicker {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.2px;
}
.quick-try .quick-try-looks + .quick-try-kicker { margin-top: 20px; }
.quick-try .quick-try-kicker + .quick-try-compare { margin-top: 0; }

.quick-try .quick-try-looks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.quick-try .quick-try-looks button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 9px;
  border: 1px solid #a7b39b;
  border-radius: 12px;
  background: var(--quick-paper);
  color: var(--quick-ink);
  text-align: left;
}

.quick-try .quick-try-looks strong {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.quick-try .quick-try-looks small {
  color: var(--quick-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.quick-try .quick-try-swatch {
  display: block;
  width: 100%;
  height: 44px;
  margin-bottom: 2px;
  border: 1px solid #aab29c;
  border-radius: 6px;
  background: #edf2e7;
}

.quick-try [data-quick-look="linen"] .quick-try-swatch {
  background: repeating-linear-gradient(0deg, #87785a12 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #87785a12 0 1px, transparent 1px 3px), #f3e5d3;
}

.quick-try [data-quick-look="pop"] .quick-try-swatch {
  background: repeating-radial-gradient(ellipse at 0 100%, #7898cc50 0 3px, #e7edf9 4px 12px);
}

.quick-try .quick-try-looks button[aria-pressed="true"] {
  border-color: var(--quick-olive);
  background: #e8efdc;
  box-shadow: inset 0 0 0 1px var(--quick-olive);
}

.quick-try .quick-try-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--quick-line);
  border-radius: 11px;
  background: #e9eddf;
}

.quick-try .quick-try-compare button {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #3e5038;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}

.quick-try .quick-try-compare button[aria-pressed="true"] {
  background: var(--quick-olive);
  color: #fffdf6;
  border-color: var(--quick-olive);
  box-shadow: 0 2px 5px #273a2510;
}

.quick-try #quick-try-note,
.quick-try #quick-try-status {
  margin: 12px 0 0;
  color: var(--quick-muted);
  font-size: 12px;
  line-height: 1.55;
}

.quick-try #quick-try-status { color: #38533d; }
.quick-try #quick-try-status:empty { margin: 0; }

.quick-try .quick-try-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.quick-try .quick-try-actions button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
}

.quick-try #quick-try-upload {
  background: var(--quick-olive);
  color: #fffdf6;
  border: 1px solid var(--quick-olive);
}

.quick-try #quick-try-skip {
  background: #fffdf6;
  color: #354b3a;
  border: 1px solid #a7b39b;
}

.quick-try .quick-try-footnote {
  margin: 10px 0 0;
  color: var(--quick-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* The welcome stays after the sample/actions. pip.css owns the compact fixed
   help avatar and its page clearance; these rules never change its position. */
.quick-try #quick-try-pip-slot { margin-top: 22px; }
.quick-try #quick-try-pip-slot:empty { display: none; }
.quick-try #pip-welcome-slot .pip-dock.pip-welcoming { margin: 0; }
.quick-try #pip-welcome-slot .pip-widget {
  padding: 12px 16px;
  gap: 12px;
  border-radius: 13px;
  background: #eef2e5;
  border-color: #c5cfbb;
  box-shadow: none;
}

.quick-try #pip-welcome-slot .pip-avatar,
.quick-try #pip-welcome-slot .pip-avatar svg { width: 48px; height: 48px; }
.quick-try #pip-welcome-slot .pip-avatar { flex: 0 0 48px; border-radius: 17px; }
.quick-try #pip-welcome-slot .pip-caption {
  font-size: 14px;
  margin: 0 0 4px;
  color: #304c38;
}
.quick-try #pip-welcome-slot .pip-message { font-size: 12px; line-height: 1.5; color: #435b43; }
.quick-try #pip-welcome-slot .pip-actions { gap: 6px 12px; margin-top: 7px; }
.quick-try #pip-welcome-slot :is(.pip-action, .pip-explore, .pip-dismiss, .pip-restore) {
  min-height: 44px;
  font-size: 12px;
  line-height: 1.4;
}
.quick-try #pip-welcome-slot .pip-dismiss { color: #435b43; }

/* Sound controls remain labelled and operable, without another hero card. */
.quick-try #quick-try-sound-slot .sound-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 142px;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  margin: 18px 0 0;
  border: 0;
  border-top: 1px solid #cbd3c1;
  border-radius: 0;
  background: transparent;
}
.quick-try #quick-try-sound-slot .sound-intro { min-width: 0; margin: 0; gap: 10px; }
.quick-try #quick-try-sound-slot .sound-symbol { color: #55634f; }
.quick-try #quick-try-sound-slot .sound-intro h2 { font-size: 13px; line-height: 1.4; }
.quick-try #quick-try-sound-slot .sound-intro p {
  max-width: 44ch;
  margin: 4px 0 0;
  color: #55634f;
  font-size: 12px;
  line-height: 1.5;
}
.quick-try #quick-try-sound-slot .sound-buttons { display: flex; min-width: 0; flex-wrap: wrap; gap: 0; }
.quick-try #quick-try-sound-slot .standard-clicks { display: none; }
.quick-try #quick-try-sound-slot #music-toggle {
  min-width: 138px;
  min-height: 44px;
  padding: 10px;
  gap: 8px;
  border-color: #a7b39b;
  background: #fffdf6;
  color: #354b3a;
  font-size: 12px;
}
.quick-try #quick-try-sound-slot #music-toggle[aria-pressed="true"] { background: #e8efdc; border-color: #6b8056; }
.quick-try #quick-try-sound-slot #music-state { font-size: 11px; line-height: 1.3; color: #3e5038; background: #eef2e5; }
.quick-try #quick-try-sound-slot .sound-volume { width: auto; min-width: 0; }
.quick-try #quick-try-sound-slot .sound-volume label { font-size: 12px; color: #43563c; margin: 0; gap: 6px; }
.quick-try #quick-try-sound-slot .sound-volume output { color: #43563c; font-size: 12px; }
.quick-try #quick-try-sound-slot #sound-volume { min-height: 44px; height: 44px; margin: 0; }

.quick-try button { min-height: 44px; min-width: 44px; touch-action: manipulation; }
.quick-try :is(button, input):focus-visible,
.quick-try #quick-try-title:focus-visible { outline: 3px solid #49623b; outline-offset: 4px; }

@media (hover: hover) {
  .quick-try .quick-try-looks button:hover { border-color: #38533d; background: #eef2e5; }
  .quick-try #quick-try-upload:hover { background: #283f2c; }
  .quick-try #quick-try-skip:hover { background: #eef2e5; }
  .quick-try .quick-try-compare button:not([aria-pressed="true"]):hover { background: #fffdf6; }
}

@media (max-width: 760px) {
  body.quick-try-active .site-header {
    min-height: 64px;
    gap: 10px;
    padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
    flex-wrap: wrap;
  }
  body.quick-try-active .site-header .header-actions { justify-content: flex-end; }
  body.quick-try-active main { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .quick-try { max-width: 440px; padding-top: 22px; }
  .quick-try .quick-try-intro { margin-bottom: 18px; }
  .quick-try #quick-try-title { max-width: 19ch; font-size: 32px; letter-spacing: -1.2px; }
  .quick-try .eyebrow { margin-bottom: 7px; font-size: 10px; letter-spacing: 1.1px; }
  .quick-try .quick-try-copy { margin-top: 9px; font-size: 14px; line-height: 1.5; }
  .quick-try .quick-try-stage { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .quick-try .quick-try-artwork { max-width: 280px; justify-self: center; }
  .quick-try .quick-try-canvas-wrap { padding: 5px; border-radius: 15px; }
  .quick-try #quick-try-canvas { border-radius: 10px; }
  .quick-try #quick-try-caption { margin-top: 7px; }
  .quick-try .quick-try-kicker { margin-bottom: 9px; font-size: 15px; }
  .quick-try .quick-try-looks + .quick-try-kicker { margin-top: 16px; }
  .quick-try .quick-try-looks { gap: 7px; }
  .quick-try .quick-try-looks button { padding: 8px; gap: 4px; border-radius: 10px; }
  .quick-try .quick-try-looks strong { font-size: 13px; }
  .quick-try .quick-try-swatch { height: 30px; }
  .quick-try .quick-try-compare { margin-top: 12px; }
  .quick-try .quick-try-actions { margin-top: 18px; gap: 8px; }
  .quick-try .quick-try-actions button { flex: 1 1 auto; padding: 11px 12px; font-size: 13px; }
  .quick-try #quick-try-pip-slot { margin-top: 20px; }
  .quick-try #pip-welcome-slot .pip-widget { padding: 12px; align-items: flex-start; }
  .quick-try #pip-welcome-slot .pip-bubble { min-width: 0; }
  .quick-try #quick-try-sound-slot .sound-controls { grid-template-columns: minmax(0, 1fr) 112px; gap: 10px 14px; }
  .quick-try #quick-try-sound-slot .sound-intro { grid-column: 1 / -1; }
  .quick-try #quick-try-sound-slot .sound-intro p { max-width: none; }
  .quick-try #quick-try-sound-slot #music-toggle { min-width: 0; width: 100%; flex: 1; }
  .quick-try #quick-try-sound-slot .sound-volume label,
  .quick-try #quick-try-sound-slot .sound-volume output { font-size: 11px; }
}

@media (max-width: 360px) {
  .quick-try { padding-top: 18px; }
  .quick-try #quick-try-title { font-size: 29px; letter-spacing: -1px; }
  .quick-try .quick-try-copy { font-size: 13px; }
  .quick-try .quick-try-looks { gap: 6px; }
  .quick-try .quick-try-looks button { padding: 7px; }
  .quick-try .quick-try-looks small { font-size: 11px; }
  .quick-try .quick-try-actions { flex-direction: column; align-items: stretch; }
  .quick-try #pip-welcome-slot .pip-actions { display: flex; flex-wrap: wrap; }
  .quick-try #quick-try-sound-slot .sound-controls { grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; }
  .quick-try #quick-try-sound-slot #music-toggle { padding: 9px 7px; gap: 5px; }
}

@media (max-width: 430px) {
  body.quick-try-active .site-header .header-actions {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}

/* Short phones bring named looks closer to the first photo view while keeping
   the image useful. Taller phones retain the generous 280px artwork above. */
@media (max-width: 430px) and (max-height: 740px) {
  .quick-try { padding-top: 16px; }
  .quick-try .quick-try-intro { margin-bottom: 14px; }
  .quick-try #quick-try-title { font-size: 29px; letter-spacing: -1px; }
  .quick-try .quick-try-copy { font-size: 13px; }
  .quick-try .quick-try-stage { gap: 13px; }
  .quick-try .quick-try-artwork { max-width: 220px; }
  .quick-try .quick-try-kicker { margin-bottom: 7px; font-size: 14px; }
  .quick-try .quick-try-looks button { padding: 7px; }
  .quick-try .quick-try-swatch { height: 22px; }
  .quick-try .quick-try-looks small { font-size: 11px; }
}

@media (max-width: 430px) and (max-height: 600px) {
  .quick-try .quick-try-artwork { max-width: 200px; }
}

/* Short landscapes stay in flow. The square sample reduces only in this
   orientation; it never consumes a fixed-height scrolling viewport. */
@media (min-width: 600px) and (max-height: 500px) {
  .quick-try { max-width: 900px; padding-top: 18px; }
  .quick-try .quick-try-intro { margin-bottom: 16px; }
  .quick-try #quick-try-title { max-width: none; font-size: 30px; }
  .quick-try .quick-try-stage { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .quick-try .quick-try-artwork { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .quick-try *, .quick-try *::before, .quick-try *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
