/* Colors mirror the Werkbonvo app (lib/theme/werkbon_kleuren.dart + status_pil.dart). */
:root {
  --primary: #2C5282;
  --primary-dark: #1E3A5F;
  --primary-light: #E8EEF6;
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --text: #1F2937;
  --label: #6B7280;
  --border: #D8DAE2;

  --pil-gepland-bg: #E0E7FF;   --pil-gepland: #4338CA;
  --pil-bezig-bg: #FDE8D7;     --pil-bezig: #B45309;
  --pil-materiaal-bg: #F3E8FF; --pil-materiaal: #7E22CE;
  --pil-afgerond-bg: #DCFCE7;  --pil-afgerond: #15803D;
  --verlof: #F59E0B;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(30, 58, 95, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--label); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-light { background: #fff; color: var(--primary); }
.btn-small { padding: 9px 16px; font-size: .9rem; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.logo small { display: block; font-size: .68rem; font-weight: 400; color: var(--label); line-height: 1; }
.logo-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 1.1rem;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-buttons { display: flex; gap: 10px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--primary-light), var(--bg)); padding: 80px 0 90px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.lead { font-size: 1.12rem; color: #374151; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-note { font-size: .9rem; color: var(--label); }

/* App mockup */
.mockup { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); }
.mockup-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--primary); }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.mockup-body { padding: 18px; background: var(--bg); display: grid; gap: 10px; }
.mockup-title { font-weight: 700; color: var(--primary); }
.wb-card {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
.wb-card small { display: block; color: var(--label); font-size: .8rem; }

/* Status pills, same colors as in the app */
.pil { font-size: .75rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pil-gepland { background: var(--pil-gepland-bg); color: var(--pil-gepland); }
.pil-bezig { background: var(--pil-bezig-bg); color: var(--pil-bezig); }
.pil-materiaal { background: var(--pil-materiaal-bg); color: var(--pil-materiaal); }
.pil-afgerond { background: var(--pil-afgerond-bg); color: var(--pil-afgerond); }

/* Value points */
.values { padding: 50px 0; border-bottom: 1px solid var(--border); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.value h3 { color: var(--primary); }
.value p { color: var(--label); margin: 0; }

/* Sections */
.features, .steps-section { padding: 90px 0; }
.grid-section, .compare-section { padding: 90px 0; background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-text p { color: #4B5563; font-size: 1.05rem; }
.feature-visual { background: var(--bg); border-radius: 16px; padding: 32px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.panel-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }

.check { padding-left: 30px; position: relative; }
.check::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--border);
}
.check.done::before { background: var(--primary); border-color: var(--primary); }
.check.done::after { content: '✓'; position: absolute; left: 4px; top: -1px; color: #fff; font-size: .8rem; font-weight: 700; }
.check.done { color: var(--label); text-decoration: line-through; }

.timer { display: flex; justify-content: space-between; align-items: center; background: var(--pil-afgerond-bg); color: var(--pil-afgerond); border-radius: 8px; padding: 10px 14px; }
.timer strong { font-variant-numeric: tabular-nums; font-size: 1.2rem; }

.sig { border: 1.5px dashed var(--border); border-radius: 8px; color: var(--primary-dark); padding: 10px; }
.sig svg { width: 100%; height: 60px; }
.mail-btn { background: var(--primary); color: #fff; text-align: center; border-radius: 8px; padding: 10px; font-weight: 500; }

.bubble { padding: 12px 14px; border-radius: 12px; font-size: .95rem; max-width: 90%; }
.bubble.user { background: var(--bg); justify-self: end; }
.bubble.ai { background: var(--primary-light); color: var(--primary-dark); }

/* Mini planboard */
.planbord { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.pb-head, .pb-row { display: grid; grid-template-columns: 60px repeat(5, 1fr); gap: 6px; align-items: center; }
.pb-head span { font-size: .8rem; color: var(--label); text-align: center; }
.pb-row span { font-size: .85rem; font-weight: 500; }
.pb-row i { height: 30px; border-radius: 6px; background: var(--bg); }
.pb-row i.blok.b1 { background: var(--pil-gepland-bg); border-left: 3px solid var(--pil-gepland); }
.pb-row i.blok.b2 { background: var(--pil-bezig-bg); border-left: 3px solid var(--pil-bezig); }
.pb-row i.blok.b3 { background: var(--pil-afgerond-bg); border-left: 3px solid var(--pil-afgerond); }
.pb-row i.verlof { background: repeating-linear-gradient(45deg, #FEF3C7, #FEF3C7 6px, #FDE68A 6px, #FDE68A 12px); }

/* Icon grid */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.icon-card p { color: var(--label); margin: 0; }
.icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--primary-light); border-radius: 10px; font-size: 1.4rem; margin-bottom: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: none; }
.steps li { text-align: center; padding: 0 10px; }
.steps span {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
}
.steps p { color: var(--label); }

/* Without / with */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.compare-col { background: var(--surface); border-radius: var(--radius); padding: 30px; border: 1px solid var(--border); }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare-col li { padding-left: 30px; position: relative; }
.without li::before { content: '✕'; position: absolute; left: 0; color: #DC2626; font-weight: 700; }
.with { border: 2px solid var(--primary); }
.with h3 { color: var(--primary); }
.with li::before { content: '✓'; position: absolute; left: 0; color: var(--pil-afgerond); font-weight: 700; }

/* Call to action */
.cta { background: var(--primary); color: #fff; padding: 80px 0; text-align: center; }
.cta p { opacity: .85; font-size: 1.1rem; }
.cta .btn { margin-top: 10px; }
.cta-note { font-size: .85rem !important; margin-top: 12px; }

/* Footer */
.footer { background: var(--primary-dark); color: rgba(255, 255, 255, .85); padding: 40px 0; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer p { margin: 4px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer a { color: #fff; }
.footer .muted { color: rgba(255, 255, 255, .6); }

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; gap: 12px; }
  .logo small { display: none; }
  .nav-buttons .btn-small { padding: 8px 12px; font-size: .85rem; }
  .hero { padding: 50px 0 60px; }
  .hero-inner, .feature-row, .compare { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reverse .feature-text { order: 0; }
  .values-grid, .icon-grid, .steps { grid-template-columns: 1fr; }
  .features, .steps-section, .grid-section, .compare-section { padding: 60px 0; }
  .feature-visual { padding: 18px; }
}
