/* ============================================================
   Loppusivu v1 (2.9.2026) — heron alapuolinen sisältö, ehdotus A.
   Rakenne: logot → prosessitarina (sticky-kuva) → bento → "miksi näemme enemmän" (tumma)
   → toimialat → asiakassitaatti (paikka) → hinnoittelu → FAQ → loppu-CTA.
   Prefiksi ls- = loppusivu. Käyttää theme-c-tokeneita.
   ============================================================ */

/* ---------- Logot: keskitetty, ei viivoja ---------- */
body.theme-c .logos { background: transparent; border: none; padding: clamp(18px, 3vw, 34px) 0 clamp(28px, 4vw, 48px); }
body.theme-c .logos-inner { flex-direction: column; gap: 18px; padding: 0; }
body.theme-c .logos .label { font-size: 12.5px; letter-spacing: 0.12em; }
.ls-logo-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: clamp(22px, 4vw, 54px) clamp(28px, 4.5vw, 64px); }
body.theme-c .logos .mark-img { height: 30px; opacity: 0.72; filter: grayscale(1); }
body.theme-c .logos .mark-img:hover { opacity: 1; filter: none; }

/* ---------- Yhteiset ---------- */
.ls-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.ls-head .eyebrow { justify-content: center; }
.ls-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 16px; color: var(--ink); }
.ls-head p { font-size: clamp(16.5px, 1.6vw, 19px); color: #4f5a64; line-height: 1.6; max-width: 620px; margin: 0 auto; }
.ls-section { padding: clamp(64px, 8vw, 112px) 0; }
.ls-section.tight { padding: clamp(44px, 6vw, 80px) 0; }
.ls-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--line); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.ls-more:hover { color: var(--orange-deep); border-color: var(--orange); }
.ls-more .arr { transition: transform 0.3s var(--ease-out); }
.ls-more:hover .arr { transform: translateX(3px); }

