.try-on-page,
.legal-page {
  background: var(--ivory);
}

.try-on-page.interior .site-nav,
.legal-page.interior .site-nav {
  position: fixed;
}

.try-on-main,
.legal-main {
  margin-top: var(--nav-h);
}

.try-on-page button,
.try-on-page input,
.try-on-page select {
  font: inherit;
}

.try-on-page button {
  cursor: pointer;
}

.try-on-page [hidden],
.legal-page [hidden] {
  display: none !important;
}

.try-on-page .nav-menu a.active,
.try-on-page .nav-menu a[aria-current="page"] {
  color: var(--bronze);
}

.try-on-page .nav-menu a.active::after,
.try-on-page .nav-menu a[aria-current="page"]::after {
  width: 100%;
}

.try-on-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(28, 25, 22, 0.98), rgba(42, 38, 34, 0.92)),
    var(--charcoal);
  color: var(--ivory);
}

.try-on-hero::before,
.try-on-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.try-on-hero::before {
  inset: 0 0 0 46%;
  opacity: 0.2;
  background:
    radial-gradient(circle at 20% 22%, var(--bronze-light) 0 5%, transparent 5.5%),
    radial-gradient(circle at 62% 58%, var(--bronze-light) 0 7%, transparent 7.5%);
  background-size: 170px 170px, 220px 220px;
  transform: rotate(-8deg) scale(1.2);
}

.try-on-hero::after {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -230px;
  border: 1px solid rgba(201, 171, 124, 0.38);
  border-radius: 50%;
}

.try-on-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  width: min(100% - (2 * var(--side-pad)), 1280px);
  min-height: 570px;
  margin: 0 auto;
  padding-block: clamp(72px, 9vw, 120px);
}

.try-on-kicker,
.try-on-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--bronze-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.try-on-kicker::before,
.try-on-eyebrow::before {
  width: 34px;
  height: 1px;
  content: "";
  background: currentColor;
}

.try-on-hero h1 {
  max-width: 770px;
  margin-bottom: 24px;
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.try-on-hero h1 em {
  color: var(--bronze-light);
  font-weight: 400;
}

.try-on-hero__lead {
  max-width: 650px;
  color: rgba(247, 243, 236, 0.72);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 300;
  line-height: 1.75;
}

.try-on-steps {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(247, 243, 236, 0.14);
  background: rgba(247, 243, 236, 0.14);
}

.try-on-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 22px;
  background: rgba(28, 25, 22, 0.88);
}

.try-on-step__number {
  color: var(--bronze-light);
  font-family: "Playfair Display", serif;
  font-size: 25px;
}

.try-on-step strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ivory);
  font-weight: 500;
}

.try-on-step span:last-child {
  color: rgba(247, 243, 236, 0.56);
  font-size: 13px;
  line-height: 1.55;
}

.try-on-shell {
  width: min(100% - (2 * var(--side-pad)), 1280px);
  margin: 0 auto;
  padding-block: clamp(56px, 8vw, 100px);
}

.try-on-alert {
  margin-bottom: 26px;
  padding: 14px 18px;
  border-left: 3px solid var(--bronze);
  background: var(--white);
  color: var(--charcoal-light);
  box-shadow: 0 10px 30px rgba(28, 25, 22, 0.06);
}

.try-on-alert[data-tone="error"] {
  border-left-color: #a54840;
  color: #7a302b;
}

.try-on-alert[data-tone="success"] {
  border-left-color: #56735e;
  color: #3e5b46;
}

.try-on-panel {
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--ivory-dark);
  background: var(--white);
  box-shadow: 0 18px 60px rgba(28, 25, 22, 0.06);
}

.try-on-panel + .try-on-panel,
.try-on-workspace > * + * {
  margin-top: 32px;
}

.try-on-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.try-on-panel h2,
.try-on-panel h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  line-height: 1.15;
}

.try-on-panel h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.try-on-panel h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.try-on-panel__intro {
  max-width: 720px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
}

.auth-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-account__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.auth-account__avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ivory-mid);
  color: var(--bronze);
  font-family: "Playfair Display", serif;
  font-size: 20px;
}

.auth-account__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-account__name,
.auth-account__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-account__name {
  color: var(--charcoal);
  font-weight: 500;
}

.auth-account__email {
  color: var(--text-secondary);
  font-size: 13px;
}

.try-on-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.try-on-button:hover:not(:disabled) {
  border-color: var(--bronze);
  background: var(--bronze);
  color: var(--charcoal);
  transform: translateY(-1px);
}

.try-on-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.try-on-button--secondary {
  border-color: var(--ivory-dark);
  background: transparent;
  color: var(--charcoal);
}

.try-on-button--danger {
  border-color: #a54840;
  background: transparent;
  color: #8d3832;
}

.google-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: #4285f4;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.consent-list {
  display: grid;
  gap: 14px;
  margin-block: 28px;
}

.consent-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--ivory-dark);
  background: var(--ivory);
}

.consent-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--bronze);
}

.consent-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--charcoal);
  font-weight: 500;
}

.consent-option span,
.consent-option p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

.consent-option a,
.try-on-fineprint a,
.legal-copy a {
  color: var(--charcoal);
  text-decoration-color: var(--bronze);
  text-underline-offset: 3px;
}

.research-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: -4px 0 24px 34px;
  padding: 22px;
  border-left: 2px solid var(--bronze-pale);
  background: rgba(237, 232, 223, 0.55);
}

.research-fields__intro {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  font-size: 13px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--charcoal-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field select,
.field input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--ivory-dark);
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
}

.try-on-fineprint {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.65;
}

.quota-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  background: var(--charcoal);
  color: var(--ivory);
}

.quota-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--bronze-light);
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 400;
}

.quota-card p {
  color: rgba(247, 243, 236, 0.62);
  font-size: 13px;
}

.quota-meter {
  display: flex;
  gap: 7px;
}

