/* ============================================
   traceurs.ro — Shared Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* color */
  --black: #0a0a0a;
  --ink: #141414;
  --paper: #faf8f3;
  --paper-2: #f0ece1;
  --paper-3: #e6e0cf;
  --line: #0a0a0a;
  --yellow: #f6c91f;
  --yellow-deep: #e0b400;
  --yellow-soft: #fde98a;
  --muted: #6a6558;
  --muted-2: #a8a294;
  --red: #c93b27;

  /* type */
  --f-display: 'Archivo Black', 'Arial Black', sans-serif;
  --f-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', 'Menlo', monospace;

  /* radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* line */
  --bw: 2px;
  --bw-thick: 2.5px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* =============== Type =============== */
.display { font-family: var(--f-display); letter-spacing: -0.01em; line-height: 0.92; text-transform: uppercase; }
.body { font-family: var(--f-body); }
.mono { font-family: var(--f-mono); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow.light { color: var(--paper-2); }

/* =============== Layout =============== */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

.divider { height: var(--bw-thick); background: var(--line); width: 100%; }

/* =============== Buttons =============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: var(--bw-thick) solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 4px 4px 0 var(--line);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.y { background: var(--yellow); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--paper-2); }
.btn.sm { padding: 9px 14px; font-size: 12px; box-shadow: 3px 3px 0 var(--line); }
.btn.lg { padding: 18px 28px; font-size: 16px; }
.btn .arrow { font-family: var(--f-mono); }

/* =============== Discount Bar (sticky top, shared) =============== */
.discount-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--bw-thick) solid var(--line);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.discount-bar .pct {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--yellow);
  letter-spacing: 0;
  line-height: 1;
}
.discount-bar .label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--paper-2);
}
.discount-bar .track {
  flex: 1;
  height: 10px;
  background: #2a2a2a;
  border: 1.5px solid var(--paper);
  position: relative;
  max-width: 360px;
}
.discount-bar .fill {
  height: 100%;
  background: var(--yellow);
  width: 23%;
}
.discount-bar .chk {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 14px;
  background: var(--paper);
}
.discount-bar .next {
  color: var(--yellow);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.discount-bar .cta {
  border: 1.5px solid var(--paper);
  padding: 5px 11px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.discount-bar .cta:hover { background: var(--paper); color: var(--ink); }

/* =============== Nav (shared base) =============== */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
  background: var(--paper);
  border-bottom: var(--bw-thick) solid var(--line);
}
.nav.dark { background: var(--ink); color: var(--paper); border-bottom-color: var(--paper); }
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand img { width: 44px; height: auto; }
.nav .brand .name {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.nav .brand .tag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}
.nav.dark .brand .tag { color: var(--muted-2); }
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 26px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
}
.nav ul a:hover { color: var(--yellow-deep); }
.nav .spacer { flex: 1; }
.nav .cta-group { display: flex; gap: 10px; }

