:root {
  --bg: #fbf8f3;
  --bg-soft: #f4efe7;
  --card: #ffffff;
  --ink: #151923;
  --muted: #687083;
  --line: #e7dfd3;
  --blue: #4e8cff;
  --violet: #8b6cff;
  --warm: #ffb36b;
  --green: #7cc9a7;
  --rose: #ff8f9c;
  --shadow: 0 24px 60px rgba(37, 42, 61, 0.11);
  --small-shadow: 0 14px 34px rgba(37, 42, 61, 0.08);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(78, 140, 255, 0.14), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(139, 108, 255, 0.14), transparent 28rem),
    linear-gradient(180deg, var(--bg), #fffdf9 52%, #f9f4ec);
  color: var(--ink);
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

button, input, textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(231, 223, 211, 0.78);
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet) 55%, var(--warm));
  color: white;
  box-shadow: 0 12px 25px rgba(78, 140, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: #3f4657;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(231, 223, 211, 0.88);
  color: var(--ink);
}

.signin-link {
  margin-left: 6px;
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 24px rgba(21, 25, 35, 0.18);
}

.signin-link:hover,
.signin-link.active {
  background: #242a38;
  color: white;
  box-shadow: 0 14px 24px rgba(21, 25, 35, 0.2);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-lines {
  position: relative;
}

.menu-lines::before {
  position: absolute;
  top: -6px;
}

.menu-lines::after {
  position: absolute;
  top: 6px;
}

main {
  overflow: hidden;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px 22px;
}

.section-tight {
  padding-top: 54px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 46px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: #465065;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 650;
  box-shadow: 0 10px 26px rgba(37, 42, 61, 0.05);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

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

h1 {
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.lede {
  color: #50596d;
  font-size: clamp(1.08rem, 1.5vw, 1.27rem);
  max-width: 680px;
  margin-bottom: 28px;
}

.page-lede {
  color: #566074;
  font-size: 1.14rem;
  max-width: 760px;
  margin-bottom: 0;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 720;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 34px rgba(21, 25, 35, 0.2);
}

.btn-primary:hover {
  background: #242a38;
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 14px 26px rgba(37, 42, 61, 0.08);
}

.btn-secondary:hover {
  border-color: #d6cabb;
}

.link-button {
  border: 0;
  background: transparent;
  color: #45506a;
  font-weight: 680;
  cursor: pointer;
  padding: 0;
}

.link-button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(231, 223, 211, 0.9);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--small-shadow);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(78, 140, 255, 0.18), rgba(139, 108, 255, 0.16));
  color: #4964c8;
}

.board-shell {
  position: relative;
  border: 1px solid rgba(231, 223, 211, 0.95);
  border-radius: 34px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
}

.board-shell::before {
  content: "";
  position: absolute;
  inset: -70px -50px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 107, 0.32), transparent 68%);
  z-index: -1;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 14px;
}

.board-title {
  font-weight: 780;
  letter-spacing: -0.025em;
}

.board-subtitle {
  color: var(--muted);
  font-size: 0.83rem;
}

.avatar-row {
  display: flex;
  align-items: center;
}

.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #fff;
  margin-left: -7px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar:nth-child(2) {
  background: linear-gradient(135deg, var(--warm), var(--rose));
}

.avatar:nth-child(3) {
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.canvas-mock {
  position: relative;
  min-height: 468px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 14px;
}

.board-surface {
  position: relative;
  min-height: 468px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(104, 112, 131, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 112, 131, 0.055) 1px, transparent 1px),
    #fffefa;
  background-size: 30px 30px;
}

.lanes {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  z-index: 1;
}

.lane {
  border: 1px dashed rgba(104, 112, 131, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  padding: 12px;
}

.lane-label {
  color: #697185;
  font-size: 0.78rem;
  font-weight: 720;
  margin-bottom: 12px;
}

.note {
  position: absolute;
  z-index: 4;
  width: 132px;
  border-radius: 18px;
  padding: 12px;
  background: #fff5bf;
  box-shadow: 0 14px 28px rgba(37, 42, 61, 0.12);
  border: 1px solid rgba(206, 176, 81, 0.24);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.note span {
  display: block;
  margin-top: 8px;
  color: rgba(21, 25, 35, 0.55);
  font-weight: 620;
  font-size: 0.72rem;
}

.note-blue {
  background: #e9f1ff;
  border-color: rgba(78, 140, 255, 0.18);
}

.note-violet {
  background: #f1ecff;
  border-color: rgba(139, 108, 255, 0.18);
}

.note-warm {
  background: #fff0df;
  border-color: rgba(255, 179, 107, 0.22);
}

.note-green {
  background: #e9f8f0;
  border-color: rgba(124, 201, 167, 0.22);
}

.card-block {
  position: absolute;
  z-index: 3;
  width: 155px;
  border-radius: 18px;
  padding: 13px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(37, 42, 61, 0.1);
}

.card-block strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.progress {
  height: 7px;
  border-radius: 999px;
  background: #eee8df;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.connector-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.connector-lines path {
  fill: none;
  stroke: rgba(78, 140, 255, 0.42);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
}

.cursor-tag {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #151923;
  color: white;
  font-size: 0.72rem;
  font-weight: 740;
  box-shadow: 0 12px 24px rgba(21, 25, 35, 0.2);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
}

.activity-panel {
  border-radius: 26px;
  background: #161b28;
  color: white;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.activity-panel h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.activity-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: start;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.activity-dot {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.13);
  display: grid;
  place-items: center;
}

.activity-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--warm));
}

