:root {
  --home-blue: #1261d3;
  --home-ink: #152234;
  --home-muted: #4b6075;
  --home-line: #dce7f3;
  --home-surface: #f2f7fd;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .57rem 1rem;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: #fff;
  color: var(--home-ink);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.home-button:hover {border-color: #9dbce7; background-color: #f8fbff}
.home-button.is-primary {
  border-color: var(--home-blue);
  background: var(--home-blue);
  color: white;
}
.home-button.is-primary:hover {background: #104fa9}
.home-link {color: var(--home-blue); text-decoration: underline; text-underline-offset: 3px}
button.home-link {background: none; border: 0; padding: .25rem 0}

#interactive-stage {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  scroll-margin-top: 20px;
}
.demo-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 13px 24px;
  margin-bottom: 14px;
}
.demo-prompt h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(1.12rem, 2.5vw, 1.48rem);
  letter-spacing: -.02em;
  font-weight: 780;
  line-height: 1.35;
}
.demo-stage {
  border: 1px solid var(--home-line);
  overflow: hidden;
  border-radius: 16px;
  background-color: #fff;
}
#interactive-stage .demo-scroll {
  position: relative;
  width: 100%;
  height: 470px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: #a6bfda #eff4f9;
}
#interactive-stage .demo-scroll:focus-visible {outline-offset: -4px}
#interactive-stage .demo-canvas {
  position: relative;
  width: 100%;
  min-width: 1080px;
  height: 470px;
  overflow: clip;
}
#interactive-stage #softwareDemo {
  position: relative;
  width: 100%;
  height: 470px;
  min-width: 1080px;
  overflow: hidden;
  transform: none;
}
#interactive-stage .demo-meta {
  padding: 9px 0 4px;
  margin: 0;
  color: var(--home-muted);
  font-size: .82rem;
}
#interactive-stage .demo-navigation {
  margin: 8px 0 0;
  color: var(--home-muted);
}
#interactive-stage .demo-navigation button {min-height: 44px}
#interactive-stage .motion-toggle {
  padding: .4rem .8rem;
  min-height: 38px;
  border-color: var(--home-line);
  font-size: .82rem;
}
#interactive-stage .demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 9px 0 0;
}
.demo-actions .home-button {font-size: .84rem}
.demo-feedback {
  display: flex;
  gap: 10px 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-top: 13px;
  border-radius: 12px;
  background: var(--home-surface);
  color: var(--home-ink);
  font-size: .9rem;
}
.demo-feedback p {margin: 0; flex: 1 1 225px}
.demo-feedback a {font-weight: 740}
.demo-status {
  padding: 18px;
  background: var(--home-surface);
  color: var(--home-muted);
  border-radius: 12px;
  margin: 0;
}
#interactive-stage:not([data-demo-state="ready"]) :is(.demo-stage, .demo-meta, .demo-navigation, .demo-only) {display: none}
#interactive-stage [hidden] {display: none !important}
#interactive-stage[data-demo-state="ready"] .demo-status {display: none}

.home-section {width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: clamp(34px, 6.5vw, 76px) 0}
.home-section h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 830;
  line-height: 1.14;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.home-section p {color: var(--home-muted); line-height: 1.7; text-wrap: pretty}
.home-section > p {max-width: 44rem; margin: 12px 0 26px}
#feature-details .detail-capture {
  display: block;
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  padding: 10px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
}
#feature-details .detail-capture img {display: block; width: 100%; height: auto}
#feature-details .detail-rope-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#feature-details .detail-rope-pair figure {margin: 0; min-width: 0}
#feature-details .detail-rope-pair figcaption {margin-top: 6px; color: var(--home-muted); font-size: .875rem}
#feature-details .detail-rope-pair figure:nth-child(2) .detail-capture {background: #ecf4ef}
@media (max-width: 550px) {
  #feature-details .detail-rope-pair {grid-template-columns: 1fr}
}

.buy-section {background: var(--home-surface); padding: 0 24px}
.buy-section .home-section {width: min(100%, 690px); text-align: center}
.buy-section p {margin-inline: auto}
.buy-section a {font-weight: 730}
#faq {padding-block: clamp(42px, 7vw, 80px)}
@media (max-width: 1080px) {
  #interactive-stage .demo-scroll {height: 329px}
  #interactive-stage .demo-canvas {width: 756px; min-width: 0; height: 329px}
  #interactive-stage #softwareDemo {
    width: 1080px;
    transform: scale(.7);
    transform-origin: top left;
  }
}
@media (max-width: 760px) {
  #interactive-stage, .home-section {width: calc(100% - 32px)}
  .demo-prompt {gap: 10px}
  .demo-prompt h2 {flex-basis: 100%}
  #interactive-stage .demo-meta {gap: 6px}
}

