/* Plans — landing pricing language adapted to the product shell */
body.dash-page .dash-main > .plan-content {
  flex: 1;
  min-width: 0;
  padding: var(--dash-content-y, 32px) var(--dash-page-x, 32px);
  padding-inline-start: var(--dash-mobile-nav-gutter, 0px);
  padding-block-end: calc(72px + var(--dash-content-pad-bottom, 0px));
}

.plan-pricing,
.plan-faq {
  width: 100%;
  margin-inline: 0;
  color: var(--dash-text, #f4f4f5);
}

.plan-period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-block-end: 28px;
}

.plan-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding-inline: 13px 15px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dash-text, #f4f4f5) 6%, transparent);
  color: var(--dash-text-muted, #929297);
  font: 500 13px/1 var(--dash-font, Inter, system-ui, sans-serif);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.plan-back svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.plan-back:hover {
  background: color-mix(in srgb, var(--dash-text, #f4f4f5) 10%, transparent);
  color: var(--dash-text, #f4f4f5);
}

.plan-back:active { transform: scale(0.96); }
.plan-back:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.plan-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dash-text, #f4f4f5) 7%, transparent);
}

.plan-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding-inline: 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dash-text-muted, #929297);
  font: 500 13px/1 var(--dash-font, Inter, system-ui, sans-serif);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.plan-toggle__btn [data-period-note] {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding-inline: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: currentColor;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.plan-toggle__btn.is-active { background: var(--dash-text, #f4f4f5); color: var(--dash-bg, #050506); }
.plan-toggle__btn:disabled { color: var(--dash-text-muted, #929297); cursor: not-allowed; opacity: 0.58; }
.plan-toggle__btn:active,
.plan-btn:active:not([aria-disabled="true"]) { transform: scale(0.97); }
.plan-toggle__btn:focus-visible,
.plan-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  align-items: stretch;
}

.plan-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 28px;
  min-width: 0;
  min-height: 488px;
  padding: clamp(24px, 2vw, 30px);
  border: 0;
  border-radius: 28px;
  background: color-mix(in srgb, var(--dash-text, #f4f4f5) 6%, transparent);
  box-shadow: none;
  overflow: hidden;
}

.plan-recommended {
  display: flex;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: 40px;
  background: color-mix(in srgb, var(--dash-text, #f4f4f5) 8%, transparent);
}

.plan-recommended__label {
  position: absolute;
  display: none;
}

.plan-card--featured {
  width: 100%;
  background: color-mix(in srgb, var(--dash-bg, #050506) 78%, var(--dash-text, #f4f4f5) 22%);
}

.plan-card__head { min-width: 0; }
.plan-card__name-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; }
.plan-card__name { margin: 0; font-size: clamp(21px, 2vw, 26px); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }

.plan-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding-inline: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dash-text, #f4f4f5) 8%, transparent);
  color: var(--dash-text-muted, #929297);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.plan-card__price { display: flex; align-items: baseline; margin: 26px 0 0; color: var(--dash-text, #f4f4f5); font-variant-numeric: tabular-nums; }
.plan-card__currency { align-self: flex-start; margin-block-start: 4px; font-size: 20px; font-weight: 600; }
.plan-card__amount { font-size: clamp(48px, 4vw, 58px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.94; }
.plan-card__period { color: var(--dash-text-muted, #929297); font-size: 13px; white-space: nowrap; }
.plan-card__billing-note {
  min-height: 18px;
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--dash-text, #f4f4f5) 58%, transparent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}
.plan-card__desc { min-height: 40px; margin: 8px 0 0; color: var(--dash-text-muted, #929297); font-size: 14px; line-height: 1.45; }

.plan-card__features {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card__features li {
  position: relative;
  margin: 0;
  padding-inline-start: 24px;
  color: color-mix(in srgb, var(--dash-text, #f4f4f5) 66%, transparent);
  font-size: 14px;
  line-height: 1.4;
}

.plan-card__features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  inset-block-start: 0.48em;
  width: 8px;
  height: 4px;
  border-inline-start: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding-inline: 18px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dash-text, #f4f4f5) 8%, transparent);
  color: var(--dash-text, #f4f4f5);
  font: 600 13px/1 var(--dash-font, Inter, system-ui, sans-serif);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.plan-btn--primary { background: #f5f5f5; color: #111; }
.plan-btn--primary:hover { background: #fff; }
.plan-btn--secondary:hover { background: color-mix(in srgb, var(--dash-text, #f4f4f5) 12%, transparent); }
.plan-btn--current,
.plan-btn[aria-disabled="true"] { color: var(--dash-text-muted, #929297); cursor: not-allowed; }

.plan-footnote {
  margin: 22px 0 0;
  color: var(--dash-text-muted, #929297);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.plan-faq {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(32px, 7vw, 92px);
  margin-block-start: clamp(72px, 8vw, 112px);
  align-items: start;
}

.plan-faq__head { padding-block-start: 10px; }
.plan-faq__head h2 { max-width: 260px; margin: 0; font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; line-height: 1.08; letter-spacing: -0.045em; }

.plan-faq .landing-motion-faq {
  --landing-text: var(--dash-text, #f4f4f5);
  --landing-text-muted: var(--dash-text-muted, #929297);
  --landing-canvas: var(--dash-bg, #050506);
  --landing-faq-surface: color-mix(in srgb, var(--dash-text, #f4f4f5) 5%, transparent);
  --landing-faq-surface-open: var(--landing-faq-surface);
}

.plan-faq .landing-motion-faq__trigger {
  grid-template-columns: minmax(0, 1fr) 24px;
}

html.light-theme .plan-card,
html.light .plan-card { background: rgb(7 7 7 / 0.045); }
html.light-theme .plan-recommended,
html.light .plan-recommended { background: rgb(7 7 7 / 0.08); }
html.light-theme .plan-card--featured,
html.light .plan-card--featured { background: #1f1f1f; color: #fff; }
html.light-theme .plan-card--featured .plan-card__desc,
html.light .plan-card--featured .plan-card__desc,
html.light-theme .plan-card--featured .plan-card__features li,
html.light .plan-card--featured .plan-card__features li,
html.light-theme .plan-card--featured .plan-card__period,
html.light .plan-card--featured .plan-card__period,
html.light-theme .plan-card--featured .plan-card__billing-note,
html.light .plan-card--featured .plan-card__billing-note { color: rgb(255 255 255 / 0.66); }
html.light-theme .plan-card--featured .plan-card__price,
html.light .plan-card--featured .plan-card__price,
html.light-theme .plan-card--featured .plan-card__name,
html.light .plan-card--featured .plan-card__name { color: #fff; }
html.light-theme .plan-faq .landing-motion-faq,
html.light .plan-faq .landing-motion-faq {
  --landing-faq-surface: #fff;
  --landing-faq-surface-open: #fff;
}

@media (min-width: 981px) {
  .plan-recommended {
    position: relative;
    margin-block-start: -52px;
    padding-block-start: 64px;
  }
  .plan-recommended__label {
    position: absolute;
    inset: 0 12px auto;
    display: grid;
    place-items: center;
    min-height: 52px;
    margin: 0;
    color: color-mix(in srgb, var(--dash-text, #f4f4f5) 76%, transparent);
    font-size: 13px;
    font-weight: 500;
  }
}

@media (max-width: 980px) {
  .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-recommended { display: grid; grid-template-rows: auto 1fr; grid-column: span 1; padding: 10px; }
  .plan-recommended__label { position: static; display: grid; place-items: center; min-height: 42px; margin: 0; color: var(--dash-text-muted, #929297); font-size: 12px; font-weight: 500; }
  .plan-card { min-height: 450px; }
  .plan-cards > .plan-card:last-child { grid-column: 1 / -1; min-height: 0; }
}

@media (max-width: 920px) {
  .plan-cards { grid-template-columns: 1fr; }
  .plan-recommended,
  .plan-cards > .plan-card:last-child { grid-column: auto; }
  .plan-card { min-height: 0; }
  .plan-faq { grid-template-columns: 1fr; gap: 24px; }
  .plan-faq__head h2 { max-width: none; }
}

@media (max-width: 700px) {
  body.dash-page .dash-main > .plan-content {
    padding: 16px;
    padding-inline-start: calc(16px + var(--dash-mobile-nav-gutter, 0px));
    padding-block-end: calc(48px + var(--dash-content-pad-bottom, 0px));
  }
  .plan-period-row { margin-block-end: 20px; }
  .plan-toggle { width: 100%; }
  .plan-toggle__btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; }
  .plan-cards { grid-template-columns: 1fr; gap: 14px; }
  .plan-recommended,
  .plan-cards > .plan-card:last-child { grid-column: auto; }
  .plan-card { min-height: 0; gap: 24px; padding: 22px; border-radius: 24px; }
  .plan-recommended { border-radius: 32px; }
  .plan-card__desc { min-height: 0; }
  .plan-faq { margin-block-start: 64px; }
  .plan-faq__head { padding: 0 4px; }
  .plan-faq__head h2 { max-width: none; }
  .plan-faq .landing-motion-faq__trigger,
  .plan-faq .landing-motion-faq__content { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .plan-toggle__btn,
  .plan-btn { transition: none; }
}
