/* =========================================================================
   Cam-Wise — design system (light, calm, blue/cyan accent)
   Eén bestand, geen build-stap. Kleuren staan als CSS-variabelen bovenaan,
   zodat je ze makkelijk kunt aanpassen.
   ========================================================================= */

:root {
  /* Kleuren */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink: #0f1f33;
  --ink-soft: #44566b;
  --muted: #6b7c91;
  --line: #e3e9f0;
  --line-strong: #cfd9e4;

  --brand: #0ea5e9;        /* sky */
  --brand-strong: #0284c7;
  --brand-deep: #0b3a5b;
  --accent: #06b6d4;       /* cyan */

  --success: #16a34a;
  --success-bg: #e9f7ef;
  --danger: #dc2626;
  --danger-bg: #fdecec;
  --warning: #b45309;
  --warning-bg: #fdf3e7;
  --info-bg: #e8f4fc;

  /* Vorm & ruimte */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 51, .06), 0 1px 3px rgba(15, 31, 51, .05);
  --shadow: 0 10px 30px rgba(15, 31, 51, .08);
  --shadow-lg: 0 24px 60px rgba(11, 58, 91, .16);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.lead { font-size: 1.18rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-strong); color: #fff; box-shadow: 0 6px 16px rgba(2, 132, 199, .28); }
.btn-primary:hover { background: #0273ad; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-soft:hover { background: #e6edf5; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f1c9c9; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* knop die als formulier-link oogt */
.linkform { display: inline; }
.btn-link { background: none; border: none; color: var(--brand-strong); cursor: pointer; font: inherit; padding: 0; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Topbar / navigatie ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink); font-size: 1.18rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; flex: 0 0 auto; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.nav a.navlink {
  color: var(--ink-soft); padding: .5rem .7rem; border-radius: 8px; font-weight: 500; font-size: .95rem;
}
.nav a.navlink:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav a.navlink.active { color: var(--brand-strong); background: var(--info-bg); }
.nav .nav-cta { margin-left: .35rem; }
.nav-sep { width: 1px; height: 24px; background: var(--line); margin: 0 .35rem; }
.user-chip { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .85rem; padding: .35rem .55rem; }

.nav-toggle { display: none; }
.hamburger { display: none; }

/* ---------- Secties ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: .6rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(6, 182, 212, .16), transparent 60%),
    radial-gradient(700px 500px at 8% 10%, rgba(14, 165, 233, .12), transparent 55%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 84px 0 72px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 33rem; }
.hero-art { display: flex; justify-content: center; }
.hero-card { width: 100%; max-width: 460px; }

.pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; color: var(--brand-deep); background: #fff; border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }

/* ---------- Cards & grid ---------- */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: 32px; }
.card.feature .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--info-bg); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: 14px; }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; }

