/* Shared visual system for the buying and trade-in landings. */
.retail-page {
  --retail-ink: #153b34;
  --retail-muted: #45564b;
  --retail-paper: #f4f2e9;
  --retail-surface: #fffdf8;
  --retail-line: #d5dbce;
  --retail-action: #174c3b;
  --retail-action-hover: #103c2e;
  --retail-ledger: #163e33;
  --retail-ledger-text: #f3f7ef;
  --retail-ledger-muted: #cfdfcc;
  --retail-focus: #537933;
  color: var(--retail-ink);
}

html[data-theme="dark"] .retail-page {
  --retail-ink: #eaf1e5;
  --retail-muted: #c0cdc1;
  --retail-paper: #172921;
  --retail-surface: #20342a;
  --retail-line: #496051;
  --retail-action: #b4d28b;
  --retail-action-hover: #c9dda8;
  --retail-ledger: #20392e;
  --retail-ledger-text: #f3f7ef;
  --retail-ledger-muted: #cfdfcc;
  --retail-focus: #c6dd9d;
}

.retail-page .pl-wrap { max-width: 1180px; }
.retail-page .trade-shell { max-width: 1152px; }

.retail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  overflow: hidden;
  border-radius: 16px;
  background: var(--retail-paper);
  color: var(--retail-ink);
}

.retail-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(1.4rem, 4.5vw, 3.7rem);
}

.retail-title {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.55rem, 4.4vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -.036em;
  line-height: 1.015;
  text-wrap: balance;
}

.retail-lead {
  max-width: 40ch;
  margin: .9rem 0 0;
  color: var(--retail-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
}

.retail-intents {
  display: grid;
  margin-top: 1.65rem;
}

.retail-intent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .95rem 0;
  border-top: 1px solid var(--retail-line);
}

.retail-intent h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.retail-intent p,
.retail-cross-link {
  margin: .28rem 0 0;
  color: var(--retail-muted);
  font-size: .91rem;
  line-height: 1.47;
}

.retail-cross-link {
  margin-top: .9rem;
}

.retail-cross-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--retail-ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .21em;
}

.retail-button {
  display: inline-flex;
  min-height: 46px;
  justify-content: center;
  align-items: center;
  padding: .64rem .9rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .91rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.22;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.retail-button:hover { transform: translateY(-1px); }
.retail-button:active { transform: translateY(1px); }

.retail-button-primary { background: var(--retail-action); color: #fff; }
.retail-button-primary:hover { background: var(--retail-action-hover); }
.retail-button-secondary { background: transparent; border-color: var(--retail-line); color: var(--retail-ink); }
.retail-button-secondary:hover { background: var(--retail-surface); }
html[data-theme="dark"] .retail-button-primary { color: #142719; }

.retail-page a:focus-visible,
.retail-page button:focus-visible,
.retail-page summary:focus-visible,
.retail-page input:focus-visible,
.retail-page textarea:focus-visible,
.retail-page select:focus-visible {
  outline: 2px solid var(--retail-focus);
  outline-offset: 3px;
}

.retail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.45rem;
}

.retail-hero-photo {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--retail-line);
}

.retail-hero-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.retail-hero-market .retail-hero-photo img { object-position: 50% 56%; }
.retail-hero-trade .retail-hero-photo img { object-position: 50% 48%; }

.retail-trade-proof {
  display: grid;
  grid-template-rows: minmax(230px, 1fr) auto;
  min-width: 0;
}

.retail-trade-proof .retail-hero-photo { min-height: 230px; }

.retail-calculation {
  background: var(--retail-ledger);
  color: var(--retail-ledger-text);
  padding: 1.35rem clamp(1.2rem, 3.7vw, 2.25rem);
}

.retail-calculation h2 {
  margin: 0 0 .6rem;
  font-size: 1.14rem;
  font-weight: 800;
}

.retail-calculation dl { margin: 0; }

.retail-calculation dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  padding: .37rem 0;
  line-height: 1.32;
}

