/* CALQ publieke landingspagina */
:root {
  --green: #164d31;
  --green-light: #1f6b42;
  --green-glow: #2d9a5c;
  --accent-soft: #eef4f0;
  --bg: #f4f6f8;
  --text: #1a202c;
  --heading: #0f3a24;
  --muted: #5f6b7a;
  --border: #e4e8ed;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--green-light); text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

header.site {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.02em;
}
.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
}
nav.main {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
nav.main a { color: var(--text); }
nav.main a:hover { color: var(--green-light); }

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-light); color: #fff; box-shadow: 0 6px 20px rgba(22, 77, 49, 0.25); }
.btn-outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn-outline:hover { background: var(--accent-soft); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0f3d28 0%, var(--green) 40%, var(--green-light) 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: heroOrb 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::before {
  width: 420px;
  height: 420px;
  background: #4ade80;
  top: -120px;
  right: -80px;
}
.hero::after {
  width: 300px;
  height: 300px;
  background: #86efac;
  bottom: -100px;
  left: -60px;
  animation-delay: -4s;
}
@keyframes heroOrb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-showcase { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
}
.hero h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero p.lead {
  font-size: 1.08rem;
  margin: 0 0 1.5rem;
  color: #e6f1ea;
  max-width: 34rem;
}
.hero .cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero .btn-primary { background: #fff; color: var(--green); }
.hero .btn-primary:hover { background: var(--accent-soft); }
.hero .btn-outline { border-color: #ffffff66; color: #fff; background: transparent; }
.hero .btn-outline:hover { background: #ffffff18; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-badge {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #ffffff18;
  border: 1px solid #ffffff33;
  color: #ecfdf3;
}

/* Device frame + demo carousel */
.hero-showcase { perspective: 900px; }
.device {
  background: #1e293b;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px #ffffff12;
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.device:hover { transform: rotateY(0deg) rotateX(0deg); }
.device-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}
.device-dot { width: 9px; height: 9px; border-radius: 50%; }
.device-dot--r { background: #f87171; }
.device-dot--y { background: #fbbf24; }
.device-dot--g { background: #4ade80; }
.device-url {
  flex: 1;
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
  background: #1e293b;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f8fafc;
  overflow: hidden;
}
.reel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.reel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.reel-slide.is-active .reel-anim { animation-play-state: running; }

.reel-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem 0;
  background: #0f172a;
}
.reel-tab {
  flex: 1;
  border: none;
  background: #1e293b;
  color: #94a3b8;
  font-size: 0.72rem;
  padding: 0.45rem 0.35rem;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.reel-tab.is-active { background: #f8fafc; color: var(--green); font-weight: 600; }

/* Demo: warmteverlies */
.demo-warm {
  padding: 0.65rem;
  height: 100%;
  background: linear-gradient(180deg, #fef3c7, #fff);
}
.demo-warm__hdr {
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
}
.demo-warm__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.demo-warm__kpi {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.35rem 0.25rem;
  text-align: center;
}
.demo-warm__kpi strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
}
.demo-warm__kpi span {
  font-size: 0.55rem;
  color: #64748b;
}
.demo-warm__bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.demo-warm__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  color: #475569;
}
.demo-warm__bar span { width: 4.5rem; flex-shrink: 0; }
.demo-warm__bar i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-glow));
  animation: warmBarPulse 2.8s ease-in-out infinite;
}
.demo-warm__bar:nth-child(2) i { animation-delay: 0.3s; }
.demo-warm__bar:nth-child(3) i { animation-delay: 0.6s; }
@keyframes warmBarPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* Demo: begroting */
.demo-beg {
  padding: 0.55rem;
  height: 100%;
  font-size: 0.62rem;
}
.demo-beg__hdr {
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
}
.demo-beg table { width: 100%; border-collapse: collapse; }
.demo-beg th {
  text-align: left;
  background: #f1f5f9;
  padding: 0.25rem 0.35rem;
  color: #64748b;
  font-weight: 600;
}
.demo-beg td { padding: 0.28rem 0.35rem; border-bottom: 1px solid #f1f5f9; }
.demo-beg tr.row-flash td { animation: rowFlash 3s ease infinite; animation-play-state: paused; }
.demo-beg tr.row-flash:nth-child(2) td { animation-delay: 0.5s; }
.demo-beg tr.row-flash:nth-child(3) td { animation-delay: 1s; }
.demo-beg .ok { color: #15803d; font-weight: 700; }
.demo-beg .warn { color: #b45309; font-weight: 700; }
@keyframes rowFlash {
  0%, 70%, 100% { background: transparent; }
  10%, 25% { background: #ecfdf5; }
}

/* Demo: ventilatie */
.demo-vent {
  padding: 0.65rem;
  height: 100%;
  background: #f8fafc;
}
.demo-vent__fan {
  width: 56px;
  height: 56px;
  border: 3px solid var(--green);
  border-radius: 50%;
  margin: 0.5rem auto;
  position: relative;
  animation: fanSpin 3s linear infinite;
  animation-play-state: paused;
}
.demo-vent__fan::before,
.demo-vent__fan::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 14%;
  background: var(--green-light);
  border-radius: 3px;
  transform: translate(-50%, -50%);
}
.demo-vent__fan::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes fanSpin { to { transform: rotate(360deg); } }
.demo-vent__ducts {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}
.demo-vent__duct {
  width: 80px;
  height: 12px;
  background: #cbd5e1;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.demo-vent__duct::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, #4ade80, transparent);
  animation: ductFlow 1.4s linear infinite;
  animation-play-state: paused;
}
.demo-vent__duct:nth-child(2)::after { animation-delay: 0.35s; }
.demo-vent__duct:nth-child(3)::after { animation-delay: 0.7s; }
@keyframes ductFlow {
  from { left: -20px; }
  to { left: 100%; }
}
.demo-vent__kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-top: 0.85rem;
}
.demo-vent__kpi div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.35rem;
  text-align: center;
}
.demo-vent__kpi strong { display: block; color: var(--green); font-size: 0.85rem; }
.demo-vent__kpi span { color: #64748b; font-size: 0.58rem; }

/* Demo: dashboard */
.demo-dash {
  padding: 0.55rem;
  height: 100%;
}
.demo-dash__title { font-size: 0.72rem; font-weight: 700; color: var(--green); margin-bottom: 0.45rem; }
.demo-dash__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.demo-dash__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem;
  opacity: 0;
  transform: translateY(8px);
  animation: cardIn 4s ease infinite;
  animation-play-state: paused;
}
.demo-dash__card:nth-child(1) { animation-delay: 0s; }
.demo-dash__card:nth-child(2) { animation-delay: 0.4s; }
.demo-dash__card:nth-child(3) { animation-delay: 0.8s; }
.demo-dash__card:nth-child(4) { animation-delay: 1.2s; }
.demo-dash__card h4 { margin: 0; font-size: 0.62rem; color: #334155; }
.demo-dash__card p { margin: 0.15rem 0 0; font-size: 0.55rem; color: #94a3b8; }
@keyframes cardIn {
  0%, 8% { opacity: 0; transform: translateY(8px); }
  15%, 70% { opacity: 1; transform: translateY(0); }
  85%, 100% { opacity: 0.6; transform: translateY(0); }
}

.reel-anim { animation-play-state: paused; }
.is-active .reel-anim,
.is-active .demo-flow--a,
.is-active .demo-flow--b,
.is-active .demo-vent__fan,
.is-active .demo-vent__duct::after,
.is-active .demo-dash__card,
.is-active tr.row-flash td { animation-play-state: running; }

/* Showcase strip */
.showcase {
  padding: 3rem 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.showcase h2 { text-align: center; margin-bottom: 0.35rem; }
.showcase .sub { text-align: center; margin-left: auto; margin-right: auto; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (max-width: 900px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .showcase-grid { grid-template-columns: 1fr; } }

.showcase-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.25s, box-shadow 0.25s;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(22, 77, 49, 0.12);
}
.showcase-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.showcase-card__media .device-screen { aspect-ratio: 4 / 3; }
.showcase-card__media .reel-slide { position: relative; opacity: 1; transform: none; }
.showcase-card__media .reel-anim,
.showcase-card__media .demo-flow--a,
.showcase-card__media .demo-flow--b,
.showcase-card__media .demo-vent__fan,
.showcase-card__media .demo-vent__duct::after,
.showcase-card__media .demo-dash__card,
.showcase-card__media tr.row-flash td {
  animation-play-state: running;
}
.showcase-card__label {
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
}
.showcase-card__label span {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

section.block { padding: 3.5rem 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: 1.6rem; margin: 0 0 0.5rem; color: var(--green); }
p.sub { color: var(--muted); margin: 0 0 2rem; max-width: 42rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22, 77, 49, 0.08); }
.alt .card { background: var(--bg); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--green); }
.card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; }
.card li { margin-bottom: 0.25rem; }
.card .count { font-size: 0.78rem; color: var(--muted); }

.pakket { display: flex; flex-direction: column; }
.pakket .naam { font-size: 1.25rem; font-weight: 700; color: var(--green); margin-bottom: 0.25rem; }
.pakket .voor { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.pakket ul { flex: 1; }
.pakket .prijs { margin-top: 1rem; font-weight: 600; }
.pakket.uitgelicht { border-color: var(--green); box-shadow: 0 4px 18px rgba(22, 77, 49, 0.12); }

.steps { counter-reset: stap; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.steps .stap {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.steps .stap.is-visible { opacity: 1; transform: translateY(0); }
.steps .stap::before {
  counter-increment: stap;
  content: counter(stap);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.steps h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.steps p { margin: 0; font-size: 0.88rem; color: var(--muted); }

.over { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 720px) { .over { grid-template-columns: 1fr; } }
.over .feit { display: flex; gap: 0.6rem; margin-bottom: 0.7rem; font-size: 0.92rem; }
.over .feit::before { content: "✓"; color: var(--green-light); font-weight: 700; }

.contactband {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}
.contactband::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, #ffffff15, transparent 55%);
  animation: heroOrb 8s ease-in-out infinite alternate;
}
.contactband .wrap { position: relative; z-index: 1; }
.contactband h2 { color: #fff; }
.contactband p { color: #e6f1ea; max-width: 34rem; margin: 0.5rem auto 1.5rem; }

footer.site { padding: 1.75rem 0; font-size: 0.82rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
footer.site a { color: var(--muted); text-decoration: underline; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .device { transform: none; }
}
