:root {
  --bg-top: #f6f0e8;
  --bg-bottom: #dfe8f6;
  --card: rgba(255, 255, 255, 0.9);
  --text: #152033;
  --muted: #5e6a7e;
  --border: rgba(21, 32, 51, 0.12);
  --accent: #115e59;
  --accent-dark: #0b4541;
  --accent-soft: #d8f0ec;
  --shadow: 0 24px 60px rgba(34, 53, 84, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 28%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

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

.card {
  width: min(100%, 760px);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.intro {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.02rem;
}

.form,
.notes {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.field span {
  font-size: 0.96rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(17, 94, 89, 0.6);
  box-shadow: 0 0 0 4px rgba(17, 94, 89, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

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

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  background: var(--accent-dark);
}

.secondary {
  background: #eef2f7;
  color: var(--text);
}

.secondary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.status {
  min-height: 1.5rem;
  margin: 18px 0 4px;
  font-weight: 600;
  color: var(--muted);
}

.status.success {
  color: #146c43;
}

.status.error {
  color: #9f1239;
}

.output-field {
  margin-top: 6px;
}

.notes {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.notes h2 {
  margin-bottom: 0;
  font-size: 1rem;
}

.notes ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

code {
  font-family: "SFMono-Regular", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

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

  .actions {
    display: grid;
  }

  button {
    width: 100%;
  }
}