.retail-calculation dt { color: var(--retail-ledger-muted); font-size: .88rem; }
.retail-calculation dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.retail-calculation .retail-total { margin-top: .28rem; padding-top: .65rem; border-top: 1px solid #759184; }
.retail-calculation .retail-total dt { color: var(--retail-ledger-text); font-weight: 800; }
.retail-calculation .retail-total dd { font-size: clamp(1.14rem, 2.3vw, 1.55rem); font-weight: 800; }
.retail-calculation p { margin: .35rem 0 0; font-size: .8rem; color: var(--retail-ledger-muted); }

.retail-page .pl-products,
.retail-page .pl-faq,
.retail-sell-guide,
.retail-page .retail-form-section {
  margin-top: clamp(1.6rem, 4.4vw, 3.2rem);
}

.retail-page .pl-products h2,
.retail-page .pl-faq h2,
.retail-sell-guide h2,
.retail-form-section .form-side h2 {
  margin: 0;
  color: var(--retail-ink);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
}

.retail-page .pl-products-head p,
.retail-sell-guide p,
.retail-checklist dd { color: var(--retail-muted); }

.retail-sell-guide {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 4vw, 3.2rem);
  padding: clamp(1.2rem, 4vw, 2.6rem);
  border-radius: 16px;
  background: var(--retail-paper);
}

.retail-sell-guide p { margin: .7rem 0 1.05rem; line-height: 1.6; }
.retail-checklist { display: grid; gap: .75rem; margin: 0; }
.retail-checklist dt { font-weight: 800; }
.retail-checklist dd { margin: .18rem 0 0; font-size: .9rem; line-height: 1.55; }

.retail-page .retail-form-section {
  scroll-margin-top: 6rem;
  border: 1px solid var(--retail-line);
  border-radius: 16px;
  background: var(--retail-surface);
  box-shadow: none;
}

.retail-form-section .form-grid {
  gap: clamp(1.1rem, 4vw, 3rem);
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
}

.retail-page .retail-form-section :is(.form-side.light, .trade-form),
html[data-theme="dark"] .retail-page .retail-form-section :is(.form-side.light, .trade-form) {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

@media (max-width: 900px) {
  .retail-form-section .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .retail-intent { grid-template-columns: 1fr; }
  .retail-intent .retail-button { justify-self: start; }
}

@media (max-width: 680px) {
  .retail-hero, .retail-sell-guide { grid-template-columns: 1fr; }
  .trade-page.retail-page { padding-inline: .75rem; }
  .retail-page .retail-hero { margin-top: 2.25rem; }
  body:has(.retail-page) :is(.product-landing-breadcrumb, .trade-breadcrumb) { display: none; }
  .retail-page .retail-form-section { scroll-margin-top: 5.2rem; }
  .retail-copy { padding: 1.3rem 1.3rem 1.05rem; }
  .retail-title { font-size: clamp(2.32rem, 8.75vw, 3rem); max-width: 17ch; }
  .retail-lead { margin-top: .75rem; }
  .retail-intents { margin-top: 1.15rem; }
  .retail-intent { grid-template-columns: 1fr; gap: .62rem; padding: .69rem 0; }
  .retail-intent .retail-button, .retail-actions .retail-button { width: 100%; }
  .retail-intent .retail-button { justify-self: stretch; }
  .retail-cross-link { margin-top: .48rem; }
  .retail-actions { display: grid; margin-top: 1.05rem; gap: .55rem; }
  .retail-hero-photo { min-height: 0; aspect-ratio: 8 / 5; }
  .retail-trade-proof { display: flex; flex-direction: column-reverse; }
  .retail-trade-proof .retail-hero-photo { min-height: 0; }
  .retail-page .pl-products-head .retail-button { margin-top: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .retail-button { transition: none; }
  .retail-button:hover, .retail-button:active { transform: none; }
}
