/* ═══════════════════════════════════════════════════════════════
   PRETENCIFY BRAND LAYER  ·  matches pretencify.be exactly
   Loaded AFTER styles.css by white-label.html.

   Design system (lifted from the live site):
   · Display/hero  → ABC Camera Bold        (one iconic voice)
   · Headlines     → Source Serif 4 Black 900 (editorial confidence)
   · Italic accent → Instrument Serif italic in --bright (marketing flair)
   · Body          → Roboto / Geist
   · Palette       → ink #1F0A4C · bright #B026F0 · lavender #E8D2F4 · cream #F4EEE0
   · Signature     → "connecting the dots" quincunx dot-icon in pills
   Theme colours come from content-*.jsx tokens (overridable per client).
═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'ABC Camera';
  src: url('fonts/ABCCamera-Bold.woff2') format('woff2'),
       url('fonts/ABCCamera-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --display: 'ABC Camera', 'Roboto', system-ui, sans-serif;
  --serif:   'Source Serif 4', 'Times New Roman', Georgia, serif;
  --serif-it:'Instrument Serif', 'Source Serif 4', Georgia, serif;
  --sans:    'Roboto', 'Geist', system-ui, -apple-system, sans-serif;

  /* extra site tokens derived from theme */
  --accent:      #C150F5;   /* bright-2 — hover + italic accents */
  --cream-soft:  #FBF7EE;
  --ink-soft:    color-mix(in srgb, var(--dark) 62%, transparent);
  --ink-faint:   color-mix(in srgb, var(--dark) 15%, transparent);
  --line:        color-mix(in srgb, var(--dark) 12%, transparent);
  --lavender-soft: color-mix(in srgb, var(--soft) 45%, var(--paper));
  --r-card:      18px;
}

/* ── Warm cream product surface ─────────────────────────────── */
html, body { background: var(--cream); color: var(--dark); }
.desktop-app { background: var(--cream); }
.top-bar { background: var(--cream); }
.canvas { color: var(--dark); }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
/* Headlines: Source Serif 4 Black. Hero: ABC Camera. */
.overview-head h2,
.reward-h,
.completion h1,
.tip-title,
.q-text,
.blank-q,
.mod-title {
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.018em;
  line-height: 1.06;
}
.hero-headline {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.022em;
  font-size: clamp(54px, 7vw, 100px);
}
.overview-head h2 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.022em; }

