:root {
  --bg: #f7f4ed;
  --ink: #1f2430;
  --muted: #5c6374;
  --card: #fffdf8;
  --line: #ded3bf;
  --accent: #bf5b31;
  --accent-strong: #8f3f1f;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, #f0d2a2 0, transparent 42%),
    radial-gradient(circle at 85% 85%, #d2ebd8 0, transparent 35%),
    var(--bg);
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.28;
  pointer-events: none;
}

.bg-shape-1 {
  width: 300px;
  height: 300px;
  background: #f59e0b;
  top: -90px;
  right: -70px;
}

.bg-shape-2 {
  width: 260px;
  height: 260px;
  background: #34a853;
  bottom: -80px;
  left: -70px;
}

.container {
  width: min(980px, 92vw);
  margin: 42px auto;
}

.card {
  background: color-mix(in oklab, var(--card) 92%, white 8%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(31, 36, 48, 0.12);
  transform: translateY(8px);
  animation: reveal 480ms ease-out forwards;
}

h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: 0.02em;
}

.subtitle {
  margin-top: 10px;
  color: var(--muted);
}

.form-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #343a46;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: white;
}

input:focus {
  outline: 2px solid color-mix(in oklab, var(--accent) 45%, white 55%);
  outline-offset: 1px;
}

button {
  grid-column: 1 / -1;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

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

.status {
  min-height: 1.3rem;
  margin-top: 14px;
  color: #2f5c2e;
}

.status.error {
  color: var(--error);
}

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

.result-card {
  max-width: 560px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: var(--card);
  box-shadow: 0 24px 50px rgba(31, 36, 48, 0.12);
}

.result-card a {
  color: var(--accent-strong);
  font-weight: 700;
}

@keyframes reveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .container {
    margin: 20px auto;
  }

  .card {
    padding: 20px;
  }

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