/* TrueUp portal, docs and pricing. Same tokens as the landing page (public/static/styles.css). */
:root, [data-theme="light"] {
  --bg: #f6f7fb; --bg-2: #eef0f7; --card: #ffffff; --card-2: #f8f9fc; --line: #e3e6ef; --line-2: #d4d8e5;
  --text: #151a2d; --muted: #5a6178; --dim: #8a90a6;
  --accent: #4f46e5; --accent-2: #6366f1; --accent-soft: #eef0ff; --accent-ink: #ffffff;
  --ok: #0f9d6b; --ok-soft: #e6f7ef; --warn: #b7791f; --warn-soft: #fdf4e3; --bad: #d03a3a; --bad-soft: #fdecec;
  --shadow: 0 1px 2px rgba(20, 24, 45, .05), 0 8px 24px rgba(20, 24, 45, .06);
  --code: #f1f3f9;
}
[data-theme="dark"] {
  --bg: #0c0f1a; --bg-2: #121628; --card: #151a2d; --card-2: #1a2036; --line: #262d47; --line-2: #333b5a;
  --text: #e9ecf6; --muted: #a2a9c2; --dim: #707895;
  --accent: #818cf8; --accent-2: #a5b4fc; --accent-soft: #1f2447; --accent-ink: #0c0f1a;
  --ok: #34d399; --ok-soft: #10352b; --warn: #fbbf24; --warn-soft: #3a2e12; --bad: #f87171; --bad-soft: #3d1a1d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --code: #0f1322;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.3px; margin: 0 0 8px; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
p { margin: 0 0 10px; }
code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
pre code { background: none; padding: 0; word-break: normal; }
.muted { color: var(--muted); } .small { font-size: 13px; } .right { text-align: right; }
button { font: inherit; color: inherit; }

/* buttons + inputs (match the landing page) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 11px; padding: 10px 18px; font-weight: 650; font-size: 14.5px;
       cursor: pointer; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); text-decoration: none !important; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { background: var(--line-2); color: var(--dim); box-shadow: none; cursor: not-allowed; filter: none; }
.btn.big { padding: 13px 22px; font-size: 16px; width: 100%; }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.danger { background: var(--card); color: var(--bad); border: 1px solid var(--line-2); box-shadow: none; }
.btn.danger:hover { border-color: var(--bad); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan-actions form { margin: 0; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.link { color: var(--muted); font-size: 14px; padding: 6px; }
input, select { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input:disabled { background: var(--bg-2); color: var(--muted); }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13.5px; }
.hint { font-weight: 400; color: var(--dim); font-size: 12.5px; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .grow { flex: 1 1 240px; }
.row-form { display: flex; gap: 8px; align-items: center; } .row-form select { width: auto; padding: 5px 8px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* notices, pills, cards */
.notice { padding: 11px 14px; border-radius: 11px; margin: 0 0 16px; font-weight: 550; }
.notice.ok { background: var(--ok-soft); color: var(--ok); } .notice.bad { background: var(--bad-soft); color: var(--bad); } .notice.warn { background: var(--warn-soft); color: var(--warn); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--bg-2); color: var(--muted); margin-left: 8px; vertical-align: 1px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.bad { background: var(--bad-soft); color: var(--bad); margin-left: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.narrow { max-width: 480px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.card-h h3 { margin: 0; }
.hero-card { background: linear-gradient(135deg, var(--accent-soft), var(--card)); }
.steps-list { margin: 8px 0 0; padding-left: 20px; } .steps-list li { margin: 6px 0; }
.reveal { border-color: var(--accent); }
.key-reveal { display: flex; gap: 10px; align-items: center; background: var(--code); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.key-reveal code { flex: 1; background: none; font-size: 14px; }
.section-h { margin: 6px 0 12px; font-size: 15px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .6px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.two-col .card { margin-bottom: 0; } .two-col { margin-bottom: 18px; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); } ul.plain li:last-child { border-bottom: 0; }
ul.checks li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--dim); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.revoked td { color: var(--dim); }
.card .table { margin-top: 4px; }
.status { font: 600 12px ui-monospace, Menlo, monospace; padding: 2px 7px; border-radius: 6px; }
.status.s2 { background: var(--ok-soft); color: var(--ok); } .status.s4 { background: var(--warn-soft); color: var(--warn); } .status.s5 { background: var(--bad-soft); color: var(--bad); }

/* usage meters */
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 18px; }
.usage-grid .card { margin: 0; }
.usage-h { display: flex; justify-content: space-between; font-weight: 650; }
.usage-n { font-size: 24px; margin: 6px 0 8px; } .usage-n .muted { font-size: 15px; }
.meter { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-bottom: 10px; }
.meter-fill { height: 100%; border-radius: 99px; } .meter-fill.ok { background: var(--accent); } .meter-fill.warn { background: var(--warn); } .meter-fill.bad { background: var(--bad); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 18px; }
.plan { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.plan.current, .plan.featured { border-color: var(--accent); }
.plan .price { font-size: 30px; font-weight: 750; letter-spacing: -.5px; } .plan .price .muted { font-size: 15px; font-weight: 500; }
.plan ul { margin: 6px 0 12px; flex: 1; } .plan ul li { border: 0; padding: 3px 0; font-size: 14px; }
.plan form, .plan > .btn { margin-top: auto; } .plan form .btn { width: 100%; }

/* portal layout */
.portal { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 16px; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--card-2); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none !important; padding: 0 6px; }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), #10b981); font-size: 15px; }
.switcher { display: flex; flex-direction: column; gap: 5px; padding: 0 4px; }
.switcher-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--dim); font-weight: 650; }
.switcher select { font-weight: 600; font-size: 14px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.side-nav a { color: var(--muted); padding: 8px 10px; border-radius: 9px; font-weight: 550; font-size: 14.5px; text-decoration: none; }
.side-nav a:hover { background: var(--bg-2); color: var(--text); }
.side-nav a.on { background: var(--accent-soft); color: var(--accent); }
.side-nav a.subtle { color: var(--dim); font-size: 13.5px; margin-top: 6px; }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.who { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none !important; padding: 6px; border-radius: 9px; }
.who:hover, .who.on { background: var(--bg-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.who-meta { display: flex; flex-direction: column; min-width: 0; } .who-name { font-weight: 650; font-size: 14px; }
.who-mail { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-actions { display: flex; justify-content: space-between; align-items: center; }
.main { padding: 28px 36px 60px; max-width: 1180px; width: 100%; }
.page-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.page-h h1 { margin: 0 0 4px; }

/* public pages */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.top-nav { display: flex; gap: 18px; } .top-nav a { color: var(--muted); font-weight: 550; } .top-nav a.on { color: var(--accent); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.page-narrow { max-width: 1000px; margin: 0 auto; padding: 40px 24px 60px; }
.page-wide { max-width: 1180px; margin: 0 auto; padding: 24px; }
.page-hero { text-align: center; margin-bottom: 30px; } .page-hero h1 { font-size: 34px; }
.faq { max-width: 720px; margin: 30px auto 0; } .faq h3 { margin-top: 18px; }
.foot { text-align: center; color: var(--dim); font-size: 13px; padding: 30px; border-top: 1px solid var(--line); }

/* auth */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth-card .logo { margin-bottom: 20px; padding: 0; } .auth-card h1 { font-size: 23px; }
.auth-card .notice { margin: 12px 0 0; }
.auth-foot { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* docs */
.docs { display: grid; grid-template-columns: 210px 1fr; gap: 36px; align-items: start; }
.docs-toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; max-height: calc(100vh - 100px); overflow: auto; }
.portal .docs-toc { top: 20px; }
.docs-toc a { color: var(--muted); padding: 4px 8px; border-radius: 7px; } .docs-toc a:hover { background: var(--bg-2); color: var(--text); text-decoration: none; }
.docs-toc a.sub { padding-left: 20px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.docs-body { max-width: 780px; min-width: 0; }
.docs-body section { margin-bottom: 34px; scroll-margin-top: 80px; }
.docs-body h1 { font-size: 32px; } .docs-body h2 { font-size: 22px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.docs-body .lead { font-size: 17px; color: var(--muted); }
.docs-body ul, .docs-body ol { padding-left: 22px; } .docs-body li { margin: 5px 0; }
.docs-body .table { margin: 10px 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.code { background: var(--code); border: 1px solid var(--line); border-radius: 11px; margin: 10px 0 16px; overflow: hidden; }
.code-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .5px; }
.code pre { margin: 0; padding: 12px 14px; overflow-x: auto; } .code pre code { font-size: 13px; }
.endpoint { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); margin-bottom: 18px; }
.endpoint h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.verb { font: 700 11.5px ui-monospace, Menlo, monospace; padding: 3px 8px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.verb.post { background: var(--accent-soft); color: var(--accent); } .verb.delete { background: var(--bad-soft); color: var(--bad); }

@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .main { padding: 20px 16px 40px; }
  .docs { grid-template-columns: 1fr; } .docs-toc { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
  .top-nav { display: none; }
  .table { display: block; overflow-x: auto; }
}

/* super admin */
.admin-link { color: var(--warn) !important; font-weight: 650 !important; margin-top: 4px; }
.admin-badge { align-self: flex-start; margin: 0 6px; font-size: 11px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); padding: 3px 9px; border-radius: 99px; }
.main.wide { max-width: 1400px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .k { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--dim); font-weight: 650; }
.kpi .v { font-size: 26px; font-weight: 750; letter-spacing: -.5px; margin-top: 2px; }
.kpi .s { font-size: 12.5px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 6px; }
.bars .bar { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars .bar.zero { background: var(--line); }
.bars-x { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-top: 6px; }
.search { display: flex; gap: 10px; margin-bottom: 14px; } .search input { max-width: 420px; }
.table td a { font-weight: 600; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; font-size: 14px; } .dl dt { color: var(--dim); } .dl dd { margin: 0; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.limit-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr auto; gap: 12px; align-items: end; }
.row-check { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 10px; } .row-check input { width: auto; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 14px; }

/* workspace */
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.steps3 .card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 750; }
.upload { display: flex; flex-direction: column; gap: 10px; }
.upload input[type=file] { padding: 14px; border-style: dashed; background: var(--card-2); }
.form.tight { gap: 10px; margin-top: 0; }
.two-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-line { font-size: 17px; font-weight: 600; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.chip { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none !important; }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.chip-sep { width: 1px; background: var(--line); margin: 0 4px; }
button[aria-busy="true"] { opacity: .8; cursor: progress; }
/* playground */
.playground { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.pg-main { min-width: 0; } .pg-main pre { white-space: pre-wrap; word-break: break-all; }
.pg-list { display: flex; flex-direction: column; gap: 2px; padding: 10px; position: sticky; top: 20px; }
.pg-ep { display: flex; gap: 8px; align-items: center; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.pg-ep:hover { background: var(--bg-2); } .pg-ep.on { background: var(--accent-soft); }
.pg-ep code { background: none; padding: 0; font-size: 12.5px; }
.pg-main .card { display: flex; flex-direction: column; gap: 12px; }
.pg-out { max-height: 520px; overflow: auto; }
@media (max-width: 860px) { .playground, .two-inputs { grid-template-columns: 1fr; } .pg-list { position: static; } }

/* projects */
.new-project .inline-form { margin: 0; }
.sample-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.project-card { margin: 0; color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.project-card:hover { border-color: var(--accent); }
.project-card.add { align-items: center; justify-content: center; border-style: dashed; box-shadow: none; }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--dim); font-weight: 600; font-size: 14px; }
.stepper .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 12px; } .stepper .n svg { width: 14px; height: 14px; }
.stepper li.done { color: var(--muted); } .stepper li.done .n { background: var(--ok-soft); color: var(--ok); }
.stepper li.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); } .stepper li.on .n { background: var(--accent); color: var(--accent-ink); }
section.card h2 { font-size: 18px; margin: 0; }
.understood { display: flex; flex-wrap: wrap; gap: 6px; }
.role { font-size: 12.5px; padding: 3px 9px; border-radius: 8px; background: var(--bg-2); color: var(--muted); }
.role b { font-weight: 650; margin-right: 4px; }
.role-date b { color: #0f9d6b; } .role-number b { color: var(--accent); } .role-code b { color: var(--warn); } .role-text b { color: var(--muted); }
.dropzone { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding: 16px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--card-2); }
.dropzone input[type=file] { flex: 1 1 260px; border: 0; background: none; }
.dz-side { display: flex; flex-direction: column; gap: 6px; flex: 1 1 300px; }
.learn-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.btn.big-inline { padding: 13px 26px; font-size: 16px; }
.learned-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 14px 0; }
.learned-grid .k { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--dim); font-weight: 650; margin-bottom: 2px; }
.pair-pick { margin-top: 14px; } .pair-pick summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 600; }
.pair-pick .inline-form { margin-top: 10px; }
.question { display: flex; flex-direction: column; gap: 10px; }
.q-title { font-size: 18px; font-weight: 700; margin: 0; }
.qpair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qrow { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qrow-h { padding: 8px 12px; background: var(--card-2); border-bottom: 1px solid var(--line); font-weight: 650; font-size: 14px; }
.table.kv th { width: 40%; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.table.kv td, .table.kv th { padding: 6px 12px; }
.answers { display: flex; gap: 10px; flex-wrap: wrap; }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 12px; }
.benefit { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; }
a.benefit:hover { border-color: var(--accent); transform: translateY(-1px); }
.benefit span { font-size: 13.5px; color: var(--muted); }
.benefit .b-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.benefit .b-count { margin-top: auto; font-weight: 650; color: var(--accent); }
.benefit.soon { opacity: .6; } .benefit.soon .pill { align-self: flex-start; margin: auto 0 0; }
.benefit.check summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.benefit.check summary::-webkit-details-marker { display: none; }
.benefit.check[open] { grid-column: span 2; }
.project-settings summary { cursor: pointer; font-weight: 650; }
.project-settings[open] { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) { .qpair { grid-template-columns: 1fr; } .benefit.check[open] { grid-column: auto; } }

/* overview: the public app's guided flow (public/static/styles.css), scoped to .wiz */
.wiz { max-width: 900px; margin: 0 auto; font-size: 16px; }
.wiz-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.wiz-steps { display: flex; gap: 4px; flex-wrap: wrap; }
.wiz-steps > * { display: inline-flex; align-items: center; color: var(--dim); padding: 6px 10px; border-radius: 99px; font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
.wiz-steps .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 6px; font-size: 11.5px; background: var(--bg-2); color: var(--dim); }
.wiz-steps .done { color: var(--muted); } .wiz-steps a.done:hover { color: var(--accent); }
.wiz-steps .done .n { background: var(--ok-soft); color: var(--ok); }
.wiz-steps .on { color: var(--accent); background: var(--accent-soft); } .wiz-steps .on .n { background: var(--accent); color: var(--accent-ink); }
.wiz .screen { animation: wiz-in .25s ease; }
@keyframes wiz-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wiz .screen { animation: none !important; } .ring .fg { transition: none; } }
.wiz .eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 6px; }
.wiz h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.6px; margin: 0 0 10px; }
.wiz h2 { font-size: 22px; letter-spacing: -.3px; margin: 0 0 6px; }
.wiz .wiz-h2 { margin-top: 34px; }
.wiz .lead { color: var(--muted); font-size: 17px; margin: 0 0 24px; max-width: 680px; }
.wiz .grow { flex: 1; min-width: 0; }
.wiz .btn { border-radius: 12px; padding: 12px 20px; font-size: 15.5px; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.wiz .btn.ghost, .wiz .btn.danger { box-shadow: none; }
.wiz .btn.big { width: auto; padding: 15px 26px; font-size: 17px; }
.wiz .btn.small { padding: 7px 12px; font-size: 13.5px; border-radius: 9px; }
.wiz .btn:disabled { box-shadow: none; }
.wiz .pill { margin-left: 0; font-size: 12.5px; padding: 2px 9px; }
.wiz .pill.acc { background: var(--accent-soft); color: var(--accent); }
.wiz .card { border-radius: 16px; padding: 22px; }
.explain { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
           border-radius: 12px; padding: 14px 16px; color: var(--text); font-size: 14.5px; margin: 0 0 20px; }
.explain .i { font-size: 18px; line-height: 1.3; } .explain b { color: var(--accent); }
.wiz .nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.wiz .nav .grow { flex: 1; }

/* choice cards */
.wiz .choices { display: grid; gap: 14px; }
.wiz .choices form { margin: 0; }
.wiz .choice { display: flex; gap: 16px; align-items: flex-start; text-align: left; width: 100%; background: var(--card); border: 2px solid var(--line); color: var(--text);
               border-radius: 16px; padding: 18px 20px; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s; text-decoration: none !important; }
.wiz .choice:hover { border-color: var(--accent); }
.wiz .choice.off { opacity: .7; }
.wiz .choice .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--accent-soft); flex: none; }
.wiz .choice b { display: block; font-size: 17px; margin-bottom: 3px; }
.wiz .choice span { color: var(--muted); font-size: 14.5px; }
.wiz .choice .go { margin-left: auto; color: var(--accent); font-size: 20px; align-self: center; }

