/* /moneybird-alternatief only (landing-sweep, eindcontrole 03-12).
   The page was 8.800 px on a phone. Two things fold there, nothing is
   removed: the comparison shows 5 of its 9 rows behind one button, and the
   savings calculator sits closed under its heading (open on desktop). */

/* ---- Comparison: 5 rows open on phones ----
   The checkbox sits right before its label (keyboard order); above 760px
   both are gone and all rows show. */
.mb-more-toggle,
.mb-more {
  display: none;
}

@media (max-width: 760px) {
  .mb-more-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .mb-table:has(.mb-more-toggle:not(:checked)) tr.mb-fold {
    display: none;
  }

  .mb-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 12px 0 4px;
    border: 1px solid var(--landing-border-hover);
    border-radius: 12px;
    background: var(--landing-bg-card);
    color: var(--landing-accent, #1565c0);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .mb-more-toggle:checked + .mb-more {
    display: none;
  }

  .mb-more-toggle:focus-visible + .mb-more {
    outline: 2px solid var(--landing-accent, #1565c0);
    outline-offset: 2px;
  }
}

/* ---- Savings calculator: heading is the summary ---- */
.mb-calc-summary {
  list-style: none;
  text-align: center;
  margin-bottom: 32px;
}

.mb-calc-summary::-webkit-details-marker {
  display: none;
}

.mb-calc-summary .landing-section-title {
  margin: 0;
}

.mb-calc-sub {
  display: none;
}

@media (min-width: 761px) {
  /* Always open here; the heading is just a heading. */
  .mb-calc-summary {
    pointer-events: none;
  }
}

@media (max-width: 760px) {
  .mb-calc-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    align-items: center;
    margin-bottom: 0;
    padding: 20px;
    border: 1px solid var(--landing-border-hover);
    border-radius: 16px;
    background: var(--landing-bg-card);
    text-align: left;
    cursor: pointer;
  }

  .mb-calc-summary::after {
    content: "+";
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 28px;
    line-height: 1;
    color: var(--landing-accent, #1565c0);
  }

  .mb-calc[open] .mb-calc-summary {
    margin-bottom: 20px;
  }

  .mb-calc[open] .mb-calc-summary::after {
    content: "\2212";
  }

  .mb-calc-summary .landing-section-title {
    font-size: 24px;
    text-align: left;
  }

  .mb-calc-sub {
    display: block;
    font-size: 16px;
    line-height: 1.5;
    color: var(--landing-text-muted);
  }

  /* The sticky total slid over the amount fields once you tapped one (the
     keyboard shrinks the viewport). In flow it simply follows the list. */
  .mb-calc .landing-savings-calc .landing-savings-total {
    position: static;
    margin: 0;
    padding: 14px 8px 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Labels above the list and the bars were 11.7px. */
.mb-calc .landing-savings-col > .landing-savings-label {
  font-size: 15px;
  letter-spacing: 0.02em;
}
