/* ============================================================
   WEBCRAFT STUDIO — CLIENT INTAKE
   Palette: ink charcoal / warm paper / blueprint amber
   Type: Space Grotesk (display) + Sora (body)
   ============================================================ */

:root {
  --ink: #14161b;
  --ink-2: #1e222b;
  --ink-3: #2a2f3b;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #e4e0d6;
  --line-dark: rgba(255, 255, 255, 0.14);
  --amber: #e8a33d;
  --amber-deep: #c97f1b;
  --muted: #6b6f78;
  --muted-dark: rgba(246, 244, 239, 0.64);
  --danger: #c0392b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(20, 22, 27, 0.10);
  --font-display: 'Space Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Sora', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
  padding: 6px 7px;
  background: var(--amber);
  border-radius: 6px;
}
.brand-mark span {
  width: 3px;
  height: 14px;
  background: var(--ink);
  border-radius: 1px;
}
.brand-mark span:nth-child(2) { height: 10px; align-self: flex-end; }
.brand-mark span:nth-child(3) { height: 17px; }
.header-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 140px 24px 88px;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(20, 22, 27, 0.55), rgba(20, 22, 27, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(232, 163, 61, 0.06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(232, 163, 61, 0.06) 39px 40px);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.hero-sub {
  margin: 22px auto 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}
.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 36px;
}
.hero-chips li {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 8px 16px;
  backdrop-filter: blur(4px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-lg { padding: 17px 40px; font-size: 1.02rem; }
.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(232, 163, 61, 0.35);
}
.btn-amber:hover { background: #f0b055; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232, 163, 61, 0.45); }
.btn-amber:active { transform: translateY(0); }
.btn-amber:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Intake shell ---------- */
.intake-wrap {
  padding: 0 20px 90px;
  margin-top: -44px;
  position: relative;
  z-index: 3;
}
.intake-shell {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 52px);
}

/* ---------- Progress ---------- */
.progress { margin-bottom: 40px; }
.progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.progress-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--amber-deep);
}
.progress-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  min-width: 0;
}
.progress-pct {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-rail {
  list-style: none;
  display: none;
  gap: 6px;
  margin-top: 18px;
}
.progress-rail li {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.progress-rail li span {
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 5px;
  color: var(--line);
  transition: color 0.3s ease;
}
.progress-rail li.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}
.progress-rail li.is-active span { color: var(--amber-deep); }
.progress-rail li.is-done span { color: var(--amber-deep); }
.progress-rail li.is-done { color: var(--muted); }

/* ---------- Steps ---------- */
.step {
  border: none;
  animation: stepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.step[hidden] { display: none; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--amber);
  flex-shrink: 0;
  margin-top: 4px;
}
.step-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.step-head p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

/* ---------- Fields ---------- */
.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.field-stack { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label, .label-line {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.field label em, .step-head sup { color: var(--amber-deep); font-style: normal; }
.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}
input[type="text"], input[type="tel"], input[type="email"], input[type="url"], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #a9acb3; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.16);
}
.field.is-invalid input, .field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.10);
}
.field-error {
  font-size: 0.78rem;
  color: var(--danger);
  display: none;
}
.field.is-invalid .field-error { display: block; }

/* ---------- Chips (feel selection) ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.chip span:hover { border-color: var(--amber); transform: translateY(-1px); }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--amber);
  box-shadow: 0 6px 18px rgba(20, 22, 27, 0.18);
}
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.3); }

.reveal-input { margin-top: 14px; }

.word-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
}

/* ---------- Email note (files come by email, not attachments) ---------- */
.email-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-3);
}
.email-note a {
  color: var(--amber-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.email-note a:hover { color: var(--ink); }

/* ---------- Wizard nav ---------- */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.wizard-nav .btn[hidden] { display: none; }
.wizard-nav #backBtn { visibility: hidden; }
.wizard-nav #backBtn.is-visible { visibility: visible; }
.wizard-note {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
#formStatus { text-align: center; }
#formStatus p { margin-top: 14px; font-weight: 600; }
#formStatus .ok { color: #1e7a3c; }
#formStatus .err { color: var(--danger); }

/* ---------- Success panel ---------- */
.success-panel {
  text-align: center;
  padding: 30px 10px 20px;
  animation: stepIn 0.5s ease;
}
.success-badge {
  width: 76px; height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(232, 163, 61, 0.4);
}
.success-badge svg { width: 36px; height: 36px; color: var(--ink); }
.success-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  letter-spacing: -0.01em;
}
.success-panel > p { margin-top: 14px; color: var(--ink-3); font-size: 1.05rem; }
.success-sub { color: var(--muted); font-size: 0.92rem; }
.success-panel .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(246, 244, 239, 0.75);
  padding: 44px 24px;
  text-align: center;
  font-size: 0.85rem;
}
.brand-dark {
  color: #fff;
  justify-content: center;
  display: inline-flex;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-inner p { margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .word-trio { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .progress-rail {
    display: flex;
    justify-content: space-between;
  }
}
