/* =========================================================================
   Component: fm-plan-builder
   Two-column plan showcase — intro copy on the left, plan card on the right.
   The plan card renders with its own tagged promo strip, price block,
   line-count stepper, primary CTA and feature list.
   ========================================================================= */

.fm-plan-builder {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--fm-sp-6);
  align-items: center;
}

@media (min-width: 992px) {
  .fm-plan-builder {
    grid-template-columns: 1fr 1fr;
    gap: var(--fm-sp-8);
  }
}

.fm-plan-builder__intro {
  max-width: 480px;
}

.fm-plan-builder__title {
  color: var(--fm-accent);
  font-size: var(--fm-fs-2xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--fm-sp-4);
}

@media (min-width: 992px) {
  .fm-plan-builder__title { font-size: 3rem; }
}

.fm-plan-builder__desc {
  color: var(--fm-text);
  font-size: var(--fm-fs-md);
  margin: 0;
}

/* ---------- Plan card ---------- */
.fm-plan-card {
  background: var(--fm-white);
  border-radius: 20px;
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  justify-self: end;
}

/* Orange banner at the top */
.fm-plan-card__banner {
  background: var(--fm-accent);
  color: var(--fm-white);
  padding: var(--fm-sp-4) var(--fm-sp-5);
}
.fm-plan-card__banner-title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: var(--fm-fw-bold);
  margin: 0 0 2px;
  font-size: var(--fm-fs-base);
}
.fm-plan-card__banner-sub {
  font-size: var(--fm-fs-sm);
  color: rgba(255, 255, 255, 0.9);
}

.fm-plan-card__tag-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fm-plan-card__body {
  padding: var(--fm-sp-5) var(--fm-sp-6) var(--fm-sp-6);
}

.fm-plan-card__title {
  color: var(--fm-accent);
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--fm-sp-4);
}

.fm-plan-card__price {
  display: flex;
  align-items: flex-start;
  gap: var(--fm-sp-4);
  margin-bottom: var(--fm-sp-5);
}
.fm-plan-card__amount {
  font-size: 2rem;
  font-weight: var(--fm-fw-bold);
  color: var(--fm-text-strong);
  line-height: 1;
}
.fm-plan-card__price-desc {
  font-size: var(--fm-fs-sm);
  color: var(--fm-text);
  line-height: var(--fm-lh-normal);
}
.fm-plan-card__price-desc small {
  display: block;
  color: var(--fm-text);
  margin-top: 4px;
}

/* Line-count stepper */
.fm-plan-card__counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--fm-gray-200);
  border-radius: 999px;
  padding: 6px 6px;
  margin-bottom: var(--fm-sp-4);
}
.fm-plan-card__counter button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--fm-text-strong);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--fm-dur-fast) var(--fm-ease);
}
.fm-plan-card__counter button:hover { background: var(--fm-gray-50); }
.fm-plan-card__counter-value {
  font-weight: var(--fm-fw-bold);
  font-size: var(--fm-fs-base);
  color: var(--fm-text-strong);
}

.fm-plan-card__cta {
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-bottom: var(--fm-sp-5);
}

.fm-plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--fm-sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--fm-sp-2);
}
.fm-plan-card__features li {
  position: relative;
  padding-left: 1.75em;
  color: var(--fm-text-strong);
  font-size: var(--fm-fs-sm);
}
.fm-plan-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--fm-accent);
  border-bottom: 2px solid var(--fm-accent);
  transform: rotate(-45deg);
}

.fm-plan-card__footer-links {
  display: flex;
  gap: var(--fm-sp-5);
  padding-top: var(--fm-sp-4);
  border-top: 1px solid var(--fm-gray-200);
  margin-bottom: var(--fm-sp-3);
}
.fm-plan-card__footer-links a {
  color: var(--fm-text-strong);
  text-decoration: underline;
  font-size: var(--fm-fs-sm);
  font-weight: var(--fm-fw-bold);
}

.fm-plan-card__footnote {
  color: var(--fm-text);
  font-size: var(--fm-fs-xs);
  margin: 0;
  line-height: var(--fm-lh-normal);
}
