@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  line-height: 1.6;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef2ff 0%, #f7f8fc 100%);
  padding: 32px 16px 48px;
  color: #0f172a;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  background: white;
  border-radius: 24px;
  padding: 24px 32px;
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border: 1px solid #e0e7ff;
}

.hero h1 {
  font-size: 1.8rem;
  margin: 0;
  color: #0f172a;
}

.hero p {
  margin: 4px 0 0;
  color: #6366f1;
  font-weight: 500;
}

.repeat {
  color: #ef4444;
  font-style: italic;
  font-weight: 700;
}

.hero-icon {
  background: #eef2ff;
  color: #ef4444;
  border-radius: 16px;
  font-size: 2rem;
  padding: 16px;
}

.alert {
  padding: 16px 20px;
  border-radius: 16px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-weight: 600;
  margin-bottom: 16px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.panel {
  background: #fefefe;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #e3e8ff;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-fields label {
  font-weight: 600;
  color: #0f172a;
}

.form-fields textarea {
  resize: vertical;
  min-height: 120px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  padding: 14px 16px;
  font: inherit;
  color: #0f172a;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-fields textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}

.primary {
  margin-top: 8px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #ef4444);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 18px rgba(79, 70, 229, 0.25);
}

.results-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.insight {
  background: white;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1d4ed8;
}

.emoji {
  font-size: 1.2rem;
}

.score {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.score-insight {
  gap: 16px;
}
.score-label {
  margin: 4px 0 0;
  font-weight: 600;
  color: #475569;
}

.muted {
  color: #94a3b8;
  font-style: italic;
}

.technique-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.technique p {
  margin: 4px 0;
}

.technique .example {
  color: #6b7280;
}

.example-text {
  display: block;
  color: #6b7280;
}

.suggestion-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion-list li {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.suggestion-main {
  font-weight: 500;
  color: #0f172a;
}

.suggestion-example {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
}

.example-btn {
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #1d4ed8;
  padding: 4px 6px;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.suggestion-example:hover .example-btn,
.example-btn:focus-visible {
  opacity: 1;
}
pre {
  margin: 0;
  background: #f5f7ff;
  border-radius: 12px;
  padding: 12px;
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  white-space: pre-wrap;
  color: #0f172a;
}

@media (max-width: 960px) {
  .workspace {
    grid-template-columns: 1fr;
  }
}
