/* Palette and display type from the Claude Design "Intro Desk" mock. */
@font-face { font-family: Roobert; src: url('./assets/fonts/Roobert-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root {
  --ink: #14151F; --ink-2: #2E2B39; --ink-3: #4A4658;
  --muted: #6A6579; --faint: #938EA3; --disabled: #8B8798;
  --line: #E9E4F2; --line-soft: #F1EDF9; --line-strong: #D7D0E6; --input: #E4DEF0;
  --canvas: #FCFBFE; --soft: #F8F6FD; --track: #EDE9F5; --page: #EFECF5;
  --violet: #6D4AFF; --violet-dark: #5A38E6; --lav: #EDE7FF; --lav-soft: #F4F0FF;
  --pink: #FBD3E6; --pink-ink: #D63C97;
  --blue: #3E63DD; --teal: #0E8C79; --teal-bright: #12A08A; --teal-soft: #D6F3ED;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-dark); text-decoration: underline; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, .num, .brand b, .estimate-amount { font-family: Roobert, Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.shell { max-width: 1040px; margin: 32px auto; background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(20,21,31,.06), 0 24px 60px -30px rgba(20,21,31,.25); overflow: hidden; }
@media (max-width: 700px) { .shell { margin: 0; border-radius: 0; } }

/* Header */
header { display: flex; align-items: center; gap: 14px; padding: 16px 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; }
.brand b { display: block; font-size: 18px; line-height: 1; }
.brand small, .who small { color: var(--faint); font-size: 11.5px; }
.who { display: flex; align-items: center; gap: 10px; text-align: right; }
.who b { display: block; font-size: 13.5px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--lav), var(--pink)); color: var(--violet-dark); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }

.seg { display: flex; gap: 4px; background: var(--line-soft); border-radius: 999px; padding: 3px; width: fit-content; }
.seg button { padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); }
.seg.small button { padding: 5px 11px; font-size: 12.5px; }
.seg .count { margin-left: 6px; background: var(--lav); color: var(--violet-dark); border-radius: 999px; padding: 1px 7px; font-size: 11.5px; }

main { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 700px) { header { padding: 14px 18px; } .who { display: none; } main { padding: 18px 18px 90px; } }

/* Buttons + text */
.btn { background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--ink-2); }
.btn:disabled { background: var(--disabled); cursor: not-allowed; }
.btn.lg { padding: 11px 20px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink-3); border: 1px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.link { color: var(--violet); font-weight: 600; font-size: 13px; }
.muted-link { color: var(--muted); }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.sub { margin: 4px 0 0; color: var(--muted); }
.title { font-size: 13px; color: var(--ink-2); }
.hint { font-size: 12.5px; color: var(--faint); font-weight: 400; }
.name { font-weight: 600; }
.empty { padding: 28px 22px; color: var(--muted); text-align: center; }

/* Rewards strip (replaces the big banner) */
.strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; padding: 14px 20px; border-radius: 14px; background: linear-gradient(150deg, var(--lav) 0%, var(--pink) 100%); color: var(--ink-2); }
.estimate { align-items: flex-start; padding: 22px 24px; }
.estimate-content { flex: 1 1 600px; min-width: 0; }
.estimate-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.estimate-amount { font-size: clamp(36px, 5vw, 52px); line-height: 1.15; letter-spacing: -.045em; color: var(--ink); margin: 3px 0 16px; }
.estimate-equation { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; font-weight: 600; }
.estimate-equation span { background: rgba(255,255,255,.72); border-radius: 8px; padding: 7px 9px; }
.estimate-equation i { font-style: normal; color: var(--violet-dark); }
.estimate-math { font-size: 13px; color: var(--ink-2); margin: 13px 0 0; }
.estimate small { display: block; margin-top: 9px; color: var(--muted); font-size: 11.5px; max-width: 780px; }

