:root {
  color-scheme: only light;
  --ink: #1f2937;
  --muted: #5c6476;
  --panel: rgba(255, 252, 247, 0.92);
  --line: #d7c7aa;
  --accent: #3b5ba9;
  --accent-deep: #24345f;
  --accent-soft: #e4ebff;
  --sea: #0f766e;
  --paper: #f5efe4;
  --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(59, 91, 169, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 32%),
    linear-gradient(180deg, #f4ead7 0%, #f9f5ee 48%, #efe5d4 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  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,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.hero {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  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);
  border-radius: 28px;
}

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

.hero-inline {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.hero-text {
  flex: 1 1 0;
  min-width: 0;
}

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

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

.hero-figure,
.task-figure {
  margin: 0 0 18px;
  border-radius: 18px;
}

.hero-figure img,
.task-figure img {
  display: block;
  width: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  max-width: 100%;
}

.hero-figure img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.hero-figure-inline {
  flex: 0 0 320px;
  width: 320px;
  margin: 4px 0 0 auto;
}

.hero-figure-inline img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.task-figure img {
  aspect-ratio: 16 / 8;
  object-fit: contain;
}

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

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

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

.lede,
.panel-heading p:last-child,
.fact-list,
.support-box p,
.argument-empty {
  color: var(--muted);
}

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

.hero-actions,
.prompt-grid,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

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

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

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

.status-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(59, 91, 169, 0.12), rgba(15, 118, 110, 0.12));
}

.status-value {
  margin: 0;
  font-weight: 800;
}

.layout {
  display: grid;
  gap: 24px;
  padding: 0 6vw 56px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(280px, 0.8fr);
  grid-template-areas:
    "task1 task2 progress"
    "task3 task3 progress";
}

.task-panel:nth-of-type(1) { grid-area: task1; }
.task-panel:nth-of-type(2) { grid-area: task2; }
.task-panel:nth-of-type(3) { grid-area: task3; }
.progress-panel { grid-area: progress; align-self: start; position: sticky; top: 18px; }

.field-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.compact-stack {
  gap: 8px;
}

.field-label {
  font-weight: 800;
}

textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

textarea {
  min-height: 108px;
  resize: vertical;
  padding: 16px 18px;
  line-height: 1.65;
  vertical-align: top;
}

input[type="text"] {
  padding: 14px 18px;
  line-height: 1.4;
}

.prompt-grid {
  margin-top: 18px;
}

.prompt-chip {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.choice-block {
  margin-top: 22px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 248, 239, 0.88);
}

.choice-row {
  margin-top: 14px;
}

.choice-pill {
  background: #e7ecfb;
  color: var(--accent-deep);
}

.choice-pill.selected {
  background: linear-gradient(135deg, var(--sea), #115e59);
  color: white;
}

.support-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 248, 239, 0.88);
  border: 1px solid rgba(215, 199, 170, 0.7);
}

.panel-heading {
  display: grid;
  gap: 6px;
}

.task-panel .panel-heading p:last-child,
.support-box p,
.task-figure figcaption,
.summary-chunk,
.argument-empty {
  max-width: 68ch;
}

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

.checklist li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 700;
}

.checklist li.done {
  background: rgba(219, 234, 254, 0.9);
  color: var(--accent-deep);
}

.summary-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(59, 91, 169, 0.1), rgba(15, 118, 110, 0.1));
}

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

.summary-chunk {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "task1 task2"
      "task3 task3"
      "progress progress";
  }

  .progress-panel {
    position: static;
  }
}

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

  .hero-inline {
    flex-direction: column;
  }

  .hero-figure-inline {
    width: 100%;
    flex-basis: auto;
    margin-left: 0;
  }

  .layout {
    grid-template-areas:
      "task1"
      "task2"
      "task3"
      "progress";
  }
}