.quota-meter span {
  width: 26px;
  height: 7px;
  border: 1px solid rgba(247, 243, 236, 0.38);
  background: transparent;
}

.quota-meter span.is-available {
  border-color: var(--bronze-light);
  background: var(--bronze-light);
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pattern-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ivory-dark);
  background: var(--ivory);
  color: var(--charcoal);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pattern-card:hover,
.pattern-card[aria-pressed="true"] {
  border-color: var(--bronze);
  box-shadow: 0 12px 28px rgba(28, 25, 22, 0.1);
  transform: translateY(-2px);
}

.pattern-card[aria-pressed="true"]::after {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  content: "✓";
  place-items: center;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--ivory);
  font-weight: 600;
}

.pattern-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.16;
  object-fit: cover;
  background: var(--ivory-mid);
}

.pattern-card__fallback {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1.16;
  place-items: center;
  background:
    linear-gradient(45deg, transparent 46%, rgba(166, 135, 93, 0.28) 47% 53%, transparent 54%),
    var(--ivory-mid);
  color: var(--bronze);
  font-family: "Playfair Display", serif;
  font-size: 40px;
}

.pattern-card__body {
  display: block;
  padding: 13px;
}

.pattern-card__title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pattern-card__code {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pattern-selection-status {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 13px;
}

.pattern-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pattern-pagination button {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  padding: 8px;
  place-items: center;
  border: 1px solid var(--ivory-dark);
  background: var(--white);
  color: var(--charcoal);
}

.pattern-pagination button:hover:not(:disabled),
.pattern-pagination button[aria-current="page"] {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--ivory);
}

.pattern-pagination button:disabled {
  cursor: default;
  opacity: 0.45;
}

.try-on-loading,
.try-on-empty {
  padding: 34px;
  border: 1px dashed var(--ivory-dark);
  color: var(--text-secondary);
  text-align: center;
}

.room-builder {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
}

.upload-zone {
  display: grid;
  min-height: 330px;
  padding: 32px;
  place-items: center;
  border: 1px dashed var(--bronze);
  background: var(--ivory);
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.upload-zone.is-dragging {
  border-color: var(--charcoal);
  background: var(--ivory-mid);
}

.upload-zone__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--bronze-pale);
  border-radius: 50%;
  color: var(--bronze);
  font-size: 28px;
}

.upload-zone strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 400;
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.upload-zone label {
  margin-top: 20px;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.upload-zone input:focus-visible + label {
  outline: 3px solid var(--bronze-light);
  outline-offset: 3px;
}

.room-preview-wrap,
.result-media {
  position: relative;
  display: grid;
  min-height: 330px;
  overflow: hidden;
  place-items: center;
  background: var(--charcoal);
}

.room-preview-wrap img,
.result-media img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.room-preview-placeholder {
  max-width: 360px;
  padding: 32px;
  color: rgba(247, 243, 236, 0.58);
  text-align: center;
}

.room-file-name {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  word-break: break-word;
}

.generate-row,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.generation-status {
  color: var(--text-secondary);
  font-size: 13px;
}

.result-disclaimer {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 17px 19px;
  border: 1px solid #bb8140;
  border-left: 5px solid #a86120;
  background: #fff8e9;
  color: #38291b;
  box-shadow: 0 10px 28px rgba(94, 56, 22, 0.1);
}

.result-disclaimer__icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #8e4c17;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
}

.result-disclaimer > span:last-child {
  display: grid;
  gap: 4px;
  line-height: 1.5;
}

.result-disclaimer strong {
  color: #6f370e;
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.result-disclaimer small {
  color: #715b48;
  font-size: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--ivory-dark);
  background: var(--ivory);
}

.gallery-card__preview {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--charcoal);
  cursor: zoom-in;
}

.gallery-card__preview:disabled {
  cursor: wait;
}

.gallery-card__preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--charcoal);
  transition: transform 240ms ease, opacity 240ms ease;
}

.gallery-card__preview:not(:disabled):hover img,
.gallery-card__preview:not(:disabled):focus-visible img {
  transform: scale(1.025);
}

.gallery-card__preview:focus-visible,
.account-gallery-card__preview:focus-visible {
  outline: 3px solid var(--bronze-light);
  outline-offset: -3px;
}

.gallery-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.gallery-card__meta {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 11px;
}

.gallery-card__meta strong {
  display: block;
  overflow: hidden;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.gallery-card__delete,
.gallery-card__download {
  padding: 7px 9px;
  border: 1px solid var(--ivory-dark);
  background: transparent;
  color: var(--charcoal);
  font-size: 11px;
  text-transform: uppercase;
}

.gallery-card__delete { color: #8d3832; }
.gallery-card__download:disabled { cursor: wait; opacity: .5; }

.preferences {
  margin-top: 32px;
  border-top: 1px solid var(--ivory-dark);
  padding-top: 24px;
}

.preferences summary {
  cursor: pointer;
  color: var(--charcoal);
  font-weight: 500;
}

.preferences form {
  margin-top: 20px;
}

.legal-hero {
  padding: clamp(58px, 8vw, 100px) var(--side-pad);
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
}

.legal-hero p:first-child {
  margin-bottom: 14px;
  color: var(--bronze-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 400;
  line-height: 1.05;
}

.legal-hero p:last-child {
  margin-top: 18px;
  color: rgba(247, 243, 236, 0.6);
  font-size: 13px;
}

.legal-copy {
  width: min(100% - (2 * var(--side-pad)), 860px);
  margin: 0 auto;
  padding-block: clamp(56px, 8vw, 96px);
}

.legal-copy section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--ivory-dark);
}

.legal-copy h2 {
  margin-bottom: 16px;
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}

.legal-copy h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  font-weight: 500;
}

.legal-copy p,
.legal-copy li {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
}

.legal-copy p + p {
  margin-top: 14px;
}

.legal-copy ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0 22px;
}

