/* Théa mid-fi — all tunable values live in :root */

:root {
  /* Colour */
  --color-bg: #f7f7f5;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-border: #d8d8d6;
  --color-placeholder: #d4d4d2;
  --color-header-bg: #ececea;
  --color-btn-primary: #1a1a1a;
  --color-btn-primary-text: #ffffff;
  --color-btn-secondary-bg: transparent;
  --color-accent: #4a4a4a;
  --color-confirm: #2f2f2f;
  --color-overlay-backdrop: rgba(0, 0, 0, 0.35);
  --color-overlay-panel: #e8e8e6;
  --color-overlay-scene: #d4d4d2;
  --color-dialog-panel: #ffffff;
  --color-onboarding-scrim: rgba(0, 0, 0, 0.45);
  --color-overlay-close: #1a1a1a;
  --color-overlay-skip: #9a9a9a;
  --color-bag-fill: #bdbdbb;
  --color-camera-btn: #4a4a4a;
  --color-camera-preview: #ececea;
  --color-progress-idle: #d8d8d6;
  --color-progress-active: #1a1a1a;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Layout */
  --page-max: 72rem;
  --page-pad-x: 2.5rem;
  --header-height: 5rem;
  --header-pad-x: 2.5rem;
  --header-nav-gap: 1.75rem;
  --header-icon-gap: 1.25rem;
  --header-right-gap: 1.5rem;
  --header-icon-size: 1.25rem;
  --product-image-ratio: 58%;
  --product-info-ratio: 42%;
  --product-3d-width: 12.5rem;
  --product-wish-size: 2.75rem;
  --product-story-height: calc(100vh - var(--header-height));
  --product-info-pad: 2.5rem;
  --product-carousel-aspect: 5 / 4;
  --product-carousel-pad: 2rem;
  --product-dot-size: 0.4rem;
  --product-dot-gap: 0.5rem;
  --product-nav-size: 2rem;
  --fs-product-name: 1.75rem;
  --fs-product-price: 1rem;
  --fs-product-tab: 0.875rem;
  --fs-product-desc: 0.9375rem;
  --product-desc-max: 65ch;
  --product-tab-content-gap: var(--space-xl);
  --product-tab-list-gap: var(--space-md);
  --product-tab-panel-min-h: 17.5rem;
  --product-tab-bullet-indent: var(--space-md);
  --grid-gap: 2rem;
  --footer-gap: 2rem;
  --collection-hero-height: calc(100vh - var(--header-height));
  --collection-section-pad-y: 4.5rem;
  --collection-mission-max: 42rem;
  --collection-card-wish-size: 1.125rem;
  --collection-card-aspect: 1 / 1;
  --color-collection-card-bg: #F2EBE9;
  --collection-locator-media-h: 6rem;
  --collection-feature-icon-size: 1.75rem;
  --fs-mission: 1.375rem;
  --fs-locator-title: 1.25rem;
  --brand-story-max: 40rem;
  --brand-story-pad-y: 4.5rem;
  --fs-brand-heading: 2.5rem;
  --fs-brand-body: 1.0625rem;
  --footer-signup-gap: 0.5rem;
  --footer-input-pad-y: 0.625rem;
  --footer-input-pad-x: 0.75rem;

  /* Type scale */
  --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-serif: "Georgia", "Times New Roman", Times, serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-nav: 0.8125rem;
  --fs-wordmark: 2rem;
  --lh-tight: 1.25;
  --lh-body: 1.6;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* Interactive */
  --btn-pad-y: 0.875rem;
  --btn-pad-x: 1.5rem;
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-pill: 999px;
  --border-width: 1px;
  --transition-fast: 150ms ease;

  /* Z-index */
  --z-header: 100;
  --z-nav-panel: 150;
  --z-toast: 110;
  --z-overlay: 200;
  --z-dialog: 300;

  /* Camera info toast (Mode B product page) */
  --camera-toast-max-w: 28rem;
  --camera-toast-pad-y: var(--space-lg);
  --camera-toast-pad-x: var(--space-xl);
  --camera-toast-fade-ms: 400ms;
  --camera-toast-duration-ms: 4000;

  /* Nav panels */
  --nav-panel-width: 24rem;
  --nav-panel-pad: var(--space-xl);
  --nav-panel-close-size: 2.5rem;

  /* Overlay */
  --overlay-pad: 1.5rem;
  --overlay-panel-radius: 0.75rem;
  --overlay-scene-w: min(42vw, 22rem);
  --overlay-bag-size: min(42vw, 18rem);
  --overlay-close-size: 2.5rem;
  --overlay-tab-gap: 0;
  --overlay-card-w: 1260px;
  --overlay-card-h: 920px;
  --overlay-card-pad-top: 2.5rem;
  --overlay-card-pad-x: 3rem;
  --overlay-card-pad-bottom: 2rem;
  --overlay-card-radius: 1.5rem;
  /* Reserves room above the card so it never reaches into the
     chrome-level Close button's corner (top: overlay-pad, ~2.75rem tall). */
  --overlay-onboarding-pad-top: 5rem;
  --overlay-progress-h: 0.2rem;
  --overlay-progress-h-active: 0.35rem;
  --overlay-progress-gap: 0.4rem;
  --overlay-illus-size: 24rem;
  --overlay-bag-tab-min: 4.5rem;
  --overlay-mode-pad-y: 0.55rem;
  --overlay-mode-pad-x: 1.25rem;
  --color-seg-pill-bg: #eae6e1;
  --color-seg-active-bg: #ffffff;
  --color-seg-active-text: #1a1a1a;
  --color-seg-inactive-text: #8a8580;
  --seg-pill-pad: 0.2rem;
  --seg-active-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
  /* Vertical zoom slider (both modes) */
  --overlay-zoom-right: 2.5rem;
  --overlay-zoom-track-w: 2.25rem;
  --overlay-zoom-track-h: 12rem;
  --overlay-zoom-node-size: 1.85rem;
  --overlay-zoom-label-gap: 0.75rem;
  --fs-overlay-zoom-label: 1rem;
  --dialog-max: 22rem;
  --dialog-pad: 1.25rem;
  --dialog-action-gap: 0.6rem;
  --dialog-radius: 0.75rem;
  --dialog-preview-h: 10rem;
  --fs-overlay-label: 0.8125rem;
  --fs-overlay-close: 1.75rem;
  --fs-overlay-skip: 0.875rem;
  --fs-overlay-mode: 0.75rem;
  --fs-overlay-next: 0.9375rem;
  --fs-camera: 0.8125rem;
  /* Mode A pointer hint — brief overlay open cue (no card/modal) */
  --overlay-pointer-hint-bottom: 5.5rem;
  --overlay-pointer-hint-fade: 400ms ease;
  --overlay-pointer-hint-blink: 1.6s ease-in-out infinite;
  --fs-overlay-pointer-hint: 0.8125rem;
  /* Done looking — free-exploration end cue (both modes) */
  --overlay-done-looking-bottom: var(--space-2xl);
  --overlay-done-looking-right: var(--overlay-pad);
  --overlay-done-looking-fade: 600ms ease;
  --overlay-done-looking-pulse: 2.5s ease-in-out infinite;
  /* Post-inspection questionnaire card */
  --survey-card-max-w: min(40rem, calc(100vw - 2 * var(--overlay-pad)));
  --survey-card-h: 576px;
  --survey-card-pad-x: var(--space-2xl);
  --survey-card-pad-y: var(--space-xl);
  --survey-card-radius: var(--overlay-card-radius);
  --survey-item-gap: var(--space-2xl);
  --survey-progress-h: 0.2rem;
  --survey-progress-h-active: 0.28rem;
  --survey-progress-gap: 0.35rem;
  --survey-close-size: 2rem;
  --survey-header-gap: var(--space-md);
  --survey-scale-num-gap: 0.35rem;
  --fs-survey-scale-num: var(--fs-xs);
  --fs-survey-section-label: 0.6875rem;
  --fs-survey-item: 0.9375rem;

  /* Gesture layer (Mode B) — hand skeleton overlay */
  --color-skeleton: rgba(26, 26, 26, 0.3);
  --skeleton-line-width: 1.5; /* px, unitless (canvas) */
  --fs-gesture-hint: 0.8125rem;
}

