:root {
  --commerce-ink: #171918;
  --commerce-paper: #f2f0e9;
  --commerce-accent: #8b4f2b;
  --commerce-lime: #c9ff3d;
}

.commerce-proof {
  background: var(--commerce-ink);
  color: #f7f4ed;
  padding: clamp(88px, 10vw, 156px) 0;
}

.commerce-proof__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .65fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.commerce-proof__index,
.commerce-product__eyebrow,
.commerce-compare__label,
.prototype-chip {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.commerce-proof__index { color: #b8b7af; }

.commerce-proof h2 {
  max-width: 940px;
  margin: 18px 0 0;
  font-size: clamp(48px, 7.2vw, 118px);
  line-height: .92;
  letter-spacing: -.065em;
}

.commerce-proof h2 em {
  color: #b6b4ab;
  font-style: normal;
}

.commerce-proof__intro {
  color: #c9c8c0;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.65;
}

.commerce-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: clamp(18px, 2.5vw, 42px);
  align-items: stretch;
}

.commerce-product {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  background: #ece9df;
  color: var(--commerce-ink);
  min-height: 680px;
}

.commerce-product__visual {
  min-height: 540px;
  overflow: hidden;
  position: relative;
}

.commerce-product__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commerce-product__visual figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  background: rgba(21, 23, 22, .82);
  color: white;
  font-size: 11px;
}

.commerce-product__body {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 62px);
}

.prototype-chip {
  width: max-content;
  padding: 8px 10px;
  color: #603519;
  background: #ead5c4;
}

.commerce-product h3 {
  margin: 26px 0 10px;
  font-size: clamp(34px, 4vw, 62px);
  line-height: .96;
  letter-spacing: -.05em;
}

.commerce-product__sku { color: #706f68; font-size: 13px; }

.commerce-product__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 34px 0 22px;
}

