/* ==========================================================================
   Mpool page components
   ========================================================================== */
.mp-hero__visual { aspect-ratio: 560 / 500; max-width: 600px; }
.mp-feature__art svg { width: 100%; height: auto; }
.mp-pills { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mp-pills li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--ink);
}
.mp-pills svg { width: 16px; height: 16px; color: var(--accent-text); }

/* Steps */
.mp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mp-step {
  position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.mp-step:not(:last-child)::after {
  content: ""; position: absolute; top: 54px; right: -20px; width: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--wine) 0 4px, transparent 4px 8px);
}
.mp-step__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--wine); color: #fff;
}
.mp-step__icon svg { width: 24px; height: 24px; }
.mp-step__num { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.mp-step h3 { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.mp-step p { margin: 0; color: var(--muted); font-size: 0.975rem; }

/* Comparison */
.mp-compare { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.mp-compare__row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: stretch; border-top: 1px solid var(--line); }
.mp-compare__row:first-child { border-top: 0; }
.mp-compare__row > span { padding: 20px 24px; display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.mp-compare__row > span[role="rowheader"] { font-weight: 600; color: var(--ink); }
.mp-compare__row > span[role="cell"] { color: var(--muted); }
.mp-compare__row svg { flex: none; width: 20px; height: 20px; }
.mp-compare__row > span[role="cell"] svg { color: var(--muted); opacity: 0.7; }
.mp-compare__row > .mp-compare__us { background: var(--wine-soft); color: var(--ink); font-weight: 600; }
.mp-compare__row > .mp-compare__us svg { color: var(--accent-text); opacity: 1; }
.mp-compare__head > span { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.mp-compare__head > .mp-compare__us { color: var(--accent-text); }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 18px 0; font-weight: 600; font-size: 1.0625rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform 250ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--accent-text); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { margin: 0; padding: 0 40px 22px 0; color: var(--muted); }

/* Subscription form */
.mp-form { max-width: 820px; margin-inline: auto; }
.mp-form .form { gap: 28px; }
.mp-form__group { display: grid; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.mp-form__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.mp-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mp-fieldset legend { padding: 0; margin-bottom: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.mp-fieldset legend .req { color: var(--accent-text); }

/* Radio cards */
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-group input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start;
  padding: 18px 48px 18px 18px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--bg);
  cursor: pointer; transition: border-color 150ms, background-color 150ms, box-shadow 150ms, transform 120ms var(--ease-out);
}
.choice:active { transform: scale(0.99); }
.choice:hover { border-color: var(--muted); }
.choice::after {
  content: ""; position: absolute; top: 18px; right: 16px; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--line-strong); background: var(--bg); transition: border 150ms;
}
.choice__icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--wine-soft); color: var(--accent-text); }
.choice__icon svg { width: 20px; height: 20px; }
.choice__title { font-weight: 700; color: var(--ink); line-height: 1.3; }
.choice__desc { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.choice-group input:checked + .choice { border-color: var(--wine); background: var(--wine-soft); box-shadow: 0 0 0 3px rgba(108, 12, 49, 0.12); }
.choice-group input:checked + .choice::after { border: 6px solid var(--wine); background: #fff; }
.choice-group input:focus-visible + .choice { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.mp-fieldset[data-invalid] .choice { border-color: #c62828; }

/* Number stepper */
.stepper { display: grid; grid-template-columns: 50px 1fr 50px; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--bg); }
.stepper:focus-within { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(108, 12, 49, 0.14); }
.stepper__btn {
  display: grid; place-items: center; min-height: 50px; border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 150ms, transform 100ms var(--ease-out); touch-action: manipulation;
}
.stepper__btn:hover { background: var(--bg-alt); }
.stepper__btn:active { transform: scale(0.92); }
.stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper__btn svg { width: 18px; height: 18px; }
.field .stepper input {
  border: 0; border-radius: 0; text-align: center; font-weight: 700; font-size: 1.0625rem; min-height: 50px; padding: 0;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; box-shadow: none;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Consent */
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--wine); cursor: pointer; }
.field .consent label { font-size: 0.9375rem; color: var(--text); font-weight: 400; cursor: pointer; }
.mp-form__submit { width: 100%; min-height: 54px; font-size: 1.0625rem; }

/* Home Mpool section */
.home-steps { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.home-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); line-height: 1.5; }
.home-steps li strong { color: var(--ink); font-weight: 600; }
.home-steps span {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wine); color: #fff; font-size: 0.8125rem; font-weight: 700; margin-top: -1px;
}
.mp-pills--grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.mp-pills--grid li { border-radius: 14px; padding: 12px 14px; background: var(--surface); }
@media (max-width: 640px) { .mp-pills--grid { grid-template-columns: 1fr; } }

/* Mpool callout (solutions page) */
.mp-callout { flex-direction: row; align-items: center; gap: 24px; }
.mp-callout .card__icon { margin: 0; flex: none; }
.mp-callout > div:nth-child(2) { flex: 1; }
.mp-callout h2 { margin-bottom: 6px; }
.mp-callout p { margin: 0; }
.mp-callout .link-arrow { margin: 0; padding: 0; flex: none; }
@media (max-width: 640px) { .mp-callout { flex-direction: column; align-items: flex-start; } }

/* Four-column business model (partner page) */
.model--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) {
  .model--4 { grid-template-columns: repeat(2, 1fr); }
  .model--4 .model__col:nth-child(3) { border-left: 0; }
  .model--4 .model__col:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) { .model--4 { grid-template-columns: 1fr; } }

/* Home feature band */
.mp-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mp-feature__art { border-radius: var(--radius-lg); background: var(--bg-alt); padding: clamp(16px, 3vw, 32px); }
.badge-new {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--wine); color: #fff;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: 2px;
}

@media (max-width: 1080px) {
  .mp-steps { grid-template-columns: repeat(2, 1fr); }
  .mp-step::after { display: none; }
}
@media (max-width: 900px) {
  .mp-feature { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mp-steps, .choice-group { grid-template-columns: 1fr; }
  .mp-compare__row { grid-template-columns: 1fr 1fr; }
  .mp-compare__row > span[role="rowheader"] { grid-column: 1 / -1; padding-bottom: 4px; }
  .mp-compare__row > span { padding: 14px 16px; font-size: 0.9375rem; }
  .mp-compare__head > span:first-child { display: none; }
  .faq details p { padding-right: 0; }
}
