/* Customer-facing styles. Brand colours arrive as --brand/--ink/--surface
   from the template, so this file never knows anything about a brand. */

:root {
  --brand: #0B6E6A;
  --ink: #0E1618;
  --surface: #161D25;
  --text: #F2F5F6;
  --muted: #9FB0B6;
  --line: rgba(255, 255, 255, .12);
  --ok: #6ED08A;
  --warn: #E7B15A;
  --error: #F58C82;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="light"] {
  --text: #12191C;
  --muted: #5C6B71;
  --line: rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }

/* .card and .panel set display, which otherwise beats the [hidden] default. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 72px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100vh;
}

.brandbar { display: flex; align-items: center; gap: 14px; padding: 6px 0 2px; }
.logo { max-height: 76px; max-width: min(300px, 70vw); width: auto; height: auto; }
.wordmark {
  font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--text);
}

main { display: flex; flex-direction: column; gap: 20px; }

h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 19px; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.intro { color: var(--muted); }
.hint { color: var(--muted); font-size: 14.5px; }
.optional { color: var(--muted); font-weight: 400; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.factlist { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; }
.factlist div { display: flex; flex-direction: column; gap: 1px; }
.factlist dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.factlist dd { margin: 0; font-size: 17px; font-weight: 600; }
.factlist.big dd { font-size: 21px; }

/* ---- form fields ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14.5px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  width: 100%;
  min-height: 48px;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible,
.dropzone:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
::placeholder { color: var(--muted); }

/* ---- buttons ---- */
.btn {
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 13px 20px;
  min-height: 48px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary { background: var(--brand); color: #0b0b0b; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.btn-quiet {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn-big { width: 100%; font-size: 18px; padding: 16px 22px; min-height: 56px; }

/* ---- drop zone ---- */
.dropcard { padding: 8px; }
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 34px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone.is-over { border-color: var(--brand); background: rgba(255, 255, 255, .04); }
.dropicon { width: 34px; height: 34px; color: var(--brand); }
.dropbig { font-size: 19px; font-weight: 600; }
.dropsmall { color: var(--muted); font-size: 14px; }

/* ---- queue ---- */
.queue-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.overall { color: var(--muted); font-size: 14.5px; }
.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.queue li { display: flex; flex-direction: column; gap: 7px; }
.qtop { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.qname { font-weight: 600; word-break: break-word; }
.qstate { font-size: 14px; color: var(--muted); white-space: nowrap; }
.qstate.is-done { color: var(--ok); }
.qstate.is-error { color: var(--error); }
.bar {
  height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden;
}
.bar span { display: block; height: 100%; background: var(--brand); width: 0; transition: width .25s ease; }
.progress-line { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-overall { display: flex; flex-direction: column; gap: 6px; }

.actions { display: flex; flex-direction: column; gap: 8px; }

/* ---- client portal ---- */
.accounthead {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
}
.rowlink { text-decoration: none; color: inherit; gap: 6px; }
.rowlink:hover { border-color: var(--brand); }
.rowtop { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

.banner { border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.banner-error { background: rgba(245, 140, 130, .14); border: 1px solid rgba(245, 140, 130, .4); }

.done { align-items: flex-start; }
.tick { color: var(--ok); margin: 0; }

.foot { margin-top: auto; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.foot a { color: var(--text); }
.credit { opacity: .7; }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (min-width: 620px) {
  .btn-big { width: auto; align-self: flex-start; }
}
