/* Landing-only product illustrations. All content remains readable without motion. */
.tm-wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.tm-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-block;
  vertical-align: middle;
}
.tm-hero {
  background: #f7f9fc;
  padding: 58px 0 0;
  color: #232733;
}
.tm-hero-copy {
  text-align: center;
}
.tm-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #66748a;
  margin: 0 0 19px;
}
.tm-eyebrow > span {
  display: inline-block;
  height: 7px;
  width: 7px;
  background: #639f8b;
  border-radius: 50%;
  margin-right: 7px;
}
.tm-hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -0.055em;
  margin: 0;
}
.tm-hero h1 > span {
  color: #547ee7;
}
.tm-lead {
  font-size: 17px;
  line-height: 1.65;
  color: #626b7a;
  margin: 21px 0 23px;
}
.tm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
}
.tm-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #507be8;
  color: #fff;
  border-radius: 9px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 3px 7px #345fba1c;
}
.tm-primary:hover {
  background: #3b66cf;
}
.tm-secondary {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tm-secondary:hover {
  color: #507be8;
}
.tm-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #7c8490;
  margin: 16px 0 33px;
}
.tm-trust .tm-icon {
  color: #508b73;
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
.tm-trust > span {
  color: #bac0c9;
}
.tm-hero-figure {
  border: 1px solid #dce2eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 45px -22px #283c6b40;
  overflow: hidden;
  text-align: left;
}
.tm-browser-bar {
  background: #eef1f6;
  border-bottom: 1px solid #dfe4ec;
  display: flex;
  align-items: center;
  height: 39px;
  gap: 19px;
  padding: 0 17px;
  color: #8d96a3;
  font-size: 13px;
}
.tm-window-dots {
  font-size: 10px;
  letter-spacing: 3px;
  color: #bec6d2;
}
.tm-browser-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 5px;
  background: white;
  border-radius: 7px 7px 0 0;
  align-self: end;
  color: #667080;
  font-size: 11px;
  min-width: 200px;
}
.tm-browser-tab > span {
  margin-left: auto;
}
.tm-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
}
.tm-dashboard {
  min-width: 0;
  background: #fcfcfd;
}
.tm-dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 23px;
  gap: 15px;
}
.tm-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tm-brand > span {
  font-weight: 400;
  color: #c0c5cd;
  margin: 0 4px;
}
.tm-search-label {
  color: #98a1af;
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.tm-search-label .tm-icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
.tm-board {
  padding: 0 23px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tm-folder {
  background: white;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 15px;
}
.tm-folder-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  margin: 0;
}
.tm-folder-title > span {
  margin-left: auto;
  opacity: 0.6;
  letter-spacing: 2px;
}
.tm-folder-title .tm-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.tm-color-blue {
  background: #e6efff;
  color: #446aa4;
}
.tm-color-purple {
  background: #eee9fb;
  color: #786199;
}
.tm-color-green {
  background: #e5f3eb;
  color: #4c8267;
}
.tm-folder ul,
.tm-open-tabs ul {
  list-style: none;
  margin: 0;
  padding: 6px;
}
.tm-bookmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.4;
  padding: 7px 7px;
  color: #485364;
}
.tm-bookmark > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tm-bookmark small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #99a1ac;
}
.tm-note {
  background: #fff6d6;
  border: 1px solid #eee3b7;
  border-radius: 6px;
  padding: 13px 15px;
  color: #807142;
  font-size: 11px;
}
.tm-note > .tm-icon {
  width: 15px;
  height: 15px;
  margin-right: 6px;
}
.tm-note strong {
  font-weight: 600;
}
.tm-note p {
  margin: 8px 0 0;
  line-height: 1.8;
}
.tm-board-footer {
  padding: 15px 23px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #8993a3;
}
.tm-board-footer .tm-icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
.tm-board-footer > span {
  margin: 0 10px 0 0;
}
.tm-open-tabs {
  border-left: 1px solid #e1e6ee;
  padding: 23px 14px 17px;
}
.tm-panel-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}
.tm-panel-title > span {
  font-size: 10px;
  background: #f0f2f6;
  border-radius: 4px;
  padding: 1px 6px;
  color: #8993a3;
}
.tm-open-tabs > p {
  font-size: 10px;
  color: #929ba8;
  margin: 7px 0 12px;
}
.tm-open-tabs ul {
  padding: 0;
}
.tm-open-tabs .tm-bookmark {
  padding-block: 11px;
}
.tm-open-tabs .tm-bookmark:first-child {
  background: #f0f5fe;
  border: 1px solid #dce7fb;
  border-radius: 6px;
}
.tm-save-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6082bc;
  font-size: 10px;
  border-top: 1px solid #ecf0f6;
  margin-top: 16px;
  padding-top: 15px;
}
.tm-save-hint .tm-icon {
  transform: rotate(180deg);
  width: 17px;
  flex-basis: 17px;
}
.tm-saved-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #7f8c9a;
  font-size: 9px;
  margin-top: 7px;
}
.tm-saved-label .tm-icon {
  color: #6c9a80;
  width: 15px;
  flex-basis: 15px;
}
.tm-hero-figure > figcaption {
  padding: 11px 23px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #e8ecf2;
  font-size: 10px;
  color: #7d8797;
}
.tm-hero-figure > figcaption > span:last-child {
  color: #a1a9b5;
}
.tm-benefit-strip {
  display: flex;
  justify-content: center;
  gap: 65px;
  padding: 27px 0 34px;
}
.tm-benefit-strip p {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #728096;
  font-size: 12px;
  margin: 0;
}
.tm-benefit-strip .tm-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  color: #8a9ab0;
}
.tm-workflows {
  background: #fff;
  padding: 76px 0 65px;
  scroll-margin-top: 90px;
  color: #232733;
}
.tm-section-heading {
  text-align: center;
}
.tm-section-heading h2 {
  font-size: clamp(30px, 3.2vw, 40px);
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.tm-section-heading > p:last-child {
  color: #7b8493;
  line-height: 1.7;
  font-size: 15px;
  margin: 17px 0 27px;
}
.tm-scenario-tabs {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 35px;
  width: fit-content;
  padding: 5px;
  background: #f3f5f8;
  border: 1px solid #e9ecf2;
  border-radius: 10px;
}
.tm-scenario-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 25px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #7b8392;
  cursor: pointer;
}
.tm-scenario-tabs button[aria-selected="true"] {
  background: white;
  border-color: #e3e7ef;
  color: #3d5f99;
  box-shadow: 0 2px 4px #28334b08;
}
.tm-scenario-tabs button:hover {
  color: #315ba9;
  background: #ffffff88;
}
.tm-scenario-tabs .tm-icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}
.tm-scenario {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 18px 0;
}
.tm-scenario[hidden] {
  display: none;
}
.tm-scenario-kicker {
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #7b8da8;
  margin: 0 0 20px;
}
.tm-scenario-copy > h3 {
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.18;
  margin: 0 0 20px;
}
.tm-scenario-copy > p:not(.tm-scenario-kicker) {
  color: #798291;
  line-height: 1.8;
  font-size: 14px;
  margin: 0;
}
.tm-result {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  color: #5d7868;
  margin-top: 25px;
}
.tm-result .tm-icon {
  width: 17px;
  flex-basis: 17px;
}
.tm-scene {
  background: #f5f7fb;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  overflow: hidden;
}
.tm-scene-analysis {
  background: #f4f8f6;
}
.tm-scene-projects {
  background: #f7f5fb;
}
.tm-scene-top {
  background: #ffffffb3;
  border-bottom: 1px solid #e5e9f0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 20px;
  font-size: 11px;
  color: #5f6c80;
}
.tm-scene-top > span:last-child {
  margin-left: auto;
  font-size: 10px;
  color: #99a2b1;
}
.tm-scene-body {
  padding: 27px;
}
.tm-scene-context,
.tm-query {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 19px;
  font-size: 11px;
  color: #748198;
}
.tm-scene-context > span:last-child {
  margin-left: auto;
  font-size: 10px;
  color: #a0a9b6;
}
.tm-scene-context .tm-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.tm-scene-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 17px;
  align-items: start;
}
.tm-scene-columns .tm-folder {
  margin: 0;
  box-shadow: 0 5px 12px #2b3a5310;
}
.tm-scene-columns .tm-bookmark {
  padding-block: 9px;
}
.tm-scene-columns .tm-note {
  margin-top: 16px;
  transform: rotate(2deg);
  box-shadow: 0 4px 10px #8f71240a;
}
.tm-scene-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #739380;
  font-size: 10px;
  margin-top: 22px;
}
.tm-scene-foot .tm-icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
.tm-scene > figcaption {
  font-size: 9px;
  text-align: center;
  color: #9ca5b3;
  padding-bottom: 15px;
}
.tm-query {
  background: white;
  border: 1px solid #c6d8ce;
  border-radius: 6px;
  padding: 9px 12px;
  color: #5c7168;
  box-shadow: 0 0 0 3px #e8f1ec;
}
.tm-query kbd {
  margin-left: auto;
  color: #9ba9a0;
}
.tm-scene-analysis .tm-bookmark:nth-child(2) {
  background: #eaf5ed;
  border-radius: 5px;
  color: #376f4d;
}
.tm-workflows-note {
  text-align: center;
  font-size: 11px;
  color: #929aa7;
  margin-top: 30px;
  line-height: 1.8;
}
.tm-workflows-note a {
  color: #6a83b1;
}
.tm-workflows-note a:hover {
  text-decoration: underline;
}
.tm-primary:focus-visible,
.tm-secondary:focus-visible,
.tm-scenario-tabs button:focus-visible,
.tm-workflows-note a:focus-visible {
  outline: 3px solid #92b5ff;
  outline-offset: 4px;
}
@media (max-width: 1000px) {
  .tm-workspace {
    grid-template-columns: minmax(0, 1fr) 215px;
  }
  .tm-dashboard-top {
    flex-wrap: wrap;
  }
  .tm-search-label {
    display: none;
  }
  .tm-scenario {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 25px;
  }
  .tm-scene-body {
    padding: 20px;
  }
  .tm-scene-columns {
    grid-template-columns: 1fr;
  }
  .tm-scene-columns .tm-note {
    margin: 0;
    transform: none;
  }
  .tm-benefit-strip {
    gap: 25px;
  }
}
@media (max-width: 700px) {
  .tm-wrap {
    width: calc(100% - 32px);
  }
  .tm-hero {
    padding-top: 38px;
  }
  .tm-eyebrow {
    font-size: 9px;
  }
  .tm-lead {
    font-size: 15px;
  }
  .tm-desktop-break {
    display: none;
  }
  .tm-trust {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 6px;
    margin-bottom: 26px;
  }
  .tm-actions {
    gap: 14px;
  }
  .tm-primary {
    padding: 12px 15px;
    font-size: 13px;
  }
  .tm-secondary {
    font-size: 12px;
    gap: 4px;
  }
  .tm-workspace {
    grid-template-columns: 1fr;
  }
  .tm-open-tabs {
    display: none;
  }
  .tm-dashboard-top {
    padding: 16px;
  }
  .tm-board {
    gap: 10px;
    padding: 0 12px;
  }
  .tm-folder-title {
    font-size: 10px;
    padding: 9px;
    gap: 5px;
  }
  .tm-bookmark {
    font-size: 10px;
    padding: 7px 2px;
    gap: 5px;
  }
  .tm-bookmark .tm-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .tm-note {
    font-size: 10px;
    padding: 10px;
  }
  .tm-hero-figure > figcaption {
    padding: 10px 12px;
    font-size: 9px;
  }
  .tm-hero-figure > figcaption > span:last-child {
    display: none;
  }
  .tm-benefit-strip {
    gap: 14px;
    padding-block: 22px;
  }
  .tm-benefit-strip p {
    flex-direction: column;
    text-align: center;
    font-size: 10px;
    gap: 5px;
  }
  .tm-workflows {
    padding-top: 48px;
  }
  .tm-section-heading > p:last-child {
    font-size: 13px;
  }
  .tm-scenario-tabs {
    width: 100%;
    gap: 3px;
    margin-bottom: 15px;
  }
  .tm-scenario-tabs button {
    flex: 1;
    justify-content: center;
    padding: 10px 4px;
    font-size: 12px;
    gap: 5px;
  }
  .tm-scenario {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tm-scenario-copy {
    padding: 0 9px;
  }
  .tm-scenario-copy > h3 {
    font-size: 30px;
  }
  .tm-scenario-kicker {
    margin-bottom: 12px;
  }
  .tm-scenario-copy > p:not(.tm-scenario-kicker) {
    font-size: 13px;
  }
  .tm-result {
    margin-top: 16px;
  }
  .tm-scene-columns {
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
  }
  .tm-scene-body {
    padding: 16px;
  }
  .tm-scene-columns .tm-note {
    margin-top: 15px;
  }
  .tm-scene-top {
    padding: 14px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------------------------------------------------------------- interactive demo
   landing.js mounts /demo/ (a real Tabme build with an in-memory fake browser) on wide
   screens with a precise pointer. It renders at a fixed design size and scales to fit;
   elsewhere, or until JS runs, the static illustration above is shown. */
.tm-demo {
  position: relative;
  scroll-margin-top: 90px;
}
.tm-demo__stage {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  /* Keep in sync with DESIGN_WIDTH / DESIGN_HEIGHT in landing.js */
  width: 1180px;
  height: 760px;
  transform-origin: 0 0;
  border-radius: 13px;
  box-shadow: 0 18px 45px -22px #283c6b40;
  /* Skeleton of the fake browser window until the demo reports it is ready */
  background:
    linear-gradient(#dfe3e8 0 42px, #fff 42px 82px, #f7f8fa 82px) padding-box;
  border: 1px solid #dce2eb;
  overflow: hidden;
}
.tm-demo__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tm-demo--interactive > .tm-hero-figure {
  display: none;
}
.tm-demo--interactive > .tm-demo__stage {
  display: block;
}
.tm-demo--ready .tm-demo__frame {
  opacity: 1;
}
.tm-demo--ready .tm-demo__stage {
  border-color: transparent;
}
/* Shown instead of the benefit strip while the live demo is mounted */
.tm-demo-hint {
  display: none;
  padding: 26px 0 38px;
  text-align: center;
}
.tm-demo--interactive ~ .tm-demo-hint {
  display: block;
}
.tm-demo--interactive ~ .tm-benefit-strip {
  display: none;
}
.tm-demo-hint__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #4c7df0;
}
.tm-demo-hint__note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8d96a3;
}
.tm-demo-hint__arrow {
  width: 22px;
  height: 22px;
  margin-left: 4px;
  vertical-align: -3px;
  transform: rotate(-90deg);
  animation: tm-demo-hint-nudge 1.6s ease-in-out infinite;
}
@keyframes tm-demo-hint-nudge {
  50% {
    transform: rotate(-90deg) translateX(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tm-demo-hint__arrow {
    animation: none;
  }
}
