/* Lamp landing. Photo slots are deliberate placeholders, not broken images. */
.cp-lamp-page {
  --slot-ink: var(--cp-slot-edge);
}

/* Placeholder slot */
.cp-slot {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.375rem;
  aspect-ratio: var(--ratio, 4 / 5);
  margin: 0;
  padding: var(--cp-space-sm);
  border: 2px dashed var(--slot-ink);
  background-color: var(--cp-slot-wash);
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--cp-ink) 4%, transparent) 0 10px,
    transparent 10px 20px
  );
  text-align: center;
}

.cp-slot__tag {
  padding: 0.125rem 0.5rem;
  background: var(--cp-amber);
  /* Explicit: inside the dark slots the tag used to inherit --cp-sheet, which is
     1.98:1 on amber. Ink on amber is 9.30:1. */
  color: var(--cp-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cp-slot__label {
  max-width: 24ch;
  color: var(--cp-ink);
  font-size: var(--cp-text-sm);
  font-weight: 600;
  line-height: 1.3;
}

.cp-slot__hint {
  max-width: 28ch;
  color: var(--cp-graphite);
  font-size: var(--cp-text-xs);
}

.cp-spotlight .cp-slot,
.cp-lamp-close .cp-slot {
  border-color: color-mix(in srgb, var(--cp-sheet) 30%, transparent);
  background-color: var(--cp-slot-dark);
  background-image: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--cp-sheet) 5%, transparent) 0 10px, transparent 10px 20px);
}

.cp-spotlight .cp-slot__label,
.cp-lamp-close .cp-slot__label {
  color: var(--cp-sheet);
}

.cp-spotlight .cp-slot__hint,
.cp-lamp-close .cp-slot__hint {
  color: var(--cp-graphite-on-dark);
}

/* Ink bands: --cp-graphite is a light-surface token (2.76:1 on --cp-ink), so
   every muted line inside them uses --cp-graphite-on-dark instead. */
.cp-lamp-steps,
.cp-lamp-buy,
.cp-lamp-close {
  --cp-graphite: var(--cp-graphite-on-dark);
}

.cp-lamp-steps .cp-section__title,
.cp-lamp-buy .cp-section__title,
.cp-lamp-close .cp-section__title {
  color: var(--cp-sheet);
}

.cp-lamp-steps .cp-section__lead,
.cp-lamp-buy .cp-section__lead,
.cp-lamp-close .cp-section__lead {
  color: var(--cp-graphite-on-dark);
}

/* Pending data marker */
.cp-pending {
  display: inline-block;
  padding: 0 0.375rem;
  border-bottom: 2px solid var(--cp-amber);
  background: var(--cp-amber-soft);
  font-size: 0.95em;
  font-weight: 600;
}

/* On dark blocks the chip keeps its amber fill, so the text must go back to ink. */
.cp-lamp-steps .cp-pending,
.cp-lamp-buy .cp-pending,
.cp-lamp-close .cp-pending {
  color: var(--cp-ink);
}

/* Hero */
.cp-lamp-hero {
  padding-block: clamp(2rem, 4.5vw, 3.5rem) var(--cp-space-2xl);
}

.cp-lamp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.cp-lamp-hero__eyebrow {
  margin-bottom: var(--cp-space-sm);
  color: var(--cp-graphite);
  font-size: var(--cp-text-sm);
  font-weight: 500;
}

.cp-lamp-hero__title {
  font-size: var(--cp-display-lg);
}

.cp-lamp-hero__lead {
  max-width: 34rem;
  margin-top: var(--cp-space-md);
  color: var(--cp-graphite);
  font-size: var(--cp-text-lg);
}

.cp-lamp-hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--cp-space-xs);
  margin-top: var(--cp-space-md);
  font-size: var(--cp-text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cp-lamp-hero__price small {
  color: var(--cp-graphite);
  font-size: var(--cp-text-sm);
  font-weight: 500;
}

.cp-lamp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cp-space-xs);
  margin-top: var(--cp-space-md);
}

/* One button per row at 390px, so neither call to action is a 140px sliver. */
.cp-lamp-hero__actions .cp-button {
  flex: 1 1 100%;
}

.cp-lamp-hero__proof {
  display: grid;
  gap: var(--cp-space-xs);
  margin: var(--cp-space-lg) 0 0;
  padding-top: var(--cp-space-md);
  border-top: 1px solid var(--cp-line);
  list-style: none;
  font-size: var(--cp-text-sm);
  font-weight: 500;
}

.cp-lamp-hero__proof li {
  display: flex;
  align-items: center;
  gap: var(--cp-space-xs);
}