/* Keep the opening and original detail cards on the same blue-and-white page. */
.hero {
  padding-bottom: clamp(20px, 3vw, 40px);
}
.hero h1,
.hero h1 .blue {
  letter-spacing: -.038em;
}
.hero .features {
  margin-inline: auto;
  color: var(--home-muted);
  text-wrap: pretty;
}

#feature-details {
  padding-block: clamp(44px, 6.3vw, 84px);
  background-color: #f3f7fc;
  border-block: 1px solid var(--home-line);
  scroll-margin-top: 16px;
}
.feature-details-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 20px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.feature-details-label {
  color: #386190;
  font-size: .75rem;
  font-weight: 720;
  letter-spacing: .07em;
}
#feature-details-title {
  margin: 7px 0 0;
  color: var(--home-ink);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -.025em;
  font-weight: 820;
  text-wrap: balance;
}
.detail-group + .detail-group {
  margin-top: clamp(30px, 5vw, 58px);
}
.detail-group > h3 {
  margin: 0 0 16px;
  color: #214368;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 780;
  line-height: 1.3;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.detail-card-wide {grid-column: 1 / -1}
@media (min-width: 900px) {
  .detail-grid {grid-template-columns: repeat(2, minmax(0, 1fr))}
}

.detail-grid > .bento-card {
  min-width: 0;
  padding: clamp(19px, 2.55vw, 34px);
  border: 1px solid #dce6f2;
  border-radius: 16px;
}
.detail-grid > .bento-card :is(h3, h4) {
  color: var(--home-ink);
  font-size: clamp(1.28rem, 2.35vw, 1.7rem);
  line-height: 1.34;
  letter-spacing: -.016em;
  text-wrap: balance;
}
.detail-title-phrase {display: inline-block}
.detail-grid > .bento-card p {
  margin-top: 10px;
  font-size: clamp(.9375rem, 1.35vw, 1rem);
  line-height: 1.75;
  color: #34475b;
}
.detail-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.detail-card-meta > :first-child {
  white-space: nowrap;
  max-width: 100%;
}
.detail-grid :is(.text-stone-400, .text-stone-500) {color: #516278}
.detail-card-meta > :last-child {
  flex-shrink: 0;
  max-width: 100%;
  font-family: inherit;
  line-height: 1.42;
}
.detail-grid .detail-file-examples > div {
  border-color: #e5ebf3;
  box-shadow: none;
  background-color: #f9fbfe;
}
@media (max-width: 540px) {
  .detail-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.hero .hero-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 27rem);
  margin-inline: auto;
}
.hero-downloads .hero-download-button {
  display: flex;
  min-height: 52px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: clamp(.86rem, 2vw, 1rem);
  font-weight: 740;
  line-height: 1.3;
  text-align: center;
  color: #fff;
}
.hero-download-button.is-mac {background: var(--home-blue)}
.hero-download-button.is-mac:hover {background: #104fa9}
.hero-download-button.is-windows {
  background: #146553;
  color: #fff;
}
.hero-download-button.is-windows:hover {background: #0d5142}
@media (max-width: 348px) {
  .hero .hero-downloads {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 16rem);
  }
}

.work-scenes {
  display: grid;
  gap: clamp(15px, 3vw, 27px);
}
.work-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 3vw, 32px);
  align-items: center;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: #fff;
}
.work-scene-context,
.work-scene-examples {min-width: 0}
.work-scene-context h3 {
  margin-top: 7px;
  font-size: clamp(1.25rem, 2.7vw, 1.85rem);
  line-height: 1.32;
  color: var(--home-ink);
  text-wrap: balance;
}
.work-scene-context p {color: #34475b; line-height: 1.72}
.work-scene-examples {
  background-color: #f0f5fb;
  color: #263e59;
  border-radius: 12px;
  padding: clamp(12px, 2vw, 20px);
  font-family: inherit;
}
.work-scene-examples li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 8px 0;
  border-top: 1px solid #d6e3f2;
}
.work-scene-examples li:first-child {border-top: 0}
.work-scene-examples li span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) {
  .work-scene {grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr)}
}
.work-scene-examples > p {margin: 0 0 6px}
.work-scene-examples ul {margin: 0; padding: 0}
.work-scene-example span:last-child {color: #325a7b; font-weight: 650}
