

/* ── Nav (shared with homepage) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(21,50,74,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212,150,42,0.2);
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--title);
  font-size: 0.7rem; font-weight: 300;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,240,230,0.6);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-bright); }

/* ── Nav dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; display: inline-flex; align-items: baseline; gap: 4px; line-height: inherit; }
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid rgba(246,241,232,0.4);
  transition: transform 0.2s;
  vertical-align: middle;
  margin-top: 1px;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: rgba(21,50,74,0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212,150,42,0.2);
  border-radius: 2px;
  padding: 0.5rem 0;
  z-index: 300;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0; right: 0;
  height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  color: rgba(246,241,232,0.55) !important;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 2px solid transparent;
}
.nav-dropdown-menu a:hover {
  background: rgba(212,150,42,0.08);
  color: var(--gold-bright) !important;
  border-left-color: var(--gold);
}
.nav-dropdown-menu .dd-category {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(212,150,42,0.4);
  padding: 0.75rem 1.25rem 0.25rem;
  pointer-events: none;
}
.nav-dropdown-menu .dd-divider {
  height: 1px;
  background: rgba(212,150,42,0.1);
  margin: 0.4rem 0;
}


/* Active nav item */
.nav-links a.nav-active,
.nav-dropdown.nav-active > a {
  color: var(--gold-bright) !important;
}
.nav-dropdown.nav-active > a::after {
  border-top-color: var(--gold-bright);
}



  :root {
    /* Exact logo colours */
    --navy:        #1c3f5e;
    --navy-deep:   #15324a;
    --navy-mid:    #254e72;
    --navy-light:  #3a6a8a;
    --gold:        #d4962a;
    --gold-bright: #e8a835;
    --gold-dark:   #b87820;
    --gold-pale:   #f2d898;
    --gold-wash:   rgba(212,150,42,0.08);
    /* Beige palette */
    --beige:       #f5f0e6;
    --beige-mid:   #ece5d4;
    --beige-dark:  #ddd4bc;
    --beige-deep:  #cec3a8;
    /* Text */
    --ink:         #1e2130;
    --ink-mid:     #3d3d30;
    --ink-light:   #7a7a68;
    /* Fonts */
    --serif:  'Cormorant Garamond', Georgia, serif;
    --title:  'Josefin Sans', 'Futura', sans-serif;
    --body:   'DM Sans', system-ui, sans-serif;
    /* Risk colours */
    --risk-low: #4a7c3f;
    --risk-low-bg: #e8f2e6;
    --risk-medium: #a06020;
    --risk-medium-bg: #f5ead8;
    --risk-high: #8b2020;
    --risk-high-bg: #f5e0e0;
    --risk-none: #6b6560;
    --risk-none-bg: #ede8e0;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: var(--body);
    background: var(--beige);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      repeating-linear-gradient(90deg, rgba(255,255,255,0.013) 0px, rgba(255,255,255,0.013) 1px, transparent 1px, transparent 60px),
      repeating-linear-gradient(0deg,  rgba(255,255,255,0.013) 0px, rgba(255,255,255,0.013) 1px, transparent 1px, transparent 60px);
    pointer-events: none;
    z-index: 0;
  }

  /* ── NAV ── */
  
  .p28-logo { display: flex; align-items: center; gap: 0; text-decoration: none; }
  .p28-logo svg { display: block; }
  
  
  
  
  

  /* ── FOOTER ── */
  
  
  

  main {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 40px 80px;
  }

  .page-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .page-eyebrow {
    display: inline-block;
    font-family: var(--title);
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212,150,42,0.4);
    padding: 5px 16px;
    border-radius: 2px;
    margin-bottom: 16px;
  }

  .page-title {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .page-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--navy-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
  }

  /* Decorative rule */
  .ornamental-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 20px 0 32px;
  }
  .ornamental-rule::before,
  .ornamental-rule::after {
    content: '';
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--gold));
  }
  .ornamental-rule::after {
    background: linear-gradient(90deg, var(--gold), transparent);
  }
  .ornamental-rule-diamond {
    width: 6px; height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
  }

  .tool-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
  }

  @media (max-width: 900px) {
    .tool-layout { grid-template-columns: 1fr; }
    
    
    main { padding: 90px 20px 60px; }
  }

  /* Map panel */
  .map-panel {
    background: rgba(245,240,230,0.8);
    border: 1px solid rgba(28,63,94,0.18);
    border-radius: 4px;
    padding: 20px;
    position: relative;
  }

  .map-panel-title {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .map-panel-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(28,63,94,0.15);
  }