/* ---------- Prosessitarina: askeleet vasemmalla, sticky-kuva oikealla ---------- */
.ls-story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.ls-steps { display: grid; }
.ls-step { position: relative; padding: clamp(28px, 3.5vw, 44px) 0 clamp(28px, 3.5vw, 44px) 64px; opacity: 0.42; transition: opacity 0.5s var(--ease-out); }
.ls-step.active { opacity: 1; }
.ls-step + .ls-step { border-top: 1px solid var(--line-soft); }
.ls-step .num {
  position: absolute; left: 0; top: clamp(28px, 3.5vw, 44px);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: var(--ink);
  border: 1.5px solid var(--ink); background: #fff;
  transition: background 0.3s, color 0.3s;
}
.ls-step.active .num { background: var(--ink); color: #fff; }
.ls-step h3 { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 10px; }
.ls-step p { color: #3d4852; font-size: 16.5px; line-height: 1.6; max-width: 46ch; }
.ls-step .why {
  display: flex; gap: 10px; margin-top: 14px; font-size: 14px; color: #4f5a64; line-height: 1.5;
  border-left: 2.5px solid var(--orange); padding-left: 12px; max-width: 46ch;
}
.ls-step .why b { color: var(--orange-deep); font-weight: 700; white-space: nowrap; }
.ls-step .mini { display: none; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ls-step .mini img { display: block; width: 100%; height: auto; }
.ls-visual { position: sticky; top: calc(50vh - 240px); }
.ls-panels { position: relative; aspect-ratio: 16 / 9; }
.ls-panel {
  position: absolute; inset: 0;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 8px rgba(31, 42, 51, 0.06), 0 30px 60px -28px rgba(150, 84, 24, 0.28);
  opacity: 0; transform: translateY(14px) scale(0.985);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  pointer-events: none;
}
.ls-panel.active { opacity: 1; transform: none; pointer-events: auto; }
.ls-panel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ls-panel .cap {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; box-shadow: 0 8px 20px -6px rgba(31, 42, 51, 0.5);
}
@media (max-width: 940px) {
  .ls-story { grid-template-columns: 1fr; }
  .ls-visual { display: none; }
  .ls-step { opacity: 1; padding-left: 56px; }
  .ls-step .mini { display: block; }
}

/* ---------- Bento ---------- */
.ls-bento-wrap { background: linear-gradient(180deg, #ffffff 0%, #f9f6f1 18%, #f9f6f1 82%, #ffffff 100%); }
.ls-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.ls-tile {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 2.2vw, 28px);
  min-height: 230px; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s;
}
.ls-tile:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(31, 42, 51, 0.05), 0 22px 44px -22px rgba(31, 42, 51, 0.25); border-color: #d6d9dc; }
.ls-tile.w2 { grid-column: span 2; }
.ls-tile.w3 { grid-column: span 3; min-height: 0; flex-direction: row; align-items: center; gap: clamp(18px, 3vw, 40px); }
.ls-tile .kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-deep); }
.ls-tile h3 { font-size: clamp(19px, 1.9vw, 23px); letter-spacing: -0.01em; line-height: 1.2; }
.ls-tile p { color: #3d4852; font-size: 15.5px; line-height: 1.55; max-width: 44ch; }
.ls-tile .num-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 6px 0 2px; }
.ls-tile .num-row div { display: grid; gap: 2px; }
.ls-tile .num-row b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.ls-tile .num-row span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ls-tile .ex { font-size: 12.5px; color: var(--muted); }
.ls-tile .ls-more { margin-top: auto; align-self: flex-start; }
.ls-tile.has-shot { padding-bottom: 0; }
.ls-tile .shot {
  margin: 10px calc(-1 * clamp(20px, 2.2vw, 28px)) 0 auto; width: 92%;
  border: 1px solid var(--line); border-right: none; border-bottom: none;
  border-radius: 14px 0 0 0; overflow: hidden; background: #fff; flex: 1 1 auto; min-height: 150px; max-height: 240px;
  box-shadow: -10px -10px 30px -18px rgba(31, 42, 51, 0.25);
}
.ls-tile .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ls-tile .siglist { display: grid; gap: 7px; margin-top: 4px; }
.ls-tile .siglist.small { margin: 6px 0 2px; gap: 6px; }
.ls-tile .siglist.small li { font-size: 13px; }
.ls-tile .siglist.small .lbl { min-width: 120px; }
.ls-tile .siglist.small .bar { height: 7px; flex: 0 1 auto; }
.ls-tile .siglist.small .n { margin-left: 0; min-width: 44px; text-align: right; }
.ls-tile .siglist li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.ls-tile .siglist .bar { height: 8px; border-radius: 4px; background: var(--orange); flex: 0 0 auto; }
.ls-tile .siglist .lbl { min-width: 150px; font-weight: 600; }
.ls-tile .siglist .n { color: var(--muted); font-size: 13px; margin-left: auto; }
.ls-tile .ask { display: grid; gap: 8px; flex: 1; }
.ls-tile .ask span {
  display: inline-block; background: var(--paper-warm); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; color: var(--ink-soft); font-weight: 600; width: fit-content;
}
@media (max-width: 940px) {
  .ls-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-tile.w2 { grid-column: span 2; }
  .ls-tile.w3 { grid-column: span 2; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .ls-bento { grid-template-columns: 1fr; }
  .ls-tile.w2, .ls-tile.w3 { grid-column: span 1; }
}

/* ---------- Tumma kaista: miksi Tendera näkee enemmän ---------- */
.ls-dark { background: var(--ink-deep); color: #e9eef2; }
.ls-dark .ls-head h2 { color: #fff; }
.ls-dark .ls-head p { color: #a7b4c0; }
.ls-dark .eyebrow { color: var(--orange); }
.ls-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.ls-why > div { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 20px; }
.ls-why h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.ls-why p { color: #b7c2cc; font-size: 15.5px; line-height: 1.6; }
.ls-sources { margin-top: clamp(36px, 4vw, 52px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ls-sources .lbl { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8b98a3; margin-right: 6px; }
.ls-sources span { border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; color: #dce3e9; }
@media (max-width: 820px) { .ls-why { grid-template-columns: 1fr; } }

/* ---------- Toimialat ---------- */
.ls-industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ls-ind {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px;
  transition: transform 0.3s var(--ease-out), border-color 0.2s, box-shadow 0.3s var(--ease-out);
}
.ls-ind small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ls-ind .arr { color: var(--orange-deep); font-weight: 800; transition: transform 0.3s var(--ease-out); }
.ls-ind:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(31, 42, 51, 0.3); }
.ls-ind:hover .arr { transform: translateX(3px); }
@media (max-width: 820px) { .ls-industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ls-industries { grid-template-columns: 1fr; } }

/* ---------- Asiakassitaatti (paikka) ---------- */
.ls-quote { max-width: 860px; margin: 0 auto; text-align: center; padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 48px); border: 1.5px dashed var(--line); border-radius: 20px; background: #fff; }
.ls-quote blockquote { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); font-weight: 600; }
.ls-quote blockquote::before { content: "”"; color: var(--orange); font-size: 1.4em; line-height: 0; margin-right: 4px; vertical-align: -0.3em; }
.ls-quote .who { margin-top: 14px; font-size: 14px; color: var(--muted); }
.ls-quote .slot { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-deep); background: var(--orange-faint); border-radius: 999px; padding: 5px 10px; }

/* ---------- Hinnoittelu: Free-rivi + kortit ---------- */
.ls-free {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border: 1.5px solid var(--ink); border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; background: #fff;
}
.ls-free .tier { font-size: 13px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); }
.ls-free .job { font-size: 17px; font-weight: 700; }
.ls-free .desc { color: #4f5a64; font-size: 14.5px; }
.ls-free .price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.ls-free .price small { font-size: 13px; font-weight: 500; color: var(--muted); }
body.theme-c .pt-card .job { color: var(--ink); }
body.theme-c .p-teaser-foot { justify-content: center; }

/* ---------- FAQ ---------- */
.ls-faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.ls-faq details { border-bottom: 1px solid var(--line); }
.ls-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; font-size: clamp(17px, 1.7vw, 19.5px); font-weight: 700; color: var(--ink);
}
.ls-faq summary::-webkit-details-marker { display: none; }
.ls-faq summary .pm { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 17px; line-height: 1; transition: transform 0.3s var(--ease-out), background 0.2s, color 0.2s; }
.ls-faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; }
.ls-faq summary:hover .pm { background: var(--ink); color: #fff; }
.ls-faq .a { padding: 0 4px 22px; color: #3d4852; font-size: 16px; line-height: 1.65; max-width: 68ch; }
.ls-faq .a a { color: var(--ink); font-weight: 600; }

/* ---------- Loppu-CTA ---------- */
.ls-final { background: linear-gradient(180deg, #ffffff 0%, #fbeadb 40%, #fae2c8 100%); padding: clamp(64px, 8vw, 112px) 0 clamp(72px, 9vw, 120px); }
.ls-final .ls-head { margin-bottom: 28px; }
.ls-final-search { max-width: 720px; margin: 0 auto; }
.ls-final-search .ea5-halo { position: relative; }
.ls-final-paths { display: flex; justify-content: center; gap: 14px 28px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.ls-final-paths .sep { color: var(--muted); font-size: 14px; }
.ls-final-paths .micro { flex-basis: 100%; text-align: center; font-size: 13px; color: #4f5a64; margin-top: 2px; }
body.theme-c .footer { margin-top: 0; }

/* Vaakaylivuodon esto: .ea5-halo::before (valokeila) ulottuu -140 px sivuille → clip (ei scroll-konteksti, sticky säilyy) */
html, body { overflow-x: clip; }
.ea-hero, .ls-final { overflow-x: clip; }
/* Mobiili: autodemon nosto rivittyy eikä katkea reunaan */
@media (max-width: 640px) { .ea6-scene .ea5-call { white-space: normal; max-width: 72%; line-height: 1.3; } }

/* ============================================================
   Loppusivu v2 (2.9.2026, Petrin layout-palaute)
   ============================================================ */

/* ---------- Pehmeämmät reveal-siirtymät ---------- */
.rv { transform: translateY(14px); transition-duration: 0.75s; will-change: opacity, transform; }

/* ---------- Prosessitarina: tasaus askeleeseen 1, detail-rajaukset, pehmeämpi vaihto ---------- */
.ls-visual { top: 104px; padding-top: clamp(28px, 3.5vw, 44px); }
.ls-panel { transition: opacity 0.9s ease, transform 1.1s var(--ease-out); transform: scale(1.02); will-change: opacity, transform; }
.ls-panel.active { transform: scale(1); }
.ls-panel img, .ls-step .mini img {
  transform: scale(var(--z, 1)); transform-origin: var(--ox, 0%) var(--oy, 0%);
}
.ls-step .mini { aspect-ratio: 16 / 9; }
.ls-step .mini img { height: 100%; object-fit: cover; }
.ls-panel .cap { z-index: 2; }
.ls-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(31, 42, 51, 0.06);
}

/* ---------- Bento: sävyt, animoidut palkit, kuvien hover ---------- */
.ls-tile.tint-warm { background: linear-gradient(160deg, #ffffff 0%, #fff1e4 100%); }
.ls-tile.tint-paper { background: linear-gradient(160deg, #f8f5ef 0%, #ffffff 100%); }
.ls-tile.tint-ink { background: linear-gradient(160deg, #1d2228 0%, #2b323a 100%); border-color: #1d2228; }
.ls-tile.tint-ink h3, .ls-tile.tint-ink .num-row b { color: #fff; }
.ls-tile.tint-ink p { color: #c9d1d8; }
.ls-tile.tint-ink .num-row span, .ls-tile.tint-ink .ex { color: #a7b4c0; }
.ls-tile.tint-ink .kicker { color: var(--orange); }
.ls-tile.tint-ink .ls-more { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.ls-tile.tint-ink .ls-more:hover { color: var(--orange); border-color: var(--orange); }
.ls-tile.tint-ink .shot { border-color: rgba(255, 255, 255, 0.18); box-shadow: -10px -10px 30px -14px rgba(0, 0, 0, 0.5); }
.ls-tile .shot img { transition: transform 1.4s var(--ease-out); transform-origin: left top; }
.ls-tile:hover .shot img { transform: scale(1.04); }
.ls-tile .siglist .bar { transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--ease-out); }
.ls-tile.in .siglist .bar { transform: scaleX(1); }
.ls-tile .siglist li:nth-child(2) .bar { transition-delay: 0.1s; }
.ls-tile .siglist li:nth-child(3) .bar { transition-delay: 0.2s; }
.ls-tile .siglist li:nth-child(4) .bar { transition-delay: 0.3s; }
.ls-tile .siglist li:nth-child(5) .bar { transition-delay: 0.4s; }
.ls-tile .ask span { opacity: 0; transform: translateY(6px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.ls-tile.in .ask span { opacity: 1; transform: none; }
.ls-tile.in .ask span:nth-child(2) { transition-delay: 0.35s; }
.ls-tile.in .ask span:nth-child(3) { transition-delay: 0.7s; }
@media (prefers-reduced-motion: reduce) {
  .ls-tile .siglist .bar, .ls-tile .ask span { transform: none; opacity: 1; transition: none; }
  .ls-tile:hover .shot img { transform: none; }
}

/* ---------- Kenelle: hakukenttä + pikavalinnat ---------- */
.ls-mid-search { max-width: 720px; margin: 0 auto 22px; }
.ls-mid-search .ea5-halo::before { display: none; }
#toimialat { overflow-x: clip; }

/* ---------- Sitaatit: vaakakaruselli ---------- */
.ls-quotes {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.ls-quotes .ls-quote { flex: 0 0 min(520px, 86%); scroll-snap-align: start; text-align: left; margin: 0; padding: 26px 28px; }
.ls-quotes .ls-quote blockquote { font-size: clamp(17px, 1.6vw, 20px); }
.ls-quotes-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
#asiakkaat .ls-head { margin-bottom: 28px; }

/* ---------- Hinnoittelu: oma tausta + sisällöt näkyviin ---------- */
#hinnat { background: linear-gradient(180deg, #ffffff 0%, #f6f2eb 12%, #f6f2eb 88%, #ffffff 100%); }
.ls-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.ls-plan {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 24px 22px 22px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.ls-plan:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(31, 42, 51, 0.3); }
.ls-plan.hot { border-color: var(--ink); box-shadow: 8px 8px 0 0 var(--orange-tint); }
.ls-plan.hot:hover { box-shadow: 8px 8px 0 0 var(--orange-tint), 0 18px 40px -22px rgba(31, 42, 51, 0.3); }
.ls-plan .tier { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ls-plan .tier .badge { background: var(--orange); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 10.5px; letter-spacing: 0.06em; }
.ls-plan .job { font-size: 16px; font-weight: 700; color: var(--ink); min-height: 2.6em; }
.ls-plan .price { font-size: clamp(28px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.ls-plan .price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ls-plan .seats { font-size: 12.5px; color: var(--muted); min-height: 2.4em; }
.ls-plan ul { list-style: none; display: grid; gap: 8px; margin: 12px 0 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); flex: 1; }
.ls-plan li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.45; color: #3d4852; }
.ls-plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.ls-plan li.hl { color: var(--ink); font-weight: 700; }
.ls-plan li.plus { padding-left: 0; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ls-plan li.plus::before { content: none; }
.ls-plan .btn { width: 100%; justify-content: center; }
.ls-plans-foot { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.ls-plans-foot .fine { font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .ls-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ls-plans { grid-template-columns: 1fr; } }

/* ---------- Hero-variantti: tumma (appin kirjautumissivun tyyli), vaihdin vain mockissa ---------- */
.mock-switch {
  position: fixed; bottom: 22px; left: 22px; z-index: 90; display: flex; align-items: center; gap: 4px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 8px 6px 16px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45); font-size: 12.5px; font-weight: 700;
}
.mock-switch > span { letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; opacity: 0.7; margin-right: 6px; }
.mock-switch button {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25); background: none; color: #fff; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.mock-switch button:hover { border-color: #fff; }
.mock-switch button.active { background: var(--orange); border-color: var(--orange); }

body.hero-dark .ea-hero.v6 {
  background:
    radial-gradient(900px 560px at 10% 0%, rgba(240, 118, 31, 0.26), transparent 70%),
    radial-gradient(700px 420px at 92% 12%, rgba(240, 118, 31, 0.10), transparent 70%),
    linear-gradient(180deg, #2e343c 0%, #262c33 55%, #1e2329 100%);
  padding-bottom: 0;
}
body.hero-dark .nav:not(.nav-solid) { background: linear-gradient(180deg, #2e343c 0%, #2c323a 100%); }
body.hero-dark .nav::before { background: #1e2329; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 26px -14px rgba(0, 0, 0, 0.5); }
body.hero-dark .nav-links a, body.hero-dark .lang-wrap > a { color: #e6ebef; }
body.hero-dark .nav-links a:hover, body.hero-dark .nav-links a[aria-current="page"] { color: #fff; }
body.hero-dark .lang-wrap > a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
body.hero-dark .nav-cta .login { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
body.hero-dark .nav-cta .login:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
body.hero-dark .nav-cta .btn-primary { background: var(--orange); color: #fff; }
body.hero-dark .nav-cta .btn-primary:hover { background: var(--orange-deep); }
body.hero-dark .nav-burger { color: #fff; }
body.hero-dark .ea-hero h1 { color: #fff; }
body.hero-dark .ea-hero .lead { color: #c9d1d8; }
body.hero-dark .ea5-try, body.hero-dark .ea5-try .lbl { color: #c9d1d8; }
body.hero-dark #ea-more-toggle { color: #e6ebef; border-color: rgba(255, 255, 255, 0.35); }
body.hero-dark #ea-more-toggle:hover { color: var(--orange); border-color: var(--orange); }
body.hero-dark .ea5-halo::before { background: radial-gradient(closest-side, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 72%); }
body.hero-dark .ea5-halo { box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6); }
body.hero-dark .ea5-shot {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  margin-bottom: -170px;               /* kortti limittyy vaaleaan alueeseen */
}
body.hero-dark .logos { padding-top: calc(170px + clamp(18px, 3vw, 34px)); }
body.hero-dark .h1-cycler { color: #c9d1d8; }
@media (max-width: 640px) {
  body.hero-dark .ea5-shot { margin-bottom: -60px; }
  body.hero-dark .logos { padding-top: calc(60px + 18px); }
}

/* Askeleet: passiivinen askel luettavampi */
.ls-step { opacity: 0.55; }

/* ============================================================
   Loppusivu v3 (2.9.2026, Petrin 2. layout-palaute)
   ============================================================ */

/* ---------- Tumma hero: hehkut alemmas, nav sulautuu, väljyys, kehys himmeämmäksi, tummaa tilaa kortin alle ---------- */
body.hero-dark .ea-hero.v6 {
  background:
    radial-gradient(1000px 640px at 14% 62%, rgba(240, 118, 31, 0.22), transparent 70%),
    radial-gradient(760px 480px at 88% 78%, rgba(240, 118, 31, 0.12), transparent 70%),
    linear-gradient(180deg, #2e343c 0%, #2b3138 30%, #242a31 70%, #1f242a 100%);
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(72px, 9vw, 128px);
}
body.hero-dark .nav:not(.nav-solid) { background: #2e343c; }
body.hero-dark .ea-hero.v2 .lead { margin-bottom: 28px; }
body.hero-dark .ea5-shot {
  margin-top: clamp(34px, 4vw, 52px);
  margin-bottom: 0;
  background: #1e2329;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 50px 110px -40px rgba(0, 0, 0, 0.8);
}
body.hero-dark .logos { padding-top: clamp(28px, 4vw, 48px); }
@media (max-width: 640px) { body.hero-dark .ea5-shot { margin-bottom: 0; } body.hero-dark .logos { padding-top: 28px; } }

/* ---------- Bento: animaatiot toistuvat (JS .anim, kun ruutu ≥60 % näkyvissä), hitaammin; 1. ruudun sävy vahvemmin ---------- */
.ls-tile.in .siglist .bar { transform: scaleX(0); }
.ls-tile.anim .siglist .bar { transform: scaleX(1); transition-duration: 1.4s; }
.ls-tile .siglist li:nth-child(2) .bar { transition-delay: 0.15s; }
.ls-tile .siglist li:nth-child(3) .bar { transition-delay: 0.3s; }
.ls-tile .siglist li:nth-child(4) .bar { transition-delay: 0.45s; }
.ls-tile .siglist li:nth-child(5) .bar { transition-delay: 0.6s; }
.ls-tile.in .ask span { opacity: 0; transform: translateY(6px); }
.ls-tile.anim .ask span { opacity: 1; transform: none; }
.ls-tile.anim .ask span:nth-child(2) { transition-delay: 0.45s; }
.ls-tile.anim .ask span:nth-child(3) { transition-delay: 0.9s; }
.ls-tile.tint-warm { background: linear-gradient(160deg, #ffffff 0%, #ffe9d6 100%); border-color: #f5d6bd; }
@media (prefers-reduced-motion: reduce) { .ls-tile.in .siglist .bar, .ls-tile.in .ask span { transform: none; opacity: 1; } }

/* ---------- Kenelle: ilmaa kentän ja korttien väliin ---------- */
.ls-mid-search { margin-bottom: 44px; }

/* ---------- Sitaatit: piilotettu vierityspalkki, pisteet, hillitty automaattinen liike ---------- */
.ls-quotes { scrollbar-width: none; scroll-behavior: smooth; }
.ls-quotes::-webkit-scrollbar { display: none; }
.ls-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.ls-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: var(--line); transition: background 0.3s, transform 0.3s;
}
.ls-dots button.active { background: var(--orange); transform: scale(1.25); }
.ls-quotes-note { margin-top: 10px; }

/* ---------- Hinnoittelu: puhdas lämmin tausta terävällä rajalla, elävämmät kortit ---------- */
#hinnat { background: linear-gradient(180deg, #fff6ee 0%, #fffaf6 100%); border-top: 1px solid #f2dcc7; }
.ls-plan { padding-top: 0; overflow: hidden; }
.ls-plan .head { min-height: 212px; padding: 22px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ls-plan .tier { padding-top: 6px; }
.ls-plan .job { min-height: 0; }
.ls-plan .seats { min-height: 0; }
.ls-plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--line); }
.ls-plan.t-free::before { background: linear-gradient(90deg, #cfd6dc, #e3e5e7); }
.ls-plan.t-seuranta::before { background: linear-gradient(90deg, #f6a25c, #f0761f); }
.ls-plan.t-pro::before { background: linear-gradient(90deg, #f0761f, #cf5e0d); }
.ls-plan.t-intel::before { background: linear-gradient(90deg, #171f26, #39434c); }
.ls-plan .price { display: flex; align-items: baseline; gap: 6px; }
.ls-plan.t-pro .price { color: var(--orange-deep); }
.ls-plan .mark {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--paper-warm); color: var(--ink);
}
.ls-plan.t-pro .mark { background: var(--orange-faint); color: var(--orange-deep); }
.ls-plan.t-intel .mark { background: var(--ink); color: #fff; }
.ls-plan.hot { transform: translateY(-6px); background: linear-gradient(180deg, #fffdfa 0%, #ffffff 40%); }
.ls-plan.hot:hover { transform: translateY(-9px); }
.ls-plan ul { margin-top: 10px; }
.ls-enterprise {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--ink); color: #fff; border-radius: 18px; padding: 20px 24px;
}
.ls-enterprise .tier { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.ls-enterprise .job { font-size: 18px; font-weight: 700; margin-top: 2px; }
.ls-enterprise .desc { color: #b7c2cc; font-size: 14.5px; margin-top: 4px; max-width: 62ch; }
.ls-enterprise .btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, 0.6); color: #fff; }
.ls-enterprise .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.ls-plans-foot { margin-top: 22px; }

/* ---------- Loppu-CTA: tumma kaista oranssihehkulla, footer tumma ---------- */
.ls-final {
  background:
    radial-gradient(900px 520px at 20% 100%, rgba(240, 118, 31, 0.28), transparent 70%),
    radial-gradient(700px 420px at 85% 0%, rgba(240, 118, 31, 0.10), transparent 70%),
    linear-gradient(180deg, #1f252b 0%, #171c21 100%);
  color: #fff;
}
.ls-final .ls-head h2 { color: #fff; }
.ls-final .ls-head p { color: #b7c2cc; }
.ls-final .ea5-halo::before { display: none; }
.ls-final .ea5-halo { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7); }
.ls-final .ls-final-paths .btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.ls-final .ls-final-paths .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.ls-final .ls-final-paths .btn-primary { background: var(--orange); color: #fff; }
.ls-final .ls-final-paths .sep, .ls-final .ls-final-paths .micro { color: #a7b4c0; }
body.theme-c .footer { background: #12171c; color: #c8d2da; border-top: 1px solid rgba(255, 255, 255, 0.08); }
body.theme-c .footer h4 { color: #fff; }
body.theme-c .footer a { color: #c8d2da; }
body.theme-c .footer a:hover { color: #fff; }
body.theme-c .footer-brand p, body.theme-c .footer-bottom { color: #8b98a3; }
body.theme-c .footer-bottom { border-color: rgba(255, 255, 255, 0.1); }
body.theme-c .footer-brand img { filter: none; }
body.theme-c .footer-brand img { content: url("tendera_logo.png"); }

/* ---------- Prosessitarina v3: räätälöidyt "screen"-kortit, keskitetty sticky, pidemmät askeleet ---------- */
.ls-step { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; }
.ls-step .num { top: 50%; transform: translateY(-50%); margin-top: -38px; }
.ls-visual { top: calc(50vh - 205px); padding-top: 0; }
.ls-panel { background: #f4f1ec; }
.ls-panel.active { transform: scale(1); }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f4f1ec; font-family: var(--sans); color: var(--ink); }
.scr-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 600; }
.scr-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e3e5e7; }
.scr-bar i:first-child { background: #f6a25c; }
.scr-bar span { margin-left: 8px; }
.scr-body { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
/* yhteiset elementit */
.scr .lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.scr .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.scr .chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.ls-panel.active .scr .chips span, .ls-step.active .mini .scr .chips span { opacity: 1; transform: none; }
.scr .chips span:nth-child(1) { transition-delay: 0.25s; } .scr .chips span:nth-child(2) { transition-delay: 0.4s; } .scr .chips span:nth-child(3) { transition-delay: 0.55s; } .scr .chips span:nth-child(4) { transition-delay: 0.7s; }
/* 1 profiili */
.scr-input { background: #fff; border: 1.5px solid var(--ink); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.scr-input .val { font-size: 15px; font-weight: 700; }
.scr-input .val em { font-style: normal; color: var(--muted); font-weight: 500; }
.scr-gen { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--orange-deep); font-weight: 700; }
.scr-gen .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(240, 118, 31, 0.5); animation: scr-pulse 1.8s infinite; }
@keyframes scr-pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 118, 31, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(240, 118, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 118, 31, 0); } }
.scr-toggle { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.scr-toggle .sw { width: 34px; height: 20px; border-radius: 999px; background: var(--green); position: relative; flex: 0 0 auto; }
.scr-toggle .sw i { position: absolute; top: 3px; left: 17px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
/* 2 lista */
.scr-list { gap: 8px; }
.scr-list .row { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; opacity: 0; transform: translateX(14px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.ls-panel.active .scr-list .row, .ls-step.active .mini .scr-list .row { opacity: 1; transform: none; }
.scr-list .row:nth-child(1) { transition-delay: 0.15s; } .scr-list .row:nth-child(2) { transition-delay: 0.3s; } .scr-list .row:nth-child(3) { transition-delay: 0.45s; } .scr-list .row:nth-child(4) { transition-delay: 0.6s; } .scr-list .row:nth-child(5) { transition-delay: 0.75s; }
.scr-list .row.up { background: #fff7f0; border-color: #f5d6bd; }
.scr-list .tag { grid-row: span 2; justify-self: start; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 6px; padding: 4px 7px; text-align: center; min-width: 78px; }
.scr-list .tag.pub { background: var(--paper-warm); color: var(--ink-soft); }
.scr-list .tag.now { background: var(--orange); color: #fff; }
.scr-list .tag.soon { background: var(--orange-tint); color: var(--orange-deep); }
.scr-list .tag.sig { background: var(--green-tint); color: var(--green); }
.scr-list .t { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-list .m { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 3 ostaja */
.scr-buyer .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scr-buyer .kpis div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.scr-buyer .kpis b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.scr-buyer .kpis span { font-size: 11px; color: var(--muted); font-weight: 600; }
.scr-buyer .sub { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }
.scr-buyer .bars { list-style: none; display: grid; gap: 7px; }
.scr-buyer .bars li { display: grid; grid-template-columns: 1fr 42%; align-items: center; gap: 10px; font-size: 12.5px; }
.scr-buyer .bars .lbl { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-buyer .bars .bar { height: 8px; border-radius: 4px; background: var(--orange); width: var(--w); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out); }
.ls-panel.active .scr-buyer .bar, .ls-step.active .mini .scr-buyer .bar { transform: scaleX(1); }
.scr-buyer .bars li:nth-child(2) .bar { transition-delay: 0.12s; } .scr-buyer .bars li:nth-child(3) .bar { transition-delay: 0.24s; } .scr-buyer .bars li:nth-child(4) .bar { transition-delay: 0.36s; }
.scr-buyer .bars .n { position: absolute; right: 0; font-size: 11.5px; color: var(--muted); }
.scr-buyer .bars li { position: relative; padding-right: 26px; }
/* 4 kanban */
.scr-kanban { flex-direction: row; gap: 10px; }
.scr-kanban .col { flex: 1; background: #ecebe6; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.scr-kanban .ch { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; padding: 2px 4px; }
.scr-kanban .ch b { color: var(--ink); }
.scr-kanban .card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; display: grid; gap: 3px; box-shadow: 0 1px 2px rgba(31, 42, 51, 0.05); }
.scr-kanban .card span { font-size: 12px; font-weight: 700; line-height: 1.25; }
.scr-kanban .card small { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.scr-kanban .card .av { margin-left: auto; font-style: normal; font-size: 9px; font-weight: 800; color: #fff; background: var(--ink); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; }
.scr-kanban .card.ghost { background: transparent; border: 1.5px dashed var(--line); min-height: 44px; box-shadow: none; }
.scr-kanban .card.win { border-color: var(--green); box-shadow: inset 3px 0 0 var(--green); }
.scr-kanban .card.mover { transition: transform 1.2s var(--ease-out) 0.6s, box-shadow 0.6s; }
.ls-panel.active .scr-kanban .card.mover, .ls-step.active .mini .scr-kanban .card.mover { transform: translateX(calc(100% + 26px)); box-shadow: 0 12px 24px -10px rgba(31, 42, 51, 0.35); }
@media (max-width: 940px) {
  .ls-step { min-height: 0; display: block; }
  .ls-step .num { top: clamp(28px, 3.5vw, 44px); transform: none; margin-top: 0; }
  .ls-step .mini { position: relative; aspect-ratio: 16 / 9; background: #f4f1ec; }
  .ls-step .mini .scr { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .scr .chips span, .scr-list .row, .scr-buyer .bar { opacity: 1; transform: none; transition: none; }
  .scr-kanban .card.mover { transition: none; }
  .scr-gen .dot { animation: none; }
}
.scr-body { padding: 16px 18px; gap: 9px; }
.scr-list .row { padding: 8px 11px; }
@media (max-width: 640px) { .scr-kanban { gap: 6px; } .scr-kanban .col { padding: 6px; } .scr-kanban .ch { font-size: 9.5px; } .scr-kanban .card span { font-size: 10.5px; } .scr-kanban .card small { font-size: 9px; } }
/* Kuvateksti-pilleri yläpalkkiin oikealle, ettei se peitä sisältöä */
.ls-panel .cap { left: auto; right: 10px; bottom: auto; top: 6px; font-size: 11.5px; padding: 6px 10px; box-shadow: none; }
@media (max-width: 940px) { .ls-step .mini { aspect-ratio: 4 / 3; } .ls-step .mini .scr-body { padding: 14px; } }

/* ============================================================
   Loppusivu v4 (2.9.2026, Petrin 3. palaute)
   ============================================================ */

/* ---------- Tumma hero oletus: väljyys, hehkut, logot tummassa ---------- */
body.hero-dark .ea-hero.v6 {
  background:
    radial-gradient(1100px 700px at 12% 64%, rgba(240, 118, 31, 0.30), transparent 70%),
    radial-gradient(640px 380px at 84% 34%, rgba(240, 118, 31, 0.13), transparent 70%),
    linear-gradient(180deg, #2e343c 0%, #2b3138 30%, #242a31 70%, #1f242a 100%);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
body.hero-dark .ea-hero.v5 h1 { margin-bottom: 24px; }
body.hero-dark .ea-hero.v2 .lead { margin-bottom: 36px; }
body.hero-dark .ea5-try { margin-top: 14px; }
body.hero-dark .ea5-shot { margin-top: clamp(56px, 6vw, 84px); }
body.hero-dark .logos { background: #1f242a; padding-top: clamp(36px, 4.5vw, 60px); padding-bottom: clamp(44px, 5.5vw, 76px); }
body.hero-dark .logos .label { color: #8b98a3; }
body.hero-dark .logos .mark-img { filter: brightness(0) invert(1); opacity: 0.62; }
body.hero-dark .logos .mark-img:hover { opacity: 1; filter: brightness(0) invert(1); }
.mock-switch { display: none; }
/* autodemo: hienovarainen pulssi korostuskehyksessä */
.ea6-scene.on .ea5-spot { animation: ea6pulse 2.6s ease-in-out infinite 0.8s; }
@keyframes ea6pulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(240, 118, 31, 0.16); } 50% { box-shadow: 0 0 0 9px rgba(240, 118, 31, 0.06); } }
@media (prefers-reduced-motion: reduce) { .ea6-scene.on .ea5-spot { animation: none; } }

/* ---------- Tarina: valkoinen näyttö, korkeampi (5:4), kohdistus, esiaktivointi, A/B-tekniikka ---------- */
.ls-story-pin { display: contents; }
.ls-panels { aspect-ratio: 5 / 4; }
.ls-panel, .scr { background: #fff; }
.ls-panel { border-color: #e6e3dd; box-shadow: 0 2px 8px rgba(31, 42, 51, 0.05), 0 30px 70px -30px rgba(31, 42, 51, 0.25); }
.ls-panel.pre { opacity: 1; transform: none; }
.ls-visual { top: calc(50vh - 250px); margin-top: max(0px, calc(29vh - 250px)); }
.scr-bar { background: #fbfaf8; }
.scr-body { padding: 18px 20px; gap: 11px; }
.scr-list .row, .scr-buyer .kpis div, .scr-input { background: #fbfaf8; }
.scr-kanban .col { background: #f3f1ec; }
.scr-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.scr-foot b { color: var(--ink); font-weight: 800; }
.scr-btn { background: var(--orange); color: #fff; border-radius: 8px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; }
.scr-bar .tabs { margin-left: auto; display: flex; gap: 4px; }
.scr-bar .tabs b, .scr-bar .tabs em { font-style: normal; font-size: 11px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.scr-bar .tabs b { background: var(--ink); color: #fff; border-color: var(--ink); }
.scr-kanban .col { border-top: 4px solid #cfd6dc; border-radius: 8px 8px 10px 10px; }
.scr-kanban .col.c1 { border-top-color: #3aa76d; } .scr-kanban .col.c2 { border-top-color: #4a90d9; } .scr-kanban .col.c3 { border-top-color: #f0961f; } .scr-kanban .col.c4 { border-top-color: #9b6bd6; } .scr-kanban .col.c5 { border-top-color: #2fb1a5; }
.scr-kanban .card { grid-template-columns: auto 1fr; }
.scr-kanban .card .bd { grid-row: span 3; align-self: start; font-style: normal; font-size: 9px; font-weight: 800; width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; background: #e8ebee; color: var(--ink); }
.scr-kanban .card .bd.eu { background: var(--ink); color: #fff; } .scr-kanban .card .bd.fi { background: #8b98a3; color: #fff; }
.scr-kanban .card span { font-size: 11px; }
.scr-kanban .card small { font-size: 10px; }
.scr-kanban .card em { font-style: normal; font-size: 9.5px; color: #c0392b; font-weight: 600; }
.scr-kanban .card.win em { color: var(--green); }
.scr-kanban .ch { font-size: 10px; }
/* B: koko osio kiinnitetty, sisältö vaihtuu rullauksen mukaan */
.ls-story.mode-b { display: block; height: 420vh; }
.ls-story.mode-b .ls-story-pin { display: grid; grid-template-columns: 44px minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 48px); align-items: center; position: sticky; top: 0; height: 100vh; }
.ls-story.mode-b .ls-steps { display: grid; }
.ls-story.mode-b .ls-step { grid-area: 1 / 1; min-height: 0; display: block; padding: 0; border: none; opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); pointer-events: none; }
.ls-story.mode-b .ls-step.active { opacity: 1; transform: none; pointer-events: auto; }
.ls-story.mode-b .ls-step .num { display: none; }
.ls-story.mode-b .ls-visual { position: static; margin: 0; top: auto; }
.ls-rail { display: none; }
.ls-story.mode-b .ls-rail { display: grid; gap: 10px; align-content: center; }
.ls-rail button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font: 700 13px var(--sans); cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.ls-rail button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ls-mode { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; background: var(--paper-warm); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 11.5px; }
.ls-mode > span { letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; color: var(--muted); font-weight: 800; margin-right: 4px; }
.ls-mode button { border: none; background: none; font: 700 12px var(--sans); color: var(--ink-soft); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.ls-mode button.active { background: var(--ink); color: #fff; }
@media (max-width: 940px) { .ls-story.mode-b { height: auto; } .ls-story.mode-b .ls-story-pin { display: block; position: static; height: auto; } .ls-story.mode-b .ls-step { opacity: 1; transform: none; position: static; padding: 28px 0 28px 56px; } .ls-story.mode-b .ls-step .num { display: grid; } .ls-mode { display: none; } .ls-story.mode-b .ls-rail { display: none; } }

/* ---------- Bento: 1. ruutu brändioranssi, viimeinen valkoinen + epäsymmetriset pillit ---------- */
.ls-tile.tint-orange { background: linear-gradient(160deg, #f0761f 0%, #d9650f 100%); border-color: #cf5e0d; }
.ls-tile.tint-orange h3, .ls-tile.tint-orange .ls-more { color: #fff; }
.ls-tile.tint-orange p { color: #fff2e8; }
.ls-tile.tint-orange .kicker { color: #ffd9bd; }
.ls-tile.tint-orange .ls-more { border-color: rgba(255, 255, 255, 0.45); }
.ls-tile.tint-orange .ls-more:hover { color: #fff; border-color: #fff; }
.ls-tile.tint-orange .shot { border-color: rgba(255, 255, 255, 0.35); box-shadow: -10px -10px 30px -14px rgba(0, 0, 0, 0.35); }
.ls-tile.tint-ask { background: #fff; border-color: #f2dcc7; }
.ls-tile.tint-ask .ask { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-start; max-width: 620px; }
.ls-tile.tint-ask .ask span { width: auto; }
.ls-tile.tint-ask .ask .o1 { margin-left: 26px; } .ls-tile.tint-ask .ask .o2 { margin-top: 4px; } .ls-tile.tint-ask .ask .o3 { margin-left: 12px; background: var(--orange-faint); border-color: #f5d6bd; color: var(--orange-deep); }
.ls-tile.anim .ask span:nth-child(4) { transition-delay: 1.15s; } .ls-tile.anim .ask span:nth-child(5) { transition-delay: 1.4s; }

/* ---------- Tumma "miksi"-kaista: porrastettu ilmestyminen, toistuu ---------- */
#miksi .ls-why > div { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
#miksi .wrap.anim .ls-why > div { opacity: 1; transform: none; }
#miksi .wrap.anim .ls-why > div:nth-child(2) { transition-delay: 0.18s; } #miksi .wrap.anim .ls-why > div:nth-child(3) { transition-delay: 0.36s; }
#miksi .ls-sources span { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
#miksi .wrap.anim .ls-sources span { opacity: 1; transform: none; }
#miksi .wrap.anim .ls-sources span:nth-child(2) { transition-delay: 0.5s; } #miksi .wrap.anim .ls-sources span:nth-child(3) { transition-delay: 0.58s; } #miksi .wrap.anim .ls-sources span:nth-child(4) { transition-delay: 0.66s; } #miksi .wrap.anim .ls-sources span:nth-child(5) { transition-delay: 0.74s; } #miksi .wrap.anim .ls-sources span:nth-child(6) { transition-delay: 0.82s; } #miksi .wrap.anim .ls-sources span:nth-child(7) { transition-delay: 0.9s; } #miksi .wrap.anim .ls-sources span:nth-child(8) { transition-delay: 0.98s; } #miksi .wrap.anim .ls-sources span:nth-child(9) { transition-delay: 1.06s; }
#miksi .ls-why > div.rv, #miksi .ls-sources.rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { #miksi .ls-why > div, #miksi .ls-sources span { opacity: 1; transform: none; transition: none; } }

/* ---------- Kenelle: enemmän ilmaa, kevyempi varjo ---------- */
.ls-mid-search { margin-bottom: 56px; }
.ls-mid-search .ea5-halo { box-shadow: 0 10px 28px -18px rgba(31, 42, 51, 0.28); }

/* ---------- Hinnasto: nimet tageina, Enterprise korttimaisena, alaviiva ---------- */
#hinnat { border-bottom: 1px solid #f2dcc7; }
.ls-plan .tier .tag { display: inline-block; background: var(--paper-warm); color: var(--ink); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; letter-spacing: 0.08em; }
.ls-plan.t-seuranta .tier .tag { background: var(--orange-faint); color: var(--orange-deep); }
.ls-plan.t-pro .tier .tag { background: var(--orange); color: #fff; }
.ls-plan.t-intel .tier .tag { background: var(--ink); color: #fff; }
.ls-plan .head { min-height: 200px; }
.ls-enterprise { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; align-items: center; gap: clamp(16px, 3vw, 40px); border-top: 5px solid #39434c; border-radius: 18px; }
.ls-enterprise .tier .tag { display: inline-block; background: #39434c; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; letter-spacing: 0.08em; font-weight: 800; text-transform: uppercase; }
.ls-enterprise .job { margin-top: 10px; }
.ls-enterprise .price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; color: #fff; }
.ls-enterprise .price small { font-size: 13px; font-weight: 500; color: #a7b4c0; letter-spacing: 0; }
.ls-enterprise .ent-list { list-style: none; display: grid; gap: 7px; }
.ls-enterprise .ent-list li { position: relative; padding-left: 22px; font-size: 14px; color: #dce3e9; line-height: 1.45; }
.ls-enterprise .ent-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.ls-enterprise .ent-list li.plus { padding-left: 0; color: #8b98a3; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ls-enterprise .ent-list li.plus::before { content: none; }
.ls-enterprise .soon { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); border: 1px solid rgba(240, 118, 31, 0.5); border-radius: 999px; padding: 2px 7px; }
@media (max-width: 900px) { .ls-enterprise { grid-template-columns: 1fr; } }

/* ---------- Loppu-CTA: voimakkaampi hehku kuten herossa ---------- */
.ls-final {
  background:
    radial-gradient(1000px 600px at 16% 100%, rgba(240, 118, 31, 0.40), transparent 70%),
    radial-gradient(640px 380px at 86% 8%, rgba(240, 118, 31, 0.16), transparent 70%),
    linear-gradient(180deg, #1f252b 0%, #171c21 100%);
}
/* Tarina: näytön yläreuna askeleen 1 otsikon tasolle sisääntulossa; kanban-otsikot */
.ls-visual { margin-top: max(0px, calc(29vh - 92px)); }
.scr-kanban .ch { gap: 6px; }
.scr-kanban .ch b { flex: 0 0 auto; }
.scr-kanban .card.ghost { min-height: 74px; }

/* ============================================================
   Loppusivu v5 (2.9.2026, Petrin 4. palaute)
   ============================================================ */

/* ---------- Hero: kevyempi ja hieman isompi H1 (Semrush-kokeilu) ---------- */
body.hero-dark .ea-hero.v5 h1 { font-weight: 600; font-size: clamp(44px, 6.1vw, 76px); letter-spacing: -0.028em; line-height: 1.04; max-width: 1000px; }

/* ---------- Tarina v5: kompakti A (vieritys) ja B (haitari + automaattinen eteneminen), isompi näyttö ---------- */
#nain-toimii .wrap { max-width: 1260px; }
.ls-story { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ls-story-pin { display: contents; }
.ls-rail, .ls-story .ls-rail { display: none; }
.ls-step { min-height: 0; display: block; padding: 26px 0 26px 60px; opacity: 0.5; }
.ls-step + .ls-step { border-top: none; }
.ls-step .num { top: 26px; transform: none; margin-top: 0; width: 38px; height: 38px; font-size: 14px; }
.ls-step h3 { font-size: clamp(20px, 2vw, 25px); }
.ls-step .body { overflow: hidden; }
.ls-step .bar { display: none; }
.ls-panels { aspect-ratio: 4 / 3; }
.ls-visual { top: 112px; margin-top: 0; }
.scr { font-size: 14px; }
.scr .chips span { font-size: 13px; padding: 6px 11px; }
.scr-list .t { font-size: 14px; } .scr-list .m { font-size: 12.5px; }
.scr-buyer .kpis b { font-size: 28px; } .scr-buyer .kpis span { font-size: 12px; } .scr-buyer .bars li { font-size: 13.5px; } .scr-buyer .bars .lbl { font-size: 13.5px; }
.scr-kanban .card span { font-size: 12px; } .scr-kanban .card small { font-size: 11px; } .scr-kanban .card em { font-size: 10.5px; } .scr-kanban .ch { font-size: 10.5px; }
.scr-body { padding: 20px 22px; gap: 12px; }
/* A: vieritys — askeleet lähekkäin, näyttö kiinnittyy navin alle */
.ls-story.mode-a .ls-steps { padding-top: 6px; }
/* B: haitari — kaikki otsikot näkyvissä, aktiivinen avautuu, edistymispalkki, näyttö keskellä */
.ls-story.mode-b { align-items: center; }
.ls-story.mode-b .ls-step { opacity: 1; padding: 18px 0 18px 60px; cursor: pointer; transition: opacity 0.4s; }
.ls-story.mode-b .ls-step:not(.active) h3 { color: #6a747e; font-weight: 600; }
.ls-story.mode-b .ls-step .num { top: 18px; }
.ls-story.mode-b .ls-step .body { max-height: 0; opacity: 0; transition: max-height 0.55s var(--ease-out), opacity 0.4s var(--ease-out); }
.ls-story.mode-b .ls-step.active .body { max-height: 320px; opacity: 1; }
.ls-story.mode-b .ls-step .bar { display: block; position: absolute; left: 60px; right: 0; bottom: 0; height: 2px; background: var(--line-soft); overflow: hidden; }
.ls-story.mode-b .ls-step .bar i { display: block; height: 100%; width: 0; background: var(--orange); }
.ls-story.mode-b .ls-step.active .bar i { animation: lsprog var(--dur, 7s) linear forwards; }
.ls-story.mode-b.paused .ls-step.active .bar i { animation-play-state: paused; }
@keyframes lsprog { from { width: 0; } to { width: 100%; } }
.ls-story.mode-b .ls-visual { position: static; }
.ls-story.mode-b .ls-step .mini { display: none; }
@media (max-width: 940px) {
  .ls-story, .ls-story.mode-b { grid-template-columns: 1fr; }
  .ls-story.mode-b .ls-step { cursor: default; opacity: 1; }
  .ls-story.mode-b .ls-step .body { max-height: none; opacity: 1; }
  .ls-story.mode-b .ls-step .bar { display: none; }
  .ls-story.mode-b .ls-step .mini { display: block; }
  .ls-step .mini { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .ls-story.mode-b .ls-step.active .bar i { animation: none; width: 100%; } }

/* ---------- Bento: 1. ruutu oranssi liuku alhaalta ylös; viimeinen ruutu pillit oikeaan laitaan asti ---------- */
.ls-tile.tint-orange { background: linear-gradient(0deg, rgba(240, 118, 31, 0.62) 0%, rgba(240, 118, 31, 0.22) 45%, rgba(255, 255, 255, 0) 100%) #fff; border-color: #f2c7a6; }
.ls-tile.tint-orange h3 { color: var(--ink); }
.ls-tile.tint-orange p { color: #3d4852; }
.ls-tile.tint-orange .kicker { color: var(--orange-deep); }
.ls-tile.tint-orange .ls-more { color: var(--ink); border-color: rgba(31, 42, 51, 0.25); }
.ls-tile.tint-orange .ls-more:hover { color: var(--orange-deep); border-color: var(--orange); }
.ls-tile.tint-orange .shot { border-color: rgba(255, 255, 255, 0.7); box-shadow: -10px -10px 30px -14px rgba(120, 60, 10, 0.35); }
.ls-tile.tint-ask { background: linear-gradient(90deg, #ffffff 0%, #fbf6ef 100%); }
.ls-tile.tint-ask { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); align-items: center; }
.ls-tile.tint-ask .ask { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px 8px; max-width: none; width: 100%; }
.ls-tile.tint-ask .ask span { margin: 0; }
.ls-tile.tint-ask .ask span:nth-child(1) { grid-column: 1 / 8; justify-self: start; }
.ls-tile.tint-ask .ask span:nth-child(2) { grid-column: 6 / 13; justify-self: end; }
.ls-tile.tint-ask .ask span:nth-child(3) { grid-column: 2 / 8; justify-self: start; }
.ls-tile.tint-ask .ask span:nth-child(4) { grid-column: 7 / 13; justify-self: end; }
.ls-tile.tint-ask .ask span:nth-child(5) { grid-column: 4 / 11; justify-self: center; }
@media (max-width: 940px) { .ls-tile.tint-ask { grid-template-columns: 1fr; } .ls-tile.tint-ask .ask span { grid-column: 1 / -1 !important; justify-self: start !important; } }
.ls-bento-wrap { background: linear-gradient(180deg, #ffffff 0%, #f8f2ea 25%, #f6eee3 50%, #f8f2ea 75%, #ffffff 100%); }

/* ---------- Sitaatit: lausujan logo ---------- */
.ls-quote .logo { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ls-quote .logo img { height: 22px; width: auto; filter: grayscale(1); opacity: 0.75; }
.ls-quote .logo .who { margin-top: 0; }

/* ---------- Hinnasto: nimet isommalla ilman tageja ja ikoneita, Enterprise valkoisena, laskutusvälin valinta ---------- */
.ls-plan .mark { display: none; }
.ls-plan .tier .tag { background: none !important; color: var(--ink) !important; padding: 0; font-size: 20px; letter-spacing: -0.01em; text-transform: none; font-weight: 800; }
.ls-plan .tier { padding-top: 10px; }
.ls-plan .job { font-size: 15px; font-weight: 600; color: #4f5a64; }
.ls-plan::before { display: none; }
.ls-plan .head { min-height: 190px; }
.ls-enterprise { background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-top: 1.5px solid var(--line); }
.ls-enterprise .tier .tag { background: none; color: var(--ink); padding: 0; font-size: 20px; letter-spacing: -0.01em; text-transform: none; }
.ls-enterprise .job { color: #4f5a64; font-size: 15px; font-weight: 600; }
.ls-enterprise .price { color: var(--ink); }
.ls-enterprise .price small { color: var(--muted); }
.ls-enterprise .ent-list li { color: #3d4852; }
.ls-enterprise .ent-list li::before { color: var(--green); }
.ls-enterprise .ent-list li.plus { color: var(--muted); }
.ls-enterprise .btn-ghost-light { border: 1.5px solid var(--ink); color: var(--ink); }
.ls-enterprise .btn-ghost-light:hover { background: var(--ink); color: #fff; }
.ls-interval { display: flex; justify-content: center; margin: -18px 0 26px; }
.ls-interval .seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.ls-interval button { border: none; background: none; font: 700 13.5px var(--sans); color: var(--ink-soft); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.ls-interval button.active { background: var(--ink); color: #fff; }
.ls-interval button:disabled { color: #b7bec5; cursor: default; }
.ls-plan .price .na { font-size: 15px; font-weight: 600; color: var(--muted); }
.ls-plan .cad { font-size: 12.5px; color: var(--muted); }
/* B-haitari: kumoa v4:n kiinnitetyn version säännöt */
.ls-story.mode-b { display: grid; height: auto; }
.ls-story.mode-b .ls-steps { display: block; }
.ls-story.mode-b .ls-step { grid-area: auto; position: relative; transform: none; pointer-events: auto; border: none; }
.ls-story.mode-b .ls-step .num { display: grid; }
.ls-story.mode-b .ls-visual { position: static; margin: 0; top: auto; }
@media (max-width: 940px) { .ls-story.mode-b { height: auto; } .ls-story.mode-b .ls-step { padding: 26px 0 26px 56px; } }

/* ============================================================
   Loppusivu v6 (2.9.2026, Petrin 5. palaute)
   ============================================================ */

/* ---------- Hero: valoisampi, hehkua oikealle ja alas, logot heron sisällä ---------- */
body.hero-dark .ea-hero.v6 {
  background:
    radial-gradient(1100px 700px at 12% 58%, rgba(240, 118, 31, 0.30), transparent 70%),
    radial-gradient(900px 560px at 88% 82%, rgba(240, 118, 31, 0.20), transparent 70%),
    radial-gradient(700px 420px at 84% 30%, rgba(240, 118, 31, 0.10), transparent 70%),
    radial-gradient(1200px 400px at 50% 100%, rgba(240, 118, 31, 0.12), transparent 70%),
    linear-gradient(180deg, #333941 0%, #2d333b 30%, #272d34 65%, #232830 100%);
  padding-bottom: 0;
}
body.hero-dark .ea-hero .logos { background: transparent; padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 84px); }
body.hero-dark .ea-hero .logos .mark-img { opacity: 0.66; }
.ea-hero .logos { background: transparent; }
/* H1: säilyy kevyenä, pykälä isompi */
body.hero-dark .ea-hero.v5 h1 { font-size: clamp(46px, 6.4vw, 80px); }

/* ---------- Tarina: A kohdistus, B kiinnitetty rullauksella, C kappaleet ---------- */
.ls-story .ls-step .bar { display: none !important; }
.ls-story.mode-a .ls-visual { top: 112px; }
.ls-story.mode-a .ls-step { padding: 22px 0 22px 60px; }
/* B: osio kiinnittyy, otsikot näkyvissä, aktiivinen avautuu, vaihtuu rullatessa */
.ls-story.mode-b { display: block; height: calc(4 * 72vh + 160px); }
.ls-story.mode-b .ls-story-pin { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(28px, 4vw, 64px); align-items: start; position: sticky; top: 104px; }
.ls-story.mode-b .ls-steps { display: block; padding-top: 4px; }
.ls-story.mode-b .ls-step { grid-area: auto; position: relative; transform: none; pointer-events: auto; opacity: 1; padding: 16px 0 16px 60px; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
.ls-story.mode-b .ls-step:not(.active) h3 { color: #6a747e; font-weight: 600; }
.ls-story.mode-b .ls-step .num { top: 16px; display: grid; }
.ls-story.mode-b .ls-step .body { max-height: 0; opacity: 0; transition: max-height 0.5s var(--ease-out), opacity 0.35s var(--ease-out); }
.ls-story.mode-b .ls-step.active .body { max-height: 320px; opacity: 1; }
.ls-story.mode-b .ls-visual { position: static; margin: 0; top: auto; }
.ls-story.mode-b .ls-step .mini { display: none; }
/* C: täysleveät kappaleet, oma näyttö jokaisella, vuorotellen */
.ls-story.mode-c { display: block; }
.ls-story.mode-c .ls-story-pin { display: block; }
.ls-story.mode-c .ls-visual { display: none; }
.ls-story.mode-c .ls-steps { display: grid; gap: clamp(56px, 7vw, 96px); }
.ls-story.mode-c .ls-step { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; opacity: 1; padding: 0 0 0 60px; min-height: 0; }
.ls-story.mode-c .ls-step .num { top: 4px; }
.ls-story.mode-c .ls-step .body { max-height: none; opacity: 1; }
.ls-story.mode-c .ls-step .mini { display: block; margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 18px; border: 1px solid #e6e3dd; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(31, 42, 51, 0.05), 0 30px 70px -30px rgba(31, 42, 51, 0.25); grid-row: 1 / span 3; grid-column: 2; }
.ls-story.mode-c .ls-step:nth-child(even) .mini { grid-column: 1; }
.ls-story.mode-c .ls-step:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); padding: 0 60px 0 0; }
.ls-story.mode-c .ls-step:nth-child(even) h3, .ls-story.mode-c .ls-step:nth-child(even) .body { grid-column: 2; }
.ls-story.mode-c .ls-step:nth-child(even) .num { left: auto; right: 0; }
.ls-story.mode-c .ls-step h3 { align-self: end; }
.ls-story.mode-c .ls-step .mini .scr { font-size: 14px; }
@media (max-width: 940px) {
  .ls-story.mode-b { height: auto; } .ls-story.mode-b .ls-story-pin { display: block; position: static; } .ls-story.mode-b .ls-step { cursor: default; } .ls-story.mode-b .ls-step .body { max-height: none; opacity: 1; } .ls-story.mode-b .ls-step .mini { display: block; }
  .ls-story.mode-c .ls-step, .ls-story.mode-c .ls-step:nth-child(even) { grid-template-columns: 1fr; padding: 0 0 0 56px; }
  .ls-story.mode-c .ls-step:nth-child(even) .mini, .ls-story.mode-c .ls-step .mini { grid-column: 1; grid-row: auto; }
  .ls-story.mode-c .ls-step:nth-child(even) h3, .ls-story.mode-c .ls-step:nth-child(even) .body { grid-column: 1; }
  .ls-story.mode-c .ls-step:nth-child(even) .num { left: 0; right: auto; }
}

/* ---------- Bento: 1. ruutu haaleampi alku; viimeinen sävykkäämpi, pillit samanväriset ja siistissä kahdessa palstassa ---------- */
.ls-tile.tint-orange { background: linear-gradient(0deg, rgba(240, 118, 31, 0.50) 0%, rgba(240, 118, 31, 0.16) 48%, rgba(255, 255, 255, 0) 100%) #fff; }
.ls-tile.tint-ask { background: linear-gradient(90deg, #fdf6ee 0%, #f8ede0 100%); border-color: #efd9c4; }
.ls-tile.tint-ask .ask { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.ls-tile.tint-ask .ask span, .ls-tile.tint-ask .ask .o3 { grid-column: auto !important; justify-self: stretch !important; text-align: left; background: #fff; border-color: #efd9c4; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-tile.tint-ask .ask span:nth-child(odd) { justify-self: start !important; }
.ls-tile.tint-ask .ask span:nth-child(even) { justify-self: end !important; }
.ls-tile.tint-ask .ask span:nth-child(5) { grid-column: 1 / -1 !important; justify-self: center !important; }

/* ---------- Sitaatit: nimi ensin, logo alla isompana ---------- */
.ls-quotes .ls-quote .who { margin-top: 16px; color: var(--ink-soft); font-weight: 600; }
.ls-quotes .ls-quote .logo { margin-top: 10px; }
.ls-quotes .ls-quote .logo img { height: 28px; filter: grayscale(1); opacity: 0.8; }
.ls-quotes { overflow-anchor: none; scroll-behavior: auto; }

/* ---------- Hinnasto: kadenssit korttiin, kuvausrivi, Enterprise siistiksi ---------- */
.ls-plan .job { font-size: 14.5px; font-weight: 600; color: #4f5a64; min-height: 0; }
.ls-plan .cad { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ls-plan .cad span, .ls-enterprise .cad span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; }
.ls-plan .cad span.on, .ls-enterprise .cad span.on { color: var(--ink); border-color: var(--ink); background: #fff; }
.ls-plan .head { min-height: 200px; }
.ls-enterprise .tier .tag { font-size: 20px; font-weight: 800; }
.ls-enterprise .job { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: #4f5a64; }
.ls-enterprise .cad { display: flex; margin-top: 10px; }

/* ---------- Loppu-CTA: ilmaa kentän ja nappien väliin ---------- */
.ls-final-paths { margin-top: 34px; }
/* H1 välimuoto: Aptos Displaystä on vain Regular ja Bold → regular + kevyt tekstiviiva antaa semibold-vaikutelman */
body.hero-dark .ea-hero.v5 h1 { font-weight: 400; -webkit-text-stroke: 0.65px currentColor; font-size: clamp(46px, 6.4vw, 80px); }
/* A: askeleet korkeammiksi ja keskitetyiksi, jotta korostettu askel ja näyttö kohtaavat keskilinjassa */
.ls-story.mode-a .ls-step { min-height: 300px; display: flex; flex-direction: column; justify-content: center; padding: 22px 0 22px 60px; }
.ls-story.mode-a .ls-step .num { top: 50%; transform: translateY(-50%); margin-top: 0; }

/* ============================================================
   Loppusivu v7 (2.9.2026, Petrin 6. palaute)
   ============================================================ */
/* Nav samaa sävyä kuin heron yläreuna; valo kortin takana; pohja hieman vaaleampi alhaalta */
body.hero-dark .nav:not(.nav-solid) { background: #333941; }
body.hero-dark .ea-hero.v6 {
  background:
    radial-gradient(1100px 700px at 12% 58%, rgba(240, 118, 31, 0.30), transparent 70%),
    radial-gradient(900px 560px at 88% 82%, rgba(240, 118, 31, 0.20), transparent 70%),
    radial-gradient(700px 420px at 84% 30%, rgba(240, 118, 31, 0.10), transparent 70%),
    radial-gradient(1200px 400px at 50% 100%, rgba(240, 118, 31, 0.12), transparent 70%),
    linear-gradient(180deg, #333941 0%, #2e343c 30%, #292f37 65%, #262c34 100%);
}
body.hero-dark .ea5-shot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 90px -30px rgba(0, 0, 0, 0.7), 0 0 140px 24px rgba(255, 190, 140, 0.13);
}

/* B (Stotles): keskitetty, pystypalkki näyttää rullausosuuden, vain aktiivinen auki, näyttö sävytetyssä kehyksessä */
.ls-story.mode-b { height: calc(4 * 80vh + 120px); }
.ls-story.mode-b .ls-story-pin { top: 50%; transform: translateY(-50%); align-items: center; }
.ls-story.mode-b .ls-steps { display: grid; gap: 4px; }
.ls-story.mode-b .ls-step { padding: 14px 0 14px 26px; border-bottom: none; }
.ls-story.mode-b .ls-step .num { display: none; }
.ls-story.mode-b .ls-step::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--line); }
.ls-story.mode-b .ls-step::after { content: ""; position: absolute; left: 0; top: 14px; width: 3px; border-radius: 3px; background: var(--orange); height: calc((100% - 28px) * var(--pn, 0)); transition: height 0.15s linear; }
.ls-story.mode-b .ls-step { --pn: 0; }
.ls-story.mode-b .ls-step h3 { font-size: clamp(18px, 1.7vw, 22px); transition: color 0.4s; }
.ls-story.mode-b .ls-step:not(.active) h3 { color: #8b98a3; font-weight: 600; }
.ls-story.mode-b .ls-step .body { display: grid; grid-template-rows: 0fr; max-height: none; opacity: 0; transition: grid-template-rows 0.55s var(--ease-out), opacity 0.4s var(--ease-out); }
.ls-story.mode-b .ls-step .body > * { min-height: 0; overflow: hidden; }
.ls-story.mode-b .ls-step.active .body { grid-template-rows: 1fr; max-height: none; opacity: 1; }
.ls-story.mode-b .ls-step .body p { margin-top: 8px; }
.ls-story.mode-b .ls-visual { background: linear-gradient(160deg, #fff4ea 0%, #fbe9d8 100%); border-radius: 26px; padding: clamp(18px, 2.2vw, 30px); }
.ls-story.mode-b .ls-panel { transition: opacity 0.8s ease, transform 0.9s var(--ease-out); }
@media (max-width: 940px) { .ls-story.mode-b .ls-story-pin { transform: none; top: auto; } .ls-story.mode-b .ls-step::before, .ls-story.mode-b .ls-step::after { display: none; } .ls-story.mode-b .ls-step { padding-left: 56px; } .ls-story.mode-b .ls-step .num { display: grid; } .ls-story.mode-b .ls-visual { background: none; padding: 0; } }

/* Bento: viimeisen ruudun pillit eivät limity */
.ls-tile.tint-ask .ask { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 12px; }
.ls-tile.tint-ask .ask span, .ls-tile.tint-ask .ask .o3 { grid-column: auto; justify-self: auto !important; white-space: normal; overflow: visible; max-width: 100%; }
.ls-tile.tint-ask .ask span:nth-child(5) { margin: 0 auto; }

/* Sitaatit: ei snap-ristiriitaa animaation kanssa */
.ls-quotes { scroll-snap-type: none; }

/* Hinnasto: laskutusrivi + klikattavat pillit */
.ls-plan .bill { font-size: 12px; color: var(--muted); margin-top: 4px; min-height: 1.4em; }
.ls-plan .cad span[data-int] { cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.ls-plan .cad span[data-int]:hover { border-color: var(--ink-soft); color: var(--ink); }
.ls-plan .head { min-height: 212px; }

/* Footer-logo isommaksi */
body.theme-c .footer-brand img { height: 40px; }

/* ============================================================
   Loppusivu v8 (2.9.2026, Petrin 7. palaute)
   ============================================================ */
/* Hero: autodemolle selainkehys, jotta appin tumma sivupalkki erottuu taustasta; voimakkaampi valo */
.ea6-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #f3f1ec; border-bottom: 1px solid #e3e0d9; }
.ea6-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d6cf; }
.ea6-bar i:nth-child(1) { background: #f28b6b; } .ea6-bar i:nth-child(2) { background: #f5c451; } .ea6-bar i:nth-child(3) { background: #7ccf8a; }
.ea6-bar .url { margin-left: 10px; font-size: 12px; color: #6a747e; font-weight: 600; background: #fff; border-radius: 6px; padding: 4px 12px; flex: 0 1 380px; text-align: center; }
body.hero-dark .ea5-shot { background: #f3f1ec; border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06), 0 30px 90px -30px rgba(0, 0, 0, 0.7), 0 0 180px 40px rgba(255, 180, 120, 0.22); }
.ea5-shot .ea6-stage { border-radius: 0 0 17px 17px; overflow: hidden; }

/* B Stotlesin mukaan: otsikko pysyy pinnatun lohkon yläosassa, sisältö keskellä, numerot, palkki tekstin korkuinen */
.ls-story .ls-head { grid-column: 1 / -1; }
.ls-story.mode-c .ls-head { margin-bottom: clamp(40px, 5vw, 64px); }
#nain-toimii.is-b { padding-bottom: 0; }
.ls-story.mode-b { height: calc(4 * 70vh + 100vh); }
.ls-story.mode-b .ls-story-pin {
  position: sticky; top: 0; transform: none; height: 100vh; box-sizing: border-box; padding-top: 96px;
  display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); grid-template-rows: auto 1fr; gap: 0 clamp(28px, 4vw, 64px); align-items: center;
}
.ls-story.mode-b .ls-head { grid-column: 1 / -1; margin-bottom: clamp(20px, 3vh, 40px); align-self: start; }
.ls-story.mode-b .ls-steps { display: grid; gap: 6px; align-self: center; }
.ls-story.mode-b .ls-visual { align-self: center; }
.ls-story.mode-b .ls-step { padding: 10px 0 10px 64px; border-bottom: none; }
.ls-story.mode-b .ls-step .num { display: grid; top: 10px; left: 14px; width: 34px; height: 34px; font-size: 13px; }
.ls-story.mode-b .ls-step::before { left: 0; top: 10px; bottom: 10px; width: 3px; }
.ls-story.mode-b .ls-step::after { left: 0; top: 10px; width: 3px; height: calc((100% - 20px) * var(--pn, 0)); }
.ls-story.mode-b .ls-step .body > * { margin: 0; }
.ls-story.mode-b .ls-step .body { padding-top: 0; transition: grid-template-rows 0.55s var(--ease-out), opacity 0.4s var(--ease-out), padding-top 0.55s var(--ease-out); }
.ls-story.mode-b .ls-step.active .body { padding-top: 8px; }
.ls-story.mode-b .ls-step .body .why { border-left: none; padding-left: 0; margin-top: 10px; }
.ls-story.mode-b .ls-step h3 { line-height: 1.2; }
.ls-story.mode-b .ls-panels { aspect-ratio: 3 / 2; }
.ls-story.mode-b .ls-visual { padding: clamp(28px, 3.4vw, 48px); border-radius: 28px; }
@media (max-width: 940px) { .ls-story.mode-b .ls-story-pin { display: block; height: auto; padding-top: 0; } .ls-story.mode-b .ls-step { padding-left: 56px; } .ls-story.mode-b .ls-step .num { left: 0; } }

/* Bento: viimeisen ruudun pillit kahdessa palstassa, rivittyvät eivätkä limity */
.ls-tile.tint-ask .ask { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; justify-content: stretch; }
.ls-tile.tint-ask .ask span, .ls-tile.tint-ask .ask .o3 { white-space: normal; max-width: 100%; width: fit-content; margin: 0; }
.ls-tile.tint-ask .ask span:nth-child(odd) { justify-self: start !important; }
.ls-tile.tint-ask .ask span:nth-child(even) { justify-self: end !important; }
.ls-tile.tint-ask .ask span:nth-child(5) { grid-column: 1 / -1; justify-self: center !important; }
/* B: pinnatun lohkon on mahduttava näyttöön → kehyksen koko rajataan korkeuden mukaan, otsikko tiiviimpi */
.ls-story.mode-b .ls-story-pin { padding-top: 92px; padding-bottom: 24px; grid-template-rows: auto minmax(0, 1fr); }
.ls-story.mode-b .ls-head { margin-bottom: clamp(12px, 2vh, 28px); }
.ls-story.mode-b .ls-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 8px; }
.ls-story.mode-b .ls-head p { font-size: 15.5px; }
.ls-story.mode-b .ls-mode { margin-top: 10px; }
.ls-story.mode-b .ls-visual { width: min(100%, calc((100vh - 400px) * 1.5 + 2 * clamp(28px, 3.4vw, 48px))); margin-left: auto; margin-right: auto; padding: clamp(22px, 3vw, 40px); }
.ls-story.mode-b .ls-panels { aspect-ratio: 3 / 2; }
.ls-story.mode-b .ls-steps { max-height: calc(100vh - 380px); overflow: hidden; }
@media (max-width: 940px) { .ls-story.mode-b .ls-visual { width: auto; } .ls-story.mode-b .ls-steps { max-height: none; } }
/* B: ei leikata askellistaa; tiivistetään sen sijaan */
.ls-story.mode-b .ls-steps { max-height: none; overflow: visible; gap: 2px; }
.ls-story.mode-b .ls-step { padding: 8px 0 8px 64px; }
.ls-story.mode-b .ls-step .num { top: 8px; }
.ls-story.mode-b .ls-step::before { top: 8px; bottom: 8px; }
.ls-story.mode-b .ls-step::after { top: 8px; height: calc((100% - 16px) * var(--pn, 0)); }
.ls-story.mode-b .ls-step .body p { font-size: 15px; line-height: 1.55; }
.ls-story.mode-b .ls-step .body .why { font-size: 13px; margin-top: 8px; }

/* ============================================================
   Loppusivu v9 (4.9.2026, Petrin 8. palaute)
   ============================================================ */
/* Autodemo: ei selainpalkkia; vaalea kehys (bezel) rajaa appin tumman sivupalkin ikkunan sisään */
.ea6-bar { display: none; }
body.hero-dark .ea5-shot { padding: 10px; background: #f6f4f0; border: none; border-radius: 22px;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.7), 0 0 180px 40px rgba(255, 180, 120, 0.22); }
body.hero-dark .ea5-shot .ea6-stage { border-radius: 13px; overflow: hidden; }
.ea5-shot .ea6-stage { border-radius: 13px; }

/* B: pinnin korkeus = sisältö, sijainti JS:stä (keskelle näyttöä), ei 100vh:ta → ei tyhjiä tiloja */
.ls-story.mode-b { height: auto; }
.ls-story.mode-b .ls-story-pin { height: auto; padding: 0 0 8px; transform: none; grid-template-rows: auto auto; align-items: center; }
.ls-story.mode-b .ls-head { margin-bottom: clamp(18px, 2.5vh, 32px); }
.ls-story.mode-b .ls-visual { width: min(100%, calc((100vh - 360px) * 1.5 + 2 * clamp(22px, 3vw, 40px))); }
.ls-story.mode-b .ls-steps { align-self: center; }
#nain-toimii.is-b { padding-bottom: clamp(24px, 4vw, 56px); }

/* ============================================================
   Loppusivu v10 (4.9.2026, Petrin 9. palaute)
   ============================================================ */
/* B: kuva ei saa hypätä — sarake ylätasattu (ei uudelleenkeskitystä tekstin korkeuden mukaan), vaihto pelkkänä häivytyksenä */
.ls-story.mode-b .ls-story-pin { align-items: start; }
.ls-story.mode-b .ls-steps, .ls-story.mode-b .ls-visual { align-self: start; }
.ls-story.mode-b .ls-panel { transform: none; transition: opacity 0.7s ease; }
.ls-story.mode-b .ls-panel.active { transform: none; }
/* Kanban väljemmäksi (4 saraketta) */
.scr-kanban { gap: 12px; }
.scr-kanban .card span { font-size: 13px; } .scr-kanban .card small { font-size: 11.5px; } .scr-kanban .card em { font-size: 11px; } .scr-kanban .ch { font-size: 11px; }
.scr-kanban .card { padding: 10px 11px; gap: 4px; }

/* C = kortit: neljä vaakakorttia, kussakin askel + oma näyttö, kevyt ilmestyminen */
.ls-story.mode-c .ls-steps { display: grid; gap: 18px; }
.ls-story.mode-c .ls-step, .ls-story.mode-c .ls-step:nth-child(even) {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto auto; gap: 6px clamp(24px, 3.5vw, 56px); align-items: center;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) calc(clamp(24px, 3vw, 40px) + 56px);
  background: #fff; border: 1px solid #e6e3dd; border-radius: 22px; min-height: 0; opacity: 1;
  box-shadow: 0 2px 8px rgba(31, 42, 51, 0.04), 0 24px 56px -32px rgba(31, 42, 51, 0.18);
}
.ls-story.mode-c .ls-step:nth-child(even) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); padding-right: clamp(24px, 3vw, 40px); }
.ls-story.mode-c .ls-step .num, .ls-story.mode-c .ls-step:nth-child(even) .num { left: clamp(24px, 3vw, 40px); right: auto; top: clamp(24px, 3vw, 40px); transform: none; margin: 0; }
.ls-story.mode-c .ls-step h3, .ls-story.mode-c .ls-step:nth-child(even) h3 { grid-column: 1; align-self: end; }
.ls-story.mode-c .ls-step .body, .ls-story.mode-c .ls-step:nth-child(even) .body { grid-column: 1; align-self: start; }
.ls-story.mode-c .ls-step .mini, .ls-story.mode-c .ls-step:nth-child(even) .mini {
  grid-column: 2; grid-row: 1 / span 2; margin: 0; position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid #e6e3dd; box-shadow: 0 10px 30px -18px rgba(31, 42, 51, 0.25);
}
.ls-story.mode-c .ls-step .mini .scr { font-size: 13.5px; }
/* kevyt ilmestyminen */
.ls-story.mode-c .ls-step { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.ls-story.mode-c .ls-step.seen { opacity: 1; transform: none; }
@media (max-width: 940px) {
  .ls-story.mode-c .ls-step, .ls-story.mode-c .ls-step:nth-child(even) { grid-template-columns: 1fr; padding: 22px 20px 22px 68px; }
  .ls-story.mode-c .ls-step .mini, .ls-story.mode-c .ls-step:nth-child(even) .mini { grid-column: 1; grid-row: auto; }
  .ls-story.mode-c .ls-step .num, .ls-story.mode-c .ls-step:nth-child(even) .num { left: 18px; top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .ls-story.mode-c .ls-step { opacity: 1; transform: none; transition: none; } }
/* C-kortit: näytölle enemmän korkeutta, ettei sisältö leikkaudu */
.ls-story.mode-c .ls-step .mini, .ls-story.mode-c .ls-step:nth-child(even) .mini { aspect-ratio: 5 / 4; }
.ls-story.mode-c .ls-step .mini .scr { font-size: 12.5px; }
.ls-story.mode-c .ls-step .mini .scr-body { padding: 16px 18px; gap: 9px; }
.ls-story.mode-c .ls-step .mini .scr-list .t { font-size: 13px; } .ls-story.mode-c .ls-step .mini .scr-list .m { font-size: 11.5px; }
.ls-story.mode-c .ls-step .mini .scr-kanban .card span { font-size: 11.5px; } .ls-story.mode-c .ls-step .mini .scr-kanban .card small { font-size: 10.5px; }
/* Tekniikkavaihdin piiloon (Petri 4.9.: B valittu); vaihtoehdot yhä ?story=a|c */
.ls-mode { display: none !important; }
/* Mobiili: askelnäytöt korkeammiksi ja sisältö sovitettu (ei leikkaudu); kanbanista näytetään 3 saraketta */
@media (max-width: 940px) {
  .ls-step .mini { aspect-ratio: 1 / 1; }
  .ls-step .mini .scr { font-size: 12px; }
  .ls-step .mini .scr-body { padding: 14px; gap: 8px; }
  .ls-step .mini .scr-list .row { grid-template-columns: 84px 1fr; }
  .ls-step .mini .scr-list .tag { min-width: 0; font-size: 9.5px; }
  .ls-step .mini .scr-kanban .col.c1, .ls-step .mini .scr-kanban .col.c2 { display: none; }
  .ls-step .mini .scr-kanban .card span { font-size: 11.5px; }
  .ls-step .mini .scr-buyer .kpis b { font-size: 20px; }
}
/* B: enemmän ilmaa otsikkolohkon ja askelten väliin (kuten muissa osioissa) */
.ls-story.mode-b .ls-head { margin-bottom: clamp(40px, 6vh, 72px); }

/* ============================================================
   Codex-katselmuksen 4.9. korjaukset (A1–A11)
   ============================================================ */
/* A1: matalilla työpöytänäytöillä (≤ 820 px) hero tiiviimpi, jotta autodemo (≥36 %) ja 1. nosto näkyvät foldissa */
@media (min-width: 941px) and (max-height: 820px) {
  body.hero-dark .ea-hero.v6 { padding-top: 34px; }
  body.hero-dark .ea-hero.v5 h1 { font-size: clamp(38px, 4.6vw, 58px); margin-bottom: 14px; }
  body.hero-dark .ea-hero.v2 .lead { margin-bottom: 22px; font-size: 17.5px; }
  body.hero-dark .ea5-try { margin-top: 8px; }
  body.hero-dark .ea5-shot { margin-top: 26px; }
}
/* A2: B-pinnin tiivis tila kun korkeus ei riitä */
.ls-story.mode-b.tight .ls-step .body p { font-size: 14px; line-height: 1.5; }
.ls-story.mode-b.tight2 .ls-step .body .why { display: none; }
.ls-story.mode-b.tight .ls-step { padding-top: 6px; padding-bottom: 6px; }
.ls-story.mode-b.tight .ls-head { margin-bottom: 20px; }
.ls-story.mode-b.tight3 .ls-head p { display: none; }
.ls-story.mode-b.tight .ls-head h2 { font-size: clamp(26px, 2.6vw, 32px); }
.ls-story.mode-b .ls-steps { align-self: start; }
/* A3: reduced motion → ei B-tarinan siirtymiä */
@media (prefers-reduced-motion: reduce) {
  .ls-story.mode-b .ls-step .body, .ls-story.mode-b .ls-panel, .ls-panel, .ls-story.mode-b .ls-step::after, .ls-story.mode-b .ls-step h3 { transition: none !important; }
}
/* A4: kadenssipillit painikkeina */
.ls-plan .cad button { font: 700 11.5px var(--sans); letter-spacing: 0.02em; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.ls-plan .cad button.on { color: var(--ink); border-color: var(--ink); }
.ls-plan .cad button:hover { border-color: var(--ink-soft); color: var(--ink); }
.ls-plan .cad button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* A5: askelotsikko painikkeena (B), muissa moodeissa passiivinen */
.ls-step h3 .step-btn { all: unset; display: inline; font: inherit; color: inherit; cursor: inherit; }
.ls-story.mode-b .ls-step h3 .step-btn { cursor: pointer; }
.ls-story.mode-b .ls-step h3 .step-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.ls-story:not(.mode-b) .ls-step h3 .step-btn { pointer-events: none; }
/* A6: karusellin tauko/jatka */
.ls-dots .ls-pp { width: auto; height: 22px; border-radius: 999px; padding: 0 8px; margin-left: 8px; font: 700 10px var(--sans); color: var(--ink-soft); background: #fff; border: 1px solid var(--line); transform: none; }
.ls-dots .ls-pp:focus-visible, .ls-dots button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* A10: footerin otsikot h3 */
body.theme-c .footer h3 { color: #fff; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
/* A11: kielivalinnan nuoli ei riviä */
.lang-wrap > a { white-space: nowrap; }

/* ---------- 4.9. Petrin palaute: askelten väli, perustelukortti, ei päällekkäisyyttä ---------- */
.ls-story.mode-b .ls-steps { gap: 14px; }
.ls-story.mode-b .ls-step { padding-top: 10px; padding-bottom: 10px; }
.ls-story.mode-b .ls-step::before { top: 10px; bottom: 10px; }
.ls-story.mode-b .ls-step::after { top: 10px; height: calc((100% - 20px) * var(--pn, 0)); }
.ls-story.mode-b .ls-step .num { top: 10px; }
.ls-story.mode-b.tight .ls-steps { gap: 8px; }
/* Perustelurivi → pehmeä korostuskortti (kaikki moodit) */
.ls-step .why {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 14px; padding: 10px 14px; border-left: none; border-radius: 12px;
  background: linear-gradient(90deg, #fff3e8 0%, #fff9f3 100%); border: 1px solid #f5dfc9;
  font-size: 13.5px; line-height: 1.5; color: #4f5a64; max-width: 46ch;
}
.ls-step .why b {
  flex: 0 0 auto; align-self: flex-start; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: var(--orange); border-radius: 6px; padding: 4px 8px; margin-top: 1px;
}
.ls-story.mode-b .ls-step .body .why { border: 1px solid #f5dfc9; padding: 10px 14px; margin-top: 12px; }
.ls-story.mode-b .ls-step .body > * { overflow: visible; }
/* B: varattu lisätila listan loppuun, ei askelten väleihin */
.ls-story.mode-b .ls-steps { align-content: start; }
/* Perustelukortti: välimuoto — kevyempi tausta ja reuna, tagi vaalealla pohjalla */
.ls-step .why { background: #fffaf5; border-color: #f1e4d6; color: #4f5a64; }
.ls-step .why b { background: var(--orange-faint); color: var(--orange-deep); border: 1px solid #f3d5bb; padding: 3px 8px; }
.ls-story.mode-b .ls-step .body .why { border-color: #f1e4d6; }
/* B: bodyn sisältö yhdessä kääreessä → 0fr-rivi kutistaa myös perustelukortin (aiemmin implisiittinen rivi jäi auki) */
.ls-story.mode-b .ls-step .body > .inner { min-height: 0; overflow: hidden; display: block; }
.ls-story.mode-b .ls-step .body .inner > .why { margin-top: 12px; }
.ls-story.measuring, .ls-story.measuring * { transition: none !important; animation: none !important; }
