/* ==========================================================================
   HOME — page-only sections (see ARCHITECTURE.md "index.html: Home")
   hero · banner (moments, quality) · features · results · reviews · styles ·
   how · catalog · product-packs · pricing · why · details
   ========================================================================== */

/* ---------- Hero: dark like every hero (user, 2026-10-16): the slider fills the section behind the copy at every width,
   the cover overlay darkens it and the text is bright ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; color: var(--color-text-inverse); background: var(--color-surface-inverse);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay-hero-cover-sm); }
.hero__inner { position: relative; z-index: var(--z-base); padding-block: var(--space-10) calc(var(--space-8) + var(--space-12)); }   /* room for the arrows below the copy */
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); max-width: var(--measure); }
.hero__content h1 { color: var(--color-text-inverse); }
.hero .highlight { color: var(--color-highlight-inverse); }
.hero .rating { color: var(--color-text-inverse); }
/* two offers one under another: magnets, holiday cards (user, 2026-10-14) — .hero__offers / .hero-offer live in styles/sections.css (shared with the home choose-product band, 2026-10-17h) */
.hero__content h1 { margin-bottom: calc(var(--space-5) * (var(--title-gap-scale) - 1)); } /* +20% on the flex gap */
.hero__actions { display: inline-flex; flex-direction: column; align-items: stretch; gap: var(--space-3); }   /* stacked, both as wide as the widest (user 2026-10-19) */
@media (max-width: 639.98px) { .hero__actions { align-self: stretch; } .hero__actions .btn { min-width: 0; padding-inline: var(--space-4); white-space: normal; } }
.hero__trust { margin-top: var(--space-2); gap: var(--space-4) var(--space-6); }

/* Hero slider: stacked slides behind the copy, radios pick the active one (JS in script.js only auto-advances) */
.hero__visual { position: absolute; inset: 0; }   /* no z-index here: the arrows inside must stay above the overlay */
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity var(--duration-hero-fade) var(--ease-standard);
}
.hero__slide .media {
  height: 100%; object-position: 50% 35%; border-radius: 0;
  transition: transform var(--duration-hero-zoom) linear;
}
.hero__slide:first-child .media { object-position: 50% 8%; }   /* the magnet stack: keep its lettering in view */
.hero__slide:first-child,
.hero:has(.hero__radio:nth-of-type(1):checked) .hero__slide:nth-child(1),
.hero:has(.hero__radio:nth-of-type(2):checked) .hero__slide:nth-child(2),
.hero:has(.hero__radio:nth-of-type(3):checked) .hero__slide:nth-child(3),
.hero:has(.hero__radio:nth-of-type(4):checked) .hero__slide:nth-child(4) { opacity: 1; }
.hero:has(.hero__radio:nth-of-type(1):checked) .hero__slide:nth-child(1) .media,
.hero:has(.hero__radio:nth-of-type(2):checked) .hero__slide:nth-child(2) .media,
.hero:has(.hero__radio:nth-of-type(3):checked) .hero__slide:nth-child(3) .media,
.hero:has(.hero__radio:nth-of-type(4):checked) .hero__slide:nth-child(4) .media { transform: scale(var(--hero-zoom-scale)); }
/* with :has(), only the checked slide is visible (the :first-child rule above is the no-:has fallback) */
.hero:has(.hero__radio:not(:nth-of-type(1)):checked) .hero__slide:first-child { opacity: 0; }

/* the arrows sit in the section's corner, above the overlay (the visual itself is behind it) */
.hero__controls { position: absolute; right: var(--space-4); bottom: var(--space-4); z-index: var(--z-raised); display: none; }
.hero__pager-set { display: none; gap: var(--space-2); }
.hero__pager-set .btn--circle { box-shadow: var(--shadow-md); }
@supports selector(:has(*)) {
  .hero__controls { display: block; }
  .hero:has(.hero__radio:nth-of-type(1):checked) .hero__pager-set:nth-child(1),
  .hero:has(.hero__radio:nth-of-type(2):checked) .hero__pager-set:nth-child(2),
  .hero:has(.hero__radio:nth-of-type(3):checked) .hero__pager-set:nth-child(3),
  .hero:has(.hero__radio:nth-of-type(4):checked) .hero__pager-set:nth-child(4) { display: flex; }
}
.hero:has(.hero__radio:focus-visible) .hero__pager-set .btn--circle { box-shadow: var(--shadow-focus); }

