:root {
  --bg: #f5efe7;
  --paper: rgba(255, 251, 246, 0.92);
  --ink: #1f2721;
  --muted: #5b5a52;
  --line: rgba(34, 39, 33, 0.12);
  --warm: #a85d20;
  --warm-soft: #fff0e0;
  --cool: #245d72;
  --cool-soft: #e5f1f5;
  --sage: #2e6f5e;
  --sage-soft: #e7f5ef;
  --deep: #4e376c;
  --deep-soft: #efe7f6;
  --good: #216249;
  --bad: #9a3428;
  --shadow: 0 24px 56px rgba(63, 48, 28, 0.13);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(168, 93, 32, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(36, 93, 114, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf8f4 0%, #f6f0e8 54%, #ece3d8 100%);
}

.page-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 84%);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero,
.panel,
.download-panel {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 24px;
  padding: 30px;
  border-radius: 36px;
}

.hero-copy {
  padding: 8px 6px 10px;
}

.panel,
.download-panel {
  margin-top: 24px;
  padding: 26px;
  border-radius: 30px;
}

.hero::after,
.panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(36, 93, 114, 0.14), transparent 70%);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

h2 {
  margin: 6px 0 0;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
}

h3 {
  margin: 8px 0 0;
  font-size: 1.15rem;
}

.eyebrow,
.step,
.mini-kicker,
.bank-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

.hero-copy .eyebrow {
  margin-bottom: 14px;
}

.intro,
.panel-copy,
.response-label,
.feedback-line,
figcaption {
  line-height: 1.6;
  color: #4e4b44;
}

.intro-list {
  margin: 0;
  padding-left: 22px;
  color: #4e4b44;
}

.intro-list li + li {
  margin-top: 8px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.button.primary {
  background: linear-gradient(135deg, var(--warm), #c97c3a);
  color: #fff;
  box-shadow: 0 14px 28px rgba(168, 93, 32, 0.25);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border: 1px solid var(--line);
}

.dual-coding-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(168, 93, 32, 0.11), transparent 40%),
    rgba(255, 255, 255, 0.72);
}

.dual-card,
.diagram-card,
.bank-panel,
.sort-card {
  min-width: 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.dual-card {
  padding: 18px;
}

.dual-link {
  display: grid;
  place-items: center;
}

.dual-link span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 10px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--muted);
}

.venn-frame {
  position: relative;
  min-height: 320px;
  margin-top: 10px;
  border-radius: 26px;
  border: 1px solid rgba(34, 39, 33, 0.14);
  background:
    radial-gradient(circle at 18% 22%, rgba(36, 93, 114, 0.1), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(168, 93, 32, 0.1), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(94, 73, 130, 0.08), transparent 28%),
    rgba(252, 250, 246, 0.95);
  overflow: hidden;
}

.venn-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(34, 39, 33, 0.1);
  pointer-events: none;
}

.venn-label {
  position: absolute;
  top: 16px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.venn-group-label {
  position: absolute;
  top: 64px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.venn-group-label-left {
  left: 14%;
}

.venn-group-label-right {
  right: 14%;
}

.venn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 10px;
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid rgba(34, 39, 33, 0.12);
  color: var(--ink);
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 16px 28px rgba(58, 44, 27, 0.08);
}

.venn span {
  max-width: 74px;
  font-size: 0.78rem;
}

.venn-waterfall {
  top: 118px;
  left: 6%;
  background: rgba(225, 241, 251, 0.88);
}

.venn-spiral {
  top: 118px;
  left: 18%;
  background: rgba(231, 245, 234, 0.84);
}

.venn-rad {
  top: 118px;
  left: 48%;
  background: rgba(255, 241, 207, 0.86);
}

.venn-agile {
  top: 118px;
  left: 60%;
  background: rgba(247, 231, 251, 0.84);
}

.venn-xp {
  top: 118px;
  left: 72%;
  background: rgba(252, 227, 227, 0.9);
}

.venn-time {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.venn-time span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.venn-time-line {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 39, 33, 0.25), rgba(34, 39, 33, 0.72));
}

.venn-time-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid rgba(34, 39, 33, 0.72);
  transform: translateY(-50%);
}

.dual-points {
  margin: 0;
  padding-left: 20px;
}

.dual-points li + li {
  margin-top: 10px;
}

.panel-warm {
  background:
    linear-gradient(135deg, rgba(168, 93, 32, 0.07), transparent 40%),
    var(--paper);
}