/* upload */
.wiz .drop { border: 2px dashed var(--line-2); border-radius: 16px; padding: 38px 20px; text-align: center; cursor: pointer; background: var(--card); transition: .15s; }
.wiz .drop:hover, .wiz .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.wiz .drop.chosen { border-style: solid; border-color: var(--accent); }
.wiz .drop .big-ic { font-size: 34px; } .wiz .drop b { font-size: 17px; display: block; word-break: break-word; }
.wiz .drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wiz .files, .wiz .recent { margin-top: 6px; }
.wiz .file { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-top: 8px; color: var(--text); text-decoration: none !important; }
.wiz a.file:hover { border-color: var(--accent); }
.wiz .file .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); font-size: 18px; flex: none; }
.wiz .file .nm { font-weight: 650; word-break: break-all; }
.wiz .file .fd { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.wiz .file form { margin-left: auto; }
.wiz .file .x { border: 0; background: none; color: var(--dim); font-size: 20px; cursor: pointer; padding: 4px 10px; border-radius: 8px; }
.wiz .file .x:hover { color: var(--bad); background: var(--bad-soft); }
.wiz .two-drops { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wiz .apply-step { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 22px 0 12px; }
.wiz .sn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; flex: none; }

/* what to check */
.wiz .plan { display: flex; flex-direction: row; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; background: var(--card);
             margin-top: 10px; cursor: pointer; font-weight: 400; font-size: 15px; }
.wiz .plan input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wiz .plan:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.wiz .plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.wiz .plan .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); font-size: 20px; flex: none; }
.wiz .plan .t { font-weight: 700; } .wiz .plan .h { color: var(--muted); font-size: 14.5px; margin-top: 2px; } .wiz .plan .r { color: var(--dim); font-size: 13px; margin-top: 4px; }
.wiz .plan.soon { opacity: .55; cursor: default; }
.wiz .switch { margin-left: auto; width: 46px; height: 27px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; transition: .15s; }
.wiz .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.wiz .plan:has(input:checked) .switch { background: var(--accent); } .wiz .plan:has(input:checked) .switch::after { left: 22px; }
.wiz .pair-pick { margin: 14px 0 4px; }

