/* =========================================================
   Romano Groenewoud - SEO, GEO en AI-vindbaarheid
   Gedeelde stylesheet. Eén bron voor alle pagina's.
   ========================================================= */

:root {
  --bg: #fbf8f3;
  --bg-warm: #f5efe5;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6b655c;
  --line: #e8e1d4;
  --line-strong: #d9d0bf;

  --accent: #b34727;
  --accent-hover: #9c3a1f;
  --accent-soft: #f6e9e2;

  --ok: #2f7a4f;
  --ok-soft: #e7f1ea;
  --warn: #b07512;
  --warn-soft: #f6eedd;
  --bad: #b3402c;
  --bad-soft: #f6e6e2;

  --dark: #1c1a17;
  --dark-soft: #2a2620;

  --radius: 14px;
  --radius-sm: 10px;
  --max: 1080px;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 540;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: var(--mono); }

.mark {
  background: linear-gradient(transparent 58%, rgba(179, 71, 39, 0.20) 58%);
  padding: 0 0.05em;
}

/* ---------- Eyebrow / badges / pills ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.pill.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--bg-warm); border-color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.16s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 10px 18px; }
  .nav-links { order: 3; width: 100%; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
  .nav-links a { font-size: 0.9rem; }
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-warm { background: var(--bg-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); margin-top: 8px; }
.section-head .lead { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 44px; align-items: center; }
.hero-art img { width: 100%; max-width: 460px; margin-left: auto; display: block; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { max-width: 300px; margin: 0 auto; }
  .hero-art img { margin: 0 auto; }
}
.hero .eyebrow { display: inline-block; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.7rem); max-width: 16ch; }
.hero .sub { margin-top: 22px; font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.hero .actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

.markers { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px; }
.markers .pill { background: var(--surface); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -28px rgba(28, 26, 23, 0.45); border-color: var(--line-strong); }
.card .tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 1.28rem; margin-top: 10px; }
.card p { color: var(--muted); margin-top: 10px; font-size: 0.97rem; }
.card .arrow { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--accent); font-size: 0.92rem; }
a.card:hover .arrow { color: var(--accent-hover); }

/* ---------- SEO vs GEO comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.compare h3 { font-size: 1.2rem; }
.compare ul { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.compare li { padding-left: 24px; position: relative; color: var(--muted); font-size: 0.97rem; }
.compare li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Prose ---------- */
.prose { max-width: 64ch; }
.prose p { margin-top: 18px; color: var(--ink); }
.prose p:first-child { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #d8d2c7; padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #e5a587; }
.site-footer p { color: #a8a294; font-size: 0.92rem; margin-top: 12px; max-width: 38ch; }
.site-footer h4 { font-family: "Hanken Grotesk", sans-serif; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; font-weight: 700; }
.site-footer ul { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.site-footer a { color: #b8b2a6; font-size: 0.93rem; transition: color 0.16s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid #3a352d; font-size: 0.85rem; color: #8e887b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   Tool pages
   ========================================================= */
.tool-main { padding: 48px 0 80px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; font-weight: 500; margin-bottom: 22px; }
.backlink:hover { color: var(--accent); }
.tool-head { max-width: 680px; margin-bottom: 36px; }
.tool-head h1 { font-size: clamp(2rem, 4.5vw, 2.7rem); margin-top: 8px; }
.tool-head .lead { color: var(--muted); margin-top: 12px; font-size: 1.08rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel + .panel { margin-top: 22px; }
.tool-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .tool-cols { grid-template-columns: 1fr; } }

/* form fields */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
input[type="text"], input[type="url"], input[type="number"], input[type="date"], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color 0.16s, box-shadow 0.16s;
}
textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.counter { font-size: 0.8rem; color: var(--muted); margin-top: 6px; text-align: right; }
.counter.warn { color: var(--warn); }
.counter.bad { color: var(--bad); }
.counter.ok { color: var(--ok); }

.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 0.88rem; font-weight: 600; padding: 9px 15px; background: var(--surface); color: var(--muted); border: none; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: none; }
.seg button.active { background: var(--accent); color: #fff; }

/* output / code */
.output {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.6;
  background: #221f1a;
  color: #ece6da;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  min-height: 80px;
}
.output .k { color: #e5a587; }
.output .s { color: #b9c98f; }

/* results / score */
.score-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.score-num { font-family: "Fraunces", serif; font-size: 3.2rem; line-height: 1; }
.score-num small { font-size: 1rem; color: var(--muted); font-family: "Hanken Grotesk", sans-serif; }
.score-label { font-weight: 600; }
.bar { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.5s ease; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 4px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.stat b { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 540; display: block; }
.stat span { font-size: 0.82rem; color: var(--muted); }

/* check list */
.checks { display: grid; gap: 10px; margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); }
.check .dot { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; margin-top: 1px; }
.check.ok .dot { background: var(--ok); }
.check.warn .dot { background: var(--warn); }
.check.bad .dot { background: var(--bad); }
.check.ok { background: var(--ok-soft); border-color: transparent; }
.check.warn { background: var(--warn-soft); border-color: transparent; }
.check.bad { background: var(--bad-soft); border-color: transparent; }
.check .ctext b { display: block; font-size: 0.95rem; }
.check .ctext span { font-size: 0.88rem; color: var(--muted); }

/* google snippet preview */
.serp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; font-family: Arial, sans-serif; }
.serp .s-url { color: #202124; font-size: 13px; line-height: 1.3; }
.serp .s-site { color: #5f6368; font-size: 12px; }
.serp .s-title { color: #1a0dab; font-size: 20px; line-height: 1.3; margin: 4px 0 3px; }
.serp .s-desc { color: #4d5156; font-size: 14px; line-height: 1.58; }
.serp.mobile { max-width: 400px; }

.toast { font-size: 0.85rem; color: var(--ok); font-weight: 600; opacity: 0; transition: opacity 0.2s; }
.toast.show { opacity: 1; }

.note { font-size: 0.86rem; color: var(--muted); background: var(--bg-warm); border-radius: var(--radius-sm); padding: 13px 15px; border: 1px solid var(--line); }

.faq-pair { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; background: var(--bg); }
.faq-pair .rm { float: right; color: var(--bad); font-size: 0.82rem; font-weight: 600; cursor: pointer; }

/* explainer block on tool pages */
.explain { margin-top: 40px; max-width: 64ch; }
.explain h2 { font-size: 1.5rem; }
.explain p { color: var(--muted); margin-top: 14px; }

/* subtle load reveal */
.reveal { opacity: 0; transform: translateY(12px); animation: rise 0.6s ease forwards; }
.reveal.d1 { animation-delay: 0.07s; }
.reveal.d2 { animation-delay: 0.14s; }
.reveal.d3 { animation-delay: 0.21s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } .bar > span { transition: none; } }
