/**
 * 2LZ Website - Homepage v2 laag
 * Signature-design bovenop het bestaande merk: hero-atmosfeer,
 * staggered entrance, product-tilt en het "alles kent elkaar"-diagram.
 * Laadt NA landing.css en overschrijft alleen homepage-specifieke details.
 */

/* ============================================
   HERO - atmosfeer en entrance
   ============================================ */

.hero-landing {
  position: relative;
  overflow: hidden;
}

/* Atmosfeerlaag: blueprint-artwork met zachte fade naar het midden,
   zodat de kop altijd op rustig wit staat. */
.hero-atmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('/assets/hero-blueprint.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 62% 55% at 50% 42%, transparent 38%, #000 78%);
  mask-image: radial-gradient(ellipse 62% 55% at 50% 42%, transparent 38%, #000 78%);
}

[data-theme="dark"] .hero-atmos {
  opacity: 0.1;
  filter: invert(1);
}

/* Gestaggerde entree van de hero-elementen */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.home-hero > * {
  animation: heroRise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.home-hero > *:nth-child(1) { animation-delay: 0.05s; }
.home-hero > *:nth-child(2) { animation-delay: 0.15s; }
.home-hero > *:nth-child(3) { animation-delay: 0.28s; }
.home-hero > *:nth-child(4) { animation-delay: 0.38s; }
.home-hero > *:nth-child(5) { animation-delay: 0.48s; }
.home-hero > *:nth-child(6) { animation-delay: 0.58s; }

/* Accent-onderstreping die na de entree onder het kernwoord schuift */
.home-hero-accent {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.home-hero-accent::after {
  content: '';
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.04em;
  height: 0.3em;
  background: var(--color-primary-100, #d5dfec);
  border-radius: 0.12em;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  animation: accentSweep 0.55s 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

[data-theme="dark"] .home-hero-accent::after {
  background: var(--color-primary-light, #264a7a);
}

@keyframes accentSweep {
  to { transform: scaleX(1); }
}

/* Hero-product: licht perspectief dat rechttrekt bij scrollen (JS zet --hero-tilt) */
.hero-product {
  perspective: 1400px;
}

.hero-product-inner {
  transform: rotateX(var(--hero-tilt, 7deg));
  transform-origin: center top;
  will-change: transform;
  animation: heroRise 0.8s 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-phone {
  animation: heroRise 0.8s 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ============================================
   PROCESREGEL - van lead tot factuur
   ============================================ */

.home-proces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  max-width: 900px;
  margin: 0 auto 0.875rem;
}

.home-proces-stap {
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary, #193259);
  background: var(--color-white, #fff);
  border: 1.5px solid var(--color-primary-100, #d5dfec);
}

[data-theme="dark"] .home-proces-stap {
  color: var(--color-slate-200, #e2e8f0);
  background: var(--color-slate-800, #1e293b);
  border-color: var(--color-primary-light, #264a7a);
}

.home-proces-pijl {
  color: var(--color-slate-400, #94a3b8);
  flex-shrink: 0;
}

.home-proces-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-slate-500, #64748b);
  margin: 0 0 2.25rem;
}

[data-theme="dark"] .home-proces-caption {
  color: var(--color-slate-400, #94a3b8);
}

/* ============================================
   MODULEBAND - alle modules bij naam
   ============================================ */

.home-module-band {
  position: relative;
  max-width: 1060px;
  margin: 2rem auto 2.75rem;
  text-align: center;
}

.home-band-lijnen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.home-band-lijnen path {
  fill: none;
  stroke: var(--color-primary-100, #d5dfec);
  stroke-width: 1;
  opacity: 0.75;
}

[data-theme="dark"] .home-band-lijnen path {
  stroke: var(--color-primary-light, #264a7a);
  opacity: 0.55;
}

.home-module-band-intro {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-600, #475569);
  margin: 0 0 1rem;
}

[data-theme="dark"] .home-module-band-intro {
  color: var(--color-slate-300, #cbd5e1);
}

.home-module-band-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem 1.125rem;
}

.home-module-band-pills + .home-module-band-pills {
  margin-top: 2.25rem;
}

.home-module-band-mid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.75rem;
}

.home-band-zij {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.875rem;
}

.home-band-zij-l {
  justify-content: flex-end;
}

.home-band-zij-r {
  justify-content: flex-start;
}

@media (max-width: 639px) {
  .home-module-band-mid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .home-band-zij-l,
  .home-band-zij-r {
    justify-content: center;
  }
}

.home-module-band-pills span {
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-slate-600, #475569);
  background: var(--color-slate-50, #f8fafc);
  border: 1px solid var(--color-slate-200, #e2e8f0);
  white-space: nowrap;
}

.home-module-band-pills span.home-hart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  margin: 0 0.375rem;
  border-radius: 14px;
  border: none;
  background: var(--color-primary, #193259);
  box-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.45);
  animation: hartslag 3.2s ease-in-out infinite;
}

.home-module-band-pills span.home-hart img {
  height: 32px;
  width: auto;
  display: block;
}

@keyframes hartslag {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

[data-theme="dark"] .home-module-band-pills span.home-hart {
  background: var(--color-primary, #193259);
  border: 1px solid var(--color-primary-light, #264a7a);
}

[data-theme="dark"] .home-module-band-pills span {
  color: var(--color-slate-300, #cbd5e1);
  background: var(--color-slate-800, #1e293b);
  border-color: var(--color-slate-700, #334155);
}

/* ============================================
   OUD VS NIEUW - twee panelen
   ============================================ */

.home-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .home-vs {
    grid-template-columns: 1fr;
  }
}

.home-vs-panel {
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  text-align: left;
}

.home-vs-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.125rem;
}

.home-vs-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.home-vs-panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.home-vs-panel li svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.home-vs-oud {
  background: var(--color-slate-50, #f8fafc);
  border: 1px solid var(--color-slate-200, #e2e8f0);
}

.home-vs-oud .home-vs-head {
  color: var(--color-slate-500, #64748b);
}

.home-vs-oud li {
  color: var(--color-slate-500, #64748b);
}

.home-vs-oud svg {
  color: var(--color-slate-400, #94a3b8);
}

.home-vs-nieuw {
  background: var(--color-primary, #193259);
  box-shadow: 0 18px 44px -18px rgba(15, 23, 42, 0.4);
}

.home-vs-nieuw .home-vs-head {
  color: #fff;
}

.home-vs-nieuw li {
  color: rgba(255, 255, 255, 0.88);
}

.home-vs-nieuw svg {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .home-vs-oud {
  background: var(--color-slate-800, #1e293b);
  border-color: var(--color-slate-700, #334155);
}

[data-theme="dark"] .home-vs-oud li {
  color: var(--color-slate-400, #94a3b8);
}

[data-theme="dark"] .home-vs-nieuw {
  border: 1px solid var(--color-primary-light, #264a7a);
}

/* ============================================
   HERKENBAAR - pijn in de vorm van het medium
   ============================================ */

/* De oude decoratieve aanhalingstekens vervallen: de pijn is nu
   letterlijk in beeld (bubbel, bestand, mailregel). */
.home-problem-lg::after {
  content: none !important;
}

.pijn-chat {
  margin-top: 0.75rem;
}

.pijn-bubble {
  position: relative;
  display: inline-block;
  max-width: 100%;
  background: var(--color-slate-100, #f1f5f9);
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: 12px 12px 12px 4px;
  padding: 0.75rem 1rem 0.5rem;
}

.pijn-bubble p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-slate-700, #334155);
}

.pijn-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: var(--color-slate-400, #94a3b8);
  margin-top: 0.25rem;
}

.pijn-bubble-meta svg {
  color: var(--color-slate-400, #94a3b8);
}

[data-theme="dark"] .pijn-bubble {
  background: var(--color-slate-800, #1e293b);
  border-color: var(--color-slate-700, #334155);
}

[data-theme="dark"] .pijn-bubble p {
  color: var(--color-slate-200, #e2e8f0);
}

[data-theme="dark"] .pijn-bubble-meta {
  color: var(--color-slate-500, #64748b);
}

.pijn-bubble-foto {
  border-radius: 12px 12px 4px 12px;
}

.pijn-bubble-foto p {
  font-size: 0.8125rem;
  font-weight: 600;
}

.pijn-foto-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: rgba(17, 27, 33, 0.08);
  border-radius: 8px;
  color: rgba(17, 27, 33, 0.45);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .pijn-foto-thumb {
  background: rgba(233, 237, 239, 0.12);
  color: rgba(233, 237, 239, 0.5);
}

.pijn-file {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--color-slate-50, #f8fafc);
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: 8px;
}

.pijn-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--color-slate-200, #e2e8f0);
  color: var(--color-slate-600, #475569);
  font-weight: 800;
  font-size: 0.8125rem;
  border-radius: 6px;
}

[data-theme="dark"] .pijn-file-icon {
  background: var(--color-slate-700, #334155);
  color: var(--color-slate-300, #cbd5e1);
}

.pijn-file-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-slate-600, #475569);
  overflow-wrap: anywhere;
}

[data-theme="dark"] .pijn-file {
  background: var(--color-slate-800, #1e293b);
  border-color: var(--color-slate-700, #334155);
}

[data-theme="dark"] .pijn-file-name {
  color: var(--color-slate-300, #cbd5e1);
}

.pijn-mail {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--color-slate-50, #f8fafc);
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: 8px;
}

.pijn-mail-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--color-primary, #193259);
}

[data-theme="dark"] .pijn-mail-dot {
  background: var(--color-primary-light, #264a7a);
}

.pijn-mail-body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.pijn-mail-body strong {
  font-size: 0.875rem;
  color: var(--color-slate-900, #0f172a);
}

.pijn-mail-body span {
  font-size: 0.75rem;
  color: var(--color-slate-400, #94a3b8);
}

[data-theme="dark"] .pijn-mail {
  background: var(--color-slate-800, #1e293b);
  border-color: var(--color-slate-700, #334155);
}

[data-theme="dark"] .pijn-mail-body strong {
  color: var(--color-slate-100, #f1f5f9);
}

.pijn-kanalen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pijn-kanaal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--color-slate-100, #f1f5f9);
  color: var(--color-slate-600, #475569);
}

.pijn-kanaal b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: var(--color-primary, #193259);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.pijn-kanaal {
  border: 1px solid var(--color-slate-200, #e2e8f0);
}

[data-theme="dark"] .pijn-kanaal {
  background: var(--color-slate-800, #1e293b);
  border-color: var(--color-slate-700, #334155);
  color: var(--color-slate-300, #cbd5e1);
}

[data-theme="dark"] .pijn-kanaal b {
  background: var(--color-primary-light, #264a7a);
}

.pijn-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pijn-chip {
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--color-slate-100, #f1f5f9);
  color: var(--color-slate-600, #475569);
  border: 1px dashed var(--color-slate-300, #cbd5e1);
}

.pijn-chip-zero {
  background: var(--color-primary-50, #eef2f7);
  color: var(--color-primary, #193259);
  border-style: solid;
  border-color: var(--color-primary-100, #d5dfec);
  font-weight: 700;
}

[data-theme="dark"] .pijn-chip {
  background: var(--color-slate-800, #1e293b);
  color: var(--color-slate-300, #cbd5e1);
  border-color: var(--color-slate-600, #475569);
}

[data-theme="dark"] .pijn-chip-zero {
  background: var(--color-primary-800, #0e1f3a);
  color: var(--color-slate-200, #e2e8f0);
  border-color: var(--color-primary-light, #264a7a);
}

/* ============================================
   USP-TEASERS - links op gelijke hoogte
   ============================================ */

.home-usp .module-card {
  display: flex;
  flex-direction: column;
}

.home-usp .module-card .module-card-link {
  margin-top: auto;
  padding-top: 0.875rem;
}

/* ============================================
   USP-TEASERS - rijkere kaartinteractie
   ============================================ */

.home-usp .module-card {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-usp .module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.22);
}

.home-usp .module-card .module-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-usp .module-card:hover .module-icon {
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
}

/* ============================================
   TOEGANKELIJKHEID
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .home-hero > *,
  .hero-product-inner,
  .hero-phone,
  .home-hero-accent::after,
  .home-hart {
    animation: none !important;
  }

  .home-hero-accent::after { transform: scaleX(1); }
  .hero-product-inner { transform: none; }
}
