/* Holler — warm hometown paper + signal orange. Light and dark. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-soft.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #f6f1e7;
  --card: #fffdf8;
  --sunk: #efe8da;
  --ink: #1e2a23;
  --muted: #6b6e65;
  --line: #e3dccd;
  --brand: #e2552b;
  --brand-ink: #ffffff;
  --brand-soft: #fbe3d8;
  --paper-on-brand: #fff7ee;
  --green: #2f6b4f;
  --green-soft: #dcefe4;
  --green-ink: #ffffff;
  --snow: #2471b3;
  --snow-soft: #dcebf7;
  --gold: #d99a13;
  --red: #b83a2c;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 4px 14px rgba(40, 30, 10, .06);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Figtree', -apple-system, system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181a; --card: #1c2225; --sunk: #232a2e; --ink: #f1ece2; --muted: #9ea39b; --line: #2e373b;
    --brand: #ff6a3d; --brand-ink: #1a0d07; --brand-soft: #3a2219; --paper-on-brand: #fff3e8;
    --green: #6fcf9a; --green-soft: #1e3329; --green-ink: #0d2318; --snow: #74b6ee; --snow-soft: #1b2c3b; --gold: #f2bb3f; --red: #ff7a68;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--body); min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 22px; }
.grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-top) + 10px) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.mode { margin-left: auto; display: flex; background: var(--sunk); border-radius: 999px; padding: 3px; }
.mode button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.mode button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.bell svg { width: 24px; height: 24px; }
.bell .dot { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.mode + .bell, .brand + .bell { margin-left: 0; }
.top > .bell:only-of-type { margin-left: auto; }

main { max-width: 640px; margin: 0 auto; padding: 14px 16px calc(var(--safe-bottom) + 100px); }

/* ---------- bottom tabs ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  padding: 6px 6px calc(var(--safe-bottom) + 6px); background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700; border-radius: 12px; position: relative; }
.tabs a .ic { font-size: 21px; line-height: 1; filter: grayscale(1); opacity: .7; }
.tabs a.on { color: var(--brand); }
.tabs a.on .ic { filter: none; opacity: 1; }
.tabs a .n { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--brand); color: var(--brand-ink); border-radius: 9px; font-size: 10.5px; padding: 1px 5px; font-weight: 800; }

/* ---------- cards & bits ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.tap { display: block; text-decoration: none; cursor: pointer; transition: transform .12s; }
.card.tap:active { transform: scale(.985); }
.list > * + * { margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--sunk); color: var(--ink); white-space: nowrap; }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.snow { background: var(--snow-soft); color: var(--snow); }
.chip.red { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.chip.demo { background: transparent; border: 1px dashed var(--muted); color: var(--muted); font-size: 11px; padding: 1px 7px; }
.stars { color: var(--gold); font-weight: 800; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.section-title h2 { font-size: 19px; }
.empty { text-align: center; padding: 26px 12px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 6px; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; background: var(--brand); color: var(--brand-ink); transition: transform .1s, opacity .1s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--sunk); color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.green { background: var(--green); color: var(--green-ink); }
.btn.small { padding: 8px 13px; font-size: 14px; border-radius: 11px; }
.btn.danger { background: transparent; color: var(--red); border: 1.5px solid color-mix(in srgb, var(--red) 40%, transparent); }
.linkbtn { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 0; cursor: pointer; }
label.f { display: block; }
label.f > span { display: block; font-weight: 700; font-size: 14px; margin: 0 2px 6px; }
label.f > small { display: block; color: var(--muted); font-size: 13px; margin: 5px 2px 0; }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 13px; padding: 12px 13px; font-size: 16px; outline: none; }
.input:focus { border-color: var(--brand); }
textarea.input { min-height: 104px; resize: vertical; }
.money { position: relative; }
.money::before { content: '$'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.money .input { padding-left: 26px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg.wrap { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
.seg button { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 6px; font-weight: 700; font-size: 14px; cursor: pointer; line-height: 1.2; }
.seg button small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }
.seg button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.seg button.on small { color: inherit; opacity: .85; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pills button { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pills button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.pills button.bad.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.err { color: var(--red); font-weight: 600; font-size: 14px; min-height: 1px; }
.lock { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 13px; background: var(--sunk); font-size: 14px; }
.lock .i { font-size: 17px; }

/* ---------- hero / banners ---------- */
.hero { padding: 6px 2px 2px; }
.hero h1 { font-size: 34px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.banner { display: flex; gap: 12px; align-items: center; padding: 13px 15px; border-radius: 16px; text-decoration: none; }
.banner.snow { background: linear-gradient(135deg, var(--snow-soft), color-mix(in srgb, var(--snow-soft) 60%, var(--card))); color: var(--ink); border: 1px solid color-mix(in srgb, var(--snow) 25%, transparent); }
.banner .big { font-size: 30px; }
.banner b { color: var(--snow); }
.banner.green { background: var(--green-soft); }
.banner.brand { background: var(--brand-soft); }

/* ---------- category grid ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px 11px; text-align: center; text-decoration: none; box-shadow: var(--shadow); position: relative; transition: transform .1s; }
.cat:active { transform: scale(.96); }
.cat .ic { font-size: 28px; line-height: 1.1; }
.cat .nm { font-weight: 700; font-size: 13.5px; margin-top: 5px; line-height: 1.2; }
.cat .free { position: absolute; top: -7px; right: -4px; background: var(--snow); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }

/* ---------- job cards ---------- */
.job { display: flex; gap: 12px; }
.job .thumb { width: 64px; height: 64px; border-radius: 13px; background: var(--sunk); flex: none; display: grid; place-items: center; font-size: 30px; overflow: hidden; }
.job .thumb img { width: 100%; height: 100%; object-fit: cover; }
.job h3 { font-family: var(--body); font-size: 16.5px; font-weight: 800; letter-spacing: 0; }
.job .meta { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.job .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.score { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13.5px; }
.score .who { font-weight: 800; }
.cost { text-align: right; flex: none; }
.cost .n { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; }
.cost .l { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.cost.free .n { color: var(--snow); }
.meter { display: flex; gap: 3px; margin-top: 5px; justify-content: flex-end; }
.meter i { width: 9px; height: 5px; border-radius: 3px; background: var(--line); }
.meter i.on { background: var(--brand); }

.photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; }
.photos img { height: 190px; width: auto; border-radius: 14px; scroll-snap-align: start; flex: none; background: var(--sunk); }
.pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pick .ph { width: 76px; height: 76px; border-radius: 13px; overflow: hidden; position: relative; background: var(--sunk); }
.pick .ph img { width: 100%; height: 100%; object-fit: cover; }
.pick .ph button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.pick .add { width: 76px; height: 76px; border-radius: 13px; border: 1.5px dashed var(--line); display: grid; place-items: center; font-size: 26px; color: var(--muted); cursor: pointer; background: var(--card); }

/* ---------- preview ("what pros see") ---------- */
.preview { border: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 20px; padding: 12px; background: color-mix(in srgb, var(--brand-soft) 35%, transparent); }
.preview .label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 4px 8px; }

/* ---------- bids ---------- */
.bid .price { font-family: var(--display); font-weight: 800; font-size: 26px; }
.bid.hired { border-color: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 25%, transparent), var(--shadow); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-family: var(--display); font-size: 18px; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 80px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-color: transparent; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; border-bottom-left-radius: 6px; }
.msg .t { font-size: 11px; opacity: .7; margin-top: 3px; }
.msg.redacted::after { content: '🔒 contact info hidden until hired'; display: block; font-size: 11px; opacity: .8; margin-top: 4px; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 8px; padding: 9px 12px calc(var(--safe-bottom) + 9px); background: var(--card); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; border-radius: 22px; padding: 11px 15px; }
.composer .btn { border-radius: 22px; padding: 0 18px; }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 10px; padding: 13px 14px; text-decoration: none; border-radius: 14px; }
.alert.unread { background: var(--brand-soft); }
.alert .when { flex: none; color: var(--muted); font-size: 12px; }

