/* kotisivut.fi — Blogiartikkelien jaettu CSS
   Linkitetään jokaiseen artikkeliin: <link rel="stylesheet" href="/blogi/article.css">
   Päivitetty: 2026-05-16 (sessio 12 — yhdenmukaistettu etusivun premium-tyyliin)
   Nav + footer + skip-link + .bp + .ey + .card tulevat shared.js:stä.
*/

:root {
  --navy:#111038; --navyh:#1a1855;
  --cyan:#00C0F6; --cyanh:#00a8d8; --cyanb:#1ED9FF;
  --vio:#6D5BFF; --vbg:#EEF0FF;
  --lav:#A78BFA; --lavbg:#F1ECFE;
  --cbg:#DCF4FE;
  --bg:#EDF6FF; --wh:#FFFFFF;
  --brd:#D8E6F2; --muted:#5A6B80; --body:#374151;
  --font:'DM Sans',system-ui,sans-serif;
  --bfont:'DM Sans',system-ui,sans-serif;
  --mono:'Geist Mono',ui-monospace,'SF Mono',monospace;
  --mw:1080px; --nh:68px; --r:18px; --pill:999px;
  --sh1: 0 1px 3px rgba(17,16,56,.05), 0 4px 12px rgba(17,16,56,.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--bg); color: var(--navy); font-family: var(--bfont); font-weight: 500; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative; }
h1, h2, h3 { font-family: var(--font); letter-spacing: -0.02em; }

/* BODY BLOB ACCENTS — hienovaraiset cyan/lav tausta-aksentit (kuten etusivun hero) */
body::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(circle at 6% 8%, rgba(0,192,246,.10) 0%, transparent 32%),
    radial-gradient(circle at 94% 92%, rgba(167,139,250,.12) 0%, transparent 38%);
  pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* PAGE WRAP */
.page-wrap { padding-top: var(--nh); }

/* BREADCRUMB — eyebrow-tyyli mono-fontilla */
.breadcrumb {
  max-width: 1000px; margin: 0 auto;
  padding: 24px 28px 0;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .18s;
}
.breadcrumb a:hover { color: var(--vio); }
.breadcrumb-sep { font-size: 12px; color: var(--brd); }
.breadcrumb span:last-child {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy);
}

/* ARTICLE */
article { max-width: 1000px; margin: 0 auto; padding: 32px 28px 80px; }

.article-header { margin-bottom: 40px; }
.article-header h1 {
  font-family: var(--font);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.15;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--vio) 55%, var(--lav) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: .08em;
}
.article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.article-meta-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--lav));
  display: inline-block;
}

/* BODY TEXT */
.article-body { font-size: 17px; line-height: 1.75; color: var(--body); }

/* H2 — gradient text kuten Blogi-otsikko */
.article-body h2 {
  font-family: var(--font);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.15;
  margin: 60px 0 22px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--vio) 55%, var(--lav) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: .08em;
  width: max-content; max-width: 100%;
}

/* H3 — gradient-aksenttipalkki vasemmalla */
.article-body h3 {
  font-family: var(--font);
  font-size: 20px; font-weight: 700;
  color: var(--navy); letter-spacing: -.015em;
  margin: 36px 0 14px;
  padding-left: 18px;
  position: relative;
}
.article-body h3::before {
  content: ''; position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--vio) 50%, var(--lav) 100%);
}

.article-body p { margin-bottom: 20px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body a {
  color: var(--vio); font-weight: 600; text-decoration: underline;
  text-decoration-color: rgba(109,91,255,.35);
  text-underline-offset: 3px;
  transition: text-decoration-color .25s;
}
.article-body a:hover { text-decoration-color: var(--vio); }

/* UL — kortti-tyyli cyan-tinted bg + gradient tickmark */
.article-body ul {
  padding-left: 0; list-style: none;
  margin: 24px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.article-body ul li {
  background: linear-gradient(160deg, var(--wh) 0%, rgba(220,244,254,.45) 100%);
  border: 1px solid rgba(0,192,246,.16);
  border-radius: 14px;
  padding: 14px 20px 14px 50px;
  position: relative;
  line-height: 1.65;
  box-shadow: 0 1px 2px rgba(17,16,56,.03), 0 4px 14px rgba(0,192,246,.04);
}
.article-body ul li::before {
  content: ''; position: absolute;
  left: 18px; top: 16px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--lav));
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / contain;
}

/* OL — säilyy lähes nykyisellään (numeroitu pyörylä), mutta kortti-mainen tausta */
.article-body ol {
  counter-reset: ol-counter;
  padding-left: 0; list-style: none;
  margin: 24px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.article-body ol li {
  counter-increment: ol-counter;
  background: linear-gradient(160deg, var(--wh) 0%, rgba(220,244,254,.45) 100%);
  border: 1px solid rgba(0,192,246,.16);
  border-radius: 14px;
  padding: 16px 20px 16px 58px;
  position: relative;
  line-height: 1.65;
  box-shadow: 0 1px 2px rgba(17,16,56,.03), 0 4px 14px rgba(0,192,246,.04);
}
.article-body ol li::before {
  content: counter(ol-counter); position: absolute;
  left: 18px; top: 16px;
  font-family: var(--font); font-weight: 700; font-size: 13px;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--vio) 60%, var(--lav) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px -1px rgba(0,192,246,.4), inset 0 1px 0 rgba(255,255,255,.25);
}

