/* Apple-safe purchase flow — minimal styles for /subscribe and /account.
 *
 * Scoped under .ms-* class names so they don't clash with the verbatim
 * Webflow markup that powers the rest of the marketing site.
 */

.ms-page {
  min-height: 100vh;
  padding: 7rem 1.25rem 4rem;
  background: #faf7f4;
  font-family: "Gabarito", system-ui, -apple-system, sans-serif;
  color: #1a0f1c;
}

.ms-page__inner {
  max-width: 32rem;
  margin: 0 auto;
}

.ms-page__h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.ms-page__sub {
  text-align: center;
  color: #6b5e6e;
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.ms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  width: 100%;
}

.ms-button--primary {
  background: #5b2a7a;
  color: #ffffff;
}
.ms-button--primary:hover {
  background: #4a2362;
}
.ms-button--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ms-button--secondary {
  background: #ffffff;
  color: #1a0f1c;
  border-color: #d8d2dc;
}
.ms-button--secondary:hover {
  background: #f1ecf3;
}

.ms-button--ghost {
  background: transparent;
  color: #5b2a7a;
}
.ms-button--ghost:hover {
  background: rgba(91, 42, 122, 0.08);
}

/* Subscribe page */
.ms-subscribe {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ms-pricing {
  background: #ffffff;
  border: 1px solid #e9e2ec;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ms-pricing__name {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.ms-pricing__amount {
  margin-bottom: 1rem;
}
.ms-pricing__price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ms-pricing__interval {
  color: #6b5e6e;
  margin-left: 0.25rem;
}

.ms-pricing__desc {
  color: #6b5e6e;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ece5ef;
}

.ms-pricing__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ms-pricing__perks li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.ms-pricing__perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #5b2a7a;
  font-weight: 700;
}

.ms-pricing__note {
  color: #6b5e6e;
  font-size: 0.8rem;
  margin: 0;
}

.ms-subscribe__panel {
  background: #ffffff;
  border: 1px solid #e9e2ec;
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ms-subscribe__h {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.ms-subscribe__p {
  color: #6b5e6e;
  font-size: 0.9rem;
  margin: 0;
}

.ms-subscribe__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ms-subscribe__hello {
  margin: 0;
  font-size: 0.9rem;
  color: #4a3f4d;
}

.ms-subscribe__error,
.ms-account__error {
  color: #b3261e;
  font-size: 0.85rem;
  margin: 0;
}

.ms-subscribe__fallback,
.ms-account__fallback {
  background: #ffffff;
  border: 1px solid #e9e2ec;
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

/* Account page — outer container is a transparent flex column; each
   section below is its own card via .ms-account__card. */
.ms-account {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ms-account__card {
  background: #ffffff;
  border: 1px solid #e9e2ec;
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ms-account__card-h {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #1a0f1c;
}

.ms-account__inner-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ms-account__inner {
  background: #faf6f8;
  border: 1px solid #ece5ef;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ms-account__inner-h {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #1a0f1c;
}

.ms-account__field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.ms-account__field-label {
  color: #6b5e6e;
  font-size: 0.85rem;
}

.ms-account__field-value {
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}

.ms-account__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.ms-account__form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ms-account__form-actions .ms-button {
  flex: 1;
  min-width: 8rem;
}

.ms-account__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6b5e6e;
}

.ms-account__checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: #5a1f12;
}

.ms-account__link-button {
  background: none;
  border: none;
  padding: 0;
  color: #5a1f12;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  align-self: flex-start;
  margin-top: -0.25rem;
}
.ms-account__link-button:hover {
  text-decoration: none;
}

.ms-account__ok {
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  margin: 0;
}

.ms-account__danger {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

/* Reusable form field for inline edit forms. */
.ms-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ms-field__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a0f1c;
}

.ms-field__input {
  width: 100%;
  border: 1px solid #d8cfd9;
  border-radius: 0.6rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
  color: #1a0f1c;
}
.ms-field__input:focus {
  outline: none;
  border-color: #5a1f12;
  box-shadow: 0 0 0 3px rgba(90, 31, 18, 0.15);
}

.ms-field__hint {
  font-size: 0.75rem;
  color: #6b5e6e;
}

/* Danger button variant for "Delete account". */
.ms-button--danger {
  background: #5a1f12;
  color: #fff;
  border: 1px solid transparent;
}
.ms-button--danger:hover {
  background: #4a1810;
}
.ms-button--danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ms-account__panel {
  background: #ffffff;
  border: 1px solid #e9e2ec;
  border-radius: 1.5rem;
  padding: 1.75rem;
}

.ms-account__banner {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.ms-account__h {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.ms-account__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ece5ef;
}
.ms-account__row:last-of-type {
  border-bottom: none;
}

.ms-account__label {
  color: #6b5e6e;
  font-size: 0.85rem;
}
.ms-account__value {
  font-weight: 600;
  font-size: 0.95rem;
}

.ms-account__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.ms-account__note {
  color: #6b5e6e;
  font-size: 0.9rem;
  margin: 0;
}

/* Tier picker on /subscribe — Apple-safe purchase flow. */
.ms-pricing__tiers {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 36rem) {
  .ms-pricing__tiers {
    grid-template-columns: 1fr 1fr;
  }
}
.ms-tier {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  background: #fff;
  border: 2px solid #e8dfd6;
  border-radius: 1.25rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
  color: inherit;
  width: 100%;
}
.ms-tier:hover:not(.ms-tier--disabled) {
  border-color: #c8a994;
}
.ms-tier--selected {
  border-color: #5a1f12;
  box-shadow: 0 0 0 1px #5a1f12;
}
.ms-tier--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ms-tier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ms-tier__name {
  font-weight: 700;
  font-size: 1.05rem;
}
.ms-tier__badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #5a1f12;
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.ms-tier__amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.ms-tier__price {
  font-size: 1.75rem;
  font-weight: 800;
}
.ms-tier__interval {
  color: #6b5e6e;
}
.ms-tier__desc {
  color: #6b5e6e;
  margin: 0;
  font-size: 0.9rem;
}
.ms-tier__perks {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  color: #1a0f1c;
  font-size: 0.9rem;
}
.ms-tier__perks li {
  margin-bottom: 0.2rem;
}
.ms-tier__note {
  color: #6b5e6e;
  font-size: 0.8rem;
  margin: 0;
}
