/* Hired Hand CRM. Plain CSS, no build step. Colors match site/assets/site.css. Phone first (375px). */
:root {
  --ink:#0b1220; --ink-2:#1c2740; --muted:#5b6675; --line:#e3e7ec; --bg:#fbfaf7; --card:#fff;
  --brand:#e8541a; --brand-ink:#c2410c; --brand-dark:#9a3412; --brand-light:#ff6a2b; --cream:#f3eee4;
  --good:#2f7d4f; --good-bg:#eef7f1; --warn-bg:#fff1e8; --amber:#b45309; --amber-bg:#fef3c7;
  --no:#b42318; --no-bg:#fff5f4; --no-line:#f1c4be; --field:#c9d0d8;
  --display:"Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow:0 1px 2px rgba(11,18,32,.05), 0 4px 14px -8px rgba(11,18,32,.18);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font:16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); overflow-wrap:anywhere; -webkit-tap-highlight-color:transparent; }
h1, h2, h3 { font-family:var(--display); font-weight:800; letter-spacing:-.02em; line-height:1.15; }
h1 { font-size:26px; margin:0 0 4px; }
h2 { font-size:18px; margin:28px 0 10px; }
a { color:var(--brand-ink); }
.wrap { max-width:760px; margin:0 auto; padding:0 16px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
svg.i { width:22px; height:22px; flex:none; }

/* Stage colors: one chip color and a matching list stripe per stage. */
.st-new { --st-bg:#eef0f3; --st-fg:#4b5563; --st-bar:#b8c0cc; }
.st-called { --st-bg:#e2e8f0; --st-fg:#334155; --st-bar:#64748b; }
.st-waiting-on-callback { --st-bg:#fef3c7; --st-fg:#92400e; --st-bar:#f59e0b; }
.st-pitched { --st-bg:#dbeafe; --st-fg:#1e40af; --st-bar:#3b82f6; }
.st-trial { --st-bg:#dcfce7; --st-fg:#166534; --st-bar:#22c55e; }
.st-customer { --st-bg:#2f7d4f; --st-fg:#fff; --st-bar:#2f7d4f; }
.st-not-interested { --st-bg:#f3f4f6; --st-fg:#9ca3af; --st-bar:#e5e7eb; }

/* Header and tabs: dark, like the site's dark sections. */
header.top { background:var(--ink); color:#e9ecf0; position:sticky; top:0; z-index:5; padding-top:env(safe-area-inset-top); box-shadow:0 1px 0 rgba(255,255,255,.06); }
header.top .row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 0 0; }
header.top .logo img { display:block; height:28px; width:auto; }
header.top .linkbtn { color:#aeb6c2; }
.tabs { display:flex; gap:2px; }
.tabs a { flex:1; text-align:center; padding:10px 2px 8px; text-decoration:none; color:#aeb6c2; font-weight:700; font-size:15px; border-bottom:3px solid transparent; white-space:nowrap; }
.tabs a:hover { color:#fff; }
.tabs a.on { color:#fff; border-color:var(--brand-light); }
.linkbtn { background:none; border:0; color:var(--muted); font:inherit; font-size:14px; cursor:pointer; padding:6px; text-decoration:underline; }

main.wrap { padding-top:18px; padding-bottom:48px; }

/* Buttons and inputs */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--brand-ink); color:#fff; padding:12px 16px; border-radius:12px; text-decoration:none; font-weight:700; border:0; font-size:16px; cursor:pointer; font-family:inherit; text-align:center; line-height:1.25; }
.btn:hover { background:var(--brand-dark); }
.btn.ghost { background:#fff; color:var(--ink); border:1.5px solid var(--field); }
.btn.ghost:hover { border-color:var(--ink); }
.btn.dark { background:var(--ink); }
.btn.dark:hover { background:var(--ink-2); }
.btn.block { display:flex; width:100%; }
.btn:disabled { opacity:.6; cursor:default; }
input, select, textarea { width:100%; min-width:0; font:inherit; font-size:16px; padding:10px 12px; border:1.5px solid var(--field); border-radius:10px; background:#fff; color:var(--ink); }
input[type=date], input[type=datetime-local] { -webkit-appearance:none; appearance:none; min-height:46px; display:block; }
input:focus, select:focus, textarea:focus { outline:2px solid var(--brand); outline-offset:1px; border-color:var(--brand); }
textarea { min-height:84px; resize:vertical; }
label { display:block; font-size:14px; font-weight:600; color:var(--muted); margin:12px 0 4px; }
.filters { display:grid; grid-template-columns:1fr; gap:8px; margin:12px 0; }
@media (min-width:600px) { .filters { grid-template-columns:2fr 1fr; } }

/* Scoreboard: "Today:" then four counts, one per cell. */
.score { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); background:var(--ink-2); color:#c3cad4; border-radius:14px; padding:10px 0 12px; margin:0 0 16px; font-size:13px; line-height:1.2; overflow-wrap:normal; }
.score .day { grid-column:1 / -1; font:800 12px/1.2 var(--display); letter-spacing:.08em; text-transform:uppercase; color:var(--brand-light); padding:0 14px 6px; }
.score .stat { text-align:center; padding:0 2px; }
.score .stat + .stat { border-left:1px solid rgba(255,255,255,.1); }
.score b { display:block; font:800 24px/1.1 var(--display); color:#fff; }
.score .sep { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* Lists and cards */
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; }
.list { list-style:none; margin:0; padding:0; }
.list > li { display:flex; align-items:center; margin:0 0 10px; background:#fff; border:1px solid var(--line); border-left:6px solid var(--st-bar, var(--line)); border-radius:14px; box-shadow:var(--shadow); overflow:hidden; }
.list > li:hover { border-color:var(--field); border-left-color:var(--st-bar, var(--field)); }
.list a.item { flex:1; min-width:0; display:block; padding:12px 12px 12px 14px; text-decoration:none; color:var(--ink); }
.item .name { font-weight:700; font-size:17px; line-height:1.3; }
.item .meta { color:var(--muted); font-size:14px; line-height:1.4; margin-top:2px; }
.item .lede { font:800 19px/1.25 var(--display); letter-spacing:-.01em; color:var(--brand-dark); margin-bottom:3px; }
.item .lede.wait { color:var(--amber); }
.list > li.st-not-interested .name, .list > li.st-not-interested .meta { color:#9ca3af; }
.list > li.st-not-interested .dial { background:#cbd1d9; box-shadow:none; }
.dial { flex:none; display:flex; align-items:center; justify-content:center; width:48px; height:48px; margin:0 12px 0 4px; border-radius:50%; background:var(--brand-ink); color:#fff; box-shadow:0 4px 12px -4px rgba(194,65,12,.6); }
.dial:hover { background:var(--brand-dark); }
.dial:active { transform:scale(.95); }
.group { display:flex; align-items:center; gap:8px; font:800 13px/1.2 var(--display); letter-spacing:.06em; text-transform:uppercase; margin:22px 0 10px; color:var(--ink-2); }
.group .n { font-weight:700; color:var(--muted); letter-spacing:0; }
.group.due { color:var(--brand-ink); }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.chip { display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:700; line-height:1.3; padding:3px 9px; border-radius:999px; background:var(--cream); color:var(--ink-2); white-space:nowrap; }
.chip.stage { background:var(--st-bg, var(--cream)); color:var(--st-fg, var(--ink-2)); }
.chip.flag { background:var(--warn-bg); color:var(--brand-dark); }
.chip.good { background:#fff; color:var(--good); box-shadow:inset 0 0 0 1.5px #b9dcc7; }
.chip.wait { background:var(--amber-bg); color:#92400e; }
.chip.due { background:var(--brand-ink); color:#fff; }
.chip.later { background:#fff; color:var(--muted); box-shadow:inset 0 0 0 1.5px var(--line); }
.muted { color:var(--muted); }
.count { color:var(--muted); font-size:14px; margin:0 0 4px; }
.empty { text-align:center; padding:28px 16px; color:var(--muted); background:#fff; border:1px dashed var(--field); border-radius:14px; }
dl.facts { display:grid; grid-template-columns:minmax(0, 7.5em) minmax(0, 1fr); gap:8px 14px; margin:0; }
dl.facts dt { color:var(--muted); font-size:14px; line-height:1.3; padding-top:2px; }
dl.facts dd { margin:0; }
.stack > * + * { margin-top:12px; }
.notes { list-style:none; margin:0; padding:0; }
.notes li { border-top:1px solid var(--line); padding:10px 0; }
.notes li:first-child { border-top:0; padding-top:0; }
.notes .when { color:var(--muted); font-size:13px; }
.saved { color:var(--good); font-weight:700; margin-left:10px; }
.big { font:800 30px/1.1 var(--display); margin-top:6px; }
.big.soon { color:var(--brand-ink); }

/* Login */
.login { max-width:360px; margin:12vh auto 0; padding:0 16px; text-align:center; }
.login img { height:44px; width:auto; margin-bottom:20px; }
.login .err { color:var(--brand-dark); font-weight:600; }

/* Lead page */
.back { margin:0 0 10px; font-size:15px; }
.back a { text-decoration:none; font-weight:600; }
.lead-head .meta { font-size:15px; }
.lead-head .chips { margin-top:10px; }
.rgroup { margin-top:16px; }
.rlabel { font:800 12px/1.2 var(--display); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 7px; }
.rbtns { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.rbtn { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:60px; padding:8px 6px; border-radius:12px; border:1.5px solid var(--field); background:#fff; color:var(--ink); font:700 15px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor:pointer; text-align:center; box-shadow:var(--shadow); }
.rbtn small { font-size:12px; font-weight:600; color:var(--muted); margin-bottom:2px; }
.rbtn:hover { border-color:var(--ink); }
.rbtn:active { transform:scale(.98); }
.rbtn:disabled { opacity:.6; }
.rbtn.done { border-color:#9fcfb2; background:var(--good-bg); }
.rbtn.done::after { content:"\2713"; position:absolute; top:-8px; right:-6px; width:22px; height:22px; border-radius:50%; background:var(--good); color:#fff; font-size:13px; font-weight:800; line-height:22px; box-shadow:0 0 0 2px var(--bg); }
.rbtn.no { width:100%; margin-top:14px; min-height:48px; color:var(--no); border-color:var(--no-line); background:var(--no-bg); box-shadow:none; }
.rbtn.no.done { border-color:var(--no-line); background:var(--no-bg); }
.rbtn.no.done::after { background:var(--no); }
.after { margin-top:14px; }
.doneline { display:flex; align-items:center; justify-content:space-between; gap:10px; background:var(--ink); color:#fff; border-radius:12px; padding:10px 8px 10px 14px; font-weight:600; font-size:15px; margin-bottom:10px; }
.doneline .linkbtn { color:var(--brand-light); font-weight:800; font-size:15px; padding:6px 8px; }
.addnote { background:none; border:0; padding:6px 0; color:var(--brand-ink); font-family:inherit; font-size:15px; font-weight:700; cursor:pointer; }
.notebox { margin:0; }
.notebox .notebtns { display:grid; grid-template-columns:2fr 1fr; gap:8px; margin-top:8px; }
.again .head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin-bottom:10px; }
.again .head b { font-family:var(--display); font-size:16px; }
.again .when { font-weight:700; color:var(--ink-2); }
.again .when.due { color:var(--brand-ink); }
.again .when.none { color:var(--muted); font-weight:500; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.again input { margin-top:8px; }
.suggest { font-size:15px; }
details.edit { margin-top:28px; background:#fff; border:1px solid var(--line); border-radius:14px; }
details.edit > summary { list-style:none; cursor:pointer; padding:14px; font:800 16px/1.2 var(--display); display:flex; justify-content:space-between; align-items:center; }
details.edit > summary::-webkit-details-marker { display:none; }
details.edit > summary::after { content:"+"; color:var(--brand); font-size:24px; line-height:1; font-weight:600; }
details.edit[open] > summary::after { content:"\2212"; }
details.edit form { padding:0 14px 14px; border-top:1px solid var(--line); }
body.has-callbar main.wrap { padding-bottom:calc(110px + env(safe-area-inset-bottom)); }
.callbar { position:fixed; left:0; right:0; bottom:0; z-index:6; background:rgba(255,255,255,.97); border-top:1px solid var(--line); box-shadow:0 -8px 24px -14px rgba(11,18,32,.35); padding:10px 16px calc(10px + env(safe-area-inset-bottom)); backdrop-filter:saturate(1.2) blur(6px); -webkit-backdrop-filter:saturate(1.2) blur(6px); }
.callbar .inner { max-width:728px; margin:0 auto; display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); gap:10px; }
.callbar .btn { padding:14px 10px; font-size:17px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Scripts */
.sits { display:grid; grid-template-columns:1fr; gap:8px; margin:12px 0 8px; }
@media (min-width:600px) { .sits { grid-template-columns:1fr 1fr; } }
.sit { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; text-align:left; font:700 17px/1.3 var(--display); padding:15px 16px; border-radius:14px; border:1.5px solid var(--field); background:#fff; color:var(--ink); cursor:pointer; box-shadow:var(--shadow); }
.sit .chip { flex:none; }
.sit.suggested { border-color:var(--brand); }
.sit.on { background:var(--ink); border-color:var(--ink); color:#fff; }
.script { margin:0 0 12px; font-size:18px; }
.script h3 { font-size:18px; margin:0 0 8px; }
.script p { margin:0 0 10px; }
.script p:last-child { margin-bottom:0; }
.script p.say { font-size:21px; line-height:1.45; }
.script .filled { background:var(--cream); border-radius:4px; padding:0 3px; }
.script .blank { color:var(--muted); border-bottom:2px dashed var(--field); padding:0 4px; font-style:italic; }
#cards { scroll-margin-top:110px; }
.intro { margin:0 0 12px; font-size:15px; }
