:root {
  --ink: #0b2a5b;
  --blue: #1f5eff;
  --blue-dark: #1748c9;
  --sky: #eaf1ff;
  --white: #ffffff;
  --slate: #50607a;
  --line: #d5dff2;
  --radius: 10px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Banner / header ---------- */
.banner { position: relative; color: var(--white); overflow: hidden; }
.banner-bg {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #0b2a5b 0%, #1748c9 55%, #1f5eff 100%) center / cover no-repeat;
}
.banner-bg[style] { background-blend-mode: normal; }
.banner-bg[style]::after { content: ""; position: absolute; inset: 0; background: rgba(11, 42, 91, 0.55); }
.banner-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 44px;
}
.brand-logo img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--white); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  text-align: center;
}
.banner-actions { display: flex; gap: 10px; justify-content: flex-end; }
.pill {
  display: inline-block;
  padding: 9px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.pill:hover { background: rgba(255, 255, 255, 0.16); }
.pill-solid { background: var(--white); color: var(--ink); border-color: var(--white); }
.pill-solid:hover { background: var(--sky); }

.title-bar { background: var(--sky); border-bottom: 1px solid var(--line); }
.title-bar h1 {
  margin: 0;
  padding-block: 18px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ---------- Store ---------- */
.store { padding-block: 28px 56px; }
.tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  font: inherit; font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.tab:hover { border-color: var(--blue); }
.tab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.result-count { margin: 0 0 16px; color: var(--slate); font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.card-img {
  aspect-ratio: 16 / 10;
  background: var(--sky);
  display: grid; place-items: center;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--blue); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-cat { margin: 0; font-size: 0.82rem; color: var(--slate); }
.card h2 { margin: 2px 0 6px; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; }
.card-desc { margin: 0 0 14px; font-size: 0.92rem; color: var(--slate); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 700; font-size: 1.05rem; }
.buy-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.buy-btn:hover { background: var(--blue-dark); }

.show-all-wrap { text-align: center; margin-top: 28px; }
.show-all {
  font: inherit; font-weight: 700;
  padding: 11px 32px;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
}
.show-all:hover { background: var(--blue); color: var(--white); }

/* ---------- Legal pages ---------- */
.prose { padding-block: 36px 64px; max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.prose p, .prose li { color: #26395e; }
.prose .updated { color: var(--slate); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfdcf7; padding-block: 36px 28px; }
.footer a { color: #cfdcf7; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols > div:nth-child(2) { align-items: center; }
.footer-cols > div:nth-child(3) { align-items: flex-end; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.logo-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.logo-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px; min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
}
.logo-chip img { height: 28px; width: auto; }
.status-slot { min-height: 36px; display: flex; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .banner-grid { grid-template-columns: auto 1fr; padding-block: 28px; }
  .brand-name { text-align: left; }
  .banner-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-cols > div:nth-child(2), .footer-cols > div:nth-child(3) { align-items: flex-start; }
}
@media (max-width: 460px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