@media (min-width: 1024px) {
  .hero { display: block; min-height: var(--hero-min-height); }
  .hero::before { background: var(--overlay-hero-cover); }
  .hero__slide .media { object-position: right 35%; }
  .hero__slide:first-child .media { object-position: right 8%; }
  .hero__controls { right: calc(max(0px, (100% - var(--container-max)) / 2) + var(--space-6)); bottom: var(--space-6); }
  .hero__inner { display: flex; align-items: center; min-height: var(--hero-min-height); padding-block: var(--space-12); }
  .hero__content { max-width: var(--measure-hero); }
}

/* ---------- Banner (rounded panel: text + image) — moments, quality ---------- */
.banner {
  position: relative; overflow: hidden;
  display: grid; border-radius: var(--banner-radius);
}
.banner__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-8) var(--space-6); }
.banner__content h2 { font-size: var(--text-3xl); max-width: var(--measure); margin-bottom: calc(var(--space-4) * (var(--title-gap-scale) - 1)); }
.banner__content p { max-width: var(--measure-sm); }
.banner__media { position: relative; aspect-ratio: 3 / 2; }
.banner__media .media { position: absolute; inset: 0; height: 100%; border-radius: 0; }

.banner--tint { background: var(--color-surface-tint); }
.banner--tint .btn--primary { background: var(--color-surface-inverse); }
.banner--tint .btn--primary:hover { background: var(--color-primary-hover); }

.banner--inverse { background: var(--color-surface-inverse); color: var(--color-text-inverse); }
.banner--inverse h2 { color: var(--color-text-inverse); }
.banner--inverse p { color: var(--color-text-inverse-muted); }
.banner .banner__trust { padding: var(--space-5) var(--space-6); gap: var(--space-4) var(--space-10); }

@media (min-width: 768px) {
  .banner { grid-template-columns: 1fr 1fr; }
  .banner__content { padding: var(--space-10); justify-content: center; }
  .banner__media { aspect-ratio: auto; min-height: var(--banner-min-height); }
  .banner .banner__trust { grid-column: 1 / -1; padding-inline: var(--space-10); }
}
@media (min-width: 1024px) {
  .banner { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- Features ---------- */
.features__grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; }
.feature-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-5) var(--space-3); text-align: center;
  background: var(--color-surface); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow);
}
.feature-card h3 { font-size: var(--text-sm); margin-top: var(--space-1); }
.feature-card p { font-size: var(--text-xs); color: var(--color-text-muted); }
@media (min-width: 768px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(6, 1fr); } }

/* Features motion: hover lift; scroll-in reveal (CSS view timeline, no JS) */
.feature-card { transition: translate var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.feature-card:hover { translate: 0 var(--hover-lift); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* range percentages are scroll positions, not visual values; --i staggers the cards */
    .features__grid { view-timeline: --features-grid block; }
    .feature-card:nth-child(1) { --i: 0; } .feature-card:nth-child(2) { --i: 1; } .feature-card:nth-child(3) { --i: 2; }
    .feature-card:nth-child(4) { --i: 3; } .feature-card:nth-child(5) { --i: 4; } .feature-card:nth-child(6) { --i: 5; }
    .feature-card, .feature-card .icon-circle {
      animation: reveal-up linear both; animation-timeline: --features-grid;
      animation-range: entry calc(var(--i, 0) * 8%) entry calc(var(--i, 0) * 8% + 55%);
    }
    .feature-card .icon-circle { animation-name: reveal-pop; }
  }
}

/* ---------- Swipe rows on phones (static-first: CSS scroll-snap) ---------- */
@media (max-width: 767.98px) {
  .reviews__grid, .styles__grid {
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding-bottom: var(--space-3); scrollbar-width: thin;
  }
}

