/* FreelanceFlow — full width, calm and modern. base.css gives forms, cards, messages; this file gives the look. */
:root {
  --ink: #101828; --muted: #5d6679; --line: #e4e7ee; --bg: #f7f8fa; --card: #fff;
  --brand: #0f766e; --brand-2: #e6f4f2; --brand-ink: #0b5c56; --accent: #f59e0b;
  --good: #0f7a4f; --good-bg: #e7f6ee; --warn: #b45309; --warn-bg: #fff4df; --bad: #c0362c; --bad-bg: #fdecea;
  --radius: 14px; --edge: clamp(20px, 4vw, 64px); --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
}
body { background: var(--bg); color: var(--ink); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--edge); }
main.page { max-width: 1440px; margin: 0 auto; padding: 28px var(--edge) 70px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.row.between { justify-content: space-between; }

/* top bar */
.top { background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo i { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-style: normal; }
.logo b { color: var(--brand); }
#navRight { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--ink); font-weight: 600; text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s; }

.wallet { font-weight: 700; color: var(--brand-ink); background: var(--brand-2); padding: 6px 12px; border-radius: 99px; text-decoration: none; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.who em { font-style: normal; font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; font-weight: 700; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: .78rem; } .avatar.lg { width: 84px; height: 84px; font-size: 1.7rem; }

/* buttons react */
.btn { background: var(--brand); transition: transform .15s, box-shadow .2s, filter .2s; }

.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn.ghost { background: var(--brand-2); color: var(--brand-ink); }
.btn.dark { background: var(--ink); } .btn.big { padding: 14px 24px; font-size: 1.02rem; }
.btn.danger { background: var(--bad-bg); color: var(--bad); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* stars, chips, tags */
.stars { color: var(--ink); font-weight: 700; white-space: nowrap; } .stars b { color: var(--accent); letter-spacing: 1px; } .stars b i { color: #d9dde5; font-style: normal; }
.stars.small { font-size: .85rem; } .stars.none { color: var(--muted); font-weight: 500; font-size: .85rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { background: #eef1f5; border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 600; color: #3b4558; }
.tag { font-size: .75rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-2); padding: 3px 10px; border-radius: 99px; }
.status { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; text-transform: capitalize; white-space: nowrap; }
.s-open, .s-pending, .s-unfunded { background: #eef1f5; color: #3b4558; } .s-in_progress, .s-funded { background: #e7effd; color: #1d4ed8; }
.s-submitted, .s-revision { background: var(--warn-bg); color: var(--warn); } .s-completed, .s-accepted, .s-approved { background: var(--good-bg); color: var(--good); }
.s-rejected, .s-withdrawn, .s-cancelled { background: var(--bad-bg); color: var(--bad); }

/* job cards */
.job-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.job-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }

.job-card h3 { font-size: 1.12rem; margin: 0; } .job-card .clip { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.budget { font-weight: 800; font-size: 1.05rem; } .foot-line { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.client-line { gap: 8px; font-size: .88rem; color: var(--muted); }

/* two columns: list + side panel */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.side { position: sticky; top: 84px; display: grid; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; } .panel h2 { margin-top: 0; }
.filters-bar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 22px; }

/* project page */
.p-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 8px 0 10px; letter-spacing: -.01em; }
.desc { white-space: pre-line; font-size: 1.02rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.proposal { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; background: #fff; }
.proposal.accepted { border-color: #9ed8be; } .proposal .who-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.proof { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 10px; }
.proof a, .proof div { display: block; border: 1px dashed #b9c3d3; border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.proof b { display: block; }
.steps { display: grid; gap: 12px; }
.ms { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.ms .ms-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.ms .deliv { margin-top: 10px; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.ms .deliv.feedback { background: var(--warn-bg); }
.ms form { margin-top: 12px; }
.money-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.money-bar div { background: var(--bg); border-radius: 12px; padding: 12px; } .money-bar b { display: block; font-size: 1.25rem; } .money-bar span { font-size: .8rem; color: var(--muted); }
.ledger { width: 100%; } .ledger td.amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; } .plus { color: var(--good); } .minus { color: var(--bad); }
.star-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; color: #d9dde5; cursor: pointer; display: inline; padding: 0 2px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--accent); }
.star-input input:focus-visible + label { outline: 3px solid #ffb703; border-radius: 6px; }
.review { border-top: 1px solid var(--line); padding: 12px 0; } .review:first-child { border-top: 0; }

/* profile */
.prof-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.prof-head h1 { margin: 0; } .big-rating { font-size: 1.4rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; } .kpi b { display: block; font-size: 1.5rem; } .kpi span { color: var(--muted); font-size: .85rem; }

/* dashboard */
.dash-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; list-style: none; padding: 0; }
.dash-tabs a { display: block; padding: 9px 16px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 600; background: #fff; border: 1px solid var(--line); }
.dash-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }

.list-row h3 { margin: 0 0 4px; font-size: 1.05rem; }
.progress { height: 8px; background: #eef1f5; border-radius: 99px; overflow: hidden; width: 160px; } .progress i { display: block; height: 100%; background: var(--brand); }
.alert-dot { background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: .78rem; padding: 3px 9px; border-radius: 99px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border: 1px dashed #c9d0dc; border-radius: 16px; }

/* login */
.auth { min-height: calc(100svh - 64px); display: grid; grid-template-columns: 1fr 1fr; }
.auth .pitch { background: radial-gradient(900px 500px at 20% 20%, #14b8a6 0%, transparent 60%), #0b3b37; color: #fff; padding: 60px var(--edge); display: grid; align-content: center; gap: 18px; }
.auth .pitch h1 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.1; margin: 0; }
.auth .pitch p { color: #cfe9e5; font-size: 1.1rem; max-width: 44ch; }
.auth .forms { padding: 48px var(--edge); display: grid; align-content: center; }
.auth .forms .panel { max-width: 520px; width: 100%; }
.seg { display: flex; background: #eef1f5; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 18px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.roles-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roles-pick label { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 600; }
.roles-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-2); }
.roles-pick input { width: 18px; height: 18px; margin-top: 3px; } .roles-pick small { display: block; color: var(--muted); font-weight: 500; }
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .demo button { text-align: left; }

/* home */
.hero { min-height: calc(100svh - 64px); display: grid; align-items: center; padding: 48px 0;
  background: radial-gradient(1100px 600px at 88% 20%, #d5f0ec 0%, transparent 60%), radial-gradient(700px 400px at 0% 100%, #fff3d6 0%, transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 800; color: var(--brand); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 48ch; }
.search-big { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); max-width: 560px; margin: 26px 0 18px; }
.search-big input { border: 0; font-size: 1.05rem; } .search-big input:focus { outline: none; }
.hero .facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; } .hero .facts b { display: block; font-size: 1.6rem; } .hero .facts span { color: var(--muted); font-size: .85rem; }
.stage { position: relative; display: grid; gap: 16px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px rgba(16, 24, 40, .14); padding: 18px 20px; }
.mock.offset { margin-left: 12%; }
.mock .bar { height: 8px; } .mock h4 { margin: 0 0 8px; font-size: .95rem; }
.ms-mini { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.ms-mini:first-of-type { border-top: 0; } .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; color: #fff; background: var(--good); } .tick.wait { background: #cbd2dd; } .tick.held { background: #1d4ed8; }
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; } .enter.late { animation-delay: .15s; } .enter.later { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
.sec { min-height: 100svh; display: grid; align-content: center; padding: 80px 0; border-top: 1px solid var(--line); background: #fff; }
.sec.alt { background: var(--bg); }
.sec h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.01em; line-height: 1.15; margin: 0 0 34px; max-width: 30ch; }
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.how > div { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform .2s, box-shadow .2s; }

.how .num { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.how h3 { margin: 0 0 6px; } .how p { margin: 0; color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
 .person h3 { margin: 6px 0 0; font-size: 1.05rem; } .person .rate { font-weight: 800; }
.dark-sec { background: #0b2e2b; color: #fff; }
.dark-sec h2 { color: #fff; } .dark-sec .lead { color: #bfe0db; }
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.trust-cards { display: grid; gap: 16px; }
.t-card { background: #12423d; border-radius: 18px; padding: 22px 24px; } .t-card .stars { color: #fff; } .t-card p { margin: 8px 0 0; color: #d4ece8; } .t-card small { color: #8fc5bd; }
.close { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: 18px; background: var(--ink); color: #fff; margin-top: 40px; }
.close p { margin: 0; font-size: 1.2rem; font-weight: 700; }
.foot { background: #fff; border-top: 1px solid var(--line); padding: 22px 0; font-size: .88rem; color: var(--muted); }

@media (max-width: 1000px) {
  .hero-grid, .trust, .split, .auth { grid-template-columns: 1fr; } .how { grid-template-columns: 1fr 1fr; } .side { position: static; }
  .filters-bar { grid-template-columns: 1fr 1fr; } .sec { min-height: 0; } .mock.offset { margin-left: 0; }
}
@media (max-width: 640px) {
  .how, .demo, .roles-pick, .money-bar { grid-template-columns: 1fr; } .job-grid { grid-template-columns: 1fr; }
  .nav .nav-link, .who span, .who em { display: none; } .search-big { flex-direction: column; } .list-row { grid-template-columns: 1fr; }
  .filters-bar { grid-template-columns: 1fr; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* status steppers: pending › submitted › approved / rejected */
.stepper { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 6px 0; font-size: .78rem; }
.stepper li { padding: 4px 10px; border-radius: 99px; background: #eef1f5; color: #7a8395; font-weight: 600; }
.stepper li + li::before { content: "›"; margin-right: 6px; color: #b3bac7; }
.stepper li.done { background: var(--good-bg); color: var(--good); }
.stepper li.now { background: var(--ink); color: #fff; } .stepper li.now.s-rejected { background: var(--bad); } .stepper li.now.s-approved, .stepper li.now.s-accepted, .stepper li.now.s-released { background: var(--good); }
.stepper li.now.s-submitted, .stepper li.now.s-held { background: #1d4ed8; }
.s-unpaid { background: #eef1f5; color: #3b4558; } .s-held { background: #e7effd; color: #1d4ed8; } .s-released { background: var(--good-bg); color: var(--good); }
.late { color: var(--bad); font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 18px; } .timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.timeline li.bad::before { background: var(--bad); } .timeline li.good::before { background: var(--good); }
.timeline time { color: var(--muted); font-size: .8rem; display: block; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 8px; } .crumbs a { color: var(--muted); }
.page-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 20px; }
.page-nav a { padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.page-nav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 14px; font-size: .85rem; font-weight: 700; color: var(--muted); } .wizard-steps .on { color: var(--brand); }
table.ms-table td, table.ms-table th { vertical-align: middle; }

/* "hidden" always wins over display rules like .form { display: grid } */
[hidden] { display: none !important; }

/* ================= landing page ================= */
.top.on-dark { background: #0b3b37; border-bottom-color: #12524c; }
.on-dark .logo, .on-dark .nav-link, .on-dark .who { color: #fff; } .on-dark .logo b { color: #5eead4; } .on-dark .logo i { background: #14b8a6; }
.on-dark .btn { background: #14b8a6; } .on-dark .who em { color: #a7d8d1; } .on-dark .wallet { background: #12524c; color: #d5f5f0; }
.l-hero { color: #fff; padding: 56px 0 72px; min-height: calc(100svh - 64px); display: grid; align-items: center;
  background: radial-gradient(900px 520px at 85% 30%, rgba(20, 184, 166, .35) 0%, transparent 60%), radial-gradient(700px 420px at 5% 100%, rgba(245, 158, 11, .18) 0%, transparent 60%), #0b3b37; }
.l-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.l-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 26px; }
.l-hero h1 em { font-style: normal; color: #5eead4; }
.eyebrow.light { color: #5eead4; }
.l-search { display: flex; background: #fff; border-radius: 14px; padding: 6px; max-width: 640px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.l-search input { border: 0; font-size: 1.05rem; padding: 14px 16px; } .l-search input:focus { outline: none; }
.l-search .btn { padding: 0 28px; border-radius: 10px; font-size: 1.02rem; }
.popular { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 0; font-size: .9rem; } .popular span { color: #a7d8d1; font-weight: 600; }
.popular a { color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .45); border-radius: 99px; padding: 6px 14px; font-weight: 600; transition: background .2s, color .2s; }

.l-facts { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 34px; } .l-facts b { display: block; font-size: 1.7rem; } .l-facts span { color: #a7d8d1; font-size: .85rem; }
.l-sec { padding: 84px 0; background: #fff; } .l-sec.alt { background: var(--bg); }
.l-head { margin-bottom: 26px; align-items: flex-end; } .l-sec h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.01em; line-height: 1.15; margin: 0; max-width: 28ch; }
.link-arrow { font-weight: 700; color: var(--brand); text-decoration: none; } 
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }

.cat-ico { font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-2); margin-bottom: 6px; }
.cat-tile b { font-size: 1.08rem; } .cat-count { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--brand); font-size: .9rem; }
.why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.why-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 20px; }
.why-list li { display: flex; gap: 16px; } .why-ico { font-size: 1.5rem; width: 48px; height: 48px; flex: none; display: grid; place-items: center; background: var(--brand-2); border-radius: 12px; }
.why-list b { font-size: 1.1rem; } .why-list p { margin: 4px 0 0; color: var(--muted); }
.flow-card { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.flow-steps { list-style: none; counter-reset: f; padding: 0; margin: 0; display: grid; gap: 4px; }
.flow-steps li { counter-increment: f; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px dashed #d4dae3; align-items: center; }
.flow-steps li:last-child { border-bottom: 0; }
.flow-steps li::before { content: counter(f); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.flow-steps span { color: var(--muted); font-size: .92rem; }
.l-close { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 48px clamp(28px, 4vw, 56px); border-radius: 24px; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, rgba(20, 184, 166, .45) 0%, transparent 70%), #0b3b37; }
.l-close h2 { color: #fff; } .l-close p { color: #cfe9e5; font-size: 1.1rem; margin: 10px 0 0; }
.btn.light { background: #fff; color: #0b3b37; } .btn.outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.l-foot { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h3 { font-size: .95rem; margin: 0 0 12px; } .foot-grid a:not(.logo) { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; } .foot-grid a:not(.logo):hover { color: var(--brand); }
.foot-note { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .l-hero-grid, .why { grid-template-columns: 1fr; } .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr 1fr; } .l-search { flex-direction: column; } .l-search .btn { padding: 12px; } .l-close .row .btn { flex: 1 1 100%; text-align: center; } .foot-grid { grid-template-columns: 1fr; } .l-sec { padding: 56px 0; } }

.l-hero .mock { color: var(--ink); } .l-hero .mock b { color: inherit; }
.l-hero .mock .stars b { color: var(--accent); }
.l-foot { text-align: left; }
.l-sec.dark-sec { background: #0b2e2b; color: #fff; }

/* hover-only extras (devices that can hover) */
@media (hover: hover) {
  .nav-link:hover { background-size: 100% 2px; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 118, 110, .25); filter: none; }
  .popular a:hover { background: #fff; color: #0b3b37; }
  .link-arrow:hover { text-decoration: underline; }
  .cat-tile:hover, .job-card:hover { border-color: #9fd8cf; }
}

/* ---------- display headline: heavy tight sans + a handwritten-style italic phrase, and a glass pill eyebrow ---------- */
.pill-eyebrow { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin: 0 0 22px; padding: 8px 18px; border-radius: 999px;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #99f6e4;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 3px rgba(94, 234, 212, .2); }
h1.display { font-weight: 800; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.display .script { font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", "Dancing Script", cursive; font-style: italic; font-weight: 400;
  letter-spacing: -.01em; color: #99f6e4; text-shadow: 0 0 28px rgba(94, 234, 212, .35); padding-right: .08em; }
.l-hero h1.display { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.auth .pitch h1.display { font-size: clamp(2.3rem, 3.8vw, 3.6rem); }

/* ---------- sign-in form ---------- */
.auth-title { margin: 18px 0 14px; font-size: 1.35rem; }
.fed { display: grid; gap: 10px; }
.fed-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-family: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer; transition: background-color .15s ease-out, border-color .15s ease-out; }
.fed-btn svg { width: 20px; height: 20px; flex: none; }
.fed-btn:focus-visible, .pw-toggle:focus-visible { outline: 3px solid rgba(15, 118, 110, .45); outline-offset: 2px; }
@media (hover: hover) { .fed-btn:hover { background: #f3f7f6; border-color: #cfdcda; } .pw-toggle:hover { background: #eef7f5; } }
.or-rule { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; color: var(--muted); font-size: .85rem; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#loginForm > label { margin-bottom: -6px; font-weight: 600; }
.pw-field { position: relative; }
.pw-field input { width: 100%; padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .eye-shut, .pw-toggle[aria-pressed="true"] .eye-open { display: none; }
.pw-toggle[aria-pressed="true"] .eye-shut { display: block; }

/* ---------- Inter (uploaded font, self-hosted in /fonts, SIL Open Font License) for every heading ---------- */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
h1, h2, h3, h4, .logo, .display, .auth-title, .kpi b, .l-facts b, .money-bar b { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-optical-sizing: auto; }
h1, h2 { letter-spacing: -.022em; }
/* smaller, calmer hero headline (fits in 3 lines instead of 5) */
.l-hero h1.display { font-size: clamp(2.1rem, 3.5vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 17ch; }
.auth .pitch h1.display { font-size: clamp(1.9rem, 2.9vw, 2.8rem); max-width: 16ch; }
/* the handwritten phrase stays, just a touch smaller so it sits evenly with Inter */
.display .script { font-size: .92em; }

/* ---------- Customer support page ---------- */
.sup-hero { color: #fff; padding: calc(76px + 48px) 0 64px; background: radial-gradient(900px 520px at 85% 20%, rgba(20, 184, 166, .35), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(245, 158, 11, .12), transparent 60%), #0b3b37; }
.sup-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.sup-hero h1.display { font-size: clamp(2rem, 3.4vw, 3.2rem); margin: 0 0 16px; max-width: 20ch; }
.sup-hero .lead { color: #cfe9e5; max-width: 56ch; margin: 0; }
.sup-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sup-facts li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #d4ece8; }
.sup-facts b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #14b8a6; color: #04201d; font-family: "Inter", sans-serif; }
.sup-facts strong { color: #fff; }
.sup-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: -28px; position: relative; }
.sup-form-panel { padding: clamp(20px, 3vw, 32px); }
.sup-side { position: sticky; top: 92px; }
.sup-side details { border-top: 1px solid var(--line); padding: 12px 0; } .sup-side details:first-of-type { border-top: 0; }
.sup-side summary { cursor: pointer; font-weight: 600; } .sup-side details p { margin: 8px 0 0; color: var(--muted); }
.topic-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.topic-pick legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.topic-pick label { position: relative; cursor: pointer; }
.topic-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic-pick span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; font-weight: 700; background: #fff; transition: border-color .15s ease-out, background-color .15s ease-out, box-shadow .2s ease; }
.topic-pick i { font-style: normal; font-size: 1.2rem; }
.topic-pick small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.topic-pick input:checked + span { border-color: var(--brand); background: var(--brand-2); box-shadow: 0 8px 20px -10px rgba(15, 118, 110, .5); }
.topic-pick input:focus-visible + span { outline: 3px solid #ffb703; outline-offset: 2px; }
@media (hover: hover) { .topic-pick label:hover span { border-color: #8fd3c8; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .two-col[hidden] { display: none; }
.sup-note { margin: 0; }
.sup-list { margin-top: 40px; margin-bottom: 40px; }
.sup-list .dash-tabs { margin: 0; }
.dash-tabs button { padding: 9px 16px; border-radius: 99px; color: var(--muted); font: inherit; font-weight: 600; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.dash-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ticket { margin-bottom: 14px; } .ticket h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.t-ref { font-family: "Inter", sans-serif; letter-spacing: .02em; }
.t-msg { white-space: pre-wrap; margin: 0 0 10px; }
.t-reply { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--brand-2); border-left: 4px solid var(--brand); } .t-reply p { margin: 6px 0 0; white-space: pre-wrap; }
.t-admin { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); } .t-admin label.inline { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.sup-open, .sup-in_progress, .sup-resolved { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.sup-open { background: #fff4e0; color: #b45309; } .sup-in_progress { background: #e7effd; color: #1d4ed8; } .sup-resolved { background: var(--good-bg); color: var(--good); }
.sup-steps { list-style: none; padding: 0; margin: 4px 0 0; display: flex; gap: 6px; flex-wrap: wrap; font-size: .8rem; font-weight: 700; }
.sup-steps li { padding: 4px 12px; border-radius: 99px; background: #eef1f5; color: #8a93a4; }
.sup-steps li.done { background: var(--good-bg); color: var(--good); } .sup-steps li.now { background: var(--ink); color: #fff; }
.sup-steps li + li::before { content: "› "; opacity: .6; }
@media (max-width: 1000px) { .sup-hero-grid, .sup-body { grid-template-columns: 1fr; } .sup-side { position: static; } .sup-body { margin-top: 24px; } }
@media (max-width: 640px) { .topic-pick, .two-col { grid-template-columns: 1fr 1fr; } }
.page-nav a.report-link { margin-left: auto; color: var(--bad); border-color: transparent; background: transparent; }
.display .script { white-space: nowrap; margin-right: .14em; }
/* category illustrations (custom SVGs in /img) */
.cat-ico:has(img) { width: 72px; height: 72px; background: none; border-radius: 20px; margin-bottom: 10px; }
.cat-ico img { width: 100%; height: 100%; display: block; border-radius: 20px; box-shadow: 0 10px 24px -12px rgba(16, 24, 40, .35); }

/* reject a proposal: a solid red button next to Hire */
.btn.reject { background: #dc2626; color: #fff; }
@media (hover: hover) { .btn.reject:hover { background: #b91c1c; filter: none; } }
.btn.reject:focus-visible { outline-color: #fca5a5; }
.status.s-accepted { background: var(--good-bg); color: var(--good); } .status.s-rejected { background: var(--bad-bg); color: var(--bad); } .status.s-withdrawn { background: #eef1f5; color: #6b7385; }

/* ---------- Simulated payments: checkout, receipt, payment record ---------- */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pay-card { padding: clamp(20px, 3vw, 32px); }
.pill-sim { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: #fff4e0; color: #b45309; font-weight: 700; font-size: .8rem; }
.pay-amount { font-family: "Inter", sans-serif; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.03em; margin: 0 0 12px; }
.pay-kv { margin-bottom: 16px; }
.pay-method { border: 0; padding: 0; margin: 0 0 16px; } .pay-method legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.pay-method label { display: block; cursor: pointer; } .pay-method input { position: absolute; opacity: 0; }
.pay-method span { display: grid; gap: 2px; padding: 12px 16px; border: 2px solid var(--brand); border-radius: 14px; background: var(--brand-2); }
.pay-method small { color: var(--muted); }
.pay-method input:focus-visible + span { outline: 3px solid #ffb703; outline-offset: 2px; }
.pay-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg); margin-bottom: 16px; }
.pay-sum span { color: var(--muted); } .pay-sum b { text-align: right; font-family: "Inter", sans-serif; } .pay-sum b.minus { color: var(--bad); }
.pay-sum span:nth-last-child(2), .pay-sum b:last-child { padding-top: 6px; border-top: 1px solid var(--line); }
.pay-actions { justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.pay-how { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 12px; }
.pay-done { max-width: 640px; margin: 0 auto; text-align: center; }
.pay-done .kv, .pay-done .receipt { text-align: left; }
.pay-tick { width: 64px; height: 64px; margin: 8px auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--good); box-shadow: 0 0 0 8px var(--good-bg); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; vertical-align: -3px; animation: spin .8s linear infinite; }
.receipt { margin: 16px 0; padding: 18px 20px; border: 1px dashed #b9c3d0; border-radius: 16px; background: #fff; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.receipt-note { margin: 10px 0 0; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; }
.receipt-dialog { width: min(520px, calc(100% - 32px)); }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pay-table td { vertical-align: top; }
.amt.plus { color: var(--good); font-weight: 700; } .amt.minus { color: var(--bad); font-weight: 700; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pay-tick, .spin { animation: none; } }
/* printing a receipt prints only the receipt */
@media print {
  body * { visibility: hidden !important; }
  .receipt, .receipt * { visibility: visible !important; }
  .receipt { position: absolute; left: 0; top: 0; width: 100%; border: 1px solid #999; }
  .orbs, .tabbar, .top { display: none !important; }
}
.pay-table .status, .receipt .status { text-transform: none; }
