:root {
  --ink: #17121c;
  --muted: #6f6874;
  --purple: #65168e;
  --purple-light: #a637e0;
  --line: #e8e1eb;
  --soft: #f7f3f9;
  --white: #fff;
  --green: #24845d;
  --danger: #b52a3a;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--ink);
  background: #f1edf3;
  font-family: "Titillium Web", sans-serif;
  line-height: 1.5;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.topbar {
  width: min(1440px, 100%);
  height: 86px;
  margin: 0 auto;
  padding: 15px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img { width: 190px; display: block; }
.topbar__link { color: var(--muted); text-decoration: none; font-size: .95rem; }
.topbar__link strong { color: var(--purple); margin-left: 5px; }

.page-shell {
  width: min(1440px, calc(100% - 32px));
  min-height: calc(100vh - 110px);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(310px, 39%) 1fr;
  overflow: hidden;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(55, 30, 66, .12);
}

.intro-panel {
  position: relative;
  padding: clamp(42px, 6vw, 88px);
  color: #fff;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.17), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(181,89,229,.45), transparent 33%),
    linear-gradient(145deg, #36104a, #65168e 58%, #8c2db8);
}

.intro-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255,255,255,.04), 0 0 0 70px rgba(255,255,255,.025);
}

.eyebrow, .step__kicker {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intro-panel .eyebrow { color: #e5b8fb; }
.intro-panel h1 { max-width: 520px; margin: 0; font-size: clamp(2.5rem, 4vw, 4.7rem); line-height: .98; letter-spacing: -.045em; }
.intro-panel__lead { max-width: 560px; margin: 28px 0 40px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.benefits { display: grid; gap: 20px; max-width: 510px; }
.benefit { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.benefit span { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: .72rem; font-weight: 700; }
.benefit p { margin: 0; color: rgba(255,255,255,.7); }
.benefit strong { color: #fff; }
.privacy-note { position: absolute; bottom: 36px; margin: 0; color: rgba(255,255,255,.5); font-size: .78rem; }

.form-panel { min-width: 0; padding: clamp(28px, 4vw, 60px); display: flex; flex-direction: column; }
.progress-wrap { flex: 0 0 auto; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.progress-track { height: 5px; margin-top: 10px; overflow: hidden; background: var(--soft); border-radius: 10px; }
#progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, var(--purple), var(--purple-light)); border-radius: inherit; transition: width .35s ease; }

#project-form { flex: 1; min-height: 600px; display: flex; flex-direction: column; }
.website-field { position: absolute; left: -10000px; }
.step { display: none; flex: 1; animation: enter .35s ease both; }
.step.is-active { display: flex; }
.step__content { width: min(100%, 760px); margin: auto; padding: 35px 0; }
.step__content h2 { margin: 0 0 12px; font-size: clamp(2rem, 3.2vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; }
.step__hint, .step__content > p:not(.step__kicker):not(.form-status) { margin: 0 0 28px; color: var(--muted); font-size: 1.04rem; }
.step__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 25px; color: #fff; background: linear-gradient(145deg, var(--purple), var(--purple-light)); border-radius: 16px; font-size: 1.45rem; }
.start-step .primary-btn { margin-top: 18px; }

.field { display: grid; gap: 8px; margin-top: 28px; color: var(--ink); font-size: .9rem; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  padding: 15px 17px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 13px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--purple-light); box-shadow: 0 0 0 4px rgba(166,55,224,.1); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--danger); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field--wide { grid-column: 1 / -1; }
.field--compact { max-width: 330px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.choice-grid--single { grid-template-columns: 1fr; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { min-height: 82px; padding: 15px 17px; display: flex; flex-direction: column; justify-content: center; background: var(--soft); border: 1px solid transparent; border-radius: 14px; transition: .2s ease; }
.choice b { font-size: 1rem; }
.choice small { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.choice:hover span { border-color: #d8c6e1; transform: translateY(-1px); }
.choice input:checked + span { color: var(--purple); background: #fbf6fd; border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(166,55,224,.08); }
.choice input:focus-visible + span { outline: 3px solid rgba(166,55,224,.25); }
.choice--wide { grid-column: 1 / -1; }

.form-nav { min-height: 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.primary-btn, .back-btn, .text-btn {
  border: 0;
  text-decoration: none;
  font-weight: 700;
}
.primary-btn { justify-self: end; display: inline-flex; align-items: center; gap: 20px; padding: 13px 19px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-light)); border-radius: 12px; box-shadow: 0 10px 24px rgba(101,22,142,.2); }
.primary-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.primary-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .42;
  transform: none;
  box-shadow: none;
}
.back-btn { justify-self: start; padding: 10px 0; color: var(--muted); background: transparent; }
.back-btn:hover, .text-btn:hover { color: var(--purple); }
.text-btn { padding: 0; color: var(--purple); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.autosave-status { color: var(--muted); font-size: .75rem; }
.submit-btn { display: none; }

.analysis-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 25px 0; }
.analysis-card div { padding: 17px; background: var(--soft); border-radius: 13px; }
.analysis-card span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.analysis-card strong { color: var(--purple); font-size: 1rem; }
.analysis-note { padding: 15px 17px; color: var(--muted); background: #fbf6fd; border-left: 3px solid var(--purple-light); border-radius: 0 10px 10px 0; }
.answer-summary { max-height: 230px; overflow: auto; margin-top: 16px; padding: 5px 16px; background: var(--soft); border-radius: 12px; }
.answer-summary div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.answer-summary div:last-child { border-bottom: 0; }
.answer-summary span { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; }
.answer-summary p { margin: 3px 0 0; white-space: pre-line; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-top: 24px; color: var(--muted); font-size: .82rem; cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--purple); }
.form-status { min-height: 24px; margin: 14px 0 0; color: var(--danger); font-weight: 600; }
.success-step { text-align: center; }
.success-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 25px; color: #fff; background: var(--green); border-radius: 50%; font-size: 2rem; }
.success-step .primary-btn { justify-self: auto; display: inline-flex; margin-top: 10px; }

@keyframes enter { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; }
  .intro-panel { padding: 42px; }
  .intro-panel h1 { max-width: 720px; font-size: clamp(2.5rem, 8vw, 4rem); }
  .benefits, .privacy-note { display: none; }
  .intro-panel__lead { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .topbar { height: 72px; padding: 12px 18px; }
  .brand img { width: 145px; }
  .topbar__link { font-size: 0; }
  .topbar__link strong { font-size: .82rem; }
  .page-shell { width: 100%; min-height: calc(100vh - 72px); margin: 0; border-radius: 0; }
  .intro-panel { padding: 30px 22px; }
  .intro-panel__lead { font-size: .95rem; }
  .form-panel { padding: 22px; }
  #project-form { min-height: 620px; }
  .step__content { padding: 28px 0; }
  .step__content h2 { font-size: 2rem; }
  .choice-grid, .field-grid, .analysis-card { grid-template-columns: 1fr; }
  .choice--wide, .field--wide { grid-column: auto; }
  .form-nav { grid-template-columns: 1fr 1fr; }
  .autosave-status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
