/* DirectoryChief.com contractor portal. Palette and type from directorychief.com (brand.css/global.css). */
@font-face { font-family: "Schibsted Grotesk"; src: url("schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url("onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #16142E; --dk-2: #1D1A3C; --dk-3: #25224E; --acc: #4338CA; --acc-d: #352CA3; --acc-l: #8982DE;
  --warm: #F2B13C; --cool: #5FB3A1; --bg: #F7F4EC; --bg-3: #F4F0E5; --line: #E8DFC8; --muted: #676572; --white: #FEFDFC;
  --fd: "Schibsted Grotesk", system-ui, sans-serif; --fb: "Onest", system-ui, sans-serif; --fm: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--fb); }
a { color: var(--acc); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.demo { background: var(--warm); color: var(--ink); text-align: center; font: 600 13px/1.4 var(--fb); padding: 9px 16px; }

/* hero */
.hero { background: radial-gradient(1200px 400px at 85% -40%, rgba(67,56,202,.55), transparent 60%), linear-gradient(120deg, var(--ink) 0%, var(--dk-3) 100%); color: var(--white); padding: 22px 0 64px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 34px; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-word { font: 700 18px/1 var(--fd); letter-spacing: -.02em; white-space: nowrap; }
.lw-com { color: var(--warm); }
.private { font: 500 11px/1 var(--fm); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 12px; }
.eyebrow { font: 500 12px/1 var(--fm); letter-spacing: .16em; text-transform: uppercase; color: var(--warm); margin: 0 0 12px; }
.eyebrow .back { color: var(--warm); }
.hero h1 { font: 800 clamp(28px, 4vw, 42px)/1.08 var(--fd); letter-spacing: -.025em; margin: 0 0 12px; }
.sub { margin: 0; max-width: 680px; color: rgba(255,255,255,.78); font-size: 16px; }
.sub b { color: var(--white); font-weight: 600; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--warm); color: var(--ink); font: 700 17px/1 var(--fd); padding: 17px 30px; border-radius: 999px; box-shadow: 0 6px 20px rgba(242,177,60,.28); }
.btn:hover { text-decoration: none; background: #F5BE5A; }
.btn-dark { background: var(--ink); color: var(--white); box-shadow: none; }
.btn-dark:hover { background: var(--dk-3); }
.cta-note { color: rgba(255,255,255,.75); font-size: 14px; max-width: 420px; }
.cta-note b { color: var(--white); }

/* stats and cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -34px 0 26px; position: relative; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: 0 8px 24px rgba(22,20,46,.06); }
.stat .v { font: 800 30px/1.1 var(--fd); letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 6px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.card-head h2 { font: 700 20px/1.2 var(--fd); letter-spacing: -.015em; margin: 0; }
.pill { background: #ECEAFB; color: var(--acc); font: 600 13px/1 var(--fb); padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.week { font: 600 12px/1.4 var(--fm); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin: 26px 0 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.week b { font-weight: 600; white-space: nowrap; }
.week span { color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.empty { color: var(--muted); margin: 18px 0 4px; }

/* tables */
table { width: 100%; border-collapse: collapse; }
table { table-layout: fixed; }
th { text-align: left; font: 600 11.5px/1 var(--fm); letter-spacing: .1em; text-transform: uppercase; color: #5A5866; padding: 14px 10px 10px; border-bottom: 1px solid var(--line); }
.pad { padding-left: 28px; }
td { padding: 14px 10px; border-bottom: 1px solid #F0EADB; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
.mono { font-family: var(--fb); font-variant-numeric: tabular-nums; font-size: 14.5px; }
.dim { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.tag { display: inline-block; font: 600 12px/1 var(--fb); padding: 5px 9px; border-radius: 6px; background: var(--bg-3); color: var(--ink); }
.tag-call { background: #E6F3EF; color: #2E7D6B; }
.res { display: inline-block; font: 600 13px/1.2 var(--fb); padding: 5px 10px; border-radius: 999px; margin-right: 6px; }
.res-good { background: #E3F4EE; color: #23715F; }
.res-billed { background: #ECEAFB; color: var(--acc); }
.res-warn { background: #FDF1DA; color: #8A5A07; }
.res-muted { background: var(--bg-3); color: #55535F; }
.res-nb { background: transparent; color: #55535F; border: 1px dashed #CFC6AE; font-weight: 500; }
td.about { max-width: 360px; }
td.rec { white-space: nowrap; }
.player { display: flex; align-items: center; gap: 10px; max-width: 260px; }
.play { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: var(--warm); display: grid; place-items: center; cursor: pointer; transition: transform .12s, background .12s; }
.play:hover { background: var(--acc); transform: scale(1.05); }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play .i-pause, .player.on .play .i-play { display: none; } .player.on .play .i-pause { display: inline; }
.player.on .play { background: var(--acc); color: var(--white); }
.bar { flex: 1; min-width: 50px; height: 6px; border-radius: 999px; background: #E2D9C2; cursor: pointer; position: relative; }
.bar i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 999px; position: relative; }
.bar i::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(67,56,202,.15); }
.pt { flex: none; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-width: 34px; }
.dl { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.dl:hover { border-color: var(--acc); color: var(--acc); text-decoration: none; }
.dl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.go { text-align: right; white-space: nowrap; }
.link-strong { font-weight: 700; }
.st { display: inline-block; font: 600 13px/1.2 var(--fb); padding: 5px 10px; border-radius: 999px; }
.st-paid { background: #E3F4EE; color: #23715F; } .st-sched { background: #ECEAFB; color: var(--acc); } .st-due { background: #FDF1DA; color: #8A5A07; }

/* invoice page */
.notice { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px 22px 30px; margin: -34px 0 22px; position: relative; overflow: hidden; box-shadow: 0 8px 24px rgba(22,20,46,.06); }
.notice::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--acc); }
.notice p { margin: 0 0 8px; } .notice p:last-child { margin-bottom: 0; }
.notice .big { font: 600 19px/1.4 var(--fd); letter-spacing: -.01em; }
.notice-paid::before, .notice-nothing_due::before { background: var(--cool); }
.notice-pay_now::before, .notice-failed::before { background: var(--warm); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 8px; }
.facts div { background: var(--bg-3); border-radius: 12px; padding: 12px 14px; }
.facts dt { font: 600 11px/1 var(--fm); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; }
tfoot td { border-bottom: 0; padding-top: 10px; color: var(--muted); }
tfoot .total td { font: 700 18px/1.2 var(--fd); color: var(--ink); border-top: 2px solid var(--ink); padding-top: 14px; }
.pdf { margin: 16px 0 0; }

.foot { color: #55535F; font-size: 14px; padding: 22px 0 36px; border-top: 1px solid var(--line); margin-top: 10px; }
.foot p { margin: 0 0 12px; max-width: 760px; }
.stamp { font: 500 12px/1 var(--fm); letter-spacing: .06em; color: var(--muted); }

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .topbar .private { display: none; }
  table thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  td { border: 0; padding: 6px 0; text-align: left !important; }
  td[data-k]::before { content: attr(data-k); display: block; font: 600 10.5px/1 var(--fm); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  td.about { max-width: none; }
  .player { max-width: none; }
  colgroup { display: none; } table { table-layout: auto; } .pad { padding-left: 0; } .go { text-align: left; }
  tfoot { display: block; } tfoot tr { display: flex; justify-content: space-between; } tfoot td { width: auto; }
}
