  /* ============================================================
     SERVICES: #05 Sticky Card Stack (posters)
     ============================================================ */
  .services {
    position: relative;
    background:
      radial-gradient(ellipse 1200px 600px at 85% 10%, rgba(245, 128, 36, 0.06), transparent 60%),
      radial-gradient(ellipse 1000px 700px at 15% 90%, rgba(233, 30, 133, 0.05), transparent 60%),
      linear-gradient(180deg, #ffffff 0%, #f1f3f9 8%, #eef1f8 50%, #f1f3f9 92%, #ffffff 100%);
  }
  .services::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      radial-gradient(rgba(35, 46, 102, 0.09) 1px, transparent 1.2px);
    background-size: 26px 26px;
    background-position: 0 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    opacity: 0.6;
  }
  .services > .container { position: relative; z-index: 1; }
  .services-head {
    margin-bottom: clamp(36px, 4vw, 56px);
  }
  .services-head .section-title { max-width: none; text-wrap: balance; }
  .services-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
  }
  .services-intro .section-lead { max-width: none; margin: 0; }
  @media (max-width: 760px) {
    .services-intro { grid-template-columns: 1fr; gap: 20px; }
  }
  .stack-wrap { position: relative; padding-bottom: 120px; }
  .stack-card:last-child { margin-bottom: 0; }
  .stack-card {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid rgba(35, 46, 102, 0.1);
    border-radius: 28px;
    padding: 48px;
    margin-bottom: 120px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 14px 30px -14px rgba(35, 46, 102, 0.14),
      0 28px 50px -22px rgba(26, 36, 82, 0.16);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    min-height: 460px;
    transition: transform 0.4s, box-shadow 0.4s;
    overflow: hidden;
  }
  /* Colored accent glow top-left corner per card */
  .stack-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    pointer-events: none;
    background: radial-gradient(circle at 0% 0%, var(--accent-glow, rgba(245, 128, 36, 0.22)), transparent 70%);
    opacity: 0.9;
  }
  .stack-card[data-accent="orange"] { --accent-glow: rgba(245, 128, 36, 0.22); --accent-color: var(--orange); }
  .stack-card[data-accent="navy"]   { --accent-glow: rgba(45, 58, 125, 0.18); --accent-color: var(--navy); }
  .stack-card[data-accent="pink"]   { --accent-glow: rgba(233, 30, 133, 0.16); --accent-color: var(--pink); }
  /* All cards stick at same top — later card fully covers previous when scrolled in.
     z-index per card ensures later cards win the layering when overlapping. */
  .stack-card:nth-child(1) { z-index: 1; }
  .stack-card:nth-child(2) { z-index: 2; }
  .stack-card:nth-child(3) { z-index: 3; }
  .stack-card:nth-child(4) { z-index: 4; }
  .stack-card-left { position: relative; z-index: 1; display: flex; flex-direction: column; }
  /* Balance short service descriptions so the last line is not a lone word. */
  .stack-card :is(.stack-for, .subhead, .stack-bullets li) {
    text-wrap: balance;
  }
  .stack-card h3 {
    font-size: clamp(26px, 2.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 14px;
  }
  .stack-card h3 .accent-orange { color: var(--orange); }
  .stack-card h3 .accent-navy { color: var(--navy); }
  .stack-card h3 .accent-pink { color: var(--pink); }
  .stack-card h3 .tm {
    font-size: 0.55em;
    vertical-align: 0.5em;
    font-weight: 700;
    letter-spacing: 0;
    margin-left: 1px;
  }
  .stack-card p.subhead {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 500;
  }
  .stack-card p.stack-for {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    max-width: 520px;
    margin-bottom: 8px;
  }
  .stack-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
  }
  .stack-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
    padding: 8px 0;
    border-top: 1px solid var(--border);
  }
  .stack-bullets li:first-child { border-top: 0; padding-top: 0; }
  .stack-bullets li::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3a7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: contain;
  }
  .stack-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
  .stack-learn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    transition: gap 0.2s;
  }
  .stack-learn:hover { gap: 12px; }
  .stack-learn svg { transition: transform 0.2s; }
  .stack-learn:hover svg { transform: translateX(2px); }

  /* Price: gradient stamp badge */
  .stack-price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
  }
  .stack-price-main {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: var(--grad-tilt);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transform: rotate(-4deg);
    box-shadow: 0 10px 28px rgba(233, 30, 133, 0.28), 0 2px 6px rgba(35, 46, 102, 0.08);
    flex-shrink: 0;
  }
  .stack-price-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.95;
    line-height: 1;
  }
  .stack-price-value {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: inherit;
    font-feature-settings: "tnum" 1;
    line-height: 1;
  }
  .stack-price-unit {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.95;
    line-height: 1;
  }
  .stack-price-vat {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.75;
  }
  /* CTA group inside card footer */
  .stack-cta-group {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  .stack-cta-group .btn-primary {
    padding: 11px 20px;
    font-size: 14px;
  }
  /* Featured card: tighter footer */
  .stack-card--featured .stack-card-footer {
    margin-top: 0;
    padding-top: 18px;
  }
  /* Huoleton-specific: kicker, availability pill, platform cards */
  .huoleton-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.01em;
  }
  .huoleton-kicker .kicker-logo {
    width: 26px;
    height: 26px;
    color: var(--accent-color);
    flex-shrink: 0;
  }
  .huoleton-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    width: fit-content;
  }
  .huoleton-availability svg {
    width: 14px;
    height: 14px;
    color: var(--navy);
    flex-shrink: 0;
  }
  .huoleton-availability strong {
    color: var(--navy);
    font-weight: 700;
  }
  .huoleton-availability .availability-divider {
    color: var(--text-muted);
    opacity: 0.45;
  }
  .huoleton-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
  }
  .huoleton-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
    text-align: center;
    font-family: inherit;
  }
  .huoleton-tier:hover {
    border-color: rgba(45, 58, 125, 0.30);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -4px rgba(15, 18, 46, 0.10);
  }
  .huoleton-tier .tier-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: color 0.2s;
  }
  .huoleton-tier:hover .tier-icon { color: var(--navy); }
  .huoleton-tier .tier-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
  }
  .huoleton-tier--active {
    border-color: var(--orange);
    background: var(--orange-50);
    box-shadow: 0 4px 14px -4px rgba(245, 128, 36, 0.25);
  }
  .huoleton-tier--active .tier-icon { color: var(--orange); }
  .huoleton-tier--active .tier-label { color: var(--navy); font-weight: 700; }
  /* Tier-specific content — show only matching tier's content */
  .stack-card[data-tier="perus"] .for-plus { display: none; }
  .stack-card[data-tier="plus"] .for-perus { display: none; }
  .huoleton-tier .tier-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 10px -2px rgba(233, 30, 133, 0.35);
  }

  /* Diagonal price ribbon — top-right corner */
  .stack-card-ribbon {
    position: absolute;
    top: 38px;
    right: -62px;
    width: 230px;
    padding: 10px 0;
    background: var(--grad);
    color: #fff;
    text-align: center;
    transform: rotate(45deg);
    box-shadow:
      0 8px 18px rgba(233, 30, 133, 0.30),
      0 2px 6px rgba(0, 0, 0, 0.10);
    z-index: 5;
    pointer-events: none;
    line-height: 1.15;
  }
  .stack-card-ribbon .ribbon-main {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.005em;
  }
  .stack-card-ribbon .ribbon-vat {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 2px;
  }
  @keyframes overlayReveal {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
  }
  @keyframes pillReveal {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* ============================================================
     FEATURED STACK CARD VARIANT (.stack-card--featured)
     Showcase layout: kicker pill, big title, pill bullets,
     rectangular price card, trust chips
     ============================================================ */
  .stack-card--featured h3 {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.05;
    margin-bottom: 10px;
  }
  .stack-card--featured p.subhead {
    font-size: 15px;
    line-height: 1.5;
    max-width: 520px;
    margin-bottom: 18px;
    color: var(--text-muted);
  }
  /* Pill-style bullet rows — 2-column grid for compactness */
  .stack-card--featured .stack-bullets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }
  .stack-card--featured .stack-bullets li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text);
    gap: 10px;
    align-items: center;
  }
  .stack-card--featured .stack-bullets li:first-child {
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  /* Last odd-numbered bullet spans full width */
  .stack-card--featured .stack-bullets li:nth-child(5) {
    grid-column: 1 / -1;
  }
  .stack-card--featured .stack-bullets li::before { display: none; }
  /* Plain check list: hyötyrivit näkyvät suoraan ilman klikkausta */
  .stack-card--featured .stack-bullets--checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
  }
  .stack-card--featured .stack-bullets--checks li,
  .stack-card--featured .stack-bullets--checks li:first-child {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.45;
  }
  .stack-card--featured .stack-bullets--checks li::before {
    display: block;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--orange-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f58024' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
  }
  /* Uusi tiivis rakenne: kuva ei saa venyttää korttia tekstiä korkeammaksi */
  @media (min-width: 1001px) {
    .stack-card:has(.stack-bullets--checks),
    .stack-card--prose {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      align-items: center;
      min-height: 0;
    }
    .stack-card:has(.stack-bullets--checks) .stack-card-right:has(.poster-image),
    .stack-card--prose .stack-card-right:has(.poster-image) {
      min-height: 0;
      aspect-ratio: 1;
      max-height: 500px;
    }
  }
  /* Korkeus tulee index.php:n skriptistä: kaikki pinon kortit yhtä korkeiksi */
  .stack-wrap .stack-card { min-height: var(--stack-card-h, 0); align-content: center; }
  .stack-card--prose .btn-primary { white-space: normal; }
  .stack-card--prose .btn-primary svg { flex-shrink: 0; }
  /* Lyhyen esittelyn typografia täyttää yhteisen korttikoon. */
  @media (min-width: 1001px) {
    .stack-card--prose h3 {
      font-size: clamp(36px, 3.5vw, 48px);
      margin-bottom: 24px;
    }
    .stack-card--prose p.stack-for {
      font-size: clamp(19px, 1.5vw, 21px);
      line-height: 1.5;
      margin-bottom: 24px;
    }
    .stack-card--prose p.subhead {
      font-size: 18px;
      line-height: 1.55;
      margin-bottom: 28px;
    }
  }
  @media (max-width: 600px) {
    .stack-wrap .stack-card--prose { padding-top: 150px; }
  }
  .stack-card:has(.stack-bullets--checks) p.subhead { margin-bottom: 24px; }
  .stack-card--featured .stack-bullets--checks { gap: 16px; margin-bottom: 0; }
  .stack-card:has(.stack-bullets--checks) .stack-card-footer {
    margin-top: 32px;
    padding-top: 28px;
  }

  /* Right side: POSTER (no longer dashboard) */
  .stack-card-right {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 380px;
    display: flex;
  }

  .poster {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-deeper) 0%, var(--navy-dark) 60%, var(--navy) 100%);
    padding: 36px;
  }
  .poster::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .poster > * { position: relative; z-index: 1; }

  /* --- Poster: Image variant --- */
  .poster-image {
    padding: 0;
    background: #0a1430;
    align-items: stretch;
    justify-content: stretch;
  }
  .poster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
  }
  .browser {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: perspective(1400px) rotateY(-8deg) rotateX(6deg) translateZ(0);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .stack-card:hover .browser { transform: perspective(1400px) rotateY(-4deg) rotateX(3deg); }
  .browser-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f1f2f5;
    border-bottom: 1px solid #e3e4e8;
  }
  .browser-bar .dots { display: flex; gap: 5px; flex-shrink: 0; }
  .browser-bar .dots span {
    width: 9px; height: 9px; border-radius: 50%;
    background: #d0d0d0;
  }
  .browser-bar .dots span:nth-child(1) { background: #ff6057; }
  .browser-bar .dots span:nth-child(2) { background: #ffbd2e; }
  .browser-bar .dots span:nth-child(3) { background: #28ca42; }
  .browser-bar .url {
    flex: 1;
    background: #fff;
    border: 1px solid #e3e4e8;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    text-align: center;
    letter-spacing: 0.02em;
  }
