@import "https://assets.elements.dev/assets/app/shared/styles/page.eb1a7559b8a091ff.css";

/*
 * <ContentCta> styles. The join offer is a plain group, like the others in
 * the sidebar: a small title, one line of copy and the button, no panel
 * around it, so a quiet page stays quiet. The install link follows at a
 * group's distance, and sits in the same place whether or not the offer is
 * shown.
 */
.content-cta {
  margin: 0;
}

/* The nav footer carries a bottom margin of its own; the install link is
   pulled up into it so it reads as part of that band. */
.nav-footer-row + .content-cta { margin-top: -2rem; }
/* Without the install link there is nothing to pull up; the join panel
   keeps its own space under the nav. */
.nav-footer-row + .content-cta:not(:has(.install-cta-line)) { margin-top: 0; }
.content-cta .install-cta-line { margin: var(--space-10) 0 0; }
.content-cta-subscribe + .install-cta-line { margin-top: var(--space-10); }

.content-cta-subscribe {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.content-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.content-cta-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  color: var(--ink-dim);
}

.content-cta-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* At the foot of a page (/demos, /learn) the offer is a panel: the copy on
   the left, the button on the right, ruled off like a card. The sidebar
   keeps the plain group above. */
.content-cta:not(.post-aside .content-cta) > .content-cta-subscribe {
  margin-top: var(--space-20);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}
.content-cta:not(.post-aside .content-cta) > .content-cta-subscribe .content-cta-title {
  font-size: 1rem;
  color: var(--ink);
}
.content-cta:not(.post-aside .content-cta) > .content-cta-subscribe .content-cta-desc {
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  .content-cta:not(.post-aside .content-cta) > .content-cta-subscribe {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* In the post sidebar the button is the width of the column, like the
   other sidebar groups'; anywhere wider, as at the foot of /demos, it
   keeps its own width. */
.content-cta-go {
  align-self: flex-start;
}

@media (min-width: 961px) {
  .post-aside .content-cta-go {
    align-self: stretch;
  }
}