/* ---------- Real results (story) ---------- */
.results .section-head { margin-bottom: calc(var(--space-4) * var(--title-gap-scale)); }
.results .tabs__list { overflow-x: auto; flex-wrap: nowrap; }
.results .tabs__tab { white-space: nowrap; padding-inline: var(--space-3); }
.results .tabs__pager { display: none; }
.story { display: grid; gap: var(--space-6); align-items: center; }
.story__media { position: relative; border-radius: var(--card-radius); overflow: hidden; }
.story__media .media { aspect-ratio: 4 / 3; }
.story__prev, .story__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: var(--z-raised); }
.story__prev { left: var(--space-3); }
.story__next { right: var(--space-3); }
.story__body { display: flex; flex-direction: column; gap: var(--space-5); }
.story__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.story__stats > div + div { padding-left: var(--space-6); border-left: var(--border-width) solid var(--color-border); }
.story__stats dt { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: var(--weight-bold); line-height: 1; color: var(--color-sale); }
.story__stats dd { margin: var(--space-2) 0 0; color: var(--color-text); }
.story__quote { font-size: var(--text-lg); color: var(--color-heading); }
.story__author { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
@media (min-width: 768px) {
  .story { grid-template-columns: 1fr 1.4fr; gap: var(--space-10); }
  .story__media .media { aspect-ratio: 1 / 1; }
  .results .tabs__pager { display: block; }
  .results .tabs__tab { padding-inline: var(--space-5); }
}

/* Results motion: panel fades in on tab change; photo/text slide in on scroll */
@media (prefers-reduced-motion: no-preference) {
  .results .tabs__panel { animation: reveal-fade var(--duration-reveal) var(--ease-out) both; }
  @supports (animation-timeline: view()) {
    .results { overflow-x: clip; } /* the text slides in from the right; don't let it widen the page */
    .results .tabs__panels { view-timeline: --results-panels block; }
    .results .story__media, .results .story__body {
      animation: reveal-left linear both; animation-timeline: --results-panels; animation-range: entry 10% entry 70%;
    }
    .results .story__body { animation-name: reveal-right; }
  }
}

@keyframes reveal-up    { from { opacity: 0; transform: translateY(var(--reveal-shift)); } }
@keyframes reveal-left  { from { opacity: 0; transform: translateX(calc(var(--reveal-shift) * -1)); } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(var(--reveal-shift)); } }
@keyframes reveal-pop   { from { opacity: 0; transform: scale(var(--reveal-scale)); } }
@keyframes reveal-fade  { from { opacity: 0; } }

/* ---------- What customers say ---------- */
.reviews__summary { display: flex; flex-direction: column; gap: var(--space-2); }
.reviews__grid { display: grid; gap: var(--grid-gap); list-style: none; padding: 0; }
.reviews__grid > * { scroll-snap-align: start; }
@media (max-width: 767.98px) { .reviews__grid { grid-auto-flow: column; grid-auto-columns: 85%; } }
@media (min-width: 768px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- How it works ---------- */
.how__title { margin-bottom: calc(var(--space-6) * var(--title-gap-scale)); }


/* ---------- Product packs (cards: global .pack-card / .pack-grid) ---------- */
.product-packs__intro { display: flex; flex-direction: column; gap: var(--space-2); max-width: var(--measure-hero); }
.product-packs__intro p { color: var(--color-text-muted); }


/* ---------- Catalog teaser (cards: global .stock-card / .stock-grid) ---------- */
.catalog__intro { display: flex; flex-direction: column; gap: var(--space-2); max-width: var(--measure-hero); }
.catalog__intro p { color: var(--color-text-muted); }
.catalog__credit { justify-content: center; margin-top: var(--space-5); }
.catalog__status { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; }
.catalog__status[hidden] { display: none; }

/* ---------- Pricing + upload ---------- */
.pricing__panel {
  display: flex; flex-direction: column; gap: var(--space-6);
  padding: var(--space-4); background: var(--color-bg-alt); border: var(--card-border); border-radius: var(--banner-radius);
}
.pricing__head { margin-bottom: calc(var(--space-6) * (var(--title-gap-scale) - 1)); align-items: center; }
.pricing__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--grid-gap); }
.pricing__prices { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.pricing__note { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-heading); }
.pricing__options {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; margin: 0; padding: 0;
  border: var(--card-border); border-radius: var(--card-radius); background: var(--color-surface); overflow: hidden;
}
.price-option {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; gap: var(--space-1) var(--space-3);
  padding: var(--space-4) var(--space-3); margin: 0; min-height: auto;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.price-option + .price-option { border-top: var(--border-width) solid var(--color-border); }
.price-option__qty { grid-column: 1; grid-row: 1 / span 2; font-weight: var(--weight-semibold); color: var(--color-heading); }
.price-option__price { grid-column: 2; grid-row: 1; justify-self: end; font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--color-sale); white-space: nowrap; }
.price-option__save { grid-column: 2; grid-row: 2; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-sale); line-height: var(--leading-snug); }
.price-option__per { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.price-option__save small { font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--color-text-muted); }

