* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: #f9f8f4;
  color: #24231f;
  font-family: Arial, Helvetica, sans-serif
}

button,
input,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

a {
  color: inherit
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #8a6fe3;
  outline-offset: 3px
}

[hidden] {
  display: none !important
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.skip-link:focus {
  position: absolute;
  z-index: 100;
  background: white;
  padding: 1rem
}

.app {
  max-width: 1800px;
  margin: auto
}

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6.1%;
  border-bottom: 1px solid #e8e6df
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -1.3px
}

.brand-dot,
.footer-brand span {
  color: #7450d4
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  transform: rotate(-8deg)
}

.brand-mark span {
  background: #7150cf;
  border-radius: 3px
}

.brand-mark span:nth-child(2) {
  background: #b8a4ed
}

.brand-mark span:nth-child(3) {
  background: #d5c9f4
}

.topbar-right {
  display: flex;
  gap: 35px;
  align-items: center;
  font-size: 12px;
  font-weight: 700
}

.top-note {
  color: #817f77;
  font-weight: 500
}

.status-dot,
.mock-live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #8eb88f;
  border-radius: 50%;
  margin-right: 7px
}

.top-link {
  text-decoration: none
}

.top-link span {
  margin-left: 8px
}

.landing {
  min-height: 620px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 40px;
  padding: 80px 6.1% 90px
}

.intro {
  max-width: 530px
}

.eyebrow,
.section-kicker,
.panel-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: #7962b1
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px
}

.sparkle {
  font-size: 20px;
  color: #7653ce
}

.intro h1 {
  font-size: clamp(58px, 6.2vw, 92px);
  line-height: .99;
  letter-spacing: -5px;
  margin: 26px 0
}

.intro h1 em,
.how h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #7754cf
}

.intro-copy {
  font-size: 16px;
  line-height: 1.8;
  color: #77756d;
  max-width: 415px;
  margin: 0
}

.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0 45px
}

.button {
  border: 0;
  border-radius: 8px;
  font-weight: 700
}

.primary {
  background: #7151ca;
  color: white;
  padding: 17px 21px;
  box-shadow: 0 5px 0 #5c3db3
}

.primary:hover {
  background: #5f40b9
}

.button span {
  margin-left: 15px
}

.action-note {
  font-size: 11px;
  color: #99978d
}

.action-note span {
  color: #d8aa56;
  font-size: 16px
}

.join-block {
  max-width: 410px
}

.join-title {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6f6d65;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 13px
}

.join-rule {
  height: 1px;
  background: #e1dfd8;
  flex: 1
}

.join-form {
  display: flex;
  gap: 8px
}

.join-form input,
.chat-form input,
.chat-form textarea {
  min-width: 0;
  border: 1px solid #e5e2da;
  background: #fff;
  border-radius: 7px;
  padding: 14px;
  color: #292621
}

.join-form input {
  flex: 1
}

.join-form input::placeholder,
.chat-form input::placeholder,
.chat-form textarea::placeholder {
  color: #aaa79e
}

.join-button {
  background: #eeeae0;
  padding: 0 16px;
  color: #38352f;
  font-size: 12px
}

.feedback {
  font-size: 12px;
  color: #a23c37;
  min-height: 1em;
  margin: 10px 0 0
}

.showcase {
  position: relative;
  padding: 38px 0 12px 20px
}

.showcase-note {
  position: absolute;
  right: 0;
  top: -8px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #aaa69c;
  line-height: 1.5;
  transform: rotate(4deg)
}

.showcase-note strong {
  font-family: Georgia, serif;
  letter-spacing: 0;
  color: #716b61;
  font-size: 14px;
  font-style: italic
}

.showcase-note span {
  font-size: 23px;
  color: #a88bdd;
  padding-left: 9px
}

.mock-window {
  background: white;
  border: 1px solid #e7e4df;
  border-radius: 12px;
  box-shadow: 0 22px 60px #524a3920;
  overflow: hidden;
  transform: rotate(-2deg)
}

