/* InvitationDone (built here, from the invitation page's prototype): the screen once the account is made. Everything is
   centered in one column: the logo, a large success mark, the title and its line, then one action that is the page's
   main one (the call to action's own button, full width on a phone, about 280px on a desktop, its Google mark on a white
   disc) and a quiet note. Tokens only. */
.invitation-done {
  --wi-btn-radius: var(--radius-full);
  box-sizing: border-box;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-5);
  text-align: center;
  background: linear-gradient(180deg, var(--background-sunken), var(--blue-gray-50));
  font-family: var(--font-family-sans);
}
.invitation-done__logo {
  display: block;
  height: var(--size-button-md);
  width: auto;
  margin-bottom: var(--space-2);
}
.invitation-done__mark {
  display: grid;
  place-items: center;
  width: var(--space-16);
  height: var(--space-16);
  border-radius: var(--radius-full);
  background: var(--feedback-success-bg);
  color: var(--feedback-success-fg);
}
.invitation-done__mark svg {
  width: var(--size-icon-xl);
  height: var(--size-icon-xl);
}
.invitation-done__title {
  margin: 0;
  font-size: var(--font-size-3xl);
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
}
.invitation-done__lead {
  margin: 0;
  max-width: 38ch;
  font-size: var(--font-size-base);
  line-height: var(--font-line-height-base);
  color: var(--text-secondary);
}
.invitation-done__action {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: var(--space-2);
}
.invitation-done__action form {
  display: contents;
}
.invitation-done__button {
  width: 100%;
}
/* The Google mark keeps its colours on the button's orange: a white disc behind it. */
.invitation-done__button .wi-btn__icon:has(> img) {
  box-sizing: content-box;
  padding: var(--space-1);
  background: var(--background-surface);
  border-radius: var(--radius-full);
}
.invitation-done__note {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: var(--font-line-height-sm);
  color: var(--text-tertiary);
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .invitation-done__logo {
    height: var(--size-button-lg);
    margin-bottom: var(--space-4);
  }
  .invitation-done__title {
    font-size: var(--font-size-4xl);
  }
  .invitation-done__lead {
    font-size: var(--font-size-lg);
    line-height: var(--font-line-height-lg);
  }
  /* About 280px. */
  .invitation-done__action {
    width: calc(var(--space-16) * 4 + var(--space-6));
  }
}