.legal-callout {
  margin-block: 28px;
  padding: 22px 24px;
  border-left: 3px solid var(--bronze);
  background: var(--white);
}

.legal-callout strong {
  color: var(--charcoal);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-only:focus,
.sr-only:focus-visible {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 1000 !important;
  width: auto !important;
  height: auto !important;
  padding: 10px 14px !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 2px solid var(--bronze) !important;
  background: var(--white);
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
}

.try-on-page :focus-visible,
.legal-page :focus-visible {
  outline: 3px solid var(--bronze-light);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .try-on-hero__inner {
    grid-template-columns: 1fr 360px;
  }

  .pattern-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .try-on-hero__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .try-on-hero::before {
    inset: 30% -20% 0 20%;
  }

  .try-on-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .try-on-step {
    grid-template-columns: 1fr;
  }

  .pattern-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .room-builder {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .try-on-main,
  .legal-main {
    margin-top: 96px;
  }

  .try-on-hero__inner {
    min-height: auto;
  }

  .try-on-steps {
    grid-template-columns: 1fr;
  }

  .try-on-step {
    grid-template-columns: 42px 1fr;
  }

  .try-on-panel__header,
  .auth-account,
  .quota-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-fields {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

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

@media (max-width: 480px) {
  .try-on-hero h1 {
    font-size: 42px;
  }

  .try-on-panel {
    padding: 24px 18px;
  }

  .pattern-grid {
    gap: 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .try-on-button {
    width: 100%;
  }

  .generate-row,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .try-on-page *,
  .try-on-page *::before,
  .try-on-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Guided try-on experience */
.try-on-page {
  --try-on-ink: #17201d;
  --try-on-moss: #27322e;
  --try-on-gold: #c79b5d;
  --try-on-cloud: #f2eee7;
}

.try-on-hero {
  background:
    radial-gradient(circle at 18% 14%, rgba(199, 155, 93, 0.2), transparent 32%),
    linear-gradient(120deg, #131a18 0%, #25312d 100%);
}

.try-on-hero::before {
  display: none;
}

.try-on-hero__inner {
  grid-template-columns: minmax(440px, 0.9fr) minmax(620px, 1.1fr);
  gap: clamp(42px, 5vw, 72px);
  width: min(100% - (2 * var(--side-pad)), 1380px);
  min-height: min(720px, calc(100vh - var(--nav-h)));
  padding-block: clamp(58px, 6vw, 84px);
}

.try-on-hero__copy {
  position: relative;
  z-index: 2;
}

.try-on-kicker {
  gap: 10px;
}

.try-on-kicker::before {
  display: none;
}

.try-on-kicker__ai {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(247, 243, 236, 0.25);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(199, 155, 93, 0.28), rgba(102, 82, 217, 0.28));
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.try-on-hero h1 {
  max-width: 600px;
  font-size: clamp(46px, 4.5vw, 68px);
  line-height: 1.02;
  text-wrap: balance;
}

.try-on-hero h1 em {
  display: block;
  margin-top: 7px;
}

.try-on-hero__lead {
  max-width: 560px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
}

.try-on-hero__cta {
  margin-top: 30px;
  border-color: var(--try-on-gold);
  background: var(--try-on-gold);
  color: #151a18;
}

.hero-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  max-width: 520px;
  margin-top: 28px;
  list-style: none;
}

.hero-guide li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 243, 236, 0.68);
  font-size: 12px;
}

.hero-guide li span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(247, 243, 236, 0.28);
  border-radius: 50%;
  color: var(--bronze-light);
  font-size: 10px;
}

.before-after {
  min-width: 0;
  margin: 0;
}

.before-after__media {
  --compare: 52%;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(247, 243, 236, 0.2);
  border-radius: 4px;
  background: #d8d2ca;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
}

.before-after__before,
.before-after__after,
.before-after__after img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after__after {
  width: var(--compare);
  right: auto;
  overflow: hidden;
}

.before-after__after img {
  width: calc(10000% / var(--compare));
  max-width: none;
}

.before-after__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare);
  width: 2px;
  transform: translateX(-1px);
  background: #fff;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.before-after__divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(23, 32, 29, 0.88);
  color: #fff;
  font-size: 17px;
}

.before-after__label {
  position: absolute;
  top: 18px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(23, 32, 29, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.before-after__label--before {
  right: 18px;
}

.before-after__label--after {
  left: 18px;
}

.before-after input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.before-after figcaption {
  margin-top: 15px;
  color: rgba(247, 243, 236, 0.58);
  font-size: 12px;
  text-align: center;
}

.before-after-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 24px);
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin-inline: auto;
}

.before-after-card {
  min-width: 0;
  margin: 0;
}

.before-after-card__image {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247, 243, 236, 0.24);
  border-radius: 4px;
  background: #d8d2ca;
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.28);
}

.before-after-card__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #e4ded5;
}

.before-after-card__image span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(23, 32, 29, 0.86);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.before-after-card--after .before-after-card__image span {
  right: 14px;
  left: auto;
  background: var(--try-on-gold);
  color: var(--try-on-ink);
}

.before-after-card figcaption {
  margin-top: 12px;
  color: rgba(247, 243, 236, 0.66);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.landing-explainer {
  width: min(100% - (2 * var(--side-pad)), 920px);
  margin: 0 auto;
  padding-block: clamp(70px, 10vw, 120px);
  text-align: center;
}

.landing-explainer .try-on-eyebrow {
  justify-content: center;
}

.landing-explainer h2,
.studio-intro h1 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  line-height: 1.08;
}

.landing-explainer h2 {
  font-size: clamp(34px, 4vw, 48px);
  text-wrap: balance;
}