.mock-top {
  height: 51px;
  border-bottom: 1px solid #efede8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 10px;
  font-weight: 700;
  color: #77736b
}

.window-dots {
  display: flex;
  gap: 5px
}

.window-dots i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #dfdcd5
}

.mock-live {
  font-size: 9px;
  color: #9a978d
}

.mock-live i {
  width: 6px;
  height: 6px
}

.mock-body {
  display: grid;
  grid-template-columns: 38px 1fr 145px;
  height: 310px
}

.mock-toolbar {
  border-right: 1px solid #efede8;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 15px 0;
  color: #929087;
  font-size: 17px
}

.mock-toolbar span {
  width: 26px;
  height: 26px;
  text-align: center
}

.mock-toolbar .tool-selected {
  background: #f0ebfb;
  border-radius: 5px;
  color: #7753d1
}

.mock-divider {
  border-top: 1px solid #e9e7e0;
  height: 1px !important
}

.mock-toolbar .tool-color {
  background: #8262d4;
  border: 5px solid #eee9fb;
  border-radius: 50%;
  width: 21px;
  height: 21px
}

.mock-board,
.canvas-wrap {
  background-color: #fcfbf8;
  background-image: radial-gradient(#dedbd3 1px, transparent 1px);
  background-size: 19px 19px
}

.mock-board {
  position: relative;
  overflow: hidden
}

.mock-shape {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.2
}

.shape-one {
  left: 9%;
  top: 21%;
  width: 30%;
  height: 28%;
  background: #e8e0fb;
  border: 1px solid #a38bdc;
  border-radius: 6px
}

.shape-one span {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: #8c70d0
}

.shape-two {
  right: 8%;
  top: 15%;
  width: 29%;
  height: 29%;
  border-radius: 50%;
  background: #f9dfb4;
  border: 1px solid #e2be7e
}

.shape-two span {
  position: absolute;
  right: 12px;
  bottom: 9px
}

.shape-three {
  left: 36%;
  bottom: 12%;
  width: 33%;
  height: 24%;
  background: #d7e8d8;
  border: 1px solid #a4c7a6;
  border-radius: 6px;
  transform: rotate(4deg)
}

.mock-line {
  position: absolute;
  height: 1px;
  background: #aaa097;
  transform-origin: left center
}

.line-one {
  left: 39%;
  top: 34%;
  width: 25%;
  transform: rotate(-13deg)
}

.line-two {
  left: 57%;
  top: 46%;
  width: 27%;
  transform: rotate(78deg)
}

.mock-label {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
  color: #a29b90
}

.label-one {
  top: 12%;
  left: 9%;
  transform: rotate(-5deg)
}

.label-two {
  bottom: 6%;
  right: 5%;
  transform: rotate(-6deg)
}

.mock-chat {
  border-left: 1px solid #efede8;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  font-size: 9px
}

.mock-chat>strong {
  font-size: 11px
}

.mock-chat-sub {
  font-size: 7px;
  letter-spacing: 1px;
  color: #b1aca3;
  margin: 5px 0 15px
}

.fake-message {
  display: flex;
  gap: 6px;
  margin: 7px 0
}

.fake-message p {
  line-height: 1.5;
  margin: 0;
  color: #8d8981
}

.fake-message p strong {
  color: #4d4942
}

.avatar {
  height: 20px;
  width: 20px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #655084;
  font-size: 8px
}

.lavender {
  background: #e7dff8
}

.yellow {
  background: #f8e6c2
}

.fake-input {
  margin-top: auto;
  border: 1px solid #ece9e3;
  border-radius: 4px;
  padding: 8px 6px;
  color: #b5b0a9;
  font-size: 8px
}

.fake-input span {
  float: right;
  color: #7957ca
}

.showcase-caption {
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
  color: #aaa49b;
  font-size: 12px;
  margin: 27px 0 0
}

.showcase-caption span {
  color: #b89c66;
  margin-right: 5px
}

.how {
  border-top: 1px solid #e8e6df;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 48px 6.1% 55px
}

.how h2 {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 12px 0
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px
}

.how-steps span {
  color: #aa98d0;
  font-size: 10px;
  font-weight: 800
}

.how-steps h3 {
  font-size: 13px;
  margin: 13px 0 8px
}

.how-steps p {
  color: #929087;
  font-size: 12px;
  line-height: 1.6;
  margin: 0
}

.footer {
  border-top: 1px solid #e8e6df;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 23px 6.1%;
  color: #a3a097;
  font-size: 10px
}

.footer-brand {
  font-size: 15px;
  color: #35332f;
  font-weight: 800;
  letter-spacing: -1px
}

.footer>span:last-child {
  letter-spacing: 1px;
  font-size: 9px
}

.workspace {
  padding: 45px 6.1% 70px
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end
}

.workspace-head h1 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -1.6px;
  margin: 9px 0 0
}