.cp-lamp-hero__proof li::before {
  content: '';
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--cp-amber);
  outline: 2px solid var(--cp-ink);
}

.cp-lamp-hero__media {
  position: relative;
  margin: 0;
  border: var(--cp-frame) solid var(--cp-ink);
  background: var(--cp-ink);
  box-shadow: 10px 10px 0 var(--cp-ink);
}

.cp-lamp-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cp-lamp-hero__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.375rem 0.75rem;
  background: var(--cp-amber);
  font-size: var(--cp-text-xs);
  font-weight: 600;
}

/* Proof gallery */
.cp-lamp-proof__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--cp-space-sm);
}

.cp-lamp-proof__grid figure {
  margin: 0;
}

.cp-lamp-proof__grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cp-lamp-proof__wide {
  grid-column: span 2;
}

.cp-lamp-proof__wide img,
.cp-lamp-proof__wide .cp-slot {
  aspect-ratio: 8 / 5;
}

/* Steps */
.cp-lamp-steps {
  background: var(--cp-ink);
  color: var(--cp-sheet);
}

.cp-lamp-steps__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--cp-space-lg);
  counter-reset: step;
}

.cp-lamp-step {
  display: grid;
  gap: var(--cp-space-xs);
  padding-top: var(--cp-space-md);
  border-top: 3px solid var(--cp-amber);
}

.cp-lamp-step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--cp-font-display);
  font-size: var(--cp-text-xl);
  line-height: 1;
}

.cp-lamp-step h3 {
  font-size: var(--cp-text-lg);
  font-weight: 600;
}

.cp-lamp-step p {
  color: var(--cp-graphite-on-dark);
  font-size: var(--cp-text-sm);
}

/* Specs */
.cp-lamp-specs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cp-lamp-specs__media img {
  display: block;
  width: 100%;
  height: auto;
}

.cp-lamp-specs__table {
  margin: 0;
  border-top: var(--cp-frame) solid var(--cp-ink);
}

.cp-lamp-specs__table div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--cp-space-sm);
  padding-block: var(--cp-space-sm);
  border-bottom: 1px solid var(--cp-line);
}

.cp-lamp-specs__table dt {
  color: var(--cp-graphite);
  font-size: var(--cp-text-sm);
}

.cp-lamp-specs__table dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Buy block */
.cp-lamp-buy {
  background: var(--cp-ink);
  color: var(--cp-sheet);
}

.cp-lamp-buy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--cp-space-md);
  margin-top: var(--cp-space-lg);
}

.cp-lamp-option {
  display: grid;
  gap: var(--cp-space-xs);
  padding: var(--cp-space-md);
  border: 1px solid var(--cp-line-dark);
}

.cp-lamp-option--best {
  border-color: var(--cp-amber);
  background: color-mix(in srgb, var(--cp-amber) 8%, transparent);
}

.cp-lamp-option__name {
  font-size: var(--cp-text-xl);
  font-weight: 600;
}

.cp-lamp-option__price {
  font-size: var(--cp-display-md);
  font-family: var(--cp-font-display);
  line-height: 1;
}

.cp-lamp-option__text {
  color: var(--cp-graphite-on-dark);
  font-size: var(--cp-text-sm);
}

.cp-lamp-option ul {
  display: grid;
  gap: 0.375rem;
  margin: var(--cp-space-xs) 0 var(--cp-space-sm);
  padding: 0;
  list-style: none;
  font-size: var(--cp-text-sm);
}

.cp-lamp-option li {
  display: flex;
  gap: var(--cp-space-xs);
}

.cp-lamp-option li::before {
  content: '';
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.45em;
  background: var(--cp-amber);
}

.cp-lamp-option .cp-button {
  justify-self: start;
  margin-top: auto;
}

/* On the dark block the default filled button would vanish. */
.cp-lamp-option .cp-button:not(.cp-button--amber) {
  border-color: var(--cp-sheet-edge);
  background: transparent;
  color: var(--cp-sheet);
}

.cp-lamp-option .cp-button:not(.cp-button--amber):hover {
  border-color: var(--cp-amber);
  background: var(--cp-amber);
  color: var(--cp-ink);
}

.cp-lamp-close .cp-button:not(.cp-button--amber) {
  border-color: var(--cp-sheet-edge);
  background: transparent;
  color: var(--cp-sheet);
}

.cp-lamp-buy__note {
  margin-top: var(--cp-space-md);
  color: var(--cp-graphite-on-dark);
  font-size: var(--cp-text-sm);
}

/* Trust row */
.cp-lamp-trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--cp-space-md);
  margin-top: var(--cp-space-lg);
  padding-top: var(--cp-space-lg);
  border-top: 1px solid var(--cp-line-dark);
}

