/* ghog.ai client portal (clients.ghog.ai). Brand tokens from brand/tokens/ghog.css
   (guidelines v1.2: paper, cobalt, deep brown; IBM Plex; pill buttons; framed
   panels with soft depth). Light only: clients read it on paper. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #FBFAF6; --deep-brown: #2A2522; --cobalt: #1F55D0; --amber: #F0AE3C; --mist: #E2E5F0; --terracotta: #A3392E; --clay: #5C4B44;
  --font-sans: 'IBM Plex Sans', Arial, sans-serif; --font-mono: 'IBM Plex Mono', monospace;
  --frame: clamp(8px, 1.1vw, 14px); --radius-sm: 14px; --radius-card: 24px; --radius-frame: clamp(20px, 2.6vw, 36px);
  --hair: rgba(42, 37, 34, .09);
  --sky-glow-amber: rgba(240, 174, 60, .22); --sky-glow-paper: rgba(251, 250, 246, .10);
  --shadow-sm: 0 1px 2px rgba(42, 37, 34, .05), 0 4px 12px -4px rgba(42, 37, 34, .07);
  --shadow-md: 0 1px 2px rgba(42, 37, 34, .05), 0 14px 32px -14px rgba(42, 37, 34, .22);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--paper); color: var(--deep-brown); font-family: var(--font-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--cobalt); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; }
h2 { font-size: 28px; }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0 0 .75rem; }
.small { font-size: 14px; }
.muted { color: var(--clay); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Framed cobalt header panel with the rising sun */
.hero { margin: var(--frame); background: var(--cobalt); color: #fff; border-radius: var(--radius-frame); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 92% 100%, var(--sky-glow-amber), transparent 60%), radial-gradient(40% 50% at 0% 0%, var(--sky-glow-paper), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: 6%; bottom: -90px; width: 180px; height: 180px; border-radius: 50%; background: var(--amber); }
.hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 22px 24px 30px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar img { height: 34px; display: block; }
.who { font-size: 14px; color: rgba(255, 255, 255, .85); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.who button { background: transparent; border: 1px solid rgba(255, 255, 255, .55); color: #fff; font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.who button:hover { background: rgba(255, 255, 255, .12); }
.hero h1 { margin-top: 30px; }
.hero .lead { margin: 10px 0 0; max-width: 56ch; color: rgba(255, 255, 255, .92); font-size: 18px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.nav a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); }
.nav a:hover { background: rgba(255, 255, 255, .12); }
.nav a.is-current { background: var(--paper); color: var(--deep-brown); border-color: var(--paper); }

main { max-width: 1080px; margin: 0 auto; padding: 8px 24px 56px; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 6px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius-card); padding: 22px 24px; box-shadow: var(--shadow-sm); }
a.card { color: inherit; text-decoration: none; display: block; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card .big { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 4px; }
.card .big.mono { font-weight: 500; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; }
.row .meta { color: var(--clay); font-size: 14px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 11px; border-radius: 999px; background: var(--mist); color: var(--deep-brown); white-space: nowrap; }
.pill.open { background: var(--mist); }
.pill.overdue, .pill.declined, .pill.expired { background: var(--terracotta); color: #fff; }
.pill.paid, .pill.accepted, .pill.done { background: var(--cobalt); color: #fff; }
.pill.sent, .pill.active { background: var(--deep-brown); color: #fff; }
.btn { display: inline-block; background: var(--cobalt); color: #fff; font: inherit; font-weight: 500; font-size: 15px; padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: transparent; color: var(--deep-brown); border: 1px solid var(--deep-brown); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: progress; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
/* Spacing classes: the CSP allows no style attributes, so markup uses these. */
.space-s { margin-top: 12px; } .space-m { margin-top: 16px; } .space-l { margin-top: 20px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--clay); padding: 0 8px 10px; border-bottom: 1px solid var(--deep-brown); }
td { padding: 12px 8px; border-bottom: 1px solid var(--hair); vertical-align: top; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
.n { text-align: right; }
.table-wrap { overflow-x: auto; }
.empty { color: var(--clay); padding: 8px 0; }
.notice { background: var(--mist); border-radius: var(--radius-sm); padding: 14px 18px; }
.notice.bad { background: rgba(163, 57, 46, .1); color: var(--terracotta); }
form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--clay); }
input[type=text], input[type=email], textarea { font: inherit; font-size: 16px; color: var(--deep-brown); background: #fff; border: 1px solid rgba(42, 37, 34, .3); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: transparent; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--deep-brown); font-size: 16px; }
label.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--cobalt); }

/* proposal detail */
.doc { max-width: 760px; }
.doc .summary { font-size: 19px; line-height: 1.5; }
.doc-section { margin-top: 28px; display: grid; grid-template-columns: 44px 1fr; gap: 8px; }
.doc-section .num { font-family: var(--font-mono); color: var(--cobalt); font-size: 15px; padding-top: 4px; }
.doc-section p { white-space: pre-line; }
.totals { max-width: 360px; margin-left: auto; }
.totals .row { grid-template-columns: 1fr auto; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.totals .total { background: var(--deep-brown); color: #fff; border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 10px; border: 0; }
.totals .total .mono { color: var(--amber); font-size: 22px; }
.terms { white-space: pre-line; font-size: 15px; color: var(--clay); }
.decide { margin-top: 32px; }
.decide .card { border: 2px solid var(--cobalt); }

/* projects */
.milestones { list-style: none; margin: 0; padding: 0; }
.milestones li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.milestones .tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--clay); display: inline-block; position: relative; top: 3px; }
.milestones .is-done .tick { background: var(--cobalt); border-color: var(--cobalt); }
.milestones .is-done .tick::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.milestones .is-done span { color: var(--clay); }
.updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.update { background: var(--paper); border-radius: var(--radius-sm); padding: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.update.from-client { background: #fff; border: 1px solid var(--hair); }
.update .by { font-size: 13px; color: var(--clay); margin-bottom: 4px; white-space: normal; }
.progress { height: 6px; background: var(--mist); border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.progress b { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; }

footer { max-width: 1080px; margin: 0 auto; padding: 24px; color: var(--clay); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--hair); }
footer .mono { font-size: 13px; }

/* sign-in page */
.signin { max-width: 440px; margin: 48px auto; }
.signin .card { padding: 32px; }
.signin h1 { font-size: 28px; }

.reveal { animation: rise .6s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero::after { width: 120px; height: 120px; bottom: -60px; }
  .doc-section { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}