/* —— Base —— */

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

/*
 * Fix: several overlay classes below set `display` unconditionally
 * (e.g. `display: flex`), which — per the CSS cascade — beats the
 * browser's built-in `[hidden] { display: none }` rule even though
 * JS correctly toggles the hidden attribute. This one rule guarantees
 * any element with the hidden attribute is actually hidden, everywhere.
 */
[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: var(--color-header-bg);
}

.site-header__inner {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--header-pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: var(--space-lg);
}

.site-header__left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--header-nav-gap);
  font-size: var(--fs-nav);
  font-weight: var(--fw-regular);
  letter-spacing: 0.01em;
  line-height: var(--lh-tight);
}

.site-header__left a[aria-current="page"] {
  font-weight: var(--fw-bold);
}

.site-header__wordmark {
  justify-self: center;
  font-family: var(--font-family-serif);
  font-size: var(--fs-wordmark);
  font-weight: var(--fw-regular);
  letter-spacing: 0.02em;
  line-height: var(--lh-tight);
  color: var(--color-text);
}

.site-header__wordmark:hover {
  color: var(--color-text);
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--header-right-gap);
}

.site-header__contact {
  font-size: var(--fs-nav);
  font-weight: var(--fw-regular);
  letter-spacing: 0.01em;
  line-height: var(--lh-tight);
  white-space: nowrap;
}

.site-header__icons {
  display: flex;
  align-items: center;
  gap: var(--header-icon-gap);
}

.site-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--header-icon-size);
  height: var(--header-icon-size);
  color: var(--color-text);
}

.site-header__icon:hover {
  color: var(--color-accent);
}

.site-header__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* —— Nav slide-in panels —— */

body.nav-panel-open {
  overflow: hidden;
}

.nav-panels {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav-panel);
  pointer-events: none;
}

