/* Integraatiot 3/6: maanantaiaamun vertailu ja järjestelmäkortit */
  .ig-aamu-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
  }
  .ig-aamu-grid .section-head { margin-bottom: 0; }

  .ig-aamu-card {
    position: relative;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--sh-lg);
  }
  .ig-tapa-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .ig-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 5px;
    margin-bottom: 26px;
    background: var(--surface-2);
    border-radius: 999px;
  }
  .ig-switch label {
    padding: 11px 14px;
    border-radius: 999px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  }
  .ig-switch label:hover { color: var(--navy-dark); }
  #ig-tapa-kasin:checked ~ .ig-switch label[for="ig-tapa-kasin"] {
    background: #fff;
    color: var(--navy-dark);
    box-shadow: var(--sh-md);
  }
  #ig-tapa-auto:checked ~ .ig-switch label[for="ig-tapa-auto"] {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(230, 70, 68, 0.6);
  }
  #ig-tapa-kasin:focus-visible ~ .ig-switch label[for="ig-tapa-kasin"],
  #ig-tapa-auto:focus-visible ~ .ig-switch label[for="ig-tapa-auto"] {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
  }

  .ig-panel { display: none; }
  #ig-tapa-kasin:checked ~ .ig-panel--kasin,
  #ig-tapa-auto:checked ~ .ig-panel--auto {
    display: block;
    animation: igPanelIn 0.45s var(--ease-out);
  }
  @keyframes igPanelIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }

  .ig-timeline {
    list-style: none;
    position: relative;
  }
  .ig-timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 75px;
    width: 2px;
    background: var(--border);
  }
  .ig-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 26px;
    padding: 10px 0;
    font-size: 15.5px;
    line-height: 1.55;
  }
  .ig-timeline li::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--navy-100);
  }
  .ig-timeline time {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    padding-top: 2px;
    white-space: nowrap;
  }
  .ig-timeline span { color: var(--navy-dark); font-weight: 600; }
  .ig-timeline-bad::before { border-color: var(--red) !important; background: #fdecec !important; }
  .ig-timeline-bad span { color: #b42c2a; }
  .ig-timeline-good::before { border-color: var(--green) !important; background: var(--green-50) !important; }
  .ig-panel--auto .ig-timeline li::before { border-color: var(--pink-soft); }

  .ig-panel-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
  }
  .ig-panel-foot strong {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--navy-dark);
  }
  .ig-aamu-note {
    margin-top: 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: right;
  }

  /* ============================================================
     JÄRJESTELMÄT
     ============================================================ */
  .ig-sys-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  .ig-sys {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  }
  .ig-sys:hover {
    border-color: var(--pink-soft);
    box-shadow: var(--sh-md);
    transform: translateY(-3px);
  }
  .ig-sys-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
  }
  .ig-sys-ico {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .ig-sys-moves {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-align: right;
  }
  .ig-sys h3 {
    font-size: 19px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--navy-dark);
    margin-bottom: 10px;
  }
  .ig-sys p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 20px;
  }
  .ig-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
  }
  .ig-chips li {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-dark);
  }

  /* Järjestelmäkysely */
  .ig-ask {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 40px;
    align-items: center;
    margin-top: 28px;
    padding: 36px 40px;
    border-radius: 24px;
    color: #fff;
    background:
      radial-gradient(60% 120% at 100% 0%, rgba(232, 30, 133, 0.28) 0%, transparent 60%),
      var(--navy-deeper);
  }
  .ig-ask h3 {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
  }
  .ig-ask p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.76);
  }
  .ig-ask p a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 3px;
  }
  .ig-ask p a:hover { text-decoration-color: var(--orange-soft); }
  .ig-ask-form {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
  }
  .ig-ask-form:focus-within { border-color: rgba(255, 255, 255, 0.5); }
  .ig-ask-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    outline: none;
  }
  .ig-ask-form input::placeholder { color: rgba(255, 255, 255, 0.55); }
  .ig-ask-form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--navy-dark);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s;
  }
  .ig-ask-form button:hover { transform: translateX(2px); }
