/* Homepage. Loaded after base.css (tokens, header, footer). --hb / --hb-ink come from the page <style> (brand colour + readable text on it).
   Radius rule: pills for buttons and tags, 16px for every card and image. */
.home { background: var(--cream); color: var(--ink); }
.home .wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.home section { padding: 56px 0; }
@media (min-width: 900px) { .home section { padding: 96px 0; } .home .wrap { padding: 0 32px; } }
.home h1, .home h2, .home h3 { font-family: var(--ff-head); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.home h2 { font-size: clamp(28px, 4vw, 44px); }
.home p { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 60ch; }

.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border-radius: 999px;
  background: var(--hb); color: var(--hb-ink); font: 600 16px/1 var(--ff-body); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s; }
.hbtn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--hb); }
.hbtn:active { transform: scale(.98); }
.hbtn:focus-visible, .faq summary:focus-visible, .product-card:focus-visible { outline: 3px solid var(--hb); outline-offset: 3px; }
.hbtn.on-brand { background: var(--hb-ink); color: var(--hb); }

/* Hero: split, copy left, picture right. Stacks on phones. */
.hero2 { padding: 32px 0 48px; }
.hero2 .wrap { display: grid; gap: 32px; align-items: center; }
.hero2 h1 { font-size: clamp(40px, 7vw, 76px); max-width: 12ch; }
.hero2 p.sub { font-size: 18px; margin-top: 20px; max-width: 34ch; }
.hero2 .hbtn { margin-top: 28px; }
.hero2 figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.hero2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .hero2 { padding: 48px 0 72px; min-height: calc(100dvh - 72px); display: flex; align-items: center; }
  .hero2 .wrap { grid-template-columns: 1.05fr .95fr; gap: 64px; width: 100%; }
  .hero2 figure { aspect-ratio: auto; height: min(620px, calc(100dvh - 190px)); }
}

/* Product grid (cards are injected by catalog-sync.js, so style its classes) */
.shop-head { margin-bottom: 32px; }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
.products-grid .tech-badge { display: none; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--paper); border-radius: 16px;
  overflow: hidden; cursor: pointer; transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .35); }
.product-card.live-hidden { display: none; }
.product-img { aspect-ratio: 1; display: grid; place-items: center; background: var(--warm); color: var(--ink-3); }
.product-photo { width: 100%; height: 100%; object-fit: cover; }
.product-photo-ph { width: 40%; }
.product-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--hb); color: var(--hb-ink); font: 600 12px/1.2 var(--ff-body); }
.product-info { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.product-tags { display: none; }
.product-name { font: 600 16px/1.3 var(--ff-head); color: var(--ink); text-decoration: none; }
.product-desc { font-size: 14px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { margin-top: auto; padding-top: 10px; display: grid; gap: 10px; }
.product-price { font: 700 20px/1.1 var(--ff-head); color: var(--ink); }
.price-from { display: none; }
.price-unit, .price-gst { font: 500 12px/1.2 var(--ff-body); color: var(--ink-3); }
.price-gst { margin-top: 2px; }
.product-card .add-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border-radius: 999px; background: var(--hb); color: var(--hb-ink);
  font: 600 14px/1 var(--ff-body); text-decoration: none; transition: transform .15s; }
.product-card .add-btn:active { transform: scale(.98); }
.product-card .add-btn-off { background: var(--paper); color: var(--ink-3); }
.low-note, .pre-note { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* Why shop here: four cells, mixed fills */
.bento { display: grid; gap: 12px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(12, 1fr); gap: 16px; } .b7 { grid-column: span 7; } .b5 { grid-column: span 5; } }
.cell { border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; background: var(--surface); border: 1px solid var(--paper); }
.cell h3 { font-size: 22px; }
.cell .ph { font-size: 32px; color: var(--hb); }
.cell.tint { background: color-mix(in srgb, var(--hb) 12%, var(--surface)); border-color: transparent; }
.cell.solid { background: var(--hb); color: var(--hb-ink); border-color: transparent; }
.cell.solid p, .cell.solid .ph { color: var(--hb-ink); }
.cell .big { font: 700 clamp(44px, 6vw, 72px)/1 var(--ff-head); letter-spacing: -0.04em; margin-top: auto; }
.cell.photo { padding: 0; overflow: hidden; gap: 0; }
.cell.photo img { width: 100%; height: 200px; object-fit: cover; display: block; }
.cell.photo div { padding: 20px 28px 24px; display: grid; gap: 6px; }
.cell a.more { margin-top: auto; color: var(--hb); font-weight: 600; text-decoration: none; }
.cell a.more:hover { text-decoration: underline; }

/* Rewards band: full width, one message, one link */
.band { background: var(--hb); color: var(--hb-ink); }
.band .wrap { display: grid; gap: 20px; }
.band h2, .band p { color: var(--hb-ink); }
@media (min-width: 900px) { .band .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } }

/* FAQ */
.faq { max-width: 760px; margin-top: 28px; display: grid; }
.faq details { border-bottom: 1px solid var(--paper); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 600 18px/1.35 var(--ff-head); display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--hb); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; }
.faq a { color: var(--hb); }

/* Motion: only when the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  .hero2 .wrap > div > * { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero2 .wrap > div > *:nth-child(2) { animation-delay: .08s; }
  .hero2 .wrap > div > *:nth-child(3) { animation-delay: .16s; }
  .hero2 figure { animation: rise .9s .1s cubic-bezier(.16, 1, .3, 1) both; }
  .rv { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s cubic-bezier(.16, 1, .3, 1); }
  .rv.in { opacity: 1; transform: none; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
