/* ====================================
   CHECK-IN UI — Pulse Protocol MVP
   ==================================== */

.ci-body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---- NAV ---- */
.ci-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ci-nav-link {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.ci-nav-link:hover { background: var(--bg); color: var(--fg); }

/* ---- LAYOUT ---- */
.ci-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ---- HEADER ---- */
.ci-header {
  text-align: center;
  margin-bottom: 48px;
}
.ci-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}
.ci-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.ci-sub {
  font-size: 15px;
  color: var(--fg-muted);
}

/* ---- QUESTION BLOCKS ---- */
.ci-question {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.ci-q-label {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
  text-align: center;
}
.ci-optional {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted);
}

/* ---- RATING SCALE ---- */
.ci-scale {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}
.ci-option {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.ci-option:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.ci-option.ci-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.ci-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
  padding: 0 8px;
}

/* ---- NOTES ---- */
.ci-notes-question {
  border-bottom: none;
  margin-bottom: 32px;
}
.ci-textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 15px;
  color: var(--fg);
  background: var(--white);
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s;
}
.ci-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.ci-textarea::placeholder { color: #aaa; }

/* ---- SUBMIT ---- */
.ci-submit {
  width: 100%;
  padding: 16px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.ci-submit:hover:not(:disabled) { background: var(--dark-mid); }
.ci-submit:active:not(:disabled) { transform: scale(0.98); }
.ci-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.ci-error {
  color: #c0392b;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

/* ---- RESPONSE CARD ---- */
.ci-hidden { display: none; }
.ci-card { text-align: center; }
.ci-check-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.ci-response-card { padding: 48px 0; }
.ci-response-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  color: var(--dark);
  line-height: 1.5;
  margin: 24px 0 40px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.ci-response-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.ci-btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--dark);
  color: var(--white);
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s;
}
.ci-btn-secondary:hover { background: var(--dark-mid); }
.ci-btn-ghost {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--fg-muted);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ci-btn-ghost:hover { border-color: var(--fg-muted); color: var(--fg); }

/* ---- RESPONSIVE ---- */
@media (max-width: 500px) {
  .ci-container { padding: 32px 16px 60px; }
  .ci-title { font-size: 28px; }
  .ci-option { width: 48px; height: 48px; font-size: 16px; }
  .ci-scale { gap: 8px; }
  .ci-response-text { font-size: 18px; }
  .ci-response-actions { flex-direction: column; }
  .ci-btn-secondary, .ci-btn-ghost { width: 100%; text-align: center; }
}