/* The two parent landing pages (FIXES_5 Part B). Brand tokens, 4/8/12/16/24/32/48 spacing, flat colours.
   Motion: transform and opacity only, 150 to 300 ms, none under prefers-reduced-motion. */
.page-landing .mono { font-family: var(--pw-font-mono, var(--font-mono)); font-weight: 500; }
.lsec { padding: 64px 0; }
.lsec--tight { padding: 48px 0 64px; }
.lsec--sage { background: var(--pw-sage-mist); }
.lsec--kraft { background: var(--pw-kraft-mist); }
.leyebrow { margin: 0 0 12px; font: 600 13px/16px var(--font-body); letter-spacing: .08em; color: var(--pw-forest); }
.lh2 { margin: 0; font: 700 30px/36px var(--font-display); color: var(--pw-bark); }
.lintro { margin: 12px 0 0; max-width: 560px; font: 400 16px/26px var(--font-body); color: var(--pw-bark-muted); }
.page-landing a:focus-visible { outline: 3px solid var(--pw-foil-gold); outline-offset: 2px; border-radius: 4px; }

/* ---- industry tiles ---- */
.igrid { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.igrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.igrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.igrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.igrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.igrid--1 { grid-template-columns: minmax(0, 1fr); }
.itile, .fcard { display: flex; }
.itile__card, .fcard__card { position: relative; display: flex; flex: 1; flex-direction: column; border: 1px solid var(--pw-line); border-radius: 16px; background: var(--pw-white); color: var(--pw-bark); transition: border-color 200ms ease-out; }
.itile__card { gap: 12px; padding: 8px 8px 16px; }
.itile__media .pframe, .fcard__media .pframe { position: relative; display: block; overflow: hidden; border-radius: 12px; }
.pframe.is-empty { background: var(--pw-sage-mist); box-shadow: none; }
.pframe.is-empty > svg { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; color: var(--pw-forest); opacity: .28; }
.itile__media, .fcard__media { display: block; overflow: hidden; border-radius: 12px; }
.itile__media img, .fcard__media img { transition: transform 300ms ease-out; }
.itile__text { display: flex; flex: 1; flex-direction: column; padding: 0 8px; }
.itile__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.itile__name { margin: 0; font: 600 18px/24px var(--font-body); }
.itile__a { color: var(--pw-bark); text-decoration: none; transition: color 200ms ease-out; }
.itile__a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 16px; } /* the one main link covers the tile; quick links sit above it */
.itile__a:focus-visible { outline: 3px solid var(--pw-foil-gold); outline-offset: 2px; }
.itile__pill { flex: none; padding: 2px 8px; border-radius: 8px; background: var(--pw-sage-mist); font-size: 12px; line-height: 16px; color: var(--pw-forest); }
.itile__line { margin: 4px 0 0; min-height: 40px; font: 400 14px/20px var(--font-body); color: var(--pw-bark-muted); }
.itile__quick { position: relative; z-index: 1; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--pw-line-strong); font: 400 13px/20px var(--font-body); color: var(--pw-bark-muted); }
.itile__quick a, .fcard__name a { color: var(--pw-forest); text-decoration: none; }
.itile__quick a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the arrow circle sits at the photo's bottom-right */
.itile__media, .fcard__media { position: relative; }
.itile__go { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pw-forest); color: var(--pw-white); pointer-events: none; }
@media (hover: hover) {
  .itile__go { opacity: 0; transition: opacity 200ms ease-out; }
  .itile__card:is(:hover, :focus-within), .fcard__card:is(:hover, :focus-within) { border-color: var(--state-border-hover); }
  .itile__card:is(:hover, :focus-within) .pframe img, .fcard__card:is(:hover, :focus-within) .pframe img { transform: scale(1.03); }
  .itile__card:is(:hover, :focus-within) .itile__a, .fcard__card:is(:hover, :focus-within) .fcard__name a { color: var(--state-text-hover); }
  .itile__card:is(:hover, :focus-within) .itile__go, .fcard__card:is(:hover, :focus-within) .itile__go { opacity: 1; }
}

/* ---- family cards ---- */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.fcard__card { padding: 16px; }
.fcard__media .pframe { aspect-ratio: 4 / 3; }
.fcard__media .pframe img { width: 100%; height: 100%; object-fit: cover; }
.fcard__job { align-self: flex-start; margin: 16px 0 0; padding: 4px 8px; border-radius: 8px; background: var(--pw-sage-mist); font: 600 13px/16px var(--font-body); color: var(--pw-forest); }
.fcard__name { margin: 8px 0 0; font: 700 22px/28px var(--font-display); }
.fcard__n { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--pw-bark-muted); white-space: nowrap; }
.fcard__line { margin: 8px 0 0; min-height: 52px; font: 400 16px/26px var(--font-body); color: var(--pw-bark); }
.fcard__made { display: flex; gap: 8px; margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--pw-line-strong); font: 400 14px/20px var(--font-body); color: var(--pw-bark); }
.fcard__lab { flex: none; width: 72px; font: 600 13px/20px var(--font-body); color: var(--pw-bark-muted); }
.fcard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; padding: 0; list-style: none; }
.fchip { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 8px; border: 1px solid var(--pw-line); border-radius: 8px; font: 400 13px/16px var(--font-body); color: var(--pw-bark); text-decoration: none; transition: border-color 150ms ease-out, color 150ms ease-out; }
.fchip:hover, .fchip:focus-visible { border-color: var(--state-border-hover); color: var(--state-text-hover); }
.fcard__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; min-height: 44px; margin-top: auto; padding: 0 24px; border: 1.5px solid var(--pw-forest); border-radius: 22px; font: 600 15px/20px var(--font-body); color: var(--pw-forest); text-decoration: none; transition: background-color 200ms ease-out, color 200ms ease-out; }
.fcard__btn:hover { background: var(--pw-forest); color: var(--pw-white); }