.room-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.code-box {
  background: #f0edf8;
  border-radius: 7px;
  padding: 9px 12px;
  max-width: 255px
}

.code-box span {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #81719f
}

.code-box strong {
  display: block;
  font-size: 11px;
  letter-spacing: .4px;
  overflow-wrap: anywhere;
  margin-top: 4px
}

.small-button {
  background: #e8e1f8;
  color: #6747b6;
  padding: 13px;
  font-size: 11px
}

.text-button,
.clear-button {
  background: none;
  border: 0;
  color: #77736c;
  font-size: 11px;
  font-weight: 700
}

.room-help {
  font-size: 12px;
  color: #848179;
  margin: 12px 0
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 18px
}

.board-panel,
.chat-panel {
  background: white;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  overflow: hidden
}

.board-top {
  padding: 21px 22px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.board-top h2,
.chat-heading h2 {
  font-size: 19px;
  letter-spacing: -.5px;
  margin: 8px 0 0
}

.board-top h2 span,
.chat-heading h2 span {
  color: #a184db
}

.drawing-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 20px 14px;
  flex-wrap: wrap
}

.tool-label,
.color-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #a49f96;
  margin-right: 7px
}

.drawing-tool {
  border: 1px solid #eeeae4;
  background: #fff;
  color: #77716a;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 17px
}

.drawing-tool span {
  font-size: 10px;
  margin-left: 4px
}

.drawing-tool.is-active {
  background: #f0ebfa;
  border-color: #e3d8f9;
  color: #6848b8
}

.color-label {
  margin-left: 10px
}