.article-body strong { color: var(--navy); font-weight: 700; }

/* TL;DR — cyan/lav tinted bg, kokonaan pyöristetty (kuten muut kortit) */
.tldr {
  background: linear-gradient(160deg, var(--cbg) 0%, var(--lavbg) 100%);
  border: 1px solid rgba(0,192,246,.25);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 36px 0;
  box-shadow: 0 1px 3px rgba(0,192,246,.06), 0 4px 14px rgba(167,139,250,.08);
}
.tldr-title {
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.tldr ul { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; margin: 0; }
.article-body .tldr ul li {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 15.5px; font-weight: 500; color: var(--body);
  padding: 0 0 0 30px;
  position: relative; line-height: 1.55;
}
.article-body .tldr ul li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--lav));
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / contain;
}
.tldr ul li strong { color: var(--navy); font-weight: 700; }

/* STAT BOX */
.stat-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0; }
.stat-item {
  background: linear-gradient(160deg, var(--wh) 0%, #f4f9fd 100%);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 22px 18px; text-align: center;
  box-shadow: 0 1px 3px rgba(17,16,56,.04), 0 8px 24px rgba(0,192,246,.06);
}
.stat-num {
  display: block; font-family: var(--font);
  font-size: 36px; font-weight: 700;
  letter-spacing: -.03em; line-height: 1; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--vio) 60%, var(--lav) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.4; }
@media (max-width: 560px) { .stat-box { grid-template-columns: 1fr; } }

/* PRICE TABLE */
.price-table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: 15px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(17,16,56,.04), 0 6px 18px rgba(17,16,56,.06);
}
.price-table th {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navyh) 100%);
  color: #fff; font-family: var(--font);
  font-weight: 700; padding: 13px 18px;
  text-align: left; font-size: 13px; letter-spacing: .03em;
}
.price-table td {
  padding: 13px 18px; border-bottom: 1px solid var(--brd);
  font-weight: 500; color: var(--body); background: var(--wh); vertical-align: top;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: #f7fbff; }
.price-table td.hl { font-weight: 700; color: var(--navy); }
.price-table td.cyan {
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--vio));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* TIPS LIST */
.tips-list { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.tips-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(160deg, var(--wh) 0%, #f4f9fd 100%);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(17,16,56,.04), 0 6px 18px rgba(0,192,246,.06);
}
.tips-num {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--vio) 60%, var(--lav) 100%);
  color: #fff; font-family: var(--font);
  font-size: 14px; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  box-shadow: 0 4px 12px -2px rgba(0,192,246,.4), inset 0 1px 0 rgba(255,255,255,.25);
}
.tips-body strong { display: block; font-family: var(--font); font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; letter-spacing: -.01em; }
.tips-body p { font-size: 14.5px; font-weight: 500; color: var(--muted); margin: 0; line-height: 1.6; }

/* HIGHLIGHT BOX — navy + blob-aksentit */
.highlight-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navyh) 60%, #2a2480 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 36px 0;
  position: relative; overflow: hidden;
}
.highlight-box::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(0,192,246,.20) 0%, transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(167,139,250,.20) 0%, transparent 55%);
  pointer-events: none;
}
.highlight-box > * { position: relative; z-index: 1; }
.highlight-box p { color: rgba(255,255,255,.88); font-size: 15.5px; margin: 0; line-height: 1.7; }
.highlight-box strong { color: #fff; font-weight: 700; }
.highlight-box a {
  background: linear-gradient(135deg, var(--cyan) 0%, #5DDBFF 50%, var(--lav) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 700; text-decoration: none;
}

/* CTA BLOCK — kotisivut.fi-mainos, käytä jokaisessa artikkelissa */
.kotisivut-callout {
  background: linear-gradient(135deg, var(--navy) 0%, #1a1855 60%, #2a2480 100%);
  border-radius: 22px;
  padding: 44px 36px;
  margin: 56px 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.kotisivut-callout::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(0,192,246,.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(167,139,250,.18) 0%, transparent 55%);
  pointer-events: none;
}
.kotisivut-callout > * { position: relative; z-index: 1; }
.kotisivut-callout .oc-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding: 6px 14px; margin-bottom: 14px;
  background: rgba(0,192,246,.12);
  border: 1px solid rgba(0,192,246,.25);
  border-radius: var(--pill);
}
.kotisivut-callout h3 {
  font-family: var(--font); font-size: clamp(22px, 3vw, 30px);
  font-weight: 700; color: #fff;
  letter-spacing: -.025em; margin-bottom: 14px; line-height: 1.2;
  padding-left: 0;
  background: none;
  -webkit-text-fill-color: #fff;
}
.kotisivut-callout h3::before { display: none; }
.kotisivut-callout p {
  font-size: 15.5px; color: rgba(255,255,255,.72); margin-bottom: 26px;
  max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.55;
}
.kotisivut-callout a {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--vio) 60%, var(--lav) 100%);
  background-size: 220% 220%;
  color: #fff; font-family: var(--bfont);
  font-size: 15px; font-weight: 700;
  padding: 14px 30px; border-radius: var(--pill);
  text-decoration: none;
  transition: background-position .5s cubic-bezier(.16,1,.3,1), transform .25s, box-shadow .25s;
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 4px 16px -2px rgba(0,210,255,.45),
    0 10px 28px -6px rgba(167,139,250,.4);
}
@media (hover: hover) {
  .kotisivut-callout a:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow:
      0 1px 0 rgba(255,255,255,.3) inset,
      0 8px 22px -2px rgba(0,210,255,.55),
      0 18px 36px -6px rgba(167,139,250,.5);
  }
}

