/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS — licht thema: slate-blauw / zachtgrijs / mint
   ───────────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --mint-600: #059669;
  --mint-500: #10b981;
  --mint-400: #34d399;
  --mint-100: #d1fae5;
  --mint-50:  #ecfdf5;

  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;

  --blue-700:  #1d4ed8;
  --blue-600:  #2563eb;
  --blue-500:  #3b82f6;
  --blue-100:  #dbeafe;
  --blue-50:   #eff6ff;

  --purple-600: #7c3aed;
  --purple-100: #ede9fe;

  /* Semantic */
  --bg:        var(--slate-50);
  --surface:   #ffffff;
  --surface2:  var(--slate-100);
  --border:    var(--slate-200);
  --border2:   var(--slate-300);
  --text:      var(--slate-800);
  --text-sec:  var(--slate-600);
  --text-muted:var(--slate-400);
  --accent:    var(--mint-500);
  --accent-bg: var(--mint-50);
  --accent-dark:var(--mint-600);

  /* Category colours */
  --c-checklist: var(--blue-600);
  --c-checklist-bg: var(--blue-50);
  --c-planner:   var(--purple-600);
  --c-planner-bg: var(--purple-100);
  --c-budget:    var(--mint-600);
  --c-budget-bg: var(--mint-50);
  --c-schema:    var(--orange-600);
  --c-schema-bg: var(--orange-100);

  /* Type scale */
  --text-xs:   0.72rem;
  --text-sm:   0.84rem;
  --text-base: 0.97rem;
  --text-lg:   1.08rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.4rem;
  --text-5xl:  3rem;

  /* Spacing */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 24px -3px rgba(0,0,0,.08), 0 4px 8px -4px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 48px -8px rgba(0,0,0,.1);

  /* Transitions */
  --trans-fast: 120ms ease;
  --trans-base: 200ms ease;
  --trans-slow: 320ms ease;
}


/* ─────────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: var(--text-base);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }


/* ─────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); font-weight: 800; }
h2 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 700; }
h4 { font-size: var(--text-base); font-weight: 700; }
p  { color: var(--text-sec); line-height: 1.65; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--mint-100);
  border-radius: 20px;
  padding: 4px 12px;
}


/* ─────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 0.97rem;
  font-weight: 800;
  white-space: nowrap;
}
.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--mint-500), var(--blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.nav-link {
  text-decoration: none;
  color: var(--text-sec);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 8px;
  transition: background var(--trans-fast), color var(--trans-fast);
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--surface2);
  color: var(--text);
}

.nav-cta {
  background: var(--text);
  color: var(--surface);
  font-family: 'Sora', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
}
.nav-cta:hover { opacity: .85; transform: translateY(-1px); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}


/* ─────────────────────────────────────────────────────────────
   HERO — HOMEPAGE
   ───────────────────────────────────────────────────────────── */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px clamp(16px, 4vw, 40px) 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; padding-top: 96px; }
}

.hero-text { max-width: 560px; }
.hero-text .eyebrow { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(var(--text-3xl), 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-title mark {
  background: none;
  color: var(--accent);
  position: relative;
}
.hero-title mark::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: .4;
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-sec);
  margin-bottom: 28px;
  max-width: 46ch;
  line-height: 1.65;
}

/* Stat strip */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.stat-item {}
.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  margin-top: 3px;
}

/* Hero CTA buttons */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--text);
  color: var(--surface);
  font-family: 'Sora', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--r-md);
  text-decoration: none;
  border: none;
  transition: transform var(--trans-base), box-shadow var(--trans-base);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: transparent;
  color: var(--text-sec);
  font-family: 'Sora', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--r-md);
  text-decoration: none;
  border: 1.5px solid var(--border2);
  transition: all var(--trans-base);
}
.btn-secondary:hover {
  border-color: var(--text-sec);
  color: var(--text);
  background: var(--surface2);
}

/* Hero visual panel (right column) */
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  display: none;
}
@media (min-width: 900px) { .hero-visual { display: block; } }

.hero-visual-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  transition: all var(--trans-base);
}
.mini-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.mini-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.mini-card-title {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 4px;
}
.mini-card-sub { font-size: var(--text-xs); color: var(--text-muted); }