/* List */
.section-head h2 { font-size: 24px; }
.toolbar { display: flex; gap: 10px; margin: 16px 0 12px; flex-wrap: wrap; }
.filterbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-options, .excluded-companies { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.filter-chip.on { color: #fff; background: var(--ink); border-color: var(--ink); }
.filter-chip:hover, .filter-chip:focus-visible { border-color: var(--ink); }
.excluded-companies { margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.excluded-companies .filter-chip { padding: 3px 9px; font-size: 12px; }
.hide-company { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 500; opacity: 0; }
.row:hover .hide-company, .hide-company:focus-visible { opacity: 1; }
@media (hover: none) { .hide-company { opacity: 1; } }
.co-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.section-head h2 .count { font-family: Inter, system-ui, sans-serif; font-size: 13px; vertical-align: middle; margin-left: 6px; background: var(--lav); color: var(--violet-dark); border-radius: 999px; padding: 2px 9px; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--input); border-radius: 999px; padding: 9px 15px; }
.search:focus-within { border-color: var(--violet); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; }
.card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.card-head { padding: 16px 22px; display: flex; align-items: center; gap: 12px; }
.card-head h2 { font-size: 18px; flex: 1; }
details summary { cursor: pointer; list-style: none; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; flex-wrap: wrap; }
.row + .row, .card-head + .row, summary + .row { border-top: 1px solid var(--line-soft); }
.row.muted { background: var(--canvas); opacity: .7; }
.row .grow { flex: 1 1 260px; min-width: 0; }
.co-name { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.signal { font-size: 12px; font-weight: 600; color: var(--pink-ink); margin-left: 6px; }
.favicon { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: #fff; flex: none; }
.company-mark { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--lav-soft); color: var(--violet-dark); display: grid; place-items: center; font-weight: 700; flex: none; position: relative; }
.company-mark img { position: absolute; inset: -1px; }
.evidence { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.badge { border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 500; color: var(--violet-dark); background: var(--lav-soft); white-space: nowrap; }
.priority .section-head { margin-bottom: 12px; }
.priority .card { border-color: var(--line-strong); }
.priority .row { align-items: flex-start; }
.priority-people { margin-top: 8px; }
.priority-person { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 0; }
.priority-person + .priority-person { border-top: 1px solid var(--line-soft); }
.priority-person-info { flex: 1 1 250px; min-width: 0; }
.priority-person .hint { color: var(--muted); }
.priority-person.muted { opacity: .6; }
.priority-person .why { padding-left: 0; }
.actions { display: flex; gap: 8px; align-items: center; }
.why { flex: 1 1 100%; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); padding-left: 50px; }
.why button { border: 1px solid var(--line-strong); padding: 5px 11px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.why button:hover { border-color: var(--ink); }
.list-foot { display: flex; justify-content: space-between; padding: 12px 22px; border-top: 1px solid var(--line-soft); background: var(--canvas); }
@media (max-width: 700px) { .actions { flex: 1 1 100%; } .why { padding-left: 0; } }

/* Pipeline */
.pipeline-row { width: 100%; text-align: left; }
.pipeline-row:hover, .pipeline-row.selected { background: var(--lav-soft); }
.pipeline-row.selected { box-shadow: inset 3px 0 var(--violet); }
.pipeline-row:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.timeline { list-style: none; margin: 0; padding: 4px 22px 18px; }
.timeline-step { display: flex; gap: 14px; min-height: 64px; position: relative; color: var(--faint); }
.timeline-step:not(:last-child)::before { content: ''; position: absolute; top: 25px; bottom: 2px; left: 11px; width: 2px; background: var(--line); }
.timeline-step.complete:not(:last-child)::before { background: var(--teal); }
.timeline-step > span { flex: none; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; background: white; font-size: 11px; font-weight: 700; z-index: 1; }
.timeline-step.complete > span { background: var(--teal); border-color: var(--teal); color: white; }
.timeline-step.current > span { background: var(--violet); border-color: var(--violet); color: white; }
.timeline-step.current { color: var(--ink); }
.timeline-step b, .timeline-step small { display: block; }
.timeline-step small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.step-counts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.step-count { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.step-count .num { font-size: 28px; }
.step-count small { color: var(--muted); font-size: 12.5px; }
.step-count.done { background: var(--teal-soft); border-color: var(--teal-soft); }
.step-count.done .num, .step-count.done small { color: var(--teal); }
@media (max-width: 700px) { .step-counts { grid-template-columns: repeat(3, 1fr); } }
.progress { flex: 2 1 300px; min-width: 0; }
.steps { display: flex; gap: 4px; margin-bottom: 6px; }
.steps i { flex: 1; height: 6px; border-radius: 999px; background: var(--track); }
.steps i.on { background: var(--violet); }
.steps.done i.on { background: var(--teal-bright); }
.steps.lost i.on { background: var(--line-strong); }
.status { font-size: 13px; font-weight: 600; }
.s0 { color: var(--muted); } .s1 { color: var(--blue); } .s2, .s3 { color: var(--violet-dark); } .s4 { color: var(--teal); } .sx { color: var(--faint); }

/* Sheet (dialog) */
dialog { border: 0; padding: 0; border-radius: 18px; width: min(560px, 100vw - 32px); max-height: calc(100vh - 64px); box-shadow: 0 30px 80px -20px rgba(20,21,31,.5); color: var(--ink); }
dialog::backdrop { background: rgba(20,21,31,.45); }
@media (max-width: 700px) { dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 20px 20px 0 0; } }
.sheet-head, .sheet-body, .sheet-foot { padding: 18px 24px; }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.sheet-head > div { flex: 1; }
.sheet-head h3 { font-size: 22px; margin-top: 4px; }
.close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-3); flex: none; }
.sheet-body { display: flex; flex-direction: column; gap: 18px; }
.sheet-body label { font-weight: 600; font-size: 13.5px; }
.field { width: 100%; border: 1px solid var(--input); border-radius: 11px; padding: 11px 13px; outline: 0; color: var(--ink-2); }
.field:focus { border-color: var(--violet); }
textarea.field { min-height: 70px; resize: vertical; margin-top: 8px; }
.choices { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 400 !important; }
.choice.on { border-color: var(--violet); background: var(--lav-soft); }
.choice input[type=radio] { accent-color: var(--violet); margin-top: 3px; }
.choice span { flex: 1; font-size: 13.5px; color: var(--muted); }
.choice b { color: var(--ink); margin-right: 4px; }
.choice small { display: block; color: var(--faint); font-size: 12px; }
.choice .field { margin-top: 8px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.mode { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; text-align: left; }
.mode.on { border-color: var(--violet); background: var(--lav-soft); }
.mode b { display: block; font-size: 13.5px; }
.mode span { font-size: 12px; color: var(--muted); }
.draft { border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); padding: 12px 14px; }
.draft-head { display: flex; align-items: center; justify-content: space-between; }
.draft pre { margin: 10px 0 0; white-space: pre-wrap; font: inherit; font-size: 13.5px; color: var(--ink-2); }
.callout { border-left: 3px solid var(--violet); background: var(--lav-soft); border-radius: 0 12px 12px 0; padding: 12px 15px; color: var(--ink-2); }
.sheet-foot { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* How it works */
.how-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiers > div { background: linear-gradient(150deg, var(--lav), var(--pink)); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.tiers .num { display: block; font-size: 24px; color: var(--ink); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 999px; display: flex; gap: 14px; align-items: center; font-size: 13.5px; box-shadow: 0 12px 30px -10px rgba(20,21,31,.5); z-index: 20; }
.toast[hidden] { display: none; }
.toast .link { color: #C9BCFF; }
