/* Shared /plans page (zam / zad / nya) — neu cards on the auth shell palette. */
body.ux-plans { --neu-bg: #ebe8e6; }
body.ux-plans[data-brand="zam"],
body.ux-plans[data-brand="zad"] { --neu-bg: #f6eadf; }

.plans-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.plans-head { text-align: center; }
.plans-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ux-accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
.plans-brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.plans-head h1 {
  margin: 14px 0 8px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
}
.plans-lead {
  margin: 0 auto;
  max-width: 620px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.plans-notice, .plans-status {
  align-self: center;
  width: min(720px, 100%);
  border-radius: 20px;
  padding: 14px 18px;
  line-height: 1.5;
  box-shadow: var(--neu-in);
  background: var(--neu-bg);
}
.plans-notice.is-ok { box-shadow: var(--neu-in), 0 0 0 2px rgba(46, 125, 50, 0.35); }
.plans-notice.is-warn { box-shadow: var(--neu-in), 0 0 0 2px var(--ux-accent-wash); }
.plans-status strong { color: var(--ux-accent); }

.period-toggle {
  align-self: center;
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: 999px;
  box-shadow: var(--neu-in);
}
.period-opt {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}
.period-opt em {
  font-style: normal;
  font-size: 0.78em;
  color: var(--ux-accent);
  margin-left: 4px;
}
.period-opt.is-on { background: var(--neu-bg); color: var(--ink); box-shadow: var(--neu-sm); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; width: 100%; }
  .plan-card.is-featured { order: -1; }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--neu-bg);
  border-radius: 28px;
  box-shadow: var(--neu);
  padding: 26px 22px 22px;
  min-width: 0;
}
.plan-card.is-featured { box-shadow: var(--neu), 0 0 0 2px var(--ux-accent); }
.plan-card h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -0.02em; }
.plan-badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ux-accent);
  background: var(--ux-accent-wash);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.plan-price strong { font-size: 2rem; letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); font-weight: 700; }
.plan-sub { margin: 4px 0 16px; color: var(--muted); font-size: 0.92rem; min-height: 1.3em; }
.plan-intro { margin: 0 0 8px; font-weight: 700; font-size: 0.95rem; }

.plan-feats, .bundle-apps ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.94rem;
  line-height: 1.4;
}
.plan-feats li, .bundle-apps li { position: relative; padding-left: 24px; }
.plan-feats li::before, .bundle-apps li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--muted);
  border-bottom: 2.5px solid var(--muted);
  transform: rotate(-45deg);
}
.plan-feats.is-paid li::before, .bundle-apps li::before { border-color: var(--ux-accent); }

.bundle-apps { display: grid; gap: 12px; margin-bottom: 18px; }
.bundle-apps h3 { margin: 0 0 6px; font-size: 0.95rem; }
.bundle-apps ul { margin: 0; gap: 6px; font-size: 0.88rem; }
.bundle-apps .is-here h3 { color: var(--ux-accent); }

.plan-cta { margin-top: auto; width: 100%; }
.plan-cta[disabled] { opacity: 0.6; cursor: progress; }
.plan-active { margin: 10px 0 0; text-align: center; color: var(--ux-accent); font-weight: 700; font-size: 0.9rem; }

.plans-faq {
  width: min(720px, 100%);
  align-self: center;
}
.plans-faq h2 { text-align: center; margin: 10px 0 14px; }
.plans-faq details {
  border-radius: 18px;
  box-shadow: var(--neu-sm);
  padding: 14px 18px;
  margin-bottom: 12px;
  background: var(--neu-bg);
}
.plans-faq summary { cursor: pointer; font-weight: 700; }
.plans-faq p { margin: 10px 0 0; color: var(--ink-soft); line-height: 1.55; }
.plans-faq a { color: var(--ux-accent); }

@media (max-width: 420px) {
  .plans-shell { padding-top: 18px; }
  .plan-card { padding: 22px 18px 18px; }
}

/* ---------------------------------------------------------------- per-app redesign (2026-10)
 * The page follows each app's own look: nya warm & calm, zad strict technical,
 * zam editorial serif. Cards become surfaces lighter than the page.
 */
