/* Automatisoidut työnkulut (automatisoidut-tyonkulut.php): hero ja työnkulkukortit kuvan takana. */

  /* ============================================================
     HERO
     ============================================================ */
  .hero-page {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, #fff5ec 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
  }
  .hero-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(245, 128, 36, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-page::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(216, 35, 205, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-page-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  .hero-page-inner { max-width: 640px; }
  .hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
  .hero-page .kicker {
    color: var(--orange);
    margin-bottom: 20px;
  }
  .hero-page h1 {
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
  }
  .hero-page h1 .gr {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-page p {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 36px;
  }
  .hero-page p + p { margin-top: -16px; margin-bottom: 36px; }
  .hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--grad);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    border-radius: 999px;
    box-shadow: 0 12px 28px -8px rgba(230, 70, 68, 0.55);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -8px rgba(230, 70, 68, 0.7);
  }

  /* Hintarivi ja oikotie maksuttomaan katsaukseen heron kehotteiden alla (sama kuin SEO-sivulla). */
  .hero-page p.hero-price-note {
    margin: 22px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.5;
    max-width: none;
  }
  .hero-page p.hero-switch {
    margin: 10px 0 0;
    font-size: 15px;
    max-width: none;
  }
  .hero-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--orange-soft);
    text-underline-offset: 4px;
  }
  .hero-switch a:hover { text-decoration-color: var(--orange); }
  .hero-switch a svg { width: 14px; height: 14px; }

  /* ============================================================
     HERO VISUAL · Workflow diagram
     ============================================================ */
  .flow-visual {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    position: relative;
    margin: 0 auto;
  }
  .flow-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--sh-lg);
    padding: 16px 20px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
  }
  .flow-card .fc-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .flow-card .fc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
  }
  .flow-card .fc-dot.green { background: #1d8a4a; }
  .flow-card .fc-dot.blue { background: var(--navy); }
  .flow-card .fc-dot.pink { background: var(--pink); }
  .flow-card .fc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
  }
  .flow-card .fc-row + .fc-row { border-top: 1px dashed var(--border); }
  .flow-card .fc-name { font-weight: 600; color: var(--navy-dark); font-size: 13px; }
  .flow-card .fc-meta { font-size: 11.5px; color: var(--text-muted); }
  .flow-card .fc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
  }
  .flow-card .fc-badge.ok { background: #e8f7ee; color: #1d8a4a; }
  .flow-card .fc-badge.running { background: var(--orange-50); color: var(--orange); }
  .flow-card .fc-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
  }
  /* Poikkeus: kortti kertoo, mitä tapahtui (puuttuva tieto ja kuka sai ilmoituksen), ei mittaria. */
  .flow-card .fc-badge.warn { background: var(--pink-50); color: var(--pink); }
  .flow-card .fc-note {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--pink-50);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--navy-dark);
  }

  .fc-trigger {
    top: 2%;
    left: 2%;
    width: 58%;
    transform: rotate(-3deg);
    z-index: 2;
    animation: fcFloatA 7s ease-in-out infinite;
  }
  .fc-pipeline {
    top: 28%;
    right: 0;
    width: 56%;
    transform: rotate(2.5deg);
    z-index: 3;
    animation: fcFloatB 6s ease-in-out infinite;
  }
  @keyframes fcFloatA {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-10px); }
  }
  @keyframes fcFloatB {
    0%, 100% { transform: rotate(2.5deg) translateY(0); }
    50% { transform: rotate(2.5deg) translateY(-12px); }
  }

  /* Kuvamaailma: kaksi flow-korttia seisovan henkilön vasemmalla puolella
     säkkituolin yläpuolella, kiinni henkilössä. */
  /* Korttikerroksen leveys on kiinteä, koska pystykuva itse on kapea. */
  .kuva-hero .kuva-hero-backdrop {
    inset: 0 22% 6% auto;
    width: 460px;
    opacity: 0.92;
    transform: none;
  }
  .kuva-hero .flow-visual { max-width: none; aspect-ratio: auto; height: 100%; }
  .kuva-hero .fc-trigger { top: 6%; left: 0; width: 60%; }
  .kuva-hero .fc-pipeline { top: 30%; left: 4%; right: auto; bottom: auto; width: 58%; }
  /* Kapea työpöytä: kortit pienemmiksi, jotta ne eivät osu otsikkoon */
  @media (min-width: 1101px) and (max-width: 1319px) {
    .kuva-hero .kuva-hero-backdrop { width: 370px; inset: 0 12% 6% auto; }
  }
  @media (max-width: 1100px) {
    .kuva-hero .kuva-hero-backdrop { width: auto; inset: 0 0 6% -60%; }
    .kuva-hero .fc-trigger { left: 0; width: 52%; }
    .kuva-hero .fc-pipeline { left: 6%; width: 50%; }
  }
  @media (max-width: 600px) {
    .kuva-hero .kuva-hero-backdrop { display: none; }
  }

