/* ============================================
   HOME.CSS — Tool page specific styles
   Used by: index.html only
   ============================================ */

/* ── HERO ── */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 24px 36px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.15;
  color: var(--warm);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 em { font-style: normal; color: var(--amber); }

.hero p {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── HOW IT WORKS — vertical step list ── */
.how {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.how-step strong { color: var(--warm); font-weight: 600; }

.how-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(232,168,51,0.4);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  margin-top: 1px;
}

/* ── INPUT CARD ── */
.input-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 44px;
}

.input-card { padding: 28px; }

.input-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}

textarea {
  width: 100%;
  min-height: 200px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-sm);
  color: var(--warm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  padding: 16px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

textarea::placeholder { color: var(--muted); opacity: 0.6; }
textarea:focus { border-color: rgba(74,144,217,0.5); }
textarea.over-limit { border-color: rgba(232,93,58,0.6); }

.input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.word-count {
  font-size: 12px;
  color: var(--muted);
}

.word-count.over { color: var(--danger); font-weight: 600; }

.analyze-btn {
  background: var(--amber);
  color: #0F1C2E;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analyze-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.analyze-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-icon { flex-shrink: 0; }

.error-bar {
  background: rgba(232,93,58,0.12);
  border: 1px solid rgba(232,93,58,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #F4A090;
  margin-top: 16px;
  display: none;
}

/* ── RESULTS ── */
.results {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-type-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(232,168,51,0.55);
  color: var(--amber);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  width: fit-content;
  max-width: 100%;
  line-height: 1.5;
}

.doc-type-tag::before,
.doc-type-tag::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1.5px solid rgba(232,168,51,0.55);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.doc-type-tag::before { left: -2px; }
.doc-type-tag::after { right: -2px; }

.result-card {
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.result-card.visible { opacity: 1; transform: translateY(0); }

.result-card.loading .card-body::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin-top: 8px;
  animation: pulse 1.2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.9; } }

.card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.card-accent { width: 4px; height: 28px; border-radius: 2px; flex-shrink: 0; }
.accent-blue  { background: var(--blue); }
.accent-green { background: var(--green); }
.accent-amber { background: var(--amber); }

.card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.card-icon { margin-left: auto; color: var(--muted); flex-shrink: 0; }

.card-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--warm);
  min-height: 48px;
}

/* Considerations — styled like flagged margin notes, not dashboard cards */
.consider-list { display: flex; flex-direction: column; gap: 14px; }

.consider-item {
  display: flex;
  gap: 0;
  align-items: stretch;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  overflow: hidden;
}

.sev-tag {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 6px;
  flex-shrink: 0;
}

.sev-tag.sev-HIGH   { background: rgba(232,93,58,0.16);  color: #F4A090; }
.sev-tag.sev-MEDIUM { background: rgba(232,168,51,0.16); color: var(--amber); }
.sev-tag.sev-LOW    { background: rgba(46,204,143,0.16); color: var(--green); }

.consider-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--warm);
  flex: 1;
  padding: 13px 16px;
}

.consider-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--warm);
  margin-bottom: 4px;
}

.consider-detail { color: var(--muted); margin-bottom: 9px; }

.negotiate-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: #A9D8C4;
  border-top: 1px dashed rgba(46,204,143,0.25);
  padding-top: 8px;
}

.negotiate-tip svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 1px; opacity: 0.8; }

/* Simplified version */
.simplified-text {
  background: rgba(46,204,143,0.04);
  border-left: 3px solid rgba(46,204,143,0.3);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--warm);
  white-space: pre-wrap;
}

/* Inline disclaimer under results */
.result-disclaimer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
}

@media (max-width: 600px) {
  .hero { padding: 36px 20px 28px; }
  .input-card { padding: 20px; }
  .card-body { padding: 16px; }
}