.nav-panels:not([hidden]) {
  pointer-events: auto;
}

.nav-panels__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-backdrop);
  opacity: 0;
  transition: opacity 300ms ease;
}

.nav-panels.is-open .nav-panels__backdrop {
  opacity: 1;
}

.nav-panels__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, var(--nav-panel-width));
  height: 100%;
  padding: var(--nav-panel-pad);
  padding-top: calc(var(--nav-panel-pad) + var(--space-md));
  background: var(--color-surface);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 300ms ease;
  overflow-y: auto;
}

.nav-panels.is-open .nav-panels__drawer {
  transform: translateX(0);
}

.nav-panels__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-panel-close-size);
  height: var(--nav-panel-close-size);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--fs-xl);
  line-height: 1;
  cursor: pointer;
}

.nav-panels__close:hover {
  color: var(--color-accent);
}

.nav-panels__heading {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-family-serif);
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

.nav-panels__body {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--color-text-muted);
}

/* —— Main —— */

.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--page-pad-x) var(--space-3xl);
}

.site-main--flush {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.page-title {
  margin: 0 0 var(--space-xl);
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
}

.page-lede {
  margin: 0 0 var(--space-2xl);
  max-width: 36rem;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.placeholder-block {
  background: var(--color-placeholder);
  width: 100%;
}

/* —— Collection page —— */

.page-collection {
  background: var(--color-surface);
}

.collection {
  flex: 1;
  width: 100%;
}

.collection-hero__media {
  display: block;
  width: 100%;
  height: var(--collection-hero-height);
  min-height: 28rem;
  background: var(--color-placeholder);
  object-fit: cover;
  object-position: center;
}

.collection-mission {
  max-width: var(--collection-mission-max);
  margin: 0 auto;
  padding: var(--collection-section-pad-y) var(--page-pad-x);
  text-align: center;
}

.collection-mission__label {
  margin: 0 0 var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.collection-mission__copy {
  margin: 0;
  font-family: var(--font-family-serif);
  font-size: var(--fs-mission);
  font-weight: var(--fw-regular);
  line-height: 1.55;
  color: var(--color-text);
}

.collection-mission__copy strong {
  font-weight: var(--fw-bold);
}

.collection-products {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x) var(--collection-section-pad-y);
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap) var(--space-xl);
}

@media (min-width: 40rem) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56rem) {
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: block;
  color: inherit;
}

.product-card--inert {
  cursor: default;
  pointer-events: none;
}

.product-card__media {
  position: relative;
  margin-bottom: var(--space-md);
  aspect-ratio: var(--collection-card-aspect);
  background: var(--color-collection-card-bg);
  overflow: hidden;
}

.product-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card__placeholder {
  position: absolute;
  inset: 0;
  background: var(--color-placeholder);
}

.product-card__wish {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: var(--collection-card-wish-size);
  height: var(--collection-card-wish-size);
  color: var(--color-text);
}

.product-card__wish svg {
  width: 100%;
  height: 100%;
  display: block;
}

.product-card__name {
  margin: 0 0 var(--space-xs);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.product-card__price {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--color-text);
}

.product-card:not(.product-card--inert):hover .product-card__name {
  color: var(--color-accent);
}

.collection-locator {
  background: var(--color-header-bg);
  padding: var(--collection-section-pad-y) var(--page-pad-x);
}

.collection-locator__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.collection-locator__media {
  width: min(100%, 20rem);
  height: var(--collection-locator-media-h);
  background: var(--color-placeholder);
  margin-bottom: var(--space-sm);
}

.collection-locator__title {
  margin: 0;
  font-size: var(--fs-locator-title);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.collection-locator__sub {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.collection-features {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--collection-section-pad-y) var(--page-pad-x);
}

.collection-features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl) var(--space-xl);
  max-width: 36rem;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.feature-item__icon {
  width: var(--collection-feature-icon-size);
  height: var(--collection-feature-icon-size);
  color: var(--color-text);
}

.feature-item__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-item__label {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-tight);
}

/* —— Home page —— */

.page-home {
  background: var(--color-surface);
}

.home {
  flex: 1;
  width: 100%;
}

.home-hero__block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--collection-hero-height);
  background: var(--color-placeholder);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.home-section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--collection-section-pad-y) var(--page-pad-x);
}

.home-section + .home-section {
  padding-top: 0;
}

.home-section--centered {
  text-align: center;
}

.home-section--centered .home-section__heading {
  margin-left: auto;
  margin-right: auto;
}

.home-section--text-only .home-section__heading {
  margin-bottom: 0;
}

.home-section .collection-mission__label {
  margin-bottom: var(--space-md);
}

.home-section__heading {
  margin: 0 0 var(--space-xl);
  max-width: var(--collection-mission-max);
  font-family: var(--font-family-serif);
  font-size: var(--fs-mission);
  font-weight: var(--fw-regular);
  line-height: 1.55;
  color: var(--color-text);
}

.page-collection .site-footer,
.page-home .site-footer,
.page-product .site-footer {
  border-top: var(--border-width) solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-2xl) var(--page-pad-x) var(--space-xl);
}

