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

:root {
  --teal: #00a99d;
  --gray: #bcbec0;
  --ink: #333333;
  --white: #ffffff;
  --charcoal: #2a2a2a;
  --paper: #e9eaeb;
  --muted: #656565;
  --soft: #eef8f7;
  --panel: #f5f7f7;
  --card-w: 1200px;
  --card-h: 700px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: 1.85rem;
  margin: 0 0 6px;
  color: var(--charcoal);
}

.lede {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 68ch;
  font-size: 0.95rem;
}

.deck {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

/* ——— Card shell ——— */
.flashcard {
  width: var(--card-w);
  height: var(--card-h);
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(42, 42, 42, 0.14);
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e4e5;
}

.flashcard-header {
  background: var(--teal);
  color: var(--white);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-shrink: 0;
  min-height: 82px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-chip {
  background: var(--white);
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.logo-combi {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-meta { min-width: 0; }

.header-meta .set-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--white);
}

.header-meta .tagline {
  margin: 3px 0 0;
  font-size: 0.72rem;
  opacity: 0.9;
  letter-spacing: -0.005em;
}

.badge {
  flex-shrink: 0;
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.flashcard-body {
  flex: 1;
  padding: 18px 26px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.card-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: 1.65rem;
  line-height: 1.15;
  color: var(--charcoal);
}

.card-heading .subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.flashcard-footer {
  flex-shrink: 0;
  padding: 11px 26px 14px;
  border-top: 1px solid #e6eceb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--soft);
}

.flashcard-footer .goal {
  color: var(--ink);
  font-weight: 500;
  max-width: 78ch;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.flashcard-footer .goal .flag {
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.3;
}

.flashcard-footer .brand {
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flashcard-footer .brand::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}

.disclaimer {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.note-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--soft);
  border-radius: 8px;
  border: 1px solid #d7ebe8;
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
  flex-shrink: 0;
}

.note-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ——— Icon circle ——— */
.icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg { width: 18px; height: 18px; display: block; }
.icon.sm { width: 28px; height: 28px; }
.icon.sm svg { width: 14px; height: 14px; }

.num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.num.lg {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

/* ——— Card 1: 3 blocks ——— */
.blocks-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.block {
  background: var(--panel);
  border: 1px solid #e4e8e8;
  border-radius: 12px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.block h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--charcoal);
}

.block p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.48;
}

/* ——— Card 2: 2×2 ——— */
.blocks-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.block-row {
  background: var(--panel);
  border: 1px solid #e4e8e8;
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.block-row h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: 0.98rem;
  color: var(--charcoal);
}

.block-row p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ——— Card 3: questions ——— */
.split-main {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.q-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}

.q-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid #e4e8e8;
  font-size: 0.82rem;
  line-height: 1.35;
}

.q-item.span2 { grid-column: 1 / -1; }

.side-box {
  background: var(--soft);
  border: 1px solid #d5ebe8;
  border-radius: 12px;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-box h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: 1rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-box p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.45;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ——— Card 4: 3 columns ——— */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1;
}

.col-card {
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid #e4e8e8;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: 1.08rem;
  color: var(--charcoal);
}

.col-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ——— Card 5: steps ——— */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps li {
  display: grid;
  grid-template-columns: 34px 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--panel);
  border-radius: 10px;
  border: 1px solid #e4e8e8;
  font-size: 0.9rem;
}


/* ——— Flash pack: readable card + download tile ——— */
.flash-pack {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  overflow-x: clip;
  align-items: start;
}

.flash-dl {
  background: var(--soft);
  border: 1px solid #d5ebe8;
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  align-self: stretch;
}

.flash-dl-preview {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e4e5;
  background: var(--white);
  line-height: 0;
}

.flash-dl-preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.flash-dl-caption {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Standalone aanlevering page has no styles.css — local btn helpers */
.flash-dl .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  box-sizing: border-box;
  min-height: 44px;
  width: 100%;
  text-align: center;
}

.flash-dl .btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--gray);
}

.flash-dl .btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.flash-dl-png {
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--gray, #bcbec0);
  background: transparent;
  color: var(--text, #333);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.flash-dl-png:hover {
  border-color: var(--teal, #00a99d);
  color: var(--teal, #00a99d);
  text-decoration: none;
}

/* Phones: stack card then download */
@media (max-width: 559px) {
  .flash-pack {
    grid-template-columns: 1fr;
  }
}

/* Tablet / large phone: readable card left, download right */
@media (min-width: 560px) and (max-width: 800px) {
  .flash-pack {
    grid-template-columns: minmax(0, 1fr) min(42%, 180px);
    gap: 14px;
  }

  .flash-dl {
    align-self: start;
  }
}

/* Desktop: designed flashcard primary; compact download under card */
@media (min-width: 801px) {
  .flash-pack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .flash-dl {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    width: 100%;
    max-width: var(--card-w);
    padding: 10px 14px;
  }

  .flash-dl-preview {
    width: 100px;
    flex: 0 0 100px;
  }

  .flash-dl .btn {
    width: auto;
    min-height: 40px;
    padding: 8px 16px;
  }

  .flash-dl-png {
    min-height: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 1240px) {
  .flashcard {
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: 0;
  }
}

/* Mobile: stack mockup grids so nothing clips right */
@media (max-width: 800px) {
  .page {
    padding: 20px 12px 48px;
  }

  .page,
  .deck,
  .flash-pack {
    overflow-x: clip;
    max-width: 100%;
  }

  .flashcard {
    overflow: visible;
  }

  .flashcard-body {
    overflow: visible;
  }

  .header-meta .tagline {
    white-space: normal;
    overflow-wrap: anywhere;
  }


  .deck,
  .says-deck {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .flashcard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    border-radius: 12px;
  }

  .flashcard-header {
    flex-wrap: wrap;
    padding: 10px 14px;
    min-height: 0;
    gap: 10px;
  }

  .header-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo-combi {
    max-width: min(160px, 42vw);
    height: auto;
  }

  .header-meta .tagline,
  .tagline {
    font-size: 0.72rem;
    line-height: 1.3;
    white-space: normal;
  }

  .badge {
    margin-left: auto;
    white-space: normal;
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  .flashcard-body {
    padding: 14px 14px 12px;
    overflow: visible;
    min-width: 0;
  }

  .flashcard-footer {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }

  .flashcard-footer .goal {
    max-width: 100%;
  }

  .blocks-3,
  .cols-3 {
    grid-template-columns: 1fr;
  }

  .blocks-4 {
    grid-template-columns: 1fr;
  }

  .split-main {
    grid-template-columns: 1fr;
  }

  .q-grid {
    grid-template-columns: 1fr;
  }

  .steps li {
    grid-template-columns: 28px 28px 1fr;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .block,
  .col-card,
  .block-row {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .tagline {
    /* long word "risicobeheersing" — allow wrap, smaller */
    font-size: 0.68rem;
  }

  .card-heading h2 {
    font-size: 1.15rem;
  }

  .header-left .logo-chip {
    padding: 4px 6px;
  }
}
