.feature-card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: var(--space-9) var(--space-8);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-sky-soft);
  box-shadow: 0 14px 32px -18px rgb(31 42 68 / 25%);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-5);
  border-radius: 16px;
  background-color: var(--color-sky-soft);
  color: var(--color-sky);
}

.feature-card__icon svg {
  width: 30px;
  height: 30px;
}

.feature-card h3 {
  margin-bottom: var(--space-2);
  color: var(--color-heading);
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.product-card {
  position: relative;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-card);
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgb(31 42 68 / 8%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.product-card[id] {
  scroll-margin-top: calc(var(--site-top-height, 7.5rem) + var(--space-4));
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgb(31 42 68 / 14%);
}

.product-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1122 / 1173;
  border-radius: 12px;
  margin-bottom: var(--space-5);
  overflow: hidden;
  background-color: var(--color-product);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-card__placeholder {
  display: none;
  font-size: var(--text-display);
  letter-spacing: 0.15em;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 12%));
}

.product-card__visual--placeholder .product-card__image {
  display: none;
}

.product-card__visual--placeholder .product-card__placeholder {
  display: block;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.product-card__price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.product-card__shipping {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-teal);
  background-color: var(--color-shipping);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  margin-bottom: 0.25rem;
  color: var(--color-heading);
  font-size: 1.35rem;
}

.product-card__tagline {
  font-weight: 700;
  color: var(--color-accent-text);
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
}

.product-card__desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: var(--space-5);
  flex: 1;
}

.product-card__cta {
  align-self: stretch;
  margin-top: auto;
}

.product-card__badge {
  position: absolute;
  top: 0;
  right: var(--space-2);
  z-index: 2;
  color: var(--color-bg-alt);
  background: var(--color-teal);
  font-weight: 600;
  font-size: var(--text-tiny);
  line-height: 1.2;
  letter-spacing: normal;
  padding: calc(var(--space-1) / 2) var(--space-2);
  border-radius: var(--radius-pill);
}

.product-card__badge--soon { background: var(--color-warm-deep); color: var(--color-heading); }

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-hero-bg);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--section-gap) 0;
}

.hero__text {
  display: grid;
  justify-items: start;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}

.hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.hero__subtitle { margin: 0; font-size: var(--text-body); line-height: 1.6; }
.hero__art { position: relative; z-index: 0; margin-inline: calc(50% - 50vw); }
.hero__picture { display: block; }
.hero__bg { display: block; width: 100%; height: auto; }

/* Whole banner, never cropped: it is anchored right and the text sits on its empty left. */
@media (width >= 1024px) {
  .hero { min-height: clamp(420px, 44vw, 560px); }
  .hero__inner { position: static; display: flex; align-items: center; min-height: inherit; padding-block: var(--section-gap); }
  .hero__text { position: relative; z-index: 1; max-width: 480px; padding-bottom: 0; }
  .hero__art { position: absolute; inset: 0 0 0 auto; margin-inline: 0; aspect-ratio: 1672 / 941; max-width: 100%; }
  .hero__picture, .hero__bg { height: 100%; }
}

/* ========================================
   Products
   ======================================== */

.products {
  background-color: var(--color-bg);
  padding: var(--space-6) 0 var(--section-gap);
}

.products__heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (width >= 720px) {
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* ========================================
   Subscribe (bottom)
   ======================================== */

.subscribe {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  color: var(--color-heading);
  padding: clamp(40px, 5vw, 64px) 0;
  text-align: center;
}

.subscribe h2 {
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}

.subscribe__subtitle {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.subscribe__form {
  max-width: var(--form-width);
  margin-inline: auto;
}

.subscribe__form > .subscribe-form__label {
  text-align: left;
}

.products__heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.products__heading-row .products__heading {
  margin: 0;
}

.products__layout-toggle {
  display: none;
}

.products__layout-toggle svg {
  display: block;
  width: var(--space-6);
  height: var(--space-6);
}

.products__layout-toggle[data-layout="carousel"] .products__carousel-icon, .products__layout-toggle[data-layout="grid"] .products__grid-icon {
  display: none;
}

.products__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  gap: var(--space-5);
}

.products .product-card {
  min-width: 0;
  overflow: hidden;
}

.products .product-card__visual {
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 0;
}

.products .product-card__image {
  border-radius: 0;
}

/* Square artwork fills its frame edge to edge without cropping or letterboxing. */
.products .product-card:not(.product-card--planned) .product-card__visual {
  display: block;
  aspect-ratio: 1;
  height: auto;
  flex: none;
  padding: 0;
  background-color: var(--color-product-artwork);
}


.products .product-card:not(.product-card--planned) .product-card__image {
  height: 100%;
  object-fit: contain;
}

.products .product-card__image-link { height: 100%; }

.products .product-card__body {
  padding: var(--space-3);
  gap: var(--space-2);
}

.products .product-card__name, .products .product-card__tagline, .products .product-card__desc {
  margin: 0;
}

.products .product-card__name {
  font-size: var(--text-body);
  line-height: 1.3;
  min-height: 2.6em;
}

.products .product-card__tagline {
  font-size: var(--text-small);
}

.products .product-card__desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  flex: 0;
  min-height: 3em;
  line-height: 1.5;
}