.mini-card-icon.checklist { background: var(--c-checklist-bg); }
.mini-card-icon.planner   { background: var(--c-planner-bg); }
.mini-card-icon.budget    { background: var(--c-budget-bg); }
.mini-card-icon.schema    { background: var(--c-schema-bg); }


/* ─────────────────────────────────────────────────────────────
   SEARCH BAR
   ───────────────────────────────────────────────────────────── */
.search-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 32px;
}
.search-bar-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 10px 10px 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
}
.search-bar-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.search-icon { color: var(--text-muted); flex-shrink: 0; font-size: 1.1rem; }
#q {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-base);
  outline: none;
  min-width: 0;
}
#q::placeholder { color: var(--text-muted); }

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 700;
  border: 1.5px solid var(--border2);
  background: transparent;
  color: var(--text-sec);
  cursor: pointer;
  transition: all var(--trans-fast);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}
.filter-chip[data-cat="checklist"].active { background: var(--c-checklist); border-color: var(--c-checklist); }
.filter-chip[data-cat="planner"].active   { background: var(--c-planner);   border-color: var(--c-planner); }
.filter-chip[data-cat="budget"].active    { background: var(--c-budget);    border-color: var(--c-budget); }
.filter-chip[data-cat="schema"].active    { background: var(--c-schema);    border-color: var(--c-schema); }


/* ─────────────────────────────────────────────────────────────
   MEGA-GRID
   ───────────────────────────────────────────────────────────── */
.grid-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 80px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 18px;
  flex-wrap: wrap;
}
.section-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.section-label {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  background: var(--surface2);
  padding: 2px 9px;
  border-radius: 12px;
}
.section-icon.checklist { background: var(--c-checklist-bg); }
.section-icon.planner   { background: var(--c-planner-bg); }
.section-icon.budget    { background: var(--c-budget-bg); }
.section-icon.schema    { background: var(--c-schema-bg); }
.section-label.checklist { color: var(--c-checklist); }
.section-label.planner   { color: var(--c-planner); }
.section-label.budget    { color: var(--c-budget); }
.section-label.schema    { color: var(--c-schema); }

/* Template cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

a.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
a.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--trans-base);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
a.card[data-category="checklist"]::after { background: var(--c-checklist); }
a.card[data-category="planner"]::after   { background: var(--c-planner); }
a.card[data-category="budget"]::after    { background: var(--c-budget); }
a.card[data-category="schema"]::after    { background: var(--c-schema); }
a.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
a.card:hover::after { opacity: 1; }

.card-cat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 9px;
}
a.card[data-category="checklist"] .card-cat-label { color: var(--c-checklist); }
a.card[data-category="planner"]   .card-cat-label { color: var(--c-planner); }
a.card[data-category="budget"]    .card-cat-label { color: var(--c-budget); }
a.card[data-category="schema"]    .card-cat-label { color: var(--c-schema); }

.card-title {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.card-desc {
  font-size: var(--text-xs);
  color: var(--text-sec);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.card-badges { display: flex; gap: 5px; }
.badge {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-pdf   { background: #fff1eb; color: var(--orange-600); border: 1px solid #fdd9c4; }
.badge-excel { background: var(--mint-50); color: var(--mint-600); border: 1px solid var(--mint-100); }
.card-arrow {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: transform var(--trans-base), color var(--trans-base);
}
a.card:hover .card-arrow { transform: translateX(4px); color: var(--text-sec); }

/* Hidden cards + Show More */
a.card.cat-hidden { display: none !important; }

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.btn-show-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  font-family: 'Sora', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-sec);
  cursor: pointer;
  transition: all var(--trans-base);
  box-shadow: var(--shadow-xs);
}
.btn-show-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-show-more:disabled { opacity: .4; pointer-events: none; }
.btn-show-more .pill {
  background: var(--surface2);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* No results */
#no-results {
  display: none;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
#no-results .nr-icon { font-size: 2.5rem; margin-bottom: 12px; }
#no-results h3 { font-family: 'Sora', sans-serif; font-size: var(--text-lg); color: var(--text-sec); margin-bottom: 6px; }


/* ─────────────────────────────────────────────────────────────
   ADSENSE SLOTS
   ───────────────────────────────────────────────────────────── */
.ad-slot {
  background: var(--surface2);
  border: 1px dashed var(--border2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  overflow: hidden;
  position: relative;
}
.ad-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,.02) 10px,
    rgba(0,0,0,.02) 20px
  );
}
/* Leaderboard: 728×90 */
.ad-slot.leaderboard {
  width: 100%;
  min-height: 90px;
  max-height: 90px;
  margin: 24px auto;
}
/* Rectangle: 300×250 */
.ad-slot.rectangle {
  width: 300px;
  min-height: 250px;
  max-height: 250px;
}
/* Sidebar: sticky */
.ad-slot.sidebar {
  width: 160px;
  min-height: 600px;
  position: sticky;
  top: 72px;
  align-self: start;
}
/* Between cards: half-banner */
.ad-slot.half-banner {
  width: 100%;
  min-height: 60px;
  max-height: 60px;
  margin: 32px auto;
  border-radius: var(--r-lg);
}