/* ---- how to choose ---- */
.lcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.lcard { padding: 24px; border-radius: 16px; background: var(--pw-white); }
.lcard__ic, .lway__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pw-sage-mist); color: var(--pw-forest); }
.lcard__n { margin: 16px 0 0; font-size: 13px; line-height: 16px; color: var(--pw-bark-muted); }
.lcard h3 { margin: 4px 0 0; font: 700 22px/28px var(--font-display); color: var(--pw-bark); }
.lcard p:not(.lcard__n) { margin: 8px 0 16px; font: 400 16px/26px var(--font-body); color: var(--pw-bark); }
.lcard .link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 15px/20px var(--font-body); color: var(--pw-forest); }

/* ---- two ways in ---- */
.lway { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lway__card { display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: 16px; background: var(--pw-white); }
.lway__ic { flex: none; background: var(--pw-kraft-mist); }
.lway__body { flex: 1; min-width: 0; }
.lway h3 { margin: 0; font: 700 22px/28px var(--font-display); color: var(--pw-bark); }
.lway p { margin: 4px 0 0; font: 400 16px/24px var(--font-body); color: var(--pw-bark-muted); }
.lway__btn { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border: 1.5px solid var(--pw-forest); border-radius: 22px; background: var(--pw-white); font: 600 15px/20px var(--font-body); color: var(--pw-forest); text-decoration: none; transition: background-color 200ms ease-out, color 200ms ease-out; }
.lway__btn:hover { background: var(--pw-forest); color: var(--pw-white); }

/* ---- comparison ---- */
.ltable { margin-top: 32px; overflow: hidden; border: 1px solid var(--pw-line); border-radius: 16px; background: var(--pw-white); }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { padding: 16px; border-bottom: 1px solid var(--pw-line); text-align: left; vertical-align: top; font: 400 15px/24px var(--font-body); color: var(--pw-bark); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font: 700 18px/24px var(--font-display); }
.cmp thead a { color: var(--pw-forest); text-decoration: none; }
.cmp tbody th { width: 168px; font: 600 13px/16px var(--font-body); color: var(--pw-bark-muted); }
.lstack { display: none; }

/* ---- motion: tiles fade up once (script adds .is-ready, then .is-in) ---- */
[data-rise].is-ready > li { opacity: 0; transform: translateY(8px); }
[data-rise].is-ready > li.is-in { opacity: 1; transform: none; transition: opacity 250ms ease-out, transform 250ms ease-out; transition-delay: calc(min(var(--i, 0), 8) * 40ms); }

@media (max-width: 1023px) {
  .igrid, .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .itile--last { grid-column: 1 / -1; }
  .itile--last .itile__card { flex-direction: row; align-items: stretch; }
  .itile--last .itile__media { flex: 0 0 40%; }
  .itile--last .itile__text { justify-content: center; }
  .lcards, .lway { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .ltable { display: none; }
  .lstack { display: grid; gap: 12px; margin-top: 24px; }
  .lstack__card { padding: 16px; border: 1px solid var(--pw-line); border-radius: 16px; background: var(--pw-white); }
  .lstack__card h3 { margin: 0 0 12px; font: 700 22px/28px var(--font-display); }
  .lstack__card a { color: var(--pw-forest); text-decoration: none; }
  .lstack dt { margin-top: 12px; font: 600 13px/16px var(--font-body); color: var(--pw-bark-muted); }
  .lstack dd { margin: 4px 0 0; font: 400 15px/24px var(--font-body); color: var(--pw-bark); }
}
@media (max-width: 599px) {
  .lsec { padding: 48px 0; }
  .lsec--tight { padding: 32px 0 48px; }
  .igrid { gap: 12px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .lh2 { font-size: 24px; line-height: 30px; }
  .lway__card { flex-wrap: wrap; }
  .lway__btn { width: 100%; justify-content: center; }
  .itile__quick a { display: inline-block; padding: 12px 0; } /* 44 px hit area on phones */
  .itile--last .itile__card { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .itile__card, .fcard__card, .itile__a, .itile__media img, .fcard__media img, .fchip, .fcard__btn, .lway__btn, .itile__go { transition: none !important; }
  .itile__card:hover .pframe img, .fcard__card:hover .pframe img { transform: none !important; }
  [data-rise].is-ready > li { opacity: 1; transform: none; }
}

/* fit: nothing may push the page wider than the phone; family headings share two lines so the rows below line up */
.itile, .fcard, .itile__card, .fcard__card, .itile__text { min-width: 0; }
.itile__row { flex-wrap: wrap; }
@media (min-width: 1024px) { .fcard__name { min-height: 56px; } }

/* parent_pages_v2: the What You Sell hero is the H1 and the Shop All Boxes link; the cards show image, name and count only */
.ihead--min h1 { margin-top: 0; }
.ihead--min .ihead__intro { justify-content: flex-start; }
.ihead--min .ihead__intro .ihead__all { display: inline-flex; }
.itile__pill--n { font-variant-numeric: tabular-nums; }
