/* Page 19 · Plans & billing (/plans). Sheets and seg come from drill-new.css. */

.plans { padding-top: 6px; padding-bottom: 24px; max-width: 720px; }
.now { padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.now .lbl { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.now-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.now-top b { font-size: 1.15rem; font-weight: 800; }
.now p { margin-top: 4px; font-size: 0.86rem; color: var(--ink-2); }
.now.paid { background: var(--ink); border-color: var(--ink); color: #fff; }
.now.paid p { color: rgba(255, 255, 255, 0.85); }
.now .btn { width: 100%; margin-top: 12px; }
.state { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; background: #2e9e5b; color: #fff; }
.state.ending { background: #e2a33a; color: #3d2a05; }
.card-ish { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2, #f1ece3); font-size: 0.86rem; color: var(--ink-2); }

.rows { list-style: none; margin: 12px 0 0; padding: 0 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.rows li + li { border-top: 1px solid var(--line); }
.row-btn { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-align: left; }
.row-btn .val { flex: none; color: var(--muted); font-weight: 600; font-size: 0.88rem; }
.receipts li { display: flex; justify-content: space-between; gap: 10px; min-height: 46px; align-items: center; font-size: 0.86rem; }
.receipts li span:last-child { color: var(--muted); }
.danger-link { width: 100%; margin-top: 10px; color: var(--bad); font-weight: 800; }

.sec-title { margin-top: 22px; font-size: 1.05rem; }
.period { margin-top: 10px; max-width: 320px; }
.plan-cards { display: grid; gap: 12px; margin-top: 12px; }
.plan { padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.plan.hot { border: 2px solid var(--accent); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-top b { font-size: 1.1rem; font-weight: 800; }
.badge { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.72rem; font-weight: 800; }
.price { margin-top: 4px; font-size: 1.5rem; font-weight: 800; }
.price small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.tbd { font-size: 0.78rem; color: var(--muted); }
.feats { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 4px; font-size: 0.88rem; }
.feats li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.plan .btn { width: 100%; }
.fine { margin-top: 16px; font-size: 0.8rem; color: var(--muted); }

.proto-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 12px; font-size: 0.78rem; color: var(--muted); }
.proto-switch button { min-height: 34px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 0.78rem; font-weight: 700; }
.proto-switch button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.sheet h2 { font-size: 1.15rem; outline: none; padding-right: 40px; }
.buy-price { margin-top: 4px; font-size: 1.4rem; font-weight: 800; }
.sheet-text { margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); }
.sheet .btn-block { width: 100%; margin-top: 10px; }

@media (min-width: 900px) {
  .plans { padding-top: 28px; }
  .plan-cards { grid-template-columns: 1fr 1fr; }
}

/* Real plans (signed in) */
.plans.loading > * { visibility: hidden; }
.need-plus, .ask-parent { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; }
.need-plus { background: #fbe9df; color: #b9531c; }
.ask-parent { background: var(--teal-soft); color: var(--teal); }
