/* 收費方案 — Nebula. One idea: both plans share every question; AI 版 adds an examiner. */
.view.runner.n-pricing { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: 0; }
.n-pricing .topbar { margin-bottom: 18px; }

.pr-head { display: grid; gap: 12px; margin-bottom: 22px; }
.pr-head h1 { margin: 0; font-size: clamp(27px, 8.4vw, 34px); line-height: 1.2; letter-spacing: -.03em; color: var(--text-strong); text-wrap: balance; }
.pr-lead { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); max-width: 32em; }
.pr-balance { display: flex; align-items: center; gap: 12px; margin: 2px 0 0; }
.pr-balance strong { font-size: 52px; line-height: 1; font-weight: 640; letter-spacing: -.05em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pr-balance span { font-size: 15px; line-height: 1.45; color: var(--text); }
.pr-balance small { font-size: 13px; color: var(--text-2); }

/* Two plans side by side; the current one carries the light edge. */
.pr-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.pr-plan { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px 15px 15px; border-radius: 20px;
  border: 1px solid var(--line-2); background: linear-gradient(150deg, #1a283fcc, #1b2139cc); overflow: hidden; }
.pr-plan h2 { margin: 0; font-size: 16px; font-weight: 650; color: var(--text); }
.pr-price { margin: 0; display: flex; align-items: baseline; gap: 2px; }
.pr-price strong { font-size: 30px; line-height: 1.1; font-weight: 640; letter-spacing: -.04em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pr-price span { font-size: 14px; color: var(--text-2); }
.pr-plan-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.pr-plan.is-current .pr-plan-note { color: var(--accent); font-weight: 600; }
.pr-ai { border-color: transparent;
  background: linear-gradient(150deg, #173a4bf2, #2a2650f2) padding-box, linear-gradient(130deg, #6fe7dc, #8ec8f4 55%, #b8a2ee) border-box;
  box-shadow: 0 14px 34px #0309194d, inset 0 1px #d8f3ff1f; }
.pr-mark { position: absolute; top: 12px; right: 12px; opacity: .9; }
.pr-mark svg { width: 34px; height: 31px; }
.pr-ai::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, #c9fff71f 48%, transparent 66%); transform: translateX(-120%); }
.n-pricing:not(.is-loading) .pr-ai::after { animation: pr-sweep 1.4s cubic-bezier(.16, 1, .3, 1) .25s both; }
@keyframes pr-sweep { to { transform: translateX(120%); } }

/* The four differences, read as a three-column comparison. */
.pr-compare { margin-bottom: 8px; }
.pr-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr) minmax(0, 1fr); gap: 10px; align-items: center;
  min-height: 52px; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.pr-cols { min-height: 0; padding-block: 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-3); }
.pr-cols span:last-child { color: var(--accent); }
.pr-name { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.pr-name svg { flex: none; color: var(--text-3); }
.pr-free-v { color: var(--text-3); }
.pr-ai-v { color: var(--accent); font-weight: 600; }
.pr-shared { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.pr-shared svg { flex: none; margin-top: 3px; color: var(--ok); }

/* Costs stay folded until asked for. */
.pr-fold { margin: 14px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pr-fold summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; list-style: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--text); }
.pr-fold summary::-webkit-details-marker { display: none; }
.pr-fold summary svg { color: var(--text-3); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.pr-fold[open] summary svg { transform: rotate(180deg); }
.pr-fold dl { margin: 0 0 10px; display: grid; gap: 0; }
.pr-fold dl > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; font-size: 14px; }
.pr-fold dt { color: var(--text-2); }
.pr-fold dd { margin: 0; color: var(--accent); font-variant-numeric: tabular-nums; }
.pr-fold p { margin: 0 0 16px; font-size: 13px; line-height: 1.65; color: var(--text-2); }

.pr-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 8px 0 12px; }
.pr-links a, .pr-links button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #9fb2cc66; cursor: pointer; }

/* The one decision lives at the thumb. */
.pr-bar { position: sticky; bottom: 0; margin: auto -22px 0; padding: 18px 22px calc(14px + var(--safe-b));
  background: linear-gradient(to top, var(--page) 72%, #0b132500); z-index: 2; }
.pr-cta { min-height: 56px; font-size: 16px; justify-content: center; }
.pr-cta:disabled { opacity: .55; }
.pr-fine { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.55; color: var(--text-3); text-align: center; }
.pr-status { color: var(--warn); }
.n-pricing [hidden] { display: none; }

@media (max-width: 360px) {
  .pr-bar { margin-inline: -17px; padding-inline: 17px; }
  .pr-plan { padding: 14px 12px 13px; }
  .pr-price strong { font-size: 26px; }
  .pr-row { gap: 8px; font-size: 13px; }
  .pr-name { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .n-pricing .pr-ai::after { animation: none; } }
