:root {
  --bg: #f6efe5;
  --bg-accent: #efe1cf;
  --panel: rgba(255, 250, 243, 0.85);
  --panel-border: rgba(87, 55, 33, 0.12);
  --text: #2e2018;
  --muted: #6a584c;
  --primary: #ba4a2f;
  --primary-strong: #98341d;
  --shadow: 0 20px 60px rgba(66, 38, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 30%),
    radial-gradient(circle at bottom right, rgba(186, 74, 47, 0.15), transparent 30%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 100%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
}

.hero-copy {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel h2 {
  margin: 0;
  font-size: 1.1rem;
}

.panel-copy {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

textarea {
  width: 100%;
  min-height: 360px;
  resize: vertical;
  border: 1px solid rgba(87, 55, 33, 0.14);
  border-radius: 20px;
  padding: 18px;
  font: inherit;
  line-height: 1.8;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

textarea:focus {
  outline: none;
  border-color: rgba(186, 74, 47, 0.56);
  box-shadow: 0 0 0 4px rgba(186, 74, 47, 0.12);
  transform: translateY(-1px);
}

.actions {
  margin-top: 16px;
}

.turnstile-block {
  margin-top: 16px;
}

.turnstile-copy {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.turnstile-container {
  min-height: 66px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary-button {
  background: var(--primary);
  color: #fffaf4;
  font-weight: 700;
}

.primary-button:hover:not(:disabled) {
  background: var(--primary-strong);
}

.ghost-button {
  background: rgba(186, 74, 47, 0.09);
  color: var(--primary-strong);
  font-weight: 700;
}

.status-text {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 32px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  textarea {
    min-height: 280px;
  }
}