:root {
  color-scheme: only light;
  --ink: #1f2937;
  --muted: #5c6476;
  --paper: #f5efe4;
  --panel: rgba(255, 252, 247, 0.92);
  --line: #d7c7aa;
  --accent: #b45309;
  --accent-deep: #7c2d12;
  --accent-soft: #fde6bf;
  --sea: #0f766e;
  --sky: #dbeafe;
  --shadow: 0 20px 50px rgba(63, 43, 18, 0.14);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.24), transparent 34%),
    linear-gradient(180deg, #f4ead7 0%, #f9f5ee 48%, #efe5d4 100%);
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px);
  padding: 48px 6vw 12px;
  align-items: start;
}

.hero-copy,
.hero-card,
.panel {
  background: var(--panel);
  border: 1px solid rgba(215, 199, 170, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-copy {
  border-radius: 30px;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -50px -60px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.18), transparent 68%);
}

.eyebrow,
.section-tag {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.5rem);
  line-height: 0.98;
  max-width: 12ch;
}

.lede {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions,
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.score-label {
  margin: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #114044;
  font-weight: 800;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(52, 31, 9, 0.14);
}

button:focus-visible,
.dropzone:focus-visible,
.idea-card:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
}

.secondary {
  background: #ebe2d2;
  color: var(--ink);
}

.hero-card,
.panel {
  border-radius: 26px;
  padding: 24px;
}

.hero-card {
  position: relative;
}

.hero-figure {
  margin: 0 0 18px;
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.hero-figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(124, 45, 18, 0.3);
  pointer-events: none;
}

.fact-list {
  margin: 18px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.layout {
  display: grid;
  gap: 24px;
  padding: 0 6vw 56px;
  margin-top: -10px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(280px, 0.8fr);
  grid-template-areas:
    "timeline decision progress"
    "compare compare progress"
    "notes notes progress";
}

.timeline-panel { grid-area: timeline; }
.decision-panel { grid-area: decision; }
.compare-panel { grid-area: compare; }
.notes-panel { grid-area: notes; }
.progress-panel { grid-area: progress; align-self: start; position: sticky; top: 18px; }

.panel-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 247, 232, 0.85);
}

.timeline-step p,
.save-note,
.summary-box p,
.checklist {
  color: var(--muted);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ead0a0, #fef3c7);
  color: var(--accent-deep);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 14px;
}

.choice-pill {
  background: #f7efe2;
  color: var(--ink);
  border: 1px solid transparent;
}

.choice-pill.selected {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.12), rgba(15, 118, 110, 0.16));
  border-color: rgba(124, 45, 18, 0.25);
}

.field-label {
  display: block;
  margin: 14px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
  color: var(--ink);
}

.save-note {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.sort-layout {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.3fr);
}

.idea-bank,
.drop-items {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 120px;
}

.idea-bank {
  padding: 16px;
  border-radius: 20px;
  border: 1px dashed rgba(124, 45, 18, 0.3);
  background: rgba(255, 249, 238, 0.8);
}

.sort-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dropzone {
  border-radius: 22px;
  padding: 18px;
  border: 2px dashed rgba(15, 118, 110, 0.25);
  background: rgba(239, 246, 255, 0.42);
  min-height: 220px;
}

.dropzone.over {
  border-color: rgba(180, 83, 9, 0.5);
  background: rgba(253, 230, 191, 0.55);
}

.dropzone h3 {
  margin-bottom: 6px;
}

.dropzone p {
  margin: 0 0 12px;
  color: var(--muted);
}

.idea-card {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  background: white;
  color: var(--ink);
  border: 1px solid rgba(215, 199, 170, 0.9);
  padding: 14px 16px;
  font-weight: 700;
  cursor: grab;
}

.idea-card.dragging {
  opacity: 0.55;
}

.idea-card.selected {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.24);
}

.prompt-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
}

.prompt-chip {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(219, 234, 254, 0.85));
  color: #114044;
}

.checklist {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(250, 245, 238, 0.82);
  border: 1px solid rgba(215, 199, 170, 0.8);
}

.checklist li::before {
  margin-right: 10px;
  font-weight: 800;
}

.checklist li.pending::before {
  content: "○";
  color: var(--muted);
}

.checklist li.done::before {
  content: "●";
  color: var(--sea);
}

.summary-box {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.95), rgba(253, 230, 191, 0.55));
}

.summary-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-deep);
}

#argumentPreview {
  margin: 0;
}

.argument-empty,
.argument-preview p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.argument-preview {
  display: grid;
  gap: 12px;
}

.argument-section {
  padding-top: 10px;
  border-top: 1px solid rgba(124, 45, 18, 0.12);
}

.argument-section:first-child {
  padding-top: 0;
  border-top: none;
}

.argument-title {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

@media (max-width: 1120px) {
  .layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "timeline decision"
      "compare compare"
      "notes progress";
  }

  .progress-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .hero,
  .layout,
  .sort-layout,
  .sort-columns,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-areas:
      "timeline"
      "decision"
      "compare"
      "notes"
      "progress";
  }

  h1 {
    max-width: none;
  }
}
