/* ACCRA GRID — home page styles. Owned by the home developer. See DESIGN.md. */

/* ---------- 01 · Greeting tile ---------- */
.home-top { margin-top: var(--s-2); }
.home-hello { gap: var(--s-4); border-radius: var(--r-2xl); padding: var(--s-6) var(--s-5); }
@media (min-width: 1024px) { .home-hello { padding: var(--s-7); } }
.home-hello::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; z-index: -1;
  border: 30px solid var(--volta-2); box-shadow: 0 0 0 30px rgba(214, 244, 91, .04);
}
.home-hello__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.home-hello__loc { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); background: var(--volta-2); box-shadow: var(--sh-inset); color: var(--volta-ink); font-size: 12.5px; }
.home-hello__loc svg { width: 15px; height: 15px; color: var(--lime); }
.home-hello__loc b { color: var(--lime); font-size: 11.5px; letter-spacing: .04em; }
.home-hello__title { color: #fff; margin-top: var(--s-2); }
.home-hello__lead { font-size: var(--fs-md); line-height: 1.45; color: var(--volta-ink); max-width: 44ch; }
.home-hello__lead b { color: var(--lime); }
.home-hello__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-hello__actions .ag-btn { flex: 1 1 auto; }
@media (min-width: 640px) { .home-hello__actions .ag-btn { flex: 0 0 auto; } }

.home-pulse { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-pulse a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--volta-3); color: var(--volta-ink); font-size: 12.5px; line-height: 1.3; transition: background var(--t-fast), border-color var(--t-fast); }
.home-pulse a:hover { background: var(--volta-2); border-color: var(--lime); }
.home-pulse svg { width: 18px; height: 18px; color: var(--lime); }
.home-pulse b { color: #fff; font-size: 15px; }
.home-pulse small { display: block; margin-top: 2px; font-size: 11px; color: var(--volta-mute); }
@media (max-width: 389px) { .home-pulse { grid-template-columns: 1fr; } .home-pulse a { flex-direction: row; align-items: center; } }

.home-mode {
  display: grid; gap: 12px; margin-top: auto; padding: 14px; border-radius: var(--r-lg);
  background: var(--volta-2); box-shadow: var(--sh-inset);
}
.home-mode__copy p { font-size: 13.5px; color: var(--volta-ink); margin-top: 4px; }
.home-mode__copy b { color: #fff; }
.home-mode__eg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-mode__eg > span { display: grid; gap: 3px; }
.home-mode__eg small { font: 600 10.5px/1 var(--font-num); color: var(--volta-mute); text-transform: uppercase; letter-spacing: .06em; }
.home-mode__eg > svg { width: 18px; height: 18px; color: var(--lime); }
.home-mode__seg { background: var(--volta); box-shadow: inset 0 0 0 1px var(--volta-3); justify-self: start; }
.home-mode__seg .ag-seg__thumb { background: var(--lime); }
.home-mode__seg button { color: var(--volta-mute); min-height: 40px; padding: 0 16px; }
.home-mode__seg button[aria-pressed="true"] { color: var(--ink); }
.home-mode__seg button:hover:not([aria-pressed="true"]) { color: #fff; }
@media (min-width: 640px) {
  .home-mode { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .home-mode__seg { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- 01 · Flash deals ---------- */
.home-flash { gap: var(--s-4); }
.home-flash .ag-tile__head { align-items: flex-start; flex-wrap: wrap; }
.home-flash__title { display: grid; gap: 8px; }
.home-flash__title .ag-h3 { font-size: var(--fs-lg); }
.home-flash__rail .ag-card__add { width: 40px; height: 40px; }
@media (min-width: 640px) { .home-flash__rail { --item-w: 23% !important; } }
@media (min-width: 1024px) {
  .home-flash__rail { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; gap: 14px; overflow: visible; }
  .home-flash__rail > :nth-child(n+5) { display: none; }
  .home-flash__rail .ag-card__media { aspect-ratio: 4 / 3; }
}
.home-flash__more { align-self: flex-start; margin-top: auto; }

/* ---------- Wallet + tracker strip (phones/tablets) ---------- */
.home-strip {
  display: flex; gap: var(--gap); margin-top: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
}
.home-strip::-webkit-scrollbar { display: none; }
.home-strip > * { flex: 0 0 86%; scroll-snap-align: start; padding: var(--s-4); gap: 10px; }
@media (min-width: 640px) {
  .home-strip { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin-inline: 0; padding: 0; }
  .home-strip > * { flex: none; }
}
@media (min-width: 1280px) { .home-strip { display: none; } }
.home-mini-wallet .ag-price--lg { font-size: 30px; }
.home-mini-wallet__cow { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--volta-mute); }
.home-mini-wallet__cow svg { width: 15px; height: 15px; color: var(--lime); }
.home-mini-wallet__cow b { color: #fff; }
.home-mini-wallet__btns { display: flex; gap: 8px; }
.home-mini-wallet__btns .ag-btn { flex: 1; }
.home-mini-track { flex-direction: row !important; align-items: center; color: var(--ink); }
.home-mini-track__map { width: 104px; flex: none; }
.home-mini-track__map .ag-map { aspect-ratio: 1; border-radius: var(--r-md); }
.home-mini-track__txt { display: grid; gap: 3px; min-width: 0; flex: 1; }
.home-mini-track__txt b { font-size: 15px; line-height: 1.25; }
.home-mini-track__txt .ag-meta { display: inline-flex; align-items: center; gap: 5px; }
.home-mini-track__txt .ag-meta svg { width: 13px; height: 13px; color: var(--coral-ink); }
.home-mini-track > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }

/* ---------- 02 · Categories ---------- */
.home-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.home-cats .ag-cat { min-height: 96px; padding: 10px; }
.home-cats .ag-cat__name { font-size: 12px; overflow-wrap: anywhere; }
.home-cats .ag-cat__icon { width: 38px; height: 38px; border-radius: 12px; }
@media (min-width: 640px) {
  .home-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
  .home-cats .ag-cat { min-height: 112px; padding: 12px; }
  .home-cats .ag-cat__name { font-size: 13.5px; }
}
/* the first tile is the Made-in-Ghana flagship: give it a dark, wider slot on desktop */
@media (min-width: 1024px) {
  .home-cats { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .home-cats .home-cat-all { display: flex; }
  .home-cats .ag-cat:first-child { grid-column: span 2; grid-row: span 2; background: var(--volta); background-image: var(--grid-dots-dark); background-size: var(--grid-size); color: #fff; justify-content: flex-end; }
  .home-cats .ag-cat:first-child .ag-cat__name { font: 800 26px/1 var(--font-display); font-variation-settings: "wdth" 84; letter-spacing: -0.03em; margin-top: 0; }
  .home-cats .ag-cat:first-child .ag-cat__count { color: var(--volta-mute); }
  .home-cats .ag-cat:first-child .ag-cat__icon { position: absolute; top: 14px; left: 14px; background: var(--volta-2); color: var(--lime); }
}

.home-cat-all { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border-radius: var(--r-lg); background: var(--paper-2); color: var(--ink); font-size: 13px; font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background var(--t-fast); }
.home-cat-all:hover { background: var(--lime); box-shadow: none; }
.home-cat-all svg { width: 20px; height: 20px; }

/* ---------- 03 · Signals ---------- */
.home-dumsor > .ag-meta:last-child { margin-top: auto; }
.home-drops-tile { gap: var(--s-3); }
.home-drops { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
@media (min-width: 640px) { .home-drops { grid-template-columns: 1fr 1fr; column-gap: var(--s-4); } }
.home-drops__row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 60px; padding: 6px 8px 6px 6px; border-radius: var(--r-md); color: var(--ink);
  transition: background var(--t-fast);
}
.home-drops__row:hover { background: var(--paper); }
.home-drops__row img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--paper-2); grid-row: span 2; }
.home-drops__name { min-width: 0; display: grid; gap: 2px; font-size: 13px; font-weight: 600; }
.home-drops__name small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.home-drops__name small svg { width: 12px; height: 12px; color: var(--coral-ink); fill: currentColor; }
.home-drops__price { display: grid; justify-items: end; gap: 3px; }
.home-drops__pct { grid-column: 3; justify-self: end; font-size: 11px; font-weight: 800; color: var(--coral-ink); background: var(--coral-wash); padding: 3px 6px; border-radius: 5px; }
.home-drops__row { grid-template-rows: auto auto; }
.home-drops__name { grid-row: span 2; }

/* ---------- 04 · Live ---------- */
.home-live-count { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.home-live-main { min-height: 440px; }
.home-live-side { min-height: 260px; }
.home-live-side .ag-live-tile__title { font-size: 18px; }
@media (min-width: 1024px) { .home-live-main { min-height: 540px; } .home-live-main .ag-live-tile__title { font-size: 28px; max-width: 18ch; } }
@media (max-width: 639px) { .home-live-count .ag-num { display: none; } }

/* ---------- 05 · Wholesale tile ---------- */
.home-bulk { display: grid; gap: var(--s-6); border-radius: var(--r-2xl); }
@media (min-width: 640px) { .home-bulk { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; } }
.home-bulk__copy { display: flex; flex-direction: column; gap: var(--s-3); }
.home-bulk__copy p { color: var(--volta-ink); font-size: 14.5px; line-height: 1.5; max-width: 40ch; }
.home-bulk__title { font-size: var(--fs-2xl); font-weight: 800; color: #fff; letter-spacing: -0.03em; font-variation-settings: "wdth" 84; }
.home-bulk__copy .ag-cluster { margin-top: auto; }
.home-bulk__eg { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--volta-2); box-shadow: var(--sh-inset); }
.home-bulk__prod { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.home-bulk__prod img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.home-bulk__prod span { display: grid; gap: 2px; min-width: 0; }
.home-bulk__prod b { font-size: 13.5px; }
.home-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; margin-top: auto; }
.home-tier { display: flex; flex-direction: column; gap: 6px; min-width: 0; justify-content: flex-end; }
.home-tier__bar { display: flex; align-items: flex-start; justify-content: center; height: var(--h); padding-top: 8px; border-radius: 10px 10px 4px 4px; background: var(--volta-3); }
.home-tier:last-child .home-tier__bar { background: var(--lime); }
.home-tier__bar b { font-size: 12px; color: var(--lime); }
.home-tier:last-child .home-tier__bar b { color: var(--ink); }
.home-tier__qty { font-size: 10.5px; color: var(--volta-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-tier .ag-price { font-size: 16px; }
.home-tier .ag-price__unit { display: none; }
.home-tier__tag { font-size: 10.5px; color: var(--volta-mute); line-height: 1.2; }

/* ---------- 05 · Trending + FX ---------- */
.home-trend__list { list-style: none; margin: 0; padding: 0; display: grid; }
.home-trend__list a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; align-items: center; gap: 8px; min-height: 46px; border-bottom: 1px solid var(--line); color: var(--ink); }
.home-trend__list li:last-child a { border-bottom: 0; }
.home-trend__list a:hover b { text-decoration: underline; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; }
.home-trend__n { font-size: 13px; font-weight: 800; color: var(--ink-4); }
.home-trend__list li:first-child .home-trend__n { color: var(--coral-ink); }
.home-trend__t { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding-block: 6px; }
.home-trend__t b { max-width: 100%; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-trend__t small { font: 600 10px/1 var(--font-num); color: var(--ink-3); background: var(--paper-2); padding: 3px 5px; border-radius: 4px; white-space: nowrap; }
.home-trend__a svg { width: 17px; height: 17px; }
.home-trend__a--up { color: var(--success); }
.home-trend__a--steady { color: var(--ink-4); }
.home-trend__a--new { color: var(--volta); }
.home-fx { margin-top: auto; padding: 12px; border-radius: var(--r-md); background: var(--paper); display: grid; gap: 10px; }
.home-fx .ag-split { flex-wrap: wrap; }
.home-fx__seg button { min-height: 36px; font-family: var(--font-num); }
.home-fx__out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14px; color: var(--ink-2); }
.home-fx__out > .ag-num { font-weight: 700; color: var(--ink); }
.home-fx__out small { flex-basis: 100%; font-size: 11.5px; color: var(--ink-3); }

/* ---------- 06 · Campaigns ---------- */
.home-camp { min-height: 200px; justify-content: space-between; gap: var(--s-4); color: var(--camp-fg); }
.home-camp--color { background: var(--camp-bg); box-shadow: var(--sh-2); }
.home-camp--color::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 110px; height: 110px; border-radius: 28px; background: var(--camp-accent); opacity: .32; transform: rotate(18deg); z-index: -1; transition: transform var(--t-slow) var(--ease-out); }
.home-camp--color:hover::after { transform: rotate(34deg) scale(1.08); }
.home-camp--photo { color: #fff; }
.home-camp--photo > img { transition: transform 900ms var(--ease-out); }
.home-camp--photo:hover > img { transform: scale(1.04); }
.home-camp__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-camp__code { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: inherit; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.home-camp__body { display: grid; gap: 6px; }
.home-camp__name { font: 600 10.5px/1.2 var(--font-num); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.home-camp__head { font-size: var(--fs-lg); line-height: 1.08; color: inherit !important; letter-spacing: -0.02em; }
.home-camp__off { font: 700 12px/1.3 var(--font-num); color: var(--camp-accent); }
.home-camp--photo .home-camp__off { color: var(--lime); }
.home-camp.m-2 { min-height: 220px; padding: var(--s-4); }
.home-camp.m-2 .home-camp__head { font-size: 16px; }
.home-camp.m-2 .home-camp__code { display: none; }
@media (min-width: 640px) { .home-camp.m-2 .home-camp__code { display: inline-block; } .home-camp.m-2 .home-camp__head { font-size: var(--fs-lg); } }
@media (min-width: 1024px) {
  .home-camp.r-2 { min-height: 440px; }
  .home-camp.r-2 .home-camp__head { font-size: var(--fs-xl); }
}

/* ---------- 07 · Feed ---------- */
.home-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: var(--s-6); }
.home-more .ag-btn { min-width: 220px; }

/* ---------- 08 · Sell / about / app ---------- */
.home-sell { gap: var(--s-3); }
.home-sell__title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "wdth" 84; }
.home-sell__num { font-size: 13px; }
.home-sell__num b { font-size: 22px; letter-spacing: -0.04em; margin-right: 4px; }
.home-sell__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.home-sell__list li { display: flex; align-items: center; gap: 8px; }
.home-sell__list svg { width: 16px; height: 16px; flex: none; }
.home-sell .ag-btn { align-self: flex-start; margin-top: auto; }
.home-about__twi { font-style: italic; }
.home-about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.home-about__stats div { padding: 10px 12px; border-radius: var(--r-md); background: var(--paper); }
.home-about__stats dt { font-size: 11px; color: var(--ink-3); }
.home-about__stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.home-about__trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.home-app { display: grid; gap: var(--s-4); background-image: var(--grid-dots-dark); background-size: var(--grid-size); }
@media (min-width: 640px) { .home-app { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
@media (min-width: 1024px) { .home-app { grid-template-columns: 1fr; } }
.home-app__copy { display: flex; flex-direction: column; gap: var(--s-3); }
.home-app__title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "wdth" 84; }
.home-app__qr { display: flex; align-items: center; gap: 12px; }
.home-qr { width: 92px; height: 92px; padding: 8px; border-radius: 14px; background: #fff; color: var(--ink); fill: var(--ink); stroke-width: 1; flex: none; shape-rendering: crispEdges; }
.home-app__qr .ag-num { font-size: 11px; color: #96A098; }

/* ---------- Context column ---------- */
#home-ctx .ag-tracker .ag-map { aspect-ratio: 16 / 10; }
