/* ============================================
   MANDELSON.CO — Store
   Same tokens as the portfolio, storefront rhythm.
   The index is a dynamic-size masonry: image-backed
   cards, text over the image, a gradient scrim doing
   the contrast work.
   ============================================ */

/* --- HERO: compact text hero on the light page. --- */
.store-hero {
  padding-top: 112px;
  padding-bottom: var(--space-xl);
}

.store-hero__lede {
  max-width: 620px;
  margin-top: var(--space-lg);
}

.store-hero__note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: var(--text-sm);
  font-weight: 500;
}

.store-hero__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The lightning glyph must not shrink when the sentence wraps. */
.store-hero__note i { flex-shrink: 0; }

/* A pill that wraps to three lines stops reading as a pill. Square it off
   on narrow screens and let the text run as a normal block. */
@media (max-width: 560px) {
  .store-hero__note {
    display: flex;
    align-items: flex-start;
    border-radius: var(--radius-md);
    line-height: 1.5;
  }
  .store-hero__note i { margin-top: 3px; }
}

.store-filters { padding-bottom: var(--space-xl); }
.store-section { padding-bottom: var(--space-4xl); }

/* ============================================
   MASONRY GRID
   4 columns x 260px rows. Sizes are assigned per
   listing in content/store/*.json, and the order of
   the collection packs them with no holes:
     row 1-2: nodebook(hero 2x2) redline(tall 1x2) mosaic
     row 2:                                        random-factor
     row 3:   bookreview(wide 2x1)  guidebook      lm-pocket
   `dense` backfills anything a filter leaves behind.
   ============================================ */
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 288px;
  grid-auto-flow: dense;
  gap: var(--grid-gap);
}

.store-card--hero     { grid-column: span 2; grid-row: span 2; }
.store-card--tall     { grid-column: span 1; grid-row: span 2; }
.store-card--wide     { grid-column: span 2; grid-row: span 1; }
.store-card--standard { grid-column: span 1; grid-row: span 1; }

@media (max-width: 1100px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .store-card--hero { grid-column: span 2; grid-row: span 2; }
  .store-card--wide { grid-column: span 2; grid-row: span 1; }
  .store-card--tall { grid-column: span 1; grid-row: span 2; }
}

@media (max-width: 640px) {
  /* One clean vertical stack. Rows size to content, and EVERY size variant
     (including the hero) is reset to a single column — otherwise the hero's
     base `grid-column: span 2` spills into an implicit second column and
     overlaps the cards below it. Image is absolutely positioned, so a
     min-height gives each card room. */
  .store-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .store-card--hero,
  .store-card--tall,
  .store-card--wide,
  .store-card--standard {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 340px;
  }
  .store-card--hero { min-height: 400px; }
}

/* ============================================
   CARD
   ============================================ */
.store-card {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  isolation: isolate;
  transition: transform 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo);
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(10, 15, 28, 0.22);
}

/* Full-card link sits under the body so the action button stays clickable. */
.store-card__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.store-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.store-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s var(--ease-out-expo);
}

.store-card:hover .store-card__media img { transform: scale(1.04); }

/* --- THE SCRIM: this is what makes the text legible. ---
   Two stacked gradients. The vertical one anchors the text block at the
   bottom (opaque enough for white body copy at --text-sm). The soft top
   wash keeps the platform pill readable over a bright image. Tuned so the
   middle of the image still reads as an image. */
.store-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(6, 10, 20, 0.94) 0%,
      rgba(6, 10, 20, 0.86) 22%,
      rgba(6, 10, 20, 0.58) 46%,
      rgba(6, 10, 20, 0.22) 70%,
      rgba(6, 10, 20, 0.06) 100%),
    linear-gradient(to bottom,
      rgba(6, 10, 20, 0.45) 0%,
      rgba(6, 10, 20, 0.00) 40%);
}

/* Short cards have less room, so the readable band has to start higher and
   hit full opacity sooner. A 260px card carries the same title + tagline +
   button as the hero, so roughly the bottom two thirds must be a solid
   reading surface. Without this, white text lands on bright image pixels —
   Mosaic's cityscape and Book Review's white page both failed here. */
