:root {
  --bg: #f7f3eb;
  --paper: #fffdf8;
  --ink: #222831;
  --muted: #5c6470;
  --accent: #b6402a;
  --accent-2: #1c6b62;
  --line: #e4d9c8;
  --shadow: 0 16px 40px rgba(38, 31, 20, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff4d7, transparent 32rem), var(--bg);
  line-height: 1.5;
}

.hero, main, footer { max-width: 1120px; margin: 0 auto; }

.hero {
  padding: 38px 20px 20px;
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
}

.kicker { color: var(--accent-2); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; font-size: .8rem; }
h1 { margin: .2rem 0 .5rem; font-size: clamp(2rem, 5vw, 4.2rem); line-height: .95; }
h2 { margin-top: 0; }

main { padding: 12px 20px 36px; }
.panel {
  background: rgba(255, 253, 248, .92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}
.grid { display: grid; gap: 24px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

label, legend { font-weight: 750; color: var(--ink); }
label { display: block; margin: 14px 0; }
input, textarea, select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d8cdbb;
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: white;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(28, 107, 98, .18);
  border-color: var(--accent-2);
}
fieldset {
  border: 1px dashed #cbbca6;
  border-radius: 16px;
  padding: 10px 14px;
}
fieldset label { font-weight: 550; margin: 8px 0; }
fieldset input { width: auto; margin-right: 8px; }

.actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(247, 243, 235, .88);
  backdrop-filter: blur(12px);
  padding: 14px 0;
}
button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(182, 64, 42, .18);
}
button:hover { filter: brightness(.96); transform: translateY(-1px); }
button.secondary { background: #5c6470; }
#demoBtn { background: var(--accent-2); min-width: 150px; }

.output-panel textarea {
  min-height: 440px;
  background: #fbfaf7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
#status { min-height: 1.2em; color: var(--accent-2); font-weight: 750; }
.small ul { margin-bottom: 0; }
footer { padding: 20px; color: var(--muted); }

@media (max-width: 760px) {
  .hero { display: block; }
  #demoBtn { margin-top: 12px; }
  .two { grid-template-columns: 1fr; }
  .actions { position: static; }
}