.product-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  min-height: 2.6em;
  align-content: start;
  font-size: var(--text-tiny);
  color: var(--color-text-secondary);
}

.product-card__facts span {
  padding: 0;
}

.product-card__buy {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-1);
  padding-top: 0;
}

.product-card__purchase {
  display: grid;
  grid-template-rows: minmax(var(--control-min), auto) auto;
  gap: var(--space-2);
}

.product-card__purchase .product-card__price-row {
  margin: 0;
}

.product-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-2);
}

.product-card__actions .product-card__cta { margin-top: 0; }
.product-card__actions--single { grid-template-columns: 1fr; }
.product-card__format-info { min-height: var(--control-min); }
.product-card__format-info > .product-card__pdf { display: none; }
.product-card__format-status { font-size: var(--text-tiny); }
.product-card__format-status { display: inline; }
/* Format and price share a row; actions align across each catalog row. */
.products .product-card__buy { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); }
.products .product-card__format-info { grid-column: 1; grid-row: 1; }
.products .product-card__purchase { display: contents; }
.products .product-card__price-row,
.products .product-card__purchase > .product-card__pdf { grid-column: 2; grid-row: 1; align-self: center; }
.products .product-card__purchase > .product-card__pdf { max-width: 8em; text-align: right; }
.products .product-card__actions { grid-column: 1 / -1; grid-row: 2; }
.products .product-card__price { font-size: var(--text-title); }


.product-card__actions .btn {
  width: 100%;
  font-size: var(--text-small);
  line-height: 1.25;
  padding: var(--space-2) var(--space-3);
}

.product-card__details {
  gap: var(--space-3);
  width: 100%;
  border: 1px solid var(--color-accent-text);
  padding: var(--space-3);
  color: var(--color-accent-text);
  background: var(--color-bg-alt);
  font-size: var(--text-small);
}

.product-card__details:hover {
  color: var(--color-accent-text);
}

.product-card__image-link {
  display: block;
}

.product-card__name-link:hover {
  text-decoration: underline;
}

.products__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.products__dots[hidden] {
  display: none;
}

.products__dots button {
  width: var(--control-min);
  min-height: var(--control-min);
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
}

.products__dots button span {
  display: block;
  width: var(--space-2);
  height: var(--space-2);
  margin-inline: auto;
  border: 1px solid var(--color-accent-text);
  border-radius: var(--radius-pill);
}

.products__dots [aria-current="true"] span {
  width: var(--space-6);
  background: var(--color-btn);
  border-color: var(--color-btn);
}

.product-detail {
  margin: auto;
  width: min(38rem,calc(100% - var(--space-8)));
  max-height: calc(100dvh - var(--space-8));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.product-detail::backdrop {
  background: var(--color-overlay);
}

.product-detail__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.product-detail__heading h2 {
  font-size: var(--text-title);
  margin: 0;
}

.product-detail__close {
  width: var(--control-min);
  height: var(--control-min);
  flex-shrink: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: var(--color-bg-alt);
  color: var(--color-heading);
  cursor: pointer;
}

.product-detail-open {
  overflow: hidden;
}

@media (width < 1100px) {
  .products__layout-toggle {
    display: block;
  }

  .products__layout-toggle[hidden] {
    display: none;
  }

  .products__grid[data-layout="grid"] {
    grid-template-columns: minmax(0,1fr);
    justify-items: center;
  }

  .products__grid[data-layout="grid"] > article {
    width: 100%;
    max-width: 23rem;
  }

  .products__grid:not([data-layout="grid"]) {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    padding-bottom: var(--space-4);
    scrollbar-width: none;
  }

  .products__grid:not([data-layout="grid"])::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .products__grid:not([data-layout="grid"]) > article {
    flex: 0 0 min(85%, 23rem);
    scroll-snap-align: center;
  }

  .products .product-card {
    padding: 0;
  }

  .products .product-card > .product-card__body > .product-card__tagline,
  .products .product-card > .product-card__body > .product-card__facts,
  .products .product-card > .product-card__body > .product-card__desc {
    display: none;
  }


  .products .product-card__body { padding: var(--space-2); gap: var(--space-1); }
  .products .product-card__name { font-size: 1.125rem; line-height: 1.25; min-height: 2.5em; }
  .products .product-card__buy { gap: var(--space-1); padding-top: 0; }
  .products .product-card__format-info { min-height: var(--control-min); }
  .products .product-card__format-info--available > .product-card__pdf { display: none; }
  .products .product-card__format-status { display: inline; }
/* Format and price share a row; actions align across each catalog row. */
.products .product-card__buy { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); }
.products .product-card__format-info { grid-column: 1; grid-row: 1; }
.products .product-card__purchase { display: contents; }
.products .product-card__price-row,
.products .product-card__purchase > .product-card__pdf { grid-column: 2; grid-row: 1; align-self: center; }
.products .product-card__purchase > .product-card__pdf { max-width: 8em; text-align: right; }
.products .product-card__actions { grid-column: 1 / -1; grid-row: 2; }
.products .product-card__price { font-size: var(--text-title); }

  .products .product-card__formats { gap: 0 var(--space-3); }
  .products .product-card__formats label { gap: var(--space-1); font-size: var(--text-tiny); }
  .products .product-card__purchase { grid-template-rows: minmax(var(--control-min), auto) auto; gap: var(--space-1); }
  .products .product-card__price-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2); align-items: center; }
  .products .product-card__price { font-size: 1.5rem; }
  .products .product-card__shipping { font-size: var(--text-tiny); line-height: 1.3; padding: var(--space-1); }
  .products .product-card__actions { gap: var(--space-1); }
  .products .product-card__actions .btn { min-height: var(--control-min); font-size: var(--text-small); line-height: 1.3; padding: var(--space-2); white-space: normal; }


}