.kicker-grid {
  margin-top: 38px;
}

.page-head {
  display: grid;
  gap: 16px;
  max-width: 840px;
}

.page-shell {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 28px;
  align-items: start;
}

.panel {
  border-radius: 32px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  padding: 28px;
}

.room-map {
  display: grid;
  gap: 14px;
}

.room-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.room-row p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.94rem;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(78, 140, 255, 0.16), rgba(255, 179, 107, 0.18));
  font-weight: 800;
  color: #3c57b7;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(231, 223, 211, 0.82);
  background: rgba(255, 255, 255, 0.7);
}

.feature-list-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.check-icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #eef6ff;
  color: #426de3;
  font-weight: 900;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.flow-step {
  min-height: 108px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: white;
  padding: 16px;
  box-shadow: var(--small-shadow);
}

.flow-step small {
  display: block;
  color: var(--muted);
  font-weight: 760;
  margin-bottom: 8px;
}

.template-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.status-message {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: #4c566d;
  font-weight: 650;
}

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

.template-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  background: white;
  box-shadow: var(--small-shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.template-card:hover,
.template-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(78, 140, 255, 0.46);
  box-shadow: 0 20px 42px rgba(37, 42, 61, 0.12);
  outline: none;
}

.template-card.selected {
  border-color: rgba(78, 140, 255, 0.72);
  box-shadow: 0 20px 42px rgba(78, 140, 255, 0.18);
}

.template-card.selected::after {
  content: "Selected";
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #315fca;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 800;
}

.template-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.template-card p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0;
}

.mini-preview {
  height: 126px;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  background:
    linear-gradient(rgba(104, 112, 131, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 112, 131, 0.06) 1px, transparent 1px),
    #fffefa;
  background-size: 18px 18px;
  position: relative;
  overflow: hidden;
}

.mini-preview span {
  position: absolute;
  border-radius: 9px;
  background: #fff2b8;
  box-shadow: 0 8px 16px rgba(37, 42, 61, 0.1);
}