.store-card--standard .store-card__scrim,
.store-card--wide .store-card__scrim {
  background:
    linear-gradient(to top,
      rgba(6, 10, 20, 0.97) 0%,
      rgba(6, 10, 20, 0.95) 46%,
      rgba(6, 10, 20, 0.82) 66%,
      rgba(6, 10, 20, 0.50) 84%,
      rgba(6, 10, 20, 0.22) 100%),
    linear-gradient(to bottom,
      rgba(6, 10, 20, 0.55) 0%,
      rgba(6, 10, 20, 0.10) 46%);
}

/* The wide card is short but twice as long: its text only occupies the left
   half, so let the right side keep more of the image. */
.store-card--wide .store-card__scrim {
  background:
    linear-gradient(to top,
      rgba(6, 10, 20, 0.94) 0%,
      rgba(6, 10, 20, 0.86) 48%,
      rgba(6, 10, 20, 0.60) 74%,
      rgba(6, 10, 20, 0.28) 100%),
    linear-gradient(to right,
      rgba(6, 10, 20, 0.88) 0%,
      rgba(6, 10, 20, 0.55) 42%,
      rgba(6, 10, 20, 0.10) 78%);
}

/* A placeholder is already a flat dark plate; a heavy scrim would crush it. */
.store-card--soon .store-card__media img { opacity: 0.5; }

.store-card__body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg);
  pointer-events: none; /* clicks fall through to __hit; buttons re-enable below */
}

.store-card__body a,
.store-card__body button { pointer-events: auto; }

.store-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.store-card__platform {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.store-card__text { margin-top: auto; }

.store-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.store-card--hero .store-card__title { font-size: var(--text-2xl); }

.store-card__tagline {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: var(--space-md);
  max-width: 46ch;
}

/* Standard cards are tight; drop the tagline to one line rather than
   letting it push the button out of the card. */
.store-card--standard .store-card__tagline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- PREREQ BADGES --- */
.store-card__reqs,
.store-detail-reqs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0 0 var(--space-md);
  padding: 0;
}

.store-detail-reqs { flex-direction: column; gap: 0.4rem; }

.store-req {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
}

.store-req i { font-size: 14px; }

.store-req--good { color: #93C5FD; font-weight: 500; }

/* Standard cards hide requirements — no room. The detail page carries them. */
.store-card--standard .store-card__reqs { display: none; }

.store-card__foot {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* A button over an image needs its own surface, not the site's dark fill. */
.btn--onimage {
  background: #fff;
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  font-size: var(--text-xs);
}

.btn--onimage:hover { background: var(--accent); color: #fff; }

.btn--disabled {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  cursor: default;
  padding: 0.6rem 1.2rem;
  font-size: var(--text-xs);
}

.store-card__meta {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}

.store-empty { padding: var(--space-4xl) 0; text-align: center; }

.store-foot-note {
  margin-top: var(--space-2xl);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   ITEM DETAIL — case-study-style overlay hero
   ============================================ */
.store-item-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;   /* breadcrumb top, content bottom */
  overflow: hidden;
  min-height: clamp(440px, 62vh, 620px);
}

.store-item-hero__bg { position: absolute; inset: 0; z-index: 0; }
/* section--dark lifts children to position:relative to sit above its ASCII
   texture; override for the image bg and hide the injected texture. */
.store-item-hero.section--dark > .store-item-hero__bg { position: absolute; inset: 0; z-index: 0; }
.store-item-hero > .section-dark__asic-bg { display: none !important; }

.store-item-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.store-item-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 15, 28, 0.30) 0%,
    rgba(10, 15, 28, 0.18) 26%,
    rgba(10, 15, 28, 0.70) 72%,
    rgba(10, 15, 28, 0.94) 100%);
}

.store-item-hero__topbar { padding-top: 96px; }
/* Breadcrumb over photography: a frosted pill keeps it legible on any tile. */
.store-back--onhero {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(10, 15, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-sm);
}
.store-back--onhero:hover {
  color: #fff;
  background: rgba(10, 15, 28, 0.58);
  border-color: rgba(255, 255, 255, 0.32);
}

.store-item-hero__content {
  padding-bottom: var(--space-3xl);
  color: #fff;
}

.store-item-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 28px;
  margin-bottom: var(--space-lg);
}
.store-item-hero__eyebrow { color: var(--accent-soft) !important; margin-bottom: var(--space-sm); }
.store-item-hero__title { color: #fff; margin-bottom: var(--space-md); }
.store-item-hero__tagline {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: var(--space-xl);
}
.store-item-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.store-item-hero__meta { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.7); }

