:root {
  --primary: #7656e8;
  --primary-dark: #5c3ed0;
  --ink: #202035;
  --muted: #77778d;
  --border: #e8e6f1;
  --surface: #ffffff;
  --background: #f7f6fc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.navbar {
  height: 72px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
}

.local-badge {
  color: #20845a;
  background: #e7f7ee;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 52px 24px 24px;
}

.hero {
  text-align: center;
  max-width: 690px;
  margin: 0 auto 38px;
}

.eyebrow {
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
}

h1 {
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 16px 0;
}

h1 span {
  color: var(--primary);
}

.hero p, .muted {
  color: var(--muted);
  line-height: 1.7;
}

.workspace {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 27px;
  box-shadow: 0 12px 35px #34236a08;
  min-width: 0;
}

h2 {
  font-size: 21px;
  margin: 0 0 8px;
}

.muted {
  font-size: 13px;
  margin: 0 0 24px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 17px 0 8px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fdfcff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #7656e819;
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: 0.2s;
}

#generateBtn {
  width: 100%;
  padding: 15px;
  margin-top: 24px;
  color: white;
  background: var(--primary);
}

#generateBtn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.privacy {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin: 15px 0 0;
}

.output-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.output-heading h2 {
  margin-top: 8px;
}

.sparkle {
  font-size: 30px;
  color: var(--primary);
}

.status {
  padding: 12px;
  margin: 22px 0;
  border-radius: 9px;
  background: #f5f2ff;
  color: var(--primary-dark);
  font-size: 12px;
}

.empty-state {
  text-align: center;
  padding: 30px 8px;
}

.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #f0ebff;
  border-radius: 17px;
  color: var(--primary);
  font-size: 28px;
}

.empty-state h3 {
  font-size: 16px;
  margin-top: 18px;
}

.empty-state p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.result-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 13px;
  overflow-wrap: anywhere;
}

.result-card h3 {
  font-size: 14px;
  margin: 0 0 12px;
}

.result-card p {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 13px;
  color: #55556c;
  margin: 0;
}

.copy-btn {
  margin-top: 12px;
  background: #f0ebff;
  color: var(--primary-dark);
  padding: 9px 12px;
  font-size: 12px;
}

.secondary {
  width: 100%;
  padding: 13px;
  color: var(--primary-dark);
  background: #f0ebff;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 36px 0 18px;
}

@media (max-width: 760px) {
  .container {
    padding: 35px 16px 16px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 21px;
  }

  h1 {
    letter-spacing: -1px;
  }

  .navbar {
    padding: 0 20px;
  }
}

@media (max-width: 380px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}