/* Instrument Serif italic accent inside any headline (<em>) */
.hero-headline em,
.overview-head h2 em,
.reward-h em,
.completion h1 em,
.welkom h1 em {
  font-family: var(--serif-it);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.hero-headline em { color: #D880FB; }

/* ── EYEBROWS ───────────────────────────────────────────────── */
.overview-head .eyebrow,
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.overview-head .eyebrow { color: var(--ink-soft); }

/* ── TOP BAR — real Pretencify lockup ───────────────────────── */
.top-bar {
  padding: 16px 36px;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  box-shadow: 0 1px 0 var(--line);
}
.brand-logo { height: 40px; width: auto; display: block; flex-shrink: 0; }
.brand-divider {
  width: 1px; height: 26px;
  background: var(--line);
  flex-shrink: 0;
}
.brand-cell { gap: 16px; }
.brand-sub {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 240px;
}
.score-pill { height: 38px; border-radius: var(--r-pill); }
.score-pill .up { color: var(--bright); }
.user-chip {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.user-avatar { background: var(--bright); color: #fff; }
.flag-bar .fill { background: var(--bright); }
.flag-bar .flag-end { color: var(--bright); }

/* ── BUTTONS — Pretencify pills with quincunx "dots" ────────── */
.btn-pill {
  height: 54px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  background: var(--bright);
  gap: 12px;
  box-shadow: none;
  transition: background .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1);
}
.btn-pill:not(.disabled):not(:disabled):hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: none;
}
/* the "connecting the dots" mark — 5 dots in a quincunx, after the label */
.btn-pill::after {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  background-image:
    radial-gradient(circle 2px at 2px 2px, currentColor 100%, transparent 0),
    radial-gradient(circle 2px at 14px 2px, currentColor 100%, transparent 0),
    radial-gradient(circle 2px at 8px 8px, currentColor 100%, transparent 0),
    radial-gradient(circle 2px at 2px 14px, currentColor 100%, transparent 0),
    radial-gradient(circle 2px at 14px 14px, currentColor 100%, transparent 0);
  background-repeat: no-repeat;
  opacity: 0.95;
}
.btn-pill svg { display: none; }   /* replace arrow glyph with the dot-mark */

.btn-ghost {
  font-weight: 600;
  border: 1px solid var(--ink-faint);
  border-radius: var(--r-pill);
  color: var(--dark);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--dark); background: transparent; }

/* ── HERO CARD (welkom) — deep ink, cream type ──────────────── */
.hero-card {
  background: var(--dark);
  border-radius: 28px;
}
.hero-card .neural-mesh { opacity: 0.9; }
.hero-cta-pill { font-family: var(--sans); font-weight: 600; }
.hero-pager { font-family: var(--sans); }
.hero-eyebrow { color: rgba(244,238,224,0.62); }
.hero-eyebrow-dot { background: #D880FB; }
.hero-progress > div { background: #C150F5; }
.hero-cta-circle { background: var(--cream); color: var(--dark); }
.hero-cta:hover .hero-cta-circle { background: #fff; }
.hero-cta-pill { border-color: rgba(244,238,224,0.34); }

/* ── DEMO NOTICE — sales-callout bovenaan het welkomscherm ──── */
.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: min(1400px, 88vw);
  margin: 0 auto 22px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px -18px rgba(31,10,76,0.4);
  position: relative;
  z-index: 2;
}
.demo-notice-badge {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--bright);
  padding: 6px 13px; border-radius: 999px;
  margin-top: 2px;
}
.demo-notice-text {
  flex: 1;
  margin: 0;
  font-family: var(--sans);
  font-size: 14.5px; line-height: 1.55;
  color: color-mix(in srgb, var(--dark) 84%, transparent);
  text-wrap: pretty;
}
.demo-notice-text strong { color: var(--dark); font-weight: 700; }
.demo-notice-close {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-size: 20px; line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.demo-notice-close:hover { background: var(--soft); color: var(--dark); }

/* tips-variant: zit ONDER de tip-kaarten, even breed (680px) en wat ruimer */
.demo-notice--block {
  max-width: 680px;
  margin: 26px auto 0;
  padding: 24px 28px;
}

/* ── CARDS — module rows + tip cards ────────────────────────── */
.mod-row, .tip-card {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--cream-soft);
  box-shadow: none;
}
.tip-card { background: var(--paper); }
.mod-row { position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .3s ease; }
.mod-row:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(31,10,76,0.28); }
.mod-row.active {
  background: var(--paper);
  border-color: var(--ink-faint);
  box-shadow: 0 18px 40px -24px rgba(31,10,76,0.3);
}
.mod-row.active::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px; background: var(--bright);
}
.mod-num { background: var(--soft); color: var(--dark); font-family: var(--sans); font-weight: 600; }
.mod-row.active .mod-num { background: var(--bright); color: #fff; }
.tip-icon { background: var(--soft); color: var(--bright); }

/* progress accents */
.overview-progress .bar > div { background: var(--bright); }

/* ── DECORATION — neural mesh + dotted whisper ──────────────── */
.float-shape.square { display: none !important; }
.float-shape.ring { border-color: color-mix(in srgb, var(--bright) 14%, transparent); }
.float-shape.dot  { background: color-mix(in srgb, var(--bright) 7%, transparent); }
:root[data-bg="bloom"] .bg-deco {
  background:
    radial-gradient(620px circle at 8% 12%, color-mix(in srgb, var(--bright) 12%, transparent), transparent 60%),
    radial-gradient(520px circle at 96% 88%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%);
}
.neural-mesh .nm-nodes circle:nth-child(4n) { fill: var(--accent); }
.neural-mesh .nm-edges line:nth-child(5n) { stroke: var(--accent); }

/* ── SORTEEROEFENING — grote foto's, geen titels, geen kader ──── */
/* Pool: ruime fotokaarten die de hele kaart vullen, zonder witte rand */
.dd-item.dd-item-img {
  width: 158px;
  height: 116px;
  border-radius: 12px;
  border: none;
  background: transparent;
  box-shadow: none;
}
.dd-item.dd-item-img:hover { border: none; box-shadow: 0 12px 28px -16px rgba(31,10,76,0.4); }
.dd-item.dd-item-img.selected { border: none; outline: 3px solid var(--bright); outline-offset: 2px; background: transparent; }
.dd-item.dd-item-img .dd-img {
  width: 100%;
  height: 100%;
  background: var(--soft);
}
.dd-item.dd-item-img .dd-item-label { display: none !important; }
.dd-items { gap: 12px; min-height: 130px; padding: 12px; }

/* feedback-randen blijven leesbaar, maar zonder vlak/kader */
.dd-item.dd-item-img.correct-place { border: none; outline: 3px solid var(--positive); outline-offset: 2px; background: transparent; }
.dd-item.dd-item-img.wrong-place { border: none; outline: 3px solid var(--negative); outline-offset: 2px; background: transparent; }

/* twee bakken naast elkaar zodat de oefening in beeld past */
.dd-bins { grid-template-columns: 1fr 1fr; gap: 14px; }
.dd-bin { min-height: 150px; }

/* In de bakken: zelfde formaat thumbnail; feedback (vinkje/kruis + label) leesbaar */
.dd-bin .dd-item.dd-item-img {
  width: 134px;
  height: 100px;
  border: none;
  background: transparent;
  overflow: hidden;
  border-radius: 10px;
}
.dd-bin .dd-item.dd-item-img .dd-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.dd-bin-items { gap: 10px; flex-direction: row; flex-wrap: wrap; }

/* feedback op bak-thumbnails */
.dd-bin .dd-item-img.correct-place { outline: 3px solid var(--positive); outline-offset: -3px; }
.dd-bin .dd-item-img.wrong-place { outline: 3px solid var(--negative); outline-offset: -3px; }
.dd-bin .dd-item-img .dd-mark { width: 24px; height: 24px; top: 6px; right: 6px; }
.dd-bin .dd-item-img .dd-mark svg { width: 14px; height: 14px; }
.dd-bin .dd-item-img .dd-correct-hint { font-size: 10.5px; padding: 4px 5px; }

/* reward / completion keep deep-ink bg; accents pop bright */
.desktop-app.reward-bg .score-pill .up { color: var(--reward); }
.reward-spark-pill { font-family: var(--sans); font-weight: 700; }

@media (max-width: 760px) {
  .top-bar { padding: 14px 18px; }
  .brand-logo { height: 32px; }
  .brand-divider, .brand-sub { display: none; }
}
