/* styles.css */
:root{
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #eeeeee;
  --text: #111111;
  --muted: #555555;
  --faint: #888888;
  --line: #dddddd;

  --primary: #2e7d52;
  --primary-2: #246642;
  --warning: #b45309;

  --radius: 6px;
  --container: 1120px;

  --s-1: 6px;
  --s0: 10px;
  --s1: 14px;
  --s2: 18px;
  --s3: 24px;
  --s4: 32px;
  --s5: 44px;
  --s6: 64px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html{
  scroll-behavior: smooth;
}
body{
  margin:0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height:1.7;
}
main{ flex:1; }

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }
img{ max-width:100%; height:auto; display:block; }

.container{
  width: min(var(--container), calc(100% - 2*var(--s3)));
  margin-inline:auto;
}

/* ── Topbar ── */
.topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s ease;
}
.topbar.scrolled{
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-bottom-color: transparent;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s2);
  padding: var(--s2) 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: var(--s1);
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand .mark{
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--primary);
  display:grid;
  place-items:center;
}
.brand .mark svg{ width:18px; height:18px; }

.navlinks{
  display:flex;
  align-items:center;
  gap: var(--s2);
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.navlinks a{ padding: 8px 10px; border-radius: var(--radius); }
.navlinks a:hover{ background: var(--surface); text-decoration:none; color: var(--text); }

/* Actieve navigatielink per pagina */
body[data-page="home"]    .navlinks a[href="/"],
body[data-page="home"]    .navlinks a[href="/index.html"],
body[data-page="faq"]     .navlinks a[href="/faq.html"],
body[data-page="contact"] .navlinks a[href="/contact.html"],
body[data-page="pricing"] .navlinks a[href="/pricing.html"]{
  color: var(--text);
  font-weight: 800;
}

.actions{
  display:flex;
  align-items:center;
  gap: var(--s1);
}

/* ── Buttons ── */
.btn{
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  transition: background .12s ease;
}
.btn:hover{ background: var(--surface-2); text-decoration:none; }
.btn:focus-visible{ outline: 2px solid var(--primary); outline-offset: 2px; }

.btn.primary{
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.btn.primary:hover{
  background: var(--primary-2);
  border-color: var(--primary-2);
}
.btn.ghost{
  background: transparent;
  border-color: var(--line);
}

/* ── Badge ── */
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

/* ── Hero ── */
.hero{
  padding: var(--s6) 0 var(--s5);
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s5);
  align-items:center;
}

h1{
  font-size: clamp(30px, 3.4vw, 48px);
  line-height:1.08;
  margin: 0 0 var(--s2);
  letter-spacing: -0.5px;
}
.lead{
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 var(--s3);
  max-width: 60ch;
}

.heroCard{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}
.heroCard .pad{ padding: var(--s3); }

/* ── Example (hero card) ── */
.exampleLabel{
  font-size: 11px;
  font-weight: 800;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.exampleInput{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
  margin-bottom: 8px;
}
.exampleArrow{
  text-align:center;
  font-size: 22px;
  color: var(--primary);
  margin: 4px 0;
}

/* ── KPI grid ── */
.kpi{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  margin-top: var(--s2);
}
.kpi .item{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.kpi .val{
  font-weight: 900;
  font-size: 16px;
}
.kpi .lbl{
  color: var(--faint);
  font-weight: 700;
  font-size: 12px;
}

/* ── Section ── */
.section{
  padding: var(--s5) 0;
  border-top: 1px solid var(--line);
}
.section h2{
  margin: 0 0 var(--s2);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing:-0.3px;
}
.section p.sub{
  margin: 0 0 var(--s3);
  color: var(--muted);
  max-width: 70ch;
}

/* ── Grids ── */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
}

/* ── Cards ── */
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s3);
}
.card h3{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.card p{
  margin:0;
  color: var(--muted);
}

/* ── Steps ── */
.steps{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s2);
}
.step{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--s3);
  position:relative;
}
.step .n{
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  display:grid;
  place-items:center;
  font-weight: 900;
  color:#ffffff;
  background: var(--primary);
  margin-bottom: 12px;
}
.step h3{
  margin: 0 0 8px;
  font-size: 16px;
}
.step p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
}