.panel-cool {
  background:
    linear-gradient(135deg, rgba(36, 93, 114, 0.07), transparent 40%),
    var(--paper);
}

.panel-sage {
  background:
    linear-gradient(135deg, rgba(46, 111, 94, 0.08), transparent 40%),
    var(--paper);
}

.panel-deep {
  background:
    linear-gradient(135deg, rgba(78, 55, 108, 0.08), transparent 40%),
    var(--paper);
}

.panel-heading,
.sequence-head,
.diagram-head,
.sort-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

#activity1 .panel-heading {
  margin-bottom: 18px;
}

#activity1 .panel-copy {
  margin-bottom: 20px;
}

.panel-cool .panel-heading {
  margin-bottom: 18px;
}

.panel-cool > .panel-copy {
  margin-bottom: 22px;
}

.panel-sage .panel-heading {
  margin-bottom: 18px;
}

.panel-sage > .panel-copy {
  margin-bottom: 22px;
}

.panel-deep .panel-heading {
  margin-bottom: 18px;
}

.panel-deep > .panel-copy {
  margin-bottom: 22px;
}

.sort-layout,
.timeline-layout {
  display: grid;
  gap: 18px;
}

.diagram-card,
.sort-card {
  padding: 18px;
}

.diagram-card .diagram-head {
  margin-bottom: 16px;
}

.choice-select,
.timeline-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(34, 39, 33, 0.12);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--ink);
}

.long-response {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 39, 33, 0.12);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--ink);
  resize: vertical;
}

.response-label {
  display: block;
  margin: 16px 0 10px;
  font-weight: 700;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.diagram-surface {
  margin: 18px 0 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(247, 244, 239, 0.92);
}

.diagram-card .long-response {
  margin-top: 6px;
}

.waterfall-diagram-surface {
  position: relative;
  min-height: 680px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(36, 93, 114, 0.08), transparent 22%),
    rgba(248, 246, 241, 0.96);
}

.waterfall-diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.waterfall-diagram-lines path {
  fill: none;
  stroke: #111;
  stroke-width: 2.8;
}

.waterfall-pill {
  position: absolute;
  width: 126px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 28px;
  border: 1px solid rgba(34, 39, 33, 0.12);
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 10px 18px rgba(49, 38, 24, 0.08);
}

.pill-feasibility {
  top: 44px;
  left: 28px;
  background: #ffe7d6;
}

.pill-requirements {
  top: 132px;
  left: 86px;
  background: #e1f1fb;
}

.pill-analysis {
  top: 220px;
  left: 146px;
  background: #e7f5ea;
}

.pill-coding {
  top: 308px;
  left: 206px;
  background: #f7e7fb;
}

.pill-testing {
  top: 396px;
  left: 266px;
  background: #fff1cf;
}

.pill-evaluation {
  top: 484px;
  left: 326px;
  background: #fce3e3;
}

.pill-maintenance {
  top: 572px;
  left: 386px;
  background: #ece8ff;
}

.rad-diagram-surface {
  position: relative;
  min-height: 560px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(168, 93, 32, 0.08), transparent 24%),
    rgba(248, 246, 241, 0.96);
}

.rad-title-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rad-diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rad-diagram-lines path {
  fill: none;
  stroke: #111;
  stroke-width: 2.8;
}

.rad-pill {
  position: absolute;
  width: 126px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 28px;
  border: 1px solid rgba(34, 39, 33, 0.12);
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 10px 18px rgba(49, 38, 24, 0.08);
}

.rad-pill-feasibility {
  top: 92px;
  left: 238px;
  background: #ffe7d6;
}

.rad-pill-requirements {
  top: 182px;
  left: 388px;
  background: #e1f1fb;
}

.rad-pill-analysis {
  top: 272px;
  left: 388px;
  background: #e7f5ea;
}

.rad-pill-coding {
  top: 362px;
  left: 388px;
  background: #f7e7fb;
}

.rad-pill-testing {
  top: 452px;
  left: 286px;
  background: #fff1cf;
}

.rad-pill-evaluation {
  top: 362px;
  left: 130px;
  background: #fce3e3;
}

.rad-pill-maintenance {
  top: 252px;
  left: 0;
  background: #ece8ff;
}

.image-surface {
  overflow: hidden;
}

.image-surface img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f8f6f1;
}

.image-surface figcaption {
  padding: 12px 14px 14px;
}

