@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@200;300;400;500;600&display=swap');

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

body {
  font-family: 'Outfit', sans-serif;
  background: #F6F3EE;
  color: #1a1a1a;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Page entrance animation ── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sidebar {
  animation: pageFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.main {
  animation: pageFadeIn 0.46s cubic-bezier(0.16, 1, 0.3, 1) 0.07s both;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 210px;
  min-width: 210px;
  background: #F1EEE9;
  display: flex;
  flex-direction: column;
  padding: 28px 0 20px;
  overflow-y: auto;
}

.logo {
  padding: 16px 32px 20px;
}
.logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.company-name {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  padding: 40px 32px 10px;
  letter-spacing: -0.3px;
}

.progress-label {
  margin-top:10px;
  font-size: 12px;
  font-weight: 300;
  color: #555;
  padding: 0 32px 8px;
}

.progress-bar-track {
  margin: 0 32px 6px;
  height: 3px;
  background: #d6d2c9;
  border-radius: 2px;
}
.progress-bar-fill {
  height: 100%;
  width: 25%;
  background: #4B7263;
  border-radius: 2px;
}

.sections-remaining {
  font-size: 11px;
  font-weight: 300;
  color: #aaa;
  padding: 0 32px 18px;
  margin-bottom:10px;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 100;
  color: #aaa;
  padding: 0 32px 10px;
  letter-spacing: 0.01em;
}

.nav-list {
  list-style: none;
  flex: 1;
}
.nav-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 32px;
  margin-bottom:10px;
}
.nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-dot.done    { background: #4B7263; }
.nav-dot.active  { background: #1a1a1a; }
.nav-dot.pending { background: #F1EEE9; border: 1.5px solid #4B7263; }
.nav-dot.notstarted { background: #F1EEE9; border: 1.5px solid #ccc9c0; }

.nav-list li a {
  font-size: 13px;
  font-weight: 300;
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.2;
}
.nav-list li a:hover { color: #1a1a1a; }
.nav-list li.active a {
  color: #1a1a1a;
  font-weight: 400;
}
.nav-list li.done a { color: #4B7263; }


.collaborators {
  margin-top: auto;
  padding: 20px 20px 0;
}
.collab-box {
  background: #C7CECB;
  border-radius: 6px;
  padding: 10px 12px 8px;
}
.collab-title {
  font-size: 11px;
  font-weight: 500;
  color: #3a3a3a;
  margin-bottom: 6px;
}
.collab-item {
  font-size: 13px;
  font-weight: 300;
  color: #2a2a2a;
  padding: 2px 0;
}
.collab-manage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 300;
  color: #666;
  cursor: pointer;
  padding-right: 4px;
}
.collab-manage:hover { color: #1a1a1a; }

/* ── MAIN ── */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 28px 52px 60px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.back-link {
  font-size: 13px;
  font-weight: 300;
  color: #666;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  cursor: pointer;
}
.back-link:hover { color: #1a1a1a; }
.saved-label {
  font-size: 11px;
  font-weight: 300;
  color: #4B7263;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ccc9c0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar svg { width: 18px; height: 18px; }

/* ── PAGE HEADER ── */
.page-title {
  font-family: 'Instrument Serif', serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.1;
}

.page-desc {
  font-size: 14px;
  font-weight: 200;
  color: #555;
  max-width: 820px;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* ── QUESTION CARDS ── */
.question-card {
  background: #F1EEE9;
  border-radius: 5px;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 16px 22px;
  transition: background 0.25s ease, padding 0.35s ease;
}
.question-card:hover { background: #E9E5DF; }
.question-card.expanded { padding: 18px 22px 22px; }

/* Answered + collapsed state */
.question-card.answered:not(.expanded) {
  background: #B3C2BB;
}
.question-card.answered:not(.expanded):hover {
  background: #A9BAB2;
}

.card-top {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.question-card.expanded .card-top { grid-template-rows: 1fr; }
.card-top-inner { overflow: hidden; }

.card-hint {
  font-size: 11.5px;
  font-weight: 300;
  color: #999;
  padding-bottom: 4px;
  opacity: 0;
  transition: opacity 0.25s ease 0.05s;
}
.question-card.expanded .card-hint { opacity: 1; }

/* Row holds question text + answer preview side by side */
.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-question {
  font-family: 'Instrument Serif', serif;
  font-size: 17px;
  font-weight: 400;
  color: #999;
  transition: font-size 0.35s ease, color 0.35s ease;
}
.question-card.expanded .card-question {
  font-size: 24px;
  color: #1a1a1a;
}
.question-card.answered:not(.expanded) .card-question {
  color: #2e2e2e;
}

.card-answer-preview {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #3a5248;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.question-card.answered:not(.expanded) .card-answer-preview {
  opacity: 1;
}

.card-bottom {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.question-card.expanded .card-bottom { grid-template-rows: 1fr; }
.card-bottom-inner { overflow: hidden; }

.card-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #bbb;
  outline: none;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  color: #555;
  padding: 6px 0;
  margin-top: 18px;
  display: block;
  transition: border-color 0.2s;
}
.card-input:focus { border-bottom-color: #555; }
.card-input::placeholder { color: #bbb; }

/* ── Address fields ── */
.card-address-fields {
  display: flex;
  flex-direction: column;
}
.card-address-row {
  display: flex;
  gap: 32px;
}
.card-address-row .card-address-field { flex: 1; }
.card-field-label {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  margin-top: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.field-optional {
  font-weight: 300;
  color: #bbb;
  text-transform: none;
  letter-spacing: 0;
}
.card-address-fields .card-input { margin-top: 4px; }
.card-address-field .card-select-wrapper { margin-top: 4px; }

/* ── Custom state dropdown ── */
.card-select-wrapper {
  position: relative;
  margin-top: 18px;
}

.card-select-trigger {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #bbb;
  outline: none;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  color: #555;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s;
}
.card-select-trigger:focus { border-bottom-color: #555; }

.card-select-value.is-placeholder { color: #bbb; }

.card-select-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #bbb;
  transition: transform 0.2s ease, color 0.2s;
}
.card-select-wrapper.open .card-select-chevron { transform: rotate(180deg); color: #555; }

.card-select-dropdown {
  position: fixed;
  background: #FDFCF9;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  scrollbar-width: thin;
  scrollbar-color: #d6d2c9 transparent;
}
.card-select-wrapper.open .card-select-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.card-select-dropdown li {
  padding: 9px 16px;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  color: #444;
  cursor: pointer;
  transition: background 0.1s;
}
.card-select-dropdown li:hover { background: #F1EEE9; }
.card-select-dropdown li.selected { color: #4B7263; font-weight: 400; }

/* ── Checkbox options ── */
.card-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.card-checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 300;
  color: #444;
  cursor: pointer;
  user-select: none;
}
.card-checkbox-option input[type="checkbox"] { display: none; }
.checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #fff;
  flex-shrink: 0;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-checkbox-option input[type="checkbox"]:checked + .checkbox-box {
  background: #4B7263;
}
.checkbox-box::after {
  content: '';
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s;
}
.card-checkbox-option input[type="checkbox"]:checked + .checkbox-box::after { opacity: 1; }
.industry-specify { margin-top: 6px; }

/* ── Radio options ── */
.card-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 4px;
}
.card-radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 300;
  color: #444;
  cursor: pointer;
  user-select: none;
}
.card-radio-option input[type="radio"] { display: none; }
.radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c0c0c0;
  background: #F6F3EE;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radio-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.15s;
}
.card-radio-option input[type="radio"]:checked + .radio-circle {
  border-color: #4B7263;
  background: #4B7263;
}
.card-radio-option input[type="radio"]:checked + .radio-circle::after {
  opacity: 1;
}

/* ── Next section bar ── */
.next-section-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 28px;
  padding-bottom: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.next-section-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.next-section-label {
  font-size: 12px;
  font-weight: 300;
  color: #999;
}
.next-section-btn {
  background: #4B7263;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.next-section-btn:hover { background: #3d5f52; }

/* ── Cofounder card ── */
.cf-card {
  background: #E3DFD8;
  border-radius: 8px;
  padding: 22px 26px 26px;
}
.cf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cf-card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  color: #1a1a1a;
}
.cf-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 300;
  color: #888;
  font-family: 'Outfit', sans-serif;
  padding: 0;
  transition: color 0.15s;
}
.cf-add-btn:hover { color: #1a1a1a; }
.cf-add-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #C7CECB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  line-height: 1;
  transition: background 0.15s;
}
.cf-add-btn:hover .cf-add-icon { background: #a5b0ac; }
.cf-list-item {
  font-size: 14px;
  font-weight: 300;
  color: #444;
  padding: 3px 0;
}

/* Expandable form section */
.cf-form-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.cf-form-wrap.open { grid-template-rows: 1fr; }
.cf-form-inner { overflow: hidden; }
.cf-form-divider {
  height: 1px;
  background: #ccc9c0;
  margin: 20px 0 0;
}
.cf-form-fields { padding-top: 6px; }
.cf-field { margin-bottom: 0; }
.cf-field-label {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 22px;
  display: block;
}
.cf-field-sublabel {
  font-size: 12px;
  font-weight: 300;
  color: #aaa;
  margin-top: 3px;
}
.cf-form-fields .card-input { margin-top: 4px; }
.cf-field .card-checkbox-group { margin-top: 12px; }
.cf-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}
.cf-submit-btn {
  background: #4B7263;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.cf-submit-btn:hover { background: #3d5f52; }

/* ── Multi-paragraph page description ── */
.page-desc p { margin-bottom: 12px; }
.page-desc p:last-child { margin-bottom: 0; }

/* ── Note callout block ── */
.card-note {
  font-size: 12px;
  font-weight: 300;
  color: #666;
  line-height: 1.65;
  background: #E9E5DF;
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 24px;
}
.card-note strong { font-weight: 500; }

/* ── Acknowledgment body text ── */
.card-ack-text {
  font-size: 13px;
  font-weight: 300;
  color: #555;
  line-height: 1.65;
  margin-top: 16px;
  margin-bottom: 8px;
}
.card-ack-role {
  font-size: 11px;
  color: #aaa;
  font-weight: 300;
}

/* ── Radio option sub-label ── */
.radio-sublabel {
  font-size: 11.5px;
  font-weight: 300;
  color: #aaa;
  padding-left: 30px;
  margin-top: -6px;
}
