/* Alasivujen yhteiset tyylit. Värit ja komponentit samat kuin etusivulla (index.html). */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #1e293b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Kielivalinta (vain kaksikielisillä sivuilla) */
[data-lang="en"] { display: none !important; }
body.lang-en [data-lang="fi"] { display: none !important; }
body.lang-en [data-lang="en"] { display: revert !important; }
body.lang-en a.cta[data-lang="en"] { display: inline-block !important; }
body.lang-en a.nav-link[data-lang="en"] { display: inline !important; }
body.lang-en .kanavat[data-lang="en"],
body.lang-en .demo-pari[data-lang="en"],
body.lang-en .vaiheet[data-lang="en"] { display: grid !important; }

/* Nav */
.nav { background: #0f172a; padding: 18px 0; position: sticky; top: 0; z-index: 50; }
section[id] { scroll-margin-top: 86px; }
.nav-inner {
  max-width: 900px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-contact { color: #94a3b8; font-size: 14px; }
.nav-contact a:hover { color: #2dd4bf; }
.nav-link { color: #2dd4bf; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-link:hover { color: #fff; }
.lang-switch { display: flex; gap: 2px; background: #1e293b; border-radius: 6px; padding: 2px; }
.lang-btn {
  background: none; border: none; color: #64748b; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 4px; cursor: pointer; transition: all 0.15s;
}
.lang-btn.active { background: #334155; color: #fff; }
.lang-btn:hover:not(.active) { color: #cbd5e1; }

/* Hero */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #fff; padding: 80px 24px 70px; }
.hero-inner { max-width: 750px; margin: 0 auto; text-align: center; }
.hero-tag {
  color: #2dd4bf; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; margin-bottom: 20px;
}
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.5px; }
.hero p { font-size: 18px; color: #cbd5e1; line-height: 1.65; max-width: 620px; margin: 0 auto; }
.hero p strong { color: #fff; }
.hero-cta { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-cta .cta { margin-top: 0; }
.hero-cta .cta.ghost { border: 1px solid rgba(255,255,255,0.35); color: #e2e8f0; background: none; }
.hero-cta .cta.ghost:hover { border-color: #2dd4bf; color: #2dd4bf; }

/* Osiot */
.osio { max-width: 900px; margin: 0 auto; padding: 60px 24px 10px; }
.osio:last-of-type { padding-bottom: 70px; }
.section-title { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: #64748b; line-height: 1.6; margin-bottom: 24px; max-width: 680px; }
.teksti { font-size: 16px; line-height: 1.7; color: #334155; margin-bottom: 14px; max-width: 720px; }
.teksti a, .pnote a, .lahde a { color: #0d9488; font-weight: 600; }
.teksti a:hover, .pnote a:hover, .lahde a:hover { text-decoration: underline; }
.lahde { font-size: 13px; line-height: 1.6; color: #64748b; margin-top: 10px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

.pnote {
  background: #f8fafc; border-left: 3px solid #0d9488; border-radius: 0 8px 8px 0;
  padding: 18px 22px; margin: 24px 0; font-size: 15px; line-height: 1.65; color: #334155;
}

/* Kaksi palstaa (sama kuin etusivun kanavat) */
.kanavat { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 10px; }
.kanava { border: 2px solid #e2e8f0; border-radius: 16px; padding: 28px; background: #fff; }
.kanava.ymmarrys { border-color: #5eead4; background: linear-gradient(135deg, #f0fdfa 0%, #fff 100%); }
.kanava-nro {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px;
  font-weight: 700; letter-spacing: 1px; color: #0d9488; text-transform: uppercase;
}
.kanava h3 { font-size: 20px; color: #0f172a; margin: 8px 0 6px; }
.kanava p.kanava-teksti { font-size: 15px; line-height: 1.6; color: #475569; margin-bottom: 12px; }

.service-features { list-style: none; padding: 0; }
.service-features li { font-size: 14px; color: #334155; padding: 4px 0 4px 24px; position: relative; line-height: 1.5; }
.service-features li::before { content: '\2713'; position: absolute; left: 0; color: #0d9488; font-weight: 700; }
.service-features.ei li::before { content: '\2013'; color: #94a3b8; }

/* Vaiheet */
.vaiheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 10px; }
.vaihe { border: 2px solid #e2e8f0; border-radius: 14px; padding: 22px; }
.vaihe-nro {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px;
  font-weight: 700; letter-spacing: 1px; color: #0d9488; text-transform: uppercase;
}
.vaihe h3 { font-size: 17px; color: #0f172a; margin: 6px 0 6px; }
.vaihe p { font-size: 14px; line-height: 1.55; color: #475569; }
.vaihe .hinta { font-size: 20px; font-weight: 800; color: #0f172a; margin-top: 10px; }

/* Kuvakaappaukset */
.demo-pari { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.demo-pari img { display: block; width: 100%; height: auto; border: 1px solid #e2e8f0; border-radius: 10px; }
.demo-pari figcaption { font-size: 13px; line-height: 1.6; color: #64748b; margin-top: 10px; }
.demo-pari a.kuva-iso { display: block; cursor: zoom-in; }
.demo-pari a.kuva-iso:hover img { border-color: #2dd4bf; }
.demo-vaihe {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: #0f766e; background: #ccfbf1; border-radius: 4px; padding: 3px 8px; margin-bottom: 8px;
}
.kuva-lb { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, 0.88);
           display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.kuva-lb img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff;
               box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.kuva-lb-sulje { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 30px;
                 line-height: 1; background: none; border: 0; cursor: pointer; }

/* Painikkeet */
.cta {
  display: inline-block; margin-top: 18px; padding: 10px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600; transition: all 0.15s;
}
.cta.primary { background: #0d9488; color: #fff; }
.cta.primary:hover { background: #0f766e; }
.cta.outline { border: 2px solid #0d9488; color: #0d9488; background: none; margin-left: 8px; }
.cta.outline:hover { background: #f0fdfa; }

/* Footer */
.footer { background: #0f172a; border-top: 1px solid #1e293b; padding: 30px 24px; text-align: center; }
.footer-inner { max-width: 900px; margin: 0 auto; color: #64748b; font-size: 13px; }
.footer a { color: #94a3b8; }
.footer a:hover { color: #2dd4bf; }
.footer-links { margin-bottom: 10px; }
.footer-links a { margin: 0 12px; }

@media (max-width: 760px) {
  .kanavat, .demo-pari, .vaiheet { grid-template-columns: 1fr; }
  body.lang-en .kanavat[data-lang="en"],
  body.lang-en .demo-pari[data-lang="en"],
  body.lang-en .vaiheet[data-lang="en"] { grid-template-columns: 1fr; }
  .kanava { padding: 22px; }
  .nav-contact { display: none; }
  .hero { padding: 56px 20px 50px; }
  .hero h1 { font-size: 30px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .nav-inner { padding: 0 16px; }
  .nav-right { gap: 10px; }
  .cta.outline { margin-left: 0; }
}
