/* Homepage only: match the plan overview's single-column breakpoint. */
.home-presentation #plans .hp-plan-switcher[hidden],
.home-presentation #plans .mk-plan[hidden] { display: none !important; }

@media (max-width: 900px) {
  /* All three cards share seven rows: label, title, description, price,
     price note, features and CTA. Each row fits the largest content across
     plans, keeping every comparison point stable when switching tabs. */
  .home-presentation #plans.hp-plan-tabs-active .mk-plans {
    grid-template-rows: repeat(7, auto);
    row-gap: 0;
  }
  .home-presentation #plans.hp-plan-tabs-active .mk-plan {
    display: grid;
    grid-area: 1 / 1 / span 7 / span 1;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .home-presentation #plans.hp-plan-tabs-active .mk-plan .mk-button {
    margin-top: 0;
    align-self: stretch;
  }
  .home-presentation #plans.hp-plan-tabs-active .mk-plan[hidden] {
    display: grid !important;
    visibility: hidden;
    pointer-events: none;
  }
  .home-presentation #plans .hp-plan-switcher {
    max-width: 500px;
    margin: 0 auto 16px;
  }
  .home-presentation #plans .hp-plan-switcher-guide {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
  }
  .home-presentation #plans .hp-plan-switcher-guide > span {
    color: #536579;
    font-size: 11px;
  }
  .home-presentation #plans .hp-plan-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .home-presentation #plans .hp-plan-tabs button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 86px;
    padding: 9px 3px;
    border: 1px solid #aebfc6;
    border-radius: 8px;
    background: #fffdfa;
    color: #17394b;
    font: inherit;
    line-height: 1.4;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .home-presentation #plans .hp-plan-tabs button strong {
    font-size: clamp(11px, 3.3vw, 14px);
    white-space: nowrap;
  }
  .home-presentation #plans .hp-plan-tab-number {
    font: 700 11px/1 Arial, sans-serif;
    opacity: .75;
  }
  .home-presentation #plans .hp-plan-tab-detail { font-size: 11px; }
  .home-presentation #plans .hp-plan-tabs button[aria-selected="true"] {
    border-color: #17394b;
    background: #17394b;
    color: #fff;
    box-shadow: inset 0 -3px #c8a861;
  }
  .home-presentation #plans .hp-plan-tabs button[aria-selected="true"]::after {
    content: "";
    position: absolute;
    bottom: -6px;
    border-top: 6px solid #c8a861;
    border-inline: 6px solid transparent;
  }
  .home-presentation #plans .hp-plan-tabs button:focus-visible {
    outline: 3px solid #708f8b;
    outline-offset: 3px;
  }
}
