/* ===========================================================
   MeersGame — design tokens
   Subject: digital game top-ups, vouchers & account codes.
   Signature: product "stub" cards styled like a tear-off
   redemption voucher (perforated edge + mono code line).
=========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #14161C;
  --ink-soft: #4B4E58;
  --muted: #90939E;
  --border: #E7E5DE;
  --border-strong: #D7D4CA;

  --accent: #4F46E5;
  --accent-dark: #3730A3;
  --accent-soft: #EEF0FF;
  --accent-ink: #FFFFFF;

  --stub-bg: #14161C;
  --stub-text: #F4F3F0;
  --stub-accent: #8C90FF;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.mono { font-family: var(--font-mono); }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.main-nav a:hover { color: var(--ink); }
nav.main-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cart-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  background: var(--ink);
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.cart-pill:hover { background: var(--accent-dark); }
.cart-pill svg { width: 15px; height: 15px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 50px);
  max-width: 13ch;
}

.hero .lede {
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-cta { display: flex; gap: 12px; margin-bottom: 36px; }

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
}
.hero-stats div span {
  font-size: 12.5px;
  color: var(--muted);
}

/* Hero visual: stacked voucher stubs */
.hero-visual {
  position: relative;
  height: 340px;
}

.stub {
  position: absolute;
  width: 280px;
  border-radius: var(--radius-m);
  background: var(--stub-bg);
  color: var(--stub-text);
  padding: 20px;
  box-shadow: 0 18px 40px -16px rgba(20,22,28,0.35);
}
.stub::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 16px; right: 16px;
  height: 1px;
  background-image: repeating-linear-gradient(to right, var(--ink-soft) 0 6px, transparent 6px 12px);
  opacity: 0.5;
}
.stub .stub-game { font-size: 12px; color: var(--stub-accent); font-family: var(--font-mono); margin-bottom: 6px; }
.stub .stub-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.stub .stub-code { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--stub-text); opacity: 0.85; }

.stub-1 { top: 0; left: 20px; transform: rotate(-4deg); z-index: 2; }
.stub-2 { top: 60px; left: 130px; transform: rotate(5deg); z-index: 1; background: var(--accent); }
.stub-2 .stub-game { color: #1b1d23; opacity: 0.6; }

/* ---------- Section scaffolding ---------- */

.section { padding: 76px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-bg { background: var(--surface); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.section-head p { margin: 0; max-width: 42ch; }

/* ---------- Category chips ---------- */

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.chip {
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Product grid + voucher-stub cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.product-top {
  background: var(--stub-bg);
  color: var(--stub-text);
  padding: 22px 22px 18px;
  position: relative;
}
.product-code {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stub-accent);
  background: rgba(140, 144, 255, 0.12);
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.product-cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stub-accent);
  margin-bottom: 8px;
}
.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}
.product-variant { font-size: 13px; color: var(--stub-text); opacity: 0.7; margin-top: 4px; }

/* perforation between stub top and body */
.product-top::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 0;
  border-bottom: 1px dashed rgba(244,243,240,0.3);
}
.perf {
  position: relative;
  height: 0;
}
.perf::before, .perf::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
}
.perf::before { left: -8px; }
.perf::after { right: -8px; }

.product-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.product-desc { font-size: 13.5px; margin: 0; }
.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 17px;
}
.product-price span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Feature / why-us ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
}
.feature .num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; margin: 0; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step {
  padding: 0 18px 0 0;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  right: -2px;
  width: calc(100% - 0px);
  border-top: 1px dashed var(--border-strong);
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 24px; }
.cta-band p { color: rgba(255,255,255,0.65); margin: 0; }
.cta-band .btn-primary { background: var(--stub-accent); color: #14161C; }
.cta-band .btn-primary:hover { background: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { font-size: 13.5px; max-width: 32ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 8px; }

/* ---------- Forms ---------- */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Checkout layout ---------- */

.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px;
}
.panel h2 { font-size: 19px; margin-bottom: 22px; }
.panel + .panel { margin-top: 22px; }

.cart-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-line:last-child { border-bottom: none; }
.cart-line-badge {
  width: 44px; height: 44px;
  border-radius: var(--radius-s);
  background: var(--stub-bg);
  color: var(--stub-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.2;
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info .name { font-weight: 600; font-size: 14.5px; }
.cart-line-info .variant { font-size: 12.5px; color: var(--muted); }
.cart-line-qty {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px;
}
.qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--ink); }
.cart-line-price { font-family: var(--font-mono); font-weight: 600; font-size: 14px; width: 92px; text-align: right; }
.remove-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 12px; padding: 4px;
}
.remove-btn:hover { color: #B91C1C; }

.summary-row {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--ink-soft);
  padding: 9px 0;
}
.summary-row.total {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 17px;
  color: var(--ink);
  border-top: 1px solid var(--border);
  margin-top: 8px; padding-top: 16px;
}

.notice {
  display: flex; gap: 12px;
  background: var(--accent-soft);
  border: 1px solid #D9DCFF;
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--accent-dark);
}
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}
.empty-state h3 { color: var(--ink); font-size: 17px; margin-bottom: 8px; }

/* order confirmation */
.confirm-box {
  text-align: center;
  padding: 60px 28px;
}
.confirm-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--stub-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.confirm-icon svg { width: 26px; height: 26px; }
.order-id {
  display: inline-block;
  font-family: var(--font-mono);
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin: 10px 0 26px;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-s);
  background: var(--stub-bg);
  color: var(--stub-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .icon svg { width: 17px; height: 17px; }
.contact-item h4 { font-size: 14.5px; margin: 0 0 3px; }
.contact-item p { font-size: 13.5px; margin: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--muted);
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 10px; font-size: 13.5px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  z-index: 100;
  transition: transform 0.25s ease;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stub-accent); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { height: 240px; margin-top: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
