/* ============================================================
   SEO- ja GEO-opas (/seo-opas/ ja /seo-opas/<hakusana>/)
   Sama ilme kuin palvelusivuilla (hero-page, block, section-head,
   cta-band). Mustan hatun laatikot ovat ainoa tumma sisältöelementti.
   Pohja: partials/seo-opas/page.php
   ============================================================ */
.so-page { --so-read: 700px; }
.so-page .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Jaetut palvelusivujen osat ---------- */
.so-page .gr {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.so-page .kicker {
  display: inline-block; margin-bottom: 16px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.so-page .kicker.orange { color: var(--orange); }
.so-page .kicker.pink { color: var(--pink); }
.block { padding: 100px 0; }
.block.alt { background: var(--surface); }
.section-head { margin-bottom: 48px; max-width: 880px; }
.section-title {
  font-size: clamp(28px, 3.5vw, 52px); font-weight: 900; line-height: 1.15;
  letter-spacing: -0.015em; margin-bottom: 20px; color: var(--text);
}
.section-lead { font-size: 18px; line-height: 1.7; color: var(--text-muted); max-width: 720px; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(230, 70, 68, 0.55); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(230, 70, 68, 0.7); }

/* Kipinä-widget (sama kuin palvelusivuilla) */
.ai-hi {
  display: inline-flex; align-items: center; padding: 16px 28px;
  background: #fff; color: var(--navy-dark); border: 1px solid var(--border);
  font: 800 15px var(--font); border-radius: 999px; transition: all 0.2s;
}
.ai-hi:hover, .ai-hi:focus-within { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.ai-hi-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800;
  white-space: nowrap; user-select: none; cursor: default;
}
.ai-hi-wave {
  display: inline-block; font-size: 16px; line-height: 1; transform-origin: 70% 70%;
  animation: so-wave 3.4s ease-in-out 2s infinite;
}
@keyframes so-wave {
  0%, 78%, 100% { transform: rotate(0deg); }
  82% { transform: rotate(14deg); }
  86% { transform: rotate(-8deg); }
  90% { transform: rotate(14deg); }
  94% { transform: rotate(-4deg); }
  98% { transform: rotate(10deg); }
}
.ai-hi-input {
  width: 0; min-width: 0; padding: 0; margin: 0; background: transparent; border: 0; outline: 0;
  color: inherit; font: 500 14px/1 var(--font); opacity: 0;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease 0.05s, padding 0.3s ease, margin 0.3s ease;
}
.ai-hi-input::placeholder { color: var(--text-muted); font-weight: 400; }
.ai-hi:hover .ai-hi-input, .ai-hi:focus-within .ai-hi-input {
  width: 200px; opacity: 1; padding: 0 12px; margin-left: 10px; border-left: 1px solid var(--border);
}
.ai-hi-send {
  width: 0; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 999px;
  color: inherit; opacity: 0; transform: scale(0.65);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease 0.1s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.ai-hi-send svg { width: 14px; height: 14px; }
.ai-hi:hover .ai-hi-send, .ai-hi:focus-within .ai-hi-send { width: 32px; opacity: 1; transform: scale(1); }
.ai-hi-send:hover, .ai-hi-send:focus-visible { color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .ai-hi-wave { animation: none; } }

/* ---------- Hero ---------- */
.so-hero {
  position: relative; overflow: hidden; padding: 160px 0 88px;
  background: linear-gradient(180deg, #fef9f0 0%, var(--bg) 100%);
}
.so-hero::before, .so-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.so-hero::before { top: -200px; right: -100px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(245, 128, 36, 0.10) 0%, transparent 70%); }
.so-hero::after { bottom: -120px; left: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(232, 30, 133, 0.07) 0%, transparent 70%); }
.so-hero .container { position: relative; z-index: 1; }
.so-hero .kicker { color: var(--orange); margin-bottom: 20px; }
.so-hero h1 {
  font-size: clamp(36px, 5.5vw, 68px); font-weight: 900; line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 26px; color: var(--text);
}
.so-hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start;
}
.so-hero-inner { max-width: 640px; }
.so-hero-lede { font-size: 20px; line-height: 1.6; color: var(--text-muted); max-width: 580px; }

/* Haku ja pikatulokset */
.so-search { position: relative; max-width: 560px; margin-top: 34px; }
.so-search > svg {
  position: absolute; left: 22px; top: 29px; width: 20px; height: 20px; translate: 0 -50%;
  fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; pointer-events: none;
}
.so-search input {
  width: 100%; height: 58px; padding: 0 22px 0 56px;
  font: 600 16px var(--font); color: var(--navy-dark);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--sh-md);
  transition: border-color .2s, box-shadow .2s;
}
.so-search input::placeholder { color: var(--text-muted); font-weight: 500; }
.so-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(45, 58, 125, 0.12), var(--sh-md); }
.so-suggest {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 8px);
  list-style: none; margin: 0; padding: 8px; background: #fff;
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--sh-lg);
}
.so-suggest a {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 11px 14px; border-radius: 12px; font-weight: 700; color: var(--navy-dark);
}
.so-suggest a span { font-size: 12.5px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.so-suggest a:hover, .so-suggest a:focus-visible, .so-suggest li:first-child a { background: var(--navy-50); outline: none; }
.so-suggest-none { padding: 11px 14px; font-size: 14.5px; color: var(--text-muted); }
.so-hero-stats {
  display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 22px 0 0 8px; padding: 0;
  font-size: 14.5px; color: var(--text-muted);
}
.so-hero-stats strong { color: var(--navy-dark); font-weight: 800; }

/* Heron widget-kortit */
.so-hero-visual { position: relative; width: 100%; max-width: 480px; height: 560px; justify-self: center; }
.so-vcard {
  position: absolute; width: 300px; padding: 20px 22px; border-radius: 22px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-lg); font-size: 14px;
}
.so-vcard--white { top: 0; left: 0; rotate: -3deg; animation: so-float 7s ease-in-out infinite; }
.so-vcard--black {
  top: 250px; right: 0; rotate: 2.5deg; color: #fff; border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, var(--navy-deeper) 0%, #0f1535 100%);
  box-shadow: 0 30px 60px -20px rgba(26, 36, 82, 0.55);
  animation: so-float 8s ease-in-out -3s infinite;
}
.so-vcard--mini {
  width: auto; bottom: 0; left: 12px; padding: 12px 16px; border-radius: 999px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--navy-dark);
  animation: so-float 6s ease-in-out -1.5s infinite;
}
@keyframes so-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .so-vcard { animation: none; } }
.so-vcard-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.so-vcard-head em {
  margin-left: auto; font-style: normal; letter-spacing: 0.04em; text-transform: none;
  font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
}
.so-vcard--white .so-vcard-head { color: var(--navy-dark); }
.so-vcard--white .so-vcard-head em { background: #e7f7ee; color: #1b8a4b; }
.so-vcard--black .so-vcard-head em { background: rgba(230, 70, 68, 0.18); color: #ff9a98; }
.so-vhat { width: 38px; height: auto; flex: none; }
.so-vhat .hat-brim, .so-vhat .hat-crown { stroke-width: 1.4; }
.so-vhat--white .hat-brim, .so-vhat--white .hat-crown { fill: #fff; stroke: var(--navy-100); }
.so-vhat--white .hat-band { fill: var(--orange-soft); }
.so-vhat--white .hat-dent { fill: none; stroke: var(--navy-100); }
.so-vhat--black .hat-brim, .so-vhat--black .hat-crown { fill: #05081c; stroke: rgba(255, 255, 255, 0.35); }
.so-vhat--black .hat-band { fill: var(--red); }
.so-vhat--black .hat-dent { fill: none; stroke: rgba(255, 255, 255, 0.2); }
.so-vcard-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-weight: 600; }
.so-vcard-row + .so-vcard-row { border-top: 1px solid var(--border); }
.so-vcard--black .so-vcard-row { color: rgba(255, 255, 255, 0.85); }
.so-vcard--black .so-vcard-row + .so-vcard-row { border-color: rgba(255, 255, 255, 0.1); }
.so-vcard--black .so-vcard-row span { text-decoration: line-through; text-decoration-color: rgba(230, 70, 68, 0.7); }
.so-ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e7f7ee; flex: none; }
.so-ok svg { width: 14px; height: 14px; fill: none; stroke: #1b8a4b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.so-ban { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(230, 70, 68, 0.18); color: #ff9a98; white-space: nowrap; }
.so-vcard-foot {
  display: flex; justify-content: space-between; margin-top: 8px; padding-top: 12px;
  border-top: 1px dashed var(--border); font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.so-vcard--black .so-vcard-foot { border-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.6); }
.so-vcard-foot strong { font-weight: 900; }
.so-vcard-foot .up { color: #1b8a4b; }
.so-vcard-foot .down { color: #ff8a88; }
.so-dot { width: 9px; height: 9px; border-radius: 50%; background: #2bb36b; box-shadow: 0 0 0 4px rgba(43, 179, 107, 0.16); flex: none; }

/* Hakusanan hero */
.so-hero--entry { padding-bottom: 64px; }
.so-hero--entry .so-hero-inner { max-width: 860px; }
.so-hero--entry h1 { font-size: clamp(34px, 4.8vw, 60px); margin-bottom: 24px; }
.so-lede {
  position: relative; padding: 22px 26px 22px 30px; max-width: 780px;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--sh-md);
}
.so-lede::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--grad-v);
}
.so-lede-label {
  display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
}
.so-lede p { margin: 0; font-size: 18px; line-height: 1.7; color: #2a2d3a; }
.so-entry-meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 20px 0 0 4px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
}
.so-entry-meta li + li::before { content: "·"; margin-right: 22px; margin-left: -12px; opacity: 0.6; }

/* ---------- Hubi: aloita tästä ---------- */
.so-start-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.so-start-list a {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 36px 32px 30px;
  border-radius: 24px; background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.so-start-list a:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.so-start-num {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px;
  font-size: 20px; font-weight: 900; color: #fff; background: var(--grad-tilt); box-shadow: var(--sh-warm);
}
.so-start-name { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; color: var(--navy-dark); }
.so-start-text { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }
.so-start-more {
  margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; color: var(--pink);
}
.so-start-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: translate .2s; }
.so-start-list a:hover .so-start-more svg { translate: 4px 0; }

/* ---------- Hubi: hakemisto ---------- */
.so-index { scroll-margin-top: 80px; }
.so-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 28px; }
.so-filter {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: var(--navy-dark);
  background: #fff; border: 1px solid var(--border); transition: border-color .2s, background .2s, color .2s;
}
.so-filter span { font-size: 12px; font-weight: 800; color: var(--text-muted); }
.so-filter:hover { border-color: var(--navy-100); }
.so-filter[aria-pressed="true"] { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.so-filter[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.65); }
.so-filter:focus-visible { outline: 3px solid rgba(45, 58, 125, 0.3); outline-offset: 2px; }
.so-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.so-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 24px 22px;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.so-card:hover { border-color: transparent; box-shadow: var(--sh-lg); transform: translateY(-3px); }
.so-card-name { font-size: 19px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.25; color: var(--navy-dark); }
.so-card-text { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.so-card-meta { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.so-card[hidden] { display: none; }
.so-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.so-tag--1 { background: var(--orange-50); color: #c25a0c; }
.so-tag--2 { background: var(--navy-50); color: var(--navy); }
.so-tag--3 { background: var(--pink-50); color: #c3136c; }
.so-tag--4 { background: #fbe9fa; color: #a3179b; }
.so-tag--5 { background: #e7f7ee; color: #1b7a44; }
.so-tag--6 { background: #e6f4f8; color: #0f6b86; }
.so-empty { margin-top: 24px; font-size: 16px; color: var(--text-muted); }
.so-empty a { color: var(--pink); font-weight: 700; }

/* ---------- Hubi: myytit ---------- */
.so-myths {
  position: relative; overflow: hidden; padding: 110px 0; color: #fff; background: var(--navy-deeper);
}
.so-myths::before, .so-myths::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.so-myths::before { top: -220px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(245, 128, 36, 0.18) 0%, transparent 70%); }
.so-myths::after { bottom: -220px; left: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(232, 30, 133, 0.14) 0%, transparent 70%); }
.so-myths .container { position: relative; z-index: 1; }
.so-myths .section-title { color: #fff; }
.so-myths .kicker.orange { color: var(--orange-soft); }
.so-myth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.so-myth {
  display: flex; flex-direction: column; gap: 14px; padding: 28px 26px;
  border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
}
.so-myth p { margin: 0; }
.so-myth p > span {
  display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.so-myth-claim { font-size: 19px; font-weight: 800; line-height: 1.35; }
.so-myth-claim s { text-decoration-color: rgba(230, 70, 68, 0.75); text-decoration-thickness: 2px; }
.so-myth-claim span { color: #ff8a88; }
.so-myth-truth { font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.8); }
.so-myth-truth span { color: #7ee2a8; }
.so-myth > a { margin-top: auto; font-size: 14px; font-weight: 800; color: var(--orange-soft); }
.so-myth > a:hover { text-decoration: underline; }
.so-myth--source { background: linear-gradient(160deg, rgba(252, 181, 73, 0.14), rgba(216, 35, 205, 0.12)); border-color: rgba(252, 181, 73, 0.25); }
.so-myth--source .so-myth-claim span { color: var(--orange-soft); }
.so-myth--source a { color: #fff; text-decoration: underline; text-decoration-color: rgba(252, 181, 73, 0.6); text-underline-offset: 3px; }

/* ---------- Hakusanasivu ---------- */
.so-entry {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px;
  padding-top: 56px; padding-bottom: 96px; align-items: start;
}
.so-side { position: sticky; top: 96px; }
/* Sivuston vasen pikavalikko (sidebar.css, näkyy 1024 px:stä) peittäisi sivupalkin, kun reunatila on kapea. */
@media (min-width: 1024px) and (max-width: 1400px) { .so-entry.container { padding-left: 92px; } }
.so-side-box summary {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer; list-style: none; margin-bottom: 12px;
}
.so-side-box summary::-webkit-details-marker { display: none; }
.so-side-home { display: block; font-size: 14px; font-weight: 800; color: var(--pink); margin-bottom: 16px; }
.so-side-cat { margin: 16px 0 6px; font-size: 12px; font-weight: 800; color: var(--navy-dark); }
.so-side ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.so-side li a {
  display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: 14.5px; color: var(--text-muted); transition: color .15s, border-color .15s;
}
.so-side li a:hover { color: var(--navy-dark); }
.so-side li a[aria-current="page"] { color: var(--navy-dark); font-weight: 800; border-left-color: var(--pink); }

.so-article { max-width: var(--so-read); }
.so-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13.5px; }
.so-toc span { font-weight: 800; color: var(--text-muted); margin-right: 4px; }
.so-toc a {
  padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--navy-dark); font-weight: 700; transition: border-color .2s, background .2s;
}
.so-toc a:hover { border-color: var(--navy-100); background: #fff; }

.so-article section { scroll-margin-top: 96px; }
.so-text, .so-related, .so-sources { margin-top: 48px; }
.so-article h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 900; letter-spacing: -0.015em; line-height: 1.2; color: var(--text); margin: 0 0 16px; }
.so-article h3 { font-size: 20px; font-weight: 800; color: var(--navy-dark); margin: 30px 0 10px; }
.so-article p, .so-article li { font-size: 17.5px; line-height: 1.75; color: #2a2d3a; }
.so-article p { margin: 0 0 16px; }
.so-article ul, .so-article ol { padding-left: 22px; margin: 0 0 18px; }
.so-article li { margin-bottom: 6px; }
.so-article li::marker { color: var(--pink); font-weight: 800; }
.so-article strong { color: var(--text); }
.so-article a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(233, 30, 133, 0.45); text-underline-offset: 3px; }
.so-article a:hover { color: var(--pink); }
.so-article code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.86em;
  padding: 2px 6px; border-radius: 6px; background: var(--navy-50); color: var(--navy-dark);
}

.so-table-wrap { overflow-x: auto; margin: 8px 0 22px; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.so-article table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.so-article th, .so-article td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.so-article thead th { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); background: var(--surface); }
.so-article tbody th { font-weight: 800; color: var(--navy-dark); }
.so-article tbody tr:last-child > * { border-bottom: 0; }

/* Musta hattu */
.so-blackhat {
  position: relative; margin-top: 48px; padding: 32px 32px 16px; border-radius: 24px; overflow: hidden;
  color: #fff; background: linear-gradient(160deg, var(--navy-deeper) 0%, #0f1535 100%);
  box-shadow: 0 24px 50px -24px rgba(26, 36, 82, 0.6);
}
.so-blackhat::after {
  content: ""; position: absolute; top: -140px; right: -140px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 70, 68, 0.2) 0%, transparent 70%); pointer-events: none;
}
.so-blackhat > * { position: relative; z-index: 1; }
.so-blackhat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.so-blackhat-head h2 { color: #fff; margin: 0; font-size: 24px; }
.so-blackhat-icon { width: 54px; height: auto; flex: none; }
.so-blackhat-icon .hat-brim, .so-blackhat-icon .hat-crown { fill: #000; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.4; }
.so-blackhat-icon .hat-band { fill: var(--red); }
.so-blackhat-icon .hat-dent { fill: none; stroke: rgba(255, 255, 255, 0.25); }
.so-blackhat p, .so-blackhat li { color: rgba(255, 255, 255, 0.84); }
.so-blackhat strong { color: #fff; }
.so-blackhat p strong:first-child { color: var(--orange-soft); }
.so-blackhat a { color: var(--orange-soft); }
.so-blackhat .so-table-wrap { background: transparent; border-color: rgba(255, 255, 255, 0.14); }
.so-blackhat th, .so-blackhat td { border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.86); }
.so-blackhat thead th { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.6); }
.so-blackhat code { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Tarkistuslista */
.so-check {
  margin-top: 48px; padding: 30px 30px 14px; border-radius: 24px;
  background: var(--grad-warm); border: 1px solid #f7e3d2;
}
.so-check-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.so-check-head h2 { margin: 0; }
.so-check-progress { font-size: 14px; font-weight: 800; color: var(--pink); }
.so-check-hint { font-size: 14.5px !important; color: var(--text-muted) !important; margin: 6px 0 16px !important; }
.so-checklist { list-style: none; padding: 0 !important; }
.so-checklist li { margin: 0; border-top: 1px solid rgba(35, 46, 102, 0.08); }
.so-checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; cursor: pointer; }
.so-checklist input {
  appearance: none; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 7px;
  border: 2px solid var(--navy-100); background: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.so-checklist input::after {
  content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s;
}
.so-checklist input:checked { background: var(--pink); border-color: var(--pink); }
.so-checklist input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.so-checklist input:focus-visible { outline: 3px solid rgba(233, 30, 133, 0.3); outline-offset: 2px; }
.so-checklist input:checked + span { color: var(--text-muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, 0.25); }

/* Sisäinen CTA hakusanan sisällä */
.so-inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 28px 0; padding: 22px 24px; border-radius: 20px; background: var(--grad-soft);
}
.so-inline-cta p { margin: 0 !important; font-weight: 700; }
.so-inline-cta-link {
  flex: none; padding: 12px 20px; border-radius: 999px; background: var(--grad); color: #fff !important;
  font-weight: 800; font-size: 15px; text-decoration: none !important;
  box-shadow: 0 10px 22px -8px rgba(230, 70, 68, 0.5);
}

.so-related .so-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.so-related .so-card { padding: 20px; text-decoration: none; }
.so-related .so-card-name { font-size: 16.5px; }
.so-related .so-card-text { font-size: 14px; }

.so-sources { padding-top: 32px; border-top: 1px solid var(--border); }
.so-sources ol { padding-left: 22px; }
.so-sources li { font-size: 15px !important; line-height: 1.6 !important; margin-bottom: 8px; }
.so-sources-note { font-size: 14px !important; color: var(--text-muted) !important; }

/* ---------- CTA-kaista (sama kuin palvelusivuilla) ---------- */
.cta-band { position: relative; overflow: hidden; padding: 110px 0; color: #fff; background: var(--navy-deeper); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-band::before { top: -200px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(245, 128, 36, 0.22) 0%, transparent 70%); }
.cta-band::after { bottom: -200px; left: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(232, 30, 133, 0.18) 0%, transparent 70%); }
.cta-band-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }
.cta-band .kicker.orange { color: var(--orange-soft); }
.cta-band h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 22px; color: rgba(255, 255, 255, 0.9); }
.cta-band h2 .gr { font-weight: 900; }
.cta-band p { font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.75); max-width: 660px; margin: 0 auto 34px; }
.cta-band .hero-cta-row { justify-content: center; }
.cta-band .ai-hi { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.cta-band .ai-hi:hover, .cta-band .ai-hi:focus-within { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.cta-band .ai-hi-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.cta-band .ai-hi:hover .ai-hi-input, .cta-band .ai-hi:focus-within .ai-hi-input { border-left-color: rgba(255, 255, 255, 0.25); }
.so-cta-link {
  display: inline-block; margin-top: 26px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(252, 181, 73, 0.55); padding-bottom: 2px;
}
.so-cta-link:hover { color: #fff; border-color: var(--orange-soft); }

/* ---------- Sisään liukuminen (vain kun JS on käytössä) ---------- */
.so-js [data-reveal], .so-js [data-reveal-stagger] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.so-js [data-reveal].in, .so-js [data-reveal-stagger].in > * { opacity: 1; transform: none; }
.so-js [data-reveal-stagger].in > :nth-child(2) { transition-delay: 0.08s; }
.so-js [data-reveal-stagger].in > :nth-child(3) { transition-delay: 0.16s; }
.so-js [data-reveal-stagger].in > :nth-child(4) { transition-delay: 0.24s; }
.so-js [data-reveal-stagger].in > :nth-child(5) { transition-delay: 0.32s; }
.so-js [data-reveal-stagger].in > :nth-child(6) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .so-js [data-reveal], .so-js [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsiivisuus ---------- */
@media (max-width: 1100px) {
  .so-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .so-hero-visual { max-width: 460px; justify-self: start; }
  .so-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .so-myth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .so-entry { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .so-side { position: static; }
  .so-side-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; }
  .so-side-box summary { margin: 0; color: var(--navy-dark); }
  .so-side-box[open] summary { margin-bottom: 12px; }
  .so-start-list { grid-template-columns: 1fr; }
  .so-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .so-page .container { padding: 0 20px; }
  .so-hero { padding: 120px 0 60px; }
  .so-hero-lede { font-size: 18px; }
  .so-hero-visual { display: none; }
  .block { padding: 70px 0; }
  .section-head { margin-bottom: 36px; }
  .so-cards, .so-myth-grid { grid-template-columns: 1fr; }
  .so-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .so-filter { flex: none; }
  .so-myths, .cta-band { padding: 80px 0; }
  .so-lede { padding: 18px 20px 18px 24px; }
  .so-lede p { font-size: 16.5px; }
  .so-article p, .so-article li { font-size: 16.5px; }
  .so-blackhat, .so-check { padding: 24px 20px 10px; border-radius: 20px; }
  .so-entry { padding-bottom: 64px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .btn-primary, .ai-hi { justify-content: center; }
  .ai-hi:hover .ai-hi-input, .ai-hi:focus-within .ai-hi-input { width: 140px; }
}