/* ─────────────────────────────────────────────────────────────
   KEYWORD PAGE LAYOUT (with sidebar)
   ───────────────────────────────────────────────────────────── */
.kw-outer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 1024px) {
  .kw-outer { grid-template-columns: 1fr 280px; }
}

.kw-main {}
.kw-sidebar {}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-sec);
  text-decoration: none;
  transition: color var(--trans-fast);
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: .4; }

/* KW Hero */
.kw-hero {
  padding: 52px 0 40px;
  position: relative;
}
.kw-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40px;
  right: -40px;
  height: 240px;
  background: radial-gradient(ellipse 700px 220px at 50% 0%, var(--accent-bg) 0%, transparent 70%);
  pointer-events: none;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  position: relative;
}
.cat-pill.checklist { background: var(--c-checklist-bg); color: var(--c-checklist); }
.cat-pill.planner   { background: var(--c-planner-bg);   color: var(--c-planner); }
.cat-pill.budget    { background: var(--c-budget-bg);     color: var(--c-budget); }
.cat-pill.schema    { background: var(--c-schema-bg);     color: var(--c-schema); }

.kw-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
  position: relative;
}
.kw-desc { font-size: var(--text-lg); color: var(--text-sec); max-width: 56ch; margin-bottom: 22px; position: relative; }

.file-badges { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; position: relative; }
.fbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
}
.fbadge-pdf   { background: #fff1eb; color: var(--orange-600); border: 1px solid #fdd9c4; }
.fbadge-excel { background: var(--mint-50); color: var(--mint-600); border: 1px solid var(--mint-100); }
.fbadge-free  { background: var(--surface2); color: var(--text-sec); border: 1px solid var(--border); }

/* Download buttons */
.dl-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 32px;
  position: relative;
}
.dl-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.dl-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: -2px;
}
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: var(--r-md);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--trans-base), box-shadow var(--trans-base);
  box-shadow: var(--shadow-sm);
}
.btn-dl:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-pdf  { background: linear-gradient(135deg, var(--orange-500), var(--orange-600)); color: #fff; }
.btn-pdf2 { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.btn-xls  { background: linear-gradient(135deg, var(--mint-500), var(--mint-600)); color: #fff; }


/* ─────────────────────────────────────────────────────────────
   CONTENT CARDS (KW page sections)
   ───────────────────────────────────────────────────────────── */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.content-card-title {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.content-card-title span {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Content preview grid (template rows) */
.content-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.content-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: var(--text-xs);
  color: var(--text-sec);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
  transition: border-color var(--trans-fast);
}
.content-item:hover { border-color: var(--accent); }
.content-item::before {
  content: '↗';
  color: var(--accent);
  font-size: 0.65rem;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────
   TEMPLATE BUILDER (Live Preview Card)
   ───────────────────────────────────────────────────────────── */
.builder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-xl);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.builder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 780px) {
  .builder-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Form side */
.builder-form {}
.builder-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-sec);
  margin-bottom: 7px;
}
.builder-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
}
.builder-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.builder-input::placeholder { color: var(--text-muted); }
.builder-hint { font-size: var(--text-xs); color: var(--text-muted); margin-top: 5px; }

/* Rows list */
.builder-list-wrap {
  margin-top: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  min-height: 120px;
  overflow: hidden;
  position: relative;
}
.builder-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.builder-list-wrap.has-rows .builder-empty { display: none; }
.builder-list { list-style: none; max-height: 220px; overflow-y: auto; }
.builder-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.4;
}
.builder-list li:last-child { border-bottom: none; }
.row-num {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--accent);
  min-width: 1.5rem;
  flex-shrink: 0;
}
.row-text { flex: 1; min-width: 0; word-break: break-word; }
.btn-remove {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--trans-fast), background var(--trans-fast);
}
.btn-remove:hover { color: #ef4444; background: #fef2f2; }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.row-enter { animation: rowIn .32s cubic-bezier(.22,1,.36,1) forwards; }

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.btn-builder-sec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-sec);
  font-family: 'Sora', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-base);
}
.btn-builder-sec:hover:not(:disabled) {
  border-color: var(--text-sec);
  color: var(--text);
  background: var(--surface2);
}
.btn-builder-sec:disabled { opacity: .35; pointer-events: none; }
.btn-builder-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: none;
  background: var(--text);
  color: var(--surface);
  font-family: 'Sora', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-base);
  box-shadow: var(--shadow-sm);
}
.btn-builder-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-builder-primary:disabled { background: var(--surface2); color: var(--text-muted); box-shadow: none; pointer-events: none; }

