/* Landing page: one tile per product.
   The product colour arrives per tile as --product from config/products.json. */

:root {
  --bg: #f6f7f9; --card: #fff; --line: #e3e5e9; --ink: #1a1d24; --muted: #6b7280;
  --shadow: 0 1px 2px rgba(20, 24, 34, .05), 0 8px 24px rgba(20, 24, 34, .06);
  --shadow-lift: 0 2px 4px rgba(20, 24, 34, .06), 0 16px 40px rgba(20, 24, 34, .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d; --card: #1e2128; --line: #2e323b; --ink: #e6e8ec; --muted: #9aa1ad;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.head { max-width: 1180px; margin: 0 auto; padding: 72px 24px 40px; }
.head .eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.head h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; letter-spacing: -.01em; }
.head .lead { margin: 0; max-width: 68ch; color: var(--muted); }

.tiles {
  max-width: 1180px; margin: 0 auto; padding: 0 24px 72px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
}

.tile {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px 22px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  position: relative; overflow: hidden;
}
/* Coloured edge on top - the only thing telling the products apart visually. */
.tile::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: var(--product, var(--line));
}
a.tile:hover, a.tile:focus-visible {
  transform: translateY(-3px); box-shadow: var(--shadow-lift);
  border-color: var(--product, var(--line)); outline: none;
}
a.tile:focus-visible { outline: 2px solid var(--product); outline-offset: 3px; }

.tile .logo { display: flex; align-items: center; height: 64px; margin-bottom: 14px; }
.tile .logo img { max-height: 64px; max-width: 200px; width: auto; height: auto; }
/* Stand-in as long as no SVG sits in assets/logos/. */
.tile .mark {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 15px;
  background: var(--product, var(--muted)); color: #fff;
  font-size: 22px; font-weight: 700; letter-spacing: .02em;
}

.tile .name { font-size: 18px; font-weight: 650; }
.tile .summary { font-size: 14px; color: var(--muted); margin: 4px 0 14px; flex: 1; }
.tile .snapshot {
  font-size: 12.5px; font-weight: 600; color: var(--product, var(--muted));
  border-top: 1px solid var(--line); padding-top: 12px;
}
.tile .snapshot .more { font-weight: 400; color: var(--muted); }

.tile.empty { box-shadow: none; background: transparent; border-style: dashed; }
.tile.empty .logo, .tile.empty .name, .tile.empty .summary { opacity: .45; }
.tile.empty .logo img { filter: grayscale(1); }
.tile.empty .mark { background: var(--muted); }
.tile.empty .snapshot { color: var(--muted); font-weight: 400; font-style: italic; }
.tile.empty::before { opacity: .3; }

.foot {
  max-width: 1180px; margin: 0 auto; padding: 0 24px 56px;
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}
.foot p { padding-top: 20px; margin: 0; }

@media (max-width: 640px) {
  .head { padding: 44px 18px 28px; }
  .head h1 { font-size: 27px; }
  .tiles { padding: 0 18px 48px; gap: 16px; }
}