.page-collection .site-footer__brand,
.page-home .site-footer__brand,
.page-product .site-footer__brand {
  font-family: var(--font-family-serif);
  font-weight: var(--fw-regular);
  letter-spacing: 0.02em;
}

/* —— Product detail —— */

.page-product {
  background: var(--color-surface);
}

.product {
  flex: 1;
  width: 100%;
}

.product-top {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--color-surface);
}

@media (min-width: 56rem) {
  .product-top {
    flex-direction: row;
    align-items: flex-start;
  }
}

.product-media {
  width: 100%;
  flex: 0 0 auto;
  background: var(--color-surface);
  padding: var(--product-carousel-pad);
}

@media (min-width: 56rem) {
  .product-media {
    width: var(--product-image-ratio);
  }
}

.product-carousel {
  width: 100%;
}

.product-carousel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: var(--product-carousel-aspect);
  background: var(--color-placeholder);
  overflow: hidden;
}

.product-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: var(--product-nav-size);
  height: var(--product-nav-size);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: var(--fs-xl);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-carousel__nav--prev {
  left: var(--space-sm);
}

.product-carousel__nav--next {
  right: var(--space-sm);
}

.product-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--product-dot-gap);
  margin-top: var(--space-md);
}

.product-carousel__dot {
  width: var(--product-dot-size);
  height: var(--product-dot-size);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
}

.product-carousel__dot.is-active {
  background: var(--color-text);
}

.product-info {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: var(--product-info-pad);
  background: var(--color-surface);
}

@media (min-width: 56rem) {
  .product-info {
    width: var(--product-info-ratio);
    padding: var(--space-2xl) var(--space-3xl) var(--space-2xl) var(--space-2xl);
  }
}

.product-info__collection {
  margin: 0 0 var(--space-md);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.product-info__name {
  margin: 0 0 var(--space-md);
  font-size: var(--fs-product-name);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.product-info__price {
  margin: 0 0 var(--space-xl);
  font-size: var(--fs-product-price);
  font-weight: var(--fw-regular);
}

.product-info__3d {
  width: var(--product-3d-width);
  margin: 0 0 var(--space-xl);
  align-self: flex-start;
}

/* Mode B — one-time camera info toast (non-blocking) */
.camera-toast {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-md)) var(--space-md) 0;
  font-family: var(--font-family);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--camera-toast-fade-ms) ease;
}

/* Same scrim as .overlay-onboarding and #survey-flow.survey-flow */
.camera-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-onboarding-scrim);
}

.camera-toast.is-visible {
  opacity: 1;
}

.camera-toast.is-hiding {
  opacity: 0;
}

.camera-toast__text {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(var(--camera-toast-max-w), calc(100vw - 2 * var(--space-md)));
  padding: var(--camera-toast-pad-y) var(--camera-toast-pad-x);
  background: var(--color-surface);
  border-radius: var(--overlay-card-radius);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  text-align: center;
  transform: translateY(-0.5rem);
  transition: transform var(--camera-toast-fade-ms) ease;
}

.camera-toast.is-visible .camera-toast__text {
  transform: translateY(0);
}

.camera-toast.is-hiding .camera-toast__text {
  transform: translateY(-0.5rem);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: var(--border-width) solid var(--color-text);
}

.btn--outline:hover {
  background: var(--color-header-bg);
  color: var(--color-text);
}

.product-info__purchase {
  display: flex;
  align-items: stretch;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.product-info__cart {
  flex: 1 1 auto;
  width: auto;
}

.product-info__wish {
  flex: 0 0 auto;
  width: var(--product-wish-size);
  height: var(--product-wish-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: var(--color-header-bg);
  color: var(--color-text);
}

.product-info__wish:hover {
  background: var(--color-placeholder);
}

.product-info__wish svg {
  width: var(--header-icon-size);
  height: var(--header-icon-size);
  display: block;
}

.product-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--product-tab-content-gap);
  border-bottom: var(--border-width) solid var(--color-border);
}

.product-tabs__content {
  min-height: var(--product-tab-panel-min-h);
}

.product-tabs__tab {
  padding: 0 0 var(--space-sm);
  border: none;
  background: none;
  font-size: var(--fs-product-tab);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  line-height: var(--lh-tight);
}

.product-tabs__tab.is-active {
  color: var(--color-text);
  font-weight: var(--fw-medium);
  box-shadow: inset 0 calc(var(--border-width) * -1) 0 var(--color-text);
}

.product-info__desc {
  max-width: var(--product-desc-max);
}

.product-info__desc p {
  margin: 0;
  font-size: var(--fs-product-desc);
  line-height: var(--lh-body);
  color: var(--color-text);
}

.product-info__desc p + p {
  margin-top: var(--space-md);
}

.product-info__desc strong {
  font-weight: var(--fw-bold);
}

.product-info__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-info__list li {
  font-size: var(--fs-product-desc);
  line-height: var(--lh-body);
  color: var(--color-text);
  padding-left: var(--product-tab-bullet-indent);
  position: relative;
}

