/* ============================================
   2LZ Services — v3 Story-driven
   Verhaal eerst. Screenshots waar ze het
   verhaal versterken, nergens anders.
   ============================================ */


/* ============================================
   PERSPECTIVE TOGGLE (Kantoor / Monteur)
   ============================================ */

.tk-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.tk-toggle-wrap {
  display: inline-flex;
  background: var(--color-slate-100, #f1f5f9);
  border-radius: 9999px;
  padding: 4px;
  gap: 2px;
}

.tk-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--color-slate-500, #64748b);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.tk-toggle-btn:hover {
  color: var(--color-primary, #193259);
}

.tk-toggle-btn--active {
  background: #fff;
  color: var(--color-primary, #193259);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tk-toggle-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .tk-toggle-wrap {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .tk-toggle-btn {
  color: var(--color-slate-400, #94a3b8);
}

[data-theme="dark"] .tk-toggle-btn--active {
  background: rgba(38, 74, 122, 0.3);
  color: #93b4d4;
}

/* Track visibility */
.tk-track {
  display: none;
  animation: tkTrackFadeIn 0.4s ease;
}

.tk-track--active {
  display: block;
}

@keyframes tkTrackFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   STORY BLOCKS (werkdag sectie)
   ============================================ */

.tk-story {
  max-width: 1000px;
  margin: 0 auto;
}

.tk-story-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.tk-story-block:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .tk-story-block--visual {
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
  }

  .tk-story-block--visual-left {
    grid-template-columns: 1.2fr 1fr;
  }

  .tk-story-block--visual-left .tk-story-visual {
    order: -1;
  }
}

/* Story block without screenshot: center text */
.tk-story-block:not(.tk-story-block--visual):not(.tk-story-block--visual-left) .tk-story-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.tk-story-block:not(.tk-story-block--visual):not(.tk-story-block--visual-left) .tk-story-list {
  display: inline-flex;
  text-align: left;
}

/* Story text */
.tk-story-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.875rem;
  background: var(--color-primary-50, #eef2f7);
  color: var(--color-primary, #193259);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .tk-story-label {
  background: rgba(38, 74, 122, 0.2);
  color: #93b4d4;
}

.tk-story-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--color-slate-900, #0f172a);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

[data-theme="dark"] .tk-story-title { color: #f1f5f9; }

.tk-story-text {
  font-size: 1rem;
  color: var(--color-slate-600, #475569);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .tk-story-text { color: var(--color-slate-400, #94a3b8); }

.tk-story-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.tk-story-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-slate-700, #334155);
}

[data-theme="dark"] .tk-story-list li { color: #d1d5db; }

.tk-story-list li svg {
  flex-shrink: 0;
  color: #22c55e;
}

/* Phone screenshot in story */
.tk-story-phone {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.tk-story-phone-frame {
  width: 200px;
  background: #0f172a;
  border-radius: 28px;
  padding: 6px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.06);
}

.tk-story-phone-frame img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

@media (max-width: 767px) {
  .tk-story-phone img {
    width: 120px;
    border-radius: 16px;
  }

  .tk-story-phone {
    gap: 1rem;
  }
}

/* Story screenshot */
.tk-story-visual img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .tk-story-visual img {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 16px 48px rgba(0, 0, 0, 0.2);
}


/* ============================================
   VCA SECTION (on dark bg)
   ============================================ */

.tk-vca-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.tk-vca-intro h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tk-vca-intro p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.tk-vca-screenshot {
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.2),
    0 0 60px rgba(59, 130, 246, 0.06);
}

.tk-vca-screenshot img {
  width: 100%;
  display: block;
}

.tk-vca-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .tk-vca-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tk-vca-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tk-vca-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
}

.tk-vca-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.tk-vca-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
}

.tk-vca-card p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin: 0;
}


/* ============================================
   "EN OOK" PILLS
   ============================================ */

.tk-also {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 3rem;
}

.tk-also-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-slate-500, #64748b);
}

[data-theme="dark"] .tk-also-label { color: var(--color-slate-400, #94a3b8); }

.tk-also-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary, #193259);
  background: #fff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  cursor: pointer;
}

.tk-also-pill:hover {
  background: var(--color-primary, #193259);
  color: #fff;
  border-color: var(--color-primary, #193259);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 50, 89, 0.15);
}

[data-theme="dark"] .tk-also-pill {
  background: rgba(38, 74, 122, 0.15);
  color: #93b4d4;
  border-color: rgba(38, 74, 122, 0.2);
}

[data-theme="dark"] .tk-also-pill:hover {
  background: rgba(38, 74, 122, 0.4);
  color: #fff;
}


/* ============================================
   SECTION TITLE
   ============================================ */

.tk-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}


/* ============================================
   STAGGER ANIMATIONS
   ============================================ */

.tk-vca-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease,
              background 0.2s ease, border-color 0.2s ease;
}

.revealed .tk-vca-card {
  opacity: 1;
  transform: translateY(0);
}

.revealed .tk-vca-card:nth-child(1) { transition-delay: 0s; }
.revealed .tk-vca-card:nth-child(2) { transition-delay: 0.06s; }
.revealed .tk-vca-card:nth-child(3) { transition-delay: 0.12s; }
.revealed .tk-vca-card:nth-child(4) { transition-delay: 0.18s; }
.revealed .tk-vca-card:nth-child(5) { transition-delay: 0.24s; }
.revealed .tk-vca-card:nth-child(6) { transition-delay: 0.3s; }


/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] .tk-story-visual img {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 16px 48px rgba(0, 0, 0, 0.2);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
  .tk-story-block {
    margin-bottom: 3rem;
  }

  .tk-story-visual img {
    border-radius: 12px;
  }

  /* Phone frames smaller on mobile */
  .tk-story-phone-frame {
    width: 140px;
    border-radius: 22px;
    padding: 4px;
  }

  .tk-story-phone-frame img {
    border-radius: 18px;
  }

  .tk-story-phone {
    gap: 0.75rem;
  }

  /* Toggle buttons compact */
  .tk-toggle-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  /* Story text smaller */
  .tk-story-title {
    font-size: 1.25rem;
  }

  .tk-story-text {
    font-size: 0.9375rem;
  }

  /* VCA grid single column */
  .tk-vca-grid {
    gap: 0.75rem;
  }

  .tk-vca-card {
    padding: 1.25rem;
  }

  /* Section titles */
  .tk-section-title {
    font-size: 1.5rem;
  }

  /* Also pills wrap better */
  .tk-also {
    flex-direction: column;
    align-items: center;
  }
}