/* =============== Footer (shared) =============== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 32px 28px;
  border-top: var(--bw-thick) solid var(--line);
}
.footer .grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  color: var(--yellow);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer li { font-size: 14px; color: var(--paper-2); }
.footer li a:hover { color: var(--yellow); }
.footer .colophon {
  max-width: 1280px; margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1.5px solid #2a2a2a;
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.footer .brand-line { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer .brand-line img { width: 60px; filter: invert(1); }
.footer .brand-line .name { font-family: var(--f-display); font-size: 28px; color: var(--paper); }
.footer .desc { color: var(--paper-2); font-size: 14px; max-width: 320px; line-height: 1.5; }

/* =============== Tape & sticker accents =============== */
.tape {
  display: inline-block;
  background: var(--yellow);
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  transform: rotate(-1.5deg);
  box-shadow: 2px 2px 0 var(--line);
}
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  padding: 3px 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
}
.sticker.y { background: var(--yellow); }
.sticker.k { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* =============== Photo treatment =============== */
.photo {
  background: var(--paper-2);
  border: var(--bw-thick) solid var(--line);
  position: relative;
  overflow: hidden;
}
.photo .caption {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 4px 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* image-slot defaults */
image-slot {
  --is-bg: var(--paper-2);
  --is-fg: var(--muted);
  --is-border: var(--line);
  border: var(--bw-thick) solid var(--line) !important;
}

/* =============== Authority strip =============== */
.authority {
  background: var(--paper-2);
  border-top: var(--bw-thick) solid var(--line);
  border-bottom: var(--bw-thick) solid var(--line);
  padding: 24px 32px;
}
.authority-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.authority .eyebrow { flex-shrink: 0; }
.authority .items { display: flex; gap: 36px; flex-wrap: wrap; flex: 1; align-items: center; }
.authority .item {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.authority .item .badge {
  display: inline-block;
  width: 24px; height: 24px;
  border: 1.5px solid var(--line);
  background: var(--yellow);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
}

/* =============== Course card =============== */
.course-card {
  border: var(--bw-thick) solid var(--line);
  background: var(--paper);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 280px;
}
.course-card .age {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.course-card .name {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.course-card .desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.course-card .price-row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.course-card .price {
  font-family: var(--f-display);
  font-size: 22px;
}
.course-card .price span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-left: 4px; font-weight: normal; }
.course-card .go {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.course-card.featured { background: var(--ink); color: var(--paper); }
.course-card.featured .age { color: var(--yellow-soft); }
.course-card.featured .desc { color: var(--paper-2); }
.course-card.y { background: var(--yellow); }

/* =============== Common scroll hint =============== */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  right: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.scroll-hint::after { content: '↓'; font-size: 18px; }

/* =============== Responsive base =============== */
@media (max-width: 900px) {
  .wrap, .wrap-wide { padding: 0 20px; }
  .nav { flex-wrap: wrap; gap: 14px; padding: 14px 20px; }
  .nav ul { display: none; }
  .footer .grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* =============== Gamification — shared components =============== */
/* reward toast (fallback; some pages also define it locally) */
.gami-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: 1200; background: var(--ink); color: var(--paper); border: 3px solid var(--yellow); padding: 16px 22px; display: flex; align-items: center; gap: 16px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 6px 6px 0 rgba(0,0,0,.25); max-width: 92vw; }
.gami-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gami-toast .big { font-family: var(--f-display, 'Archivo Black'); font-size: 30px; color: var(--yellow); line-height: 1; }
.gami-toast.bonus .big { font-size: 26px; }
.gami-toast .tx { font-family: var(--f-body, 'DM Sans'); font-size: 14px; line-height: 1.3; }
.gami-toast .tx b { font-family: var(--f-display, 'Archivo Black'); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; display: block; }

/* congratulation modal (every 10%) */
.gami-congrats { position: fixed; inset: 0; z-index: 1300; display: none; align-items: center; justify-content: center; padding: 20px; }
.gami-congrats.show { display: flex; animation: gcIn .3s ease; }
@keyframes gcIn { from { opacity: 0; } to { opacity: 1; } }
.gami-congrats .gc-scrim { position: absolute; inset: 0; background: rgba(10,10,10,.62); }
.gami-congrats .gc-card { position: relative; background: var(--paper); border: 3px solid var(--line); box-shadow: 10px 10px 0 var(--line); max-width: 420px; width: 100%; padding: 38px 34px 32px; text-align: center; }
.gami-congrats .gc-burst { font-family: var(--f-display, 'Archivo Black'); font-size: 64px; line-height: 0.9; color: var(--ink); background: var(--yellow); display: inline-block; padding: 10px 22px; transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--line); border: 2.5px solid var(--line); }
.gami-congrats .gc-title { font-family: var(--f-display, 'Archivo Black'); font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: -0.01em; margin: 22px 0 0; }
.gami-congrats .gc-tx { font-family: var(--f-body, 'DM Sans'); font-size: 15px; line-height: 1.55; color: var(--muted, #6b6660); margin: 12px 0 0; }
.gami-congrats .gc-btn { font-family: var(--f-mono, 'JetBrains Mono'); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 24px; background: var(--ink); color: var(--paper); border: none; padding: 13px 26px; cursor: pointer; }
.gami-congrats .gc-btn:hover { background: var(--yellow); color: var(--ink); }

/* „câștigi discount aici” badge */
.gami-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono, 'JetBrains Mono'); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 13px; border: 1.6px solid var(--line); background: var(--yellow); color: var(--ink); }
.gami-badge .gb-ic { font-size: 12px; }
.gami-badge.is-done { background: #cdeed8; border-color: #9ed8b4; color: #1f7a45; }

/* mission progress (articole) */
.quest .q-prog { height: 6px; background: var(--paper-3, #e6e0cf); border: 1.4px solid var(--line); margin: 10px 0 4px; }
.quest .q-prog-fill { height: 100%; background: var(--yellow); }
.quest .q-prog-tx { font-family: var(--f-mono, 'JetBrains Mono'); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, #6b6660); }

/* gami badge — regula expandabilă */
.gami-badge { display: inline-block; padding: 0; border: none; background: none; }
.gami-badge .gb-head { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono, 'JetBrains Mono'); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 13px; border: 1.6px solid var(--line); background: var(--yellow); color: var(--ink); cursor: pointer; }
.gami-badge.is-done .gb-head { background: #cdeed8; border-color: #9ed8b4; color: #1f7a45; }
.gami-badge .gb-chev { opacity: .65; font-size: 10px; }
.gami-badge.open .gb-chev { opacity: 1; }
.gami-badge .gb-rule { display: none; margin-top: 8px; max-width: 540px; font-family: var(--f-body, 'DM Sans'); font-size: 13px; line-height: 1.55; color: var(--ink); background: var(--paper-2, #f0ece0); border: 1.5px solid var(--line); border-left: 4px solid var(--yellow); padding: 12px 15px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.gami-badge.open .gb-rule { display: block; }