/* ── Tool-specific styles (from v3) ── */

  :root {
    /* Exact logo colours */
    --navy:        #1c3f5e;
    --navy-deep:   #15324a;
    --navy-mid:    #254e72;
    --navy-light:  #3a6a8a;
    --gold:        #d4962a;
    --gold-bright: #e8a835;
    --gold-dark:   #b87820;
    --gold-pale:   #f2d898;
    --gold-wash:   rgba(212,150,42,0.08);
    /* Beige palette */
    --beige:       #f5f0e6;
    --beige-mid:   #ece5d4;
    --beige-dark:  #ddd4bc;
    --beige-deep:  #cec3a8;
    /* Text */
    --ink:         #1e2130;
    --ink-mid:     #3d3d30;
    --ink-light:   #7a7a68;
    /* Fonts */
    --serif:  'Cormorant Garamond', Georgia, serif;
    --title:  'Josefin Sans', 'Futura', sans-serif;
    --body:   'DM Sans', system-ui, sans-serif;
    /* Risk colours */
    --risk-low: #4a7c3f;
    --risk-low-bg: #e8f2e6;
    --risk-medium: #a06020;
    --risk-medium-bg: #f5ead8;
    --risk-high: #8b2020;
    --risk-high-bg: #f5e0e0;
    --risk-none: #6b6560;
    --risk-none-bg: #ede8e0;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: var(--body);
    background: var(--beige);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      repeating-linear-gradient(90deg, rgba(255,255,255,0.013) 0px, rgba(255,255,255,0.013) 1px, transparent 1px, transparent 60px),
      repeating-linear-gradient(0deg,  rgba(255,255,255,0.013) 0px, rgba(255,255,255,0.013) 1px, transparent 1px, transparent 60px);
    pointer-events: none;
    z-index: 0;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 2.5rem;
    background: rgba(21,50,74,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212,150,42,0.2);
  }
  .p28-logo { display: flex; align-items: center; gap: 0; text-decoration: none; }
  .p28-logo svg { display: block; }
  .nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
  .nav-links a {
    font-family: var(--title);
    font-size: 0.7rem; font-weight: 300;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(245,240,230,0.6);
    text-decoration: none; transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--gold-bright); }
  .nav-cta {
    background: var(--gold) !important;
    color: var(--navy-deep) !important;
    padding: 0.45rem 1.2rem !important;
    border-radius: 1px;
    font-weight: 400 !important;
    transition: background 0.2s !important;
  }
  .nav-cta:hover { background: var(--gold-bright) !important; color: var(--navy-deep) !important; }

  /* ── FOOTER ── */
  footer {
    background: #15324a;
    border-top: 1px solid rgba(212,150,42,0.2);
    padding: 1.75rem 2.5rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  }
  .footer-tagline { font-family: var(--serif); font-style: italic; font-size: 0.82rem; color: rgba(212,150,42,0.75); }
  .footer-copy    { font-family: var(--title); font-size: 0.6rem; font-weight: 200; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); }

  main {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 40px 80px;
  }

  .page-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .page-eyebrow {
    display: inline-block;
    font-family: var(--title);
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212,150,42,0.4);
    padding: 5px 16px;
    border-radius: 2px;
    margin-bottom: 16px;
  }

  .page-title {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .page-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--navy-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
  }

  /* Decorative rule */
  .ornamental-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 20px 0 32px;
  }
  .ornamental-rule::before,
  .ornamental-rule::after {
    content: '';
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--gold));
  }
  .ornamental-rule::after {
    background: linear-gradient(90deg, var(--gold), transparent);
  }
  .ornamental-rule-diamond {
    width: 6px; height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
  }

  .tool-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
  }

  @media (max-width: 900px) {
    .tool-layout { grid-template-columns: 1fr; }
    nav { padding: 0.7rem 1.2rem; }
    .nav-links { gap: 1rem; }
    main { padding: 90px 20px 60px; }
  }

  /* Map panel */
  .map-panel {
    background: rgba(245,240,230,0.8);
    border: 1px solid rgba(28,63,94,0.18);
    border-radius: 4px;
    padding: 20px;
    position: relative;
  }

  .map-panel-title {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .map-panel-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(28,63,94,0.15);
  }

  #map-container {
    position: relative;
    width: 100%;
  }

  #map-container svg path {
    cursor: pointer;
    transition: opacity 0.15s;
  }

  #map-container svg path:hover {
    opacity: 0.75;
  }

  #map-container svg path.selected {
    stroke: var(--gold) !important;
    stroke-width: 1.5px !important;
  }

  .map-tooltip {
    position: absolute;
    background: var(--navy);
    color: var(--beige);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 2px;
    pointer-events: none;
    display: none;
    z-index: 20;
    white-space: nowrap;
    font-family: var(--body);
  }

  /* Legend */
  .map-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(28,63,94,0.12);
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink);
    opacity: 0.7;
  }

  .legend-swatch {
    width: 12px; height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
  }

  /* Side panel */
  .side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .info-card {
    background: rgba(245,240,230,0.9);
    border: 1px solid rgba(28,63,94,0.18);
    border-radius: 4px;
    padding: 22px;
    transition: all 0.3s ease;
  }

  .info-card-empty {
    text-align: center;
    padding: 32px 22px;
  }

  .empty-icon {
    width: 48px; height: 48px;
    margin: 0 auto 14px;
    opacity: 0.25;
  }

  .empty-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: var(--navy);
    line-height: 1.6;
  }

  .country-name {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
  }

  .risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 16px;
  }

  .risk-badge.laag    { background: var(--risk-low-bg);    color: var(--risk-low); }
  .risk-badge.middel  { background: var(--risk-medium-bg); color: var(--risk-medium); }
  .risk-badge.hoog    { background: var(--risk-high-bg);   color: var(--risk-high); }

  .risk-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
  }

  .risk-explanation {
    font-size: 13px;
    line-height: 1.65;
    color: #3a3530;
    margin-bottom: 16px;
    border-left: 2px solid var(--gold-light);
    padding-left: 12px;
  }

  .obligation-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
  }

  .obligation-list li {
    font-size: 12px;
    color: #4a4540;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
  }

  .obligation-list li::before {
    content: '—';
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 1px;
  }

  .divider {
    height: 1px;
    background: rgba(28,63,94,0.12);
    margin: 16px 0;
  }

  /* Lead capture form */
  .lead-form-title {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 6px;
  }

  .lead-form-subtitle {
    font-size: 12px;
    color: var(--navy-light);
    margin-bottom: 14px;
    line-height: 1.5;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(28,63,94,0.25);
    border-radius: 3px;
    font-size: 13px;
    font-family: var(--body);
    background: rgba(245,240,230,0.95);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
  }

  .form-input:focus {
    border-color: var(--navy-light);
  }

  .form-input::placeholder {
    color: rgba(28,63,94,0.35);
  }

  .submit-btn {
    width: 100%;
    padding: 11px 16px;
    background: var(--navy);
    color: var(--beige);
    border: none;
    border-radius: 2px;
    font-size: 13px;
    font-family: var(--body);
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .submit-btn:hover { background: var(--navy-light); }
  .submit-btn:active { transform: scale(0.98); }

  .submit-btn svg { width: 14px; height: 14px; }

  .form-note {
    font-size: 11px;
    color: rgba(28,63,94,0.45);
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
  }

  .success-message {
    display: none;
    text-align: center;
    padding: 16px;
    background: var(--risk-low-bg);
    border: 1px solid rgba(74,124,63,0.2);
    border-radius: 3px;
  }

  .success-message p {
    font-size: 13px;
    color: var(--risk-low);
    line-height: 1.6;
  }

  /* Instruction card */
  .instruction-card {
    background: rgba(28,63,94,0.06);
    border: 1px solid rgba(28,63,94,0.12);
    border-radius: 4px;
    padding: 16px 18px;
    font-size: 12px;
    color: var(--navy);
    line-height: 1.6;
    text-align: center;
  }

  .instruction-card strong {
    display: block;
    font-family: var(--serif);
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
  }

  /* Footer */
  footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 28px 40px;
    border-top: 1px solid rgba(28,63,94,0.12);
    font-size: 12px;
    color: rgba(28,63,94,0.45);
  }

  footer a {
    color: var(--navy-light);
    text-decoration: none;
  }

  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .animate-in {
    animation: fadeIn 0.3s ease forwards;
  }


