  /* ============================================================
     DESIGN TOKENS
     ============================================================ */
  :root {
    --navy: #2d3a7d;
    --navy-dark: #232e66;
    --navy-deeper: #1a2452;
    --navy-50: #eef0f8;
    --pink: #e91e85;
    --pink-soft: #ffb3d9;
    --pink-50: #fdeaf3;
    --orange: #f58024;
    --orange-soft: #fcb549;
    --orange-50: #fff2e6;
    --red: #e64644;
    --magenta: #d823cd;

    --grad: linear-gradient(90deg, #fcb549 0%, #e64644 50%, #d823cd 100%);
    --grad-tilt: linear-gradient(135deg, #fcb549 0%, #e64644 50%, #d823cd 100%);
    --grad-soft: linear-gradient(135deg, #fff2e6 0%, #fdeaf3 100%);

    --bg: #ffffff;
    --surface: #f8f9fb;
    --border: #e8eaf2;
    --text: #111827;
    --text-muted: #6b7280;
    --text-subtle: #9ca3af;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-card: 0 2px 16px -4px rgba(45, 58, 125, 0.10);
    --shadow-hover: 0 8px 32px -8px rgba(45, 58, 125, 0.18);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { text-decoration: none; color: inherit; }
  img { display: block; max-width: 100%; }
  ul { list-style: none; }

  /* ============================================================
     LAYOUT
     ============================================================ */
  .container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ============================================================
     HERO
     ============================================================ */
  .sitemap-hero {
    padding: 180px 0 80px;
    background: linear-gradient(160deg, var(--navy-50) 0%, #fff 60%);
    border-bottom: 1px solid var(--border);
    text-align: center;
  }
  .sitemap-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
  }
  .sitemap-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--grad-tilt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .sitemap-hero-icon svg { color: #fff; }
  .sitemap-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--navy-dark);
    line-height: 1.1;
  }
  .sitemap-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
  }
  .sitemap-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    box-shadow: var(--shadow-card);
  }
  .sitemap-count strong { color: var(--navy); }

  /* ============================================================
     KIPINÄ ASK WIDGET
     ============================================================ */
  .sitemap-ask-wrap {
    margin-top: 32px;
    display: flex;
    justify-content: center;
  }
  .sitemap-ask {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 480px;
    height: 54px;
    padding: 0 8px 0 20px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 4px 20px -6px rgba(45,58,125,0.14);
    transition: border-color 0.25s, box-shadow 0.25s;
    cursor: text;
  }
  .sitemap-ask:hover,
  .sitemap-ask:focus-within {
    border-color: var(--pink);
    box-shadow: 0 6px 28px -8px rgba(233,30,133,0.24);
  }
  .sitemap-ask-spark {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    animation: siteSpark 3.6s ease-in-out 1.8s infinite;
    display: inline-block;
    transform-origin: center;
  }
  @keyframes siteSpark {
    0%,80%,100% { transform: scale(1) rotate(0deg); }
    85% { transform: scale(1.25) rotate(-12deg); }
    90% { transform: scale(1.1) rotate(10deg); }
    95% { transform: scale(1.2) rotate(-6deg); }
  }
  .sitemap-ask-input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    min-width: 0;
  }
  .sitemap-ask-input::placeholder { color: var(--text-subtle); }
  .sitemap-ask-send {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px -4px rgba(230,70,68,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .sitemap-ask-send svg { width: 15px; height: 15px; }
  .sitemap-ask-send:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px -4px rgba(230,70,68,0.7);
  }
  @media (max-width: 560px) {
    .sitemap-ask { max-width: 100%; }
  }

  /* ============================================================
     SITEMAP GRID
     ============================================================ */
  .sitemap-body {
    padding: 64px 0 80px;
  }
  .sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  @media (max-width: 960px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 580px)  { .sitemap-grid { grid-template-columns: 1fr; } }

  /* ============================================================
     CATEGORY CARD
     ============================================================ */
  .sitemap-cat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: box-shadow 0.22s, border-color 0.22s;
  }
  .sitemap-cat:hover {
    box-shadow: var(--shadow-hover);
    border-color: #d0d4ec;
  }
  .sitemap-cat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .sitemap-cat-ico {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .ico--orange { background: var(--orange-50); color: var(--orange); }
  .ico--pink   { background: var(--pink-50);   color: var(--pink); }
  .ico--navy   { background: var(--navy-50);   color: var(--navy); }
  .ico--grad   { background: var(--grad-tilt); color: #fff; }
  .ico--teal   { background: #e0f7fa;          color: #0891b2; }
  .ico--green  { background: #e8f5e9;          color: #2e7d32; }
  .ico--purple { background: #f3e8fd;          color: #7c3aed; }
  .ico--gray   { background: #f3f4f6;          color: #4b5563; }

  .sitemap-cat-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: -0.01em;
  }
  .sitemap-cat-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-subtle);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 9px;
  }

  /* ============================================================
     LINK LIST
     ============================================================ */
  .sitemap-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .sitemap-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: background 0.16s, color 0.16s, transform 0.16s;
  }
  .sitemap-link:hover {
    background: #fff;
    color: var(--navy);
    transform: translateX(3px);
  }
  .sitemap-link svg {
    width: 14px;
    height: 14px;
    color: var(--text-subtle);
    flex-shrink: 0;
    transition: color 0.16s;
  }
  .sitemap-link:hover svg { color: var(--pink); }
  .sitemap-link-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--pink);
    background: var(--pink-50);
    border-radius: 4px;
    padding: 2px 6px;
  }

  /* ============================================================
     FULL-WIDTH CATEGORY (spans all columns)
     ============================================================ */
  .sitemap-cat--wide {
    grid-column: 1 / -1;
  }
  .sitemap-cat--wide .sitemap-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 32px;
  }
  @media (max-width: 960px) {
    .sitemap-cat--wide .sitemap-links { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 580px) {
    .sitemap-cat--wide .sitemap-links { grid-template-columns: 1fr; }
  }

  /* ============================================================
     SECTION DIVIDER (Tekoäly-osio)
     ============================================================ */
  .sitemap-section-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0 -4px;
  }
  .sitemap-section-divider-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    padding: 8px 16px;
    background: var(--grad-tilt);
    border-radius: 999px;
    box-shadow: 0 4px 14px -4px rgba(216,35,205,0.35);
  }
  .sitemap-section-divider-label svg {
    width: 14px;
    height: 14px;
    color: #fff;
  }
  .sitemap-section-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(35,46,102,0.18), transparent);
  }
  .sitemap-section-divider-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-subtle);
  }

  /* ============================================================
     STATUS / TARKISTUSTILA
     ============================================================ */
  .sitemap-status {
    padding: 28px 0 0;
  }
  .status-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
  }
  .status-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  }
  .status-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: #ecfdf5;
    color: #16a34a;
    display: grid;
    place-items: center;
    margin-left: 6px;
  }
  .status-body { flex: 1; min-width: 0; }
  .status-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
  }
  .status-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .status-desc strong {
    color: #16a34a;
    font-weight: 700;
  }
  .status-progress {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .status-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
  }
  .status-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 999px;
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .status-count {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .status-count strong {
    color: #16a34a;
    font-weight: 800;
    font-size: 13.5px;
  }
  @media (max-width: 580px) {
    .status-card { flex-direction: column; gap: 14px; padding: 20px; }
    .status-icon { margin-left: 0; }
    .status-progress { flex-wrap: wrap; }
  }

  /* ============================================================
     CHECKED LINK STATE
     ============================================================ */
  .sitemap-link.is-checked {
    background: #f0fdf4;
    color: #14532d;
  }
  .sitemap-link.is-checked svg {
    color: #16a34a;
  }
  .sitemap-link.is-checked:hover {
    background: #dcfce7;
    color: #14532d;
  }
  .sitemap-link.is-checked:hover svg {
    color: #15803d;
  }

  /* Needs-review: 1. kierros ok, viimeistely puuttuu */
  .sitemap-link.needs-review {
    background: #eff6ff;
    color: #1e3a8a;
  }
  .sitemap-link.needs-review svg {
    color: #3b82f6;
  }
  .sitemap-link.needs-review:hover {
    background: #dbeafe;
    color: #1e3a8a;
  }
  .sitemap-link.needs-review:hover svg {
    color: #2563eb;
  }

  /* ============================================================
     REVEAL ANIMATION
     ============================================================ */
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.52s ease, transform 0.52s ease;
  }
  [data-reveal].visible {
    opacity: 1;
    transform: none;
  }
  [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.46s ease, transform 0.46s ease;
  }
  [data-reveal-stagger].visible > *:nth-child(1)  { opacity:1; transform:none; transition-delay:0.04s; }
  [data-reveal-stagger].visible > *:nth-child(2)  { opacity:1; transform:none; transition-delay:0.10s; }
  [data-reveal-stagger].visible > *:nth-child(3)  { opacity:1; transform:none; transition-delay:0.16s; }
  [data-reveal-stagger].visible > *:nth-child(4)  { opacity:1; transform:none; transition-delay:0.22s; }
  [data-reveal-stagger].visible > *:nth-child(5)  { opacity:1; transform:none; transition-delay:0.28s; }
  [data-reveal-stagger].visible > *:nth-child(6)  { opacity:1; transform:none; transition-delay:0.34s; }
  [data-reveal-stagger].visible > *:nth-child(7)  { opacity:1; transform:none; transition-delay:0.40s; }
  [data-reveal-stagger].visible > *:nth-child(8)  { opacity:1; transform:none; transition-delay:0.46s; }