.landing-explainer > p:last-of-type {
  max-width: 760px;
  margin: 20px auto 28px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.studio-intro {
  padding: clamp(52px, 6vw, 76px) var(--side-pad);
  background: linear-gradient(120deg, #131a18 0%, #25312d 100%);
  color: var(--ivory);
  text-align: center;
}

.studio-intro .try-on-kicker {
  justify-content: center;
}

.studio-intro h1 {
  font-size: clamp(38px, 4.5vw, 56px);
  text-wrap: balance;
}

.studio-intro > p:last-of-type {
  max-width: 680px;
  margin: 16px auto 10px;
  color: rgba(247, 243, 236, 0.72);
}

.studio-intro > a {
  color: var(--bronze-light);
  font-size: 12px;
  text-underline-offset: 4px;
}

.try-on-shell {
  width: min(100% - (2 * var(--side-pad)), 1320px);
}

.try-on-wizard {
  overflow: hidden;
  border: 1px solid var(--ivory-dark);
  background: var(--white);
  box-shadow: 0 24px 80px rgba(28, 25, 22, 0.09);
}

.wizard-heading {
  padding: clamp(30px, 5vw, 56px);
  padding-bottom: 30px;
  text-align: center;
}

.wizard-heading .try-on-eyebrow {
  justify-content: center;
}

.wizard-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

.wizard-heading > p:last-child {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0 clamp(24px, 5vw, 62px) 28px;
  list-style: none;
}

.wizard-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #9a9389;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-progress li::after {
  position: absolute;
  top: 17px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 1px;
  content: "";
  background: var(--ivory-dark);
}

.wizard-progress li:last-child::after {
  display: none;
}

.wizard-progress li span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ivory-dark);
  border-radius: 50%;
  background: var(--white);
  font-size: 12px;
}

.wizard-progress li.is-current,
.wizard-progress li.is-complete {
  color: var(--charcoal);
}

.wizard-progress li.is-current span {
  border-color: var(--try-on-gold);
  background: var(--try-on-gold);
  color: var(--try-on-ink);
}

.wizard-progress li.is-complete span {
  border-color: var(--try-on-moss);
  background: var(--try-on-moss);
  color: #fff;
}

.wizard-progress li.is-complete::after {
  background: var(--try-on-moss);
}

.wizard-stage {
  padding: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--ivory-dark);
  background: linear-gradient(180deg, #fff, #fcfaf6);
}

.wizard-stage__intro {
  max-width: 760px;
  margin-bottom: 30px;
}

.wizard-stage__intro h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(29px, 3.3vw, 40px);
  font-weight: 400;
  line-height: 1.14;
  text-wrap: balance;
}

.wizard-stage__intro > p:last-child {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.room-builder {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
}

.upload-zone {
  align-content: center;
  min-height: 480px;
  padding: 42px 30px;
  border: 1.5px dashed #b7915d;
  border-radius: 3px;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.upload-zone label {
  margin-top: 0;
}

.upload-zone__drop-note {
  display: block;
  margin-top: 16px;
  color: #8c857b;
  font-size: 11px;
}

.room-preview-wrap {
  min-height: 480px;
  border-radius: 3px;
}

.room-preview-wrap img {
  height: 100%;
  max-height: 680px;
  object-fit: contain;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ivory-dark);
}

.wizard-actions--end {
  justify-content: flex-end;
}

.wizard-back,
.wizard-next {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wizard-next {
  background: var(--charcoal);
  color: #fff;
}

.wizard-next:hover,
.wizard-back:hover {
  border-color: var(--try-on-gold);
  background: var(--try-on-gold);
  color: var(--try-on-ink);
}

.pattern-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pattern-card__image,
.pattern-card__fallback {
  aspect-ratio: 1 / 1;
}

.selection-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.selection-review figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ivory-dark);
  background: var(--charcoal);
}

.selection-review figure > span {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(23, 32, 29, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selection-review img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #202725;
}

.selection-review__pattern img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.selection-review__pattern figcaption {
  padding: 15px;
  background: #fff;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 500;
}

.review-patterns {
  margin-top: 26px;
}

.review-patterns__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.review-patterns__heading button {
  border: 0;
  background: transparent;
  color: var(--bronze);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.review-pattern-rail {
  display: grid;
  grid-auto-columns: 112px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}

.review-pattern-option {
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 2px solid transparent;
  background: var(--ivory);
}

.review-pattern-option[aria-pressed="true"] {
  border-color: var(--try-on-gold);
}

.review-pattern-option img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.review-pattern-option span {
  display: block;
  padding: 8px;
  overflow: hidden;
  color: var(--charcoal);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-card,
.consent-card,
.create-ready {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--ivory-dark);
  background: #fff;
}

.auth-card h4,
.consent-card h4 {
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(25px, 3.5vw, 38px);
  font-weight: 400;
}

.auth-card p,
.consent-card > p {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.consent-card {
  margin-top: 20px;
}

.create-ready {
  margin-top: 20px;
}

.create-ready__selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.create-ready__selection > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--charcoal);
}

.create-ready__selection > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--try-on-gold);
  color: var(--try-on-ink);
  font-size: 24px;
}

.quota-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.quota-grid .quota-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.quota-grid .quota-card strong {
  margin: 0;
  font-size: 20px;
}

.quota-card__label {
  color: rgba(247, 243, 236, 0.6);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.quota-bar {
  display: block;
  height: 5px;
  overflow: hidden;
  background: rgba(247, 243, 236, 0.16);
}

.quota-bar > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bronze-light);
  transition: width 0.25s ease;
}

.try-on-button--generate {
  width: 100%;
  min-height: 58px;
  margin-top: 20px;
  font-size: 13px;
}

.try-on-button--generate img {
  width: 27px;
  height: 27px;
}

.result-panel,
#gallery-section {
  margin-top: 34px;
}

.result-panel > p:not(.try-on-eyebrow, .result-note) {
  margin: 12px 0 24px;
  color: var(--text-secondary);
}

