:root {
  --ink: #1F2A30;
  --pine: #0E1A1C;
  --muted: #5A6A70;
  --hope: #2F6F6A;
  --hope-deep: #245854;
  --cloud: #F7F5F2;
  --sand: #E7E0D5;
  --mist: #D4E4E2;
  --ivory: #FBF8F3;
  --amber: #C9852A;
  --coral: #C45C4A;
  --display: "Source Serif 4", "Source Serif Pro", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", "Source Sans 3", "Noto Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 10px;
  --line: rgba(31, 42, 48, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--mist), transparent 55%),
    linear-gradient(165deg, var(--cloud), var(--sand) 70%);
}
a { color: var(--hope-deep); }
.shell { max-width: 920px; margin: 0 auto; padding: 1.25rem 1.1rem 3rem; }
.brand {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--pine);
}
.tagline { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.98rem; }
.hero {
  padding: 2.2rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.trust {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin-top: 1rem; color: var(--muted); font-size: 0.88rem;
}
.trust span::before { content: "• "; color: var(--hope); }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.4rem; margin: 1rem 0 1.4rem;
}
.step {
  text-align: center; font-size: 0.72rem; color: var(--muted);
  padding: 0.45rem 0.2rem; border-bottom: 2px solid var(--line);
  text-decoration: none;
}
a.step:hover { color: var(--hope-deep); }
.step.active { color: var(--hope-deep); border-color: var(--hope); font-weight: 600; }
.step.done { border-color: var(--hope); color: var(--ink); }
.panel {
  background: color-mix(in srgb, var(--ivory) 92%, white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
}
.panel h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.panel p { color: var(--muted); line-height: 1.5; margin: 0.4rem 0; }
label { display: block; font-size: 0.86rem; margin: 0.75rem 0 0.3rem; color: var(--pine); }
input, select, textarea {
  width: 100%; padding: 0.7rem 0.75rem; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink);
}
/* Native toggles must not inherit text-field width/padding (breaks follow-opt rows).
   max-width: 1.25rem added as belt-and-suspenders against iOS Safari resolving 'auto' to 100%. */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  max-width: 1.25rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.success-panel {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--hope) 40%, var(--line));
  background: color-mix(in srgb, var(--mist) 55%, var(--ivory));
}
.success-panel h3 { margin: 0 0 0.35rem; color: var(--pine); font-size: 1.05rem; }
.success-panel p { margin: 0.25rem 0; color: var(--ink); }
.uploads-heading { margin: 1rem 0 0.4rem; font-size: 1rem; color: var(--pine); }
.uploads-list { list-style: none; margin: 0; padding: 0; }
.uploads-list li {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: center;
  padding: 0.65rem 0.75rem; margin: 0.35rem 0;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.upload-name { overflow-wrap: anywhere; color: var(--ink); }
.upload-state { color: var(--hope-deep); font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.files-note { color: var(--muted); margin-top: 0.8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.btn {
  appearance: none; border: none; cursor: pointer;
  border-radius: 8px; padding: 0.75rem 1.15rem; font: inherit; font-weight: 600;
}
.btn-primary { background: linear-gradient(180deg, var(--hope), var(--hope-deep)); color: #fff; }
.btn-secondary { background: transparent; border: 2px solid var(--hope); color: var(--hope-deep); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.banner-draft {
  background: color-mix(in srgb, var(--coral) 18%, var(--ivory));
  border: 1px solid var(--coral); color: var(--pine);
  padding: 0.65rem 0.8rem; border-radius: 8px; font-size: 0.86rem; margin: 0.8rem 0;
}
.flag {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  margin-top: 1.2rem; padding-top: 0.8rem; border-top: 1px solid var(--line);
}
.progress {
  height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 0.8rem 0;
}
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--hope), var(--hope-deep)); width: 0%; }
.status-milestones {
  list-style: none; padding: 0; margin: 0.85rem 0 0.4rem;
}
.status-milestones li {
  padding: 0.28rem 0 0.28rem 1.4rem;
  position: relative;
  color: var(--muted);
  line-height: 1.4;
}
.status-milestones li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--sand);
  border: 1px solid var(--line);
}
.status-milestones li[data-state="done"] { color: var(--ink); }
.status-milestones li[data-state="done"]::before {
  background: var(--hope);
  border-color: var(--hope-deep);
}
.status-milestones li[data-state="current"] { color: var(--pine); font-weight: 600; }
.status-milestones li[data-state="current"]::before {
  background: var(--hope-deep);
  border-color: var(--hope-deep);
}
.footer-note { margin-top: 2rem; font-size: 0.82rem; color: var(--muted); }
.intake-explainer { margin-bottom: 1.25rem; }
.intake-explainer h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 1rem 0 0.35rem;
  color: var(--pine);
}
.intake-steps {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}
.intake-steps li { margin: 0.25rem 0; }
.intake-not-publish { color: var(--ink); }
@media (max-width: 640px) {
  .shell { padding: 1rem 0.85rem 2.5rem; }
  .btn { width: 100%; text-align: center; }
}
