* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f7f4;
  color: #111;
}

.page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.hero {
  margin-bottom: 32px;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 0 0 20px;
}

.subhead {
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 680px;
  color: #444;
}

.generator-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

label {
  display: block;
  font-weight: 650;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  min-height: 190px;
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 16px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

textarea:focus {
  border-color: #111;
}

button {
  margin-top: 16px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: white;
  font: inherit;
  font-weight: 650;
  padding: 13px 20px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status-box,
.result-box,
.error-box {
  margin-top: 24px;
  border-radius: 16px;
  padding: 18px;
}

.status-box {
  background: #f4f4f4;
  border: 1px solid #ddd;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #333;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #111;
  transition: width 0.25s ease;
}

.result-box {
  background: #f1fff4;
  border: 1px solid #b9e9c2;
}

.result-box h2 {
  margin-top: 0;
}

.result-box a {
  display: inline-block;
  margin-top: 10px;
  color: #111;
  font-weight: 700;
}

.error-box {
  background: #fff1f1;
  border: 1px solid #e6b1b1;
  color: #8a1f1f;
}

.hidden {
  display: none;
}


.reverse-card {
  margin-top: 32px;
}

.small {
  font-size: 1rem;
}

input[type="file"] {
  display: block;
  width: 100%;
  margin: 10px 0 20px;
  padding: 14px;
  background: #f4f4f0;
  border: 1px solid #ccc;
  border-radius: 14px;
  font: inherit;
}