/* Homepage editor preview — port of site-design EditorMock.
   Hardcoded fallbacks so the card still paints if token CSS is stale. */

.hero-media {
  width: 100%;
  max-width: 100%;
}

.editor-mock {
  display: block;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(20, 32, 28, 0.11);
  background: #ffffff;
  box-shadow: 0 30px 80px -40px rgba(20, 32, 28, 0.35);
  color: #15211d;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  font-size: 10px;
  line-height: 1.4;
  user-select: none;
  pointer-events: none;
}

.editor-mock * {
  box-sizing: border-box;
}

.editor-mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(20, 32, 28, 0.11);
  background: #f2f1ea;
}

.editor-mock__bar-left,
.editor-mock__bar-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.editor-mock__dots {
  display: inline-flex;
  gap: 0.25rem;
}

.editor-mock__dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(21, 33, 29, 0.15);
}

.editor-mock__brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 13px;
  color: #15211d;
  margin-left: 0.15rem;
}

.editor-mock__status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 9px;
  color: #6c7873;
}

.editor-mock__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f6b4f;
}

.editor-mock__pill {
  display: none;
  border-radius: 999px;
  border: 1px solid rgba(20, 32, 28, 0.11);
  padding: 0.1rem 0.45rem;
  font-size: 9px;
  color: #6c7873;
  background: #ffffff;
}

.editor-mock__pill--moss {
  border-color: rgba(15, 107, 79, 0.3);
  background: rgba(15, 107, 79, 0.1);
  color: #0f6b4f;
}

.editor-mock__words {
  display: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  color: #6c7873;
}

.editor-mock__offline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.15rem 0.45rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  color: #6c7873;
}

.editor-mock__offline svg {
  color: #0f6b4f;
}

/* Mobile: document only — avoids a tall text dump */
.editor-mock__body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 220px;
}

.editor-mock__sidebar,
.editor-mock__assistant {
  display: none !important;
}

.editor-mock__label {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6c7873;
}

.editor-mock__label--moss {
  color: #0f6b4f;
}

.editor-mock__tabs {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.45rem;
  font-size: 9px;
}

.editor-mock__tabs span {
  padding: 0.15rem 0.35rem;
  color: #6c7873;
}

.editor-mock__tabs .is-active {
  border-radius: 4px;
  background: #ffffff;
  color: #15211d;
  box-shadow: 0 1px 2px rgba(20, 32, 28, 0.06);
}

.editor-mock__tools {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  font-size: 10px;
  color: #6c7873;
}

.editor-mock__tools li {
  padding: 0.1rem 0;
}

.editor-mock__tools .is-active {
  color: #15211d;
}

.editor-mock__new {
  display: block;
  margin-top: 0.85rem;
  width: 100%;
  text-align: center;
  border-radius: 6px;
  background: #0f6b4f;
  color: #fff;
  padding: 0.3rem 0.4rem;
  font-size: 9px;
  font-weight: 500;
}

.editor-mock__files {
  margin-top: 0.65rem;
  font-size: 10px;
}

.editor-mock__folder {
  margin: 0 0 0.25rem;
  color: #15211d;
}

.editor-mock__file {
  margin: 0 0 0.15rem 0.65rem;
  padding: 0.15rem 0.3rem;
  color: #6c7873;
  border-radius: 4px;
}

.editor-mock__file.is-active {
  background: rgba(15, 107, 79, 0.1);
  color: #15211d;
}

.editor-mock__doc {
  min-width: 0;
  background: #ffffff;
}

.editor-mock__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(20, 32, 28, 0.11);
  color: #6c7873;
  font-size: 9px;
}

.editor-mock__chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 32, 28, 0.11);
  border-radius: 4px;
  background: #f2f1ea;
  padding: 0.1rem 0.4rem;
  color: #15211d;
}

.editor-mock__chip--lg {
  display: none;
}

.editor-mock__fmt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  border: 1px solid rgba(20, 32, 28, 0.11);
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  font-weight: 600;
  color: #15211d;
}

.editor-mock__focus {
  margin-left: auto;
  border: 1px solid rgba(20, 32, 28, 0.11);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.editor-mock__canvas {
  padding: 0.75rem 1rem 1rem;
}

.editor-mock__doc-title {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 15px;
  color: #15211d;
}

.editor-mock__h1 {
  margin: 0.75rem 0 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 11.5px;
  color: #15211d;
}

.editor-mock__typed {
  margin: 0.5rem 0 0;
  min-height: 42px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 10.5px;
  line-height: 1.55;
  color: #6c7873;
}

.editor-mock__caret {
  display: inline-block;
  width: 1.5px;
  height: 12px;
  margin-left: 1px;
  background: #0f6b4f;
  vertical-align: -2px;
  animation: editor-caret-blink 1.1s steps(1) infinite;
}

.editor-mock__caret.is-hidden {
  display: none;
}

@keyframes editor-caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}

