/* Client intake questionnaire.
   Fonts: Archivo and Source Serif 4, SIL Open Font License 1.1. Licenses in fonts/.
   Graphics are original CSS and SVG. Demo form — nothing is sent. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/archivo-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/archivo-latin-wght-italic.woff2") format("woff2-variations"),
       url("fonts/archivo-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations"),
       url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
}

:root {
  --navy: #161e24;
  --navy-soft: #1e2a32;
  --ink: #1a2228;
  --muted: #5a656c;
  --cream: #f4eee4;
  --paper: #f7f3ec;
  --white: #fffcf7;
  --rust: #b44a1a;
  --rust-deep: #8c3610;
  --tan: #c4a574;
  --tan-deep: #8a6e45;
  --line: #d9cfc0;
  --ribbon: #6e1c12;
  --ok: #23401c;
  --ok-bg: #eef6ea;
  --ok-line: #b7d3ae;
  --warn-bg: #f8efe4;
  --warn-line: #e0c7a4;
  --radius: 4px;
  --shadow: 0 12px 32px rgba(22, 30, 36, 0.08);
  --header-offset: 7.4rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .brand, .btn, .kicker, nav, label, .step-label, .pkg-name, .pkg-price {
  font-family: "Archivo", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}

p { margin: 0 0 1rem; }
a { color: var(--rust-deep); }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 80;
}
.skip:focus { left: 0.6rem; top: 0.6rem; }

.demo-ribbon {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ribbon);
  color: #fff8ef;
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

.wrap { width: min(1080px, calc(100% - 2.2rem)); margin: 0 auto; }
.wrap-narrow { width: min(820px, calc(100% - 2.2rem)); margin: 0 auto; }

.site-header {
  background: var(--navy);
  color: var(--cream);
  position: sticky;
  top: 1.85rem;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.4rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand svg { width: 34px; height: 34px; flex: none; color: var(--tan); }
.brand small {
  display: block;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--tan);
}
.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.save-state {
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
  background: transparent;
  color: inherit;
}
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .choice:focus-within, .pkg:focus-within, .industry-card:focus-visible, .drop:focus-within {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-deep); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-line { background: transparent; color: var(--cream); border: 1px solid rgba(244, 238, 228, 0.35); }
.btn-line.ink { color: var(--ink); border-color: var(--line); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

main { flex: 1; padding: 2.2rem 0 6.5rem; }

.kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.55rem;
}

.picker-hero h1, .step-head h1, .step-head h2, .done h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.7rem;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.8rem 0 0;
}
.industry-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 96px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.industry-card:hover { border-color: var(--tan-deep); }
.industry-card h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}
.industry-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.industry-card .icon {
  width: 52px;
  height: 52px;
  color: var(--rust);
  background: var(--cream);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}
.industry-card .icon svg { width: 30px; height: 30px; }
@media (min-width: 801px) {
  .industry-card:last-child {
    grid-column: 1 / -1;
    max-width: calc((100% - 1rem) / 2);
    justify-self: center;
    width: 100%;
  }
}

.progress-wrap {
  position: sticky;
  top: var(--header-offset);
  z-index: 40;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin: -2.2rem 0 1.6rem;
  padding: 0.75rem 0 0.7rem;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.45rem;
}
.step-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.progress-track {
  height: 6px;
  background: #e4d9c8;
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--rust);
  border-radius: 99px;
  transition: width 0.25s ease;
}

.step-panel { animation: rise 0.28s ease; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: grid; gap: 0.35rem; align-content: start; }
.field.full, .field[data-width="full"] { grid-column: 1 / -1; }
.field[data-width="half"] { grid-column: span 1; }

label, .legend {
  font-family: "Archivo", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.req {
  color: var(--rust);
  font-weight: 800;
  margin-left: 0.15rem;
}
.hint, .error { text-transform: none; letter-spacing: 0; font-family: "Source Serif 4", Georgia, serif; font-weight: 400; }
.hint { color: var(--muted); font-size: 0.92rem; margin: 0; }
.error { color: var(--ribbon); font-size: 0.9rem; margin: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], select, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid #d3c8b8;
  background: #fff;
  min-height: 44px;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
}
textarea { min-height: 7rem; resize: vertical; }
.field.invalid input, .field.invalid textarea, .field.invalid select {
  border-color: var(--ribbon);
  background: #fff6f4;
}

.choices { display: grid; gap: 0.45rem; }
.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.choice:hover { border-color: var(--tan-deep); }
.choice:has(input:checked) {
  border-color: var(--navy);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--navy);
}
.choice input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }

.packages { display: grid; gap: 0.7rem; }
.pkg {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  cursor: pointer;
}
.pkg:hover { border-color: var(--tan-deep); }
.pkg:has(input:checked) {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.pkg input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.pkg-name { font-size: 1.05rem; margin: 0 0 0.25rem; letter-spacing: 0; text-transform: none; }
.pkg-price {
  font-size: 1.15rem;
  color: var(--rust-deep);
  letter-spacing: 0;
  white-space: nowrap;
}
.pkg {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-family: "Source Serif 4", Georgia, serif;
}
.pkg p { margin: 0; color: var(--muted); font-size: 0.98rem; text-transform: none; }

.colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.color-slot {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
  display: grid;
  gap: 0.4rem;
}
.color-slot span {
  font-family: "Archivo", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.color-row { display: flex; gap: 0.4rem; align-items: center; }
.color-row input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.color-row input[type="text"] { min-height: 44px; }

.drop {
  border: 1.5px dashed #c4b6a2;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}
.drop.drag { background: var(--cream); border-color: var(--rust); }
.drop p { margin: 0; color: var(--muted); }
.drop input[type="file"] { width: 100%; }
.file-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.3rem; width: 100%; }
.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  font-size: 0.92rem;
}
.file-list button {
  border: 0;
  background: none;
  color: var(--rust-deep);
  cursor: pointer;
  min-height: 32px;
  font-family: "Archivo", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note {
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ok);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin: 0 0 1.2rem;
}
.note.warn { background: var(--warn-bg); border-color: var(--warn-line); color: #5a3a16; }

.nav-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 0.7rem 0 calc(0.7rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(22, 30, 36, 0.06);
}
.nav-inner { display: flex; justify-content: space-between; gap: 0.7rem; align-items: center; }
.nav-inner .btn { min-width: 8.5rem; }

.review { display: grid; gap: 1rem; }
.review-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 0.4rem;
}
.review-block header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.review-block h3 { margin: 0; font-size: 1.1rem; }
.review-block .edit {
  font-family: "Archivo", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust-deep);
  background: none;
  border: 0;
  cursor: pointer;
  min-height: 44px;
}
.review-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.6rem 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.review-row dt {
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.review-row dd { margin: 0; overflow-wrap: anywhere; }
.review-row .empty { color: #9aa199; font-style: italic; }
.review-row.missing dd { color: var(--ribbon); }

.done {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: left;
}
.done .note { margin-top: 1rem; }

footer {
  background: #10161a;
  color: #c6bbae;
  padding: 1.6rem 0 5.8rem;
  font-size: 0.9rem;
}
footer p { margin: 0; color: #8e857a; max-width: 70ch; }

@media (max-width: 800px) {
  .industry-grid, .fields, .colors, .review-row, .pkg { grid-template-columns: 1fr; }
  .field[data-width="half"] { grid-column: 1 / -1; }
  .pkg-price { justify-self: start; }
  main { padding-bottom: 7.2rem; }
  .header-inner { min-height: 4rem; }
  .brand small { max-width: 12rem; }
  .nav-inner .btn { flex: 1; min-width: 0; }
}

@media (max-width: 520px) {
  .demo-ribbon { letter-spacing: 0.06em; font-size: 0.64rem; }
  .progress-wrap { top: 7.1rem; }
}

@media (max-width: 800px) {
  .header-actions .save-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-actions .btn { padding: 0.65rem 0.7rem; font-size: 0.72rem; }
}

@media (max-width: 800px) {
  .brand { font-size: 0.78rem; max-width: 11.5rem; }
  .header-actions .btn:first-of-type { display: none; } /* Download is also on the done page */
}

button[hidden], .btn[hidden] { display: none !important; }
body.is-picker .header-actions { display: none !important; }
@media (max-width: 800px) {
  .brand { max-width: 14.5rem; }
}

.field, .step-head, .review-block, .note {
  scroll-margin-top: 8.75rem;
}
