/* Verse Ventures client portal */
:root {
  --ink: #0b2b20; --forest: #1c4d38; --lime: #abff44; --lime-d: #8fe024; --mint: #eef5e8; --mint-2: #e3eedb;
  --sage: #4d6358; --bg: #fbfcf9; --line: #e2e9dd; --card: #fff; --red: #b42318; --amber: #8a5a00;
  --r: 22px; --r-sm: 14px; --shadow: 0 1px 2px rgba(11,43,32,.04), 0 8px 24px -12px rgba(11,43,32,.12);
  --head: "Bricolage Grotesque", system-ui, sans-serif; --body: "Hanken Grotesk", system-ui, sans-serif; --serif: "Newsreader", Georgia, serif;
  --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
em.acc { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--forest); }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime-d); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--sage); }
.boot img { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.94); } }

/* ---------- shell ---------- */
.shell { display: grid; min-height: 100vh; }
@media (min-width: 960px) { .shell { grid-template-columns: var(--side) 1fr; } }
.side { display: none; }
@media (min-width: 960px) {
  .side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: #fff; overflow-y: auto; }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 16px var(--head); letter-spacing: .01em; padding: 4px 10px 16px; }
.brand span b { font-weight: 800; } .brand span { font-weight: 500; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; min-height: 44px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--mint); }
.nav a[aria-current="page"] { background: var(--mint); font-weight: 700; }
.nav .ico { display: inline-flex; align-items: center; gap: 12px; }
.nav svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--lime); color: var(--ink); font: 700 12px/22px var(--body); text-align: center; }
.nav-sep { margin: 14px 12px 4px; font: 700 11px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.help { background: var(--ink); color: #fff; border-radius: 18px; padding: 16px; }
.help b { font-family: var(--head); font-size: 16px; } .help p { color: rgba(255,255,255,.8); font-size: 13px; margin: 4px 0 8px; }
.help a { color: var(--lime); font-weight: 700; font-size: 14px; text-decoration: none; }
.who { font-size: 13px; color: var(--sage); padding: 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.who button { white-space: nowrap; background: none; border: 0; color: var(--forest); text-decoration: underline; cursor: pointer; padding: 8px 0; min-height: 44px; }
.switch { margin: 0 4px 10px; }
.switch label { display: block; font-size: 12px; color: var(--sage); margin: 0 0 4px 4px; }
.switch select { width: 100%; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
@media (min-width: 960px) { .top { display: none; } }
.top .brand { padding: 0; }
.top select { max-width: 52vw; }

.main { min-width: 0; padding: 22px 16px 120px; }
@media (min-width: 960px) { .main { padding: 40px 48px 80px; } }
.wrap { max-width: 1040px; margin: 0 auto; display: grid; gap: 20px; }
.banner { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 14px; }
.banner b { color: var(--lime); }
.banner a { color: #fff; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .tabbar { display: none; } }
.tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; min-height: 52px; border: 0; background: none; color: var(--sage); font-size: 11px; font-weight: 600; text-decoration: none; border-radius: 12px; cursor: pointer; }
.tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar [aria-current="page"] { color: var(--ink); background: var(--mint); }
.tabbar .dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--lime-d); border: 2px solid #fff; }

/* sheet (mobile "More") and modal */
.scrim { position: fixed; inset: 0; background: rgba(11,43,32,.45); z-index: 50; display: grid; align-items: end; }
@media (min-width: 700px) { .scrim { place-items: center; } }
.sheet { background: #fff; width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; display: grid; gap: 14px; animation: up .22s ease-out; }
@media (min-width: 700px) { .sheet { border-radius: 24px; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 20px; line-height: 1; }

/* ---------- building blocks ---------- */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; }
.eyebrow { color: var(--sage); font-size: 15px; margin-bottom: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card.soft { background: var(--mint); border-color: transparent; box-shadow: none; }
.card.dark { background: var(--ink); color: #fff; border-color: transparent; }
.label { font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: 12px; }
.dark .label { color: rgba(255,255,255,.7); }
.grid2 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid3 { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.muted { color: var(--sage); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: grid; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.lime { background: var(--lime); border-color: var(--lime); }
.btn.lime:hover { background: var(--lime-d); border-color: var(--lime-d); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ghost { border-color: var(--line); }
.btn.sm { min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn.danger { color: var(--red); border-color: #f1c7c3; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.linkbtn { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.seg { display: inline-flex; background: var(--mint); border-radius: 14px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 0 14px; min-height: 40px; border-radius: 10px; cursor: pointer; color: var(--sage); font-weight: 600; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip.ok { background: var(--forest); color: #fff; }
.chip.some { background: var(--mint-2); color: var(--ink); }
.chip.no { border: 1px dashed #b9c6b2; color: var(--sage); }
.chip.new { background: var(--lime); color: var(--ink); }
.chip.warn { background: #fff4d6; color: var(--amber); }

/* forms */
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 14px; }
.field small { color: var(--sage); }
input[type=text], input[type=url], input[type=email], input[type=search], textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfdac8; border-radius: 12px; background: #fff; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(171,255,68,.45); }

/* ---------- home ---------- */
.score { display: grid; gap: 26px; padding: 30px; }
@media (min-width: 860px) { .score { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 34px; } }
.big { font: 800 clamp(72px, 11vw, 112px)/.9 var(--head); color: var(--lime); letter-spacing: -.05em; }
.delta { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(171,255,68,.16); color: var(--lime); font-weight: 700; font-size: 14px; vertical-align: middle; }
.delta.down { background: rgba(255,255,255,.12); color: #ffd2cc; }
.score p { color: rgba(255,255,255,.82); margin-top: 14px; max-width: 420px; }
.bars { display: grid; gap: 18px; }
.bar-h { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lime); border-radius: inherit; transform-origin: left; animation: grow .9s cubic-bezier(.2,.8,.2,1); }
@keyframes grow { from { transform: scaleX(0); } }
.light .bar { background: var(--mint); }
.light .bar i.prev { background: var(--lime); }
.dual { position: relative; height: 10px; border-radius: 99px; background: var(--mint); overflow: hidden; }
.dual i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.dual i.now { background: var(--forest); } .dual i.prev { background: var(--lime); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--sage); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rank li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 12px; border-radius: 12px; align-items: center; }
.rank li.me { background: var(--mint); font-weight: 700; }
.rank b { color: var(--sage); font-weight: 600; }

.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.qlist li:first-child { border-top: 0; }

.addon { display: grid; gap: 6px; align-content: start; border-radius: var(--r); padding: 20px; background: var(--mint); text-decoration: none; color: var(--ink); border: 0; text-align: left; cursor: pointer; }
.addon:hover { background: var(--mint-2); }
.addon .go { color: var(--forest); font-weight: 700; margin-top: 6px; }
.addon-ic { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.addon-ic svg { width: 22px; height: 22px; stroke: var(--forest); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.empty { text-align: center; padding: 40px 20px; display: grid; gap: 10px; justify-items: center; }
.empty .em-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--mint); display: grid; place-items: center; font-size: 28px; }

/* ---------- answers ---------- */
.prog { height: 6px; border-radius: 99px; background: var(--mint); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--forest); transition: width .4s; }
.ans-q { font: 700 clamp(22px, 3vw, 28px)/1.2 var(--head); }
.ans-box { background: var(--mint); border-radius: 16px; padding: 18px; white-space: pre-wrap; }

/* ---------- messages ---------- */
.chat { display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100vh - 260px); padding: 0; overflow: hidden; }
.chat-h { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.thread { padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 60vh; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 18px; background: var(--mint); white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.them { border-bottom-left-radius: 6px; }
.msg small { display: block; font-size: 12px; opacity: .7; margin-top: 4px; }
.compose { border-top: 1px solid var(--line); padding: 14px; display: grid; gap: 10px; }
.compose .row { flex-wrap: nowrap; align-items: end; }
.compose textarea { min-height: 52px; height: 52px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 0 14px; min-height: 40px; cursor: pointer; font-size: 14px; }
.chips button:hover { background: var(--mint); }

/* ---------- docs ---------- */
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.files li:first-child { border-top: 0; }
.f-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; font: 800 11px var(--head); color: var(--forest); text-transform: uppercase; }
.f-main { flex: 1; min-width: 0; }
.f-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop { border: 2px dashed #c4d3bb; border-radius: var(--r); padding: 26px; text-align: center; display: grid; gap: 8px; justify-items: center; background: #fff; }
.drop.on { background: var(--mint); border-color: var(--forest); }

/* ---------- report ---------- */
.rep-hero .was { font: 800 clamp(34px, 5vw, 52px) var(--head); color: rgba(255,255,255,.5); text-decoration: line-through; text-decoration-thickness: 3px; }
.rep-hero .arrow { font-size: 28px; color: rgba(255,255,255,.7); margin: 0 10px; }
.tile b { display: block; font: 800 38px/1 var(--head); margin-bottom: 6px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.ticks .tk { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.bul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- onboarding / sign-in ---------- */
.solo { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 50% -10%, #e5f6d2, transparent 60%), var(--bg); }
.solo-card { width: 100%; max-width: 560px; display: grid; gap: 20px; }
.solo-card .card { padding: 30px; display: grid; gap: 18px; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid #cfdac8; background: #fff; font-weight: 700; cursor: pointer; }
.gbtn:hover { background: var(--mint); }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--mint-2); }
.steps i.on { background: var(--forest); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--mint); border-radius: 99px; padding: 6px 6px 6px 14px; font-weight: 600; }
.tag button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; }
.err { color: var(--red); font-size: 14px; min-height: 20px; }

/* ---------- team area ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--sage); padding: 8px 10px; }
.tbl td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl-wrap { overflow-x: auto; }
.team-tag { display: inline-block; background: var(--lime); color: var(--ink); font: 800 10px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; vertical-align: middle; }
.copybox { display: flex; gap: 8px; }
.copybox input { font-size: 13px; }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; transition: all .25s; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { #toast { bottom: 30px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media print {
  .side, .top, .tabbar, .banner, .no-print, #toast { display: none !important; }
  .shell { display: block; } .main { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .card.dark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* free accounts */
.nav .lock { display: inline-flex; color: var(--sage); }
.nav .lock svg { width: 16px; height: 16px; }
.card.upsell { background: linear-gradient(135deg, #f3fbe8, #fff 60%); border-color: #d8ecc2; }
.em-ic svg { width: 28px; height: 28px; stroke: var(--forest); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