.concept-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.canvas-panel {
  display: grid;
  gap: 12px;
}

.canvas-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.key-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.concept-canvas {
  position: relative;
  min-height: 576px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(36, 93, 114, 0.08) 0%, rgba(36, 93, 114, 0.08) 50%, rgba(46, 111, 94, 0.08) 50%, rgba(46, 111, 94, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 239, 231, 0.72));
  overflow: hidden;
}

.methodology-canvas::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(34, 39, 33, 0.1);
}

.canvas-band-title {
  position: absolute;
  top: 16px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--muted);
}

.canvas-band-title-left {
  left: 18px;
}

.canvas-band-title-right {
  right: 18px;
}

.canvas-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: auto;
}

.canvas-link {
  stroke: #111;
  stroke-width: 3;
  fill: none;
  cursor: pointer;
  pointer-events: stroke;
}

.canvas-link-draft {
  stroke-dasharray: 8 6;
  opacity: 0.85;
  cursor: default;
  pointer-events: none;
}

.canvas-node {
  position: absolute;
  width: 148px;
  height: 58px;
  padding: 10px 30px 10px 12px;
  border-radius: 20px;
  border: 1px solid rgba(34, 39, 33, 0.14);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 28px rgba(55, 43, 28, 0.12);
  cursor: grab;
  text-align: center;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-node:active {
  cursor: grabbing;
}

.canvas-node-label {
  display: block;
  font-weight: 800;
  line-height: 1.2;
  font-size: 0.92rem;
}

.canvas-node[data-term-id="feasibility"] {
  background: #ffe7d6;
}

.canvas-node[data-term-id="requirements"] {
  background: #e1f1fb;
}

.canvas-node[data-term-id="analysis"] {
  background: #e7f5ea;
}

.canvas-node[data-term-id="implementation"] {
  background: #f7e7fb;
}

.canvas-node[data-term-id="testing"] {
  background: #fff1cf;
}

.canvas-node[data-term-id="evaluation"] {
  background: #fce3e3;
}

.canvas-node[data-term-id="maintenance"] {
  background: #ece8ff;
}

.canvas-node-delete {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1rem;
  color: var(--muted);
  z-index: 3;
}

.canvas-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--warm);
  box-shadow: 0 4px 10px rgba(55, 43, 28, 0.14);
  cursor: crosshair;
  z-index: 2;
}

.canvas-node[data-term-id="feasibility"] .canvas-handle {
  background: #ffe7d6;
  border-color: #d48a58;
}

.canvas-node[data-term-id="requirements"] .canvas-handle {
  background: #e1f1fb;
  border-color: #5a9fc9;
}

.canvas-node[data-term-id="analysis"] .canvas-handle {
  background: #e7f5ea;
  border-color: #5f9a6d;
}

.canvas-node[data-term-id="implementation"] .canvas-handle {
  background: #f7e7fb;
  border-color: #aa79c7;
}

.canvas-node[data-term-id="testing"] .canvas-handle {
  background: #fff1cf;
  border-color: #caa142;
}

.canvas-node[data-term-id="evaluation"] .canvas-handle {
  background: #fce3e3;
  border-color: #c97676;
}

.canvas-node[data-term-id="maintenance"] .canvas-handle {
  background: #ece8ff;
  border-color: #8577cc;
}

