* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f4ef;
  color: #171717;
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.screen {
  display: none;
  width: 100%;
  max-width: 860px;
}

.screen.active {
  display: block;
}

.card {
  background: #fffdf8;
  border: 1px solid #e7e0d4;
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.06);
}

.hero {
  text-align: center;
  max-width: 760px;
  margin: auto;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a6f5f;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(38px, 7vw, 72px);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.lead {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.6;
  color: #57524b;
}

textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid #ddd5c8;
  border-radius: 20px;
  padding: 18px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  background: #fbfaf6;
  outline: none;
}

textarea:focus {
  border-color: #9c8f7a;
  background: #ffffff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 650;
  background: #171717;
  color: white;
  cursor: pointer;
}

button.secondary,
.tags button {
  background: #eee8dd;
  color: #292520;
}

button:hover {
  transform: translateY(-1px);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #3a352e;
}

.result-card p {
  color: #514c44;
  line-height: 1.6;
}

.result-block {
  border-top: 1px solid #e9e1d4;
  padding-top: 18px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .card {
    padding: 28px;
    border-radius: 22px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column-reverse;
  }

  button {
    width: 100%;
  }
}