body.ux-plans[data-brand="nya"] {
  --ux-accent: #b5523a;
  --ux-accent-wash: rgba(181, 82, 58, 0.1);
  --ink: #2b2420;
  --ink-soft: #4f453e;
  --muted: #7f7268;
  --line: rgba(110, 72, 44, 0.12);
  --neu-bg: #fffaf5;
  --neu: 0 1px 3px rgba(110, 72, 44, 0.05), 0 18px 40px -20px rgba(110, 72, 44, 0.3);
  --neu-sm: 0 1px 2px rgba(110, 72, 44, 0.06), 0 4px 12px -6px rgba(110, 72, 44, 0.18);
  --neu-in: inset 0 0 0 1px rgba(110, 72, 44, 0.12);
  font-family: "Nunito", system-ui, sans-serif;
  background:
    radial-gradient(1100px 620px at 8% -12%, #fbe6d6 0%, transparent 62%),
    radial-gradient(900px 560px at 108% 4%, #e8ecdc 0%, transparent 58%),
    #f6f1ec;
  background-attachment: fixed;
}
body.ux-plans[data-brand="nya"] .plans-head h1 { font-weight: 800; letter-spacing: -0.01em; }
body.ux-plans[data-brand="nya"] .plan-card { border-radius: 24px; border: 1px solid rgba(110, 72, 44, 0.08); }
body.ux-plans[data-brand="nya"] .plan-card.is-featured { box-shadow: var(--neu), 0 0 0 2px var(--ux-accent); }
body.ux-plans[data-brand="nya"] .btn.primary { background: linear-gradient(180deg, #c0603f 0%, #b5523a 100%); box-shadow: 0 10px 22px -10px rgba(181, 82, 58, 0.6); }
body.ux-plans[data-brand="nya"] .plans-notice,
body.ux-plans[data-brand="nya"] .plans-status { background: #f6efe8; }

body.ux-plans[data-brand="zad"] {
  --ux-accent: #c24a36;
  --ink: #111418;
  --ink-soft: #3a414b;
  --muted: #5b6370;
  --line: #e2e5ea;
  --neu-bg: #ffffff;
  --neu: 0 0 0 1px #e2e5ea, 0 1px 2px rgba(17, 20, 24, 0.04);
  --neu-sm: 0 0 0 1px #e2e5ea;
  --neu-in: inset 0 0 0 1px #e2e5ea;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background-color: #f3f4f6;
  background-image: radial-gradient(rgba(17, 20, 24, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}
body.ux-plans[data-brand="zad"] .plans-head h1 { font-weight: 600; letter-spacing: -0.02em; }
body.ux-plans[data-brand="zad"] .plan-card { border-radius: 12px; }
body.ux-plans[data-brand="zad"] .plan-card.is-featured { box-shadow: 0 0 0 2px #111418; }
body.ux-plans[data-brand="zad"] .plan-badge,
body.ux-plans[data-brand="zad"] .period-opt em {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
}
body.ux-plans[data-brand="zad"] .plan-price strong { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; }
body.ux-plans[data-brand="zad"] .btn,
body.ux-plans[data-brand="zad"] .period-toggle,
body.ux-plans[data-brand="zad"] .period-opt { border-radius: 8px; }
body.ux-plans[data-brand="zad"] .btn.primary { background: #111418; }
body.ux-plans[data-brand="zad"] .plans-faq details,
body.ux-plans[data-brand="zad"] .plans-notice,
body.ux-plans[data-brand="zad"] .plans-status { border-radius: 10px; background: #fff; }
body.ux-plans[data-brand="zad"] .plan-feats.is-paid li::before,
body.ux-plans[data-brand="zad"] .bundle-apps li::before { border-color: #12a150; }

body.ux-plans[data-brand="zam"] {
  --ux-accent: #7a2e2e;
  --ux-accent-wash: rgba(122, 46, 46, 0.08);
  --ink: #1d1b18;
  --ink-soft: #45403a;
  --muted: #7a7368;
  --line: #e6dccb;
  --neu-bg: #fffdf8;
  --neu: 0 0 0 1px #e6dccb, 0 14px 32px -22px rgba(60, 40, 20, 0.35);
  --neu-sm: 0 0 0 1px #e6dccb;
  --neu-in: inset 0 0 0 1px #e6dccb;
  font-family: "Literata", "PT Serif", Georgia, serif;
  background: #f5f0e6;
}
body.ux-plans[data-brand="zam"] .plans-head h1 { font-weight: 600; letter-spacing: -0.015em; }
body.ux-plans[data-brand="zam"] .plans-lead { font-style: italic; }
body.ux-plans[data-brand="zam"] .plan-card { border-radius: 14px; }
body.ux-plans[data-brand="zam"] .plan-card.is-featured { box-shadow: 0 0 0 1px #1d1b18, 0 14px 32px -22px rgba(60, 40, 20, 0.35); }
body.ux-plans[data-brand="zam"] .plan-badge { font-style: italic; border-radius: 6px; }
body.ux-plans[data-brand="zam"] .btn,
body.ux-plans[data-brand="zam"] .period-toggle,
body.ux-plans[data-brand="zam"] .period-opt { border-radius: 10px; }
body.ux-plans[data-brand="zam"] .btn.primary { background: #1d1b18; }
body.ux-plans[data-brand="zam"] .plans-faq details { border-radius: 12px; }