/* SOURCES BOX — lähdeluettelo artikkelin loppuun */
.sources-box {
  background: linear-gradient(160deg, var(--wh) 0%, #f4f9fd 100%);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 44px 0 32px;
  box-shadow: 0 1px 3px rgba(17,16,56,.04), 0 6px 18px rgba(17,16,56,.05);
}
.sources-title {
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.sources-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.article-body .sources-list li {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.article-body .sources-list li::before { content: none !important; }
.sources-list a {
  color: var(--vio); font-size: 14px; font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(109,91,255,.3);
  text-underline-offset: 3px;
  word-break: break-word;
}
.sources-list a:hover { text-decoration-color: var(--vio); }

/* ARTICLE END CTA — loppupisteenä yhteenvedon jälkeen */
.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1a1855 60%, #2a2480 100%);
  border-radius: 22px;
  padding: 48px 36px;
  margin: 48px 0 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(0,192,246,.20) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(167,139,250,.20) 0%, transparent 55%);
  pointer-events: none;
}
.article-cta > * { position: relative; z-index: 1; }
.article-cta h2 {
  font-family: var(--font);
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700; color: #fff;
  letter-spacing: -.025em; line-height: 1.2;
  margin: 0 0 14px;
}
.article-cta h2 span {
  background: linear-gradient(135deg, var(--cyan), #5DDBFF, var(--lav));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.article-cta p {
  color: rgba(255,255,255,.75) !important;
  font-size: 15.5px; margin: 0 auto 26px;
  max-width: 480px; line-height: 1.55;
}
.article-cta .cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.article-cta .cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--vio), var(--lav));
  background-size: 220% 220%;
  color: #fff; font-family: var(--bfont);
  font-size: 15px; font-weight: 700;
  padding: 13px 26px; border-radius: var(--pill);
  text-decoration: none;
  transition: background-position .5s cubic-bezier(.16,1,.3,1), transform .2s, box-shadow .25s;
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 4px 16px -2px rgba(0,210,255,.45),
    0 10px 28px -6px rgba(167,139,250,.4);
}
.article-cta .cta-btn-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
}
@media (hover: hover) {
  .article-cta .cta-btn:hover { background-position: 100% 100%; transform: translateY(-2px); }
  .article-cta .cta-btn-secondary:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
}
.article-cta .cta-note {
  margin-top: 18px !important; font-size: 13px !important;
  color: rgba(255,255,255,.55) !important;
}

@media (max-width: 640px) {
  article { padding: 24px 20px 64px; }
  .breadcrumb { padding: 20px 20px 0; }

  /* Otsikot tiukemmiksi mobiilissa */
  .article-header h1 { font-size: clamp(28px, 7.5vw, 36px); letter-spacing: -.03em; }
  .article-body h2 { font-size: clamp(22px, 5.5vw, 28px); margin: 44px 0 16px; }
  .article-body h3 { font-size: 18px; margin: 28px 0 12px; }
  .article-body { font-size: 16px; line-height: 1.7; }

  /* UL/OL li-kortit kompaktimmiksi — säilyy luettavana 320 px näytöllä */
  .article-body ul, .article-body ol { gap: 8px; margin: 20px 0; }
  .article-body ul li { padding: 12px 16px 12px 42px; border-radius: 12px; line-height: 1.55; }
  .article-body ul li::before { left: 14px; top: 14px; width: 16px; height: 16px; }
  .article-body ol li { padding: 14px 16px 14px 50px; border-radius: 12px; line-height: 1.55; }
  .article-body ol li::before { left: 14px; top: 14px; width: 24px; height: 24px; font-size: 12px; }

  .tldr { padding: 20px 22px; border-radius: 16px; margin: 28px 0; }
  .article-body .tldr ul li { padding-left: 28px; font-size: 15px; }
  .article-body .tldr ul li::before { left: 0; top: 4px; width: 17px; height: 17px; }

  .kotisivut-callout { padding: 36px 24px; border-radius: 18px; margin: 40px 0; }
  .kotisivut-callout h3 { font-size: clamp(20px, 5vw, 26px); }
  .article-cta { padding: 40px 24px; border-radius: 18px; }
  .article-cta h2 { font-size: clamp(22px, 5.5vw, 28px); }
  .article-cta .cta-btn { padding: 12px 22px; font-size: 14.5px; }
  .sources-box { padding: 20px 22px; }
}
