:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --panel: #fffdf9;
  --text: #1d1d1b;
  --muted: #5b5b57;
  --accent: #c2472d;
  --accent-dark: #9f371f;
  --border: #eadfce;
  --shadow: 0 24px 60px rgba(92, 61, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(194, 71, 45, 0.12), transparent 32%),
    linear-gradient(135deg, #f7f2e8 0%, #f1ece2 48%, #efe7da 100%);
  color: var(--text);
}

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

.card {
  width: min(100%, 640px);
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.description {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.download-button {
  margin-top: 28px;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  min-width: 180px;
  background: linear-gradient(135deg, var(--accent) 0%, #d76a3f 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  box-shadow: 0 14px 28px rgba(194, 71, 45, 0.28);
}

.download-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.download-button:active:not(:disabled) {
  transform: translateY(1px);
}

.download-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status {
  min-height: 24px;
  margin: 18px 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.status[data-state="loading"] {
  color: #7f5b2f;
}

.status[data-state="success"] {
  color: #1f7a3f;
}

.status[data-state="error"] {
  color: #a72222;
}

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

  .download-button {
    width: 100%;
  }
}
