@font-face {
  font-family: 'Nunito';
  src:
    url('/fonts/Nunito-Regular.woff2') format('woff2'),
    url('/fonts/Nunito-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src:
    url('/fonts/Nunito-Italic.woff2') format('woff2'),
    url('/fonts/Nunito-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src:
    url('/fonts/Nunito-SemiBold.woff2') format('woff2'),
    url('/fonts/Nunito-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src:
    url('/fonts/Nunito-SemiBoldItalic.woff2') format('woff2'),
    url('/fonts/Nunito-SemiBoldItalic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src:
    url('/fonts/Nunito-Bold.woff2') format('woff2'),
    url('/fonts/Nunito-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src:
    url('/fonts/Nunito-ExtraBoldItalic.woff2') format('woff2'),
    url('/fonts/Nunito-ExtraBoldItalic.woff') format('woff');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src:
    url('/fonts/Nunito-BoldItalic.woff2') format('woff2'),
    url('/fonts/Nunito-BoldItalic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src:
    url('/fonts/Nunito-ExtraBold.woff2') format('woff2'),
    url('/fonts/Nunito-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #fff;
  --text: #333333;
  --text-reverse: #f9f9f9;
  --purple: #875f9a;
  --donate: #176133;
  --donate-hover: #12522b;
  --warning: #e2961f;
  --warning-hover: #c28019;
  --danger: #cb434e;
  --danger-hover: #b3353f;
  --success: #358621;
  --success-hover: #2d731c;
  --global-bg: #fcfcfc;
  --gutter: 24px;
  --phablet: 600px;
  --laptop: 768px;
  --desktop: 1024px;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
em,
img,
strong,
ol,
ul,
li,
form,
label,
fieldset,
input,
button,
section,
footer,
nav,
main,
aside,
dialog {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
  background-color: var(--global-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
}

p {
  margin-bottom: 18px;
}

a,
a:visited {
  color: var(--purple);
  text-decoration: none;
  cursor: pointer;
}

strong {
  font-weight: 800;
}

em {
  font-style: italic;
}

ol,
ul {
  margin-bottom: 18px;
  padding-left: 36px;
}

ul li {
  list-style-type: disc;
}

ol li {
  list-style-type: lower-alpha;
}

button,
.button {
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--white);
  color: var(--text);
  border-radius: 3px;
  box-shadow: 0 1px 5px rgba(30, 30, 30, 0.15);
}

.skip-link:focus {
  top: 12px;
}

.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex-grow: 1;
}

.width-900 {
  display: block;
  box-sizing: content-box;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.spaced-section {
  margin-bottom: var(--gutter);
}

@media only screen and (min-width: 600px) {
  .width-900 {
    padding: 0 30px;
  }

  .spaced-section {
    margin-bottom: 50px;
  }
}

@media only screen and (min-width: 768px) {
  .width-900 {
    padding: 0 36px;
  }

  .spaced-section {
    margin-bottom: 75px;
  }
}

@media only screen and (min-width: 1024px) {
  .spaced-section {
    margin-bottom: 100px;
  }
}

/* Navigation */

.nav {
  position: relative;
  background-color: #6e4e7d;
}

.nav__container {
  display: flex;
  height: 80px;
  justify-content: space-between;
  align-items: center;
}

.nav__actions {
  display: none;
}

@media only screen and (min-width: 600px) {
  .nav__actions {
    display: flex;
    gap: 8px;
  }
}

.nav__brand,
.nav__brand:visited,
.nav__link,
.nav__link:visited {
  display: inline-block;
  border-radius: 3px;
  padding: 3px 5px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-reverse);
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 50ms ease-in;
}

.nav__brand {
  margin-left: -3px;
  font-weight: 700;
}

.nav__brand,
.nav__brand:visited {
  background-color: transparent;
}

.nav__brand:hover,
.nav__link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav__link + .nav__link {
  margin-left: 12px;
}

.nav__link--button {
  border: 0;
}

@media only screen and (min-width: 600px) {
  .nav__brand,
  .nav__link {
    font-size: 18px;
  }
}

/* Sign in with Slack */

.login-button {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-column-gap: 7px;
  align-items: center;
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 16px;
  color: var(--text);
  border: 1px solid #eaeaea;
  box-shadow: 0 1px 5px rgba(30, 30, 30, 0.15);
  background-color: var(--white);
}

.login-button:visited,
.login-button:hover {
  color: var(--text);
}

.login-button--text {
  grid-template-columns: auto;
}

.login-button img {
  height: auto;
  width: 20px;
}

/* Footer */

.footer {
  margin-bottom: 24px;
}

.footer__text {
  text-align: center;
  font-size: 14px;
  color: var(--text);
}

/* Hero */

.hero {
  position: relative;
  background-color: var(--purple);
  color: var(--text-reverse);
  padding: 50px 0;
}

.hero__mascot {
  text-align: center;
}

.hero__mascot svg {
  margin: 0 auto;
}

.hero__heading {
  max-width: 35ch;
  margin: 0 auto 24px;
  font-size: 36px;
  line-height: 1.5;
  font-weight: 800;
  text-align: center;
}

.hero__two {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border-radius: 3px;
  box-shadow:
    0 1px 5px rgba(30, 30, 30, 0.15),
    0 0 25px rgba(255, 255, 255, 0.5);
  background-color: var(--white);
  color: #875f9a;
  font-size: 36px;
  line-height: 1.5;
}

.hero__subtitle {
  max-width: 32ch;
  margin: 0 auto;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  margin-bottom: 0;
}

@media only screen and (min-width: 600px) {
  .hero {
    padding: 75px 0;
  }
}

@media only screen and (min-width: 768px) {
  .hero {
    padding: 100px 0;
  }
}

/* Typography */

.display-large {
  font-size: 64px;
  line-height: 1.5;
}

.h2 {
  font-size: 36px;
  line-height: 1.5;
  font-weight: 800;
}

.h3 {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 800;
}

.h4 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
}

.sub {
  vertical-align: text-bottom;
  font-size: 80%;
}

/* Section heading block */

.section-header {
  text-align: center;
}

.section-header h2 {
  margin-bottom: 18px;
}

@media only screen and (min-width: 600px) {
  .section-header {
    margin-bottom: 50px;
    max-width: 50ch;
  }
}

@media only screen and (min-width: 768px) {
  .section-header {
    margin-bottom: 75px;
  }
}

/* Cards and images */

.card {
  border-radius: 3px;
  box-shadow: 0 1px 5px rgba(30, 30, 30, 0.15);
  background-color: var(--white);
  padding: var(--gutter);
}

@media only screen and (min-width: 600px) {
  .card {
    padding: 30px;
  }
}

@media only screen and (min-width: 768px) {
  .card {
    padding: 36px;
  }
}

.image-card {
  width: 100%;
  height: auto;
  padding: 0;
}

/* Text and screenshot rows */

.text-image {
  padding-top: 0;
}

.text-image h3 {
  margin-bottom: 18px;
}

@media only screen and (min-width: 600px) {
  .text-image {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 30px;
  }
}

@media only screen and (min-width: 768px) {
  .text-image {
    grid-column-gap: 36px;
  }
}

/* Modes */

.anchor-target {
  display: block;
  scroll-margin-top: 12px;
}

.pricing {
  display: grid;
  grid-row-gap: var(--gutter);
}

.plan {
  padding: 24px 0;
  text-align: center;
  border-bottom: 5px solid transparent;
}

.plan--unicorn {
  background-color: var(--purple);
  color: var(--text-reverse);
  border-bottom: 5px solid;
  border-image-source: linear-gradient(
    45deg,
    rgba(222, 168, 248, 1) 0%,
    rgba(168, 222, 248, 1) 21.8%,
    rgba(189, 250, 205, 1) 35.6%,
    rgba(243, 250, 189, 1) 52.9%,
    rgba(250, 227, 189, 1) 66.8%,
    rgba(248, 172, 172, 1) 90%,
    rgba(254, 211, 252, 1) 99.7%
  );
  border-image-slice: 1;
}

.plan__name {
  margin-bottom: var(--gutter);
}

.plan__emoji {
  margin-bottom: var(--gutter);
  font-size: 64px;
  line-height: 1.5;
}

.plan__emoji .twemoji {
  width: 1em;
  height: 1em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
}

.plan-row {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  padding: 0 36px;
}

.plan-row:nth-of-type(2n-1) {
  background-color: rgba(0, 0, 0, 0.07);
}

.install-card {
  text-align: left;
}

.install-card p {
  margin-bottom: var(--gutter);
}

.install-card__text {
  flex-basis: 66.66%;
}

.install-card__text p {
  margin: 0;
}

.install-card__text p + p {
  margin-top: 8px;
}

.install-card__actions {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
  margin-top: var(--gutter);
}

.install-card__actions .login-button {
  justify-content: center;
}

.pricing-info {
  grid-column: 1 / -1;
  border-left: 3px solid rgba(30, 30, 30, 0.15);
  padding-left: var(--gutter);
}

.pricing-info p {
  max-width: 65ch;
}

.pricing-info p:last-of-type {
  margin: 0;
}

@media only screen and (min-width: 600px) {
  .pricing {
    grid-column-gap: 30px;
    grid-row-gap: 30px;
  }
}

@media only screen and (min-width: 700px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }

  .install-card {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .install-card p {
    margin-bottom: 0;
  }

  .install-card__actions {
    margin-top: 0;
    margin-left: var(--gutter);
  }
}

@media only screen and (min-width: 768px) {
  .pricing {
    grid-column-gap: 36px;
    grid-row-gap: 36px;
  }
}

/* Buttons */

.button {
  border-radius: 3px;
  border: 0;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background-color: #ccc;
  transition: background-color 50ms ease-in;
}

.button:hover {
  background-color: #c1c1c1;
}

.button--small {
  padding: 6px 12px;
  font-size: 14px;
}

.button--success {
  color: var(--text-reverse);
  background-color: var(--success);
}

.button--success:hover {
  background-color: var(--success-hover);
}

.button--warning {
  background-color: var(--warning);
}

.button--warning:hover {
  background-color: var(--warning-hover);
}

.button--danger {
  color: var(--text-reverse);
  background-color: var(--danger);
}

.button--danger:hover {
  background-color: var(--danger-hover);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* Donation */

.donate-button {
  display: inline-flex;
  min-height: 42px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 15px;
  border-radius: 3px;
  background-color: var(--donate);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background-color 50ms ease-in;
}

.donate-button__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.donate-button:visited,
.donate-button:hover,
.donate-button:active {
  color: var(--text-reverse);
}

.donate-button:hover {
  background-color: var(--donate-hover);
}

@media only screen and (min-width: 1024px) {
  .donate-button {
    font-size: 16px;
  }
}

/* Page header */

.page-header {
  position: relative;
  background-color: var(--purple);
  color: var(--text-reverse);
  margin-bottom: var(--gutter);
  padding: 50px 0;
}

.page-header h1 {
  max-width: 35ch;
  margin: 0 auto;
  font-size: 36px;
  text-align: center;
  font-weight: 800;
}

@media only screen and (min-width: 600px) {
  .page-header {
    margin-bottom: 30px;
  }
}

@media only screen and (min-width: 768px) {
  .page-header {
    margin-bottom: 36px;
  }
}

@media only screen and (min-width: 1024px) {
  .page-header {
    margin-bottom: 36px;
  }
}

/* Privacy */

.privacy {
  padding-bottom: 0;
}

.privacy h3 {
  margin-bottom: 18px;
}

.privacy h4 {
  margin-bottom: 18px;
}

.privacy ul,
.privacy ol {
  margin-bottom: 18px;
}

/* Account */

.account-page {
  margin-bottom: var(--gutter);
}

.account-section {
  box-sizing: content-box;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.account-section + .account-section {
  margin-top: 48px;
}

.account-section > h3 {
  margin-bottom: 18px;
}

.nowrap {
  white-space: nowrap;
}

.text-right {
  text-align: right;
}

.danger-text {
  color: red;
}

.avatars {
  position: relative;
  z-index: 3;
  margin-top: -64px;
  text-align: center;
}

.avatar {
  width: 64px;
  height: 64px;
  background-color: var(--global-bg);
  border: 5px solid var(--global-bg);
  border-radius: 50%;
}

.avatar + .avatar {
  margin-left: -21px;
}

.panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-column-gap: 12px;
  align-items: center;
  height: 75px;
  padding: 12px 24px;
}

.panel + .panel {
  margin-top: 12px;
}

.panel__emoji {
  font-size: 24px;
}

.panel__heading {
  line-height: 1;
  font-weight: 700;
}

.panel--content {
  min-height: 75px;
  height: auto;
  grid-template-columns: auto 1fr;
  grid-template-rows: minmax(min-content, auto);
  grid-template-areas:
    'emoji heading'
    'main main';
}

.panel--content .panel__emoji {
  grid-area: emoji;
}

.panel--content .panel__heading {
  grid-area: heading;
}

.panel__content {
  grid-area: main;
}

.panel--content p {
  margin-bottom: 6px;
}

.panel__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 56px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch__track {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background-color: #aaa;
  transition: background-color 100ms ease-in;
}

.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
  transition: transform 100ms ease-in;
}

.switch input:checked + .switch__track {
  background-color: var(--purple);
}

.switch input:checked + .switch__track .switch__thumb {
  transform: translateX(28px);
}

.switch input:focus-visible + .switch__track {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.switch input:disabled {
  cursor: not-allowed;
}

.switch input:disabled + .switch__track {
  opacity: 0.6;
}

.switch__loading {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  animation: spin 800ms infinite linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.form-input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.form-input:focus {
  border-color: var(--purple);
}

.form-input:disabled {
  cursor: not-allowed;
  background-color: var(--white);
}

/* Dialog */

.modal {
  width: min(600px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background-color: var(--white);
  color: var(--text);
  box-shadow: 0 1px 5px rgba(30, 30, 30, 0.15);
  overflow: auto;
}

.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal__header {
  padding: 12px;
  border-bottom: 1px solid #ccc;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.modal__body {
  padding: var(--gutter);
  text-align: left;
}

.modal__buttons {
  display: grid;
  grid-template-columns: auto auto;
  grid-column-gap: 12px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.modal__privacy {
  margin: 0;
  font-size: 14px;
  text-align: right;
}

@media only screen and (min-width: 600px) {
  .modal__header {
    font-size: 24px;
  }
}

/* Cookie notice */

.cookie {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  width: calc(100% - 24px);
  max-width: 600px;
  padding: 12px;
  border-radius: 3px;
  background-color: var(--text);
  color: var(--text-reverse);
  box-shadow: 0 1px 5px rgba(30, 30, 30, 0.15);
}

.cookie__heading {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 800;
}

.cookie__text {
  margin-bottom: 18px;
  font-size: 14px;
}

.cookie__text a,
.cookie__link {
  color: var(--text-reverse);
  font-size: 14px;
  text-decoration: underline;
}

.cookie__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: 12px;
  align-items: center;
}

/* Notifications */

.notifications {
  position: fixed;
  right: 12px;
  bottom: 0;
  z-index: 1;
  min-width: 300px;
  max-width: 450px;
}

.notification {
  width: 100%;
  margin-bottom: 12px;
  padding: 24px;
  border: 1px solid;
  border-radius: 5px;
  box-shadow: 0 2px 7px rgba(30, 30, 30, 0.5);
  animation: notification-in 150ms ease-out;
}

.notification--success {
  border-color: #a5d6a7;
  color: #1b5e20;
  background-color: #c8e6c9;
}

.notification--error {
  border-color: var(--danger);
  color: #b71c1c;
  background-color: #ffcdd2;
}

@keyframes notification-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Spinner */

.spinner {
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
}

.spinner__container {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  transform: rotate(45deg);
  transform-origin: 40px 40px;
}

.spinner__container div {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 32px;
  height: 32px;
  background: var(--purple);
  opacity: 0.5;
  animation: spinner 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.spinner__container div::after,
.spinner__container div::before {
  content: ' ';
  position: absolute;
  display: block;
  width: 32px;
  height: 32px;
  background: var(--purple);
}

.spinner__container div::before {
  left: -24px;
  border-radius: 50% 0 0 50%;
}

.spinner__container div::after {
  top: -24px;
  border-radius: 50% 50% 0 0;
}

@keyframes spinner {
  0% {
    transform: scale(0.95);
  }

  5% {
    transform: scale(1.1);
  }

  39% {
    transform: scale(0.85);
  }

  45% {
    transform: scale(1);
  }

  60% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(0.9);
  }
}

/* Unavailable state */

.unavailable {
  box-sizing: content-box;
  max-width: 500px;
  margin: 0 auto var(--gutter);
  padding: 0 var(--gutter);
  text-align: center;
}

.unavailable p {
  margin-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