.upload {
  position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  padding: var(--space-5) var(--space-4); text-align: center; cursor: pointer;
  background: var(--color-surface); border: var(--border-width) dashed var(--color-border-strong); border-radius: var(--card-radius);
  transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.upload:hover, .upload:has(.upload__input:focus-visible) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.upload:has(.upload__input:focus-visible) { box-shadow: var(--shadow-focus); }
.upload__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload__btn { pointer-events: none; padding-inline: var(--space-4); }
.upload__hint { font-size: var(--text-sm); color: var(--color-text-muted); }
.upload__types { display: flex; gap: var(--space-2); }
.pricing__trust { justify-content: space-between; }

/* Upload queue (home/script.js): shown after photos are chosen; mock upload → editor/ */
.pricing__upload { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.pricing__upload .upload { flex: 1; }
.pricing__upload[data-state="selected"] .upload { flex: none; padding-block: var(--space-4); }
.pricing__upload[data-state="selected"] .upload__btn { background: var(--color-surface); color: var(--color-primary); border-color: currentColor; }
.pricing__upload[data-state="selected"] .upload__types { display: none; }
.upload-queue { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--color-surface); border: var(--card-border); border-radius: var(--card-radius); }
.upload-queue[hidden] { display: none; }
.upload-queue__count { display: flex; align-items: center; gap: var(--space-2); color: var(--color-heading); }
.upload-queue__count .icon { color: var(--color-primary); }
.upload-queue__thumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.upload-queue__thumb {
  position: relative; display: grid; place-items: center; width: var(--upload-thumb-size); height: var(--upload-thumb-size);
  overflow: hidden; background: var(--color-bg-alt); border: var(--card-border); border-radius: var(--radius-sm);
}
.upload-queue__thumb[hidden] { display: none; }
.upload-queue__img { width: 100%; height: 100%; object-fit: cover; }
.upload-queue__img[hidden], .upload-queue__ext[hidden] { display: none; }
.upload-queue__ext, .upload-queue__thumb--more { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-muted); }
.upload-queue__names {font-size: var(--text-sm); color: var(--color-text-muted); overflow-wrap: anywhere; }
.upload-queue__progress { width: 100%; height: var(--space-2); appearance: none; border: 0; border-radius: var(--radius-full); background: var(--color-border); overflow: hidden; }
.upload-queue__progress::-webkit-progress-bar { background: var(--color-border); border-radius: var(--radius-full); }
.upload-queue__progress::-webkit-progress-value { background: var(--color-primary); border-radius: var(--radius-full); transition: width var(--duration-fast) linear; }
.upload-queue__progress::-moz-progress-bar { background: var(--color-primary); border-radius: var(--radius-full); }
.upload-queue__progress[hidden] { display: none; }
.upload-queue__status { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-primary); }
.upload-queue__status:empty { display: none; }
.upload-queue__status[data-tone="error"] { color: var(--color-danger); }

@media (min-width: 768px) {
  .pricing__panel { padding: var(--space-8); }
  .price-option__price { font-size: var(--text-2xl); }
  .upload { padding: var(--space-6); }
  .upload__btn { padding-inline: var(--space-8); }
  .pricing__options { grid-template-columns: minmax(0, 1fr) auto auto; }
  .price-option { padding-inline: var(--space-5); column-gap: var(--space-6); }
  .price-option__qty { grid-row: 1; }
  .price-option__price { grid-column: 2; grid-row: 1; }
  .price-option__save { grid-column: 3; grid-row: 1; align-items: flex-start; justify-self: start; }
}