.commerce-product__price strong { font-size: 44px; letter-spacing: -.05em; }
.commerce-product__price span { color: #73726c; font-size: 13px; }

.commerce-product__specs {
  display: grid;
  gap: 12px;
  padding: 22px 0;
  margin: 0 0 28px;
  border-top: 1px solid #c9c5b9;
  border-bottom: 1px solid #c9c5b9;
  list-style: none;
}

.commerce-product__specs li { display: flex; gap: 10px; line-height: 1.45; }
.commerce-product__specs li::before { content: "✓"; color: var(--commerce-accent); font-weight: 800; }
.commerce-product__actions { margin-top: auto; }
.commerce-product__actions .button { width: 100%; justify-content: center; }
.commerce-product__fine { margin: 12px 0 0; color: #706f68; font-size: 12px; line-height: 1.5; }

.commerce-compare {
  display: flex;
  flex-direction: column;
  background: #292b2a;
  padding: clamp(30px, 4vw, 58px);
}

.commerce-compare h3 {
  margin: 18px 0 34px;
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1;
  letter-spacing: -.05em;
}

.commerce-compare__rows { border-top: 1px solid #4b4d4b; }
.commerce-compare__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #4b4d4b;
}
.commerce-compare__row strong { font-size: 18px; }
.commerce-compare__row a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.commerce-compare__row span { color: #c2c1b9; }
.commerce-compare__row small { grid-column: 1 / -1; color: #989991; line-height: 1.5; }
.commerce-compare__row.is-focus { color: var(--commerce-lime); }
.commerce-compare__note { margin: auto 0 0; padding-top: 34px; color: #aaa9a2; font-size: 12px; line-height: 1.55; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .hero-button { margin-top: 0; }
.button.button-ghost { color: white; background: rgba(20, 21, 20, .42); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.cinema-hero h1 em { color: rgba(255,255,255,.64); font-style: normal; }

.ai-upload {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.ai-upload__pick {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(24,25,24,.22);
  cursor: pointer;
}

.ai-upload__pick strong { font-size: 14px; }
.ai-upload__pick span { min-width: 0; overflow: hidden; color: #74736d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ai-upload__pick:focus-within { outline: 2px solid #315ad4; outline-offset: 3px; }
.ai-upload__file {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.ai-upload__run[disabled] { opacity: .45; cursor: not-allowed; }
.ai-upload__status { min-height: 21px; margin: 0; color: #66665f; font-size: 12px; }

.ai-demo__recommendation {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  width: min(320px, calc(100% - 36px));
  padding: 18px;
  background: rgba(245, 242, 233, .96);
  color: #1a1b1a;
  box-shadow: 0 22px 80px rgba(0,0,0,.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.ai-planning.has-commerce-result .ai-demo__recommendation { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.ai-planning.has-user-photo .ai-demo__image--before {
  opacity: 1 !important;
  animation: none !important;
}
.ai-planning.has-user-photo .ai-demo__image--after {
  opacity: 0 !important;
  animation: none !important;
}
.ai-planning.has-user-photo .ai-demo__marker,
.ai-planning.has-user-photo .ai-demo__confirm,
.ai-planning.has-user-photo .ai-demo__result {
  opacity: 0 !important;
  animation: none !important;
}
.ai-planning.has-generated-preview .ai-demo__marker--wash,
.ai-planning.has-generated-preview .ai-demo__confirm,
.ai-planning.has-generated-preview .ai-demo__result {
  opacity: 1 !important;
}
.ai-demo__recommendation span { color: #7b5a42; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ai-demo__recommendation strong { display: block; margin: 7px 0 4px; font-size: 20px; }
.ai-demo__recommendation p { margin: 0 0 12px; color: #676761; font-size: 12px; }
.ai-demo__recommendation button { border: 0; background: #1c1e1d; color: white; padding: 11px 14px; font-weight: 750; cursor: pointer; }

.commerce-cart {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  margin: auto 12px auto auto;
  border: 0;
  color: #181a19;
  background: #f4f1e8;
}
.commerce-cart::backdrop { background: rgba(11,12,11,.62); backdrop-filter: blur(5px); }
.commerce-cart__inner { min-height: 100%; padding: 28px; }
.commerce-cart__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #cfcbc0; padding-bottom: 20px; }
.commerce-cart__head h2 { margin: 0; font-size: 22px; }
.commerce-cart__close { width: 40px; height: 40px; border: 1px solid #bdb9ad; background: transparent; font-size: 22px; cursor: pointer; }
.commerce-cart__item { display: grid; grid-template-columns: 112px 1fr auto; gap: 16px; padding: 28px 0; border-bottom: 1px solid #cfcbc0; }
.commerce-cart__item img { width: 112px; height: 112px; object-fit: cover; }
.commerce-cart__item h3 { margin: 4px 0 8px; font-size: 17px; }
.commerce-cart__item p { margin: 0; color: #72716a; font-size: 12px; line-height: 1.5; }
.commerce-cart__total { display: flex; justify-content: space-between; padding: 22px 0; font-size: 18px; }
.commerce-cart__checkout { width: 100%; padding: 16px; border: 0; background: #b8b6ad; color: #66665f; font-weight: 800; }
.commerce-cart__boundary { margin: 14px 0 0; color: #6d6c65; font-size: 12px; line-height: 1.55; }

.commerce-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  margin: -18px auto 68px;
  padding: clamp(24px, 3vw, 42px);
  color: #f5f2e9;
  background: #1c1e1d;
}
.commerce-entry__number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a9aaa4;
}
.commerce-entry h2 { margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 50px); line-height: 1; letter-spacing: -.045em; }
.commerce-entry p { margin: 0; color: #c4c3bc; line-height: 1.55; }
.commerce-entry__price { color: var(--commerce-lime); white-space: nowrap; }
.commerce-entry__boundary { grid-column: 2 / -1; color: #8f908a; font-size: 11px; }

@media (max-width: 980px) {
  .commerce-proof__head,
  .commerce-proof__grid,
  .commerce-product { grid-template-columns: 1fr; }
  .commerce-product__visual { min-height: 420px; }
  .commerce-product { min-height: 0; }
  .commerce-entry { grid-template-columns: 1fr; }
  .commerce-entry__boundary { grid-column: auto; }
}

@media (max-width: 620px) {
  .commerce-proof { padding: 72px 0; }
  .commerce-proof h2 { font-size: clamp(44px, 14vw, 68px); }
  .commerce-proof__head { gap: 24px; }
  .commerce-product__visual { min-height: 330px; }
  .commerce-product__body, .commerce-compare { padding: 26px 22px; }
  .hero-actions { display: grid; width: min(100%, 330px); }
  .hero-actions .button { justify-content: center; }
  .ai-demo__recommendation { right: 10px; bottom: 10px; width: calc(100% - 20px); }
  .commerce-cart { margin: auto 0 0; width: 100%; max-width: none; }
  .commerce-cart__item { grid-template-columns: 82px 1fr; }
  .commerce-cart__item img { width: 82px; height: 82px; }
  .commerce-cart__item > strong { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-demo__recommendation { transition: none; }
}
