/* Dormouse Device: Shop (/shop). App-store style tiles. Uses the colours from styles.css. */
.shop-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.shop-card {
  display: flex; gap: 14px; align-items: flex-start; height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; color: var(--ink); text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.shop-card:hover { color: var(--ink); border-color: var(--hazel); box-shadow: var(--shadow); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .shop-card, .shop-card:hover { transition: none; transform: none; } }
.shop-icon {
  flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--hazel-tint);
  display: grid; place-items: center;
}
.shop-icon svg { width: 36px; height: 36px; }
/* Icons from the portal that are a whole tile (a coloured square or a picture) fill the space. */
.shop-icon.is-full { background: none; overflow: hidden; }
.shop-icon.is-full svg, .shop-icon.is-full img { width: 56px; height: 56px; display: block; }
/* Products still being built: shown, but not a link yet. */
.shop-card.is-soon { cursor: default; }
.shop-card.is-soon:hover { border-color: var(--line); box-shadow: none; transform: none; }
.shop-price.is-soon { background: var(--hazel-tint); color: #8A4A10; }
.shop-body { display: grid; gap: 4px; min-width: 0; }
.shop-top { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.shop-name { font-family: var(--font-head); font-weight: 900; font-size: 1.1rem; line-height: 1.2; }
.shop-price { flex: none; background: #E4EDE4; color: var(--moss); font-weight: 700; font-size: 0.82rem; border-radius: 999px; padding: 1px 9px; }
.shop-desc { color: var(--slate); font-size: 0.95rem; line-height: 1.45; }
.shop-meta { font-size: 0.85rem; color: var(--hazel-deep); font-weight: 600; }
.shop-more { margin: 24px 0 0; }
/* Sections: Free tools in your browser, Software to download, Services, Guides. */
.shop-sec + .shop-sec { margin-top: 36px; }
.shop-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; width: fit-content; max-width: 100%; border-radius: var(--radius-sm); }
.shop-sec > summary::-webkit-details-marker { display: none; }
.shop-sec > summary:focus-visible { outline: 3px solid var(--hazel); outline-offset: 4px; }
/* A chevron after the heading: points down when open, right when folded. */
.shop-sec > summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-left: 2px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: translateY(-3px) rotate(45deg); transition: transform 150ms ease;
}
.shop-sec:not([open]) > summary::after { transform: rotate(-45deg); }
.shop-sec:not([open]) > summary { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .shop-sec > summary::after { transition: none; } }
.shop-group { font-size: 1.35rem; margin: 0; }
.shop-group-note { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--slate); margin-left: 6px; }
@media (max-width: 600px) { .shop-group-note { display: block; margin: 4px 0 0; } }
/* Buy Home / Buy Pro under a product with licence keys. */
.shop-grid > li { display: flex; flex-direction: column; gap: 10px; }
.shop-grid > li > .shop-card { flex: 1; }
/* A row with buy buttons in it would stretch its neighbours very tall, so those rows keep each card its own height. */
.shop-grid:has(.shop-buy) { align-items: start; }
.shop-grid:has(.shop-buy) > li > .shop-card { flex: none; }
.shop-buy { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.shop-buy-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; line-height: 1.4; cursor: pointer; }
.shop-buy-agree input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--hazel-deep); }
.shop-buy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-buy-row .btn { padding: 8px 14px; font-size: 0.92rem; }
.shop-buy-row .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.shop-buy-note { margin: 0; font-size: 0.82rem; color: var(--slate); }
/* Download buttons under a software product (and on its own page). */
.shop-dl { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.shop-dl .btn { padding: 8px 14px; font-size: 0.92rem; }
.shop-grid:has(.shop-dl) { align-items: start; }
.shop-grid:has(.shop-dl) > li > .shop-card { flex: none; }
/* A software product's own page (e.g. /tools/diagnostics). */
.prod-hero { display: grid; gap: 20px; grid-template-columns: 96px 1fr; align-items: center; }
.prod-hero img { width: 96px; height: 96px; border-radius: 22px; }
@media (max-width: 560px) { .prod-hero { grid-template-columns: 1fr; } }
.prod-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.prod-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tier-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; }
.tier-table th, .tier-table td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tier-table thead th { border-top: 0; background: var(--hazel-tint); font-family: var(--font-head); }
.tier-table td:not(:first-child), .tier-table th:not(:first-child) { text-align: center; }
.tier-price { display: block; font-size: 0.85rem; color: var(--slate); font-weight: 600; }
.prod-buy:empty { display: none; }

/* A featured app (update-45): a large dark banner, with the tools it includes as a row of icons. */
.app-band { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--ink); color: #fff; border-radius: 24px; padding: 28px 32px; margin: 0 0 32px; }
.shop-sec + .app-band { margin-top: 48px; }
.app-band-icon img, .app-band-icon svg { width: 120px; height: 120px; display: block; border-radius: 26px; }
.app-band-kicker { color: var(--hazel); font-weight: 700; font-size: 0.85rem; margin: 0; }
.app-band-name { color: #fff; margin: 4px 0 6px; font-size: 1.9rem; }
.app-band-desc { color: var(--ink-soft); margin: 0 0 14px; line-height: 1.45; max-width: 52ch; }
.app-band-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-band-btns .btn { padding: 10px 20px; }
.app-band-dl { background: var(--hazel); color: var(--ink); border: 0; }
.app-band-dl:hover { background: var(--hazel-tint); color: var(--ink); }
.app-band-dl2 { background: transparent; color: #fff; border: 1px solid var(--ink-soft); }
.app-band-dl2:hover { color: var(--ink); background: #fff; }
.app-band-more { color: var(--hazel-tint); margin-left: 8px; font-size: 0.95rem; }
.app-band-more:hover { color: #fff; }
.app-band-inc { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; }
.app-band-inc h3 { color: var(--ink-soft); font: 700 0.85rem var(--font-body); margin: 0 0 10px; }
.app-band-inc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.app-band-inc a, .app-band-inc li > span { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 0.8rem; color: #fff; text-decoration: none; }
.app-band-inc a:hover { color: var(--hazel-tint); }
.app-band-inc .shop-icon { width: 46px; height: 46px; border-radius: 14px; }
.app-band-inc .shop-icon svg, .app-band-inc .shop-icon img { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .app-band { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .app-band-icon img, .app-band-icon svg { width: 84px; height: 84px; border-radius: 20px; }
  .app-band-inc ul { grid-template-columns: repeat(4, 1fr); }
}

/* The Tools page's heading: read out by screen readers and search engines, not shown (the banner sits at the top). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