@media (max-width: 640px) {
  .store-item-hero { min-height: clamp(460px, 72vh, 640px); }
  .store-item-hero__topbar { padding-top: 80px; }
  .store-item-hero__content { padding-bottom: var(--space-2xl); }
}

/* --- SPEC BAND (requirements / install / links, below the hero) --- */
.store-item-spec {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}
.store-spec-row {
  display: flex;
  gap: var(--space-2xl) var(--space-3xl);
  flex-wrap: wrap;
}
.store-spec__col { flex: 1 1 200px; min-width: 180px; }
.store-spec__col--install { flex: 2 1 320px; }
.store-spec__col .section-header__label { margin-bottom: var(--space-md); }
.store-spec__col .store-detail-reqs { flex-direction: column; gap: 0.4rem; }
.store-spec__col .store-req { color: var(--text-muted); }
.store-spec__col .store-req--good { color: var(--accent-hover); }
.store-spec__col .store-req a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.store-spec__col .store-req a:hover { color: var(--accent); }

/* ============================================
   DETAIL PAGE  (light — the store index is the
   dark moment, the detail page goes back to the site)
   ============================================ */

.store-detail-head {
  /* Clears the fixed nav (~65px) with a modest gap — 140px left too much
     dead space above the breadcrumb. */
  padding-top: 108px;
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.store-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.store-back:hover { color: var(--accent); }

.store-detail-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  aspect-ratio: 16 / 7;
  background: var(--bg-dark);
}

.store-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Portrait device captures: show the whole shot on a dark plate rather than
   cropping a thin band out of a tall image. */
.store-detail-hero--contain {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 50% 0%, var(--bg-dark-alt) 0%, var(--bg-dark) 70%);
}
.store-detail-hero--contain img {
  object-fit: contain;
  object-position: center;
  padding: var(--space-lg) 0;
}

/* Mobile: the inset rounded card reads as cramped. Break the image out to the
   viewport edges (negative margin = the container's own side padding), square
   the corners, and give it more height. Breadcrumb stays, top tightens. */
@media (max-width: 640px) {
  .store-detail-head { padding-top: 84px; }
  .store-back { margin-bottom: var(--space-md); }

  .store-detail-hero {
    margin-left: calc(-1 * var(--container-pad));
    margin-right: calc(-1 * var(--container-pad));
    margin-bottom: var(--space-xl);
    border-radius: 0;
    aspect-ratio: 4 / 3;
  }

  /* Portrait device shots go taller so the device fills the width. */
  .store-detail-hero--contain { aspect-ratio: 4 / 5; }
  .store-detail-hero--contain img { padding: var(--space-md) 0; }
}

.store-placeholder-note {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.7rem;
  backdrop-filter: blur(6px);
}

/* Everything a downloader needs sits above the fold. */
.store-detail-grid {
  display: grid;
  /* Fixed 400px requirements sidebar (holds the install code block, so it
     shouldn't flex). minmax(0,1fr) lets the main column shrink without a long
     line forcing an overflow. */
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: var(--space-3xl);
  align-items: start;
}

/* Collapse to one column before the fixed sidebar would get wider than the
   main content (which happens in the ~900-1024px band with a 400px sidebar). */
@media (max-width: 1024px) {
  .store-detail-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

.store-detail-title { margin-bottom: var(--space-md); }

.store-detail-tagline {
  max-width: 560px;
  margin-bottom: var(--space-xl);
}

.store-detail-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.store-detail-meta {
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.store-detail-side {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-light-alt);
}

.store-detail-side .section-header__label { margin-bottom: var(--space-md); }
.store-detail-side .store-req { color: var(--text-muted); }
.store-detail-side .store-req--good { color: var(--accent-hover); }
.store-detail-side .store-req a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.store-detail-side .store-req a:hover { color: var(--accent); }

.store-install-label { margin-top: var(--space-xl); }

.store-install {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
}

.store-install code {
  flex: 1;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-primary);
  word-break: break-all;
}

.store-install__copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.store-install__copy:hover { color: var(--accent); border-color: var(--accent); }