/* ── Disclaimer banner ── */
.tool-disclaimer-banner {
  background: #fef8ec;
  border-bottom: 1px solid rgba(212,150,42,0.25);
  padding: 10px 2rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #5c4a1d;
  text-align: center;
}
.tool-disclaimer-banner strong { color: #3d3215; }
.tool-disclaimer-banner a {
  color: #8a6720;
  text-decoration: underline;
  font-weight: 500;
}
.tool-disclaimer-banner a:hover { color: #5c4a1d; }
@media(max-width:600px){ .tool-disclaimer-banner { padding: 8px 1rem; font-size: 0.72rem; text-align: left; } }



/* ── Premium gating ── */
.premium-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin: 1.5rem 0;
}
.premium-content {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}
.premium-wrap.unlocked .premium-content {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}
.premium-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,63,94,0.1) 0%, rgba(28,63,94,0.6) 70%, rgba(21,50,74,0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.premium-wrap.unlocked .premium-overlay {
  display: none;
}
.premium-cta-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(212,150,42,0.3);
  border-radius: 3px;
  padding: 1.75rem 2rem;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.premium-cta-badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold, #d4962a);
  color: white;
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.premium-cta-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy, #1c3f5e);
  margin-bottom: 0.5rem;
}
.premium-cta-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-mid, #3d3d30);
  margin-bottom: 1.25rem;
}
.premium-cta-btns {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.premium-cta-btn {
  padding: 9px 1.4rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.premium-cta-btn-primary {
  background: var(--navy, #1c3f5e);
  color: white;
  border: 1px solid var(--navy, #1c3f5e);
}
.premium-cta-btn-primary:hover {
  background: var(--navy-mid, #254e72);
}
.premium-cta-btn-secondary {
  background: transparent;
  color: var(--navy, #1c3f5e);
  border: 1px solid rgba(28,63,94,0.3);
}
.premium-cta-btn-secondary:hover {
  background: rgba(28,63,94,0.06);
}


