/* Qastan Tools: zelfde huisstijl als share.qastan.be (Poppins, navy vlakken, oranje acties) */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/poppins-700-italic.woff2) format('woff2'); }

:root {
  --navy-950: #0a1628;
  --navy-800: #13284a;
  --navy: #1e4882;
  --puffin: #07688e;
  --sky: #26a7df;
  --orange: #eb7a1e;
  --orange-hover: #d96c12;
  --orange-soft: #fdf1e6;
  --bg: #f2f4f7;
  --surface: #ffffff;
  --line: #dde1e7;
  --line-strong: #c3c9d2;
  --text: #404040;
  --text-2: #5f6773;
  --heading: #0a1628;
  --radius: 4px;
  --radius-card: 10px;
  --shadow: 0 1px 2px rgba(10, 22, 40, .06), 0 8px 24px rgba(10, 22, 40, .08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Poppins, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2 { color: var(--heading); font-weight: 700; line-height: 1.2; margin: 0; }
a { color: var(--puffin); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.topbar { background: var(--navy-950); color: #fff; }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand-divider { width: 1px; height: 26px; background: rgba(255, 255, 255, .3); }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: .2px; }
.topbar-link { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 7px; padding: 5px 14px; }
.topbar-link:hover { color: #fff; border-color: #fff; }

.hero { background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 100%); color: #fff; padding: 34px 20px 92px; }
.hero-inner { max-width: 1120px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(26px, 4.2vw, 40px); text-wrap: balance; }
.hero h1 em { color: var(--orange); font-style: italic; }
.hero p { margin: 10px 0 0; color: rgba(255, 255, 255, .8); max-width: 640px; font-size: 16px; }

main { flex: 1; width: 100%; max-width: 1120px; margin: -64px auto 0; padding: 0 20px 48px; }

.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tool {
  position: relative; background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; z-index: 1; }
.tool:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(10, 22, 40, .06), 0 16px 36px rgba(10, 22, 40, .12); }
.tool:hover::before, .tool:focus-within::before, .tool:target::before { transform: scaleX(1); }
.tool:target { box-shadow: 0 0 0 3px var(--orange), var(--shadow); }

.tool-art {
  display: grid; place-items: center; height: 168px;
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f2f6fb 60%, #e8eff8 100%);
  border-bottom: 1px solid var(--line);
}
.tool-art svg { height: 132px; width: auto; transition: transform .25s ease; }
.tool:hover .tool-art svg { transform: scale(1.05); }

.tool-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tool .host { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--orange); }
.tool h2 { font-size: 22px; }
.tool-body > p:not(.host) { margin: 2px 0 0; max-width: 62ch; color: var(--text-2); }
.actions { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius); padding: 11px 20px;
  font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; min-height: 44px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }

.site-footer { padding: 8px 20px 40px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.footer-logo img { height: 64px; width: auto; display: block; }
.site-footer p { margin: 0; font-size: 13px; color: var(--text-2); }
.site-footer p a { color: var(--puffin); font-weight: 600; text-decoration: none; }
.site-footer p a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .topbar-inner { padding: 12px 16px; }
  .hero { padding: 24px 16px 84px; }
  main { padding: 0 16px 40px; }
  .tool-art { height: 140px; }
  .tool-art svg { height: 110px; }
  .tool-body { padding: 18px 20px 20px; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .tool:hover, .tool:hover .tool-art svg { transform: none; } }