.editor-mock__table {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
  font-size: 9.5px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease;
}

.editor-mock__table.is-visible {
  opacity: 1;
  transform: none;
}

.editor-mock__table.is-applied {
  background: rgba(15, 107, 79, 0.1);
}

.editor-mock__table td {
  padding: 0.3rem 0.45rem 0.3rem 0;
  border-bottom: 1px solid rgba(20, 32, 28, 0.11);
  color: #6c7873;
  vertical-align: top;
}

.editor-mock__table tr:first-child td {
  color: #15211d;
  font-weight: 600;
}

.editor-mock__assistant {
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(20, 32, 28, 0.11);
  background: rgba(242, 241, 234, 0.6);
  padding: 0.65rem;
  min-width: 0;
}

.editor-mock__assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  color: #15211d;
}

.editor-mock__assistant-head span {
  color: #6c7873;
  font-weight: 400;
}

.editor-mock__model {
  margin-top: 0.45rem;
  border: 1px solid rgba(20, 32, 28, 0.11);
  border-radius: 6px;
  background: #ffffff;
  padding: 0.3rem 0.4rem;
  font-size: 9px;
  color: #15211d;
}

.editor-mock__modes {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.35rem;
  font-size: 9px;
}

.editor-mock__modes span {
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  color: #6c7873;
}

.editor-mock__modes .is-active {
  background: #0f6b4f;
  color: #fff;
}

.editor-mock__deep {
  margin-left: auto;
  border: 1px solid rgba(20, 32, 28, 0.11);
}

.editor-mock__bubble {
  margin-top: 0.55rem;
  border: 1px solid rgba(20, 32, 28, 0.11);
  border-radius: 6px;
  background: #ffffff;
  padding: 0.45rem;
}

.editor-mock__bubble p:last-child {
  margin: 0.3rem 0 0;
  font-size: 9.5px;
  line-height: 1.35;
  color: rgba(21, 33, 29, 0.8);
}

.editor-mock__bubble--reply {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.editor-mock__bubble--reply.is-visible {
  opacity: 1;
  transform: none;
}

.editor-mock__actions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.45rem;
}

.editor-mock__apply {
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 9px;
  background: rgba(15, 107, 79, 0.1);
  color: #0f6b4f;
  transition: background 0.2s, color 0.2s;
}

.editor-mock__apply.is-ready,
.editor-mock__apply.is-applied {
  background: #0f6b4f;
  color: #fff;
}

.editor-mock__discard {
  border: 1px solid rgba(20, 32, 28, 0.11);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 9px;
  color: #6c7873;
}

.editor-mock__meta {
  margin: 0.45rem 0 0 !important;
  font-size: 8px !important;
  color: #6c7873 !important;
}

.editor-mock__composer {
  margin-top: 0.65rem;
  border: 1px solid rgba(20, 32, 28, 0.11);
  border-radius: 6px;
  background: #ffffff;
  padding: 0.4rem;
}

.editor-mock__composer > p {
  margin: 0;
  font-size: 9px;
  color: #6c7873;
}

.editor-mock__composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 8px;
  color: #6c7873;
}

.editor-mock__send {
  border-radius: 4px;
  background: #0f6b4f;
  color: #fff;
  padding: 0.15rem 0.4rem;
  font-family: Inter, sans-serif;
  font-size: 9px;
}

@media (min-width: 480px) {
  .editor-mock__pill--moss {
    display: inline;
  }

  .editor-mock__words {
    display: inline;
  }
}

@media (min-width: 720px) {
  .editor-mock__body {
    grid-template-columns: 104px minmax(0, 1fr) 168px;
    min-height: 300px;
  }

  .editor-mock__sidebar {
    display: block !important;
    border-right: 1px solid rgba(20, 32, 28, 0.11);
    background: rgba(242, 241, 234, 0.6);
    padding: 0.65rem;
  }

  .editor-mock__assistant {
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  .editor-mock__pill--quiet {
    display: inline;
  }

  .editor-mock__chip--lg {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editor-mock__caret {
    animation: none;
  }

  .editor-mock__table,
  .editor-mock__bubble--reply {
    transition: none;
  }
}
