/* =============================================================================
   DPL quality page (page-templates/page-landing.php): a light banner with three large buttons and the store
   rating, the current discounts, the trust items, two about cards and a closing card. Text and line icons
   only. The trust items use component-dpl-trust-row.css. Tokens: dpl-design-system.css.
   ============================================================================= */

/* The banner on this page is light (owner, 2026-11-19): the light-orange tint, dark text. */
.dpl-page-banner.dpl-landing__banner {
  background: var(--dpl-surface-tint);
  color: var(--dpl-text);
  border: 1px solid var(--dpl-border);
}

.dpl-landing__banner .dpl-page-banner__eyebrow {
  color: var(--dpl-text);
}

.dpl-landing__banner .dpl-page-banner__title {
  color: var(--dpl-text);
}

.dpl-landing__banner .dpl-page-banner__text {
  color: var(--dpl-text-body);
}

/* The banner underlines its links; a button is not one of them. */
.dpl-page-banner a.dpl-landing__cta {
  color: var(--dpl-text);
  text-decoration: none;
  background: var(--dpl-surface);
}

.dpl-page-banner a.dpl-landing__cta.dpl-btn--primary {
  color: var(--dpl-on-accent);
  background: var(--dpl-accent);
}

@media (hover: hover) {
  .dpl-page-banner a.dpl-landing__cta.dpl-btn--primary:hover {
    background: var(--dpl-accent-hover);
  }
}

/* The large buttons of this page: the large height, wider, one size up in text. */
.dpl-landing__actions .dpl-btn {
  min-height: var(--dpl-btn-height-lg);
  padding: 0 32px;
  font-size: 16px;
}

/* The store rating under the buttons. Empty while the shop has no review. */
.dpl-landing__rating {
  font-size: 13px;
  color: var(--dpl-text-body);
}

.dpl-landing__rating:empty {
  display: none;
}

.dpl-page-banner .dpl-landing__rating a {
  color: inherit;
  text-decoration: none;
}

.dpl-landing__rating .dpl-rating-stars {
  color: var(--dpl-accent);
}

/* --- The current discounts: one card per code, one card for the quantity tiers. --- */
.dpl-landing__offers {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.dpl-landing__offers-heading {
  font-size: var(--dpl-h2);
  font-weight: var(--dpl-weight-strong);
  color: var(--dpl-text);
  line-height: 1.25;
  margin: 0;
}

.dpl-landing__offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--dpl-grid-gap);
}

.dpl-landing__offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
  min-width: 0;
}

.dpl-landing__offer-title {
  font-family: var(--dpl-font-heading);
  font-size: 32px;
  font-weight: var(--dpl-weight-strong);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--dpl-text);
  margin: 0 0 4px;
}

.dpl-landing__offer-title--small {
  font-size: 22px;
  line-height: 1.25;
}

.dpl-landing__offer-label {
  font-size: var(--dpl-text-size-small);
  color: var(--dpl-text-muted);
  margin: 0;
}

.dpl-landing__offer-code {
  margin: 0;
  max-width: 100%;
}

/* The code itself: a chip the eye finds at once. Selectable, so it can be copied. */
.dpl-landing__offer-code code {
  display: inline-block;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px dashed var(--dpl-accent);
  border-radius: var(--dpl-radius-pill);
  background: var(--dpl-surface-tint);
  color: var(--dpl-text);
  font-family: var(--dpl-font-heading);
  font-size: 18px;
  font-weight: var(--dpl-weight-strong);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
}

.dpl-landing__offer-note {
  font-size: var(--dpl-text-size-small);
  color: var(--dpl-text-muted);
  line-height: 1.5;
  margin: 4px 0 0;
}

.dpl-landing__tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
}

.dpl-landing__tier {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--dpl-border);
  font-size: var(--dpl-text-size);
  color: var(--dpl-text-body);
}

.dpl-landing__tier:last-child {
  border-bottom: 0;
}

.dpl-landing__tier-percent {
  font-weight: var(--dpl-weight-strong);
  color: var(--dpl-text);
  white-space: nowrap;
}

/* The trust row brings its own top margin for the home page; here the discounts sit right above it. */
.dpl-landing .dpl-trust-row {
  margin-top: 24px;
}

.dpl-landing__body {
  margin-top: 24px;
}

.dpl-landing__closing {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 28px 20px;
}

.dpl-landing__closing-heading {
  font-size: var(--dpl-h2);
  font-weight: var(--dpl-weight-strong);
  color: var(--dpl-text);
  line-height: 1.25;
  margin: 0;
}

.dpl-landing__closing-text {
  font-size: var(--dpl-text-size);
  color: var(--dpl-text-body);
  line-height: 1.7;
  margin: 0;
  max-width: 64ch;
}

.dpl-landing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

@media screen and (max-width: 749px) {
  .dpl-landing__actions {
    width: 100%;
  }

  .dpl-landing__actions .dpl-btn {
    width: 100%;
    text-align: center;
  }
}

@media screen and (min-width: 750px) {
  .dpl-landing__offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dpl-landing__offer--tiers {
    grid-column: 1 / -1;
  }
}

@media screen and (min-width: 990px) {
  .dpl-landing__offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dpl-landing__offer--tiers {
    grid-column: auto;
  }

  .dpl-landing__closing {
    padding: 40px;
  }
}