.note {
  background: var(--info-bg); border: 1px solid #cfe7f8; border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--brand-deep); font-size: .95rem;
}
.note.warn { background: var(--warning-bg); border-color: #f1dcbf; color: var(--warning); }
.note strong { color: inherit; }

/* ---------- Feature/checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); }
.checklist .check { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin-top: 2px; }
.checklist .check svg { width: 12px; height: 12px; }
.feat-group { margin-bottom: 1.1rem; }
.feat-group .feat-group-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: .4rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-deep); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.02rem; }
.step h3 { margin: .2rem 0 .25rem; }

/* Horizontale stappenbalk (homepage) */
.steplane { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stepcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.stepcard .stepnum { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-deep); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.stepcard h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.stepcard p { margin: 0; font-size: .95rem; }
.stepcard::after { content: ""; position: absolute; top: 45px; right: -13px; width: 26px; height: 2px; background: var(--line-strong); z-index: 1; }
.stepcard:last-child::after { display: none; }

/* Hero productvisual */
.hv-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 14px; }
.hv-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.hv-frame svg { display: block; width: 100%; height: auto; }
.hv-status { margin-top: 14px; display: grid; gap: 8px; }
.hv-row { display: flex; align-items: center; gap: .55rem; padding: .58rem .72rem; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.hv-row.good { background: var(--success-bg); color: #14692f; }
.hv-row.muted { background: var(--surface-2); color: var(--muted); font-weight: 500; }
.hv-row .o { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 auto; }
.hv-row .ic { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--success); display: grid; place-items: center; flex: 0 0 auto; }
.hv-row .ic svg { width: 12px; height: 12px; }
.hv-progress { margin-top: 14px; }
.hv-progress-head { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.hv-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.hv-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .26rem .6rem; border-radius: 999px; }
.badge-free { background: var(--surface-2); color: var(--ink-soft); }
.badge-plus { background: #e6f6fb; color: var(--brand-strong); }
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-test { background: var(--warning-bg); color: var(--warning); }
.badge-muted { background: var(--surface-2); color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; max-width: 820px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -12px; right: 20px; background: var(--brand-strong); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .03em; }
.plan .price { display: flex; align-items: baseline; gap: .4rem; margin: .4rem 0 .2rem; }
.plan .price .amount { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.plan .price .per { color: var(--muted); font-size: .95rem; }
.plan .planfeatures { margin: 18px 0; flex: 1 1 auto; }
.plan .cta { margin-top: auto; }
.price-note { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Forms ---------- */
.auth-wrap { max-width: 440px; margin: 56px auto; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea, .field select {
  width: 100%; padding: .72rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.check-inline { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.check-inline input { margin-top: .25rem; }
.form-foot { margin-top: 1.1rem; font-size: .92rem; color: var(--muted); }

/* ---------- Flash / alerts ---------- */
.flashes { margin: 16px 0 0; display: grid; gap: 10px; }
.flash { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; border: 1px solid transparent; }
.flash.success { background: var(--success-bg); color: #14692f; border-color: #c7ead3; }
.flash.error { background: var(--danger-bg); color: #a31616; border-color: #f1c9c9; }
.flash.info { background: var(--info-bg); color: var(--brand-deep); border-color: #cfe7f8; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; margin: 0 auto 14px; }

/* ---------- Dashboard ---------- */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: .25rem; overflow-x: auto; padding: 6px 0; }
.subnav a { white-space: nowrap; padding: .5rem .8rem; border-radius: 8px; color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.subnav a:hover { background: var(--surface-2); text-decoration: none; }
.subnav a.active { background: var(--brand-deep); color: #fff; }
.page-head { padding: 34px 0 8px; }
.kpi { display: flex; align-items: center; gap: .8rem; }
.kpi .big { font-size: 1.5rem; font-weight: 800; }

.stack { display: grid; gap: 22px; }
.split { display: grid; grid-template-columns: 1.4fr .9fr; gap: 22px; align-items: start; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-deep); color: #cfe0ee; margin-top: 40px; }
.footer a { color: #e6f1fa; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 52px 0 28px; }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer .brand { color: #fff; }
.footer .muted { color: #9fb8cd; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0 30px; font-size: .85rem; color: #9fb8cd; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Diversen ---------- */
.divider { height: 1px; background: var(--line); margin: 22px 0; border: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: .5rem 1rem; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 40px; }
  .hero-art { order: -1; }
  .hero-card { max-width: 380px; }
  .split { grid-template-columns: 1fr; }
  .steplane { grid-template-columns: repeat(2, 1fr); }
  .stepcard::after { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 52px 0; }
  .cols-2, .cols-3, .cols-4, .pricing, .steplane { grid-template-columns: 1fr; }

  /* Mobiel menu */
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px 18px; gap: .2rem;
    margin-left: 0; box-shadow: var(--shadow); display: none;
  }
  .nav a.navlink { padding: .7rem .6rem; }
  .nav-sep { display: none; }
  .nav-cta, .nav .user-chip, .nav .linkform { width: 100%; }
  .nav .btn { width: 100%; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .hamburger { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; margin-left: auto; }
  .hamburger span, .hamburger span::before, .hamburger span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  .hamburger span::before { position: absolute; top: -6px; }
  .hamburger span::after { position: absolute; top: 6px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* toegankelijkheid: focus zichtbaar */
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(14, 165, 233, .4); outline-offset: 2px;
}