@media (prefers-reduced-motion: reduce) {
  .products .product-card {
    transition: none;
  }

  .products__grid {
    scroll-behavior: auto;
  }
}

.storefront-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--gutter-right) var(--space-2) var(--gutter-left);
  background: var(--color-warm);
  color: var(--color-accent-text);
  font-size: var(--text-small);
  line-height: 1.4;
}

.storefront-offer__text {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-6);
  margin: 0;
  text-align: center;
}

.storefront-offer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--control-min);
  height: var(--control-min);
  margin-block: calc(var(--space-2) * -1);
  margin-right: calc(var(--space-3) * -1);
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.storefront-offer__close:hover {
  background: var(--color-warm-deep);
}

.storefront-eyebrow { color: var(--color-accent-text); font-size: var(--text-small); font-weight: 600; margin: 0 0 var(--space-3); }
.storefront-note { color: var(--color-text-secondary); font-size: var(--text-small); line-height: 1.6; margin-top: var(--space-4); }
.storefront-intro { padding-block: var(--space-8); border-top: 1px solid var(--color-border); }
.storefront-intro h2 { margin-bottom: var(--space-3); }
.catalog-languages { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.catalog-languages a { display: flex; align-items: center; gap: var(--space-3); min-height: var(--control-min); padding: var(--space-3) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-bg-alt); font-weight: 600; }
.catalog-languages span { color: var(--color-text-secondary); font-size: var(--text-small); font-weight: 400; }
.products__heading-row { align-items: start; }
.products__heading-row .products__heading { text-align: left; margin-bottom: var(--space-2); }
.products__layout-toggle { flex-shrink: 0; }
.product-card__formats { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-4); border: 0; margin: 0; padding: 0; }
.product-card__formats label { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-min); font-size: var(--text-small); }
.product-card__formats input { flex: none; margin: 0; accent-color: var(--color-btn); }
.product-card__pdf { color: var(--color-text-secondary); font-size: var(--text-small); margin: 0; }
.planned-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.product-card__visual--planned { flex-direction: column; gap: var(--space-6); }
.product-card__planned-symbol { color: var(--color-accent-text); font-size: var(--text-display); }
.storefront-future, .storefront-delivery { padding-block: var(--section-gap); }
.storefront-future__grid, .storefront-delivery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-6); }
.storefront-future__card { padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-bg-alt); }
.storefront-future__symbol { display: block; color: var(--color-accent-text); font-size: var(--text-display); margin-bottom: var(--space-6); }
.storefront-future h3, .storefront-delivery h3 { margin-bottom: var(--space-3); }
.storefront-custom { padding-block: var(--space-6); }
.storefront-custom__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; padding: var(--space-8); border-radius: var(--radius-card); background: var(--color-heading); color: var(--color-bg); }
.storefront-custom h2 { margin-bottom: var(--space-4); }
.storefront-custom h2, .storefront-custom .storefront-eyebrow, .storefront-custom .storefront-note { color: var(--color-bg); }
.storefront-custom .btn { background: var(--color-bg); color: var(--color-heading); border-color: var(--color-bg); }

@media (width < 1100px) {
  .planned-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--space-4); padding-bottom: var(--space-4); }
  .planned-track > article { flex: 0 0 min(85%, 23rem); scroll-snap-align: start; }
}

@media (width < 768px) {
  .storefront-future__grid, .storefront-delivery__grid, .storefront-custom__inner { grid-template-columns: minmax(0, 1fr); }
  .catalog-languages span { display: none; }
  .catalog-languages a { padding-inline: var(--space-4); }
  .storefront-custom__inner { padding: var(--space-6); }
}

.custom-preview__fields { display: grid; gap: var(--space-2); margin-block: var(--space-5); }
.custom-preview__fields select, .custom-preview__fields textarea { width: 100%; min-height: var(--control-min); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-btn); background: var(--color-bg); color: var(--color-text); font: inherit; }
.custom-preview__fields textarea { resize: vertical; }