.product-info__list li + li {
  margin-top: var(--product-tab-list-gap);
}

.product-info__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

.product-story {
  width: 100%;
}

.product-story__media {
  width: 100%;
  height: var(--product-story-height);
  min-height: 28rem;
  background: var(--color-placeholder);
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: var(--border-width) solid var(--color-btn-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-align: center;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn--primary {
  background: var(--color-btn-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-btn-primary-text);
}

.btn--secondary {
  background: var(--color-btn-secondary-bg);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-header-bg);
}

.btn--secondary.is-added {
  background: var(--color-confirm);
  border-color: var(--color-confirm);
  color: var(--color-btn-primary-text);
}

.btn--ghost {
  width: auto;
  padding: var(--space-sm) var(--space-md);
  border-color: var(--color-border);
  background: transparent;
}

/* —— Brand story —— */

.brand-story {
  max-width: var(--brand-story-max);
  margin: 0 auto;
  padding: var(--brand-story-pad-y) var(--page-pad-x) var(--space-2xl);
}

.brand-story__heading {
  margin: 0 0 var(--space-2xl);
  font-family: var(--font-family-serif);
  font-size: var(--fs-brand-heading);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

.brand-story__copy p {
  margin: 0 0 var(--space-lg);
  font-size: var(--fs-brand-body);
  line-height: var(--lh-body);
  color: var(--color-text);
}

.brand-story__copy p:last-child {
  margin-bottom: 0;
}

.page-brand .collection-products {
  padding-top: 0;
}

/* —— Placeholder pages —— */

.placeholder-page {
  max-width: 40rem;
}

.placeholder-page p {
  margin: 0 0 var(--space-lg);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.cta-row {
  margin-top: var(--space-xl);
}

.cta-row .btn {
  width: auto;
  min-width: 12rem;
}

/* —— Cart —— */

.cart-layout {
  display: grid;
  gap: var(--space-2xl);
}

@media (min-width: 56rem) {
  .cart-layout {
    grid-template-columns: 1fr 18rem;
    align-items: start;
  }
}

.cart-item {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: var(--border-width) solid var(--color-border);
}

.cart-item__thumb {
  width: 6rem;
  height: 6rem;
  background: var(--color-placeholder);
}

.cart-item__title {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.cart-item__meta {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.cart-item__price {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-align: right;
}

.cart-summary {
  padding: var(--space-lg);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
}

.cart-summary__title {
  margin: 0 0 var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
}

.cart-summary__row--total {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: var(--border-width) solid var(--color-border);
  font-weight: var(--fw-bold);
}

.cart-summary .btn {
  margin-top: var(--space-lg);
}

/* —— Footer —— */

.site-footer {
  margin-top: auto;
  border-top: var(--border-width) solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-2xl) var(--page-pad-x) var(--space-xl);
}

.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--footer-gap);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.site-footer__heading {
  margin: 0 0 var(--space-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.site-footer__note {
  margin: 0 0 var(--space-md);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-body);
}

.site-footer__signup {
  margin: 0;
}

.site-footer__signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--footer-signup-gap);
}

.site-footer__email {
  flex: 1 1 8rem;
  min-width: 0;
  padding: var(--footer-input-pad-y) var(--footer-input-pad-x);
  border: var(--border-width) solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--fs-xs);
  line-height: var(--lh-tight);
}

.site-footer__email::placeholder {
  color: var(--color-text-muted);
}

.site-footer__signup-btn {
  flex: 0 0 auto;
  padding: var(--footer-input-pad-y) var(--space-md);
  border: var(--border-width) solid var(--color-btn-primary);
  background: var(--color-btn-primary);
  color: var(--color-btn-primary-text);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  cursor: pointer;
}

.site-footer__signup-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.site-footer__signup-confirm {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-text);
  line-height: var(--lh-body);
}

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

.site-footer__brand {
  padding-top: var(--space-xl);
  border-top: var(--border-width) solid var(--color-border);
  text-align: center;
  font-size: var(--fs-wordmark);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
}

/* —— Inspection overlay —— */

body.overlay-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.inspect-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  font-family: var(--font-family);
  color: var(--color-text);
}

.inspect-overlay[hidden] {
  display: none !important;
}

/* Full-screen light grey overlay panel (LOFI: Product details_3D_close) */
.inspect-overlay__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--color-overlay-panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--overlay-pad);
  font-family: var(--font-family);
}

/*
 * Belongs to the 3D scene layer (A1), same as the bag model and the
 * Closed/Open tab — so while the onboarding scrim (A2, z-index 3) is
 * visible, Close sits underneath it and is dimmed along with the rest
 * of A1. Once onboarding is dismissed the scrim is removed from the
 * DOM flow ([hidden]), leaving Close as the topmost interactive
 * control again with no z-index change needed.
 */
.inspect-overlay__close {
  position: absolute;
  top: var(--overlay-pad);
  right: var(--overlay-pad);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-overlay-close);
  font-family: var(--font-family);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

.inspect-overlay__close-icon {
  font-size: var(--fs-overlay-close);
  font-weight: var(--fw-regular);
  line-height: 1;
}