.preview-roadmap span:nth-child(1) { width: 68px; height: 18px; left: 14px; top: 18px; background: #e9f1ff; }
.preview-roadmap span:nth-child(2) { width: 86px; height: 18px; left: 28px; top: 51px; background: #f1ecff; }
.preview-roadmap span:nth-child(3) { width: 104px; height: 18px; left: 42px; top: 84px; background: #fff0df; }
.preview-sprint span:nth-child(1) { width: 38px; height: 72px; left: 18px; top: 28px; background: #e9f8f0; }
.preview-sprint span:nth-child(2) { width: 38px; height: 50px; left: 70px; top: 50px; background: #e9f1ff; }
.preview-sprint span:nth-child(3) { width: 38px; height: 84px; left: 122px; top: 16px; background: #fff2b8; }
.preview-journey span:nth-child(1) { width: 36px; height: 36px; left: 16px; top: 44px; background: #e9f1ff; border-radius: 50%; }
.preview-journey span:nth-child(2) { width: 36px; height: 36px; left: 74px; top: 44px; background: #f1ecff; border-radius: 50%; }
.preview-journey span:nth-child(3) { width: 36px; height: 36px; left: 132px; top: 44px; background: #fff0df; border-radius: 50%; }
.preview-notes span:nth-child(1) { width: 122px; height: 12px; left: 18px; top: 22px; background: #dde6f6; }
.preview-notes span:nth-child(2) { width: 88px; height: 12px; left: 18px; top: 48px; background: #e9f8f0; }
.preview-notes span:nth-child(3) { width: 132px; height: 42px; left: 18px; top: 74px; background: #fff2b8; }
.preview-matrix span:nth-child(1) { width: 65px; height: 44px; left: 18px; top: 18px; background: #e9f1ff; }
.preview-matrix span:nth-child(2) { width: 65px; height: 44px; left: 94px; top: 18px; background: #f1ecff; }
.preview-matrix span:nth-child(3) { width: 65px; height: 44px; left: 56px; top: 72px; background: #fff0df; }
.preview-bug span:nth-child(1) { width: 132px; height: 16px; left: 18px; top: 20px; background: #ffedf0; }
.preview-bug span:nth-child(2) { width: 92px; height: 16px; left: 18px; top: 53px; background: #fff2b8; }
.preview-bug span:nth-child(3) { width: 112px; height: 16px; left: 18px; top: 86px; background: #e9f8f0; }
.preview-launch span:nth-child(1) { width: 16px; height: 16px; left: 22px; top: 25px; background: #e9f8f0; }
.preview-launch span:nth-child(2) { width: 16px; height: 16px; left: 22px; top: 55px; background: #e9f8f0; }
.preview-launch span:nth-child(3) { width: 108px; height: 58px; left: 55px; top: 34px; background: #e9f1ff; }
.preview-research span:nth-child(1) { width: 48px; height: 44px; left: 16px; top: 22px; background: #fff2b8; }
.preview-research span:nth-child(2) { width: 48px; height: 44px; left: 72px; top: 42px; background: #f1ecff; }
.preview-research span:nth-child(3) { width: 48px; height: 44px; left: 128px; top: 62px; background: #e9f8f0; }
.preview-retro span:nth-child(1) { width: 44px; height: 78px; left: 20px; top: 26px; background: #e9f8f0; }
.preview-retro span:nth-child(2) { width: 44px; height: 78px; left: 76px; top: 26px; background: #fff2b8; }
.preview-retro span:nth-child(3) { width: 44px; height: 78px; left: 132px; top: 26px; background: #ffedf0; }
.preview-calendar span:nth-child(1) { width: 132px; height: 18px; left: 18px; top: 18px; background: #e9f1ff; }
.preview-calendar span:nth-child(2) { width: 56px; height: 56px; left: 18px; top: 54px; background: #fff2b8; }
.preview-calendar span:nth-child(3) { width: 74px; height: 34px; left: 86px; top: 66px; background: #f1ecff; }

.signin-layout {
  min-height: calc(100vh - 83px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 480px);
  gap: 44px;
  align-items: center;
}

.signin-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row label {
  color: #3f4657;
  font-size: 0.92rem;
  font-weight: 720;
}

.input {
  width: 100%;
  border: 1px solid #ded4c7;
  border-radius: 15px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffefa;
  outline: none;
}

.input:focus {
  border-color: rgba(78, 140, 255, 0.76);
  box-shadow: 0 0 0 4px rgba(78, 140, 255, 0.11);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0 18px;
  color: #4e586d;
  font-size: 0.93rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: #4e8cff;
}

.form-message {
  min-height: 52px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fffefa;
  color: #4b556b;
  font-weight: 640;
}

.secondary-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.signin-side {
  display: grid;
  gap: 18px;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  padding: 22px;
  box-shadow: var(--small-shadow);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px;
  box-shadow: var(--small-shadow);
}

.faq-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.update-list {
  display: grid;
  gap: 16px;
  max-width: 880px;
}

.update-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--small-shadow);
}

.update-date {
  color: #596277;
  font-weight: 800;
  font-size: 0.92rem;
}

.update-type {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #315fca;
  font-size: 0.72rem;
  font-weight: 800;
}

.update-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.footer-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 24px;
}

.footer-small {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 340px;
  margin-top: 14px;
  margin-bottom: 0;
}

.footer-col h3 {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-col a,
.footer-col span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0;
}

.footer-col a:hover {
  color: var(--ink);
}

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

  .template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .menu-button {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-link {
    border-radius: 16px;
    padding: 12px 14px;
  }

  .signin-link {
    margin-left: 0;
  }

  .section {
    padding: 58px 18px;
  }

  .canvas-mock {
    grid-template-columns: 1fr;
  }

  .activity-panel {
    min-height: auto;
  }

  .grid-3,
  .grid-2,
  .grid-4,
  .template-grid,
  .flow-strip {
    grid-template-columns: 1fr;
  }

  .template-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .update-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .board-shell {
    padding: 10px;
    border-radius: 26px;
  }

  .canvas-mock,
  .board-surface {
    min-height: 540px;
  }

  .lanes {
    grid-template-columns: 1fr;
    opacity: 0.65;
  }

  .note,
  .card-block {
    width: 124px;
  }

  .note-one { left: 22px !important; top: 70px !important; }
  .note-two { left: 168px !important; top: 116px !important; }
  .note-three { left: 42px !important; top: 232px !important; }
  .note-four { left: 178px !important; top: 298px !important; }
  .note-five { left: 68px !important; top: 390px !important; }
  .block-one { left: 166px !important; top: 408px !important; }

  h1 {
    letter-spacing: -0.06em;
  }

  .secondary-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }
}