/* learning: the public app's screen, fed by the server's progress stream */
.wiz.learning > .screen { display: none; }
.wiz.learning .wiz-steps [data-step="learn"] { color: var(--accent); background: var(--accent-soft); }
.wiz.learning .wiz-steps [data-step="learn"] .n { background: var(--accent); color: var(--accent-ink); }
.wiz.learning .wiz-steps [data-step="check"] { color: var(--muted); background: none; }
.wiz.learning .wiz-steps [data-step="check"] .n { background: var(--ok-soft); color: var(--ok); }
.wiz .learn { text-align: center; padding: 40px 30px; margin: 0; }
.ring { width: 150px; height: 150px; margin: 0 auto 18px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .p { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.ring circle { fill: none; stroke-width: 11; } .ring .bg { stroke: var(--bg-2); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.ring.done .fg { stroke: var(--ok); } .ring.failed .fg { stroke: var(--bad); }
.learn .now { font-size: 19px; font-weight: 650; min-height: 30px; }
.learn .why { color: var(--muted); max-width: 560px; margin: 6px auto 0; font-size: 15px; min-height: 48px; }
.learn .phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 26px 0 8px; text-align: left; }
.learn .phase { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; color: var(--dim); background: var(--card-2); }
.learn .phase b { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.learn .phase.on { border-color: var(--accent); color: var(--text); } .learn .phase.on b { color: var(--accent); }
.learn .phase.done { color: var(--muted); } .learn .phase.done b { color: var(--ok); }
.wiz .nav.center { justify-content: center; }
.wiz details.tech { margin-top: 18px; text-align: left; }
.wiz details.tech summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.wiz .log { background: var(--code); border: 1px solid var(--line); border-radius: 10px; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
            padding: 12px 14px; max-height: 260px; overflow: auto; margin-top: 10px; white-space: pre-wrap; color: var(--muted); }
.wiz .log .ok { color: var(--ok); } .wiz .log .error { color: var(--bad); }

/* public sample files and the project picker */
.wiz .ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.wiz .ds { text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font-weight: 400; font-size: 14px; }
.wiz .ds:hover { border-color: var(--accent); }
.wiz .ds:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.wiz .ds:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.wiz .ds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wiz .ds .t { font-weight: 700; font-size: 14.5px; } .wiz .ds .d { color: var(--muted); font-size: 13px; } .wiz .ds .s { color: var(--dim); font-size: 12px; }
.wiz .new-project { cursor: default; margin: 0; }
.wiz .new-project:hover { border-color: var(--line); } .wiz .new-project:focus-within { border-color: var(--accent); }
.wiz .new-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.wiz .new-row input { flex: 1 1 260px; width: auto; font-size: 15.5px; }
.wiz .types { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.wiz .files-h { margin: 18px 0 2px; }
.wiz .nav form { margin: 0; }
.wiz button.link { background: none; border: 0; cursor: pointer; box-shadow: none; }
.wiz button.link:hover { color: var(--accent); }

/* results */
.wiz .done-hero { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, var(--ok-soft), var(--card)); border: 1px solid var(--line);
                  border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.wiz .done-hero .ck { width: 58px; height: 58px; border-radius: 16px; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 30px; flex: none; }
.wiz .done-hero h1 { font-size: 28px; margin: 0 0 4px; }
.wiz .done-actions { margin-left: auto; display: flex; flex-direction: column; gap: 8px; flex: none; }
.wiz .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0; }
.wiz .tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: border-color .15s; }
.wiz .tile:hover { border-color: var(--accent); }
.wiz .tile .v { font-size: 28px; font-weight: 800; letter-spacing: -.5px; } .wiz .tile .l { color: var(--muted); font-size: 14px; word-break: break-word; }
.wiz .tile.hot .v { color: var(--bad); } .wiz .tile.warm .v { color: var(--warn); } .wiz .tile.good .v { color: var(--ok); }
.wiz .ask-you { border-color: var(--warn); margin: 0 0 18px; }
.wiz .ask-you .eyebrow { color: var(--warn); }
.wiz .runs { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.wiz .run { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 14px 16px; color: var(--text); text-decoration: none !important; }
.wiz .run:hover { border-color: var(--accent); }
.wiz .run .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.wiz .run .hl { color: var(--muted); font-size: 13.5px; }
.wiz .wiz-settings { margin-top: 26px; } .wiz .wiz-settings summary { cursor: pointer; font-weight: 650; margin-bottom: 4px; }

/* ask */
.wiz .ask-box { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); }
.wiz .ask-box input[name=q] { flex: 1; border: 0; background: transparent; font-size: 17px; padding: 10px 12px; outline: none; }
.wiz .chips { margin: 14px 0 6px; }
.wiz .chip { font-size: 14px; padding: 7px 13px; background: var(--card); }
.wiz .chip:hover { border-color: var(--accent); color: var(--accent); }
.wiz .answer { margin-top: 16px; }
.wiz .answer .q { font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.wiz .answer .a { font-size: 17px; }
.wiz .answer .meta { color: var(--dim); font-size: 13px; margin: 8px 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.wiz .tablewrap { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.wiz .src { color: var(--dim); font-size: 12px; font-family: ui-monospace, Menlo, monospace; margin-top: 3px; }

@media (max-width: 640px) {
  .wiz h1 { font-size: 27px; } .wiz .lead { font-size: 16px; }
  .wiz-steps .t { display: none; } .wiz-steps .n { margin-right: 0; }
  .wiz .done-hero { flex-wrap: wrap; } .wiz .done-actions { margin-left: 0; width: 100%; }
  .wiz .two-drops, .learn .phases { grid-template-columns: 1fr 1fr; }
  .wiz .learn { padding: 28px 16px; }
  .wiz .choice { padding: 14px; } .wiz .choice .go { display: none; }
  .wiz .nav .btn.big { width: 100%; }
}
@media (max-width: 860px) { .wiz .two-drops { grid-template-columns: 1fr; } }
.wiz .choice .ic, .wiz .plan .ic, .wiz .run .ic, .wiz .explain .i { color: var(--accent); }
.wiz .file .fi { color: var(--muted); }
.wiz .drop .big-ic { color: var(--accent); }
.wiz .done-hero .ck svg { color: #fff; }
.wiz-steps .n svg { display: block; }

/* pricing by audience */
.audience-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.audience-tabs a { padding: 9px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.audience-tabs a:hover { color: var(--text); }
.audience-tabs a.on { background: var(--accent); color: var(--accent-ink); }
.offer { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.3fr); gap: 18px; margin-bottom: 18px; }
.offer .card { margin: 0; }
.offer-example h3 { margin-top: 0; }
.offer-example .table td:last-child { white-space: nowrap; }
.calc { margin: 6px 0 14px; } .calc label { flex: 1 1 200px; }
.price-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 14px; margin: 6px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 550; }
.talk { max-width: 720px; margin: 0 auto 10px; } .talk h2 { margin-top: 0; }
.talk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.talk-form .wide, .talk-form .btn { grid-column: 1 / -1; } .talk-form .btn { justify-self: start; }
.talk-form textarea { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.talk-form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 760px) {
  .offer, .talk-form { grid-template-columns: 1fr; }
  .audience-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .audience-tabs a { text-align: center; white-space: normal; }
}