/* ── Compare (before/after) ── */
.compareGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}
.compareCard{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--s3);
}
.compareCard.after{
  border-color: var(--primary);
}
.compareLabel{
  font-size: 11px;
  font-weight: 800;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.compareCard.after .compareLabel{ color: var(--primary); }
.compareText{
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: var(--s2);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}
.compareCard.after .compareText{
  font-style: normal;
  border-color: var(--primary);
}
.compareList{
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.compareList li{ margin: 6px 0; }
.compareCard.after .compareList{ color: var(--primary); }

/* ── CTA section ── */
.ctaSection{
  border-bottom: 0;
}
.ctaBox{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  text-align:center;
}
.ctaBox h2{
  margin: 0 0 var(--s2);
  font-size: clamp(22px, 2.2vw, 30px);
}
.ctaBox p{
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto var(--s3);
  font-size: 16px;
}

/* ── Notice ── */
.notice{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--s3);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.notice.success{
  border-color: var(--primary);
  color: var(--primary);
}
.notice.error{
  border-color: var(--warning);
  color: var(--warning);
}

/* ── Trust pills ── */
.trustRow{
  display:flex;
  gap: var(--s2);
  flex-wrap: wrap;
}
.trustPill{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* ── Divider ── */
.hr{
  height:1px;
  background: var(--line);
  margin: var(--s3) 0;
}

/* ── Utility ── */
.small{ font-size: 13px; color: var(--faint); }
.ul{
  padding-left: 18px;
  margin: 0 0 var(--s3);
  color: var(--muted);
}
.ul li{ margin: 8px 0; }

/* ── Footer ── */
.footer{
  border-top: 1px solid var(--line);
  padding: var(--s4) 0;
  color: var(--muted);
}
.footerGrid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s3);
  align-items:start;
}
.footerLinks{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:flex-end;
  align-items: flex-start;
  padding-top: 4px;
}
.footerLinks a{
  color: var(--muted);
  font-size: 13px;
}
.footerLinks a:hover{ color: var(--text); }

/* ── Page headers (FAQ, Contact, etc.) ── */
.pageHead{
  padding: var(--s5) 0 var(--s3);
}
.pageHead h1{ margin-bottom: var(--s1); }
.pageHead .lead{ margin-bottom: 0; }

/* ── FAQ accordion ── */
.faq{
  display:grid;
  gap: var(--s2);
  max-width: 820px;
}
details{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--s2) var(--s3);
}
summary{
  cursor:pointer;
  font-weight: 900;
  list-style:none;
  font-size: 15px;
}
summary::-webkit-details-marker{ display:none; }
details p{ margin: 12px 0 0; color: var(--muted); line-height: 1.7; }

/* ── Forms ── */
.form{
  display:grid;
  gap: var(--s2);
  max-width: 620px;
}
.field{
  display:grid;
  gap: 8px;
}
label{
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}
::placeholder{ color: #aaa; }
input, textarea, select{
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  outline:none;
  font-family: var(--font);
  font-size: 14px;
}
input:focus, textarea:focus, select:focus{
  border-color: var(--primary);
  outline: 2px solid rgba(46,125,82,0.15);
  outline-offset: 0;
}
textarea{ min-height: 140px; resize: vertical; }

/* ── Pricing ── */
.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  align-items: stretch;
}
.priceCard{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--s3);
  display:flex;
  flex-direction:column;
  min-height: 100%;
}
.priceCard.recommended{
  border-color: var(--primary);
}
.priceTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s2);
  margin-bottom: var(--s2);
}
.plan{ font-weight: 900; font-size: 18px; }
.price{
  margin: 0 0 var(--s2);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.6px;
}
.per{
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  margin-left: 6px;
}
.priceCard .grow{ flex:1; }

/* ── Portal layout ── */
.portalWrap{
  display:grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}
.sidebar{
  border-right: 1px solid var(--line);
  padding: var(--s3);
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
}
.sideTitle{
  font-weight: 900;
  margin-bottom: var(--s2);
}
.sideNav{
  display:grid;
  gap: 6px;
}
.sideNav a{
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
}
.sideNav a:hover{ background: var(--surface); text-decoration:none; color: var(--text); }
.sideNav a.active{
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
}
.portalMain{ padding: var(--s3); }
.portalHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s3);
}
.portalHeader h1{ font-size: 26px; margin:0; }
.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}
.kv .card{ padding: var(--s3); }
.kv .big{ font-size: 22px; font-weight: 900; margin: 6px 0 0; }
.mini{ font-size: 12px; color: var(--faint); font-weight: 800; }
.table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  text-align:left;
}
.table th{
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.table td{ color: var(--text); font-weight: 700; }
.table tr:last-child td{ border-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 980px){
  .heroGrid{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .pricing{ grid-template-columns: 1fr; }
  .compareGrid{ grid-template-columns: 1fr; }
  .footerGrid{ grid-template-columns: 1fr; }
  .footerLinks{ justify-content:flex-start; }
  .portalWrap{ grid-template-columns: 1fr; }
  .sidebar{
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .kv{ grid-template-columns: 1fr; }
  .ctaBox{ padding: var(--s4) var(--s3); }
}

@media (max-width: 640px){
  .grid3{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .nav{ gap: var(--s1); }
  .navlinks{ display:none; }
  .hero{ padding: var(--s5) 0 var(--s4); }
}