.tool-group { display: flex; align-items: stretch; }
.tool-group .drawing-tool { border-radius: 6px 0 0 6px; touch-action: none; user-select: none; }
.menu-toggle { border: 1px solid #eeeae4; border-left: 0; border-radius: 0 6px 6px 0; background: #f8f6fc; color: #6747b6; min-width: 26px; }
.tool-options { margin: 0 20px 14px; padding: 12px; background: #f7f3ff; border: 1px solid #e3d8f9; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tool-options label, .style-tools label { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #5f576c; }
.tool-options select { max-width: 100%; }
.tool-options select, .style-tools input[type=number], .tool-options input[type=number] { border: 1px solid #ded8e7; border-radius: 5px; padding: 7px; background: white; color: #42384d; font: inherit; }
.tool-options input[type=number], .style-tools input[type=number] { width: 64px; }
.style-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 0 20px 12px; }
.check-label { white-space: nowrap; }
.drawing-help { font-size: 11px; line-height: 1.6; color: #787169; padding: 0 20px 14px; margin: 0; }
.canvas-wrap canvas.is-selecting { cursor: default; }
.canvas-wrap canvas:focus-visible { outline: 3px solid #a38bdc; outline-offset: -3px; }
.keyboard-help { border-top: 1px solid #eeeae4; padding: 12px 20px; font-size: 11px; color: #787169; line-height: 1.6; }
.keyboard-help summary { cursor: pointer; font-weight: 700; }
.drawing-tool { touch-action: none; user-select: none; }
input[type=color] {
  border: 0;
  background: none;
  width: 29px;
  height: 29px;
  padding: 0;
  cursor: pointer
}

.canvas-wrap {
  position: relative;
  overflow: hidden;
  touch-action: none
}

.canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8/5;
  touch-action: none;
  cursor: crosshair
}

.canvas-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-align: center;
  color: #aaa49c;
  font-size: 12px;
  white-space: nowrap
}

.canvas-empty span {
  display: block;
  font-size: 28px;
  color: #c9b8e8;
  margin-bottom: 8px
}

.canvas-empty strong {
  color: #8b857e;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 17px
}

.board-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
  color: #aaa59b;
  font-size: 9px;
  letter-spacing: .4px
}

.board-bottom span:first-child {
  color: #9c8aba;
  font-weight: 700
}

.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 500px
}

.chat-heading {
  padding: 22px;
  border-bottom: 1px solid #efede8
}

.chat-heading p {
  color: #99948b;
  font-size: 12px;
  margin: 8px 0 0
}

.messages {
  padding: 18px 20px;
  flex: 1;
  max-height: 420px;
  overflow: auto
}

.empty-chat {
  font-size: 12px;
  line-height: 1.7;
  color: #aaa49b
}

.message {
  padding: 0 0 16px;
  overflow-wrap: anywhere
}

.message strong {
  color: #6f50bd;
  font-size: 11px
}

.message p {
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0;
  white-space: pre-wrap;
  color: #5d5952
}

.chat-form {
  border-top: 1px solid #efede8;
  padding: 18px;
  display: grid;
  gap: 8px
}

.chat-form label {
  font-size: 10px;
  color: #77716a;
  font-weight: 700
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  font-size: 12px;
  padding: 11px;
  resize: vertical
}

.send-button {
  font-size: 11px;
  padding: 13px;
  margin-top: 3px;
  text-align: left
}

.send-button span {
  float: right
}

@media(max-width:900px) {
  .landing {
    grid-template-columns: 1fr 1fr;
    gap: 10px
  }

  .mock-body {
    grid-template-columns: 35px 1fr
  }

  .mock-chat {
    display: none
  }

  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 250px
  }

  .room-actions {
    flex-wrap: wrap;
    justify-content: flex-end
  }

  .code-box {
    max-width: 190px
  }
}

@media(max-width:650px) {
  .topbar {
    height: 70px;
    padding: 0 6%
  }

  .top-note {
    display: none
  }

  .topbar-right {
    gap: 0
  }

  .landing {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 55px 6% 45px;
    gap: 55px
  }

  .intro h1 {
    font-size: 61px;
    letter-spacing: -3px
  }

  .intro-copy {
    font-size: 15px
  }

  .actions {
    margin-bottom: 35px
  }

  .showcase {
    padding: 30px 5px 0
  }

  .mock-body {
    height: 260px
  }

  .showcase-note {
    top: -10px
  }

  .how {
    grid-template-columns: 1fr;
    padding: 40px 6%;
    gap: 20px
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .how-steps h3 {
    margin: 5px 0
  }

  .footer {
    flex-wrap: wrap;
    padding: 20px 6%
  }

  .footer>span:last-child {
    width: 100%
  }

  .workspace {
    padding: 30px 4% 50px
  }

  .workspace-head {
    display: block
  }

  .room-actions {
    justify-content: flex-start;
    margin-top: 18px
  }

  .code-box {
    max-width: 100%;
    flex: 1
  }

  .workspace-grid {
    grid-template-columns: 1fr
  }

  .chat-panel {
    min-height: 360px
  }

  .messages {
    min-height: 100px;
    max-height: 300px
  }

  .board-bottom {
    font-size: 8px
  }

  .drawing-tool span {
    display: none
  }

  .board-top {
    padding: 18px 15px
  }

  .drawing-tools {
    padding-left: 15px
  }

  .workspace-head h1 {
    font-size: 30px
  }

  .join-form input {
    width: 50%
  }
}