.store-install__copy.is-copied {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.store-detail-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.store-detail-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-detail-links a:hover { color: var(--accent); }

/* --- FEATURE GRID --- */
.store-features {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.store-features .section-header__label { margin-bottom: var(--space-xl); }

.store-feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl) var(--space-xl);
}

@media (max-width: 820px) { .store-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .store-feature-grid { grid-template-columns: 1fr; } }

.store-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 22px;
  margin-bottom: var(--space-md);
}

.store-feature__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

.store-feature__desc {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 34ch;
}

.store-detail-body {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.store-detail-body .cs-section-text {
  max-width: 720px;
  margin-bottom: var(--space-2xl);
}

/* Screenshots in the body read as framed product shots, not raw images
   bleeding into the page. */
.store-detail-body .cs-section-image {
  padding: 0;
  margin: 0 0 var(--space-2xl);
}
.store-detail-body .cs-section-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md, 0 12px 32px rgba(10, 15, 28, 0.12));
}
.store-detail-body .cs-section-image figcaption {
  margin-top: var(--space-md);
  max-width: 720px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Phone gallery: three device mockups sitting side by side on the page, each
   floating on its own like the single phone shot. No container, no overlap. */
.store-phones-figure { margin: 0 0 var(--space-2xl); }
.store-phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 3vw, 36px);
}
.store-phone {
  flex: 0 1 30%;
  max-width: 232px;
  margin: 0;
}
.store-phone img {
  display: block;
  width: 100%;
  height: auto;
}
.store-phones-figure figcaption {
  margin-top: var(--space-lg);
  max-width: 720px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  margin-inline: auto;
}
@media (max-width: 560px) {
  .store-phones { gap: clamp(6px, 2vw, 14px); }
}

/* Portrait shots (phone mockups) carry their own frame, so cap the width,
   center them, and drop the card border. */
.store-detail-body .cs-section-image--portrait img {
  max-width: 340px;
  margin-inline: auto;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.store-detail-body .cs-section-image--portrait figcaption {
  text-align: center;
  margin-inline: auto;
}

.store-more {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3xl);
}

.store-more .section-header__label { margin-bottom: var(--space-xl); }

/* ============================================
   SETUP PAGE (/store/setup/)
   ============================================ */
.btn--small { padding: 0.55rem 1.15rem; font-size: var(--text-xs); }

.store-setup {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-4xl);
}

/* Two columns on desktop: steps on the left, the LM Studio shot sticky on the
   right. On mobile it collapses to one column and the shot folds into the flow. */
.store-setup__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 34%, 440px);
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-4xl);
}

.setup-aside { position: sticky; top: 96px; }

.setup-shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light-alt);
  box-shadow: var(--shadow-md, 0 12px 32px rgba(10, 15, 28, 0.12));
}
.setup-shot img { display: block; width: 100%; height: auto; }
.setup-shot figcaption {
  padding: 0.75rem 1rem;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .store-setup__cols { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .setup-aside { position: static; order: -1; max-width: 560px; }
}

.setup-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.setup-step {
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}
.setup-step:last-child { border-bottom: none; margin-bottom: 0; }

/* Number + heading on one row above the body, so the copy gets full width. */
.setup-step__head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.setup-step__head h2 { margin: 0; }

.setup-step__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: var(--text-base);
}

.setup-step__body p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.setup-step__body p:last-child { margin-bottom: 0; }
.setup-step__body .store-install { max-width: 480px; margin-bottom: var(--space-md); }

.setup-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-hover) !important;
  font-size: var(--text-sm);
  line-height: 1.55;
}
.setup-note i { margin-top: 3px; flex-shrink: 0; }

.setup-models { border-top: 1px solid var(--border); padding-top: var(--space-2xl); }
.setup-models .section-header__label { margin-bottom: var(--space-xl); }

.setup-model-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
@media (max-width: 640px) { .setup-model-grid { grid-template-columns: 1fr; } }

.setup-model__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.setup-model__title i { color: var(--accent); }
.setup-model p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.55; }
.setup-model code {
  font-size: 0.85em;
  background: var(--bg-light-alt);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
}

.setup-footer {
  margin-top: var(--space-4xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}
.setup-footer p { color: var(--text-secondary); margin-bottom: var(--space-md); }
.setup-footer .btn { margin-right: var(--space-sm); }