@media (min-width: 1024px) { .pricing__form { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* ---------- Why choose us ---------- */
.why__title { margin-bottom: calc(var(--space-6) * var(--title-gap-scale)); }
.why__grid { display: grid; gap: var(--grid-gap); align-items: stretch; }
.why__grid .table-wrap, .why__table { height: 100%; }
.why__table thead .why__us { background: var(--color-primary); color: var(--color-on-primary); font-weight: var(--weight-semibold); }
.moments-card {
  display: flex; flex-direction: column; gap: var(--space-4); overflow: hidden;
  padding: var(--space-6) var(--space-6) 0; background: var(--color-surface-tint); border-radius: var(--card-radius);
}
.moments-card h3 { font-family: var(--font-heading); font-size: var(--text-2xl); }
.moments-card .checklist { font-size: var(--text-sm); color: var(--color-heading); gap: var(--space-2); }
.moments-card__img { margin-inline: calc(var(--space-6) * -1); width: calc(100% + var(--space-6) * 2); max-width: none; border-radius: 0; }
@media (min-width: 1024px) { .why__grid { grid-template-columns: 2fr 1fr; } }

/* Comparison table on phones: each feature becomes a block with two side-by-side answers.
   Stays a real <table> for a11y/SEO; phone-only (max-width) so the desktop table is untouched. */
@media (max-width: 767.98px) {
  .why .table-wrap { overflow: hidden; }
  .why__table, .why__table tbody, .why__table tr { display: block; }
  .why__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .why__table tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
    padding: var(--space-4); border-bottom: var(--border-width) solid var(--color-border);
  }
  .why__table tr:last-child { border-bottom: 0; }
  .why__table th, .why__table td { display: block; padding: 0; border: 0; }
  .why__table tbody th { grid-column: 1 / -1; font-size: var(--text-base); margin-bottom: var(--space-1); }
  .why__table td {
    display: flex; flex-direction: column; gap: var(--space-1);
    padding: var(--space-3); border-radius: var(--radius-md); line-height: var(--leading-snug);
  }
  .why__table td::before {
    content: attr(data-label); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase;
  }
  .why__table td:nth-of-type(1) { background: var(--color-primary-soft); color: var(--color-heading); }
  .why__table td:nth-of-type(1)::before { content: "✓ " attr(data-label); color: var(--color-primary); }
  .why__table td:nth-of-type(2) { background: var(--color-bg-alt); color: var(--color-text-muted); }
  .why__table td:nth-of-type(2)::before { color: var(--color-text-muted); }
}

/* ---------- Product details + FAQ ---------- */
.details__grid { display: grid; gap: var(--space-8) var(--space-10); }
.details__tabs { overflow-x: auto; flex-wrap: nowrap; }
.details__tabs .tabs__tab { white-space: nowrap; padding-inline: var(--space-3); }
.details__panels { padding-top: 0; }
.faq-contact { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.details__product { display: grid; grid-template-columns: var(--space-24) 1fr; gap: var(--space-4); align-items: center; }
.details__img { border-radius: var(--card-radius); }
.details__list { color: var(--color-heading); }
.details__steps { display: flex; flex-direction: column; gap: var(--space-3); padding-left: var(--space-5); }
.details__more { margin-top: var(--space-4); }
.details__faq-head { margin-bottom: calc(var(--space-4) * var(--title-gap-scale)); align-items: center; }
.details__faq-head h2 { font-size: var(--text-xl); }
@media (min-width: 768px) {
  .details__product { grid-template-columns: minmax(var(--space-24), calc(var(--space-20) * 2)) 1fr; gap: var(--space-6); }
  .details__tabs .tabs__tab { padding-inline: var(--space-5); }
}
@media (min-width: 1024px) {
  .details__grid { grid-template-columns: 1.1fr 1fr; }
  .details__tabs { grid-column: 1 / -1; justify-self: start; }
  .details__faq { grid-column: 2; grid-row: 2; }
}

/* ---------- Magnet types (user, 2026-10-15): 4 cards, 1 / 2 / 4 columns ---------- */
.magnet-types__lead { max-width: var(--measure); margin-bottom: var(--space-6); color: var(--color-text-muted); }
.magnet-types__grid { display: grid; gap: var(--grid-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .magnet-types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .magnet-types__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.magnet-type { display: flex; flex-direction: column; }
.magnet-type__img { aspect-ratio: 4 / 3; object-fit: cover; }
.magnet-type__body { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.magnet-type__link { margin-top: auto; }

/* ---------- Magnet collages (user, 2026-10-19; styled like the rest of the page): intro split · size tiles · two route cards ---------- */
.collages__intro { display: grid; gap: var(--space-8); align-items: center; margin-bottom: var(--space-12); }
.collages__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.collages__text .lead { max-width: var(--measure); color: var(--color-text-muted); }
.collages__points { margin: 0; }
.collages__visual { position: relative; margin: 0; min-width: 0; }
.collages__img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.collages__badge { position: absolute; left: var(--space-4); bottom: var(--space-4); background: var(--color-surface); color: var(--color-heading); box-shadow: var(--shadow-sm); }
@media (min-width: 1024px) { .collages__intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-12); } }

.collages__subtitle { margin-bottom: var(--space-4); font-size: var(--text-lg); }

/* Size tiles (.card): each draws its grid of magnets (rows × columns) in CSS */
.collage-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0 0 var(--space-12); padding: 0; list-style: none; }
@media (min-width: 640px) { .collage-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .collage-sizes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.collage-size { --rows: 2; --cols: 2; align-items: center; gap: var(--space-1); min-width: 0; padding: var(--space-5) var(--space-3); text-align: center; }
.collage-size--2x3 { --rows: 2; --cols: 3; }
.collage-size--3x3 { --rows: 3; --cols: 3; }
.collage-size--3x4 { --rows: 3; --cols: 4; }
.collage-size--4x5 { --rows: 4; --cols: 5; }
.collage-size__grid {
  display: block; margin-bottom: var(--space-2);
  width: calc(var(--cols) * var(--collage-cell) + (var(--cols) - 1) * var(--collage-cell-gap));
  height: calc(var(--rows) * var(--collage-cell) + (var(--rows) - 1) * var(--collage-cell-gap));
  /* the seams: surface-coloured lines over the green, one magnet apart */
  background:
    repeating-linear-gradient(90deg, transparent 0 var(--collage-cell), var(--color-surface) var(--collage-cell) calc(var(--collage-cell) + var(--collage-cell-gap))),
    repeating-linear-gradient(180deg, transparent 0 var(--collage-cell), var(--color-surface) var(--collage-cell) calc(var(--collage-cell) + var(--collage-cell-gap))),
    var(--color-primary);
}
.collage-size__name { font-size: var(--text-lg); color: var(--color-heading); }
.collage-size__text { font-size: var(--text-sm); color: var(--color-text-muted); }
/* The best seller: badge in the top-right corner + primary border */
.collage-size--popular { border-color: var(--color-primary); }
.collage-size__badge { position: absolute; top: var(--space-2); right: var(--space-2); }
.collage-sizes:has(.collage-size--popular) .collage-size { padding-top: var(--space-10); }   /* room above every mini grid for the badge, so the grids stay level */
/* Price at the tile's bottom (static, LexHost's prices on 2026-10-27): breakdown, total, saving vs singles */
.collage-size__price { display: flex; flex-direction: column; gap: var(--space-1); align-self: stretch; margin-top: auto; padding-top: var(--space-3); border-top: var(--border-width) solid var(--color-border); }
.collage-size__breakdown { font-size: var(--text-xs); color: var(--color-text-muted); }
.collage-size__total { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--color-heading); }
.collage-size__saving { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-success); }

/* Route cards (.card): own photo · catalog */
.collage-routes { display: grid; gap: var(--grid-gap); margin: 0 0 var(--space-8); padding: 0; list-style: none; }
@media (min-width: 768px) { .collage-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.collage-route { min-width: 0; }
.collage-route__img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.collage-route__body { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; padding: var(--card-padding); }
.collage-route__title { font-size: var(--text-lg); }
.collage-route__steps { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; counter-reset: route; font-size: var(--text-sm); color: var(--color-text-muted); }
.collage-route__steps li { display: flex; align-items: center; gap: var(--space-3); counter-increment: route; }
.collage-route__steps li::before {   /* same look as .step-card__num */
  content: counter(route); flex: none; display: grid; place-items: center; width: var(--control-height-sm); height: var(--control-height-sm);
  font-weight: var(--weight-bold); color: var(--color-on-primary); background: var(--color-primary); border-radius: var(--radius-md);
}
.collage-route__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: auto; padding-top: var(--space-2); }
.collage-route__upload { cursor: pointer; }
.collage-route__upload:has(input:focus-visible) { box-shadow: var(--shadow-focus); }
.collage-route__note:empty { display: none; }
.collage-route__note { font-size: var(--text-sm); color: var(--color-danger); }
.collage-route__note[data-tone="progress"] { color: var(--color-text-muted); }
@media (max-width: 639.98px) { .collage-route__actions .btn { flex: 1 1 100%; } }

.collages__tip { display: flex; align-items: flex-start; gap: var(--space-2); max-width: var(--measure); margin: 0 auto; font-size: var(--text-sm); color: var(--color-text-muted); }
.collages__tip .icon { flex: none; color: var(--color-primary); }