.inspect-overlay__close-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.inspect-overlay__close:hover {
  background: var(--color-header-bg);
}

/* Shared pill segmented control — Gesture|Pointer and Closed|Open
   use the same visual pattern (reference: warm-grey pill, white active
   segment with soft shadow, muted inactive text). */
.inspect-overlay__mode,
.inspect-overlay__bag-tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: var(--seg-pill-pad);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-seg-pill-bg);
  overflow: visible;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.inspect-overlay__mode {
  position: absolute;
  top: var(--overlay-pad);
  left: var(--overlay-pad);
  z-index: 2;
}

.inspect-overlay__mode-sep {
  display: none;
}

.inspect-overlay__bag-tabs {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
}

.inspect-overlay__mode-btn,
.inspect-overlay__bag-tab {
  min-width: var(--overlay-bag-tab-min);
  padding: var(--overlay-mode-pad-y) var(--overlay-mode-pad-x);
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-seg-inactive-text);
  font-family: var(--font-family);
  font-size: var(--fs-overlay-mode);
  font-weight: var(--fw-regular);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: var(--lh-tight);
  cursor: pointer;
  box-shadow: none;
}

.inspect-overlay__mode-btn.is-active,
.inspect-overlay__bag-tab.is-active {
  background: var(--color-seg-active-bg);
  color: var(--color-seg-active-text);
  font-weight: var(--fw-medium);
  box-shadow: var(--seg-active-shadow);
}

.inspect-overlay__input-label {
  display: none;
}

/* Vertical zoom slider — right edge, both modes. Same pill vocabulary
   as Gesture|Pointer and Closed|Open: soft grey track, white node with
   the segmented control's shadow. Created by overlay.js. */
.inspect-overlay__zoom {
  position: absolute;
  top: 50%;
  right: var(--overlay-zoom-right);
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--overlay-zoom-label-gap);
  user-select: none;
  -webkit-user-select: none;
}

.inspect-overlay__zoom-label {
  color: var(--color-seg-inactive-text);
  font-family: var(--font-family);
  font-size: var(--fs-overlay-zoom-label);
  font-weight: var(--fw-regular);
  line-height: 1;
}

/* Lit up while a pinch (gesture.js) or a slider drag is actively driving
   zoom in that direction — see overlay.js setGestureZoomDirection(). */
.inspect-overlay__zoom-label--active {
  color: var(--color-text);
  font-weight: var(--fw-bold);
}

.inspect-overlay__zoom-track {
  position: relative;
  width: var(--overlay-zoom-track-w);
  height: var(--overlay-zoom-track-h);
  border-radius: var(--radius-pill);
  background: var(--color-seg-pill-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  touch-action: none;
}

.inspect-overlay__zoom-track:focus-visible {
  outline: var(--border-width) solid var(--color-accent);
  outline-offset: 2px;
}

/* --zoom-node-pos is written by overlay.js: 0 = top (closest),
   1 = bottom (furthest). The node stays fully inside the track. */
.inspect-overlay__zoom-node {
  position: absolute;
  left: 50%;
  top: calc(
    var(--overlay-zoom-node-size) / 2 + var(--zoom-node-pos, 0.5) *
      (100% - var(--overlay-zoom-node-size))
  );
  transform: translate(-50%, -50%);
  width: var(--overlay-zoom-node-size);
  height: var(--overlay-zoom-node-size);
  border-radius: 50%;
  background: var(--color-seg-active-bg);
  box-shadow: var(--seg-active-shadow);
  pointer-events: none;
}

.inspect-overlay__scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  flex: 1;
}

.inspect-overlay__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.inspect-overlay__loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--color-bag-fill);
  font-family: var(--font-family);
  font-size: var(--fs-overlay-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Mode A only — pointer cue over the scene (overlay.js).
   0% and 100% must match so the infinite loop has no jump. */
@keyframes overlay-pointer-hint-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.28;
  }
}

.inspect-overlay__pointer-hint {
  position: absolute;
  bottom: var(--overlay-pointer-hint-bottom);
  left: 50%;
  z-index: 2;
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  transform: translateX(-50%);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--fs-overlay-pointer-hint);
  font-weight: var(--fw-regular);
  letter-spacing: 0.04em;
  line-height: var(--lh-tight);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--overlay-pointer-hint-fade);
}

.inspect-overlay__pointer-hint.is-visible {
  opacity: 1;
  animation: overlay-pointer-hint-blink var(--overlay-pointer-hint-blink);
}

/* Done looking — primary pill action, bottom-right of overlay panel */
@keyframes overlay-done-looking-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.025);
    opacity: 0.9;
  }
}

.inspect-overlay__done-looking {
  position: absolute;
  bottom: var(--overlay-done-looking-bottom);
  right: var(--overlay-done-looking-right);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: var(--border-width) solid var(--color-btn-primary);
  border-radius: var(--radius-pill);
  background: var(--color-btn-primary);
  color: var(--color-btn-primary-text);
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  line-height: var(--lh-tight);
  cursor: pointer;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity var(--overlay-done-looking-fade);
}