.canvas-handle-top {
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.canvas-handle-right {
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
}

.canvas-handle-bottom {
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.canvas-handle-left {
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
}

.sort-layout {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
}

.bank-panel {
  padding: 24px;
}

.chip-bank,
.drop-zone {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  min-height: 120px;
}

.concept-bank-panel .chip-bank {
  min-height: auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
}

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

.drop-zone {
  min-height: 360px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 39, 33, 0.16);
  background: rgba(250, 248, 244, 0.86);
  align-content: flex-start;
}

.sort-card {
  padding: 24px;
}

.sort-card .sort-head {
  margin-bottom: 20px;
}

.task-chip {
  appearance: none;
  border: 1px solid rgba(34, 39, 33, 0.14);
  background: #fff;
  border-radius: 28px;
  padding: 10px 14px;
  cursor: grab;
  font: inherit;
  color: var(--ink);
  box-shadow: 0 10px 18px rgba(40, 34, 24, 0.06);
  white-space: normal;
  line-height: 1.25;
}

.word-wall-chip {
  width: 136px;
  height: 54px;
  justify-content: center;
  border-radius: 20px;
  padding: 8px 10px;
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
  font-size: 0.8rem;
  white-space: normal;
}

.word-wall-chip[data-id="feasibility"] {
  background: #ffe7d6;
}

.word-wall-chip[data-id="requirements"] {
  background: #e1f1fb;
}

.word-wall-chip[data-id="analysis"] {
  background: #e7f5ea;
}

.word-wall-chip[data-id="implementation"] {
  background: #f7e7fb;
}

.word-wall-chip[data-id="testing"] {
  background: #fff1cf;
}

.word-wall-chip[data-id="evaluation"] {
  background: #fce3e3;
}

.word-wall-chip[data-id="maintenance"] {
  background: #ece8ff;
}

.task-chip:active {
  cursor: grabbing;
}

.task-chip.is-correct {
  background: #e3f4ea;
  border-color: rgba(33, 98, 73, 0.35);
  color: #1f5f47;
}

.task-chip.is-incorrect {
  background: #fbe5e3;
  border-color: rgba(154, 52, 40, 0.3);
  color: #8f342b;
}

.drop-zone.is-over,
.chip-bank.is-over {
  outline: 3px solid rgba(168, 93, 32, 0.24);
}

.timeline-layout {
  grid-template-columns: 1fr;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.timeline-card.is-correct-order {
  background: #e6f4ec;
  border-color: rgba(33, 98, 73, 0.28);
}

.timeline-card.is-incorrect-order {
  background: #fbe8e5;
  border-color: rgba(154, 52, 40, 0.24);
}

.timeline-controls {
  display: grid;
  gap: 8px;
}

.move-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(34, 39, 33, 0.14);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.timeline-select.is-correct {
  background: #e3f4ea;
  border-color: rgba(33, 98, 73, 0.35);
  color: #1f5f47;
}

.timeline-select.is-incorrect {
  background: #fbe5e3;
  border-color: rgba(154, 52, 40, 0.3);
  color: #8f342b;
}

.timeline-copy p {
  margin-bottom: 4px;
}

.timeline-title {
  margin: 0;
  font-size: 1.05rem;
}

.floating-download {
  position: relative;
  margin: 28px auto 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.floating-download .button {
  box-shadow: 0 16px 30px rgba(58, 44, 27, 0.22);
}

.floating-download .feedback-line {
  margin: 0;
  padding: 0;
}

.feedback-line.is-good {
  color: var(--good);
}

.feedback-line.is-bad {
  color: var(--bad);
}

@media (max-width: 960px) {
  .dual-coding-panel,
  .concept-layout,
  .sort-layout,
  .timeline-layout,
  .diagram-grid {
    grid-template-columns: 1fr;
  }

  .dual-link {
    display: none;
  }

  .sort-grid {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .timeline-card .timeline-select {
    grid-column: 1 / -1;
  }

  .venn-frame {
    min-height: 380px;
  }

  .venn-group-label {
    top: 58px;
    font-size: 0.68rem;
  }

  .venn-group-label-left {
    left: 12%;
  }

  .venn-group-label-right {
    right: 12%;
  }

  .venn-waterfall {
    top: 92px;
    left: 8%;
  }

  .venn-spiral {
    top: 92px;
    left: 32%;
  }

  .venn-rad {
    top: 210px;
    left: 8%;
  }

  .venn-agile {
    top: 210px;
    left: 32%;
  }

  .venn-xp {
    top: 210px;
    left: 56%;
  }

  .venn-time {
    bottom: 18px;
  }

}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .panel,
  .download-panel {
    padding: 20px;
    border-radius: 24px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .venn-frame {
    min-height: 420px;
  }

  .venn {
    transform: scale(0.74);
    transform-origin: center;
  }

  .venn-waterfall {
    top: 92px;
    left: 2%;
  }

  .venn-spiral {
    top: 92px;
    left: 26%;
  }

  .venn-rad {
    top: 198px;
    left: 2%;
  }

  .venn-agile {
    top: 198px;
    left: 26%;
  }

  .venn-xp {
    top: 198px;
    left: 50%;
  }

  .venn-time {
    left: 6%;
    right: 6%;
    bottom: 14px;
  }

  .venn-group-label {
    font-size: 0.62rem;
    padding: 6px 9px;
  }

  .venn-group-label-left {
    left: 8%;
  }

  .venn-group-label-right {
    right: 8%;
  }

}
