/* =============================================================
   PickBits redesign — Level-Up page components
   Builds on pb-redesign.css + pb-pages.css (same tokens). All
   theme-aware (paper light / cyber dark). The outcome-quiz class
   names match the existing level-up.html quiz JS so its dynamic
   markup styles correctly — do not rename without updating the JS.
   ============================================================= */

/* ---------- experimenter sign-in callout (anon-only) ---------- */
.lu-exp { display: flex; align-items: center; gap: 1.1rem; margin: 1.6rem auto 0; max-width: var(--wrap); padding: 1rem 1.35rem; background: var(--paper-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.lu-exp[hidden] { display: none; }
.lu-exp .ic { font-size: 1.4rem; line-height: 1; flex: none; }
.lu-exp .bd { flex: 1; min-width: 0; }
.lu-exp .ey { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.lu-exp .hd { font-family: var(--ff-display); font-weight: 700; font-size: 1.1rem; margin: 0 0 0.25rem; }
.lu-exp .sb { font-size: 0.86rem; line-height: 1.5; color: var(--muted); margin: 0; max-width: 64ch; }
.lu-exp .sb strong { color: var(--accent); font-weight: 600; }
.lu-exp .ac { display: flex; gap: 0.55rem; flex: none; }
@media (max-width: 760px) { .lu-exp { flex-direction: column; align-items: flex-start; } .lu-exp .ac { width: 100%; } }

/* ---------- outcome quiz ---------- */
.quiz-trigger { display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; background: var(--paper-2); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 1.1rem 1.4rem; cursor: pointer; transition: border-color .15s ease, transform .15s ease; font-family: var(--ff-body); color: var(--ink); }
.quiz-trigger:hover { border-color: var(--accent); transform: translateY(-2px); }
.quiz-trigger .qt-icon { font-size: 1.5rem; flex: none; }
.quiz-trigger .qt-head { display: block; font-family: var(--ff-display); font-weight: 700; font-size: 1.1rem; }
.quiz-trigger .qt-sub { display: block; font-size: 0.86rem; color: var(--muted); }
.quiz-trigger .qt-arrow { margin-left: auto; color: var(--accent); font-family: var(--ff-mono); }
.outcome-quiz[hidden] { display: none; }
.outcome-quiz { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.6rem 1.7rem; background: var(--paper-2); }
.outcome-head h3 { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.3rem,2.4vw,1.8rem); margin: 0; letter-spacing: -0.02em; }
.outcome-head .placeholder { color: var(--faint); }
.outcome-head .winner { color: var(--winner-color, var(--accent)); }
.outcome-sub { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 1.2rem; }
.outcome-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.outcome-chip { font-family: var(--ff-body); font-size: 0.86rem; color: var(--ink-soft); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer; transition: all .14s ease; }
.outcome-chip:hover { border-color: var(--accent); }
.outcome-chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.outcome-chip[data-leader] { border-style: dashed; }
.outcome-result[hidden] { display: none; }
.outcome-result { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); align-items: center; }
@media (max-width: 760px) { .outcome-result { grid-template-columns: 1fr; } }
.outcome-result-left .pre { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.8rem; }
.outcome-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.outcome-bar { display: grid; grid-template-columns: 9rem 1fr 2.8rem; align-items: center; gap: 0.7rem; font-size: 0.82rem; }
.outcome-bar .lbl { color: var(--ink-soft); font-weight: 600; }
.outcome-bar .track-bar { height: 7px; background: var(--paper-3); border-radius: 4px; overflow: hidden; }
.outcome-bar .fill { height: 100%; background: var(--line-2); border-radius: 4px; transition: width .35s ease; }
.outcome-bar.is-best .fill { background: var(--winner-color, var(--accent)); }
.outcome-bar.is-best .lbl { color: var(--ink); }
.outcome-bar .pct { font-family: var(--ff-mono); color: var(--muted); text-align: right; }
.outcome-result-right { display: flex; flex-direction: column; gap: 0.6rem; }
.outcome-cta { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); font-weight: 600; padding: 0.85rem 1.2rem; border-radius: var(--radius); }
.outcome-cta:hover { background: var(--accent-deep); }
.outcome-cta-secondary { text-align: center; font-family: var(--ff-mono); font-size: 0.8rem; color: var(--muted); }
.outcome-cta-secondary:hover { color: var(--accent); }
.outcome-leader-flag { grid-column: 1 / -1; margin-top: 0.5rem; font-size: 0.84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.outcome-leader-flag a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ---------- level-up pack cards (extends .pack) ---------- */
.lu-stats { display: flex; gap: 1.4rem; margin: 1rem 0 1.2rem; }
.lu-stats .stat { display: flex; flex-direction: column; }
.lu-stats .stat .n { font-family: var(--ff-display); font-weight: 800; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.lu-stats .stat .l { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.pack .persona { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 0.5rem; }
.pack .examples { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.4rem; }
.lu-outcomes { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.lu-outcomes li { position: relative; padding-left: 1.4rem; font-size: 0.88rem; line-height: 1.45; color: var(--ink-soft); }
.lu-outcomes li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 7px; height: 7px; border: 1.5px solid var(--accent); border-radius: 50%; }
.pack.feat .lu-outcomes li { color: var(--paper-3); }
.lu-bonus { font-family: var(--ff-mono); font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft); background: var(--paper-3); border-left: 2px solid var(--accent); border-radius: 3px; padding: 0.7rem 0.85rem; margin: 0 0 1.2rem; }
.lu-bonus strong { color: var(--accent); }
.pack.feat .lu-bonus { background: rgba(255,250,240,0.08); color: var(--paper-3); }
.lu-foot { font-family: var(--ff-mono); font-size: 0.7rem; color: var(--faint); text-align: center; margin: 0.7rem 0 0; }

/* ---------- comparison matrix ---------- */
.compare-matrix { overflow-x: auto; margin-top: 1.5rem; }
.compare-matrix table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare-matrix th, .compare-matrix td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.9rem; }
.compare-matrix thead th { font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); }
.compare-matrix .row-label { font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.compare-matrix .price-cell { font-family: var(--ff-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.compare-matrix .price-sub { font-family: var(--ff-mono); font-size: 0.66rem; color: var(--muted); margin-top: 0.2rem; }
.compare-matrix .yes { color: var(--accent); font-weight: 600; }
.compare-matrix .module-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.compare-matrix .module-list li { font-size: 0.82rem; color: var(--ink-soft); }
.compare-matrix .module-list li.more { font-family: var(--ff-mono); font-size: 0.74rem; color: var(--muted); }

/* ---------- founder bundle ---------- */
.founder-bundle { border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.9rem 1.8rem; background: var(--paper-2); }
.founder-bundle .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.founder-bundle .head h3 { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.5rem,3vw,2.1rem); margin: 0.3rem 0 0.6rem; letter-spacing: -0.02em; }
.founder-bundle .head .acc { color: var(--accent); }
.founder-bundle .head p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; max-width: 60ch; }
.founder-bundle .head p strong { color: var(--accent); }
.founder-bundle .eyebrow { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.founder-bundle .badge { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 0.3rem 0.7rem; border-radius: 3px; white-space: nowrap; flex: none; }
.founder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .founder-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-perk { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.founder-perk .icon { font-size: 1.3rem; margin-bottom: 0.5rem; }
.founder-perk h4 { font-family: var(--ff-display); font-weight: 700; font-size: 1rem; margin: 0 0 0.35rem; }
.founder-perk p { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }

/* ---------- trial pickers ---------- */
.trial-large { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 2rem 1.9rem; background: var(--paper-2); }
@media (max-width: 820px) { .trial-large { grid-template-columns: 1fr; } }
.trial-large .lead h3 { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.5rem,3vw,2.1rem); margin: 0.3rem 0 0.7rem; letter-spacing: -0.02em; }
.trial-large .lead .eyebrow { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.trial-large .lead p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.pickers { display: flex; flex-direction: column; gap: 0.7rem; }
.pickers button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--paper); border: 1px solid var(--line-2); border-left: 3px solid var(--pack-color, var(--accent)); border-radius: var(--radius); padding: 0.95rem 1.2rem; cursor: pointer; font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); transition: transform .14s ease, border-color .14s ease; }
.pickers button:hover { transform: translateX(3px); border-color: var(--accent); }
.pickers button .ar { color: var(--accent); font-family: var(--ff-mono); }