.cp-lamp-trust h3 {
  margin-bottom: 0.25rem;
  font-size: var(--cp-text-md);
  font-weight: 600;
}

.cp-lamp-trust p {
  color: var(--cp-graphite-on-dark);
  font-size: var(--cp-text-sm);
}

/* Reviews */
.cp-lamp-reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--cp-space-md);
}

.cp-lamp-review {
  display: grid;
  gap: var(--cp-space-sm);
  padding: var(--cp-space-md);
  border: 1px solid var(--cp-line);
  background: var(--cp-sheet);
}

.cp-lamp-review .cp-slot {
  aspect-ratio: 1;
}

.cp-lamp-review blockquote {
  margin: 0;
  font-size: var(--cp-text-md);
}

.cp-lamp-review figcaption {
  color: var(--cp-graphite);
  font-size: var(--cp-text-sm);
}

/* Closing */
.cp-lamp-close {
  background: var(--cp-ink);
  color: var(--cp-sheet);
}

.cp-lamp-close__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cp-lamp-close__title {
  font-size: var(--cp-display-lg);
}

.cp-lamp-close__lead {
  max-width: 30rem;
  margin-top: var(--cp-space-md);
  color: var(--cp-graphite-on-dark);
  font-size: var(--cp-text-lg);
}

.cp-lamp-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cp-space-xs);
  margin-top: var(--cp-space-lg);
}

.cp-lamp-close__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------------ *
 * Wider screens. 601px and 1081px are the exact complements of the
 * 600px / 1080px max-width queries these replace.
 * ------------------------------------------------------------------ */
@media (min-width: 601px) {
  .cp-lamp-buy__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* `0 1 auto` is the initial flex: the buttons sit side by side again. */
  .cp-lamp-hero__actions .cp-button {
    flex: 0 1 auto;
  }
}

@media (min-width: 1081px) {
  .cp-lamp-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .cp-lamp-specs__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .cp-lamp-close__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .cp-lamp-steps__grid,
  .cp-lamp-reviews__grid,
  .cp-lamp-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* -----------------------------------------------------------------------------
 * Hero slider
 *
 * A scroll-snap rail, not a script-driven carousel: it swipes on a phone, scrolls
 * with a trackpad and arrows with a keyboard before lamparas-hero.js loads. The
 * script only adds the dots and the auto-advance, so a failure there costs the
 * navigation, never the pictures.
 * -------------------------------------------------------------------------- */
.cp-hero-slider {
  position: relative;
}

/*
 * The frame and the offset shadow live on the track, not on each slide.
 * A slide's shadow is drawn outside its box and the track's overflow clips it — measured:
 * the figure's right edge and the track's were the same pixel, so 10px of shadow fell
 * outside and vanished. An element's own shadow is not clipped by its own overflow.
 */
.cp-hero-slider__track {
  border: var(--cp-frame) solid var(--cp-ink);
  background: var(--cp-ink);
  box-shadow: 10px 10px 0 var(--cp-ink);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  list-style: none;
}

.cp-hero-slider__track::-webkit-scrollbar {
  display: none;
}

.cp-hero-slider__slide {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* The frame is the track's now, so the figure inside each slide carries none. */
.cp-hero-slider .cp-lamp-hero__media {
  border: 0;
  box-shadow: none;
}

.cp-hero-slider__dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  /* Clears the shadow, so the dots do not sit on top of it. */
  margin-top: calc(var(--cp-space-xs) + 10px);
}

.cp-hero-slider__dot {
  width: 2rem;
  height: 0.375rem;
  padding: 0;
  border: 1px solid var(--cp-ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--cp-duration) var(--cp-ease);
}

.cp-hero-slider__dot[aria-current="true"] {
  background: var(--cp-amber);
}

.cp-hero-slider__dot:focus-visible {
  outline: 2px solid var(--cp-ink);
  outline-offset: 2px;
}

/* A moving hero is a problem for vestibular disorders, and the rail still works. */
@media (prefers-reduced-motion: reduce) {
  .cp-hero-slider__track {
    scroll-behavior: auto;
  }
}

/*
 * The four-colour note on the custom tier. Quiet but not hidden: it sets the one
 * expectation a buyer can be genuinely surprised by, and burying it would defeat it.
 */
.cp-lamp-option__note {
  margin: var(--cp-space-xs) 0 0;
  padding-top: var(--cp-space-xs);
  border-top: 1px solid var(--cp-line);
  font-size: var(--cp-text-xs);
  line-height: 1.5;
  color: var(--cp-muted);
}
