/* Shared styles for standalone tool pages (persona, empathy, writing) */

.tool-wrap { max-width: 980px; margin: 32px auto 0; padding: 0 16px; }
.tool-card {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .tool-wrap { padding: 0 12px; margin-top: 20px; }
  .tool-card { padding: 20px 16px; border-radius: var(--radius-xl); }
  .tool-title { font-size: 19px; }
  .tool-sub { font-size: 13px; }
}
.tool-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.tool-pill {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.tool-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 4px; }
.tool-sub { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; max-width: 56ch; margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.form-group label {
  font-size: 11px; font-weight: 500; color: var(--text-subtle);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em;
  display: block;
}
.form-input {
  width: 100%; padding: 9px 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit; font-size: 13.5px; color: var(--text);
  outline: none; transition: all 100ms var(--ease);
  box-sizing: border-box;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.form-input { min-height: 72px; resize: vertical; line-height: 1.5; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239C9DA3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }

.form-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--hairline); flex-wrap: wrap; gap: 12px; }
.framework-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.fw-pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); font-weight: 500; }
.fw-pill.brand { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }

.spinner-wrap { width: 32px; height: 32px; margin: 0 auto 14px; }
.spinner { width: 100%; height: 100%; border: 1.5px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-card { text-align: center; padding: 48px 24px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-xl); margin-bottom: 16px; }
.loading-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.loading-step { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-subtle); transition: opacity 150ms var(--ease); }

.result-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 16px;
}

.export-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: var(--bg-subtle); border-top: 1px solid var(--hairline);
  flex-wrap: wrap; gap: 12px;
}
.export-info { font-size: 11px; color: var(--text-subtle); letter-spacing: -.005em; }
.export-actions { display: flex; gap: 6px; align-items: center; }

/* Educational content area */
.edu { max-width: 880px; margin: 64px auto 0; padding: 0 24px; }
.conv-cta {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: 48px 32px; text-align: center; margin: 64px 0;
  position: relative; overflow: hidden;
}
.conv-cta::before {
  content: ""; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.conv-cta > * { position: relative; z-index: 1; }
.conv-cta h2 { font-size: 28px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 12px; }
.conv-cta p { color: var(--text-muted); margin: 0 auto 24px; max-width: 50ch; }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated); color: var(--text);
  padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; box-shadow: 0 24px 64px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: all 200ms var(--ease); z-index: 200;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.toast.success .dot { background: var(--good); box-shadow: 0 0 8px var(--good); }

.hidden { display: none !important; }
