/* WooCommerce 2/6: hero ja HTML-korttivisuaali (tilaus siirtyy kirjanpitoon, toimitukseen ja varastoon) */
  /* ============================================================
     HERO
     ============================================================ */
  .hero-page {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, #f5eefb 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
  }
  .hero-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(127, 84, 179, 0.10) 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(232, 30, 133, 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(--woo);
    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);
  }

  /* ============================================================
     HERO VISUAL — WooCommerce-stack
     ============================================================ */
  .woo-visual {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    position: relative;
    margin: 0 auto;
  }
  .woo-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--sh-lg);
    padding: 18px 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
  }
  .woo-card .wc-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;
  }
  .woo-card .wc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--woo);
  }
  .woo-card .wc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
  }
  .woo-card .wc-row + .wc-row {
    border-top: 1px dashed var(--border);
  }
  .woo-card .wc-name { font-weight: 600; color: var(--navy-dark); }
  .woo-card .wc-meta { font-size: 12px; color: var(--text-muted); font-weight: 500; }
  .woo-card .wc-price { font-weight: 800; color: var(--navy-deeper); white-space: nowrap; }
  .woo-card .wc-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
  }
  .woo-card .wc-foot .wc-total { color: var(--woo); font-size: 18px; }
  .woo-card .wc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }
  .woo-card .wc-pill.synced { background: #e8f7ee; color: #1d8a4a; }
  .woo-card .wc-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }
  .woo-card .wc-add {
    margin-top: 10px;
    width: 100%;
    padding: 10px 14px;
    background: var(--woo);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    border-radius: 10px;
    text-align: center;
    letter-spacing: 0.02em;
  }

  .wc-product {
    top: 4%;
    left: 4%;
    width: 62%;
    transform: rotate(-4deg);
    z-index: 2;
    animation: wcFloatA 7s ease-in-out infinite;
  }
  .wc-orders {
    bottom: 22%;
    right: 0;
    width: 60%;
    transform: rotate(3deg);
    z-index: 3;
    animation: wcFloatB 6s ease-in-out infinite;
  }
  .wc-integrations {
    bottom: 0;
    left: 14%;
    width: 64%;
    transform: rotate(-2deg);
    z-index: 1;
    animation: wcFloatC 8s ease-in-out infinite;
  }
  @keyframes wcFloatA {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-10px); }
  }
  @keyframes wcFloatB {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-12px); }
  }
  @keyframes wcFloatC {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-8px); }
  }

  .hero-page .hero-price-note {
    margin: 22px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.5;
  }
  .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);
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: transparent;
    color: var(--navy-dark);
    border: 1.5px solid var(--navy);
    font-weight: 800;
    font-size: 15px;
    border-radius: 999px;
    transition: transform 0.2s, background 0.2s, color 0.2s;
  }
  .btn-secondary:hover { transform: translateY(-2px); background: var(--navy); color: #fff; }

  /* Vaihtajan oikotie: kävijä, jolla on jo WooCommerce-kauppa, ohittaa uuden sivuston hinnat. */
  .hero-page .hero-switch {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--text-muted);
  }
  .hero-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--woo);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--woo-soft);
    text-underline-offset: 4px;
  }
  .hero-switch a:hover { text-decoration-color: var(--woo); }
  .hero-switch a svg { width: 14px; height: 14px; }

  /* Widgetin avautuminen ei saa siirtää CTA-riviä työpöytäleveydellä */
  @media (min-width: 861px) {
    .hero-cta-row:has(.ai-hi) { flex-wrap: nowrap; }
    .hero-cta-row:has(.ai-hi) > * { min-width: 0; }
    .hero-cta-row .ai-hi-label { flex-shrink: 0; }
    .hero-cta-row .ai-hi-input { min-width: 0; }
    .hero-cta-row .btn-primary { flex-shrink: 0; white-space: nowrap; }
  }