.inspect-overlay__done-looking:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.inspect-overlay__done-looking.is-visible {
  opacity: 1;
}

.inspect-overlay__done-looking.is-pulsing {
  animation: overlay-done-looking-pulse var(--overlay-done-looking-pulse);
}

.inspect-overlay__bag {
  width: var(--overlay-bag-size);
  color: var(--color-bag-fill);
}

.inspect-overlay__bag-svg {
  width: 100%;
  height: auto;
  display: block;
}

.inspect-overlay__bag .bag-body {
  fill: var(--color-bag-fill);
}

.inspect-overlay__bag .bag-handle {
  stroke: var(--color-bag-fill);
}

.inspect-overlay__bag.is-open .bag-body {
  opacity: 0.55;
}

/* Closed | Open — shares pill style with Gesture | Pointer above */

/* Onboarding cards — LOFI landscape layout */
.overlay-onboarding {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Extra top clearance keeps the opaque white card from visually
     cutting into the dimmed Close button behind the scrim, at every
     step and regardless of viewport width. */
  padding: var(--overlay-onboarding-pad-top) var(--overlay-pad) var(--overlay-pad);
  background: var(--color-onboarding-scrim);
}

/*
 * Fixed 1260x920 card per spec. min() keeps it from overflowing on
 * smaller viewports while defaulting to the exact fixed size on any
 * normal desktop screen.
 */
.overlay-onboarding__card {
  position: relative;
  width: min(var(--overlay-card-w), calc(100vw - 2 * var(--overlay-pad)));
  height: min(
    var(--overlay-card-h),
    calc(100vh - var(--overlay-onboarding-pad-top) - var(--overlay-pad))
  );
  padding: var(--overlay-card-pad-top) var(--overlay-card-pad-x)
    var(--overlay-card-pad-bottom);
  background: var(--color-surface);
  border-radius: var(--overlay-card-radius);
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

/* Progress dots only — Next/Done now lives at the card's own
   bottom-right corner (below) so it never competes with the
   chrome-level Close button in the viewport's top-right corner. */
.overlay-onboarding__top {
  min-height: 1.75rem;
  margin-bottom: var(--space-xl);
}

.overlay-onboarding__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--overlay-progress-gap);
  padding: 0 3.5rem;
}

/*
 * Top-right of the CARD (shares the same row as the progress dots),
 * not the viewport — the card only ever starts below
 * --overlay-onboarding-pad-top, which already clears the chrome-level
 * Close button, so this can never overlap it.
 */
.overlay-onboarding__next {
  position: absolute;
  top: var(--overlay-card-pad-top);
  right: var(--overlay-card-pad-x);
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--fs-overlay-next);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
}

.overlay-onboarding__seg {
  flex: 1;
  max-width: 4.5rem;
  height: var(--overlay-progress-h);
  background: var(--color-progress-idle);
  border-radius: var(--radius-pill);
}

.overlay-onboarding__seg.is-active {
  height: var(--overlay-progress-h-active);
  background: var(--color-progress-active);
}

.overlay-onboarding__main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-lg) var(--space-xl);
}

.overlay-onboarding__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-family);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

.overlay-onboarding__body {
  margin: 0 0 var(--space-xl);
  max-width: 28rem;
  font-family: var(--font-family);
  font-size: var(--fs-product-desc);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  line-height: var(--lh-body);
}

/*
 * Fills the remaining vertical space between the body text and the
 * Skip/Next row (step 1 first — same rule applies to steps 2 and 3
 * once approved, since they share this class).
 */
.overlay-onboarding__illus {
  flex: 1;
  min-height: 0;
  width: min(100%, var(--overlay-illus-size));
  margin-top: var(--space-lg);
  color: var(--color-text);
}

.overlay-onboarding__illus.is-empty {
  display: none;
}

.overlay-onboarding__illus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.overlay-onboarding__skip {
  align-self: flex-start;
  margin-top: auto;
  padding: var(--space-sm) 0 0;
  border: none;
  background: none;
  color: var(--color-overlay-skip);
  font-family: var(--font-family);
  font-size: var(--fs-overlay-skip);
  font-weight: var(--fw-regular);
}

.overlay-onboarding__skip:hover {
  color: var(--color-text-muted);
}

/* —— Gesture layer (Mode B): skeletal hand overlay + no-hand hint ——
   Elements are created by gesture.js inside .inspect-overlay__scene.
   z-index 2 keeps them above the 3D canvas but below the onboarding
   scrim (z-index 3), so the skeleton dims with everything else while
   the cards are up. */

.gesture-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.gesture-hint {
  position: absolute;
  top: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: var(--fs-gesture-hint);
  letter-spacing: 0.08em;
  pointer-events: none;
}

/* —— Post-inspection questionnaire (survey.js) —— */

#survey-flow.survey-flow {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--color-onboarding-scrim);
  font-family: var(--font-family);
  color: var(--color-text);
}

#survey-flow .survey-flow__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: var(--overlay-pad);
}