/* Preview side */
.preview-col {}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--accent);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.preview-frame {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface2);
  overflow: hidden;
  min-height: 380px;
}
.preview-frame iframe { width: 100%; height: 380px; border: 0; display: block; }


/* ─────────────────────────────────────────────────────────────
   AFFILIATE BLOCK
   ───────────────────────────────────────────────────────────── */
.affiliate-block {
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.aff-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  margin-bottom: 6px;
}
.aff-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.affiliate-block p { font-size: var(--text-sm); color: var(--text-sec); margin-bottom: 13px; }
.btn-affiliate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  background: var(--text);
  color: var(--surface);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
  box-shadow: var(--shadow-sm);
}
.btn-affiliate:hover { opacity: .88; transform: translateY(-1px); }


/* ─────────────────────────────────────────────────────────────
   RELATED GRID
   ───────────────────────────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 11px;
}
.related-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all var(--trans-base);
}
.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.rel-cat { font-size: var(--text-xs); color: var(--accent); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; margin-bottom: 5px; }
.rel-title { font-family: 'Sora', sans-serif; font-size: var(--text-sm); font-weight: 700; line-height: 1.3; margin-bottom: 5px; }
.rel-desc { font-size: var(--text-xs); color: var(--text-sec); line-height: 1.4; }


/* ─────────────────────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 9px; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  transition: border-color var(--trans-fast);
}
details.faq-item:hover { border-color: var(--border2); }
details.faq-item summary {
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--trans-base);
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item[open] { border-color: var(--accent); }
details.faq-item[open] summary { margin-bottom: 10px; color: var(--accent); }
.faq-a { font-size: var(--text-sm); color: var(--text-sec); line-height: 1.6; }


/* ─────────────────────────────────────────────────────────────
   SIDEBAR WIDGETS
   ───────────────────────────────────────────────────────────── */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.widget-title {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.widget-link-list { display: flex; flex-direction: column; gap: 8px; }
.widget-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: var(--text-sm);
  color: var(--text-sec);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--trans-fast);
}
.widget-link:hover { border-color: var(--accent); color: var(--text); background: var(--accent-bg); }
.widget-link .arrow { font-size: 0.8rem; color: var(--text-muted); }


/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: var(--slate-300);
  padding: 60px clamp(16px, 4vw, 40px) 32px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand-col {}
.footer-brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-brand-name .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.footer-brand-sub { font-size: var(--text-sm); color: var(--slate-400); line-height: 1.6; max-width: 280px; }
.footer-col-title {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--slate-400);
  margin-bottom: 12px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: var(--text-sm);
  color: var(--slate-300);
  text-decoration: none;
  transition: color var(--trans-fast);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--text-xs);
  color: var(--slate-500);
}


/* ─────────────────────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.hidden { display: none !important; }

/* Page transitions */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp .4s cubic-bezier(.22,1,.36,1) forwards; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE TWEAKS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .dl-section { flex-direction: column; align-items: stretch; }
  .btn-dl, .btn-builder-primary, .btn-builder-sec { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; }
  .ad-slot.leaderboard { max-height: none; min-height: 60px; }
}
