/* Oikos United intake portal — brand-matched to the marketing site.
   navy ground #0D1B2A, gold #B0894F / bright #C9A227, generous whitespace,
   mobile-first, one calm column. */
:root {
  --navy: #0D1B2A;
  --navy-2: #13243a;
  --navy-3: #1b3149;
  --gold: #B0894F;
  --gold-bright: #C9A227;
  --ink: #eaf0f6;
  --muted: #9fb0c2;
  --line: rgba(176, 137, 79, 0.28);
  --ok: #3bd684;
  --danger: #ff6b6b;
  --radius: 14px;
  --maxw: 640px;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(201,162,39,0.10), transparent 60%),
    var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-head, .site-foot {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand { font-weight: 700; letter-spacing: 0.02em; color: var(--gold); }
.site-foot { margin-top: auto; color: var(--muted); font-size: 13px; }
.site-foot .dot { color: var(--gold); }

.app { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 48px; flex: 1; }
.loading { color: var(--muted); padding: 40px 0; }

/* Progress */
.progress { display: flex; gap: 6px; margin: 8px 0 28px; }
.progress span { flex: 1; height: 4px; border-radius: 999px; background: var(--navy-3); }
.progress span.done { background: var(--gold); }
.progress span.active { background: var(--gold-bright); }

h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
h2 { font-size: 21px; margin: 0 0 6px; }
.lede { color: var(--muted); font-size: 16px; margin: 0 0 26px; }
.hint { color: var(--muted); font-size: 14px; }
/* Example/helper text under a field: italic + lighter so it reads as a quiet
   aside tied to the field ABOVE it, not a label for the next box. */
.field-hint { display: block; font-style: italic; color: var(--muted); opacity: 0.8; font-size: 12.5px; margin-top: 5px; line-height: 1.4; }

/* Cards (type picker) */
.cards { display: grid; gap: 12px; }
.card {
  text-align: left; background: var(--navy-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; color: var(--ink); cursor: pointer;
  transition: border-color .15s, transform .05s;
}
.card:hover { border-color: var(--gold); }
.card:active { transform: scale(0.995); }
.card.sel { border-color: var(--gold-bright); box-shadow: 0 0 0 2px rgba(201,162,39,0.25); }
.card-title { font-weight: 600; font-size: 17px; }
.card-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* Fields */
.field { display: block; margin: 0 0 26px; }
.field > span { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; background: var(--navy); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: inherit; font-size: 16px; /* 16px avoids iOS zoom */
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold-bright); }
textarea { resize: vertical; min-height: 90px; }
.section-title { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin: 26px 0 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* File dropzone */
.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 26px;
  text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone.over { border-color: var(--gold-bright); background: var(--navy-2); }
.files { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 12px; background: var(--navy-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.file-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--navy-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { color: var(--muted); font-size: 12px; }
.file-bar { height: 3px; background: var(--navy-3); border-radius: 999px; margin-top: 4px; overflow: hidden; }
.file-bar > i { display: block; height: 100%; background: var(--gold-bright); width: 0; transition: width .2s; }
.file-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.file-err { color: var(--danger); font-size: 12px; }

/* Review */
.review dl { margin: 0; }
.review .r-sec { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin: 18px 0 6px; }
.review .r-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 4px 0; font-size: 15px; }
.review .r-row dt { color: var(--muted); }
.review .r-row dd { margin: 0; }

/* Buttons / nav */
.nav { display: flex; gap: 12px; margin-top: 30px; }
.btn { font: inherit; font-size: 16px; border-radius: 10px; padding: 13px 20px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--gold); color: var(--navy); font-weight: 600; }
.btn-primary:hover { background: var(--gold-bright); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.grow { flex: 1; }

.center { text-align: center; padding: 30px 0; }
.big-emoji { font-size: 44px; }
.error-box { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.4); color: #ffd0d0; border-radius: 10px; padding: 12px 14px; margin: 16px 0; font-size: 14px; }
#turnstile { margin: 18px 0; }