#survey-flow .survey-flow__transition {
  width: 100%;
  max-width: var(--survey-card-max-w);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

#survey-flow .survey-flow__transition-title {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-surface);
}

#survey-flow .survey-flow__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--survey-card-max-w);
  height: var(--survey-card-h);
  padding: var(--survey-card-pad-y) var(--survey-card-pad-x);
  background: var(--color-surface);
  border-radius: var(--survey-card-radius);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

#survey-flow .survey-flow__card--thanks {
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-3xl) var(--survey-card-pad-x);
}

#survey-flow .survey-flow__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--survey-header-gap);
  margin-bottom: var(--space-xl);
}

#survey-flow .survey-flow__progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--survey-progress-gap);
  min-width: 0;
}

#survey-flow .survey-flow__progress-seg {
  flex: 1;
  height: var(--survey-progress-h);
  border-radius: var(--radius-pill);
  background: var(--color-progress-idle);
}

#survey-flow .survey-flow__progress-seg.is-done,
#survey-flow .survey-flow__progress-seg.is-active {
  background: var(--color-progress-active);
}

#survey-flow .survey-flow__progress-seg.is-active {
  height: var(--survey-progress-h-active);
}

#survey-flow .survey-flow__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--survey-close-size);
  height: var(--survey-close-size);
  padding: 0;
  border: var(--border-width) solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  cursor: pointer;
}

#survey-flow .survey-flow__close-icon {
  display: block;
  width: 1em;
  height: 1em;
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: 1;
  text-align: center;
  transform: translateY(-0.05em);
}

#survey-flow .survey-flow__close:hover {
  background: var(--color-header-bg);
}

#survey-flow .survey-flow__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: var(--space-xs);
}

#survey-flow .survey-flow__section-label {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-survey-section-label);
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: var(--lh-tight);
}

#survey-flow .survey-flow__section-title {
  margin: 0 0 var(--space-xl);
  font-family: var(--font-family);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

#survey-flow .survey-flow__items {
  display: flex;
  flex-direction: column;
  gap: var(--survey-item-gap);
}

#survey-flow .survey-flow__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

#survey-flow .survey-flow__item-label {
  margin: 0;
  font-size: var(--fs-survey-item);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
}

#survey-flow .survey-flow__semantic {
  display: grid;
  grid-template-columns: minmax(4.5rem, 1fr) auto minmax(4.5rem, 1fr);
  align-items: center;
  gap: var(--space-md);
}

#survey-flow .survey-flow__anchor {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-tight);
}

#survey-flow .survey-flow__anchor--left {
  text-align: right;
}

#survey-flow .survey-flow__anchor--right {
  text-align: left;
}

#survey-flow .survey-flow__scale {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-sm);
}

#survey-flow .survey-flow__scale-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--survey-scale-num-gap);
}

#survey-flow .survey-flow__scale-num {
  font-size: var(--fs-survey-scale-num);
  font-weight: var(--fw-regular);
  line-height: 1;
  color: var(--color-text-muted);
}

#survey-flow .survey-flow__point {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: var(--border-width) solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  cursor: pointer;
}

#survey-flow .survey-flow__point:hover {
  border-color: var(--color-text);
}

#survey-flow .survey-flow__point.is-selected {
  border-color: var(--color-btn-primary);
  background: var(--color-btn-primary);
}

#survey-flow .survey-flow__point:focus-visible {
  outline: var(--border-width) solid var(--color-accent);
  outline-offset: 2px;
}

#survey-flow .survey-flow__wtp {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

#survey-flow .survey-flow__wtp-label {
  margin: 0;
  font-size: var(--fs-survey-item);
  line-height: var(--lh-body);
}

#survey-flow .survey-flow__wtp-value {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

#survey-flow .survey-flow__wtp-slider {
  width: 100%;
  margin: 0;
  accent-color: var(--color-btn-primary);
  cursor: pointer;
}

#survey-flow .survey-flow__wtp-bounds {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-tight);
}

#survey-flow .survey-flow__footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: var(--border-width) solid var(--color-border);
}

#survey-flow .survey-flow__error {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-text);
  line-height: var(--lh-body);
}

#survey-flow .survey-flow__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

#survey-flow .survey-flow__back {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  cursor: pointer;
}

#survey-flow .survey-flow__back:hover {
  color: var(--color-accent);
}

#survey-flow .survey-flow__action {
  margin-left: auto;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: var(--border-width) solid var(--color-btn-primary);
  border-radius: var(--radius-pill);
  background: var(--color-btn-primary);
  color: var(--color-btn-primary-text);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  cursor: pointer;
}

#survey-flow .survey-flow__action:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

#survey-flow .survey-flow__thanks-text {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  text-align: center;
  color: var(--color-text);
}

#survey-flow .survey-flow__home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: var(--border-width) solid var(--color-btn-primary);
  border-radius: var(--radius-pill);
  background: var(--color-btn-primary);
  color: var(--color-btn-primary-text);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  line-height: var(--lh-tight);
  text-decoration: none;
  cursor: pointer;
}

#survey-flow .survey-flow__home-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-btn-primary-text);
}
