@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe2ea;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Noto Sans KR', sans-serif;
  background: radial-gradient(circle at top left, #e8eefc 0%, #f3f5f9 50%, #edf3ff 100%);
  color: var(--text);
}

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.brand {
  font-size: 24px;
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.lang-btn.is-active {
  background: #dbeafe;
  color: var(--primary-dark);
}

.step-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.step-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.step-btn.is-active {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #eff6ff;
}

.panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel.is-active {
  display: block;
}

h1,
h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.55;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.primary-btn,
.ghost-btn {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  border: 0;
  background: var(--primary);
  color: #fff;
}

.primary-btn:hover {
  background: #1e40af;
}

.ghost-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.result-card {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px;
  margin-bottom: 12px;
}

.result-card p:last-child {
  margin-bottom: 0;
}

.review-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.review-item {
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.review-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.review-text {
  color: #0f172a;
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .app {
    padding: 18px 12px 28px;
  }

  .step-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