/* ---------- team upsell ---------- */
.team-upsell { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.9rem 1.8rem; background: var(--paper-2); }
@media (max-width: 820px) { .team-upsell { grid-template-columns: 1fr; } }
.team-upsell .eyebrow { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.team-upsell h3 { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.4rem,2.6vw,2rem); margin: 0.3rem 0 0.6rem; letter-spacing: -0.02em; }
.team-upsell p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.team-upsell p strong { color: var(--ink); }
.team-upsell .price-row { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--muted); }
.team-upsell .price-row a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ---------- coach bio ---------- */
.coach-bio { display: grid; grid-template-columns: auto 1fr; gap: 1.8rem; align-items: start; }
@media (max-width: 640px) { .coach-bio { grid-template-columns: 1fr; } }
.coach-bio .avatar { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); }
.coach-bio .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.coach-bio .name { font-family: var(--ff-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.015em; }
.coach-bio .name .acc { color: var(--accent); }
.coach-bio .role { font-family: var(--ff-mono); font-size: 0.76rem; color: var(--muted); margin: 0.3rem 0 0.9rem; }
.coach-bio p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 1.1rem; }
.coach-bio .creds { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.coach-bio .creds span { font-family: var(--ff-mono); font-size: 0.68rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.6rem; }
.coach-bio .socials { display: flex; flex-wrap: wrap; gap: 1.1rem; font-family: var(--ff-mono); font-size: 0.8rem; }
.coach-bio .socials a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.coach-bio .socials a:hover { color: var(--accent); }

/* ---------- section heads (level-up two-col head) ---------- */
.section-head { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; margin-bottom: clamp(2rem,4vw,3rem); }
@media (max-width: 700px) { .section-head { grid-template-columns: 1fr; } }
.section-head .eyebrow { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.section-head .left h2 { margin: 0 0 0.9rem; }
.section-head .left p { margin: 0; max-width: 52ch; color: var(--muted); }
.section-head .right { font-family: var(--ff-mono); font-size: 0.82rem; color: var(--muted); text-align: right; line-height: 1.5; }

/* ---------- trial modal (editorial) ---------- */
.trial-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9999; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.trial-modal-overlay.open { display: flex; }
.trial-modal { background: var(--paper-2); border: 1px solid var(--accent); border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5); padding: 1.8rem 1.8rem 1.6rem; width: 100%; max-width: 460px; position: relative; }
.trial-modal h3 { font-family: var(--ff-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); margin: 0 0 0.4rem; letter-spacing: -0.015em; }
.trial-modal .lead { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin: 0 0 1.1rem; }
.trial-modal label { display: block; font-family: var(--ff-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; }
.trial-modal select, .trial-modal input[type=email] { display: block; width: 100%; padding: 0.7rem 0.8rem; margin-bottom: 0.9rem; background: var(--paper); border: 1px solid var(--line-2); border-radius: 5px; color: var(--ink); font-family: var(--ff-body); font-size: 0.95rem; }
.trial-modal select:focus, .trial-modal input[type=email]:focus { outline: none; border-color: var(--accent); }
.trial-modal .submit { display: block; width: 100%; padding: 0.9rem; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 6px; font-family: var(--ff-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.trial-modal .submit:hover { transform: translateY(-1px); background: var(--accent-deep); }
.trial-modal .submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.trial-modal .close { position: absolute; top: 0.7rem; right: 0.9rem; background: transparent; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.trial-modal .close:hover { color: var(--ink); }
.trial-modal .msg { font-size: 0.85rem; color: var(--accent); line-height: 1.4; margin: 0.6rem 0 0; min-height: 1.2em; }
.trial-modal .msg.ok { color: var(--accent); }
.trial-modal .fine { font-family: var(--ff-mono); font-size: 0.7rem; color: var(--faint); margin: 0.85rem 0 0; line-height: 1.5; }

/* trial-track buttons reuse the .pack-trial link look */
button.pack-trial { background: none; border: 0; cursor: pointer; font-family: var(--ff-mono); font-size: 0.76rem; color: var(--muted); }
button.pack-trial:hover { color: var(--accent); }
.pack.feat button.pack-trial { color: var(--paper-3); }
