/* SGM Agency skin. From the Claude Design handoff (design/agency), verbatim.
   Gilroy is SGM's brand font, served from our own files (Freddie, 2026-10-24),
   converted to woff2 and trimmed to Latin characters (about 15 KB each). */
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Tokens: light (default) ---------- */
:root {
  --bg: #f3f3f1;          /* page (Paper) */
  --surface: #ffffff;     /* cards */
  --field: #ffffff;       /* inputs */
  --fg: #0b0c0c;          /* ink */
  --fg-muted: #4a4f4f;    /* help text */
  --fg-subtle: #6e7373;   /* counts, optional pill */
  --border: #e3e4e4;      /* card + row hairlines */
  --border-strong: #c4c6c6; /* field borders */
  --action: #0b0c0c;      /* the one action color */
  --action-hover: #2b2e2e;
  --on-action: #ffffff;
  --focus: #006643;
  --track: #e3e4e4;       /* progress tracks */
  --success: #006643;     /* status only */
  --success-soft: #e8f2ec;
  --danger: #b3361a;      /* status only */

  --font: "Gilroy", "Helvetica Neue", Arial, sans-serif;
  --fs-title: 34px;  --lh-title: 1.08;  /* h1, 800, -0.015em */
  --fs-lead: 18px;   --lh-lead: 1.55;   /* intro line, 300 */
  --fs-card: 20px;   --lh-card: 1.25;   /* card title, 700 */
  --fs-body: 16px;   --lh-body: 1.55;   /* body, labels, buttons */
  --fs-small: 15px;                      /* word count, Remove */
  --fs-tag: 12px;                        /* pills + eyebrow, 700, caps */

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-10: 64px;
  --radius: 4px; --radius-pill: 999px;
  --tap: 48px; --control: 52px;
  --column: 680px;
  color-scheme: light;
}

/* Always light, both brands: Freddie, 2026-10-24, the dark versions looked "really
   off-brand from the website with the blacks". The websites are light. */

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--fs-body)/var(--lh-body) var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.page { max-width: var(--column); margin: 0 auto; padding: 28px 16px 64px; display: flex; flex-direction: column; gap: var(--space-3); }

/* Page header */
.logo { display: block; height: 34px; width: auto; margin: 0 4px 20px; }
.header { display: flex; flex-direction: column; gap: var(--space-3); padding: 0 4px 24px; }
.header h1 { margin: 0; font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.header .lead { margin: 0; font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 300; color: var(--fg-muted); }

/* Progress line */
.progress { display: flex; flex-direction: column; gap: 10px; padding-top: var(--space-3); }
.progress__label { margin: 0; font-weight: 700; font-size: 17px; }
.progress--done .progress__label { color: var(--success); }
.progress__segments { display: flex; gap: 4px; }
.progress__segment { flex: 1; height: 6px; border-radius: 1px; background: var(--track); }
.progress__segment.is-done { background: var(--success); }

/* Section card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.card__title { margin: 0; font-size: var(--fs-card); line-height: var(--lh-card); font-weight: 700; padding-top: 2px; }
.card__help { margin: 6px 0 0; font-weight: 300; color: var(--fg-muted); }
.card__summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: -8px; color: var(--fg-muted); font-weight: 500; }

/* Status pills */
.status { flex: none; font-size: var(--fs-tag); line-height: 1; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.status--needed { border: 1px solid var(--fg); color: var(--fg); }
.status--done { padding: 8px 11px; background: var(--success-soft); color: var(--success); }
.status--optional { border: 1px dashed var(--border-strong); color: var(--fg-subtle); }

/* Fields */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label { font-weight: 700; }
.input, .textarea { width: 100%; font: 400 var(--fs-body)/var(--lh-body) var(--font); color: var(--fg); background: var(--field); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.input { min-height: var(--control); padding: 0 14px; }
.textarea { padding: 14px; resize: vertical; min-height: 220px; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.hint { margin: 0; color: var(--fg-subtle); font-size: var(--fs-small); }

/* Buttons */
.actions { display: flex; align-items: center; gap: var(--space-4); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control); padding: 0 28px; border: 1.5px solid var(--action); border-radius: var(--radius); background: var(--action); color: var(--on-action); font: 700 var(--fs-body) var(--font); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button--outline { background: transparent; color: var(--fg); }
.button--outline:hover { background: var(--action); color: var(--on-action); }
.link { display: inline-flex; align-items: center; min-height: var(--tap); background: none; border: 0; padding: 0 4px; font: 500 var(--fs-body) var(--font); color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); cursor: pointer; }
.link--small { font-size: var(--fs-small); color: var(--fg-muted); }

/* File picker: real <input type=file> stretched over a button-styled label */
.picker { position: relative; }
.picker input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.picker:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }

/* "What we need" panel */
.needs { background: var(--bg); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: var(--space-2); }
.needs__title { margin: 0; font-size: var(--fs-tag); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.needs ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* File rows */
.files { list-style: none; margin: 0; padding: 0; }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.file__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 12px; }
.file__name { margin: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__status { margin: 0; font-weight: 700; }
.file--uploading .file__status { color: var(--fg-muted); font-weight: 500; }
.file--accepted .file__status, .file__note { color: var(--success); }
.file__note { margin: 0; font-weight: 500; }
.file--refused .file__status { color: var(--danger); }
.file__reason { margin: 0; font-weight: 300; color: var(--fg); }

/* Progress bar */
.bar { height: 4px; margin-top: 6px; background: var(--track); border-radius: 2px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--fg); transition: width 200ms; }

/* Messages */
.msg-success { color: var(--success); font-weight: 700; }
.msg-error { margin: 0; color: var(--danger); font-weight: 500; }
