/* Portfolio, in de stijl van mysiteback.com */
:root {
  --bg-page: #ffffff;
  --bg-subtle: #f7f7f5;
  --border: #e6e6e3;
  --text-primary: #0d0d0d;
  --text-secondary: #5f5e5b;
  --text-muted: #9b9a97;
  --accent-blue: #2e6fdb;
  --accent-pink: #e03fbf;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.06);
  --container: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font: 400 16px/24px Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.title { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -1.2px; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.2px; }
.muted { color: var(--text-secondary); }

.logo { display: inline-flex; gap: 1px; font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -0.8px; text-decoration: none; }
.logo span { color: var(--accent-pink); }
.logo-small { font-size: 20px; line-height: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 8px;
  font-weight: 500; line-height: 20px; color: #fff; text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(1px); }
.btn-blue { background: var(--accent-blue); }
.btn-black { background: var(--text-primary); }
.btn-small { padding: 9px 14px; }
a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 8px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) { font-weight: 500; color: var(--text-secondary); text-decoration: none; }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 16px 96px; }
.hero-illustration { width: 560px; margin-bottom: 40px; }
.hero h1 { font-size: 68px; line-height: 76px; font-weight: 700; letter-spacing: -2.2px; margin-bottom: 18px; }
.lead { max-width: 580px; font-size: 20px; line-height: 30px; letter-spacing: -0.1px; color: var(--text-secondary); margin-bottom: 32px; }

.section { max-width: var(--container); margin: 0 auto; padding: 72px 16px; }
.section-lead { margin-top: 8px; font-size: 18px; line-height: 28px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.card h3 { text-align: center; }
.window { margin-bottom: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s; }
.card:hover .window { transform: translateY(-4px); }
.window-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
/* Live preview: render the page at 1200px wide and scale it down. */
.frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-subtle); }
.frame iframe { position: absolute; top: 0; left: 0; width: 1200px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--s, 0.27)); pointer-events: none; }
.tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--bg-subtle); border: 1px solid var(--border); font-size: 13px; line-height: 20px; font-weight: 500; color: var(--text-secondary); }
.go { margin-top: 4px; font-weight: 500; color: var(--accent-blue); }

.feature { margin-top: 40px; }
.frame-wide { aspect-ratio: 16 / 10; }
.frame-wide iframe { height: 750px; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding: 28px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 12px; }
.steps strong { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 50%; background: var(--text-primary); color: #fff; font-size: 15px; }

.contact { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-bottom: 112px; }
.contact .lead { margin: 12px 0 28px; }

.footer { display: flex; justify-content: space-between; align-items: center; max-width: var(--container); margin: 0 auto; padding: 28px 16px 40px; border-top: 1px solid var(--border); }

@media (max-width: 860px) {
  .nav { padding: 16px 20px; }
  .hero { padding: 40px 20px 64px; }
  .hero h1 { font-size: 44px; line-height: 50px; letter-spacing: -1.4px; }
  .lead { font-size: 18px; line-height: 28px; }
  .title { font-size: 32px; line-height: 40px; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
}

/* Cards are buttons that open the viewer */
button.card { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.card h3 { text-align: left; }
.card:hover .btn { opacity: 0.9; }
.feature { width: 100%; }

/* Viewer */
.viewer { width: min(1200px, 94vw); height: 90vh; max-width: none; max-height: none; padding: 0; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25); overflow: hidden; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(13, 13, 13, 0.45); }
.viewer-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.viewer-bar strong { font-weight: 600; }
.viewer-open { margin-left: auto; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.viewer-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--bg-subtle); font-size: 22px; line-height: 1; cursor: pointer; }
.viewer iframe { flex: 1; width: 100%; border: 0; }
.card .name { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.2px; }
.card .desc { padding: 0 4px; color: var(--text-secondary); font-size: 15px; line-height: 22px; }
#werkwijze .steps h3 { margin-bottom: 2px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .nav-links { gap: 18px; } }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cards-2 { grid-template-columns: 1fr; } }

/* Afronding en footer */
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-bottom: 96px; }
.closing .btn { margin-top: 24px; }
.to-top { font-weight: 500; text-decoration: none; }

/* Zichtbare focus voor toetsenbordgebruikers */
button:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 4px; border-radius: 12px; }

/* Telefoon: menu niet tegen het logo, viewer schermvullend */
@media (max-width: 520px) {
  .nav-links { display: none; }
  .viewer { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
}

/* Achtergrond: zachte kleurgloed met stippenraster bovenaan, rustig wit bij de vakken */
body { position: relative; overflow-x: hidden; }
body::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 980px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 380px at 18% 22%, rgba(46, 111, 219, 0.24), transparent 70%),
    radial-gradient(460px 340px at 84% 16%, rgba(224, 63, 191, 0.2), transparent 70%),
    radial-gradient(600px 300px at 55% 62%, rgba(240, 180, 41, 0.16), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
body::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(13, 13, 13, 0.2) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 38%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 38%, #000 10%, transparent 75%);
}
.closing { position: relative; }
.closing::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px 220px at 50% 55%, rgba(46, 111, 219, 0.10), transparent 70%);
}
@media (max-width: 860px) {
  body::before { height: 760px; }
  body::after { height: 700px; background-size: 20px 20px; }
}