@media (max-width: 1050px) {
  .try-on-hero__inner {
    grid-template-columns: minmax(330px, 0.9fr) minmax(480px, 1.1fr);
    gap: 36px;
  }

  .pattern-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .try-on-hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
  }

  .before-after,
  .before-after-pair {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .room-builder,
  .selection-review {
    grid-template-columns: 1fr;
  }

  .selection-review__pattern {
    width: 100%;
  }

  .pattern-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .try-on-hero__inner {
    width: min(100% - 32px, 1420px);
    padding-block: 46px;
  }

  .try-on-hero h1 {
    font-size: clamp(40px, 11.5vw, 52px);
  }

  .try-on-hero__cta {
    width: 100%;
  }

  .hero-guide {
    display: grid;
  }

  .before-after__divider span {
    width: 42px;
    height: 42px;
  }

  .before-after-pair {
    gap: 10px;
  }

  .before-after-card figcaption {
    font-size: 11px;
  }

  .before-after-card__image span {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 8px;
  }

  .before-after-card--after .before-after-card__image span {
    right: 8px;
  }

  .try-on-shell {
    width: min(100% - 24px, 1320px);
  }

  .wizard-heading,
  .wizard-stage {
    padding: 26px 18px;
  }

  .wizard-progress {
    padding: 0 12px 22px;
  }

  .wizard-progress li strong {
    font-size: 8px;
  }

  .wizard-progress li::after {
    left: calc(50% + 18px);
    width: calc(100% - 36px);
  }

  .wizard-progress li span {
    width: 32px;
    height: 32px;
  }

  .upload-zone,
  .room-preview-wrap {
    min-height: 330px;
  }

  .upload-actions,
  .wizard-actions,
  .auth-account {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-actions .wizard-back,
  .wizard-actions .wizard-next,
  .upload-actions .try-on-button {
    width: 100%;
  }

  .pattern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pattern-card__title {
    font-size: 11px;
  }

  .create-ready__selection {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .create-ready__selection > span {
    width: 38px;
    height: 38px;
    justify-self: center;
  }

  .quota-grid {
    grid-template-columns: 1fr;
  }

  .research-fields {
    margin-left: 0;
  }
}

/* 2026 Try-On light visual direction and full-screen flow */
.try-on-landing-page {
  --try-on-accent: #627885;
  --try-on-accent-dark: #344852;
  --try-on-surface: #f4f5f2;
  --try-on-soft-blue: #dfe7e8;
  background: var(--try-on-surface);
}

.try-on-landing-page .try-on-hero {
  min-height: calc(100svh - var(--nav-h));
  background:
    radial-gradient(circle at 76% 18%, rgba(171, 191, 196, 0.34), transparent 28%),
    linear-gradient(135deg, #f8f8f5 0%, #edf1f0 55%, #dfe7e8 100%);
  color: #26353b;
}

.try-on-landing-page .try-on-hero::after {
  top: -180px;
  right: -120px;
  bottom: auto;
  border-color: rgba(74, 101, 113, 0.18);
}

.try-on-landing-page .try-on-hero__inner {
  grid-template-columns: minmax(320px, 0.58fr) minmax(620px, 1.42fr);
  gap: clamp(32px, 4vw, 70px);
  width: min(100% - (2 * var(--side-pad)), 1540px);
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(40px, 5vh, 72px) clamp(54px, 5vw, 88px) clamp(40px, 5vh, 72px) 0;
}

.try-on-landing-page .try-on-kicker {
  color: var(--try-on-accent-dark);
}

.try-on-landing-page .try-on-kicker__ai {
  border-color: rgba(52, 72, 82, 0.22);
  background: #fff;
  color: var(--try-on-accent-dark);
  box-shadow: 0 9px 28px rgba(52, 72, 82, 0.12);
}

.try-on-landing-page .try-on-hero h1 {
  max-width: 590px;
  color: #26353b;
  font-size: clamp(46px, 4.35vw, 72px);
}

.try-on-landing-page .try-on-hero h1 em {
  color: var(--try-on-accent);
}

.try-on-landing-page .try-on-hero__lead {
  color: #59676c;
}

.try-on-landing-page .hero-guide li {
  color: #5e6b70;
}

.try-on-landing-page .hero-guide li span {
  border-color: rgba(52, 72, 82, 0.24);
  background: rgba(255, 255, 255, 0.55);
  color: var(--try-on-accent-dark);
}

.try-on-landing-page .before-after-pair {
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  width: 100%;
  max-width: none;
}

.try-on-landing-page .before-after-card__image {
  border: 8px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  box-shadow: 0 28px 75px rgba(50, 70, 78, 0.19);
}

.try-on-landing-page .before-after-card__image img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #e6e7e4;
}

.try-on-landing-page .before-after-card__image span {
  background: rgba(38, 53, 59, 0.88);
}

.try-on-landing-page .before-after-card--after {
  transform: translateY(18px);
}

.try-on-landing-page .before-after-card--after .before-after-card__image span {
  background: #fff;
  color: var(--try-on-accent-dark);
}

.try-on-landing-page .before-after-card figcaption {
  color: #58666b;
  font-size: 12px;
  font-weight: 500;
}

.try-on-hero__edge-cta {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: var(--try-on-accent-dark, #344852);
  color: #fff;
  box-shadow: 0 18px 45px rgba(38, 53, 59, 0.24);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.try-on-hero__edge-cta {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: clamp(14px, 2vw, 34px);
  transform: translateY(-50%);
}

.try-on-hero__edge-cta:hover,
.try-on-hero__edge-cta:focus-visible {
  transform: translateY(-50%) scale(1.06);
  background: #49616d;
  box-shadow: 0 22px 52px rgba(38, 53, 59, 0.32);
}

.try-on-studio-page {
  --try-on-accent: #627885;
  --try-on-accent-dark: #344852;
  --try-on-surface: #f5f6f3;
  background: var(--try-on-surface);
}

.try-on-studio-page .studio-intro {
  background:
    radial-gradient(circle at 12% 20%, rgba(151, 176, 182, 0.25), transparent 24%),
    linear-gradient(135deg, #f8f9f6, #e6ecec);
  color: #26353b;
}

.try-on-studio-page .studio-intro > p:last-of-type {
  color: #5b696e;
}

.try-on-studio-page .studio-intro > a,
.try-on-studio-page .studio-intro .try-on-kicker {
  color: var(--try-on-accent-dark);
}

.try-on-studio-page .try-on-kicker__ai {
  border-color: rgba(52, 72, 82, 0.2);
  background: #fff;
  color: var(--try-on-accent-dark);
}

.try-on-studio-page .try-on-wizard {
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(50, 65, 70, 0.1);
}

.try-on-studio-page .wizard-stage {
  position: relative;
  background: linear-gradient(180deg, #fff, #f8faf8);
}

.wizard-edge-control {
  position: fixed;
  z-index: 80;
  top: 52%;
  display: flex;
  width: 88px;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--try-on-accent-dark, #344852);
  font: inherit;
  text-align: center;
  text-transform: none;
  cursor: pointer;
  transform: translateY(-50%);
}

.wizard-edge-control[hidden] {
  display: none;
}

.wizard-edge-control--back {
  left: clamp(10px, 2.1vw, 36px);
}

.wizard-edge-control--next,
.wizard-edge-control--create {
  right: clamp(10px, 2.1vw, 36px);
}

.wizard-edge-control__circle {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: var(--try-on-accent-dark, #344852);
  color: #fff;
  box-shadow: 0 18px 45px rgba(38, 53, 59, 0.24);
  font-size: 27px;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.wizard-edge-control__label {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid rgba(52, 72, 82, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(38, 53, 59, 0.12);
  color: var(--try-on-accent-dark, #344852);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wizard-edge-control:hover .wizard-edge-control__circle,
.wizard-edge-control:focus-visible .wizard-edge-control__circle {
  background: #4b6571;
  box-shadow: 0 22px 52px rgba(38, 53, 59, 0.32);
  transform: scale(1.07);
}

.wizard-edge-control--back:hover .wizard-edge-control__circle,
.wizard-edge-control--back:focus-visible .wizard-edge-control__circle {
  transform: translateX(-3px) scale(1.07);
}

.wizard-edge-control--next:hover .wizard-edge-control__circle,
.wizard-edge-control--next:focus-visible .wizard-edge-control__circle {
  transform: translateX(3px) scale(1.07);
}

.wizard-edge-control:focus-visible {
  outline: none;
}

.wizard-edge-control:focus-visible .wizard-edge-control__circle {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.wizard-edge-control__circle--create {
  position: relative;
  width: 78px;
  height: 78px;
  flex-basis: 78px;
  overflow: hidden;
  border-color: rgba(255, 244, 218, 0.92);
  background: linear-gradient(145deg, #c69045 0%, #9d6627 52%, #6f421d 100%);
  box-shadow:
    0 0 0 5px rgba(205, 157, 86, 0.14),
    0 22px 54px rgba(112, 67, 26, 0.32);
}

.wizard-edge-control__circle--create::after {
  position: absolute;
  inset: -45%;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.68) 49%, transparent 66%);
  content: "";
  transform: translateX(-72%) rotate(8deg);
}

.wizard-edge-control__spark {
  position: absolute;
  top: 15px;
  left: 17px;
  font-size: 13px;
}

.wizard-edge-control__create-arrow {
  font-size: 27px;
}

.wizard-edge-control__label--create {
  min-width: 116px;
  flex-direction: column;
  gap: 2px;
  border-color: rgba(157, 102, 39, 0.2);
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.97);
  color: #70451e;
}

.wizard-edge-control__label--create strong {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.wizard-edge-control__label--create small {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.wizard-edge-control--create:hover .wizard-edge-control__circle--create,
.wizard-edge-control--create:focus-visible .wizard-edge-control__circle--create {
  background: linear-gradient(145deg, #d9ac63 0%, #ad722d 52%, #7b481f 100%);
  box-shadow:
    0 0 0 9px rgba(205, 157, 86, 0.19),
    0 26px 64px rgba(112, 67, 26, 0.42);
  transform: translateY(-2px) scale(1.09);
}

.wizard-edge-control--create:hover .wizard-edge-control__circle--create::after,
.wizard-edge-control--create:focus-visible .wizard-edge-control__circle--create::after {
  animation: try-on-create-shimmer 760ms ease-out both;
}

.wizard-edge-control--create:hover .wizard-edge-control__spark,
.wizard-edge-control--create:focus-visible .wizard-edge-control__spark {
  animation: try-on-create-spark 760ms ease-out both;
}

@keyframes try-on-create-shimmer {
  from { transform: translateX(-72%) rotate(8deg); }
  to { transform: translateX(72%) rotate(8deg); }
}

@keyframes try-on-create-spark {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.72; transform: scale(1.55) rotate(22deg); }
}

.signup-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 14% 16%, rgba(155, 181, 186, 0.28), transparent 25%),
    linear-gradient(135deg, #f7f8f5 0%, #e8eeed 100%);
}

.signup-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: var(--nav-h);
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(38px, 7vw, 88px) var(--side-pad);
}

.account-gallery {
  width: min(100%, 1180px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(52, 72, 82, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(45, 66, 73, 0.11);
}

.account-preferences {
  width: min(100%, 780px);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(52, 72, 82, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(45, 66, 73, 0.11);
}

.account-preferences__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.account-preferences__heading h2 {
  margin-top: 10px;
  color: #26353b;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
}

.account-preferences__heading p:last-child {
  max-width: 620px;
  margin-top: 10px;
  color: #627075;
  line-height: 1.7;
}

.account-preferences__state {
  padding: 8px 12px;
  border: 1px solid #ccd9d6;
  border-radius: 999px;
  background: #f1f6f4;
  color: #355349;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.account-preferences__form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.account-preferences__choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 13px;
  padding: 20px;
  border: 1px solid #dce4e2;
  border-radius: 14px;
  background: #f6f8f7;
}

.account-preferences__choice input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #355349;
}

.account-preferences__choice strong {
  display: block;
  color: #27363c;
  font-size: 16px;
}

.account-preferences__choice span span {
  display: block;
  margin-top: 5px;
  color: #6b777b;
  font-size: 13px;
  line-height: 1.6;
}

.account-preferences__form .try-on-button {
  justify-self: start;
}

.account-preferences__status {
  min-height: 22px;
  margin-top: 14px;
  color: #40575f;
  font-size: 13px;
}

.account-gallery__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.account-gallery__heading h2 {
  margin-top: 10px;
  color: #26353b;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
}

.account-gallery__heading p:last-child,
.account-gallery__status {
  margin-top: 8px;
  color: #627075;
}

.account-gallery__heading > a {
  flex: 0 0 auto;
  padding: 12px 17px;
  border: 1px solid #26353b;
  color: #26353b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.account-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.account-gallery-card {
  overflow: hidden;
  border: 1px solid #dce4e2;
  border-radius: 12px;
  background: #f6f8f7;
}

.account-gallery-card__preview {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #26353b;
  cursor: zoom-in;
}

.account-gallery-card__preview:disabled {
  cursor: wait;
}

.account-gallery-card__preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #26353b;
  transition: transform 240ms ease;
}

.account-gallery-card__preview:not(:disabled):hover img,
.account-gallery-card__preview:not(:disabled):focus-visible img {
  transform: scale(1.025);
}

.saved-preview-viewer {
  width: min(1120px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #f8f4ed;
}

.saved-preview-viewer::backdrop {
  background: rgba(11, 14, 14, 0.88);
  backdrop-filter: blur(8px);
}

.saved-preview-viewer__surface {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #171a19;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.saved-preview-viewer__figure {
  margin: 0;
}

.saved-preview-viewer__media {
  position: relative;
  display: grid;
  min-height: min(68dvh, 680px);
  overflow: hidden;
  place-items: center;
  border-radius: 11px;
  background: #090b0a;
}

.saved-preview-viewer__media > img {
  display: block;
  max-width: 100%;
  max-height: min(68dvh, 680px);
  object-fit: contain;
}

.saved-preview-viewer__close,
.saved-preview-viewer__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(247, 243, 236, 0.95);
  color: #181b1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-size: 22px;
  cursor: pointer;
}

.saved-preview-viewer__close {
  position: absolute;
  z-index: 3;
  top: -13px;
  right: -13px;
  width: 42px;
  height: 42px;
  font-size: 24px;
}

.saved-preview-viewer__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.saved-preview-viewer__arrow--previous { left: 16px; }
.saved-preview-viewer__arrow--next { right: 16px; }

.saved-preview-viewer__close:hover,
.saved-preview-viewer__arrow:hover {
  background: #cda663;
}

.saved-preview-viewer__close:focus-visible,
.saved-preview-viewer__arrow:focus-visible,
.saved-preview-viewer__thumb:focus-visible {
  outline: 3px solid #d9b675;
  outline-offset: 3px;
}

.saved-preview-viewer figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 5px 5px;
}

.saved-preview-viewer figcaption > span:first-child {
  display: grid;
  gap: 3px;
}

.saved-preview-viewer__title {
  font-size: 15px;
  font-weight: 500;
}

.saved-preview-viewer__date,
.saved-preview-viewer__counter {
  color: rgba(248, 244, 237, 0.68);
  font-size: 12px;
}

.saved-preview-viewer__counter {
  flex: 0 0 auto;
  letter-spacing: 0.12em;
}

.saved-preview-viewer__thumbs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  padding: 10px 3px 2px;
  overflow-x: auto;
}

.saved-preview-viewer__thumb {
  flex: 0 0 66px;
  width: 66px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #2a2d2c;
  opacity: 0.58;
  cursor: pointer;
}

.saved-preview-viewer__thumb[aria-current="true"] {
  border-color: #d2aa67;
  opacity: 1;
}

.saved-preview-viewer__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .saved-preview-viewer {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 12px);
  }

  .saved-preview-viewer__surface { padding: 8px; }
  .saved-preview-viewer__media { min-height: 62dvh; }
  .saved-preview-viewer__media > img { max-height: 62dvh; }
  .saved-preview-viewer__arrow { width: 42px; height: 42px; }
  .saved-preview-viewer__arrow--previous { left: 8px; }
  .saved-preview-viewer__arrow--next { right: 8px; }
  .saved-preview-viewer__close { top: 3px; right: 3px; }
}

.account-gallery-card > div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.account-gallery-card__download {
  justify-self: start;
  margin-top: 8px;
  padding: 8px 11px;
  border: 1px solid #27363c;
  background: transparent;
  color: #27363c;
  font: 600 10px "Outfit", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-gallery-card__download:hover { background: #27363c; color: #fff; }
.account-gallery-card__download:disabled { cursor: wait; opacity: .5; }

.account-gallery-card strong {
  overflow: hidden;
  color: #27363c;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-gallery-card span {
  color: #6b777b;
  font-size: 11px;
}

@media (max-width: 860px) {
  .account-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .account-preferences { padding: 24px 18px; border-radius: 16px; }
  .account-preferences__heading { grid-template-columns: 1fr; }
  .account-preferences__state { justify-self: start; }
  .account-preferences__form .try-on-button { width: 100%; }
  .account-gallery { padding: 24px 18px; border-radius: 16px; }
  .account-gallery__heading { align-items: stretch; flex-direction: column; }
  .account-gallery__heading > a { text-align: center; }
  .account-gallery__grid { grid-template-columns: 1fr; }
}

.signup-card {
  width: min(100%, 780px);
  padding: clamp(30px, 6vw, 68px);
  border: 1px solid rgba(52, 72, 82, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 32px 90px rgba(45, 66, 73, 0.14);
}

.signup-card__intro {
  text-align: center;
}

.signup-card__intro .try-on-kicker {
  justify-content: center;
  color: var(--try-on-accent-dark, #344852);
}

.signup-card__intro h1 {
  margin-top: 18px;
  color: #26353b;
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 400;
  line-height: 1.06;
  text-wrap: balance;
}

.signup-card__intro > p:last-child {
  max-width: 610px;
  margin: 18px auto 0;
  color: #627075;
  line-height: 1.75;
}

.signup-card__account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 18px;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid #dce4e2;
  border-radius: 16px;
  background: #f6f8f7;
}

.signup-lock {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #dfe9e6;
  color: #2f5148;
  font-weight: 600;
}

.signup-card__account strong {
  color: #27363c;
  font-size: 17px;
}

.signup-card__account p {
  margin-top: 5px;
  color: #6b777b;
  line-height: 1.6;
}

.signup-google,
.signup-card__account > .try-on-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 56px;
}

.signup-signout {
  grid-column: 1 / -1;
  justify-self: center;
  border: 0;
  background: transparent;
  color: #657378;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.signup-status {
  min-height: 24px;
  margin-top: 18px;
  color: #40575f;
  text-align: center;
}

.signup-legal {
  margin-top: 16px;
  color: #7a8588;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.signup-legal a {
  color: #344852;
  text-underline-offset: 3px;
}

.pattern-discovery {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.28fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #dce2e1;
  border-radius: 12px;
  background: #f4f7f6;
}

.pattern-discovery label {
  display: grid;
  gap: 7px;
}

.pattern-discovery label > span {
  color: #526267;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pattern-discovery input,
.pattern-discovery select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #cdd7d6;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #27363c;
}

.pattern-discovery input:focus,
.pattern-discovery select:focus {
  border-color: var(--try-on-accent);
  box-shadow: 0 0 0 3px rgba(98, 120, 133, 0.14);
}

.pattern-search-submit,
.pattern-search-reset {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--try-on-accent-dark);
  border-radius: 999px;
  background: var(--try-on-accent-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.pattern-search-reset {
  background: transparent;
  color: var(--try-on-accent-dark);
}

.pattern-discovery--review {
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.3fr) auto auto;
  margin-bottom: 14px;
  padding: 14px;
}

.generation-loading {
  display: grid;
  min-height: 440px;
  place-items: center;
  align-content: center;
  padding: clamp(34px, 8vw, 90px);
  border: 1px solid #dce2e1;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 38%, rgba(140, 168, 175, 0.24), transparent 30%),
    #f6f8f7;
  text-align: center;
}

.generation-loading__spinner {
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  border: 3px solid rgba(98, 120, 133, 0.18);
  border-top-color: var(--try-on-accent-dark);
  border-radius: 50%;
  animation: try-on-spin 900ms linear infinite;
}

.generation-loading .try-on-eyebrow {
  justify-content: center;
  color: var(--try-on-accent-dark);
}

.generation-loading h4 {
  margin-bottom: 14px;
  color: #27363c;
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
}

.generation-loading > p:last-child {
  max-width: 580px;
  color: #617075;
  line-height: 1.7;
}

@keyframes try-on-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1050px) {
  .try-on-landing-page .try-on-hero__inner {
    grid-template-columns: minmax(270px, 0.62fr) minmax(510px, 1.38fr);
    padding-right: 72px;
  }

  .pattern-discovery,
  .pattern-discovery--review {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.35fr) auto;
  }

  .pattern-search-reset {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 36px;
    padding-block: 6px;
  }
}

@media (max-width: 860px) {
  .try-on-landing-page .try-on-hero__inner {
    grid-template-columns: 1fr;
    min-height: calc(100svh - var(--nav-h));
    padding: 48px 58px 64px 0;
  }

  .try-on-landing-page .try-on-hero__copy {
    width: min(100%, 700px);
  }

  .try-on-landing-page .before-after-pair {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .try-on-landing-page .try-on-hero__inner {
    width: min(100% - 28px, 1540px);
    padding: 32px 46px 50px 0;
  }

  .try-on-landing-page .try-on-hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .try-on-landing-page .hero-guide {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .try-on-landing-page .before-after-card__image {
    border-width: 4px;
    border-radius: 10px;
  }

  .try-on-hero__edge-cta {
    width: 56px;
    height: 56px;
    min-height: 56px;
    right: 10px;
    padding: 0;
    font-size: 24px;
  }

  .pattern-discovery,
  .pattern-discovery--review {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .pattern-search-reset {
    grid-column: auto;
    justify-self: stretch;
    min-height: 44px;
  }

  .wizard-edge-control,
  .wizard-actions .wizard-edge-control {
    width: 70px;
    gap: 7px;
  }

  .wizard-edge-control--back {
    left: max(7px, env(safe-area-inset-left));
  }

  .wizard-edge-control--next,
  .wizard-edge-control--create {
    right: max(7px, env(safe-area-inset-right));
  }

  .wizard-edge-control__circle {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    font-size: 23px;
  }

  .wizard-edge-control__label {
    max-width: 76px;
    min-height: 25px;
    padding: 5px 7px;
    font-size: 8px;
  }

  .wizard-edge-control__circle--create {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .wizard-edge-control__spark {
    top: 11px;
    left: 12px;
    font-size: 11px;
  }

  .wizard-edge-control__label--create {
    min-width: 92px;
    transform: translateX(-11px);
  }

  .wizard-edge-control__label--create strong {
    font-size: 9px;
  }

  .wizard-edge-control__label--create small {
    font-size: 7px;
  }

  .signup-main {
    place-items: start center;
    padding: 24px 14px;
  }

  .signup-card {
    padding: 28px 18px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-edge-control__circle,
  .wizard-edge-control__circle--create::after,
  .wizard-edge-control__spark {
    animation: none !important;
    transition: none;
  }
}
