/* HoistWork v2: dark theme, mascot, tools, quiz, calculator, compare, phone nav */
.step .n, .side ol li::before, .rung:last-child .rung-bar i { color: var(--on-lime); }
html[data-theme="dark"] {
  --bg: #0a1511; --surface: #11211b; --surface-2: #0d1a15; --heading: #f3f1e4; --ink: #e6ede4; --muted: #9db0a6;
  --line: #20362d; --line-2: #2e493e; --lime-soft: #1d3a25; --header-bg: rgba(10, 21, 17, .86);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}
html[data-theme="dark"] .btn-forest { background: var(--forest-3); }
html[data-theme="dark"] .jcard.sel { border-color: var(--lime); box-shadow: 0 0 0 1.5px var(--lime); }
html[data-theme="dark"] .notice { border-color: var(--line-2); }
html[data-theme="dark"] .btn-line:hover { border-color: var(--lime); }
html[data-theme="dark"] .field input:focus, html[data-theme="dark"] .filters select:focus, html[data-theme="dark"] .form input:focus, html[data-theme="dark"] .form select:focus { border-color: var(--lime); }
html[data-theme="dark"] .hero, html[data-theme="dark"] .dark, html[data-theme="dark"] .cta { background-color: #0c2a20; }
html[data-theme="dark"] .rung-bar { background: linear-gradient(180deg, #2f7d61, #1b5a44); }
html[data-theme="dark"] .rung:last-child .rung-bar { background: linear-gradient(180deg, var(--lime), var(--lime-deep)); }
html[data-theme="dark"] .nav a.link[aria-current="page"] { background: var(--forest-3); }

.nav a.link { white-space: nowrap; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--heading); position: relative; text-decoration: none; flex: none; margin-left: 6px; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--lime); color: var(--on-lime); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Save (heart) */
.save { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.save svg { width: 16px; height: 16px; }
.save:hover { color: var(--heading); border-color: var(--heading); }
.save[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.save[aria-pressed="true"] svg { fill: currentColor; }
.jcard { color: var(--ink); }
.jcard h3 a { text-decoration: none; }
.jcard h3 a:hover { text-decoration: underline; }
.jcard .tags { align-items: center; }

/* Mascot */
.mascot { flex: none; display: block; }
.hello { display: flex; align-items: center; gap: 14px; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 16px; font-size: 15px; box-shadow: var(--shadow); color: var(--ink); max-width: 420px; }
.hero-mascot { position: absolute; right: -14px; top: -46px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); z-index: 2; }
.path-card { position: relative; overflow: visible; }
.path-card > #hero-ladder { overflow: hidden; border-radius: 0 0 22px 22px; margin: 0 -24px; padding: 0 24px; }
.path-card .pc-head { padding-right: 64px; }

/* Tool cards */
.g-tools { grid-template-columns: repeat(3, 1fr); }
.tool { display: flex !important; flex-direction: column; gap: 10px; padding: 26px; }
.tool p { color: var(--muted); margin: 0; font-size: 15px; flex: 1; }
.tool .ic-box { margin-bottom: 6px; }
.tool .go { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--heading); margin-top: 6px; }
.tool .go svg { width: 16px; height: 16px; }

/* Quiz */
.narrow { max-width: 760px; margin: 0 auto; }
.quiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 18px 0 26px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--forest-3), var(--lime-deep)); border-radius: 99px; transition: width .35s; }
.quiz-card h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 20px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); font-weight: 600; font-size: 16.5px; cursor: pointer; display: flex; align-items: center; gap: 12px; color: var(--ink); transition: border-color .12s, transform .12s, background .12s; }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.opt:hover { border-color: var(--heading); transform: translateX(3px); }
.opt .k { width: 30px; height: 30px; border-radius: 9px; background: var(--lime-soft); color: var(--heading); display: grid; place-items: center; font-size: 13.5px; font-weight: 700; flex: none; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; color: var(--muted); font-size: 14.5px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--heading); font-weight: 600; text-decoration: underline; }
.result { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); margin-bottom: 12px; }
.result.top { border-color: var(--lime-deep); background: var(--lime-soft); }
.result .pct { font-family: var(--head); font-weight: 800; font-size: 26px; color: var(--heading); text-align: right; line-height: 1; }
.result .pct small { display: block; font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 3px; }
.result ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.result .acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.panel.out { background: var(--forest); border-color: var(--forest); color: var(--ivory); position: sticky; top: 90px; }
html[data-theme="dark"] .panel.out { background: #0c2a20; border-color: var(--line-2); }
.panel.out h3 { color: var(--ivory); }
.lbl { display: block; font-weight: 600; font-size: 14.5px; margin: 16px 0 6px; }
.lbl small { font-weight: 400; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--forest-3); padding: 0 !important; border: 0 !important; background: transparent !important; }
.big { font-family: var(--head); font-weight: 800; font-size: clamp(44px, 6vw, 64px); letter-spacing: -.04em; color: var(--lime); line-height: 1; }
.outrow { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 16px; }
.outrow b { font-family: var(--head); font-size: 20px; }
.vs { display: grid; gap: 14px; margin-top: 8px; }
.vsbar { display: grid; gap: 6px; }
.vsbar .track { height: 40px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.vsbar .fill { height: 100%; border-radius: 10px; transition: width .4s; }
.vsbar .fill.up { background: linear-gradient(90deg, var(--lime-deep), var(--lime)); }
.vsbar .fill.down { background: #e9b9a6; }
.vsbar .cap { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.vsbar .cap b { font-family: var(--head); font-size: 17px; color: var(--heading); white-space: nowrap; }

/* Compare */
.cmp-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 20px; }
.cmp-pick span { font-family: var(--head); font-weight: 800; color: var(--muted); }
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.cmp .r { display: grid; grid-template-columns: 180px 1fr 1fr; border-top: 1px solid var(--line); }
.cmp .r:first-child { border-top: 0; background: var(--surface-2); }
.cmp .r > div { padding: 15px 18px; font-size: 15.5px; min-width: 0; }
.cmp .r > div:first-child { color: var(--muted); font-size: 14px; font-weight: 600; }
.cmp .r > div + div { border-left: 1px solid var(--line); }
.cmp .hd { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--heading); }
.cmp .hd .ic-box { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.cmp .hd .ic-box svg { width: 18px; height: 18px; }
.cmp .win { background: var(--lime-soft); font-weight: 700; }
.cmp .meter { height: 8px; border-radius: 99px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.cmp .meter i { display: block; height: 100%; border-radius: 99px; background: var(--forest-3); }

/* FAQ + prose */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 700; font-size: 19px; padding: 18px 28px 18px 0; list-style: none; position: relative; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 26px; font-weight: 500; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose a, .faq a { color: var(--heading); font-weight: 600; }
.reslinks { display: grid; gap: 8px; }
.reslinks a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--heading); }
.reslinks a:hover { border-color: var(--heading); }
.reslinks svg { width: 15px; height: 15px; flex: none; }

/* Job page */
.jobpage { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.jobpage .d-head { position: static; border-radius: 0; }
.crumb { font-size: 14.5px; color: var(--muted); margin: 26px 0 16px; }
.crumb a { color: var(--heading); font-weight: 600; text-decoration: none; }
.center { text-align: center; padding: 60px 20px; }
.center .mascot { margin: 0 auto 18px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: var(--forest-deep); color: var(--ivory); padding: 12px 18px; border-radius: 99px; font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; box-shadow: var(--shadow-lg); white-space: nowrap; }
.toast.on { opacity: 1; transform: translateX(-50%); }
textarea { font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--ink); min-height: 110px; resize: vertical; }
.d-head .actions .save { margin-left: 0; width: 46px; height: 46px; }

/* First-visit notice */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 110; max-width: 720px; margin: 0 auto; background: var(--forest-deep); color: var(--ivory); border-radius: 18px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow-lg); font-size: 14.5px; border: 1px solid rgba(255,255,255,.12); }
.consent p { margin: 0; flex: 1; line-height: 1.45; }
.consent a { color: var(--lime); }
@media (max-width: 720px) { .consent { bottom: 78px; flex-direction: column; align-items: stretch; } }
.cta a { color: var(--lime); }

