/* Homepage (marketplace first). asicprofit tokens only: green primary, orange-600 titles, Inter. */
.hp-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--green-100) 55%, hsl(var(--background))) 0%, hsl(var(--background)) 100%); border-bottom: 1px solid hsl(var(--border)); }
.hp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: center; padding: 56px 24px 52px; }
.hp-kicker { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); }
.hp-kicker::before { content: ""; width: 22px; height: 2px; background: hsl(var(--primary)); }
.hp-hero h1 { color: var(--title); font-weight: 500; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 14px; max-width: 16ch; }
.hp-hero .lead { font-size: 18px; color: hsl(var(--muted-foreground)); max-width: 52ch; margin: 0 0 24px; }
.hp-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--gray-300); border-radius: 12px; background: hsl(var(--background)); max-width: 620px; box-shadow: 0 8px 30px -18px rgba(0,0,0,.25); }
.hp-search:focus-within { border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px color-mix(in srgb, hsl(var(--primary)) 18%, transparent); }
.hp-search svg { width: 20px; height: 20px; flex: none; color: hsl(var(--muted-foreground)); }
.hp-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; height: 42px; min-width: 0; }
.hp-search .btn { height: 42px; }
.hp-popular { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 14px; font-size: 14px; }
.hp-popular a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gray-300); }
.hp-sellcta { margin: 18px 0 0; font-weight: 600; }
.hp-sellcta a { color: var(--green-700); }
.hp-hero-show { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 16px; box-shadow: 0 30px 60px -32px rgba(0,0,0,.28); overflow: hidden; }
.hp-show-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid hsl(var(--border)); flex-wrap: wrap; }
.hp-show-head b { font-size: 14px; }
.hp-tabs { display: inline-flex; gap: 2px; padding: 3px; background: hsl(var(--muted)); border-radius: 9px; }
.hp-tabs button { border: 0; background: transparent; padding: 5px 10px; border-radius: 7px; font: 500 12.5px var(--font); cursor: pointer; color: hsl(var(--foreground) / .72); }
.hp-tabs button[aria-selected="true"] { background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.hp-show { display: grid; grid-template-columns: 200px 1fr; }
.hp-show-img { position: relative; background: #fff; display: grid; place-items: center; padding: 16px; border-right: 1px solid hsl(var(--border)); }
.hp-show-img img { max-height: 170px; object-fit: contain; }
.hp-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 9999px; background: hsl(var(--primary)); color: #04160c; }
.hp-show-in { padding: 16px 18px 18px; display: grid; gap: 8px; }
.hp-show-name { font-size: 19px; font-weight: 700; line-height: 1.2; }
.hp-show-meta { font-size: 13px; color: hsl(var(--muted-foreground)); }
.hp-show-profit { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.hp-show-profit b { font-size: 30px; font-weight: 800; color: var(--green-600); font-variant-numeric: tabular-nums; }
.hp-show-profit > span { font-size: 13px; color: hsl(var(--muted-foreground)); }
.hp-show .split { margin: 2px 0 6px; }
.hp-show-buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px dashed var(--gray-200); flex-wrap: wrap; }
.hp-price { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hp-trust { border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.hp-trust-in { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: center; padding: 14px 24px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.hp-trust b { color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }
.hp-live { display: inline-flex; align-items: center; gap: 7px; }
.hp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: hpPulse 2s infinite; }
@keyframes hpPulse { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hp-sec { padding: 40px 0 0; }
.hp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hp-head h2 { font-size: 24px; font-weight: 500; color: var(--title); margin: 0; }
.hp-head p { margin: 4px 0 0; }
.hp-head > a { font-weight: 600; color: var(--green-700); white-space: nowrap; }
.hp-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hp-cat { display: grid; gap: 6px; justify-items: start; padding: 16px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); transition: border-color .15s, transform .15s, box-shadow .15s; }
.hp-cat:hover { border-color: hsl(var(--primary)); transform: translateY(-2px); box-shadow: 0 12px 30px -20px rgba(0,0,0,.3); color: inherit; }
.hp-cat-ico img, .hp-emoji { width: 40px; height: 40px; font-size: 30px; line-height: 40px; display: block; }
.hp-cat b { font-size: 15px; }
.hp-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.hp-mc { scroll-snap-align: start; display: grid; gap: 6px; align-content: start; padding: 14px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.hp-mc:hover { border-color: hsl(var(--primary)); color: inherit; }
.hp-mc-img { height: 120px; display: grid; place-items: center; background: #fff; border-radius: 8px; }
.hp-mc-img img { max-height: 110px; object-fit: contain; }
.hp-mc b { font-size: 14.5px; line-height: 1.3; }
.hp-pill { justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--green-100); color: var(--green-700); }
.hp-pill.neg { background: var(--red-100); color: var(--red-500); }
.hp-deal { display: grid; gap: 2px; padding-top: 8px; border-top: 1px dashed var(--gray-200); }
.hp-deal b { font-size: 18px; }
.hp-top td.model img { width: 20px; height: 20px; }
.hp-hosts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hp-host { display: grid; gap: 4px; padding: 16px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.hp-host:hover { border-color: hsl(var(--primary)); color: inherit; }
.hp-rate b { font-size: 22px; font-weight: 800; color: var(--green-700); }
.hp-logos { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-logo { display: grid; place-items: center; width: 150px; height: 64px; padding: 10px 14px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: #fff; }
.hp-logo img { max-height: 36px; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.hp-logo:hover img { filter: none; opacity: 1; }
.hp-band { margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: 16px; border: 1px solid color-mix(in srgb, hsl(var(--primary)) 40%, transparent); background: linear-gradient(120deg, var(--green-100), hsl(var(--card)) 70%); }
.hp-band h2 { font-size: 21px; margin: 0 0 6px; max-width: 40ch; }
.hp-band p { margin: 0; color: hsl(var(--muted-foreground)); }
.hp-how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: h; }
.hp-how li { counter-increment: h; padding: 18px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.hp-how li::before { content: counter(h); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-weight: 800; margin-bottom: 8px; }
.hp-how b { display: block; font-size: 16px; }
.hp-how p { margin: 6px 0 0; font-size: 14px; }
.hp-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hp-post { display: grid; gap: 8px; align-content: start; }
.hp-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid hsl(var(--border)); }
.hp-post-cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--title); }
.hp-post b { font-size: 16px; line-height: 1.3; }
@media (max-width: 1100px) {
  .hp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 24px; }
  .hp-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-hosts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hp-hero-grid { padding: 26px 16px; }
  .hp-show { grid-template-columns: 1fr; }
  .hp-show-img { border-right: 0; border-bottom: 1px solid hsl(var(--border)); }
  .hp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-hosts, .hp-how, .hp-posts { grid-template-columns: 1fr; }
  .hp-search .btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .hp-live i { animation: none; } .hp-cat { transition: none; } }
.hp-show[hidden] { display: none; }

/* phones (16 Oct): compact, far less scrolling. The best-miner card puts the picture beside the figures, the sections
   use two-up tiles and list rows instead of full-width cards, the blog shows thumbnails beside the titles. */
@media (max-width: 640px) {
  .hp-hero-grid { padding: 16px 16px 18px; gap: 16px; }
  .hp-kicker { font-size: 11px; }
  .hp-hero h1 { font-size: 27px; margin: 8px 0; }
  .hp-hero .lead { font-size: 15px; margin-bottom: 14px; }
  .hp-search { padding: 4px 4px 4px 12px; }
  .hp-search input, .hp-search .btn { height: 40px; }
  .hp-popular { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; margin-top: 10px; scrollbar-width: none; }
  .hp-popular::-webkit-scrollbar { display: none; }
  .hp-sellcta { margin-top: 10px; font-size: 14px; }
  .hp-show-head { padding: 8px 10px; }
  .hp-tabs button { padding: 4px 8px; font-size: 12px; }
  .hp-show { grid-template-columns: 104px minmax(0, 1fr); }
  .hp-show-img { border-right: 1px solid hsl(var(--border)); border-bottom: 0; padding: 8px; }
  .hp-show-img img { max-height: 92px; }
  .hp-badge { top: 6px; left: 6px; font-size: 10px; padding: 2px 7px; }
  .hp-show-in { padding: 10px 12px 12px; gap: 4px; }
  .hp-show-name { font-size: 16px; }
  .hp-show-meta { font-size: 12px; }
  .hp-show-profit { flex-wrap: wrap; gap: 0 6px; margin-top: 2px; }
  .hp-show-profit b { font-size: 22px; }
  .hp-show-profit > span { font-size: 12px; }
  .hp-show-buy { padding-top: 6px; gap: 8px; }
  .hp-show-buy .btn.lg { height: 36px; padding: 0 12px; font-size: 14px; }
  .hp-price { font-size: 18px; }
  .hp-trust-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; padding: 10px 16px; font-size: 12px; line-height: 1.3; text-align: center; }
  .hp-trust-in b { display: block; font-size: 15px; }
  .hp-sec { padding-top: 26px; }
  .hp-head { flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 10px; }
  .hp-head h2 { font-size: 20px; }
  .hp-head > a { margin-left: auto; font-size: 14px; }
  .hp-head p { font-size: 13.5px; }
  .hp-cats { gap: 8px; }
  .hp-cat { grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 0 10px; padding: 10px 12px; }
  .hp-cat-ico { grid-row: span 2; }
  .hp-cat-ico img, .hp-emoji { width: 30px; height: 30px; font-size: 24px; line-height: 30px; }
  .hp-cat b { font-size: 14px; line-height: 1.25; }
  .hp-cat .small { font-size: 12px; }
  .hp-row { grid-auto-columns: 150px; gap: 8px; }
  .hp-mc { padding: 10px; gap: 4px; }
  .hp-mc-img { height: 78px; }
  .hp-mc-img img { max-height: 70px; }
  .hp-mc b { font-size: 13.5px; }
  .hp-mc .small { font-size: 11.5px; }
  .hp-deal { padding-top: 6px; }
  .hp-deal b { font-size: 16px; }
  .hp-hosts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hp-host { padding: 10px 12px; gap: 2px; }
  .hp-rate b { font-size: 18px; }
  .hp-host .small { font-size: 12px; }
  .hp-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hp-logo { width: auto; height: 50px; padding: 8px; }
  .hp-logo img { max-width: 100%; max-height: 28px; }
  .hp-band { margin-top: 26px; padding: 16px; gap: 12px; }
  .hp-band h2 { font-size: 17px; }
  .hp-band p { font-size: 14px; }
  .hp-band .btn { width: 100%; justify-content: center; }
  .hp-how { gap: 8px; }
  .hp-how li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; padding: 12px; }
  .hp-how li::before { grid-row: span 2; width: 26px; height: 26px; margin: 0; }
  .hp-how b { font-size: 15px; }
  .hp-how p { margin: 2px 0 0; font-size: 13.5px; }
  .hp-posts { gap: 12px; }
  .hp-post { grid-template-columns: 112px minmax(0, 1fr); gap: 2px 12px; align-items: start; }
  .hp-post img { grid-row: span 3; width: 112px; }
  .hp-post > :not(img) { grid-column: 2; }
  .hp-post b { font-size: 14.5px; }
  .hp-post-cat { font-size: 10.5px; }
}
/* touch screens have no hover: show the seller logos in colour instead of always grey */
@media (hover: none) { .hp-logo img { filter: none; opacity: 1; } }
/* category emoji sat 3 px high in their 40 px box: centre them */
.hp-emoji { display: grid; place-items: center; line-height: 1; }
