/* ==========================================================================
   D05 — Mara Lind · Start a project (demos/mara-lind/start.html)
   Six-step brief builder with a "not a fit" route and a sent state,
   call-slot booking and a sticky "what happens next" column.
   ========================================================================== */

/* ---- Page grid -------------------------------------------------------- */
.start {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: start;
  padding-top: clamp(40px, 6vw, 80px);
}

.start__main {
  grid-column: 1 / span 7;
  min-width: 0;
}

.start__title {
  margin: 0 0 12px;
  font-size: var(--t-h1);
  line-height: 1;
}

.start__intro {
  margin: 0 0 32px;
  color: var(--muted);
}

/* Footer sits a little closer on this page */
.site-footer {
  margin-top: clamp(64px, 8vw, 120px);
}

/* ---- Brief card & progress -------------------------------------------- */
.brief {
  padding: clamp(20px, 3.5vw, 44px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.brief__status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.brief__step-label {
  font-family: var(--f-mono);
  font-size: 13px;
  white-space: nowrap;
}

.brief__progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 32px;
}

.brief__progress > span {
  height: 4px;
  background: var(--line);
}

.brief__progress > span.is-done {
  background: var(--ink);
}

.brief__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

/* Back on step 1: still visible, visibly inactive */
.brief__back.is-dimmed {
  opacity: .35;
}

/* ---- Step head -------------------------------------------------------- */
.brief-step__head {
  margin-bottom: 20px;
}

.brief-step__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
  font-size: var(--t-h3);
  line-height: 1.1;
}

.brief-step__hint {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---- Option tiles (aria-pressed = selected) --------------------------- */
.options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 8px;
}

.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.option[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--canvas);
}

.option__label {
  display: block;
  font-weight: 600;
}

.option__sub {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

/* Checkbox (multi select) or radio (single select) indicator */
.option__tick {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  font-size: 12px;
}

.options--single .option__tick {
  border-radius: 50%;
}

.option[aria-pressed="true"] .option__tick::before {
  content: "✓";
}

/* ---- Inline error ----------------------------------------------------- */
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 15px;
  color: var(--error);
}

.field-error__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--error);
  font-family: var(--f-mono);
  font-size: 12px;
}

/* ---- Text fields ------------------------------------------------------ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--spaced {
  margin-bottom: 16px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 15px;
  font-weight: 600;
}

.field__row {
  display: flex;
  justify-content: space-between;
}

.field__optional {
  font-size: 14px;
  color: var(--muted);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 15px;
  cursor: pointer;
}

.consent__box {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--ink);
}

/* ---- File drop zone --------------------------------------------------- */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  padding: 20px;
  border: 1.5px dashed var(--muted);
  background: transparent;
  text-align: center;
  cursor: pointer;
}

.dropzone.is-dragging {
  border-color: var(--ink);
  background: var(--canvas);
}

.dropzone__title {
  font-weight: 600;
}

.dropzone__hint {
  font-size: 14px;
  color: var(--muted);
}

.dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.file-list__ok {
  color: var(--success);
}

/* ---- Shared by "not a fit" and "sent" --------------------------------- */
.brief__headline {
  margin: 0;
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
  font-size: var(--t-h2);
  line-height: 1.05;
}

/* Text-style button ("Change my budget", "Start over") */
.link-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}

.link-button--muted {
  color: var(--muted);
}

/* ---- Not a fit -------------------------------------------------------- */
.brief__notfit {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brief__notfit .link-button {
  align-self: flex-start;
}

.alt-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.alt-offer__title {
  font-weight: 600;
}

.alt-offer__text {
  font-size: 15px;
  color: var(--muted);
}

.alt-offer__btn {
  padding: 10px 14px;
}

/* ---- Sent ------------------------------------------------------------- */
.brief__sent {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brief__receipt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.brief__stamp {
  padding: 6px 12px;
  font-size: 16px;
  animation: proofStamp 380ms cubic-bezier(.2, 1.4, .4, 1) both;
}

/* Video placeholder: replace with the real embed */
.hello-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #141414;
  color: #F5F2EB;
}

.hello-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, var(--ph) 0 10px, var(--ph-stripe) 10px 11px);
  filter: var(--img-filter);
  opacity: .35;
}

.hello-video__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hello-video__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1.5px solid #F5F2EB;
  border-radius: 50%;
}

.hello-video__caption {
  font-family: var(--f-mono);
  font-size: 12px;
}

.prep__title {
  margin-bottom: 8px;
  font-weight: 600;
}

.prep__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.prep__box {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}

.brief__sent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Call booking ----------------------------------------------------- */
.call {
  margin-top: 56px;
}

.call__title {
  margin: 0 0 16px;
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
  font-size: var(--t-h2);
}

.call__box {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.call__week {
  margin-bottom: 12px;
}

.call__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 14px;
  cursor: pointer;
}

.slot[aria-pressed="true"] {
  background: var(--ink);
  color: var(--canvas);
}

/* Taken slots */
.slot:disabled {
  background: transparent;
  color: var(--muted);
  text-decoration: line-through;
}

.call__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.call__msg {
  font-size: 15px;
  color: var(--muted);
}

/* ---- What happens next (sticky aside) --------------------------------- */
.start__aside {
  position: sticky;
  top: 110px;
  grid-column: 9 / span 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.next-steps {
  display: contents;
  list-style: none;
}

.next-steps__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.next-steps__no {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent-text);
}

.next-steps__title {
  font-weight: 600;
}

.next-steps__text {
  font-size: 15px;
  color: var(--muted);
}

.start__mail {
  font-size: 15px;
  color: var(--muted);
}