/* Bottom nav (phones) */
.bottom-nav { display: none; }

/* Motion */
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rung-bar { transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.rung:nth-child(2) .rung-bar { animation-delay: .12s; }
.rung:nth-child(3) .rung-bar { animation-delay: .24s; }
.rung-info { animation: rise .5s .35s both; }
.hero h1, .hero .lead, .hero .search, .quiz-card { animation: rise .6s both; }
.hero .lead { animation-delay: .08s; }
.hero .search { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

@media (max-width: 1120px) { .nav a.link.opt2 { display: none; } }
@media (max-width: 980px) {
  .g-tools, .calc { grid-template-columns: 1fr; }
  .panel.out { position: static; }
  .hero-mascot { right: 8px; top: -40px; }
  .detail { z-index: 120; }
}
@media (max-width: 720px) {
  .nav a.link { display: none !important; }
  body { padding-bottom: 66px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 5px 0; border-radius: 12px; }
  .bottom-nav svg { width: 21px; height: 21px; }
  .bottom-nav a[aria-current="page"] { color: var(--heading); background: var(--lime-soft); }
  .quiz-card, .panel { padding: 22px 18px; }
  .cmp .r { grid-template-columns: 92px 1fr 1fr; }
  .cmp .r > div { padding: 12px 10px; font-size: 14px; }
  .cmp .hd { font-size: 15px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .cmp-pick { grid-template-columns: 1fr; }
  .cmp-pick span { text-align: center; }
  .result { grid-template-columns: auto 1fr; }
  .result .pct { grid-column: 1 / -1; text-align: left; }
  .hero-mascot { width: 84px; height: 84px; top: -34px; }
}

.foot4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 720px) { .foot4 { grid-template-columns: 1fr 1fr; } .foot4 > div:first-child { grid-column: 1 / -1; } }

.brand img { width: 36px; height: 36px; flex: none; }
img.mascot { border-radius: 50%; }
@media (max-width: 720px) { .brand img { width: 32px; height: 32px; } }

/* ===== v3: accounts, dashboard, guides, accessibility ===== */
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.icon-btn.on { background: var(--forest); color: var(--lime); border-color: var(--forest); }
.form-err { display: none; color: #b3261e; font-weight: 600; font-size: 14.5px; }
html[data-theme="dark"] .form-err { color: #ffb4a9; }
.form .form-ok { color: var(--heading); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-top: 8px; }
.check input { width: 18px !important; height: 18px; margin-top: 3px; flex: none; padding: 0 !important; }
.check a, .acct-sec a:not(.btn):not(.pill):not(.jcard a) { color: var(--heading); font-weight: 600; }
.roles { border: 0; padding: 0; margin: 12px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.roles legend { padding: 0; margin-bottom: 6px; }
.roles label { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 15px; background: var(--bg); }
.roles input { width: auto !important; padding: 0 !important; accent-color: var(--forest-3); }
.roles label:has(input:checked) { border-color: var(--heading); background: var(--lime-soft); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--heading); box-shadow: var(--shadow); }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 8px 0 8px; }
.acct-sec { margin-top: 40px; scroll-margin-top: 90px; }
.acct-sec > h2 { font-size: 26px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.count-pill { font-family: var(--body); font-size: 13px; font-weight: 700; background: var(--lime-soft); color: var(--heading); border-radius: 99px; padding: 2px 10px; letter-spacing: 0; }
.rows { display: grid; gap: 8px; }
.rowi { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; flex-wrap: wrap; }
.rowi > div:first-child { flex: 1 1 220px; min-width: 0; }
.rowi.top { align-items: flex-start; }
.rowi .muted { font-size: 14.5px; }
.rowi .btn { padding: 8px 14px; font-size: 14.5px; }
.alert-row { grid-template-columns: 1.3fr 1fr 1fr auto; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.stats .fact { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; }
.stats .fact b { font-size: 24px; }
dialog.modal { border: 0; border-radius: 22px; padding: 28px; width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 28px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(8, 42, 31, .55); backdrop-filter: blur(3px); }
.modal-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.sponsor { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px 20px; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.sponsor div { flex: 1 1 220px; }
.sponsor b { display: block; font-family: var(--head); font-size: 18px; color: var(--heading); }
.sponsor span { font-size: 14.5px; }
[data-sponsor] { margin: 0 0 14px; }

/* Guides */
.g-guides { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.guide { max-width: 780px; margin: 0 auto; }
.guide h2 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 14px; }
.guide p, .guide li { font-size: 17.5px; line-height: 1.7; }
.guide ul, .guide ol { padding-left: 22px; }
.guide li { margin: 6px 0; }
.guide a:not(.btn) { color: var(--heading); font-weight: 600; }
.paytable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 16px; }
.paytable th, .paytable td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.paytable th { background: var(--surface-2); font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.paytable tr:last-child td { border-bottom: 0; }
.paytable td:last-child { font-family: var(--head); font-weight: 700; color: var(--heading); white-space: nowrap; }
.guide-cta { background: var(--lime-soft); border-radius: 18px; padding: 24px; margin-top: 40px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.guide-cta div { flex: 1 1 260px; }
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 0; }
@media (max-width: 720px) {
  .alert-row { grid-template-columns: 1fr 1fr; }
  .stats, .keyfacts { grid-template-columns: 1fr; }
  dialog.modal { padding: 20px; }
  .paytable th, .paytable td { padding: 11px 10px; font-size: 14.5px; }
}

.acct-sec { padding: 0; }
.acct-sec + .acct-sec { margin-top: 44px; }
#account, #dashboard { padding-bottom: 80px; }
.keyfacts .fact { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; }

/* ===== v4: reviews, company pages, sorting ===== */
.stars { color: var(--line-2); letter-spacing: 1px; font-size: 16px; white-space: nowrap; }
.stars .on { color: #e2a400; }
.stars.big { font-size: 22px; }
.rev-box { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.rev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.rev-sum { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.rev-sum b { font-family: var(--head); font-size: 22px; color: var(--heading); }
.review { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.panel .review { background: var(--bg); }
.rate { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; flex-wrap: wrap; }
.rate legend { width: 100%; padding: 0; margin: 0 0 4px; }
.rate input { position: absolute; opacity: 0; width: 1px !important; height: 1px; padding: 0 !important; }
.rate label { font-size: 36px; line-height: 1; color: var(--line-2); cursor: pointer; padding: 0 2px; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: #e2a400; }
.rate input:focus-visible + label { outline: 3px solid var(--lime-deep); border-radius: 6px; }
.co-link { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.co-link:hover { color: var(--heading); text-decoration-color: var(--heading); }
.co-logo { width: 64px; height: 64px; border-radius: 18px; background: var(--forest); color: var(--lime); display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 30px; flex: none; }
.sortby { display: inline-flex; align-items: center; gap: 8px; }
.sortby select { padding: 5px 8px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 14px; color: var(--ink); }
