/* Membership page (/billing.html): the price, what is free and what membership
   adds, in the same Daylight / Night look as the front page. */
.nb-main { padding: 28px 0 8px; }
.nb-main .back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
.nb-main .back:hover { color: var(--brand); }
.nb-head { max-width: 760px; margin-bottom: 26px; }
.nb-head h1 { margin: 0 0 12px; color: var(--ink); font: 600 clamp(28px, 4vw, 40px)/1.15 var(--brandface); letter-spacing: -.01em; }
.nb-lead { margin: 0; font-size: 17.5px; color: var(--text); max-width: 640px; }

.nb-notes:empty { display: none; }
.nb-notes { display: grid; gap: 10px; margin: 0 0 22px; max-width: 900px; }
.nb-note { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 15px; }
.nb-note.is-ok { border-color: rgba(46, 139, 87, .5); background: linear-gradient(rgba(46, 139, 87, .08), rgba(46, 139, 87, .08)), var(--surface);
  border-color: color-mix(in srgb, #2E8B57 45%, var(--line)); background: color-mix(in srgb, #2E8B57 8%, var(--surface)); }
.nb-note.is-warn { border-color: rgba(183, 121, 31, .55); background: linear-gradient(rgba(183, 121, 31, .09), rgba(183, 121, 31, .09)), var(--surface);
  border-color: color-mix(in srgb, #B7791F 50%, var(--line)); background: color-mix(in srgb, #B7791F 9%, var(--surface)); }
.nb-note.is-test { border-style: dashed; color: var(--muted); }

.nb-status:empty { display: none; }
.nb-status { padding: 22px 24px; margin: 0 0 22px; max-width: 900px; }
.nb-status h2 { margin: 0 0 12px; color: var(--ink); font: 600 20px/1.3 var(--ui); }
.nb-status dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 14px; font-size: 15px; }
.nb-status dt { color: var(--muted); }
.nb-status dd { margin: 0; color: var(--ink); }
.nb-status p { margin: 0 0 12px; }

.nb-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; align-items: stretch; }
.nb-plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; }
.nb-plan.is-featured { border: 2px solid var(--brand); }
.nb-plan h2 { margin: 0 0 6px; color: var(--ink); font: 600 21px/1.2 var(--ui); }
.nb-badge { position: absolute; top: -13px; left: 22px; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: 600 12.5px/1.2 var(--ui); letter-spacing: .04em; }
.nb-mine { position: absolute; top: 20px; right: 20px; margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: 600 12.5px/1.4 var(--ui); }
.nb-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 4px 0 4px; min-height: 48px; color: var(--ink); }
.nb-amount { font: 600 40px/1 var(--brandface); letter-spacing: -.01em; }
.nb-every { color: var(--muted); font-size: 16px; }
.nb-for { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.nb-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.nb-list li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.5; }
.nb-list li::before {
  content: ""; position: absolute; left: 2px; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%236B52B3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
html[data-style="night"] .nb-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23B9A6FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.nb-list li.is-lead { font-weight: 600; color: var(--ink); }
.nb-action { display: grid; gap: 10px; }
.nb-action .btn { width: 100%; }
.nb-action .nb-small { margin: 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.nb-action .nb-small a { color: var(--brand); }
.nb-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.nb-option strong { display: block; color: var(--ink); font-size: 15.5px; }
.nb-option span { color: var(--muted); font-size: 14px; }
.nb-option .btn { width: auto; }
.btn[disabled] { opacity: .55; cursor: default; }

.nb-faq { max-width: 900px; margin-top: 36px; }
.nb-faq h2 { margin: 0 0 14px; color: var(--ink); font: 600 20px/1.3 var(--ui); }
.nb-faq dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.nb-faq div { padding: 18px 18px 16px; }
.nb-faq dt { margin: 0 0 6px; color: var(--ink); font-weight: 600; }
.nb-faq dd { margin: 0; font-size: 15px; color: var(--text); }

.nb-error:empty { display: none; }
.nb-error { max-width: 900px; margin: 18px 0 0; color: #B42318; font-weight: 500; }
html[data-style="night"] .nb-error { color: #FDA29B; }

@media (max-width: 760px) {
  .nb-plans { grid-template-columns: 1fr; gap: 26px; }
  .nb-faq dl { grid-template-columns: 1fr; }
  .nb-lead { font-size: 16.5px; }
  .nb-option { flex-wrap: wrap; }
  .nb-option .btn { width: 100%; }
}
