/* The Digital Organizer client forms — same brand tokens as quiz.thedigitalorganizer.com
   (Quiz/worker/public/styles.css): Matter Light type on cream #FAF5E8, ink
   #232222, 1px #161A1D borders, 12px radii, outline buttons with a plus.
   Trimmed to what a short intake form needs — no results/score/cost-model
   styles, this form has no results page. */

@font-face {
  font-family: "Matter";
  src: url("/fonts/Matter-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Matter";
  src: url("/fonts/Matter-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Matter";
  src: url("/fonts/Matter-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

:root {
  --cream: #FAF5E8;
  --ink: #232222;
  --border-ink: #161A1D;
  --ink-soft: rgba(35, 34, 34, 0.72);
  --line: rgba(22, 26, 29, 0.25);
  --line-soft: rgba(22, 26, 29, 0.14);
  --card: #FFFFFF;
  --bad: #B4472E;
  --radius: 12px;
  --max-width: 680px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Matter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 8px;
  text-align: center;
}
.site-header .brand { display: inline-block; }
.site-header .brand img { width: 72px; height: 72px; display: block; margin: 0 auto; }

.site-footer {
  max-width: var(--max-width);
  width: 100%;
  margin: auto auto 0;
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}
.site-footer a { color: var(--ink-soft); }

main {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

h1 {
  font-weight: 300;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.3px;
  margin: 0 0 22px;
}
h2 {
  font-weight: 300;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
p.lead { font-size: 19px; color: var(--ink); }
strong { font-weight: 500; }

.intro-center { text-align: center; padding-top: 6vh; }
.intro-center .lead { max-width: 540px; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  padding: 18px 26px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn.solid { background: var(--ink); color: var(--cream); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: default; }

.muted { color: var(--ink-soft); font-size: 15px; }

/* Progress */
.progress {
  height: 2px;
  background: var(--line-soft);
  margin: 14px 0 40px;
  overflow: hidden;
}
.progress > div { height: 100%; background: var(--border-ink); transition: width 0.25s ease; }

/* Question */
.options { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
.option {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 20px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.4;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.14s ease, background 0.14s ease;
}
.option:hover { border-color: var(--border-ink); }
.option.selected { border-color: var(--border-ink); box-shadow: inset 0 0 0 1px var(--border-ink); }

.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.back-link {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 300;
  color: var(--ink-soft); font-size: 16px; padding: 8px 0;
}
.back-link:hover { color: var(--ink); }

textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px 18px;
  font-family: inherit;
  font-weight: 300;
  font-size: 17px;
  resize: vertical;
}
textarea:focus, input:focus { outline: 1.5px solid var(--border-ink); outline-offset: 1px; }

input[type="text"], input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px 18px;
  font-family: inherit;
  font-weight: 300;
  font-size: 17px;
}
.gate-form { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.gate-form .btn { align-self: flex-start; }
.error { color: var(--bad); font-size: 15px; min-height: 20px; }

.fade-in { animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  body { font-size: 17px; }
  main { padding: 12px 20px 56px; }
  .site-header .brand img { width: 60px; height: 60px; }
  .btn { font-size: 18px; padding: 15px 22px; }
}