/* ---------- sheet & toast ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(15, 12, 8, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet-card { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 20px 18px calc(var(--safe-bottom) + 20px); animation: up .22s cubic-bezier(.2,.9,.3,1); }
.sheet-card .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: -8px auto 14px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 88px); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- welcome ---------- */
.welcome { padding-top: 10px; }
.welcome .mega { font-family: var(--display); font-size: 46px; font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
.welcome .mega em { color: var(--brand); font-style: italic; }
.why { display: grid; gap: 10px; }
.why .card { display: flex; gap: 12px; }
.why .n { font-size: 26px; flex: none; }
.why h3 { font-family: var(--body); font-weight: 800; font-size: 16px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare td:last-child { color: var(--green); font-weight: 700; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; margin-bottom: 10px; cursor: pointer; background: none; border: 0; padding: 0; }
.steps { display: flex; gap: 6px; margin: 8px 0 2px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--brand); }
.pay-choice { display: grid; gap: 10px; }
.pay-choice button { text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px; cursor: pointer; }
.pay-choice button.on { border-color: var(--green); background: var(--green-soft); }
.pay-choice b { display: block; font-size: 16px; }
.star-pick { display: flex; gap: 6px; justify-content: center; font-size: 38px; }
.star-pick button { background: none; border: 0; cursor: pointer; color: var(--line); padding: 0; }
.star-pick button.on { color: var(--gold); }
.status-line { display: flex; gap: 0; margin: 6px 0 0; }
.status-line div { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); position: relative; padding-top: 16px; }
.status-line div::before { content: ''; position: absolute; top: 4px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--line); transform: translateX(-50%); z-index: 1; }
.status-line div::after { content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.status-line div:first-child::after { display: none; }
.status-line div.on { color: var(--green); }
.status-line div.on::before, .status-line div.on::after { background: var(--green); }
