/* bstack.cc/pricing, layout B "ledger" (owner pick 2026-10-28, prototype public/lab/pricing.html?v=b).
   Parts: home chrome (.home-bar, .auth-in/.auth-up as in home/src/home.css), paper card (--radius-modal, --border, settle-in),
   the home "Same jobs" table rows, .cap labels, bpad's segmented control, about-pop .qa rows, suite footer, tool icons.
   --pro and --pro-on are the Pro colour from tokens.css; mono only for numbers (v3). */
:root { --pro-soft: color-mix(in srgb, var(--pro) 9%, transparent); --pro-ink: color-mix(in srgb, var(--pro-text) 82%, var(--ink)); }
:root.dark { --pro-soft: color-mix(in srgb, var(--pro) 30%, transparent); }

.home-bar { position: sticky; top: 0; z-index: 20; height: var(--chrome-h); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: var(--editor-bg); border-bottom: 1px solid var(--border); }
.home-wm { display: flex; } .home-wm img { height: var(--logo-h); width: auto; }
.home-nav { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.home-link { padding: 6px 10px; border-radius: var(--radius-btn); text-decoration: none; color: var(--ink-soft); font-size: 14px; transition: background var(--dur-fast) var(--ease); }
.home-link:hover { background: var(--hover); color: var(--ink); }
.home-link[aria-current] { color: var(--ink); font-weight: 500; }
.auth-in, .auth-up { text-decoration: none; }
.auth-in { padding: 6px 10px; font-size: 14px; line-height: 20px; border-radius: var(--radius-btn); color: color-mix(in srgb, var(--ink) 82%, var(--editor-bg)); transition: background-color var(--dur-fast) var(--ease); }
.auth-in:hover { background: var(--hover); }
.auth-up { padding: 6px 12px; font-size: 14px; line-height: 20px; font-weight: 500; border-radius: var(--radius-btn); background: var(--ink); color: var(--editor-bg); transition: opacity var(--dur-fast) var(--ease); }
.auth-up:hover { opacity: .85; }
@media (max-width: 639px) { .home-bar { padding: 0 var(--pad-phone); } .auth-in, .home-link { padding: 6px; } .auth-up { padding: 6px 8px; } }

.pg { width: 100%; max-width: 1080px; margin: 0 auto; padding: 72px var(--pad-phone) 120px; box-sizing: border-box; }
@media (max-width: 639px) { .pg { padding-top: 40px; } }
.hero { max-width: 800px; margin-bottom: 40px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.hero p { margin-top: 14px; font-family: var(--font-text); font-size: 19px; line-height: 1.5; color: var(--ink-soft); }

/* Pro mark: the word bstack and a Pro tag (design/README.md "Pro") */
.pro-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.pro-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--radius-kbd); background: var(--pro); color: var(--pro-on); box-shadow: inset 0 0 0 1px var(--pro-ring); font-size: 12px; font-weight: 600; line-height: 1; }

/* Segmented control, bpad Appearance */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--sidebar-bg); }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 6px 14px; font-size: 13px; color: var(--ink-soft); cursor: pointer; border-radius: 7px; white-space: nowrap; transition: color var(--dur-fast) var(--ease); }
.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 7px; background: var(--editor-bg); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--frame); transition: transform 260ms var(--ease-overshoot); }
.seg[data-on="year"] .thumb { transform: translateX(100%); }
.seg .save { color: var(--pro-ink); font-weight: 500; }
.bill-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 40px; }
.price .num { font-family: var(--font-mono); font-size: 36px; letter-spacing: -.02em; line-height: 1; }
.price .per { font-size: 14px; color: var(--ink-soft); }
.price .num.swap { animation: swap 280ms var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bill-note { font-size: 12px; color: var(--muted); min-height: 16px; margin-top: -6px; }
.btn-pro, .btn-free { display: inline-flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; padding: 10px 16px; border-radius: var(--radius-btn); font-size: 14px; text-decoration: none; cursor: pointer; }
.btn-pro { border: 0; background: var(--pro); color: var(--pro-on); box-shadow: inset 0 0 0 1px var(--pro-ring); font-weight: 500; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease-overshoot); }
.btn-pro:hover { opacity: .88; } .btn-pro:active { transform: scale(.98); }
.btn-free { border: 1px solid var(--border); background: var(--editor-bg); color: var(--ink); transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.btn-free:hover { border-color: var(--decor); background: var(--hover); }

/* The ledger: the plans are the table head */
.ledger { background: var(--editor-bg); border: 1px solid var(--border); border-radius: var(--radius-modal); box-shadow: 0 1px 2px rgba(0,0,0,.04); overflow: hidden; animation: settle 420ms var(--ease-overshoot) both; }
@keyframes settle { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.ledger table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ledger thead th { vertical-align: top; text-align: left; padding: 24px; border-bottom: 1px solid var(--border); font-weight: 400; }
.ledger thead th:first-child { width: 36%; vertical-align: bottom; }
.ledger thead th.pro { position: relative; background: var(--pro-soft); }
.ledger thead th.pro::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--pro); box-shadow: inset 0 0 0 1px var(--pro-ring); }
.ledger .col { display: grid; gap: 14px; }
.ledger .col > b { font-size: 15px; font-weight: 600; }
.ledger tbody td { padding: 14px 24px; border-bottom: 1px solid var(--border); font-size: 14px; }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tbody td.pro { background: var(--pro-soft); color: var(--pro-ink); }
.ledger .n { font-family: var(--font-mono); white-space: nowrap; }
.ledger .w { font-weight: 500; }
.tools { display: inline-flex; gap: 4px; margin-right: 10px; vertical-align: -2px; }
.tools img { width: 16px; height: 16px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--frame); display: block; }
.tools .sf-dark, .dark .tools .sf-light { display: none; } .dark .tools .sf-dark { display: block; }
@media (max-width: 760px) {
  .ledger thead th, .ledger tbody td { padding: 12px; }
  .ledger thead th:first-child, .ledger tbody td:first-child { display: none; }
  .ledger tbody td::before { content: attr(data-l); display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 400; color: var(--muted); margin-bottom: 2px; }
  .price .num { font-size: 28px; }
}

/* Fine print, one quiet card */
.fine-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin-top: 24px; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--editor-bg); font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.fine-card div { display: flex; gap: 10px; align-items: flex-start; }
.fine-card svg { width: 15px; height: 15px; margin-top: 2px; color: var(--muted); flex: none; }
.fine-card a { color: var(--ink); }
@media (max-width: 640px) { .fine-card { grid-template-columns: 1fr; } }

/* Questions: about-pop .qa rows at page size */
.sec { margin-top: 88px; }
.sec h2 { font-size: var(--fs-heading-1); margin-bottom: 20px; }
.qa-list { border-top: 1px solid var(--border); max-width: 760px; }
.qa { border-bottom: 1px solid var(--border); }
.qa button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; text-align: left; font-family: var(--font-text); font-size: 18px; font-weight: 600; cursor: pointer; color: var(--ink); }
.qa .chev { width: 16px; height: 16px; color: var(--muted); transition: transform 240ms var(--ease); }
.qa.open .chev { transform: rotate(180deg); }
.qa .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease); }
.qa.open .a { grid-template-rows: 1fr; }
.qa .a > p { overflow: hidden; font-family: var(--font-text); font-size: 16px; line-height: 1.6; color: var(--ink-soft); padding-right: 32px; transition: padding 280ms var(--ease); }
.qa.open .a > p { padding-bottom: 18px; }
.qa .a a { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 639px) { .btn-free, .btn-pro { padding: 10px 8px; } }
